@stigg/js-client-sdk 0.55.0 → 1.0.1
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/README.md +0 -1
- package/dist/api/generated/types.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +7 -0
- package/dist/utils/ModelMapper.d.ts +1 -0
- package/package.json +1 -1
package/dist/models.d.ts
CHANGED
|
@@ -248,6 +248,7 @@ export declare type Customer = {
|
|
|
248
248
|
subscriptions: Subscription[];
|
|
249
249
|
promotionalEntitlements: PromotionalEntitlement[];
|
|
250
250
|
hasPaymentMethod: boolean;
|
|
251
|
+
paymentMethodDetails?: PaymentMethodDetails;
|
|
251
252
|
metadata?: Metadata | null;
|
|
252
253
|
trialedPlans?: TrialedPlan[] | null;
|
|
253
254
|
experimentInfo?: ExperimentInfo | null;
|
|
@@ -264,6 +265,11 @@ export declare type WaitForCheckoutCompleted = {
|
|
|
264
265
|
timeoutMs?: number;
|
|
265
266
|
refreshOnComplete?: boolean;
|
|
266
267
|
};
|
|
268
|
+
export declare type PaymentMethodDetails = {
|
|
269
|
+
expirationMonth?: number | null;
|
|
270
|
+
expirationYear?: number | null;
|
|
271
|
+
last4Digits?: string | null;
|
|
272
|
+
};
|
|
267
273
|
/** @hidden */
|
|
268
274
|
export declare class CustomerModel implements Customer {
|
|
269
275
|
id: string;
|
|
@@ -273,6 +279,7 @@ export declare class CustomerModel implements Customer {
|
|
|
273
279
|
promotionalEntitlements: PromotionalEntitlement[];
|
|
274
280
|
hasPaymentMethod: boolean;
|
|
275
281
|
metadata?: Metadata | null;
|
|
282
|
+
paymentMethodDetails?: PaymentMethodDetails;
|
|
276
283
|
constructor(state: CustomerState);
|
|
277
284
|
getActiveSubscriptions(): Subscription[];
|
|
278
285
|
getActiveTrials(): Subscription[];
|
|
@@ -17,6 +17,7 @@ export declare class ModelMapper {
|
|
|
17
17
|
mapMockPlans(resultData: GetMockPaywallQuery): Paywall;
|
|
18
18
|
mapCoupons(resultData: FetchCouponsQuery): Coupon[];
|
|
19
19
|
mapCustomer(customer: CustomerFragment): Customer;
|
|
20
|
+
private mapPaymentDetails;
|
|
20
21
|
private mapTotalPrice;
|
|
21
22
|
private mapPrice;
|
|
22
23
|
private mapPlan;
|