@stigg/js-client-sdk 0.34.2 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generated/types.d.ts +31 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +9 -0
- package/package.json +1 -1
package/dist/models.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits } from './api/generated/types';
|
|
2
2
|
export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, } from './api/generated/types';
|
|
3
|
+
interface Metadata {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
3
6
|
export declare enum AccessDeniedReason {
|
|
4
7
|
InvalidFeatureType = "InvalidFeatureType",
|
|
5
8
|
CustomerNotFound = "CustomerNotFound",
|
|
@@ -108,11 +111,13 @@ export declare type Plan = {
|
|
|
108
111
|
defaultTrialConfig?: DefaultTrialConfig | null;
|
|
109
112
|
compatibleAddons: Addon[];
|
|
110
113
|
product: Product;
|
|
114
|
+
metadata?: Metadata | null;
|
|
111
115
|
};
|
|
112
116
|
export declare type Product = {
|
|
113
117
|
id: string;
|
|
114
118
|
displayName?: string | null;
|
|
115
119
|
description?: string | null;
|
|
120
|
+
metadata?: Metadata | null;
|
|
116
121
|
};
|
|
117
122
|
export declare type DefaultTrialConfig = {
|
|
118
123
|
duration: number;
|
|
@@ -166,6 +171,7 @@ export declare type Addon = {
|
|
|
166
171
|
entitlements: PackageEntitlement[];
|
|
167
172
|
pricePoints: Price[];
|
|
168
173
|
pricingType?: PricingType | null;
|
|
174
|
+
metadata?: Metadata | null;
|
|
169
175
|
};
|
|
170
176
|
export declare type SubscriptionAddon = {
|
|
171
177
|
quantity: number;
|
|
@@ -189,6 +195,7 @@ export declare type Subscription = {
|
|
|
189
195
|
endDate?: Date;
|
|
190
196
|
trialEndDate?: Date;
|
|
191
197
|
cancellationDate?: Date;
|
|
198
|
+
metadata?: Metadata | null;
|
|
192
199
|
};
|
|
193
200
|
export declare type Customer = {
|
|
194
201
|
id: string;
|
|
@@ -199,6 +206,7 @@ export declare type Customer = {
|
|
|
199
206
|
subscriptions: Subscription[];
|
|
200
207
|
promotionalEntitlements: PromotionalEntitlement[];
|
|
201
208
|
hasPaymentMethod: boolean;
|
|
209
|
+
metadata?: Metadata | null;
|
|
202
210
|
getActiveSubscriptions(): Subscription[];
|
|
203
211
|
getActivePromotionalEntitlements(): PromotionalEntitlement[];
|
|
204
212
|
getActiveTrials(): Subscription[];
|
|
@@ -212,6 +220,7 @@ export declare class CustomerModel implements Customer {
|
|
|
212
220
|
subscriptions: Subscription[];
|
|
213
221
|
promotionalEntitlements: PromotionalEntitlement[];
|
|
214
222
|
hasPaymentMethod: boolean;
|
|
223
|
+
metadata?: Metadata | null;
|
|
215
224
|
constructor(state: CustomerState);
|
|
216
225
|
getActiveSubscriptions(): Subscription[];
|
|
217
226
|
getActiveTrials(): Subscription[];
|