@wix/auto_sdk_subscription_subscriptions 1.0.8 → 1.0.10
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/build/cjs/index.d.ts +18 -18
- package/build/cjs/index.js +54 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +63 -43
- package/build/cjs/index.typings.js +54 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +45 -25
- package/build/cjs/meta.js +48 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +18 -18
- package/build/es/index.mjs +54 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +63 -43
- package/build/es/index.typings.mjs +54 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +45 -25
- package/build/es/meta.mjs +48 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -19
- package/build/internal/cjs/index.js +54 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +64 -44
- package/build/internal/cjs/index.typings.js +54 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +45 -25
- package/build/internal/cjs/meta.js +48 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +19 -19
- package/build/internal/es/index.mjs +54 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +64 -44
- package/build/internal/es/index.typings.mjs +54 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +45 -25
- package/build/internal/es/meta.mjs +48 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -599,13 +599,19 @@ interface BillingStatus {
|
|
|
599
599
|
*/
|
|
600
600
|
gracePeriodData?: GracePeriodData;
|
|
601
601
|
}
|
|
602
|
-
/** TODO: fill docs */
|
|
603
602
|
interface PaymentData {
|
|
604
|
-
/**
|
|
603
|
+
/**
|
|
604
|
+
* Latest payment's invoice ID
|
|
605
|
+
* @format GUID
|
|
606
|
+
*/
|
|
605
607
|
invoiceId?: string;
|
|
608
|
+
/** Latest payment's status: UNPAID/PAID/FAILED */
|
|
606
609
|
paymentStatus?: PaymentStatusWithLiterals;
|
|
610
|
+
/** Latest payment's totals. */
|
|
607
611
|
totals?: Totals;
|
|
608
612
|
initialFailedPaymentDate?: Date | null;
|
|
613
|
+
/** Tax-related data for the latest payment */
|
|
614
|
+
taxData?: PaymentTaxData;
|
|
609
615
|
}
|
|
610
616
|
declare enum PaymentStatus {
|
|
611
617
|
/** Payment status unknown */
|
|
@@ -677,6 +683,37 @@ interface Totals {
|
|
|
677
683
|
*/
|
|
678
684
|
prorationTax?: string | null;
|
|
679
685
|
}
|
|
686
|
+
interface PaymentTaxData {
|
|
687
|
+
/**
|
|
688
|
+
* A detailed breakdown of the tax authorities for all subscription items from the latest payment
|
|
689
|
+
* @minSize 1
|
|
690
|
+
* @maxSize 100
|
|
691
|
+
*/
|
|
692
|
+
taxBreakdowns?: TaxBreakdown[];
|
|
693
|
+
}
|
|
694
|
+
interface TaxBreakdown {
|
|
695
|
+
taxType?: string;
|
|
696
|
+
/** @decimalValue options { maxScale:4 } */
|
|
697
|
+
taxRate?: string;
|
|
698
|
+
/** @format DECIMAL_VALUE */
|
|
699
|
+
taxAmount?: string | null;
|
|
700
|
+
/** @format DECIMAL_VALUE */
|
|
701
|
+
taxableAmount?: string | null;
|
|
702
|
+
/** @format DECIMAL_VALUE */
|
|
703
|
+
nonTaxableAmount?: string | null;
|
|
704
|
+
/**
|
|
705
|
+
* Name of the tax that was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
|
|
706
|
+
* @maxLength 200
|
|
707
|
+
*/
|
|
708
|
+
taxName?: string | null;
|
|
709
|
+
/**
|
|
710
|
+
* Jurisdiction that taxes were calculated for.
|
|
711
|
+
* @maxLength 200
|
|
712
|
+
*/
|
|
713
|
+
jurisdiction?: string | null;
|
|
714
|
+
/** Type of jurisdiction that taxes were calculated for. */
|
|
715
|
+
jurisdictionType?: string;
|
|
716
|
+
}
|
|
680
717
|
interface FreeTrialData {
|
|
681
718
|
/**
|
|
682
719
|
* Date when free trial starts
|
|
@@ -1533,29 +1570,6 @@ interface LineItemTaxSummary {
|
|
|
1533
1570
|
*/
|
|
1534
1571
|
finalTaxAmount?: string | null;
|
|
1535
1572
|
}
|
|
1536
|
-
interface TaxBreakdown {
|
|
1537
|
-
taxType?: string;
|
|
1538
|
-
/** @decimalValue options { maxScale:4 } */
|
|
1539
|
-
taxRate?: string;
|
|
1540
|
-
/** @format DECIMAL_VALUE */
|
|
1541
|
-
taxAmount?: string | null;
|
|
1542
|
-
/** @format DECIMAL_VALUE */
|
|
1543
|
-
taxableAmount?: string | null;
|
|
1544
|
-
/** @format DECIMAL_VALUE */
|
|
1545
|
-
nonTaxableAmount?: string | null;
|
|
1546
|
-
/**
|
|
1547
|
-
* Name of the tax that was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
|
|
1548
|
-
* @maxLength 200
|
|
1549
|
-
*/
|
|
1550
|
-
taxName?: string | null;
|
|
1551
|
-
/**
|
|
1552
|
-
* Jurisdiction that taxes were calculated for.
|
|
1553
|
-
* @maxLength 200
|
|
1554
|
-
*/
|
|
1555
|
-
jurisdiction?: string | null;
|
|
1556
|
-
/** Type of jurisdiction that taxes were calculated for. */
|
|
1557
|
-
jurisdictionType?: string;
|
|
1558
|
-
}
|
|
1559
1573
|
interface InitiatePaymentMethodSetupRequest {
|
|
1560
1574
|
id: string;
|
|
1561
1575
|
paymentMode?: PaymentModeWithLiterals;
|
|
@@ -2159,6 +2173,7 @@ interface SubscriptionEvent extends SubscriptionEventPayloadOneOf {
|
|
|
2159
2173
|
freeTrailEnded?: FreeTrailEnded;
|
|
2160
2174
|
billingCyclePaid?: SubscriptionBillingCyclePaid;
|
|
2161
2175
|
initiatePaymentMethodSetup?: InitiatedPaymentMethodSetup;
|
|
2176
|
+
futurePriceUpdatesRequested?: FuturePriceUpdatesRequested;
|
|
2162
2177
|
subscriptionBoAction?: SubscriptionBackOfficeAction;
|
|
2163
2178
|
unknown?: UnknownSubscriptionEvent;
|
|
2164
2179
|
}
|
|
@@ -2196,6 +2211,7 @@ interface SubscriptionEventPayloadOneOf {
|
|
|
2196
2211
|
freeTrailEnded?: FreeTrailEnded;
|
|
2197
2212
|
billingCyclePaid?: SubscriptionBillingCyclePaid;
|
|
2198
2213
|
initiatePaymentMethodSetup?: InitiatedPaymentMethodSetup;
|
|
2214
|
+
futurePriceUpdatesRequested?: FuturePriceUpdatesRequested;
|
|
2199
2215
|
subscriptionBoAction?: SubscriptionBackOfficeAction;
|
|
2200
2216
|
unknown?: UnknownSubscriptionEvent;
|
|
2201
2217
|
}
|
|
@@ -2265,6 +2281,10 @@ interface FreeTrailEnded {
|
|
|
2265
2281
|
interface InitiatedPaymentMethodSetup {
|
|
2266
2282
|
subscription?: Subscription;
|
|
2267
2283
|
}
|
|
2284
|
+
interface FuturePriceUpdatesRequested {
|
|
2285
|
+
subscription?: Subscription;
|
|
2286
|
+
requestedUpdateData?: SubscriptionUpdateData;
|
|
2287
|
+
}
|
|
2268
2288
|
interface SubscriptionBackOfficeAction {
|
|
2269
2289
|
subscription?: Subscription;
|
|
2270
2290
|
/** The backoffice method name */
|
|
@@ -2878,6 +2878,54 @@ function listSubscriptionHistory(payload) {
|
|
|
2878
2878
|
{
|
|
2879
2879
|
path: "historyEntries.event.initiatePaymentMethodSetup.subscription.specificDatePendingUpdateData.executionDate"
|
|
2880
2880
|
},
|
|
2881
|
+
{
|
|
2882
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.createdDate"
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.updatedDate"
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.startDate"
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.endDate"
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.nextBillingDate"
|
|
2895
|
+
},
|
|
2896
|
+
{
|
|
2897
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.previousBillingDate"
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.freeTrialData.startDate"
|
|
2904
|
+
},
|
|
2905
|
+
{
|
|
2906
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.freeTrialData.endDate"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.gracePeriodData.startDate"
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.gracePeriodData.endDate"
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.pauseInfo.startDate"
|
|
2919
|
+
},
|
|
2920
|
+
{
|
|
2921
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.pauseInfo.resumeDate"
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.cancellationInfo.cancellationDate"
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
|
|
2928
|
+
},
|
|
2881
2929
|
{
|
|
2882
2930
|
path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
|
|
2883
2931
|
},
|