@wix/subscription 1.0.2 → 1.0.4

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.
@@ -87,6 +87,8 @@ interface Subscription {
87
87
  * @readonly
88
88
  */
89
89
  changesCounter?: string | null;
90
+ /** Billing order id. Optional. */
91
+ orderId?: string | null;
90
92
  /** items, minSize is 1, maxSize is 100 */
91
93
  items?: Item[];
92
94
  }
@@ -154,7 +156,7 @@ interface BillingSettings {
154
156
  /** customer payment source to make recurring payments with */
155
157
  paymentMethod?: PaymentMethod;
156
158
  /** Instructs how payments will be collected. */
157
- collectionMethod?: CollectionMethod;
159
+ collectionMethod?: CollectionMethodEnumCollectionMethod;
158
160
  /**
159
161
  * Duration of cycle. For example, 1 MONTH, 2 WEEKS, 7 DAYS, 1 YEAR etc.
160
162
  * Shortest supported cycle duration is 7 days.
@@ -193,7 +195,7 @@ interface PaymentMethod {
193
195
  /** reference to payment source id stored in payments system */
194
196
  _id?: string;
195
197
  }
196
- declare enum CollectionMethod {
198
+ declare enum CollectionMethodEnumCollectionMethod {
197
199
  UNKNOWN = "UNKNOWN",
198
200
  /** Subscriber automatically charged */
199
201
  AUTO_CHARGE = "AUTO_CHARGE",
@@ -325,6 +327,8 @@ interface Tax extends TaxValueOneOf {
325
327
  * Max: `100`
326
328
  */
327
329
  percentage?: string;
330
+ /** Dynamic tax calculation */
331
+ dynamic?: DynamicTax;
328
332
  }
329
333
  /** @oneof */
330
334
  interface TaxValueOneOf {
@@ -344,6 +348,11 @@ interface TaxValueOneOf {
344
348
  * Max: `100`
345
349
  */
346
350
  percentage?: string;
351
+ /** Dynamic tax calculation */
352
+ dynamic?: DynamicTax;
353
+ }
354
+ interface DynamicTax {
355
+ taxGroupId?: string | null;
347
356
  }
348
357
  interface Discount extends DiscountValueOneOf {
349
358
  /**
@@ -1034,8 +1043,8 @@ declare enum PaymentMode {
1034
1043
  }
1035
1044
  interface SubscriptionCollectionMethodUpdated {
1036
1045
  subscription?: Subscription;
1037
- newCollectionMethod?: CollectionMethod;
1038
- previousCollectionMethod?: CollectionMethod;
1046
+ newCollectionMethod?: CollectionMethodEnumCollectionMethod;
1047
+ previousCollectionMethod?: CollectionMethodEnumCollectionMethod;
1039
1048
  }
1040
1049
  interface FreeTrailStarted {
1041
1050
  subscription?: Subscription;
@@ -1079,7 +1088,7 @@ interface GetSubscriptionResponse {
1079
1088
  subscription?: Subscription;
1080
1089
  }
1081
1090
  interface CustomerCancelSubscriptionRequest {
1082
- _id?: string;
1091
+ _id: string;
1083
1092
  /** Optional action reason message */
1084
1093
  reason?: string | null;
1085
1094
  }
@@ -1087,7 +1096,7 @@ interface CustomerCancelSubscriptionResponse {
1087
1096
  subscription?: Subscription;
1088
1097
  }
1089
1098
  interface CustomerTurnOnAutoRenewalRequest {
1090
- _id?: string;
1099
+ _id: string;
1091
1100
  /** Optional action reason message */
1092
1101
  reason?: string | null;
1093
1102
  }
@@ -1095,7 +1104,7 @@ interface CustomerTurnOnAutoRenewalResponse {
1095
1104
  subscription?: Subscription;
1096
1105
  }
1097
1106
  interface CustomerTurnOffAutoRenewalRequest {
1098
- _id?: string;
1107
+ _id: string;
1099
1108
  /** Optional action reason message */
1100
1109
  reason?: string | null;
1101
1110
  }
@@ -1104,18 +1113,18 @@ interface CustomerTurnOffAutoRenewalResponse {
1104
1113
  }
1105
1114
  interface CustomerExtendSubscriptionRequest {
1106
1115
  /** The ID of the subscription to be extended */
1107
- _id?: string;
1116
+ _id: string;
1108
1117
  /** Optional action reason message */
1109
1118
  reason?: string | null;
1110
1119
  /** For termed - Subscription end date will be updated with the extension period and number of cycles will be added */
1111
- billingCyclesToAdd?: number | null;
1120
+ billingCyclesToAdd: number | null;
1112
1121
  }
1113
1122
  interface CustomerExtendSubscriptionResponse {
1114
1123
  /** The now extended subscription */
1115
1124
  subscription?: Subscription;
1116
1125
  }
1117
1126
  interface QuerySubscriptionsRequest {
1118
- query: QueryV2;
1127
+ query?: QueryV2;
1119
1128
  }
1120
1129
  interface QueryV2 extends QueryV2PagingMethodOneOf {
1121
1130
  /** Paging options to limit and skip the number of items. */
@@ -1244,7 +1253,7 @@ interface UpdateSubscriptionPaymentMethodResponse {
1244
1253
  subscription?: Subscription;
1245
1254
  }
1246
1255
  interface CustomerAllowedActionsRequest {
1247
- _id?: string;
1256
+ _id: string;
1248
1257
  }
1249
1258
  interface CustomerAllowedActionsResponse {
1250
1259
  actions?: Action[];
@@ -1278,7 +1287,7 @@ declare enum ExtendPolicyType {
1278
1287
  }
1279
1288
  interface CustomerListUpcomingChargesRequest {
1280
1289
  /** Subscription id upcoming charge to be previewed for */
1281
- _id?: string;
1290
+ _id: string;
1282
1291
  }
1283
1292
  interface CustomerListUpcomingChargesResponse {
1284
1293
  /** Subscription upcoming charge. Will be empty if no more billing scheduled. */
@@ -1489,7 +1498,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
1489
1498
  slug?: string;
1490
1499
  /** ID of the entity associated with the event. */
1491
1500
  entityId?: string;
1492
- /** Event timestamp. */
1501
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1493
1502
  eventTime?: Date;
1494
1503
  /**
1495
1504
  * Whether the event was triggered as a result of a privacy regulation application
@@ -1989,6 +1998,249 @@ interface Charge {
1989
1998
  /** The billing date from which the charge starts */
1990
1999
  cycleBillingDate?: Date;
1991
2000
  }
2001
+ interface CreateSubscriptionForOrderRequest {
2002
+ /** Subscription needs to be created */
2003
+ subscription?: Subscription;
2004
+ }
2005
+ interface CreateSubscriptionForOrderResponse {
2006
+ /** Created subscription */
2007
+ subscription?: Subscription;
2008
+ /** Non-persistent invoice */
2009
+ invoice?: Invoice;
2010
+ }
2011
+ /** An invoice includes information about the subscription and the customer. */
2012
+ interface Invoice {
2013
+ /**
2014
+ * Invoice ID.
2015
+ * @readonly
2016
+ */
2017
+ _id?: string | null;
2018
+ /**
2019
+ * Date and time the invoice was created.
2020
+ * @readonly
2021
+ */
2022
+ _createdDate?: Date;
2023
+ /**
2024
+ * Date and time the invoice was last updated.
2025
+ * @readonly
2026
+ */
2027
+ _updatedDate?: Date;
2028
+ /**
2029
+ * Revision number, which increments by 1 each time the invoice is updated.
2030
+ * To prevent conflicting changes,
2031
+ * the current revision must be passed when updating the invoice.
2032
+ *
2033
+ * Ignored when creating a invoice.
2034
+ * @readonly
2035
+ */
2036
+ revision?: string | null;
2037
+ /** Information about the invoice origin. */
2038
+ origin?: BusinessOriginData;
2039
+ /**
2040
+ * Invoice status.
2041
+ *
2042
+ * + `"UNKNOWN"`: There is no information about the invoice status.
2043
+ * + `"OPEN"`: BASS has created the invoice but hasn't initiated the payment process.
2044
+ * + `"PAID"`: The customer has successfully paid for the invoice.
2045
+ * + `"ATTEMPT_FAILED"`: The payment process has started and there has been at least one unsuccessful payment attempt.
2046
+ * + `"FAILED"`: The payment process has failed and there are no more retries.
2047
+ * + `"CANCELED"`: The payment process has been stopped because the related subscription has been canceled.
2048
+ * @readonly
2049
+ */
2050
+ status?: InvoiceStatus;
2051
+ /**
2052
+ * 3-letter currency code of the invoice in
2053
+ * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
2054
+ */
2055
+ currency?: string;
2056
+ /** Information about the customer. */
2057
+ customer?: Customer;
2058
+ /**
2059
+ * Whether the payment is processed through Wix and whether the customer must provide some input.
2060
+ *
2061
+ * + `"UNKNOWN"`: There is no information about the collection method.
2062
+ * + `"AUTO_CHARGE"`: The customer pays automatically through Wix.
2063
+ * + `"SEND_INVOICE"`: The customer pays through Wix, but some manual input is required.
2064
+ * + `"OFFLINE"`: The customer pays outside of Wix.
2065
+ */
2066
+ collectionMethod?: CollectionMethod;
2067
+ /**
2068
+ * ID of the
2069
+ * [payment method](https://bo.wix.com/wix-docs/rest/wix-cashier/settings/payment-method-type/payment-method-type-object).
2070
+ * Not available for the first payment of a subscription and all offline
2071
+ * payments.
2072
+ */
2073
+ paymentMethodId?: string | null;
2074
+ /**
2075
+ * Cashier [Order ID](https://dev.wix.com/docs/rest/payments/wix-cashier/pay/order#order-object)
2076
+ * for the corresponding payment.
2077
+ * @readonly
2078
+ */
2079
+ paymentOrderId?: string | null;
2080
+ /** Information about a discount. Available only for invoices that include a discount. */
2081
+ discount?: InvoiceDiscount;
2082
+ /** Billing address. */
2083
+ billingAddress?: FullAddressDetails;
2084
+ /** Shipping address. Available only for `"PHYSICAL"` line items. */
2085
+ shippingAddress?: FullAddressDetails;
2086
+ /** Shipping fee in `0.00` format. */
2087
+ shippingFee?: string | null;
2088
+ /**
2089
+ * Information about the invoice's totals.
2090
+ * @readonly
2091
+ */
2092
+ totals?: Totals;
2093
+ /** Line items belonging to the invoice. */
2094
+ invoiceItems?: InvoiceItem[];
2095
+ /**
2096
+ * Whether the invoice is used to validate payment details.
2097
+ *
2098
+ * + `true`: BASS uses the invoice to test payment details. Relevant for free trials. Ensures that Wix can collect the payment of the first billing cycle.
2099
+ * + `false`: Standard invoice.
2100
+ */
2101
+ isAuthorization?: boolean | null;
2102
+ /** Whether the invoice's `totals.totalPrice` includes tax. */
2103
+ isTaxInclusive?: boolean | null;
2104
+ /** Details of the latest payment attempt. */
2105
+ latestPaymentAttempt?: LatestPaymentAttempt;
2106
+ /** List of charges and credits that adjust the invoice's `totals.totalPrice`. */
2107
+ adjustments?: PriceAdjustment[];
2108
+ /**
2109
+ * Invoice Number.
2110
+ * @readonly
2111
+ */
2112
+ invoiceNumber?: string | null;
2113
+ }
2114
+ interface BusinessOriginData {
2115
+ /**
2116
+ * ID of the app for which BASS has created the invoice. For example,
2117
+ * `"1380b703-ce81-ff05-f115-39571d94dfcd"` for the Wix eCommerce app.
2118
+ */
2119
+ appId?: string;
2120
+ /**
2121
+ * [Instance ID](https://dev.wix.com/api/rest/app-management/apps/app-instance/get-app-instance)
2122
+ * of the app for which BASS has created the invoice.
2123
+ */
2124
+ instanceId?: string;
2125
+ /**
2126
+ * ID of the entity that triggered the invoice creation. For example, the ID of a
2127
+ * [pricing plan](https://dev.wix.com/docs/rest/payments/pricing-plans/pricing-plans/plan#plan-object).
2128
+ */
2129
+ entityId?: string;
2130
+ }
2131
+ declare enum InvoiceStatus {
2132
+ UNKNOWN = "UNKNOWN",
2133
+ OPEN = "OPEN",
2134
+ PAID = "PAID",
2135
+ FAILED = "FAILED",
2136
+ ATTEMPT_FAILED = "ATTEMPT_FAILED",
2137
+ CANCELED = "CANCELED"
2138
+ }
2139
+ declare enum CollectionMethod {
2140
+ UNKNOWN = "UNKNOWN",
2141
+ AUTO_CHARGE = "AUTO_CHARGE",
2142
+ OFFLINE = "OFFLINE",
2143
+ SEND_INVOICE = "SEND_INVOICE"
2144
+ }
2145
+ declare enum CreationMode {
2146
+ UNKNOWN = "UNKNOWN",
2147
+ SYSTEM = "SYSTEM",
2148
+ MANUAL = "MANUAL"
2149
+ }
2150
+ interface LatestPaymentAttempt {
2151
+ /**
2152
+ * ID of the latest payment attempt.
2153
+ * @readonly
2154
+ */
2155
+ paymentAttemptId?: string;
2156
+ /**
2157
+ * Date and time of the latest payment attempt in `YYYY-MM-DDThh:mm.sssZ` format.
2158
+ * @readonly
2159
+ */
2160
+ dateAttempt?: Date;
2161
+ /** Number of the latest payment attempt. */
2162
+ attemptNumber?: number;
2163
+ /**
2164
+ * Status of the latest payment attempt.
2165
+ *
2166
+ * + `"UNKNOWN"`: There is no information about the status of the latest payment attempt.
2167
+ * + `"SCHEDULED"`: The latest payment attempt is scheduled but hasn't started yet.
2168
+ * + `"IN_PROGRESS"`: The latest payment attempt is in progress.
2169
+ * + `"PAID"`: The latest payment attempt resulted in a successful payment.
2170
+ * + `"DECLINED"`: The latest payment attempt has been declined.
2171
+ * + `"TECHNICAL_FAILURE"`: The latest payment attempt couldn't be process due to a technical failure.
2172
+ * + `"CANCELED"`: The latest payment attempt has been canceled by BASS.
2173
+ * @readonly
2174
+ */
2175
+ status?: PaymentAttemptStatus;
2176
+ /**
2177
+ * Whether BASS tries to collect the payment another time. Available only when
2178
+ * `latestPaymentAttempt.status` is set to `"DECLINED"`.
2179
+ */
2180
+ retryable?: boolean;
2181
+ }
2182
+ declare enum PaymentAttemptStatus {
2183
+ UNKNOWN = "UNKNOWN",
2184
+ SCHEDULED = "SCHEDULED",
2185
+ IN_PROGRESS = "IN_PROGRESS",
2186
+ PAID = "PAID",
2187
+ DECLINED = "DECLINED",
2188
+ TECHNICAL_FAILURE = "TECHNICAL_FAILURE",
2189
+ CANCELED = "CANCELED",
2190
+ PENDING = "PENDING"
2191
+ }
2192
+ interface PriceAdjustment extends PriceAdjustmentAdjustmentTypeOneOf {
2193
+ /** Adjustment that increases the price. */
2194
+ charge?: PriceAdjustmentValue;
2195
+ /** Adjustment that lowers the price. */
2196
+ credit?: PriceAdjustmentValue;
2197
+ }
2198
+ /** @oneof */
2199
+ interface PriceAdjustmentAdjustmentTypeOneOf {
2200
+ /** Adjustment that increases the price. */
2201
+ charge?: PriceAdjustmentValue;
2202
+ /** Adjustment that lowers the price. */
2203
+ credit?: PriceAdjustmentValue;
2204
+ }
2205
+ interface PriceAdjustmentValue extends PriceAdjustmentValueAdjustmentValueTypeOneOf {
2206
+ /**
2207
+ * Absolute amount that adjusts the price.
2208
+ *
2209
+ * Min: `0.01`
2210
+ */
2211
+ amount?: string;
2212
+ /**
2213
+ * Relative factor that adjusts the price. For example, setting
2214
+ * `multiplier` to:
2215
+ * - `0.50` results in a price adjustment of 50% of the original value.
2216
+ * - `0.75` results in a price adjustment of 75% of the original value.
2217
+ * - `1.00` results in a price adjustment of 100% of the original value.
2218
+ *
2219
+ * Min: `0.01`
2220
+ * Max: `1.00`
2221
+ */
2222
+ multiplier?: string;
2223
+ }
2224
+ /** @oneof */
2225
+ interface PriceAdjustmentValueAdjustmentValueTypeOneOf {
2226
+ /**
2227
+ * Absolute amount that adjusts the price.
2228
+ *
2229
+ * Min: `0.01`
2230
+ */
2231
+ amount?: string;
2232
+ /**
2233
+ * Relative factor that adjusts the price. For example, setting
2234
+ * `multiplier` to:
2235
+ * - `0.50` results in a price adjustment of 50% of the original value.
2236
+ * - `0.75` results in a price adjustment of 75% of the original value.
2237
+ * - `1.00` results in a price adjustment of 100% of the original value.
2238
+ *
2239
+ * Min: `0.01`
2240
+ * Max: `1.00`
2241
+ */
2242
+ multiplier?: string;
2243
+ }
1992
2244
  interface Task {
1993
2245
  key?: TaskKey;
1994
2246
  executeAt?: Date;
@@ -2573,3205 +2825,304 @@ interface HandleSubscriptionAfterInvoiceMarkedAsPaidRequest {
2573
2825
  subscriptionId?: string;
2574
2826
  transactionId?: string;
2575
2827
  }
2828
+ interface CustomerNonNullableFields {
2829
+ visitorId: string;
2830
+ contactId: string;
2831
+ memberId: string;
2832
+ accountId: string;
2833
+ }
2834
+ interface PaymentMethodNonNullableFields {
2835
+ _id: string;
2836
+ }
2837
+ interface DurationNonNullableFields {
2838
+ unit: DurationUnit;
2839
+ }
2840
+ interface StreetAddressNonNullableFields {
2841
+ number: string;
2842
+ name: string;
2843
+ }
2844
+ interface AddressNonNullableFields {
2845
+ streetAddress?: StreetAddressNonNullableFields;
2846
+ }
2847
+ interface FullAddressDetailsNonNullableFields {
2848
+ address?: AddressNonNullableFields;
2849
+ }
2850
+ interface TaxSettingsNonNullableFields {
2851
+ inclusive: boolean;
2852
+ }
2853
+ interface TaxNonNullableFields {
2854
+ amount: string;
2855
+ percentage: string;
2856
+ }
2857
+ interface AdditionalFeeNonNullableFields {
2858
+ name: string;
2859
+ amount: string;
2860
+ trigger: AdditionalFeeTrigger;
2861
+ tax?: TaxNonNullableFields;
2862
+ }
2863
+ interface DiscountCyclesNonNullableFields {
2864
+ cycleFrom: number;
2865
+ }
2866
+ interface DiscountOriginNonNullableFields {
2867
+ appId: string;
2868
+ entityId: string;
2869
+ }
2870
+ interface DiscountNonNullableFields {
2871
+ amount: string;
2872
+ percentage: string;
2873
+ cycles?: DiscountCyclesNonNullableFields;
2874
+ origin?: DiscountOriginNonNullableFields;
2875
+ }
2876
+ interface ExternalCollectionDetailsNonNullableFields {
2877
+ collectorName: string;
2878
+ }
2879
+ interface BillingSettingsNonNullableFields {
2880
+ currency: string;
2881
+ paymentMethod?: PaymentMethodNonNullableFields;
2882
+ collectionMethod: CollectionMethodEnumCollectionMethod;
2883
+ cycleDuration?: DurationNonNullableFields;
2884
+ cycleAutoRenew: boolean;
2885
+ freeTrialDuration?: DurationNonNullableFields;
2886
+ billingAddress?: FullAddressDetailsNonNullableFields;
2887
+ taxSettings?: TaxSettingsNonNullableFields;
2888
+ additionalFees: AdditionalFeeNonNullableFields[];
2889
+ discounts: DiscountNonNullableFields[];
2890
+ externalCollectionDetails?: ExternalCollectionDetailsNonNullableFields;
2891
+ }
2892
+ interface TotalsNonNullableFields {
2893
+ totalPrice: string;
2894
+ subtotal: string;
2895
+ }
2896
+ interface PaymentDataNonNullableFields {
2897
+ invoiceId: string;
2898
+ paymentStatus: PaymentStatus;
2899
+ totals?: TotalsNonNullableFields;
2900
+ }
2901
+ interface CustomProrationNonNullableFields {
2902
+ charge: string;
2903
+ credit: string;
2904
+ }
2905
+ interface ProrationNonNullableFields {
2906
+ custom?: CustomProrationNonNullableFields;
2907
+ }
2908
+ interface UpdateBillingDateDataNonNullableFields {
2909
+ proration?: ProrationNonNullableFields;
2910
+ }
2911
+ interface AutomaticRetryDataNonNullableFields {
2912
+ enabled: boolean;
2913
+ }
2914
+ interface GracePeriodDataNonNullableFields {
2915
+ automaticRetryData?: AutomaticRetryDataNonNullableFields;
2916
+ }
2917
+ interface BillingStatusNonNullableFields {
2918
+ currentCycle: number;
2919
+ latestPaymentData?: PaymentDataNonNullableFields;
2920
+ updateBillingDateData?: UpdateBillingDateDataNonNullableFields;
2921
+ gracePeriodData?: GracePeriodDataNonNullableFields;
2922
+ }
2923
+ interface SubscriptionPoliciesNonNullableFields {
2924
+ customerCanCancel: boolean;
2925
+ businessCanExtend: boolean;
2926
+ allowEndOfCycleCancellation: boolean;
2927
+ }
2928
+ interface PauseInfoNonNullableFields {
2929
+ pausePolicy: PausePolicy;
2930
+ pauseAt: PauseAt;
2931
+ resumeAt: ResumeAt;
2932
+ }
2933
+ interface CancellationInfoNonNullableFields {
2934
+ initiator: HistoryActionInitiator;
2935
+ }
2936
+ interface FixedPriceNonNullableFields {
2937
+ itemPrice: string;
2938
+ }
2939
+ interface PricingModelNonNullableFields {
2940
+ fixedPrice?: FixedPriceNonNullableFields;
2941
+ }
2942
+ interface ItemChangeNonNullableFields {
2943
+ _id: string;
2944
+ pricingModel?: PricingModelNonNullableFields;
2945
+ tax?: TaxNonNullableFields;
2946
+ }
2947
+ interface CatalogReferenceNonNullableFields {
2948
+ catalogItemId: string;
2949
+ }
2950
+ interface ApplicationFeeNonNullableFields {
2951
+ amount: string;
2952
+ discounts: DiscountNonNullableFields[];
2953
+ }
2954
+ interface ItemNonNullableFields {
2955
+ name: string;
2956
+ catalogReference?: CatalogReferenceNonNullableFields;
2957
+ category: ItemCategory;
2958
+ quantity: number;
2959
+ pricingModel?: PricingModelNonNullableFields;
2960
+ tax?: TaxNonNullableFields;
2961
+ discounts: DiscountNonNullableFields[];
2962
+ applicationFee?: ApplicationFeeNonNullableFields;
2963
+ }
2964
+ interface SubscriptionUpdateDataNonNullableFields {
2965
+ itemsToUpdate: ItemChangeNonNullableFields[];
2966
+ itemsToAdd: ItemNonNullableFields[];
2967
+ numberOfRequests: number;
2968
+ }
2969
+ interface SpecificDateSubscriptionUpdateDataNonNullableFields {
2970
+ updateData?: SubscriptionUpdateDataNonNullableFields;
2971
+ }
2972
+ interface SubscriptionNonNullableFields {
2973
+ name: string;
2974
+ customer?: CustomerNonNullableFields;
2975
+ status: SubscriptionStatusEnumSubscriptionStatus;
2976
+ billingSettings?: BillingSettingsNonNullableFields;
2977
+ billingStatus?: BillingStatusNonNullableFields;
2978
+ shippingAddress?: FullAddressDetailsNonNullableFields;
2979
+ policies?: SubscriptionPoliciesNonNullableFields;
2980
+ pauseInfo?: PauseInfoNonNullableFields;
2981
+ cancellationInfo?: CancellationInfoNonNullableFields;
2982
+ pendingUpdateData?: SubscriptionUpdateDataNonNullableFields;
2983
+ bassManaged: boolean;
2984
+ specificDatePendingUpdateData?: SpecificDateSubscriptionUpdateDataNonNullableFields;
2985
+ items: ItemNonNullableFields[];
2986
+ }
2576
2987
  interface GetSubscriptionResponseNonNullableFields {
2577
- subscription?: {
2578
- name: string;
2579
- customer?: {
2580
- visitorId: string;
2581
- contactId: string;
2582
- memberId: string;
2583
- accountId: string;
2584
- };
2585
- status: SubscriptionStatusEnumSubscriptionStatus;
2586
- billingSettings?: {
2587
- currency: string;
2588
- paymentMethod?: {
2589
- _id: string;
2590
- };
2591
- collectionMethod: CollectionMethod;
2592
- cycleDuration?: {
2593
- unit: DurationUnit;
2594
- };
2595
- cycleAutoRenew: boolean;
2596
- freeTrialDuration?: {
2597
- unit: DurationUnit;
2598
- };
2599
- taxSettings?: {
2600
- inclusive: boolean;
2601
- };
2602
- additionalFees: {
2603
- name: string;
2604
- amount: string;
2605
- trigger: AdditionalFeeTrigger;
2606
- tax?: {
2607
- amount: string;
2608
- percentage: string;
2609
- };
2610
- }[];
2611
- discounts: {
2612
- amount: string;
2613
- percentage: string;
2614
- cycles?: {
2615
- cycleFrom: number;
2616
- };
2617
- origin?: {
2618
- appId: string;
2619
- entityId: string;
2620
- };
2621
- }[];
2622
- externalCollectionDetails?: {
2623
- collectorName: string;
2624
- };
2625
- };
2626
- billingStatus?: {
2627
- currentCycle: number;
2628
- latestPaymentData?: {
2629
- invoiceId: string;
2630
- paymentStatus: PaymentStatus;
2631
- totals?: {
2632
- totalPrice: string;
2633
- subtotal: string;
2634
- };
2635
- };
2636
- gracePeriodData?: {
2637
- automaticRetryData?: {
2638
- enabled: boolean;
2639
- };
2640
- };
2641
- };
2642
- policies?: {
2643
- customerCanCancel: boolean;
2644
- businessCanExtend: boolean;
2645
- allowEndOfCycleCancellation: boolean;
2646
- };
2647
- pauseInfo?: {
2648
- pausePolicy: PausePolicy;
2649
- pauseAt: PauseAt;
2650
- resumeAt: ResumeAt;
2651
- };
2652
- cancellationInfo?: {
2653
- initiator: HistoryActionInitiator;
2654
- };
2655
- pendingUpdateData?: {
2656
- itemsToUpdate: {
2657
- _id: string;
2658
- pricingModel?: {
2659
- fixedPrice?: {
2660
- itemPrice: string;
2661
- };
2662
- };
2663
- tax?: {
2664
- amount: string;
2665
- percentage: string;
2666
- };
2667
- }[];
2668
- itemsToAdd: {
2669
- name: string;
2670
- catalogReference?: {
2671
- catalogItemId: string;
2672
- };
2673
- category: ItemCategory;
2674
- quantity: number;
2675
- pricingModel?: {
2676
- fixedPrice?: {
2677
- itemPrice: string;
2678
- };
2679
- };
2680
- tax?: {
2681
- amount: string;
2682
- percentage: string;
2683
- };
2684
- discounts: {
2685
- amount: string;
2686
- percentage: string;
2687
- cycles?: {
2688
- cycleFrom: number;
2689
- };
2690
- origin?: {
2691
- appId: string;
2692
- entityId: string;
2693
- };
2694
- }[];
2695
- applicationFee?: {
2696
- amount: string;
2697
- discounts: {
2698
- amount: string;
2699
- percentage: string;
2700
- cycles?: {
2701
- cycleFrom: number;
2702
- };
2703
- origin?: {
2704
- appId: string;
2705
- entityId: string;
2706
- };
2707
- }[];
2708
- };
2709
- }[];
2710
- numberOfRequests: number;
2711
- };
2712
- specificDatePendingUpdateData?: {
2713
- updateData?: {
2714
- itemsToUpdate: {
2715
- _id: string;
2716
- pricingModel?: {
2717
- fixedPrice?: {
2718
- itemPrice: string;
2719
- };
2720
- };
2721
- tax?: {
2722
- amount: string;
2723
- percentage: string;
2724
- };
2725
- }[];
2726
- itemsToAdd: {
2727
- name: string;
2728
- catalogReference?: {
2729
- catalogItemId: string;
2730
- };
2731
- category: ItemCategory;
2732
- quantity: number;
2733
- pricingModel?: {
2734
- fixedPrice?: {
2735
- itemPrice: string;
2736
- };
2737
- };
2738
- tax?: {
2739
- amount: string;
2740
- percentage: string;
2741
- };
2742
- discounts: {
2743
- amount: string;
2744
- percentage: string;
2745
- cycles?: {
2746
- cycleFrom: number;
2747
- };
2748
- origin?: {
2749
- appId: string;
2750
- entityId: string;
2751
- };
2752
- }[];
2753
- applicationFee?: {
2754
- amount: string;
2755
- discounts: {
2756
- amount: string;
2757
- percentage: string;
2758
- cycles?: {
2759
- cycleFrom: number;
2760
- };
2761
- origin?: {
2762
- appId: string;
2763
- entityId: string;
2764
- };
2765
- }[];
2766
- };
2767
- }[];
2768
- numberOfRequests: number;
2769
- };
2770
- };
2771
- items: {
2772
- name: string;
2773
- catalogReference?: {
2774
- catalogItemId: string;
2775
- };
2776
- category: ItemCategory;
2777
- quantity: number;
2778
- pricingModel?: {
2779
- fixedPrice?: {
2780
- itemPrice: string;
2781
- };
2782
- };
2783
- tax?: {
2784
- amount: string;
2785
- percentage: string;
2786
- };
2787
- discounts: {
2788
- amount: string;
2789
- percentage: string;
2790
- cycles?: {
2791
- cycleFrom: number;
2792
- };
2793
- origin?: {
2794
- appId: string;
2795
- entityId: string;
2796
- };
2797
- }[];
2798
- applicationFee?: {
2799
- amount: string;
2800
- discounts: {
2801
- amount: string;
2802
- percentage: string;
2803
- cycles?: {
2804
- cycleFrom: number;
2805
- };
2806
- origin?: {
2807
- appId: string;
2808
- entityId: string;
2809
- };
2810
- }[];
2811
- };
2812
- }[];
2813
- };
2988
+ subscription?: SubscriptionNonNullableFields;
2989
+ }
2990
+ interface CustomerCancelSubscriptionResponseNonNullableFields {
2991
+ subscription?: SubscriptionNonNullableFields;
2992
+ }
2993
+ interface CustomerTurnOnAutoRenewalResponseNonNullableFields {
2994
+ subscription?: SubscriptionNonNullableFields;
2995
+ }
2996
+ interface CustomerTurnOffAutoRenewalResponseNonNullableFields {
2997
+ subscription?: SubscriptionNonNullableFields;
2998
+ }
2999
+ interface CustomerExtendSubscriptionResponseNonNullableFields {
3000
+ subscription?: SubscriptionNonNullableFields;
3001
+ }
3002
+ interface QuerySubscriptionsResponseNonNullableFields {
3003
+ subscriptions: SubscriptionNonNullableFields[];
2814
3004
  }
2815
3005
  interface UpdateSubscriptionPaymentMethodResponseNonNullableFields {
2816
- subscription?: {
2817
- name: string;
2818
- customer?: {
2819
- visitorId: string;
2820
- contactId: string;
2821
- memberId: string;
2822
- accountId: string;
2823
- };
2824
- status: SubscriptionStatusEnumSubscriptionStatus;
2825
- billingSettings?: {
2826
- currency: string;
2827
- paymentMethod?: {
2828
- _id: string;
2829
- };
2830
- collectionMethod: CollectionMethod;
2831
- cycleDuration?: {
2832
- unit: DurationUnit;
2833
- };
2834
- cycleAutoRenew: boolean;
2835
- freeTrialDuration?: {
2836
- unit: DurationUnit;
2837
- };
2838
- taxSettings?: {
2839
- inclusive: boolean;
2840
- };
2841
- additionalFees: {
2842
- name: string;
2843
- amount: string;
2844
- trigger: AdditionalFeeTrigger;
2845
- tax?: {
2846
- amount: string;
2847
- percentage: string;
2848
- };
2849
- }[];
2850
- discounts: {
2851
- amount: string;
2852
- percentage: string;
2853
- cycles?: {
2854
- cycleFrom: number;
2855
- };
2856
- origin?: {
2857
- appId: string;
2858
- entityId: string;
2859
- };
2860
- }[];
2861
- externalCollectionDetails?: {
2862
- collectorName: string;
2863
- };
2864
- };
2865
- billingStatus?: {
2866
- currentCycle: number;
2867
- latestPaymentData?: {
2868
- invoiceId: string;
2869
- paymentStatus: PaymentStatus;
2870
- totals?: {
2871
- totalPrice: string;
2872
- subtotal: string;
2873
- };
2874
- };
2875
- gracePeriodData?: {
2876
- automaticRetryData?: {
2877
- enabled: boolean;
2878
- };
2879
- };
2880
- };
2881
- policies?: {
2882
- customerCanCancel: boolean;
2883
- businessCanExtend: boolean;
2884
- allowEndOfCycleCancellation: boolean;
2885
- };
2886
- pauseInfo?: {
2887
- pausePolicy: PausePolicy;
2888
- pauseAt: PauseAt;
2889
- resumeAt: ResumeAt;
2890
- };
2891
- cancellationInfo?: {
2892
- initiator: HistoryActionInitiator;
2893
- };
2894
- pendingUpdateData?: {
2895
- itemsToUpdate: {
2896
- _id: string;
2897
- pricingModel?: {
2898
- fixedPrice?: {
2899
- itemPrice: string;
2900
- };
2901
- };
2902
- tax?: {
2903
- amount: string;
2904
- percentage: string;
2905
- };
2906
- }[];
2907
- itemsToAdd: {
2908
- name: string;
2909
- catalogReference?: {
2910
- catalogItemId: string;
2911
- };
2912
- category: ItemCategory;
2913
- quantity: number;
2914
- pricingModel?: {
2915
- fixedPrice?: {
2916
- itemPrice: string;
2917
- };
2918
- };
2919
- tax?: {
2920
- amount: string;
2921
- percentage: string;
2922
- };
2923
- discounts: {
2924
- amount: string;
2925
- percentage: string;
2926
- cycles?: {
2927
- cycleFrom: number;
2928
- };
2929
- origin?: {
2930
- appId: string;
2931
- entityId: string;
2932
- };
2933
- }[];
2934
- applicationFee?: {
2935
- amount: string;
2936
- discounts: {
2937
- amount: string;
2938
- percentage: string;
2939
- cycles?: {
2940
- cycleFrom: number;
2941
- };
2942
- origin?: {
2943
- appId: string;
2944
- entityId: string;
2945
- };
2946
- }[];
2947
- };
2948
- }[];
2949
- numberOfRequests: number;
2950
- };
2951
- specificDatePendingUpdateData?: {
2952
- updateData?: {
2953
- itemsToUpdate: {
2954
- _id: string;
2955
- pricingModel?: {
2956
- fixedPrice?: {
2957
- itemPrice: string;
2958
- };
2959
- };
2960
- tax?: {
2961
- amount: string;
2962
- percentage: string;
2963
- };
2964
- }[];
2965
- itemsToAdd: {
2966
- name: string;
2967
- catalogReference?: {
2968
- catalogItemId: string;
2969
- };
2970
- category: ItemCategory;
2971
- quantity: number;
2972
- pricingModel?: {
2973
- fixedPrice?: {
2974
- itemPrice: string;
2975
- };
2976
- };
2977
- tax?: {
2978
- amount: string;
2979
- percentage: string;
2980
- };
2981
- discounts: {
2982
- amount: string;
2983
- percentage: string;
2984
- cycles?: {
2985
- cycleFrom: number;
2986
- };
2987
- origin?: {
2988
- appId: string;
2989
- entityId: string;
2990
- };
2991
- }[];
2992
- applicationFee?: {
2993
- amount: string;
2994
- discounts: {
2995
- amount: string;
2996
- percentage: string;
2997
- cycles?: {
2998
- cycleFrom: number;
2999
- };
3000
- origin?: {
3001
- appId: string;
3002
- entityId: string;
3003
- };
3004
- }[];
3005
- };
3006
- }[];
3007
- numberOfRequests: number;
3008
- };
3009
- };
3010
- items: {
3011
- name: string;
3012
- catalogReference?: {
3013
- catalogItemId: string;
3014
- };
3015
- category: ItemCategory;
3016
- quantity: number;
3017
- pricingModel?: {
3018
- fixedPrice?: {
3019
- itemPrice: string;
3020
- };
3021
- };
3022
- tax?: {
3023
- amount: string;
3024
- percentage: string;
3025
- };
3026
- discounts: {
3027
- amount: string;
3028
- percentage: string;
3029
- cycles?: {
3030
- cycleFrom: number;
3031
- };
3032
- origin?: {
3033
- appId: string;
3034
- entityId: string;
3035
- };
3036
- }[];
3037
- applicationFee?: {
3038
- amount: string;
3039
- discounts: {
3040
- amount: string;
3041
- percentage: string;
3042
- cycles?: {
3043
- cycleFrom: number;
3044
- };
3045
- origin?: {
3046
- appId: string;
3047
- entityId: string;
3048
- };
3049
- }[];
3050
- };
3051
- }[];
3052
- };
3006
+ subscription?: SubscriptionNonNullableFields;
3007
+ }
3008
+ interface ActionNonNullableFields {
3009
+ actionType: ActionType;
3010
+ pausePolicies: PausePolicy[];
3011
+ pauseAt: PauseAt[];
3012
+ resumeAt: ResumeAt[];
3013
+ extendPolicies: ExtendPolicyType[];
3014
+ }
3015
+ interface CustomerAllowedActionsResponseNonNullableFields {
3016
+ actions: ActionNonNullableFields[];
3017
+ }
3018
+ interface RecurringNonNullableFields {
3019
+ cycleNumber: number;
3020
+ }
3021
+ interface InvoiceDiscountNonNullableFields {
3022
+ amount: string;
3023
+ percentage: string;
3024
+ origin?: DiscountOriginNonNullableFields;
3025
+ }
3026
+ interface InvoiceApplicationFeeNonNullableFields {
3027
+ amount: string;
3028
+ discount?: InvoiceDiscountNonNullableFields;
3029
+ }
3030
+ interface PriceDetailsNonNullableFields {
3031
+ price: string;
3032
+ tax?: TaxNonNullableFields;
3033
+ discount?: InvoiceDiscountNonNullableFields;
3034
+ applicationFeeDetails?: InvoiceApplicationFeeNonNullableFields;
3035
+ }
3036
+ interface InvoiceItemNonNullableFields {
3037
+ recurring?: RecurringNonNullableFields;
3038
+ _id: string;
3039
+ subscriptionId: string;
3040
+ name: string;
3041
+ catalogReference?: CatalogReferenceNonNullableFields;
3042
+ category: ItemCategory;
3043
+ quantity: number;
3044
+ priceDetails?: PriceDetailsNonNullableFields;
3045
+ totals?: TotalsNonNullableFields;
3046
+ }
3047
+ interface SubscriptionChargeNonNullableFields {
3048
+ cycle: number;
3049
+ totals?: TotalsNonNullableFields;
3050
+ invoiceItems: InvoiceItemNonNullableFields[];
3051
+ discount?: InvoiceDiscountNonNullableFields;
3052
+ }
3053
+ interface CustomerListUpcomingChargesResponseNonNullableFields {
3054
+ upcomingCharge?: SubscriptionChargeNonNullableFields;
3055
+ }
3056
+ interface InitiatePaymentMethodSetupResponseNonNullableFields {
3057
+ paymentOrderId: string;
3053
3058
  }
3054
3059
  interface UpdateSubscriptionBillingDateResponseNonNullableFields {
3055
- subscription?: {
3056
- name: string;
3057
- customer?: {
3058
- visitorId: string;
3059
- contactId: string;
3060
- memberId: string;
3061
- accountId: string;
3062
- };
3063
- status: SubscriptionStatusEnumSubscriptionStatus;
3064
- billingSettings?: {
3065
- currency: string;
3066
- paymentMethod?: {
3067
- _id: string;
3068
- };
3069
- collectionMethod: CollectionMethod;
3070
- cycleDuration?: {
3071
- unit: DurationUnit;
3072
- };
3073
- cycleAutoRenew: boolean;
3074
- freeTrialDuration?: {
3075
- unit: DurationUnit;
3076
- };
3077
- taxSettings?: {
3078
- inclusive: boolean;
3079
- };
3080
- additionalFees: {
3081
- name: string;
3082
- amount: string;
3083
- trigger: AdditionalFeeTrigger;
3084
- tax?: {
3085
- amount: string;
3086
- percentage: string;
3087
- };
3088
- }[];
3089
- discounts: {
3090
- amount: string;
3091
- percentage: string;
3092
- cycles?: {
3093
- cycleFrom: number;
3094
- };
3095
- origin?: {
3096
- appId: string;
3097
- entityId: string;
3098
- };
3099
- }[];
3100
- externalCollectionDetails?: {
3101
- collectorName: string;
3102
- };
3103
- };
3104
- billingStatus?: {
3105
- currentCycle: number;
3106
- latestPaymentData?: {
3107
- invoiceId: string;
3108
- paymentStatus: PaymentStatus;
3109
- totals?: {
3110
- totalPrice: string;
3111
- subtotal: string;
3112
- };
3113
- };
3114
- gracePeriodData?: {
3115
- automaticRetryData?: {
3116
- enabled: boolean;
3117
- };
3118
- };
3119
- };
3120
- policies?: {
3121
- customerCanCancel: boolean;
3122
- businessCanExtend: boolean;
3123
- allowEndOfCycleCancellation: boolean;
3124
- };
3125
- pauseInfo?: {
3126
- pausePolicy: PausePolicy;
3127
- pauseAt: PauseAt;
3128
- resumeAt: ResumeAt;
3129
- };
3130
- cancellationInfo?: {
3131
- initiator: HistoryActionInitiator;
3132
- };
3133
- pendingUpdateData?: {
3134
- itemsToUpdate: {
3135
- _id: string;
3136
- pricingModel?: {
3137
- fixedPrice?: {
3138
- itemPrice: string;
3139
- };
3140
- };
3141
- tax?: {
3142
- amount: string;
3143
- percentage: string;
3144
- };
3145
- }[];
3146
- itemsToAdd: {
3147
- name: string;
3148
- catalogReference?: {
3149
- catalogItemId: string;
3150
- };
3151
- category: ItemCategory;
3152
- quantity: number;
3153
- pricingModel?: {
3154
- fixedPrice?: {
3155
- itemPrice: string;
3156
- };
3157
- };
3158
- tax?: {
3159
- amount: string;
3160
- percentage: string;
3161
- };
3162
- discounts: {
3163
- amount: string;
3164
- percentage: string;
3165
- cycles?: {
3166
- cycleFrom: number;
3167
- };
3168
- origin?: {
3169
- appId: string;
3170
- entityId: string;
3171
- };
3172
- }[];
3173
- applicationFee?: {
3174
- amount: string;
3175
- discounts: {
3176
- amount: string;
3177
- percentage: string;
3178
- cycles?: {
3179
- cycleFrom: number;
3180
- };
3181
- origin?: {
3182
- appId: string;
3183
- entityId: string;
3184
- };
3185
- }[];
3186
- };
3187
- }[];
3188
- numberOfRequests: number;
3189
- };
3190
- specificDatePendingUpdateData?: {
3191
- updateData?: {
3192
- itemsToUpdate: {
3193
- _id: string;
3194
- pricingModel?: {
3195
- fixedPrice?: {
3196
- itemPrice: string;
3197
- };
3198
- };
3199
- tax?: {
3200
- amount: string;
3201
- percentage: string;
3202
- };
3203
- }[];
3204
- itemsToAdd: {
3205
- name: string;
3206
- catalogReference?: {
3207
- catalogItemId: string;
3208
- };
3209
- category: ItemCategory;
3210
- quantity: number;
3211
- pricingModel?: {
3212
- fixedPrice?: {
3213
- itemPrice: string;
3214
- };
3215
- };
3216
- tax?: {
3217
- amount: string;
3218
- percentage: string;
3219
- };
3220
- discounts: {
3221
- amount: string;
3222
- percentage: string;
3223
- cycles?: {
3224
- cycleFrom: number;
3225
- };
3226
- origin?: {
3227
- appId: string;
3228
- entityId: string;
3229
- };
3230
- }[];
3231
- applicationFee?: {
3232
- amount: string;
3233
- discounts: {
3234
- amount: string;
3235
- percentage: string;
3236
- cycles?: {
3237
- cycleFrom: number;
3238
- };
3239
- origin?: {
3240
- appId: string;
3241
- entityId: string;
3242
- };
3243
- }[];
3244
- };
3245
- }[];
3246
- numberOfRequests: number;
3247
- };
3248
- };
3249
- items: {
3250
- name: string;
3251
- catalogReference?: {
3252
- catalogItemId: string;
3253
- };
3254
- category: ItemCategory;
3255
- quantity: number;
3256
- pricingModel?: {
3257
- fixedPrice?: {
3258
- itemPrice: string;
3259
- };
3260
- };
3261
- tax?: {
3262
- amount: string;
3263
- percentage: string;
3264
- };
3265
- discounts: {
3266
- amount: string;
3267
- percentage: string;
3268
- cycles?: {
3269
- cycleFrom: number;
3270
- };
3271
- origin?: {
3272
- appId: string;
3273
- entityId: string;
3274
- };
3275
- }[];
3276
- applicationFee?: {
3277
- amount: string;
3278
- discounts: {
3279
- amount: string;
3280
- percentage: string;
3281
- cycles?: {
3282
- cycleFrom: number;
3283
- };
3284
- origin?: {
3285
- appId: string;
3286
- entityId: string;
3287
- };
3288
- }[];
3289
- };
3290
- }[];
3291
- };
3060
+ subscription?: SubscriptionNonNullableFields;
3292
3061
  }
3293
3062
  interface CancelSubscriptionResponseNonNullableFields {
3294
- subscription?: {
3295
- name: string;
3296
- customer?: {
3297
- visitorId: string;
3298
- contactId: string;
3299
- memberId: string;
3300
- accountId: string;
3301
- };
3302
- status: SubscriptionStatusEnumSubscriptionStatus;
3303
- billingSettings?: {
3304
- currency: string;
3305
- paymentMethod?: {
3306
- _id: string;
3307
- };
3308
- collectionMethod: CollectionMethod;
3309
- cycleDuration?: {
3310
- unit: DurationUnit;
3311
- };
3312
- cycleAutoRenew: boolean;
3313
- freeTrialDuration?: {
3314
- unit: DurationUnit;
3315
- };
3316
- taxSettings?: {
3317
- inclusive: boolean;
3318
- };
3319
- additionalFees: {
3320
- name: string;
3321
- amount: string;
3322
- trigger: AdditionalFeeTrigger;
3323
- tax?: {
3324
- amount: string;
3325
- percentage: string;
3326
- };
3327
- }[];
3328
- discounts: {
3329
- amount: string;
3330
- percentage: string;
3331
- cycles?: {
3332
- cycleFrom: number;
3333
- };
3334
- origin?: {
3335
- appId: string;
3336
- entityId: string;
3337
- };
3338
- }[];
3339
- externalCollectionDetails?: {
3340
- collectorName: string;
3341
- };
3342
- };
3343
- billingStatus?: {
3344
- currentCycle: number;
3345
- latestPaymentData?: {
3346
- invoiceId: string;
3347
- paymentStatus: PaymentStatus;
3348
- totals?: {
3349
- totalPrice: string;
3350
- subtotal: string;
3351
- };
3352
- };
3353
- gracePeriodData?: {
3354
- automaticRetryData?: {
3355
- enabled: boolean;
3356
- };
3357
- };
3358
- };
3359
- policies?: {
3360
- customerCanCancel: boolean;
3361
- businessCanExtend: boolean;
3362
- allowEndOfCycleCancellation: boolean;
3363
- };
3364
- pauseInfo?: {
3365
- pausePolicy: PausePolicy;
3366
- pauseAt: PauseAt;
3367
- resumeAt: ResumeAt;
3368
- };
3369
- cancellationInfo?: {
3370
- initiator: HistoryActionInitiator;
3371
- };
3372
- pendingUpdateData?: {
3373
- itemsToUpdate: {
3374
- _id: string;
3375
- pricingModel?: {
3376
- fixedPrice?: {
3377
- itemPrice: string;
3378
- };
3379
- };
3380
- tax?: {
3381
- amount: string;
3382
- percentage: string;
3383
- };
3384
- }[];
3385
- itemsToAdd: {
3386
- name: string;
3387
- catalogReference?: {
3388
- catalogItemId: string;
3389
- };
3390
- category: ItemCategory;
3391
- quantity: number;
3392
- pricingModel?: {
3393
- fixedPrice?: {
3394
- itemPrice: string;
3395
- };
3396
- };
3397
- tax?: {
3398
- amount: string;
3399
- percentage: string;
3400
- };
3401
- discounts: {
3402
- amount: string;
3403
- percentage: string;
3404
- cycles?: {
3405
- cycleFrom: number;
3406
- };
3407
- origin?: {
3408
- appId: string;
3409
- entityId: string;
3410
- };
3411
- }[];
3412
- applicationFee?: {
3413
- amount: string;
3414
- discounts: {
3415
- amount: string;
3416
- percentage: string;
3417
- cycles?: {
3418
- cycleFrom: number;
3419
- };
3420
- origin?: {
3421
- appId: string;
3422
- entityId: string;
3423
- };
3424
- }[];
3425
- };
3426
- }[];
3427
- numberOfRequests: number;
3428
- };
3429
- specificDatePendingUpdateData?: {
3430
- updateData?: {
3431
- itemsToUpdate: {
3432
- _id: string;
3433
- pricingModel?: {
3434
- fixedPrice?: {
3435
- itemPrice: string;
3436
- };
3437
- };
3438
- tax?: {
3439
- amount: string;
3440
- percentage: string;
3441
- };
3442
- }[];
3443
- itemsToAdd: {
3444
- name: string;
3445
- catalogReference?: {
3446
- catalogItemId: string;
3447
- };
3448
- category: ItemCategory;
3449
- quantity: number;
3450
- pricingModel?: {
3451
- fixedPrice?: {
3452
- itemPrice: string;
3453
- };
3454
- };
3455
- tax?: {
3456
- amount: string;
3457
- percentage: string;
3458
- };
3459
- discounts: {
3460
- amount: string;
3461
- percentage: string;
3462
- cycles?: {
3463
- cycleFrom: number;
3464
- };
3465
- origin?: {
3466
- appId: string;
3467
- entityId: string;
3468
- };
3469
- }[];
3470
- applicationFee?: {
3471
- amount: string;
3472
- discounts: {
3473
- amount: string;
3474
- percentage: string;
3475
- cycles?: {
3476
- cycleFrom: number;
3477
- };
3478
- origin?: {
3479
- appId: string;
3480
- entityId: string;
3481
- };
3482
- }[];
3483
- };
3484
- }[];
3485
- numberOfRequests: number;
3486
- };
3487
- };
3488
- items: {
3489
- name: string;
3490
- catalogReference?: {
3491
- catalogItemId: string;
3492
- };
3493
- category: ItemCategory;
3494
- quantity: number;
3495
- pricingModel?: {
3496
- fixedPrice?: {
3497
- itemPrice: string;
3498
- };
3499
- };
3500
- tax?: {
3501
- amount: string;
3502
- percentage: string;
3503
- };
3504
- discounts: {
3505
- amount: string;
3506
- percentage: string;
3507
- cycles?: {
3508
- cycleFrom: number;
3509
- };
3510
- origin?: {
3511
- appId: string;
3512
- entityId: string;
3513
- };
3514
- }[];
3515
- applicationFee?: {
3516
- amount: string;
3517
- discounts: {
3518
- amount: string;
3519
- percentage: string;
3520
- cycles?: {
3521
- cycleFrom: number;
3522
- };
3523
- origin?: {
3524
- appId: string;
3525
- entityId: string;
3526
- };
3527
- }[];
3528
- };
3529
- }[];
3530
- };
3063
+ subscription?: SubscriptionNonNullableFields;
3531
3064
  }
3532
3065
  interface PauseSubscriptionResponseNonNullableFields {
3533
- subscription?: {
3534
- name: string;
3535
- customer?: {
3536
- visitorId: string;
3537
- contactId: string;
3538
- memberId: string;
3539
- accountId: string;
3540
- };
3541
- status: SubscriptionStatusEnumSubscriptionStatus;
3542
- billingSettings?: {
3543
- currency: string;
3544
- paymentMethod?: {
3545
- _id: string;
3546
- };
3547
- collectionMethod: CollectionMethod;
3548
- cycleDuration?: {
3549
- unit: DurationUnit;
3550
- };
3551
- cycleAutoRenew: boolean;
3552
- freeTrialDuration?: {
3553
- unit: DurationUnit;
3554
- };
3555
- taxSettings?: {
3556
- inclusive: boolean;
3557
- };
3558
- additionalFees: {
3559
- name: string;
3560
- amount: string;
3561
- trigger: AdditionalFeeTrigger;
3562
- tax?: {
3563
- amount: string;
3564
- percentage: string;
3565
- };
3566
- }[];
3567
- discounts: {
3568
- amount: string;
3569
- percentage: string;
3570
- cycles?: {
3571
- cycleFrom: number;
3572
- };
3573
- origin?: {
3574
- appId: string;
3575
- entityId: string;
3576
- };
3577
- }[];
3578
- externalCollectionDetails?: {
3579
- collectorName: string;
3580
- };
3581
- };
3582
- billingStatus?: {
3583
- currentCycle: number;
3584
- latestPaymentData?: {
3585
- invoiceId: string;
3586
- paymentStatus: PaymentStatus;
3587
- totals?: {
3588
- totalPrice: string;
3589
- subtotal: string;
3590
- };
3591
- };
3592
- gracePeriodData?: {
3593
- automaticRetryData?: {
3594
- enabled: boolean;
3595
- };
3596
- };
3597
- };
3598
- policies?: {
3599
- customerCanCancel: boolean;
3600
- businessCanExtend: boolean;
3601
- allowEndOfCycleCancellation: boolean;
3602
- };
3603
- pauseInfo?: {
3604
- pausePolicy: PausePolicy;
3605
- pauseAt: PauseAt;
3606
- resumeAt: ResumeAt;
3607
- };
3608
- cancellationInfo?: {
3609
- initiator: HistoryActionInitiator;
3610
- };
3611
- pendingUpdateData?: {
3612
- itemsToUpdate: {
3613
- _id: string;
3614
- pricingModel?: {
3615
- fixedPrice?: {
3616
- itemPrice: string;
3617
- };
3618
- };
3619
- tax?: {
3620
- amount: string;
3621
- percentage: string;
3622
- };
3623
- }[];
3624
- itemsToAdd: {
3625
- name: string;
3626
- catalogReference?: {
3627
- catalogItemId: string;
3628
- };
3629
- category: ItemCategory;
3630
- quantity: number;
3631
- pricingModel?: {
3632
- fixedPrice?: {
3633
- itemPrice: string;
3634
- };
3635
- };
3636
- tax?: {
3637
- amount: string;
3638
- percentage: string;
3639
- };
3640
- discounts: {
3641
- amount: string;
3642
- percentage: string;
3643
- cycles?: {
3644
- cycleFrom: number;
3645
- };
3646
- origin?: {
3647
- appId: string;
3648
- entityId: string;
3649
- };
3650
- }[];
3651
- applicationFee?: {
3652
- amount: string;
3653
- discounts: {
3654
- amount: string;
3655
- percentage: string;
3656
- cycles?: {
3657
- cycleFrom: number;
3658
- };
3659
- origin?: {
3660
- appId: string;
3661
- entityId: string;
3662
- };
3663
- }[];
3664
- };
3665
- }[];
3666
- numberOfRequests: number;
3667
- };
3668
- specificDatePendingUpdateData?: {
3669
- updateData?: {
3670
- itemsToUpdate: {
3671
- _id: string;
3672
- pricingModel?: {
3673
- fixedPrice?: {
3674
- itemPrice: string;
3675
- };
3676
- };
3677
- tax?: {
3678
- amount: string;
3679
- percentage: string;
3680
- };
3681
- }[];
3682
- itemsToAdd: {
3683
- name: string;
3684
- catalogReference?: {
3685
- catalogItemId: string;
3686
- };
3687
- category: ItemCategory;
3688
- quantity: number;
3689
- pricingModel?: {
3690
- fixedPrice?: {
3691
- itemPrice: string;
3692
- };
3693
- };
3694
- tax?: {
3695
- amount: string;
3696
- percentage: string;
3697
- };
3698
- discounts: {
3699
- amount: string;
3700
- percentage: string;
3701
- cycles?: {
3702
- cycleFrom: number;
3703
- };
3704
- origin?: {
3705
- appId: string;
3706
- entityId: string;
3707
- };
3708
- }[];
3709
- applicationFee?: {
3710
- amount: string;
3711
- discounts: {
3712
- amount: string;
3713
- percentage: string;
3714
- cycles?: {
3715
- cycleFrom: number;
3716
- };
3717
- origin?: {
3718
- appId: string;
3719
- entityId: string;
3720
- };
3721
- }[];
3722
- };
3723
- }[];
3724
- numberOfRequests: number;
3725
- };
3726
- };
3727
- items: {
3728
- name: string;
3729
- catalogReference?: {
3730
- catalogItemId: string;
3731
- };
3732
- category: ItemCategory;
3733
- quantity: number;
3734
- pricingModel?: {
3735
- fixedPrice?: {
3736
- itemPrice: string;
3737
- };
3738
- };
3739
- tax?: {
3740
- amount: string;
3741
- percentage: string;
3742
- };
3743
- discounts: {
3744
- amount: string;
3745
- percentage: string;
3746
- cycles?: {
3747
- cycleFrom: number;
3748
- };
3749
- origin?: {
3750
- appId: string;
3751
- entityId: string;
3752
- };
3753
- }[];
3754
- applicationFee?: {
3755
- amount: string;
3756
- discounts: {
3757
- amount: string;
3758
- percentage: string;
3759
- cycles?: {
3760
- cycleFrom: number;
3761
- };
3762
- origin?: {
3763
- appId: string;
3764
- entityId: string;
3765
- };
3766
- }[];
3767
- };
3768
- }[];
3769
- };
3066
+ subscription?: SubscriptionNonNullableFields;
3770
3067
  }
3771
3068
  interface ResumeSubscriptionResponseNonNullableFields {
3772
- subscription?: {
3773
- name: string;
3774
- customer?: {
3775
- visitorId: string;
3776
- contactId: string;
3777
- memberId: string;
3778
- accountId: string;
3779
- };
3780
- status: SubscriptionStatusEnumSubscriptionStatus;
3781
- billingSettings?: {
3782
- currency: string;
3783
- paymentMethod?: {
3784
- _id: string;
3785
- };
3786
- collectionMethod: CollectionMethod;
3787
- cycleDuration?: {
3788
- unit: DurationUnit;
3789
- };
3790
- cycleAutoRenew: boolean;
3791
- freeTrialDuration?: {
3792
- unit: DurationUnit;
3793
- };
3794
- taxSettings?: {
3795
- inclusive: boolean;
3796
- };
3797
- additionalFees: {
3798
- name: string;
3799
- amount: string;
3800
- trigger: AdditionalFeeTrigger;
3801
- tax?: {
3802
- amount: string;
3803
- percentage: string;
3804
- };
3805
- }[];
3806
- discounts: {
3807
- amount: string;
3808
- percentage: string;
3809
- cycles?: {
3810
- cycleFrom: number;
3811
- };
3812
- origin?: {
3813
- appId: string;
3814
- entityId: string;
3815
- };
3816
- }[];
3817
- externalCollectionDetails?: {
3818
- collectorName: string;
3819
- };
3820
- };
3821
- billingStatus?: {
3822
- currentCycle: number;
3823
- latestPaymentData?: {
3824
- invoiceId: string;
3825
- paymentStatus: PaymentStatus;
3826
- totals?: {
3827
- totalPrice: string;
3828
- subtotal: string;
3829
- };
3830
- };
3831
- gracePeriodData?: {
3832
- automaticRetryData?: {
3833
- enabled: boolean;
3834
- };
3835
- };
3836
- };
3837
- policies?: {
3838
- customerCanCancel: boolean;
3839
- businessCanExtend: boolean;
3840
- allowEndOfCycleCancellation: boolean;
3841
- };
3842
- pauseInfo?: {
3843
- pausePolicy: PausePolicy;
3844
- pauseAt: PauseAt;
3845
- resumeAt: ResumeAt;
3846
- };
3847
- cancellationInfo?: {
3848
- initiator: HistoryActionInitiator;
3849
- };
3850
- pendingUpdateData?: {
3851
- itemsToUpdate: {
3852
- _id: string;
3853
- pricingModel?: {
3854
- fixedPrice?: {
3855
- itemPrice: string;
3856
- };
3857
- };
3858
- tax?: {
3859
- amount: string;
3860
- percentage: string;
3861
- };
3862
- }[];
3863
- itemsToAdd: {
3864
- name: string;
3865
- catalogReference?: {
3866
- catalogItemId: string;
3867
- };
3868
- category: ItemCategory;
3869
- quantity: number;
3870
- pricingModel?: {
3871
- fixedPrice?: {
3872
- itemPrice: string;
3873
- };
3874
- };
3875
- tax?: {
3876
- amount: string;
3877
- percentage: string;
3878
- };
3879
- discounts: {
3880
- amount: string;
3881
- percentage: string;
3882
- cycles?: {
3883
- cycleFrom: number;
3884
- };
3885
- origin?: {
3886
- appId: string;
3887
- entityId: string;
3888
- };
3889
- }[];
3890
- applicationFee?: {
3891
- amount: string;
3892
- discounts: {
3893
- amount: string;
3894
- percentage: string;
3895
- cycles?: {
3896
- cycleFrom: number;
3897
- };
3898
- origin?: {
3899
- appId: string;
3900
- entityId: string;
3901
- };
3902
- }[];
3903
- };
3904
- }[];
3905
- numberOfRequests: number;
3906
- };
3907
- specificDatePendingUpdateData?: {
3908
- updateData?: {
3909
- itemsToUpdate: {
3910
- _id: string;
3911
- pricingModel?: {
3912
- fixedPrice?: {
3913
- itemPrice: string;
3914
- };
3915
- };
3916
- tax?: {
3917
- amount: string;
3918
- percentage: string;
3919
- };
3920
- }[];
3921
- itemsToAdd: {
3922
- name: string;
3923
- catalogReference?: {
3924
- catalogItemId: string;
3925
- };
3926
- category: ItemCategory;
3927
- quantity: number;
3928
- pricingModel?: {
3929
- fixedPrice?: {
3930
- itemPrice: string;
3931
- };
3932
- };
3933
- tax?: {
3934
- amount: string;
3935
- percentage: string;
3936
- };
3937
- discounts: {
3938
- amount: string;
3939
- percentage: string;
3940
- cycles?: {
3941
- cycleFrom: number;
3942
- };
3943
- origin?: {
3944
- appId: string;
3945
- entityId: string;
3946
- };
3947
- }[];
3948
- applicationFee?: {
3949
- amount: string;
3950
- discounts: {
3951
- amount: string;
3952
- percentage: string;
3953
- cycles?: {
3954
- cycleFrom: number;
3955
- };
3956
- origin?: {
3957
- appId: string;
3958
- entityId: string;
3959
- };
3960
- }[];
3961
- };
3962
- }[];
3963
- numberOfRequests: number;
3964
- };
3965
- };
3966
- items: {
3967
- name: string;
3968
- catalogReference?: {
3969
- catalogItemId: string;
3970
- };
3971
- category: ItemCategory;
3972
- quantity: number;
3973
- pricingModel?: {
3974
- fixedPrice?: {
3975
- itemPrice: string;
3976
- };
3977
- };
3978
- tax?: {
3979
- amount: string;
3980
- percentage: string;
3981
- };
3982
- discounts: {
3983
- amount: string;
3984
- percentage: string;
3985
- cycles?: {
3986
- cycleFrom: number;
3987
- };
3988
- origin?: {
3989
- appId: string;
3990
- entityId: string;
3991
- };
3992
- }[];
3993
- applicationFee?: {
3994
- amount: string;
3995
- discounts: {
3996
- amount: string;
3997
- percentage: string;
3998
- cycles?: {
3999
- cycleFrom: number;
4000
- };
4001
- origin?: {
4002
- appId: string;
4003
- entityId: string;
4004
- };
4005
- }[];
4006
- };
4007
- }[];
4008
- };
4009
- }
4010
- interface QuerySubscriptionsResponseNonNullableFields {
4011
- subscriptions: {
4012
- name: string;
4013
- customer?: {
4014
- visitorId: string;
4015
- contactId: string;
4016
- memberId: string;
4017
- accountId: string;
4018
- };
4019
- status: SubscriptionStatusEnumSubscriptionStatus;
4020
- billingSettings?: {
4021
- currency: string;
4022
- paymentMethod?: {
4023
- _id: string;
4024
- };
4025
- collectionMethod: CollectionMethod;
4026
- cycleDuration?: {
4027
- unit: DurationUnit;
4028
- };
4029
- cycleAutoRenew: boolean;
4030
- freeTrialDuration?: {
4031
- unit: DurationUnit;
4032
- };
4033
- taxSettings?: {
4034
- inclusive: boolean;
4035
- };
4036
- additionalFees: {
4037
- name: string;
4038
- amount: string;
4039
- trigger: AdditionalFeeTrigger;
4040
- tax?: {
4041
- amount: string;
4042
- percentage: string;
4043
- };
4044
- }[];
4045
- discounts: {
4046
- amount: string;
4047
- percentage: string;
4048
- cycles?: {
4049
- cycleFrom: number;
4050
- };
4051
- origin?: {
4052
- appId: string;
4053
- entityId: string;
4054
- };
4055
- }[];
4056
- externalCollectionDetails?: {
4057
- collectorName: string;
4058
- };
4059
- };
4060
- billingStatus?: {
4061
- currentCycle: number;
4062
- latestPaymentData?: {
4063
- invoiceId: string;
4064
- paymentStatus: PaymentStatus;
4065
- totals?: {
4066
- totalPrice: string;
4067
- subtotal: string;
4068
- };
4069
- };
4070
- gracePeriodData?: {
4071
- automaticRetryData?: {
4072
- enabled: boolean;
4073
- };
4074
- };
4075
- };
4076
- policies?: {
4077
- customerCanCancel: boolean;
4078
- businessCanExtend: boolean;
4079
- allowEndOfCycleCancellation: boolean;
4080
- };
4081
- pauseInfo?: {
4082
- pausePolicy: PausePolicy;
4083
- pauseAt: PauseAt;
4084
- resumeAt: ResumeAt;
4085
- };
4086
- cancellationInfo?: {
4087
- initiator: HistoryActionInitiator;
4088
- };
4089
- pendingUpdateData?: {
4090
- itemsToUpdate: {
4091
- _id: string;
4092
- pricingModel?: {
4093
- fixedPrice?: {
4094
- itemPrice: string;
4095
- };
4096
- };
4097
- tax?: {
4098
- amount: string;
4099
- percentage: string;
4100
- };
4101
- }[];
4102
- itemsToAdd: {
4103
- name: string;
4104
- catalogReference?: {
4105
- catalogItemId: string;
4106
- };
4107
- category: ItemCategory;
4108
- quantity: number;
4109
- pricingModel?: {
4110
- fixedPrice?: {
4111
- itemPrice: string;
4112
- };
4113
- };
4114
- tax?: {
4115
- amount: string;
4116
- percentage: string;
4117
- };
4118
- discounts: {
4119
- amount: string;
4120
- percentage: string;
4121
- cycles?: {
4122
- cycleFrom: number;
4123
- };
4124
- origin?: {
4125
- appId: string;
4126
- entityId: string;
4127
- };
4128
- }[];
4129
- applicationFee?: {
4130
- amount: string;
4131
- discounts: {
4132
- amount: string;
4133
- percentage: string;
4134
- cycles?: {
4135
- cycleFrom: number;
4136
- };
4137
- origin?: {
4138
- appId: string;
4139
- entityId: string;
4140
- };
4141
- }[];
4142
- };
4143
- }[];
4144
- numberOfRequests: number;
4145
- };
4146
- specificDatePendingUpdateData?: {
4147
- updateData?: {
4148
- itemsToUpdate: {
4149
- _id: string;
4150
- pricingModel?: {
4151
- fixedPrice?: {
4152
- itemPrice: string;
4153
- };
4154
- };
4155
- tax?: {
4156
- amount: string;
4157
- percentage: string;
4158
- };
4159
- }[];
4160
- itemsToAdd: {
4161
- name: string;
4162
- catalogReference?: {
4163
- catalogItemId: string;
4164
- };
4165
- category: ItemCategory;
4166
- quantity: number;
4167
- pricingModel?: {
4168
- fixedPrice?: {
4169
- itemPrice: string;
4170
- };
4171
- };
4172
- tax?: {
4173
- amount: string;
4174
- percentage: string;
4175
- };
4176
- discounts: {
4177
- amount: string;
4178
- percentage: string;
4179
- cycles?: {
4180
- cycleFrom: number;
4181
- };
4182
- origin?: {
4183
- appId: string;
4184
- entityId: string;
4185
- };
4186
- }[];
4187
- applicationFee?: {
4188
- amount: string;
4189
- discounts: {
4190
- amount: string;
4191
- percentage: string;
4192
- cycles?: {
4193
- cycleFrom: number;
4194
- };
4195
- origin?: {
4196
- appId: string;
4197
- entityId: string;
4198
- };
4199
- }[];
4200
- };
4201
- }[];
4202
- numberOfRequests: number;
4203
- };
4204
- };
4205
- items: {
4206
- name: string;
4207
- catalogReference?: {
4208
- catalogItemId: string;
4209
- };
4210
- category: ItemCategory;
4211
- quantity: number;
4212
- pricingModel?: {
4213
- fixedPrice?: {
4214
- itemPrice: string;
4215
- };
4216
- };
4217
- tax?: {
4218
- amount: string;
4219
- percentage: string;
4220
- };
4221
- discounts: {
4222
- amount: string;
4223
- percentage: string;
4224
- cycles?: {
4225
- cycleFrom: number;
4226
- };
4227
- origin?: {
4228
- appId: string;
4229
- entityId: string;
4230
- };
4231
- }[];
4232
- applicationFee?: {
4233
- amount: string;
4234
- discounts: {
4235
- amount: string;
4236
- percentage: string;
4237
- cycles?: {
4238
- cycleFrom: number;
4239
- };
4240
- origin?: {
4241
- appId: string;
4242
- entityId: string;
4243
- };
4244
- }[];
4245
- };
4246
- }[];
4247
- }[];
3069
+ subscription?: SubscriptionNonNullableFields;
4248
3070
  }
4249
3071
  interface SearchSubscriptionsResponseNonNullableFields {
4250
- subscriptions: {
4251
- name: string;
4252
- customer?: {
4253
- visitorId: string;
4254
- contactId: string;
4255
- memberId: string;
4256
- accountId: string;
4257
- };
4258
- status: SubscriptionStatusEnumSubscriptionStatus;
4259
- billingSettings?: {
4260
- currency: string;
4261
- paymentMethod?: {
4262
- _id: string;
4263
- };
4264
- collectionMethod: CollectionMethod;
4265
- cycleDuration?: {
4266
- unit: DurationUnit;
4267
- };
4268
- cycleAutoRenew: boolean;
4269
- freeTrialDuration?: {
4270
- unit: DurationUnit;
4271
- };
4272
- taxSettings?: {
4273
- inclusive: boolean;
4274
- };
4275
- additionalFees: {
4276
- name: string;
4277
- amount: string;
4278
- trigger: AdditionalFeeTrigger;
4279
- tax?: {
4280
- amount: string;
4281
- percentage: string;
4282
- };
4283
- }[];
4284
- discounts: {
4285
- amount: string;
4286
- percentage: string;
4287
- cycles?: {
4288
- cycleFrom: number;
4289
- };
4290
- origin?: {
4291
- appId: string;
4292
- entityId: string;
4293
- };
4294
- }[];
4295
- externalCollectionDetails?: {
4296
- collectorName: string;
4297
- };
4298
- };
4299
- billingStatus?: {
4300
- currentCycle: number;
4301
- latestPaymentData?: {
4302
- invoiceId: string;
4303
- paymentStatus: PaymentStatus;
4304
- totals?: {
4305
- totalPrice: string;
4306
- subtotal: string;
4307
- };
4308
- };
4309
- gracePeriodData?: {
4310
- automaticRetryData?: {
4311
- enabled: boolean;
4312
- };
4313
- };
4314
- };
4315
- policies?: {
4316
- customerCanCancel: boolean;
4317
- businessCanExtend: boolean;
4318
- allowEndOfCycleCancellation: boolean;
4319
- };
4320
- pauseInfo?: {
4321
- pausePolicy: PausePolicy;
4322
- pauseAt: PauseAt;
4323
- resumeAt: ResumeAt;
4324
- };
4325
- cancellationInfo?: {
4326
- initiator: HistoryActionInitiator;
4327
- };
4328
- pendingUpdateData?: {
4329
- itemsToUpdate: {
4330
- _id: string;
4331
- pricingModel?: {
4332
- fixedPrice?: {
4333
- itemPrice: string;
4334
- };
4335
- };
4336
- tax?: {
4337
- amount: string;
4338
- percentage: string;
4339
- };
4340
- }[];
4341
- itemsToAdd: {
4342
- name: string;
4343
- catalogReference?: {
4344
- catalogItemId: string;
4345
- };
4346
- category: ItemCategory;
4347
- quantity: number;
4348
- pricingModel?: {
4349
- fixedPrice?: {
4350
- itemPrice: string;
4351
- };
4352
- };
4353
- tax?: {
4354
- amount: string;
4355
- percentage: string;
4356
- };
4357
- discounts: {
4358
- amount: string;
4359
- percentage: string;
4360
- cycles?: {
4361
- cycleFrom: number;
4362
- };
4363
- origin?: {
4364
- appId: string;
4365
- entityId: string;
4366
- };
4367
- }[];
4368
- applicationFee?: {
4369
- amount: string;
4370
- discounts: {
4371
- amount: string;
4372
- percentage: string;
4373
- cycles?: {
4374
- cycleFrom: number;
4375
- };
4376
- origin?: {
4377
- appId: string;
4378
- entityId: string;
4379
- };
4380
- }[];
4381
- };
4382
- }[];
4383
- numberOfRequests: number;
4384
- };
4385
- specificDatePendingUpdateData?: {
4386
- updateData?: {
4387
- itemsToUpdate: {
4388
- _id: string;
4389
- pricingModel?: {
4390
- fixedPrice?: {
4391
- itemPrice: string;
4392
- };
4393
- };
4394
- tax?: {
4395
- amount: string;
4396
- percentage: string;
4397
- };
4398
- }[];
4399
- itemsToAdd: {
4400
- name: string;
4401
- catalogReference?: {
4402
- catalogItemId: string;
4403
- };
4404
- category: ItemCategory;
4405
- quantity: number;
4406
- pricingModel?: {
4407
- fixedPrice?: {
4408
- itemPrice: string;
4409
- };
4410
- };
4411
- tax?: {
4412
- amount: string;
4413
- percentage: string;
4414
- };
4415
- discounts: {
4416
- amount: string;
4417
- percentage: string;
4418
- cycles?: {
4419
- cycleFrom: number;
4420
- };
4421
- origin?: {
4422
- appId: string;
4423
- entityId: string;
4424
- };
4425
- }[];
4426
- applicationFee?: {
4427
- amount: string;
4428
- discounts: {
4429
- amount: string;
4430
- percentage: string;
4431
- cycles?: {
4432
- cycleFrom: number;
4433
- };
4434
- origin?: {
4435
- appId: string;
4436
- entityId: string;
4437
- };
4438
- }[];
4439
- };
4440
- }[];
4441
- numberOfRequests: number;
4442
- };
4443
- };
4444
- items: {
4445
- name: string;
4446
- catalogReference?: {
4447
- catalogItemId: string;
4448
- };
4449
- category: ItemCategory;
4450
- quantity: number;
4451
- pricingModel?: {
4452
- fixedPrice?: {
4453
- itemPrice: string;
4454
- };
4455
- };
4456
- tax?: {
4457
- amount: string;
4458
- percentage: string;
4459
- };
4460
- discounts: {
4461
- amount: string;
4462
- percentage: string;
4463
- cycles?: {
4464
- cycleFrom: number;
4465
- };
4466
- origin?: {
4467
- appId: string;
4468
- entityId: string;
4469
- };
4470
- }[];
4471
- applicationFee?: {
4472
- amount: string;
4473
- discounts: {
4474
- amount: string;
4475
- percentage: string;
4476
- cycles?: {
4477
- cycleFrom: number;
4478
- };
4479
- origin?: {
4480
- appId: string;
4481
- entityId: string;
4482
- };
4483
- }[];
4484
- };
4485
- }[];
4486
- }[];
3072
+ subscriptions: SubscriptionNonNullableFields[];
3073
+ }
3074
+ interface CountByStatusNonNullableFields {
3075
+ status: SubscriptionStatusEnumSubscriptionStatus;
3076
+ count: number;
4487
3077
  }
4488
3078
  interface CountSubscriptionsResponseNonNullableFields {
4489
- countByStatus: {
4490
- status: SubscriptionStatusEnumSubscriptionStatus;
4491
- count: number;
4492
- }[];
3079
+ countByStatus: CountByStatusNonNullableFields[];
4493
3080
  total: number;
4494
3081
  }
4495
3082
  interface TurnOnSubscriptionAutoRenewalResponseNonNullableFields {
4496
- subscription?: {
4497
- name: string;
4498
- customer?: {
4499
- visitorId: string;
4500
- contactId: string;
4501
- memberId: string;
4502
- accountId: string;
4503
- };
4504
- status: SubscriptionStatusEnumSubscriptionStatus;
4505
- billingSettings?: {
4506
- currency: string;
4507
- paymentMethod?: {
4508
- _id: string;
4509
- };
4510
- collectionMethod: CollectionMethod;
4511
- cycleDuration?: {
4512
- unit: DurationUnit;
4513
- };
4514
- cycleAutoRenew: boolean;
4515
- freeTrialDuration?: {
4516
- unit: DurationUnit;
4517
- };
4518
- taxSettings?: {
4519
- inclusive: boolean;
4520
- };
4521
- additionalFees: {
4522
- name: string;
4523
- amount: string;
4524
- trigger: AdditionalFeeTrigger;
4525
- tax?: {
4526
- amount: string;
4527
- percentage: string;
4528
- };
4529
- }[];
4530
- discounts: {
4531
- amount: string;
4532
- percentage: string;
4533
- cycles?: {
4534
- cycleFrom: number;
4535
- };
4536
- origin?: {
4537
- appId: string;
4538
- entityId: string;
4539
- };
4540
- }[];
4541
- externalCollectionDetails?: {
4542
- collectorName: string;
4543
- };
4544
- };
4545
- billingStatus?: {
4546
- currentCycle: number;
4547
- latestPaymentData?: {
4548
- invoiceId: string;
4549
- paymentStatus: PaymentStatus;
4550
- totals?: {
4551
- totalPrice: string;
4552
- subtotal: string;
4553
- };
4554
- };
4555
- gracePeriodData?: {
4556
- automaticRetryData?: {
4557
- enabled: boolean;
4558
- };
4559
- };
4560
- };
4561
- policies?: {
4562
- customerCanCancel: boolean;
4563
- businessCanExtend: boolean;
4564
- allowEndOfCycleCancellation: boolean;
4565
- };
4566
- pauseInfo?: {
4567
- pausePolicy: PausePolicy;
4568
- pauseAt: PauseAt;
4569
- resumeAt: ResumeAt;
4570
- };
4571
- cancellationInfo?: {
4572
- initiator: HistoryActionInitiator;
4573
- };
4574
- pendingUpdateData?: {
4575
- itemsToUpdate: {
4576
- _id: string;
4577
- pricingModel?: {
4578
- fixedPrice?: {
4579
- itemPrice: string;
4580
- };
4581
- };
4582
- tax?: {
4583
- amount: string;
4584
- percentage: string;
4585
- };
4586
- }[];
4587
- itemsToAdd: {
4588
- name: string;
4589
- catalogReference?: {
4590
- catalogItemId: string;
4591
- };
4592
- category: ItemCategory;
4593
- quantity: number;
4594
- pricingModel?: {
4595
- fixedPrice?: {
4596
- itemPrice: string;
4597
- };
4598
- };
4599
- tax?: {
4600
- amount: string;
4601
- percentage: string;
4602
- };
4603
- discounts: {
4604
- amount: string;
4605
- percentage: string;
4606
- cycles?: {
4607
- cycleFrom: number;
4608
- };
4609
- origin?: {
4610
- appId: string;
4611
- entityId: string;
4612
- };
4613
- }[];
4614
- applicationFee?: {
4615
- amount: string;
4616
- discounts: {
4617
- amount: string;
4618
- percentage: string;
4619
- cycles?: {
4620
- cycleFrom: number;
4621
- };
4622
- origin?: {
4623
- appId: string;
4624
- entityId: string;
4625
- };
4626
- }[];
4627
- };
4628
- }[];
4629
- numberOfRequests: number;
4630
- };
4631
- specificDatePendingUpdateData?: {
4632
- updateData?: {
4633
- itemsToUpdate: {
4634
- _id: string;
4635
- pricingModel?: {
4636
- fixedPrice?: {
4637
- itemPrice: string;
4638
- };
4639
- };
4640
- tax?: {
4641
- amount: string;
4642
- percentage: string;
4643
- };
4644
- }[];
4645
- itemsToAdd: {
4646
- name: string;
4647
- catalogReference?: {
4648
- catalogItemId: string;
4649
- };
4650
- category: ItemCategory;
4651
- quantity: number;
4652
- pricingModel?: {
4653
- fixedPrice?: {
4654
- itemPrice: string;
4655
- };
4656
- };
4657
- tax?: {
4658
- amount: string;
4659
- percentage: string;
4660
- };
4661
- discounts: {
4662
- amount: string;
4663
- percentage: string;
4664
- cycles?: {
4665
- cycleFrom: number;
4666
- };
4667
- origin?: {
4668
- appId: string;
4669
- entityId: string;
4670
- };
4671
- }[];
4672
- applicationFee?: {
4673
- amount: string;
4674
- discounts: {
4675
- amount: string;
4676
- percentage: string;
4677
- cycles?: {
4678
- cycleFrom: number;
4679
- };
4680
- origin?: {
4681
- appId: string;
4682
- entityId: string;
4683
- };
4684
- }[];
4685
- };
4686
- }[];
4687
- numberOfRequests: number;
4688
- };
4689
- };
4690
- items: {
4691
- name: string;
4692
- catalogReference?: {
4693
- catalogItemId: string;
4694
- };
4695
- category: ItemCategory;
4696
- quantity: number;
4697
- pricingModel?: {
4698
- fixedPrice?: {
4699
- itemPrice: string;
4700
- };
4701
- };
4702
- tax?: {
4703
- amount: string;
4704
- percentage: string;
4705
- };
4706
- discounts: {
4707
- amount: string;
4708
- percentage: string;
4709
- cycles?: {
4710
- cycleFrom: number;
4711
- };
4712
- origin?: {
4713
- appId: string;
4714
- entityId: string;
4715
- };
4716
- }[];
4717
- applicationFee?: {
4718
- amount: string;
4719
- discounts: {
4720
- amount: string;
4721
- percentage: string;
4722
- cycles?: {
4723
- cycleFrom: number;
4724
- };
4725
- origin?: {
4726
- appId: string;
4727
- entityId: string;
4728
- };
4729
- }[];
4730
- };
4731
- }[];
4732
- };
3083
+ subscription?: SubscriptionNonNullableFields;
4733
3084
  }
4734
3085
  interface TurnOffSubscriptionAutoRenewalResponseNonNullableFields {
4735
- subscription?: {
4736
- name: string;
4737
- customer?: {
4738
- visitorId: string;
4739
- contactId: string;
4740
- memberId: string;
4741
- accountId: string;
4742
- };
4743
- status: SubscriptionStatusEnumSubscriptionStatus;
4744
- billingSettings?: {
4745
- currency: string;
4746
- paymentMethod?: {
4747
- _id: string;
4748
- };
4749
- collectionMethod: CollectionMethod;
4750
- cycleDuration?: {
4751
- unit: DurationUnit;
4752
- };
4753
- cycleAutoRenew: boolean;
4754
- freeTrialDuration?: {
4755
- unit: DurationUnit;
4756
- };
4757
- taxSettings?: {
4758
- inclusive: boolean;
4759
- };
4760
- additionalFees: {
4761
- name: string;
4762
- amount: string;
4763
- trigger: AdditionalFeeTrigger;
4764
- tax?: {
4765
- amount: string;
4766
- percentage: string;
4767
- };
4768
- }[];
4769
- discounts: {
4770
- amount: string;
4771
- percentage: string;
4772
- cycles?: {
4773
- cycleFrom: number;
4774
- };
4775
- origin?: {
4776
- appId: string;
4777
- entityId: string;
4778
- };
4779
- }[];
4780
- externalCollectionDetails?: {
4781
- collectorName: string;
4782
- };
4783
- };
4784
- billingStatus?: {
4785
- currentCycle: number;
4786
- latestPaymentData?: {
4787
- invoiceId: string;
4788
- paymentStatus: PaymentStatus;
4789
- totals?: {
4790
- totalPrice: string;
4791
- subtotal: string;
4792
- };
4793
- };
4794
- gracePeriodData?: {
4795
- automaticRetryData?: {
4796
- enabled: boolean;
4797
- };
4798
- };
4799
- };
4800
- policies?: {
4801
- customerCanCancel: boolean;
4802
- businessCanExtend: boolean;
4803
- allowEndOfCycleCancellation: boolean;
4804
- };
4805
- pauseInfo?: {
4806
- pausePolicy: PausePolicy;
4807
- pauseAt: PauseAt;
4808
- resumeAt: ResumeAt;
4809
- };
4810
- cancellationInfo?: {
4811
- initiator: HistoryActionInitiator;
4812
- };
4813
- pendingUpdateData?: {
4814
- itemsToUpdate: {
4815
- _id: string;
4816
- pricingModel?: {
4817
- fixedPrice?: {
4818
- itemPrice: string;
4819
- };
4820
- };
4821
- tax?: {
4822
- amount: string;
4823
- percentage: string;
4824
- };
4825
- }[];
4826
- itemsToAdd: {
4827
- name: string;
4828
- catalogReference?: {
4829
- catalogItemId: string;
4830
- };
4831
- category: ItemCategory;
4832
- quantity: number;
4833
- pricingModel?: {
4834
- fixedPrice?: {
4835
- itemPrice: string;
4836
- };
4837
- };
4838
- tax?: {
4839
- amount: string;
4840
- percentage: string;
4841
- };
4842
- discounts: {
4843
- amount: string;
4844
- percentage: string;
4845
- cycles?: {
4846
- cycleFrom: number;
4847
- };
4848
- origin?: {
4849
- appId: string;
4850
- entityId: string;
4851
- };
4852
- }[];
4853
- applicationFee?: {
4854
- amount: string;
4855
- discounts: {
4856
- amount: string;
4857
- percentage: string;
4858
- cycles?: {
4859
- cycleFrom: number;
4860
- };
4861
- origin?: {
4862
- appId: string;
4863
- entityId: string;
4864
- };
4865
- }[];
4866
- };
4867
- }[];
4868
- numberOfRequests: number;
4869
- };
4870
- specificDatePendingUpdateData?: {
4871
- updateData?: {
4872
- itemsToUpdate: {
4873
- _id: string;
4874
- pricingModel?: {
4875
- fixedPrice?: {
4876
- itemPrice: string;
4877
- };
4878
- };
4879
- tax?: {
4880
- amount: string;
4881
- percentage: string;
4882
- };
4883
- }[];
4884
- itemsToAdd: {
4885
- name: string;
4886
- catalogReference?: {
4887
- catalogItemId: string;
4888
- };
4889
- category: ItemCategory;
4890
- quantity: number;
4891
- pricingModel?: {
4892
- fixedPrice?: {
4893
- itemPrice: string;
4894
- };
4895
- };
4896
- tax?: {
4897
- amount: string;
4898
- percentage: string;
4899
- };
4900
- discounts: {
4901
- amount: string;
4902
- percentage: string;
4903
- cycles?: {
4904
- cycleFrom: number;
4905
- };
4906
- origin?: {
4907
- appId: string;
4908
- entityId: string;
4909
- };
4910
- }[];
4911
- applicationFee?: {
4912
- amount: string;
4913
- discounts: {
4914
- amount: string;
4915
- percentage: string;
4916
- cycles?: {
4917
- cycleFrom: number;
4918
- };
4919
- origin?: {
4920
- appId: string;
4921
- entityId: string;
4922
- };
4923
- }[];
4924
- };
4925
- }[];
4926
- numberOfRequests: number;
4927
- };
4928
- };
4929
- items: {
4930
- name: string;
4931
- catalogReference?: {
4932
- catalogItemId: string;
4933
- };
4934
- category: ItemCategory;
4935
- quantity: number;
4936
- pricingModel?: {
4937
- fixedPrice?: {
4938
- itemPrice: string;
4939
- };
4940
- };
4941
- tax?: {
4942
- amount: string;
4943
- percentage: string;
4944
- };
4945
- discounts: {
4946
- amount: string;
4947
- percentage: string;
4948
- cycles?: {
4949
- cycleFrom: number;
4950
- };
4951
- origin?: {
4952
- appId: string;
4953
- entityId: string;
4954
- };
4955
- }[];
4956
- applicationFee?: {
4957
- amount: string;
4958
- discounts: {
4959
- amount: string;
4960
- percentage: string;
4961
- cycles?: {
4962
- cycleFrom: number;
4963
- };
4964
- origin?: {
4965
- appId: string;
4966
- entityId: string;
4967
- };
4968
- }[];
4969
- };
4970
- }[];
4971
- };
3086
+ subscription?: SubscriptionNonNullableFields;
4972
3087
  }
4973
3088
  interface MarkLatestInvoiceAsPaidResponseNonNullableFields {
4974
- subscription?: {
4975
- name: string;
4976
- customer?: {
4977
- visitorId: string;
4978
- contactId: string;
4979
- memberId: string;
4980
- accountId: string;
4981
- };
4982
- status: SubscriptionStatusEnumSubscriptionStatus;
4983
- billingSettings?: {
4984
- currency: string;
4985
- paymentMethod?: {
4986
- _id: string;
4987
- };
4988
- collectionMethod: CollectionMethod;
4989
- cycleDuration?: {
4990
- unit: DurationUnit;
4991
- };
4992
- cycleAutoRenew: boolean;
4993
- freeTrialDuration?: {
4994
- unit: DurationUnit;
4995
- };
4996
- taxSettings?: {
4997
- inclusive: boolean;
4998
- };
4999
- additionalFees: {
5000
- name: string;
5001
- amount: string;
5002
- trigger: AdditionalFeeTrigger;
5003
- tax?: {
5004
- amount: string;
5005
- percentage: string;
5006
- };
5007
- }[];
5008
- discounts: {
5009
- amount: string;
5010
- percentage: string;
5011
- cycles?: {
5012
- cycleFrom: number;
5013
- };
5014
- origin?: {
5015
- appId: string;
5016
- entityId: string;
5017
- };
5018
- }[];
5019
- externalCollectionDetails?: {
5020
- collectorName: string;
5021
- };
5022
- };
5023
- billingStatus?: {
5024
- currentCycle: number;
5025
- latestPaymentData?: {
5026
- invoiceId: string;
5027
- paymentStatus: PaymentStatus;
5028
- totals?: {
5029
- totalPrice: string;
5030
- subtotal: string;
5031
- };
5032
- };
5033
- gracePeriodData?: {
5034
- automaticRetryData?: {
5035
- enabled: boolean;
5036
- };
5037
- };
5038
- };
5039
- policies?: {
5040
- customerCanCancel: boolean;
5041
- businessCanExtend: boolean;
5042
- allowEndOfCycleCancellation: boolean;
5043
- };
5044
- pauseInfo?: {
5045
- pausePolicy: PausePolicy;
5046
- pauseAt: PauseAt;
5047
- resumeAt: ResumeAt;
5048
- };
5049
- cancellationInfo?: {
5050
- initiator: HistoryActionInitiator;
5051
- };
5052
- pendingUpdateData?: {
5053
- itemsToUpdate: {
5054
- _id: string;
5055
- pricingModel?: {
5056
- fixedPrice?: {
5057
- itemPrice: string;
5058
- };
5059
- };
5060
- tax?: {
5061
- amount: string;
5062
- percentage: string;
5063
- };
5064
- }[];
5065
- itemsToAdd: {
5066
- name: string;
5067
- catalogReference?: {
5068
- catalogItemId: string;
5069
- };
5070
- category: ItemCategory;
5071
- quantity: number;
5072
- pricingModel?: {
5073
- fixedPrice?: {
5074
- itemPrice: string;
5075
- };
5076
- };
5077
- tax?: {
5078
- amount: string;
5079
- percentage: string;
5080
- };
5081
- discounts: {
5082
- amount: string;
5083
- percentage: string;
5084
- cycles?: {
5085
- cycleFrom: number;
5086
- };
5087
- origin?: {
5088
- appId: string;
5089
- entityId: string;
5090
- };
5091
- }[];
5092
- applicationFee?: {
5093
- amount: string;
5094
- discounts: {
5095
- amount: string;
5096
- percentage: string;
5097
- cycles?: {
5098
- cycleFrom: number;
5099
- };
5100
- origin?: {
5101
- appId: string;
5102
- entityId: string;
5103
- };
5104
- }[];
5105
- };
5106
- }[];
5107
- numberOfRequests: number;
5108
- };
5109
- specificDatePendingUpdateData?: {
5110
- updateData?: {
5111
- itemsToUpdate: {
5112
- _id: string;
5113
- pricingModel?: {
5114
- fixedPrice?: {
5115
- itemPrice: string;
5116
- };
5117
- };
5118
- tax?: {
5119
- amount: string;
5120
- percentage: string;
5121
- };
5122
- }[];
5123
- itemsToAdd: {
5124
- name: string;
5125
- catalogReference?: {
5126
- catalogItemId: string;
5127
- };
5128
- category: ItemCategory;
5129
- quantity: number;
5130
- pricingModel?: {
5131
- fixedPrice?: {
5132
- itemPrice: string;
5133
- };
5134
- };
5135
- tax?: {
5136
- amount: string;
5137
- percentage: string;
5138
- };
5139
- discounts: {
5140
- amount: string;
5141
- percentage: string;
5142
- cycles?: {
5143
- cycleFrom: number;
5144
- };
5145
- origin?: {
5146
- appId: string;
5147
- entityId: string;
5148
- };
5149
- }[];
5150
- applicationFee?: {
5151
- amount: string;
5152
- discounts: {
5153
- amount: string;
5154
- percentage: string;
5155
- cycles?: {
5156
- cycleFrom: number;
5157
- };
5158
- origin?: {
5159
- appId: string;
5160
- entityId: string;
5161
- };
5162
- }[];
5163
- };
5164
- }[];
5165
- numberOfRequests: number;
5166
- };
5167
- };
5168
- items: {
5169
- name: string;
5170
- catalogReference?: {
5171
- catalogItemId: string;
5172
- };
5173
- category: ItemCategory;
5174
- quantity: number;
5175
- pricingModel?: {
5176
- fixedPrice?: {
5177
- itemPrice: string;
5178
- };
5179
- };
5180
- tax?: {
5181
- amount: string;
5182
- percentage: string;
5183
- };
5184
- discounts: {
5185
- amount: string;
5186
- percentage: string;
5187
- cycles?: {
5188
- cycleFrom: number;
5189
- };
5190
- origin?: {
5191
- appId: string;
5192
- entityId: string;
5193
- };
5194
- }[];
5195
- applicationFee?: {
5196
- amount: string;
5197
- discounts: {
5198
- amount: string;
5199
- percentage: string;
5200
- cycles?: {
5201
- cycleFrom: number;
5202
- };
5203
- origin?: {
5204
- appId: string;
5205
- entityId: string;
5206
- };
5207
- }[];
5208
- };
5209
- }[];
5210
- };
3089
+ subscription?: SubscriptionNonNullableFields;
3090
+ }
3091
+ interface AmountByStatusNonNullableFields {
3092
+ status: SubscriptionStatusEnumSubscriptionStatus;
3093
+ amount: number;
5211
3094
  }
5212
3095
  interface GetSubscriptionsStatsResponseNonNullableFields {
5213
- amountByStatuses: {
5214
- status: SubscriptionStatusEnumSubscriptionStatus;
5215
- amount: number;
5216
- }[];
3096
+ amountByStatuses: AmountByStatusNonNullableFields[];
5217
3097
  total: number;
5218
3098
  }
5219
3099
  interface ExtendSubscriptionResponseNonNullableFields {
5220
- subscription?: {
5221
- name: string;
5222
- customer?: {
5223
- visitorId: string;
5224
- contactId: string;
5225
- memberId: string;
5226
- accountId: string;
5227
- };
5228
- status: SubscriptionStatusEnumSubscriptionStatus;
5229
- billingSettings?: {
5230
- currency: string;
5231
- paymentMethod?: {
5232
- _id: string;
5233
- };
5234
- collectionMethod: CollectionMethod;
5235
- cycleDuration?: {
5236
- unit: DurationUnit;
5237
- };
5238
- cycleAutoRenew: boolean;
5239
- freeTrialDuration?: {
5240
- unit: DurationUnit;
5241
- };
5242
- taxSettings?: {
5243
- inclusive: boolean;
5244
- };
5245
- additionalFees: {
5246
- name: string;
5247
- amount: string;
5248
- trigger: AdditionalFeeTrigger;
5249
- tax?: {
5250
- amount: string;
5251
- percentage: string;
5252
- };
5253
- }[];
5254
- discounts: {
5255
- amount: string;
5256
- percentage: string;
5257
- cycles?: {
5258
- cycleFrom: number;
5259
- };
5260
- origin?: {
5261
- appId: string;
5262
- entityId: string;
5263
- };
5264
- }[];
5265
- externalCollectionDetails?: {
5266
- collectorName: string;
5267
- };
5268
- };
5269
- billingStatus?: {
5270
- currentCycle: number;
5271
- latestPaymentData?: {
5272
- invoiceId: string;
5273
- paymentStatus: PaymentStatus;
5274
- totals?: {
5275
- totalPrice: string;
5276
- subtotal: string;
5277
- };
5278
- };
5279
- gracePeriodData?: {
5280
- automaticRetryData?: {
5281
- enabled: boolean;
5282
- };
5283
- };
5284
- };
5285
- policies?: {
5286
- customerCanCancel: boolean;
5287
- businessCanExtend: boolean;
5288
- allowEndOfCycleCancellation: boolean;
5289
- };
5290
- pauseInfo?: {
5291
- pausePolicy: PausePolicy;
5292
- pauseAt: PauseAt;
5293
- resumeAt: ResumeAt;
5294
- };
5295
- cancellationInfo?: {
5296
- initiator: HistoryActionInitiator;
5297
- };
5298
- pendingUpdateData?: {
5299
- itemsToUpdate: {
5300
- _id: string;
5301
- pricingModel?: {
5302
- fixedPrice?: {
5303
- itemPrice: string;
5304
- };
5305
- };
5306
- tax?: {
5307
- amount: string;
5308
- percentage: string;
5309
- };
5310
- }[];
5311
- itemsToAdd: {
5312
- name: string;
5313
- catalogReference?: {
5314
- catalogItemId: string;
5315
- };
5316
- category: ItemCategory;
5317
- quantity: number;
5318
- pricingModel?: {
5319
- fixedPrice?: {
5320
- itemPrice: string;
5321
- };
5322
- };
5323
- tax?: {
5324
- amount: string;
5325
- percentage: string;
5326
- };
5327
- discounts: {
5328
- amount: string;
5329
- percentage: string;
5330
- cycles?: {
5331
- cycleFrom: number;
5332
- };
5333
- origin?: {
5334
- appId: string;
5335
- entityId: string;
5336
- };
5337
- }[];
5338
- applicationFee?: {
5339
- amount: string;
5340
- discounts: {
5341
- amount: string;
5342
- percentage: string;
5343
- cycles?: {
5344
- cycleFrom: number;
5345
- };
5346
- origin?: {
5347
- appId: string;
5348
- entityId: string;
5349
- };
5350
- }[];
5351
- };
5352
- }[];
5353
- numberOfRequests: number;
5354
- };
5355
- specificDatePendingUpdateData?: {
5356
- updateData?: {
5357
- itemsToUpdate: {
5358
- _id: string;
5359
- pricingModel?: {
5360
- fixedPrice?: {
5361
- itemPrice: string;
5362
- };
5363
- };
5364
- tax?: {
5365
- amount: string;
5366
- percentage: string;
5367
- };
5368
- }[];
5369
- itemsToAdd: {
5370
- name: string;
5371
- catalogReference?: {
5372
- catalogItemId: string;
5373
- };
5374
- category: ItemCategory;
5375
- quantity: number;
5376
- pricingModel?: {
5377
- fixedPrice?: {
5378
- itemPrice: string;
5379
- };
5380
- };
5381
- tax?: {
5382
- amount: string;
5383
- percentage: string;
5384
- };
5385
- discounts: {
5386
- amount: string;
5387
- percentage: string;
5388
- cycles?: {
5389
- cycleFrom: number;
5390
- };
5391
- origin?: {
5392
- appId: string;
5393
- entityId: string;
5394
- };
5395
- }[];
5396
- applicationFee?: {
5397
- amount: string;
5398
- discounts: {
5399
- amount: string;
5400
- percentage: string;
5401
- cycles?: {
5402
- cycleFrom: number;
5403
- };
5404
- origin?: {
5405
- appId: string;
5406
- entityId: string;
5407
- };
5408
- }[];
5409
- };
5410
- }[];
5411
- numberOfRequests: number;
5412
- };
5413
- };
5414
- items: {
5415
- name: string;
5416
- catalogReference?: {
5417
- catalogItemId: string;
5418
- };
5419
- category: ItemCategory;
5420
- quantity: number;
5421
- pricingModel?: {
5422
- fixedPrice?: {
5423
- itemPrice: string;
5424
- };
5425
- };
5426
- tax?: {
5427
- amount: string;
5428
- percentage: string;
5429
- };
5430
- discounts: {
5431
- amount: string;
5432
- percentage: string;
5433
- cycles?: {
5434
- cycleFrom: number;
5435
- };
5436
- origin?: {
5437
- appId: string;
5438
- entityId: string;
5439
- };
5440
- }[];
5441
- applicationFee?: {
5442
- amount: string;
5443
- discounts: {
5444
- amount: string;
5445
- percentage: string;
5446
- cycles?: {
5447
- cycleFrom: number;
5448
- };
5449
- origin?: {
5450
- appId: string;
5451
- entityId: string;
5452
- };
5453
- }[];
5454
- };
5455
- }[];
5456
- };
3100
+ subscription?: SubscriptionNonNullableFields;
3101
+ }
3102
+ interface UnsupportedReasonNonNullableFields {
3103
+ code: string;
3104
+ }
3105
+ interface UnsupportedActionNonNullableFields {
3106
+ actionType: ActionType;
3107
+ reasons: UnsupportedReasonNonNullableFields[];
5457
3108
  }
5458
3109
  interface AllowedActionsResponseNonNullableFields {
5459
- actions: {
5460
- actionType: ActionType;
5461
- pausePolicies: PausePolicy[];
5462
- pauseAt: PauseAt[];
5463
- resumeAt: ResumeAt[];
5464
- extendPolicies: ExtendPolicyType[];
5465
- }[];
5466
- unsupportedActions: {
5467
- actionType: ActionType;
5468
- reasons: {
5469
- code: string;
5470
- }[];
5471
- }[];
3110
+ actions: ActionNonNullableFields[];
3111
+ unsupportedActions: UnsupportedActionNonNullableFields[];
5472
3112
  }
5473
3113
  interface ListUpcomingChargesResponseNonNullableFields {
5474
- upcomingCharges: {
5475
- cycle: number;
5476
- totals?: {
5477
- totalPrice: string;
5478
- subtotal: string;
5479
- };
5480
- invoiceItems: {
5481
- recurring?: {
5482
- cycleNumber: number;
5483
- };
5484
- _id: string;
5485
- subscriptionId: string;
5486
- name: string;
5487
- catalogReference?: {
5488
- catalogItemId: string;
5489
- };
5490
- category: ItemCategory;
5491
- quantity: number;
5492
- priceDetails?: {
5493
- price: string;
5494
- tax?: {
5495
- amount: string;
5496
- percentage: string;
5497
- };
5498
- discount?: {
5499
- amount: string;
5500
- percentage: string;
5501
- origin?: {
5502
- appId: string;
5503
- entityId: string;
5504
- };
5505
- };
5506
- applicationFeeDetails?: {
5507
- amount: string;
5508
- discount?: {
5509
- amount: string;
5510
- percentage: string;
5511
- origin?: {
5512
- appId: string;
5513
- entityId: string;
5514
- };
5515
- };
5516
- };
5517
- };
5518
- totals?: {
5519
- totalPrice: string;
5520
- subtotal: string;
5521
- };
5522
- }[];
5523
- discount?: {
5524
- amount: string;
5525
- percentage: string;
5526
- origin?: {
5527
- appId: string;
5528
- entityId: string;
5529
- };
5530
- };
5531
- }[];
3114
+ upcomingCharges: SubscriptionChargeNonNullableFields[];
5532
3115
  }
5533
- interface InitiatePaymentMethodSetupResponseNonNullableFields {
5534
- paymentOrderId: string;
3116
+ interface ChargeNonNullableFields {
3117
+ cycleFrom: number;
3118
+ totals?: TotalsNonNullableFields;
3119
+ }
3120
+ interface PreviewSubscriptionChargesResponseNonNullableFields {
3121
+ charges: ChargeNonNullableFields[];
5535
3122
  }
5536
3123
  interface PayCycleResponseNonNullableFields {
5537
3124
  invoiceId: string;
5538
- subscription?: {
5539
- name: string;
5540
- customer?: {
5541
- visitorId: string;
5542
- contactId: string;
5543
- memberId: string;
5544
- accountId: string;
5545
- };
5546
- status: SubscriptionStatusEnumSubscriptionStatus;
5547
- billingSettings?: {
5548
- currency: string;
5549
- paymentMethod?: {
5550
- _id: string;
5551
- };
5552
- collectionMethod: CollectionMethod;
5553
- cycleDuration?: {
5554
- unit: DurationUnit;
5555
- };
5556
- cycleAutoRenew: boolean;
5557
- freeTrialDuration?: {
5558
- unit: DurationUnit;
5559
- };
5560
- taxSettings?: {
5561
- inclusive: boolean;
5562
- };
5563
- additionalFees: {
5564
- name: string;
5565
- amount: string;
5566
- trigger: AdditionalFeeTrigger;
5567
- tax?: {
5568
- amount: string;
5569
- percentage: string;
5570
- };
5571
- }[];
5572
- discounts: {
5573
- amount: string;
5574
- percentage: string;
5575
- cycles?: {
5576
- cycleFrom: number;
5577
- };
5578
- origin?: {
5579
- appId: string;
5580
- entityId: string;
5581
- };
5582
- }[];
5583
- externalCollectionDetails?: {
5584
- collectorName: string;
5585
- };
5586
- };
5587
- billingStatus?: {
5588
- currentCycle: number;
5589
- latestPaymentData?: {
5590
- invoiceId: string;
5591
- paymentStatus: PaymentStatus;
5592
- totals?: {
5593
- totalPrice: string;
5594
- subtotal: string;
5595
- };
5596
- };
5597
- gracePeriodData?: {
5598
- automaticRetryData?: {
5599
- enabled: boolean;
5600
- };
5601
- };
5602
- };
5603
- policies?: {
5604
- customerCanCancel: boolean;
5605
- businessCanExtend: boolean;
5606
- allowEndOfCycleCancellation: boolean;
5607
- };
5608
- pauseInfo?: {
5609
- pausePolicy: PausePolicy;
5610
- pauseAt: PauseAt;
5611
- resumeAt: ResumeAt;
5612
- };
5613
- cancellationInfo?: {
5614
- initiator: HistoryActionInitiator;
5615
- };
5616
- pendingUpdateData?: {
5617
- itemsToUpdate: {
5618
- _id: string;
5619
- pricingModel?: {
5620
- fixedPrice?: {
5621
- itemPrice: string;
5622
- };
5623
- };
5624
- tax?: {
5625
- amount: string;
5626
- percentage: string;
5627
- };
5628
- }[];
5629
- itemsToAdd: {
5630
- name: string;
5631
- catalogReference?: {
5632
- catalogItemId: string;
5633
- };
5634
- category: ItemCategory;
5635
- quantity: number;
5636
- pricingModel?: {
5637
- fixedPrice?: {
5638
- itemPrice: string;
5639
- };
5640
- };
5641
- tax?: {
5642
- amount: string;
5643
- percentage: string;
5644
- };
5645
- discounts: {
5646
- amount: string;
5647
- percentage: string;
5648
- cycles?: {
5649
- cycleFrom: number;
5650
- };
5651
- origin?: {
5652
- appId: string;
5653
- entityId: string;
5654
- };
5655
- }[];
5656
- applicationFee?: {
5657
- amount: string;
5658
- discounts: {
5659
- amount: string;
5660
- percentage: string;
5661
- cycles?: {
5662
- cycleFrom: number;
5663
- };
5664
- origin?: {
5665
- appId: string;
5666
- entityId: string;
5667
- };
5668
- }[];
5669
- };
5670
- }[];
5671
- numberOfRequests: number;
5672
- };
5673
- specificDatePendingUpdateData?: {
5674
- updateData?: {
5675
- itemsToUpdate: {
5676
- _id: string;
5677
- pricingModel?: {
5678
- fixedPrice?: {
5679
- itemPrice: string;
5680
- };
5681
- };
5682
- tax?: {
5683
- amount: string;
5684
- percentage: string;
5685
- };
5686
- }[];
5687
- itemsToAdd: {
5688
- name: string;
5689
- catalogReference?: {
5690
- catalogItemId: string;
5691
- };
5692
- category: ItemCategory;
5693
- quantity: number;
5694
- pricingModel?: {
5695
- fixedPrice?: {
5696
- itemPrice: string;
5697
- };
5698
- };
5699
- tax?: {
5700
- amount: string;
5701
- percentage: string;
5702
- };
5703
- discounts: {
5704
- amount: string;
5705
- percentage: string;
5706
- cycles?: {
5707
- cycleFrom: number;
5708
- };
5709
- origin?: {
5710
- appId: string;
5711
- entityId: string;
5712
- };
5713
- }[];
5714
- applicationFee?: {
5715
- amount: string;
5716
- discounts: {
5717
- amount: string;
5718
- percentage: string;
5719
- cycles?: {
5720
- cycleFrom: number;
5721
- };
5722
- origin?: {
5723
- appId: string;
5724
- entityId: string;
5725
- };
5726
- }[];
5727
- };
5728
- }[];
5729
- numberOfRequests: number;
5730
- };
5731
- };
5732
- items: {
5733
- name: string;
5734
- catalogReference?: {
5735
- catalogItemId: string;
5736
- };
5737
- category: ItemCategory;
5738
- quantity: number;
5739
- pricingModel?: {
5740
- fixedPrice?: {
5741
- itemPrice: string;
5742
- };
5743
- };
5744
- tax?: {
5745
- amount: string;
5746
- percentage: string;
5747
- };
5748
- discounts: {
5749
- amount: string;
5750
- percentage: string;
5751
- cycles?: {
5752
- cycleFrom: number;
5753
- };
5754
- origin?: {
5755
- appId: string;
5756
- entityId: string;
5757
- };
5758
- }[];
5759
- applicationFee?: {
5760
- amount: string;
5761
- discounts: {
5762
- amount: string;
5763
- percentage: string;
5764
- cycles?: {
5765
- cycleFrom: number;
5766
- };
5767
- origin?: {
5768
- appId: string;
5769
- entityId: string;
5770
- };
5771
- }[];
5772
- };
5773
- }[];
5774
- };
3125
+ subscription?: SubscriptionNonNullableFields;
5775
3126
  }
5776
3127
  interface BaseEventMetadata {
5777
3128
  /** App instance ID. */
@@ -5800,7 +3151,7 @@ interface EventMetadata extends BaseEventMetadata {
5800
3151
  slug?: string;
5801
3152
  /** ID of the entity associated with the event. */
5802
3153
  entityId?: string;
5803
- /** Event timestamp. */
3154
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
5804
3155
  eventTime?: Date;
5805
3156
  /**
5806
3157
  * Whether the event was triggered as a result of a privacy regulation application
@@ -5871,6 +3222,31 @@ interface SubscriptionLatestInvoiceMarkedAsPaidEnvelope {
5871
3222
  data: LatestInvoiceMarkedAsPaid;
5872
3223
  metadata: EventMetadata;
5873
3224
  }
3225
+ interface CustomerCancelSubscriptionOptions {
3226
+ /** Optional action reason message */
3227
+ reason?: string | null;
3228
+ }
3229
+ interface CustomerTurnOnSubscriptionAutoRenewalOptions {
3230
+ /** Optional action reason message */
3231
+ reason?: string | null;
3232
+ }
3233
+ interface CustomerTurnOffSubscriptionAutoRenewalOptions {
3234
+ /** Optional action reason message */
3235
+ reason?: string | null;
3236
+ }
3237
+ interface CustomerExtendSubscriptionOptions {
3238
+ /** Optional action reason message */
3239
+ reason?: string | null;
3240
+ /** For termed - Subscription end date will be updated with the extension period and number of cycles will be added */
3241
+ billingCyclesToAdd: number | null;
3242
+ }
3243
+ interface CustomerQuerySubscriptionsOptions {
3244
+ query?: QueryV2;
3245
+ }
3246
+ interface CustomerInitiatePaymentMethodSetupOptions {
3247
+ paymentMode?: PaymentMode;
3248
+ paymentSettings?: PaymentSettings;
3249
+ }
5874
3250
  interface UpdateSubscriptionBillingDateOptions {
5875
3251
  /**
5876
3252
  * Information about how BASS adjusts the total of the next invoice. Extending
@@ -5931,6 +3307,10 @@ interface ListUpcomingChargesOptions {
5931
3307
  */
5932
3308
  nextBillingDate?: Date;
5933
3309
  }
3310
+ interface PreviewSubscriptionChargesOptions extends PreviewSubscriptionChargesRequestSubscriptionOneOf {
3311
+ /** Information about a non-existing subscription. */
3312
+ subscriptionInfo?: SubscriptionInfo;
3313
+ }
5934
3314
  interface InitiatePaymentMethodSetupOptions {
5935
3315
  paymentMode?: PaymentMode;
5936
3316
  paymentSettings?: PaymentSettings;
@@ -5940,9 +3320,11 @@ interface PayCycleOptions {
5940
3320
  tenantId: string;
5941
3321
  }
5942
3322
 
3323
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
5943
3324
  interface HttpClient {
5944
3325
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
5945
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
3326
+ fetchWithAuth: typeof fetch;
3327
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
5946
3328
  }
5947
3329
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
5948
3330
  type HttpResponse<T = any> = {
@@ -5963,6 +3345,7 @@ type APIMetadata = {
5963
3345
  entityFqdn?: string;
5964
3346
  packageName?: string;
5965
3347
  };
3348
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
5966
3349
  type EventDefinition<Payload = unknown, Type extends string = string> = {
5967
3350
  __type: 'event-definition';
5968
3351
  type: Type;
@@ -5971,6 +3354,8 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
5971
3354
  __payload: Payload;
5972
3355
  };
5973
3356
  declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
3357
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
3358
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
5974
3359
 
5975
3360
  declare global {
5976
3361
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -5979,40 +3364,52 @@ declare global {
5979
3364
  }
5980
3365
  }
5981
3366
 
5982
- declare const __metadata: {
5983
- PACKAGE_NAME: string;
5984
- };
5985
- declare function getSubscription(httpClient: HttpClient): (_id: string) => Promise<GetSubscriptionResponse & GetSubscriptionResponseNonNullableFields>;
5986
- declare function updateSubscriptionPaymentMethod(httpClient: HttpClient): (_id: string, paymentMethodId: string) => Promise<UpdateSubscriptionPaymentMethodResponse & UpdateSubscriptionPaymentMethodResponseNonNullableFields>;
5987
- declare function updateSubscriptionBillingDate(httpClient: HttpClient): (_id: string, billingDate: Date, options?: UpdateSubscriptionBillingDateOptions) => Promise<UpdateSubscriptionBillingDateResponse & UpdateSubscriptionBillingDateResponseNonNullableFields>;
5988
- declare function cancelSubscription(httpClient: HttpClient): (_id: string, actionContext: ActionContext) => Promise<CancelSubscriptionResponse & CancelSubscriptionResponseNonNullableFields>;
5989
- declare function pauseSubscription(httpClient: HttpClient): (_id: string, options?: PauseSubscriptionOptions) => Promise<PauseSubscriptionResponse & PauseSubscriptionResponseNonNullableFields>;
5990
- declare function resumeSubscription(httpClient: HttpClient): (_id: string, options?: ResumeSubscriptionOptions) => Promise<ResumeSubscriptionResponse & ResumeSubscriptionResponseNonNullableFields>;
5991
- declare function querySubscriptions(httpClient: HttpClient): (query: QueryV2) => Promise<QuerySubscriptionsResponse & QuerySubscriptionsResponseNonNullableFields>;
5992
- declare function searchSubscriptions(httpClient: HttpClient): (options?: SearchSubscriptionsOptions) => Promise<SearchSubscriptionsResponse & SearchSubscriptionsResponseNonNullableFields>;
5993
- declare function countSubscriptions(httpClient: HttpClient): (options?: CountSubscriptionsOptions) => Promise<CountSubscriptionsResponse & CountSubscriptionsResponseNonNullableFields>;
5994
- declare function turnOnSubscriptionAutoRenewal(httpClient: HttpClient): (_id: string, actionContext: ActionContext) => Promise<TurnOnSubscriptionAutoRenewalResponse & TurnOnSubscriptionAutoRenewalResponseNonNullableFields>;
5995
- declare function turnOffSubscriptionAutoRenewal(httpClient: HttpClient): (_id: string, actionContext: ActionContext) => Promise<TurnOffSubscriptionAutoRenewalResponse & TurnOffSubscriptionAutoRenewalResponseNonNullableFields>;
5996
- declare function markLatestInvoiceAsPaid(httpClient: HttpClient): (subscriptionId: string) => Promise<MarkLatestInvoiceAsPaidResponse & MarkLatestInvoiceAsPaidResponseNonNullableFields>;
5997
- declare function getSubscriptionsStats(httpClient: HttpClient): () => Promise<GetSubscriptionsStatsResponse & GetSubscriptionsStatsResponseNonNullableFields>;
5998
- declare function extendSubscription(httpClient: HttpClient): (_id: string, actionContext: ActionContext, options?: ExtendSubscriptionOptions) => Promise<ExtendSubscriptionResponse & ExtendSubscriptionResponseNonNullableFields>;
5999
- declare function allowedActions(httpClient: HttpClient): (_id: string, options?: AllowedActionsOptions) => Promise<AllowedActionsResponse & AllowedActionsResponseNonNullableFields>;
6000
- declare function listUpcomingCharges(httpClient: HttpClient): (subscriptionId: string, options?: ListUpcomingChargesOptions) => Promise<ListUpcomingChargesResponse & ListUpcomingChargesResponseNonNullableFields>;
6001
- declare function initiatePaymentMethodSetup(httpClient: HttpClient): (_id: string, options?: InitiatePaymentMethodSetupOptions) => Promise<InitiatePaymentMethodSetupResponse & InitiatePaymentMethodSetupResponseNonNullableFields>;
6002
- declare function payCycle(httpClient: HttpClient): (subscriptionId: string, options?: PayCycleOptions) => Promise<PayCycleResponse & PayCycleResponseNonNullableFields>;
6003
- declare const onSubscriptionCanceled: EventDefinition<SubscriptionCanceledEnvelope, "wix.billing.v1.subscription_canceled">;
6004
- declare const onSubscriptionExtended: EventDefinition<SubscriptionExtendedEnvelope, "wix.billing.v1.subscription_extended">;
6005
- declare const onSubscriptionUpdated: EventDefinition<SubscriptionUpdatedEnvelope, "wix.billing.v1.subscription_updated">;
6006
- declare const onSubscriptionBillingDateUpdated: EventDefinition<SubscriptionBillingDateUpdatedEnvelope, "wix.billing.v1.subscription_billing_date_updated">;
6007
- declare const onSubscriptionPaused: EventDefinition<SubscriptionPausedEnvelope, "wix.billing.v1.subscription_paused">;
6008
- declare const onSubscriptionPauseScheduled: EventDefinition<SubscriptionPauseScheduledEnvelope, "wix.billing.v1.subscription_pause_scheduled">;
6009
- declare const onSubscriptionPauseScheduleCanceled: EventDefinition<SubscriptionPauseScheduleCanceledEnvelope, "wix.billing.v1.subscription_pause_schedule_canceled">;
6010
- declare const onSubscriptionResumed: EventDefinition<SubscriptionResumedEnvelope, "wix.billing.v1.subscription_resumed">;
6011
- declare const onSubscriptionResumeScheduled: EventDefinition<SubscriptionResumeScheduledEnvelope, "wix.billing.v1.subscription_resume_scheduled">;
6012
- declare const onSubscriptionResumeScheduleCanceled: EventDefinition<SubscriptionResumeScheduleCanceledEnvelope, "wix.billing.v1.subscription_resume_schedule_canceled">;
6013
- declare const onSubscriptionAutoRenewalTurnedOn: EventDefinition<SubscriptionAutoRenewalTurnedOnEnvelope, "wix.billing.v1.subscription_auto_renewal_turned_on">;
6014
- declare const onSubscriptionAutoRenewalTurnedOff: EventDefinition<SubscriptionAutoRenewalTurnedOffEnvelope, "wix.billing.v1.subscription_auto_renewal_turned_off">;
6015
- declare const onSubscriptionLatestInvoiceMarkedAsPaid: EventDefinition<SubscriptionLatestInvoiceMarkedAsPaidEnvelope, "wix.billing.v1.subscription_latest_invoice_marked_as_paid">;
3367
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3368
+
3369
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3370
+
3371
+ declare const customerGetSubscription: ReturnType<typeof createRESTModule<typeof publicCustomerGetSubscription>>;
3372
+ declare const customerCancelSubscription: ReturnType<typeof createRESTModule<typeof publicCustomerCancelSubscription>>;
3373
+ declare const customerTurnOnSubscriptionAutoRenewal: ReturnType<typeof createRESTModule<typeof publicCustomerTurnOnSubscriptionAutoRenewal>>;
3374
+ declare const customerTurnOffSubscriptionAutoRenewal: ReturnType<typeof createRESTModule<typeof publicCustomerTurnOffSubscriptionAutoRenewal>>;
3375
+ declare const customerExtendSubscription: ReturnType<typeof createRESTModule<typeof publicCustomerExtendSubscription>>;
3376
+ declare const customerQuerySubscriptions: ReturnType<typeof createRESTModule<typeof publicCustomerQuerySubscriptions>>;
3377
+ declare const customerUpdateSubscriptionPaymentMethod: ReturnType<typeof createRESTModule<typeof publicCustomerUpdateSubscriptionPaymentMethod>>;
3378
+ declare const customerAllowedActions: ReturnType<typeof createRESTModule<typeof publicCustomerAllowedActions>>;
3379
+ declare const customerListUpcomingCharges: ReturnType<typeof createRESTModule<typeof publicCustomerListUpcomingCharges>>;
3380
+ declare const customerInitiatePaymentMethodSetup: ReturnType<typeof createRESTModule<typeof publicCustomerInitiatePaymentMethodSetup>>;
3381
+ declare const getSubscription: ReturnType<typeof createRESTModule<typeof publicGetSubscription>>;
3382
+ declare const updateSubscriptionPaymentMethod: ReturnType<typeof createRESTModule<typeof publicUpdateSubscriptionPaymentMethod>>;
3383
+ declare const updateSubscriptionBillingDate: ReturnType<typeof createRESTModule<typeof publicUpdateSubscriptionBillingDate>>;
3384
+ declare const cancelSubscription: ReturnType<typeof createRESTModule<typeof publicCancelSubscription>>;
3385
+ declare const pauseSubscription: ReturnType<typeof createRESTModule<typeof publicPauseSubscription>>;
3386
+ declare const resumeSubscription: ReturnType<typeof createRESTModule<typeof publicResumeSubscription>>;
3387
+ declare const querySubscriptions: ReturnType<typeof createRESTModule<typeof publicQuerySubscriptions>>;
3388
+ declare const searchSubscriptions: ReturnType<typeof createRESTModule<typeof publicSearchSubscriptions>>;
3389
+ declare const countSubscriptions: ReturnType<typeof createRESTModule<typeof publicCountSubscriptions>>;
3390
+ declare const turnOnSubscriptionAutoRenewal: ReturnType<typeof createRESTModule<typeof publicTurnOnSubscriptionAutoRenewal>>;
3391
+ declare const turnOffSubscriptionAutoRenewal: ReturnType<typeof createRESTModule<typeof publicTurnOffSubscriptionAutoRenewal>>;
3392
+ declare const markLatestInvoiceAsPaid: ReturnType<typeof createRESTModule<typeof publicMarkLatestInvoiceAsPaid>>;
3393
+ declare const getSubscriptionsStats: ReturnType<typeof createRESTModule<typeof publicGetSubscriptionsStats>>;
3394
+ declare const extendSubscription: ReturnType<typeof createRESTModule<typeof publicExtendSubscription>>;
3395
+ declare const allowedActions: ReturnType<typeof createRESTModule<typeof publicAllowedActions>>;
3396
+ declare const listUpcomingCharges: ReturnType<typeof createRESTModule<typeof publicListUpcomingCharges>>;
3397
+ declare const previewSubscriptionCharges: ReturnType<typeof createRESTModule<typeof publicPreviewSubscriptionCharges>>;
3398
+ declare const initiatePaymentMethodSetup: ReturnType<typeof createRESTModule<typeof publicInitiatePaymentMethodSetup>>;
3399
+ declare const payCycle: ReturnType<typeof createRESTModule<typeof publicPayCycle>>;
3400
+ declare const onSubscriptionCanceled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionCanceled>>;
3401
+ declare const onSubscriptionExtended: ReturnType<typeof createEventModule<typeof publicOnSubscriptionExtended>>;
3402
+ declare const onSubscriptionUpdated: ReturnType<typeof createEventModule<typeof publicOnSubscriptionUpdated>>;
3403
+ declare const onSubscriptionBillingDateUpdated: ReturnType<typeof createEventModule<typeof publicOnSubscriptionBillingDateUpdated>>;
3404
+ declare const onSubscriptionPaused: ReturnType<typeof createEventModule<typeof publicOnSubscriptionPaused>>;
3405
+ declare const onSubscriptionPauseScheduled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionPauseScheduled>>;
3406
+ declare const onSubscriptionPauseScheduleCanceled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionPauseScheduleCanceled>>;
3407
+ declare const onSubscriptionResumed: ReturnType<typeof createEventModule<typeof publicOnSubscriptionResumed>>;
3408
+ declare const onSubscriptionResumeScheduled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionResumeScheduled>>;
3409
+ declare const onSubscriptionResumeScheduleCanceled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionResumeScheduleCanceled>>;
3410
+ declare const onSubscriptionAutoRenewalTurnedOn: ReturnType<typeof createEventModule<typeof publicOnSubscriptionAutoRenewalTurnedOn>>;
3411
+ declare const onSubscriptionAutoRenewalTurnedOff: ReturnType<typeof createEventModule<typeof publicOnSubscriptionAutoRenewalTurnedOff>>;
3412
+ declare const onSubscriptionLatestInvoiceMarkedAsPaid: ReturnType<typeof createEventModule<typeof publicOnSubscriptionLatestInvoiceMarkedAsPaid>>;
6016
3413
 
6017
3414
  type index_d_Action = Action;
6018
3415
  type index_d_ActionContext = ActionContext;
@@ -6045,6 +3442,7 @@ type index_d_BulkItemChange = BulkItemChange;
6045
3442
  type index_d_BulkUpdateSubscriptionItemsByFilterRequest = BulkUpdateSubscriptionItemsByFilterRequest;
6046
3443
  type index_d_BulkUpdateSubscriptionItemsByFilterResponse = BulkUpdateSubscriptionItemsByFilterResponse;
6047
3444
  type index_d_BusinessOrigin = BusinessOrigin;
3445
+ type index_d_BusinessOriginData = BusinessOriginData;
6048
3446
  type index_d_Cancel = Cancel;
6049
3447
  type index_d_CancelSubscriptionBORequest = CancelSubscriptionBORequest;
6050
3448
  type index_d_CancelSubscriptionBOResponse = CancelSubscriptionBOResponse;
@@ -6059,6 +3457,8 @@ type index_d_CatalogReference = CatalogReference;
6059
3457
  type index_d_Charge = Charge;
6060
3458
  type index_d_CollectionMethod = CollectionMethod;
6061
3459
  declare const index_d_CollectionMethod: typeof CollectionMethod;
3460
+ type index_d_CollectionMethodEnumCollectionMethod = CollectionMethodEnumCollectionMethod;
3461
+ declare const index_d_CollectionMethodEnumCollectionMethod: typeof CollectionMethodEnumCollectionMethod;
6062
3462
  type index_d_Complete = Complete;
6063
3463
  type index_d_ConvertSapiRequest = ConvertSapiRequest;
6064
3464
  type index_d_ConvertSapiResponse = ConvertSapiResponse;
@@ -6071,11 +3471,15 @@ type index_d_CountSubscriptionsResponse = CountSubscriptionsResponse;
6071
3471
  type index_d_CountSubscriptionsResponseNonNullableFields = CountSubscriptionsResponseNonNullableFields;
6072
3472
  type index_d_CreateRecurringInvoiceBORequest = CreateRecurringInvoiceBORequest;
6073
3473
  type index_d_CreateRecurringInvoiceBOResponse = CreateRecurringInvoiceBOResponse;
3474
+ type index_d_CreateSubscriptionForOrderRequest = CreateSubscriptionForOrderRequest;
3475
+ type index_d_CreateSubscriptionForOrderResponse = CreateSubscriptionForOrderResponse;
6074
3476
  type index_d_CreateSubscriptionInStateRequest = CreateSubscriptionInStateRequest;
6075
3477
  type index_d_CreateSubscriptionInStateRequestModeOneOf = CreateSubscriptionInStateRequestModeOneOf;
6076
3478
  type index_d_CreateSubscriptionInStateResponse = CreateSubscriptionInStateResponse;
6077
3479
  type index_d_CreateSubscriptionRequest = CreateSubscriptionRequest;
6078
3480
  type index_d_CreateSubscriptionResponse = CreateSubscriptionResponse;
3481
+ type index_d_CreationMode = CreationMode;
3482
+ declare const index_d_CreationMode: typeof CreationMode;
6079
3483
  type index_d_CursorPaging = CursorPaging;
6080
3484
  type index_d_Cursors = Cursors;
6081
3485
  type index_d_CustomBillingSchedule = CustomBillingSchedule;
@@ -6084,17 +3488,29 @@ type index_d_CustomProrationAmountOneOf = CustomProrationAmountOneOf;
6084
3488
  type index_d_Customer = Customer;
6085
3489
  type index_d_CustomerAllowedActionsRequest = CustomerAllowedActionsRequest;
6086
3490
  type index_d_CustomerAllowedActionsResponse = CustomerAllowedActionsResponse;
3491
+ type index_d_CustomerAllowedActionsResponseNonNullableFields = CustomerAllowedActionsResponseNonNullableFields;
3492
+ type index_d_CustomerCancelSubscriptionOptions = CustomerCancelSubscriptionOptions;
6087
3493
  type index_d_CustomerCancelSubscriptionRequest = CustomerCancelSubscriptionRequest;
6088
3494
  type index_d_CustomerCancelSubscriptionResponse = CustomerCancelSubscriptionResponse;
3495
+ type index_d_CustomerCancelSubscriptionResponseNonNullableFields = CustomerCancelSubscriptionResponseNonNullableFields;
3496
+ type index_d_CustomerExtendSubscriptionOptions = CustomerExtendSubscriptionOptions;
6089
3497
  type index_d_CustomerExtendSubscriptionRequest = CustomerExtendSubscriptionRequest;
6090
3498
  type index_d_CustomerExtendSubscriptionResponse = CustomerExtendSubscriptionResponse;
3499
+ type index_d_CustomerExtendSubscriptionResponseNonNullableFields = CustomerExtendSubscriptionResponseNonNullableFields;
6091
3500
  type index_d_CustomerIdOneOf = CustomerIdOneOf;
3501
+ type index_d_CustomerInitiatePaymentMethodSetupOptions = CustomerInitiatePaymentMethodSetupOptions;
6092
3502
  type index_d_CustomerListUpcomingChargesRequest = CustomerListUpcomingChargesRequest;
6093
3503
  type index_d_CustomerListUpcomingChargesResponse = CustomerListUpcomingChargesResponse;
3504
+ type index_d_CustomerListUpcomingChargesResponseNonNullableFields = CustomerListUpcomingChargesResponseNonNullableFields;
3505
+ type index_d_CustomerQuerySubscriptionsOptions = CustomerQuerySubscriptionsOptions;
6094
3506
  type index_d_CustomerTurnOffAutoRenewalRequest = CustomerTurnOffAutoRenewalRequest;
6095
3507
  type index_d_CustomerTurnOffAutoRenewalResponse = CustomerTurnOffAutoRenewalResponse;
3508
+ type index_d_CustomerTurnOffAutoRenewalResponseNonNullableFields = CustomerTurnOffAutoRenewalResponseNonNullableFields;
3509
+ type index_d_CustomerTurnOffSubscriptionAutoRenewalOptions = CustomerTurnOffSubscriptionAutoRenewalOptions;
6096
3510
  type index_d_CustomerTurnOnAutoRenewalRequest = CustomerTurnOnAutoRenewalRequest;
6097
3511
  type index_d_CustomerTurnOnAutoRenewalResponse = CustomerTurnOnAutoRenewalResponse;
3512
+ type index_d_CustomerTurnOnAutoRenewalResponseNonNullableFields = CustomerTurnOnAutoRenewalResponseNonNullableFields;
3513
+ type index_d_CustomerTurnOnSubscriptionAutoRenewalOptions = CustomerTurnOnSubscriptionAutoRenewalOptions;
6098
3514
  type index_d_DeleteDraftSubscriptionRequest = DeleteDraftSubscriptionRequest;
6099
3515
  type index_d_DeleteDraftSubscriptionResponse = DeleteDraftSubscriptionResponse;
6100
3516
  type index_d_DeleteSubscriptionRequest = DeleteSubscriptionRequest;
@@ -6109,6 +3525,7 @@ type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
6109
3525
  type index_d_Duration = Duration;
6110
3526
  type index_d_DurationUnit = DurationUnit;
6111
3527
  declare const index_d_DurationUnit: typeof DurationUnit;
3528
+ type index_d_DynamicTax = DynamicTax;
6112
3529
  type index_d_Empty = Empty;
6113
3530
  type index_d_EntityCreatedEvent = EntityCreatedEvent;
6114
3531
  type index_d_EntityDeletedEvent = EntityDeletedEvent;
@@ -6163,6 +3580,7 @@ type index_d_InitiatePaymentMethodSetupRequest = InitiatePaymentMethodSetupReque
6163
3580
  type index_d_InitiatePaymentMethodSetupResponse = InitiatePaymentMethodSetupResponse;
6164
3581
  type index_d_InitiatePaymentMethodSetupResponseNonNullableFields = InitiatePaymentMethodSetupResponseNonNullableFields;
6165
3582
  type index_d_InternalSubscriptionData = InternalSubscriptionData;
3583
+ type index_d_Invoice = Invoice;
6166
3584
  type index_d_InvoiceAction = InvoiceAction;
6167
3585
  type index_d_InvoiceActionActionTypeOneOf = InvoiceActionActionTypeOneOf;
6168
3586
  type index_d_InvoiceApplicationFee = InvoiceApplicationFee;
@@ -6171,11 +3589,14 @@ type index_d_InvoiceDiscount = InvoiceDiscount;
6171
3589
  type index_d_InvoiceDiscountValueOneOf = InvoiceDiscountValueOneOf;
6172
3590
  type index_d_InvoiceItem = InvoiceItem;
6173
3591
  type index_d_InvoiceItemPaymentTypeOneOf = InvoiceItemPaymentTypeOneOf;
3592
+ type index_d_InvoiceStatus = InvoiceStatus;
3593
+ declare const index_d_InvoiceStatus: typeof InvoiceStatus;
6174
3594
  type index_d_Item = Item;
6175
3595
  type index_d_ItemCategory = ItemCategory;
6176
3596
  declare const index_d_ItemCategory: typeof ItemCategory;
6177
3597
  type index_d_ItemChange = ItemChange;
6178
3598
  type index_d_LatestInvoiceMarkedAsPaid = LatestInvoiceMarkedAsPaid;
3599
+ type index_d_LatestPaymentAttempt = LatestPaymentAttempt;
6179
3600
  type index_d_ListSubscriptionHistoryRequest = ListSubscriptionHistoryRequest;
6180
3601
  type index_d_ListSubscriptionHistoryResponse = ListSubscriptionHistoryResponse;
6181
3602
  type index_d_ListUpcomingChargesOptions = ListUpcomingChargesOptions;
@@ -6210,6 +3631,8 @@ type index_d_PayCycleRequest = PayCycleRequest;
6210
3631
  type index_d_PayCycleResponse = PayCycleResponse;
6211
3632
  type index_d_PayCycleResponseNonNullableFields = PayCycleResponseNonNullableFields;
6212
3633
  type index_d_PayRecurringInvoice = PayRecurringInvoice;
3634
+ type index_d_PaymentAttemptStatus = PaymentAttemptStatus;
3635
+ declare const index_d_PaymentAttemptStatus: typeof PaymentAttemptStatus;
6213
3636
  type index_d_PaymentData = PaymentData;
6214
3637
  type index_d_PaymentMethod = PaymentMethod;
6215
3638
  type index_d_PaymentMethodUpdated = PaymentMethodUpdated;
@@ -6224,9 +3647,15 @@ type index_d_PaymentStatusEnumPaymentStatus = PaymentStatusEnumPaymentStatus;
6224
3647
  declare const index_d_PaymentStatusEnumPaymentStatus: typeof PaymentStatusEnumPaymentStatus;
6225
3648
  type index_d_PaymentTestMode = PaymentTestMode;
6226
3649
  declare const index_d_PaymentTestMode: typeof PaymentTestMode;
3650
+ type index_d_PreviewSubscriptionChargesOptions = PreviewSubscriptionChargesOptions;
6227
3651
  type index_d_PreviewSubscriptionChargesRequest = PreviewSubscriptionChargesRequest;
6228
3652
  type index_d_PreviewSubscriptionChargesRequestSubscriptionOneOf = PreviewSubscriptionChargesRequestSubscriptionOneOf;
6229
3653
  type index_d_PreviewSubscriptionChargesResponse = PreviewSubscriptionChargesResponse;
3654
+ type index_d_PreviewSubscriptionChargesResponseNonNullableFields = PreviewSubscriptionChargesResponseNonNullableFields;
3655
+ type index_d_PriceAdjustment = PriceAdjustment;
3656
+ type index_d_PriceAdjustmentAdjustmentTypeOneOf = PriceAdjustmentAdjustmentTypeOneOf;
3657
+ type index_d_PriceAdjustmentValue = PriceAdjustmentValue;
3658
+ type index_d_PriceAdjustmentValueAdjustmentValueTypeOneOf = PriceAdjustmentValueAdjustmentValueTypeOneOf;
6230
3659
  type index_d_PriceDetails = PriceDetails;
6231
3660
  type index_d_PricingModel = PricingModel;
6232
3661
  type index_d_PricingModelModelOneOf = PricingModelModelOneOf;
@@ -6414,10 +3843,19 @@ type index_d_V1SubscriptionUpdated = V1SubscriptionUpdated;
6414
3843
  type index_d_V2Subscription = V2Subscription;
6415
3844
  type index_d_WebhookIdentityType = WebhookIdentityType;
6416
3845
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
6417
- declare const index_d___metadata: typeof __metadata;
6418
3846
  declare const index_d_allowedActions: typeof allowedActions;
6419
3847
  declare const index_d_cancelSubscription: typeof cancelSubscription;
6420
3848
  declare const index_d_countSubscriptions: typeof countSubscriptions;
3849
+ declare const index_d_customerAllowedActions: typeof customerAllowedActions;
3850
+ declare const index_d_customerCancelSubscription: typeof customerCancelSubscription;
3851
+ declare const index_d_customerExtendSubscription: typeof customerExtendSubscription;
3852
+ declare const index_d_customerGetSubscription: typeof customerGetSubscription;
3853
+ declare const index_d_customerInitiatePaymentMethodSetup: typeof customerInitiatePaymentMethodSetup;
3854
+ declare const index_d_customerListUpcomingCharges: typeof customerListUpcomingCharges;
3855
+ declare const index_d_customerQuerySubscriptions: typeof customerQuerySubscriptions;
3856
+ declare const index_d_customerTurnOffSubscriptionAutoRenewal: typeof customerTurnOffSubscriptionAutoRenewal;
3857
+ declare const index_d_customerTurnOnSubscriptionAutoRenewal: typeof customerTurnOnSubscriptionAutoRenewal;
3858
+ declare const index_d_customerUpdateSubscriptionPaymentMethod: typeof customerUpdateSubscriptionPaymentMethod;
6421
3859
  declare const index_d_extendSubscription: typeof extendSubscription;
6422
3860
  declare const index_d_getSubscription: typeof getSubscription;
6423
3861
  declare const index_d_getSubscriptionsStats: typeof getSubscriptionsStats;
@@ -6439,6 +3877,7 @@ declare const index_d_onSubscriptionResumed: typeof onSubscriptionResumed;
6439
3877
  declare const index_d_onSubscriptionUpdated: typeof onSubscriptionUpdated;
6440
3878
  declare const index_d_pauseSubscription: typeof pauseSubscription;
6441
3879
  declare const index_d_payCycle: typeof payCycle;
3880
+ declare const index_d_previewSubscriptionCharges: typeof previewSubscriptionCharges;
6442
3881
  declare const index_d_querySubscriptions: typeof querySubscriptions;
6443
3882
  declare const index_d_resumeSubscription: typeof resumeSubscription;
6444
3883
  declare const index_d_searchSubscriptions: typeof searchSubscriptions;
@@ -6447,7 +3886,7 @@ declare const index_d_turnOnSubscriptionAutoRenewal: typeof turnOnSubscriptionAu
6447
3886
  declare const index_d_updateSubscriptionBillingDate: typeof updateSubscriptionBillingDate;
6448
3887
  declare const index_d_updateSubscriptionPaymentMethod: typeof updateSubscriptionPaymentMethod;
6449
3888
  declare namespace index_d {
6450
- export { type index_d_Action as Action, type index_d_ActionContext as ActionContext, type index_d_ActionDetails as ActionDetails, type index_d_ActionEvent as ActionEvent, index_d_ActionInitiator as ActionInitiator, index_d_ActionType as ActionType, type index_d_AddPausePeriodRequest as AddPausePeriodRequest, type index_d_AddPausePeriodResponse as AddPausePeriodResponse, type index_d_AdditionalFee as AdditionalFee, index_d_AdditionalFeeTrigger as AdditionalFeeTrigger, type index_d_Address as Address, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_AllowedActionsOptions as AllowedActionsOptions, type index_d_AllowedActionsRequest as AllowedActionsRequest, type index_d_AllowedActionsResponse as AllowedActionsResponse, type index_d_AllowedActionsResponseNonNullableFields as AllowedActionsResponseNonNullableFields, type index_d_AmountByStatus as AmountByStatus, type index_d_ApplicationFee as ApplicationFee, type index_d_ApplicationFeeValueOneOf as ApplicationFeeValueOneOf, type index_d_AttachInvoice as AttachInvoice, type index_d_AutomaticRetryData as AutomaticRetryData, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BillingSettings as BillingSettings, type index_d_BillingStatus as BillingStatus, type index_d_BulkItemChange as BulkItemChange, type index_d_BulkUpdateSubscriptionItemsByFilterRequest as BulkUpdateSubscriptionItemsByFilterRequest, type index_d_BulkUpdateSubscriptionItemsByFilterResponse as BulkUpdateSubscriptionItemsByFilterResponse, type index_d_BusinessOrigin as BusinessOrigin, type index_d_Cancel as Cancel, type index_d_CancelSubscriptionBORequest as CancelSubscriptionBORequest, type index_d_CancelSubscriptionBOResponse as CancelSubscriptionBOResponse, type index_d_CancelSubscriptionRequest as CancelSubscriptionRequest, type index_d_CancelSubscriptionResponse as CancelSubscriptionResponse, type index_d_CancelSubscriptionResponseNonNullableFields as CancelSubscriptionResponseNonNullableFields, type index_d_CancelTimeCapsuleTaskRequest as CancelTimeCapsuleTaskRequest, type index_d_CancellationInfo as CancellationInfo, index_d_CancellationInitiator as CancellationInitiator, type index_d_CatalogReference as CatalogReference, type index_d_Charge as Charge, index_d_CollectionMethod as CollectionMethod, type index_d_Complete as Complete, type index_d_ConvertSapiRequest as ConvertSapiRequest, type index_d_ConvertSapiResponse as ConvertSapiResponse, type index_d_CountByStatus as CountByStatus, type index_d_CountSubscriptionFilter as CountSubscriptionFilter, type index_d_CountSubscriptionFilterStatusOneOf as CountSubscriptionFilterStatusOneOf, type index_d_CountSubscriptionsOptions as CountSubscriptionsOptions, type index_d_CountSubscriptionsRequest as CountSubscriptionsRequest, type index_d_CountSubscriptionsResponse as CountSubscriptionsResponse, type index_d_CountSubscriptionsResponseNonNullableFields as CountSubscriptionsResponseNonNullableFields, type index_d_CreateRecurringInvoiceBORequest as CreateRecurringInvoiceBORequest, type index_d_CreateRecurringInvoiceBOResponse as CreateRecurringInvoiceBOResponse, type index_d_CreateSubscriptionInStateRequest as CreateSubscriptionInStateRequest, type index_d_CreateSubscriptionInStateRequestModeOneOf as CreateSubscriptionInStateRequestModeOneOf, type index_d_CreateSubscriptionInStateResponse as CreateSubscriptionInStateResponse, type index_d_CreateSubscriptionRequest as CreateSubscriptionRequest, type index_d_CreateSubscriptionResponse as CreateSubscriptionResponse, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_CustomBillingSchedule as CustomBillingSchedule, type index_d_CustomProration as CustomProration, type index_d_CustomProrationAmountOneOf as CustomProrationAmountOneOf, type index_d_Customer as Customer, type index_d_CustomerAllowedActionsRequest as CustomerAllowedActionsRequest, type index_d_CustomerAllowedActionsResponse as CustomerAllowedActionsResponse, type index_d_CustomerCancelSubscriptionRequest as CustomerCancelSubscriptionRequest, type index_d_CustomerCancelSubscriptionResponse as CustomerCancelSubscriptionResponse, type index_d_CustomerExtendSubscriptionRequest as CustomerExtendSubscriptionRequest, type index_d_CustomerExtendSubscriptionResponse as CustomerExtendSubscriptionResponse, type index_d_CustomerIdOneOf as CustomerIdOneOf, type index_d_CustomerListUpcomingChargesRequest as CustomerListUpcomingChargesRequest, type index_d_CustomerListUpcomingChargesResponse as CustomerListUpcomingChargesResponse, type index_d_CustomerTurnOffAutoRenewalRequest as CustomerTurnOffAutoRenewalRequest, type index_d_CustomerTurnOffAutoRenewalResponse as CustomerTurnOffAutoRenewalResponse, type index_d_CustomerTurnOnAutoRenewalRequest as CustomerTurnOnAutoRenewalRequest, type index_d_CustomerTurnOnAutoRenewalResponse as CustomerTurnOnAutoRenewalResponse, type index_d_DeleteDraftSubscriptionRequest as DeleteDraftSubscriptionRequest, type index_d_DeleteDraftSubscriptionResponse as DeleteDraftSubscriptionResponse, type index_d_DeleteSubscriptionRequest as DeleteSubscriptionRequest, type index_d_DeleteSubscriptionResponse as DeleteSubscriptionResponse, type index_d_DetachInvoice as DetachInvoice, type index_d_Discount as Discount, type index_d_DiscountCycles as DiscountCycles, type index_d_DiscountOrigin as DiscountOrigin, type index_d_DiscountValueOneOf as DiscountValueOneOf, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Duration as Duration, index_d_DurationUnit as DurationUnit, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, index_d_ExtendPolicyType as ExtendPolicyType, type index_d_ExtendSubscriptionOptions as ExtendSubscriptionOptions, type index_d_ExtendSubscriptionRequest as ExtendSubscriptionRequest, type index_d_ExtendSubscriptionRequestExtendPolicyOneOf as ExtendSubscriptionRequestExtendPolicyOneOf, type index_d_ExtendSubscriptionResponse as ExtendSubscriptionResponse, type index_d_ExtendSubscriptionResponseNonNullableFields as ExtendSubscriptionResponseNonNullableFields, type index_d_ExternalCollectionDetails as ExternalCollectionDetails, type index_d_FinishFreeTrialNowRequest as FinishFreeTrialNowRequest, type index_d_FinishFreeTrialNowResponse as FinishFreeTrialNowResponse, type index_d_FixSubscriptionInvoicesRequest as FixSubscriptionInvoicesRequest, type index_d_FixSubscriptionInvoicesRequestModeOneOf as FixSubscriptionInvoicesRequestModeOneOf, type index_d_FixSubscriptionInvoicesResponse as FixSubscriptionInvoicesResponse, type index_d_FixedPrice as FixedPrice, type index_d_FreeTrailEnded as FreeTrailEnded, type index_d_FreeTrailStarted as FreeTrailStarted, type index_d_FreeTrialData as FreeTrialData, type index_d_FullAddressContactDetails as FullAddressContactDetails, type index_d_FullAddressDetails as FullAddressDetails, type index_d_FutureUpdatesRequested as FutureUpdatesRequested, type index_d_GetFullSubscriptionDataRequest as GetFullSubscriptionDataRequest, type index_d_GetFullSubscriptionDataResponse as GetFullSubscriptionDataResponse, type index_d_GetSubscriptionAndInternalDataRequest as GetSubscriptionAndInternalDataRequest, type index_d_GetSubscriptionAndInternalDataResponse as GetSubscriptionAndInternalDataResponse, type index_d_GetSubscriptionInvoicesRequest as GetSubscriptionInvoicesRequest, type index_d_GetSubscriptionInvoicesResponse as GetSubscriptionInvoicesResponse, type index_d_GetSubscriptionRequest as GetSubscriptionRequest, type index_d_GetSubscriptionResponse as GetSubscriptionResponse, type index_d_GetSubscriptionResponseNonNullableFields as GetSubscriptionResponseNonNullableFields, type index_d_GetSubscriptionsStatsRequest as GetSubscriptionsStatsRequest, type index_d_GetSubscriptionsStatsResponse as GetSubscriptionsStatsResponse, type index_d_GetSubscriptionsStatsResponseNonNullableFields as GetSubscriptionsStatsResponseNonNullableFields, type index_d_GracePeriodData as GracePeriodData, type index_d_GracePeriodEnded as GracePeriodEnded, type index_d_GracePeriodStarted as GracePeriodStarted, type index_d_HandleSubscriptionAfterInvoiceMarkedAsPaidRequest as HandleSubscriptionAfterInvoiceMarkedAsPaidRequest, index_d_HistoryActionInitiator as HistoryActionInitiator, index_d_HistoryViewMode as HistoryViewMode, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_InitiatePaymentMethodSetupOptions as InitiatePaymentMethodSetupOptions, type index_d_InitiatePaymentMethodSetupRequest as InitiatePaymentMethodSetupRequest, type index_d_InitiatePaymentMethodSetupResponse as InitiatePaymentMethodSetupResponse, type index_d_InitiatePaymentMethodSetupResponseNonNullableFields as InitiatePaymentMethodSetupResponseNonNullableFields, type index_d_InternalSubscriptionData as InternalSubscriptionData, type index_d_InvoiceAction as InvoiceAction, type index_d_InvoiceActionActionTypeOneOf as InvoiceActionActionTypeOneOf, type index_d_InvoiceApplicationFee as InvoiceApplicationFee, type index_d_InvoiceApplicationFeeValueOneOf as InvoiceApplicationFeeValueOneOf, type index_d_InvoiceDiscount as InvoiceDiscount, type index_d_InvoiceDiscountValueOneOf as InvoiceDiscountValueOneOf, type index_d_InvoiceItem as InvoiceItem, type index_d_InvoiceItemPaymentTypeOneOf as InvoiceItemPaymentTypeOneOf, type index_d_Item as Item, index_d_ItemCategory as ItemCategory, type index_d_ItemChange as ItemChange, type index_d_LatestInvoiceMarkedAsPaid as LatestInvoiceMarkedAsPaid, type index_d_ListSubscriptionHistoryRequest as ListSubscriptionHistoryRequest, type index_d_ListSubscriptionHistoryResponse as ListSubscriptionHistoryResponse, type index_d_ListUpcomingChargesOptions as ListUpcomingChargesOptions, type index_d_ListUpcomingChargesRequest as ListUpcomingChargesRequest, type index_d_ListUpcomingChargesResponse as ListUpcomingChargesResponse, type index_d_ListUpcomingChargesResponseNonNullableFields as ListUpcomingChargesResponseNonNullableFields, type index_d_MarkLatestInvoiceAsPaidRequest as MarkLatestInvoiceAsPaidRequest, type index_d_MarkLatestInvoiceAsPaidResponse as MarkLatestInvoiceAsPaidResponse, type index_d_MarkLatestInvoiceAsPaidResponseNonNullableFields as MarkLatestInvoiceAsPaidResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MigrationDetails as MigrationDetails, type index_d_Money as Money, type index_d_OneTime as OneTime, index_d_OrderMethod as OrderMethod, type index_d_OriginOverride as OriginOverride, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_PauseAt as PauseAt, type index_d_PauseInfo as PauseInfo, type index_d_PausePeriod as PausePeriod, index_d_PausePolicy as PausePolicy, type index_d_PauseSubscriptionOptions as PauseSubscriptionOptions, type index_d_PauseSubscriptionRequest as PauseSubscriptionRequest, type index_d_PauseSubscriptionRequested as PauseSubscriptionRequested, type index_d_PauseSubscriptionResponse as PauseSubscriptionResponse, type index_d_PauseSubscriptionResponseNonNullableFields as PauseSubscriptionResponseNonNullableFields, type index_d_PayCycleOptions as PayCycleOptions, type index_d_PayCycleRequest as PayCycleRequest, type index_d_PayCycleResponse as PayCycleResponse, type index_d_PayCycleResponseNonNullableFields as PayCycleResponseNonNullableFields, type index_d_PayRecurringInvoice as PayRecurringInvoice, type index_d_PaymentData as PaymentData, type index_d_PaymentMethod as PaymentMethod, type index_d_PaymentMethodUpdated as PaymentMethodUpdated, index_d_PaymentMode as PaymentMode, type index_d_PaymentSettings as PaymentSettings, index_d_PaymentSettlementMethod as PaymentSettlementMethod, index_d_PaymentStatus as PaymentStatus, index_d_PaymentStatusEnumPaymentStatus as PaymentStatusEnumPaymentStatus, index_d_PaymentTestMode as PaymentTestMode, type index_d_PreviewSubscriptionChargesRequest as PreviewSubscriptionChargesRequest, type index_d_PreviewSubscriptionChargesRequestSubscriptionOneOf as PreviewSubscriptionChargesRequestSubscriptionOneOf, type index_d_PreviewSubscriptionChargesResponse as PreviewSubscriptionChargesResponse, type index_d_PriceDetails as PriceDetails, type index_d_PricingModel as PricingModel, type index_d_PricingModelModelOneOf as PricingModelModelOneOf, type index_d_Proration as Proration, type index_d_ProrationTypeOneOf as ProrationTypeOneOf, type index_d_QuerySubscriptionsRequest as QuerySubscriptionsRequest, type index_d_QuerySubscriptionsResponse as QuerySubscriptionsResponse, type index_d_QuerySubscriptionsResponseNonNullableFields as QuerySubscriptionsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_Recurring as Recurring, type index_d_RedirectUrls as RedirectUrls, index_d_RequestedFields as RequestedFields, type index_d_Reschedule as Reschedule, type index_d_ResetPendingUpdates as ResetPendingUpdates, type index_d_RestoreDraftSubscriptionRequest as RestoreDraftSubscriptionRequest, type index_d_RestoreDraftSubscriptionResponse as RestoreDraftSubscriptionResponse, type index_d_RestoreInfo as RestoreInfo, index_d_ResumeAt as ResumeAt, type index_d_ResumeSubscriptionOptions as ResumeSubscriptionOptions, type index_d_ResumeSubscriptionRequest as ResumeSubscriptionRequest, type index_d_ResumeSubscriptionRequested as ResumeSubscriptionRequested, type index_d_ResumeSubscriptionResponse as ResumeSubscriptionResponse, type index_d_ResumeSubscriptionResponseNonNullableFields as ResumeSubscriptionResponseNonNullableFields, type index_d_ReviseSubscriptionRequest as ReviseSubscriptionRequest, type index_d_ReviseSubscriptionResponse as ReviseSubscriptionResponse, index_d_RevivePolicy as RevivePolicy, type index_d_ReviveSubscriptionRequest as ReviveSubscriptionRequest, type index_d_ReviveSubscriptionResponse as ReviveSubscriptionResponse, type index_d_RunTimeCapsuleTaskNowRequest as RunTimeCapsuleTaskNowRequest, type index_d_ScheduleAdditionalInfo as ScheduleAdditionalInfo, type index_d_ScheduleAdditionalInfoParamOneOf as ScheduleAdditionalInfoParamOneOf, type index_d_ScheduleTimeCapsuleTaskRequest as ScheduleTimeCapsuleTaskRequest, type index_d_ScheduledPauseCanceled as ScheduledPauseCanceled, type index_d_ScheduledResumeCanceled as ScheduledResumeCanceled, type index_d_SearchSubscriptionRequest as SearchSubscriptionRequest, type index_d_SearchSubscriptionResponse as SearchSubscriptionResponse, type index_d_SearchSubscriptionsOptions as SearchSubscriptionsOptions, type index_d_SearchSubscriptionsRequest as SearchSubscriptionsRequest, type index_d_SearchSubscriptionsRequestPagingMethodOneOf as SearchSubscriptionsRequestPagingMethodOneOf, type index_d_SearchSubscriptionsResponse as SearchSubscriptionsResponse, type index_d_SearchSubscriptionsResponseNonNullableFields as SearchSubscriptionsResponseNonNullableFields, type index_d_SendSubscriptionActionEventBORequest as SendSubscriptionActionEventBORequest, type index_d_SendSubscriptionActionEventBORequestEventOneOf as SendSubscriptionActionEventBORequestEventOneOf, type index_d_SendSubscriptionActionEventResponse as SendSubscriptionActionEventResponse, type index_d_SendTimeCapsuleTaskCanceledBIRequest as SendTimeCapsuleTaskCanceledBIRequest, type index_d_SetIsMigratedEvent as SetIsMigratedEvent, type index_d_SetShiftingDataRequest as SetShiftingDataRequest, type index_d_SetShiftingDataResponse as SetShiftingDataResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_SortingClauses as SortingClauses, type index_d_SpecificDateSubscriptionUpdateData as SpecificDateSubscriptionUpdateData, index_d_Status as Status, type index_d_StreetAddress as StreetAddress, type index_d_Subscriber as Subscriber, type index_d_Subscription as Subscription, type index_d_SubscriptionActivated as SubscriptionActivated, type index_d_SubscriptionAutoRenewalTurnedOff as SubscriptionAutoRenewalTurnedOff, type index_d_SubscriptionAutoRenewalTurnedOffEnvelope as SubscriptionAutoRenewalTurnedOffEnvelope, type index_d_SubscriptionAutoRenewalTurnedOn as SubscriptionAutoRenewalTurnedOn, type index_d_SubscriptionAutoRenewalTurnedOnEnvelope as SubscriptionAutoRenewalTurnedOnEnvelope, type index_d_SubscriptionBackOfficeAction as SubscriptionBackOfficeAction, type index_d_SubscriptionBillingCycleStarted as SubscriptionBillingCycleStarted, type index_d_SubscriptionBillingDateUpdated as SubscriptionBillingDateUpdated, type index_d_SubscriptionBillingDateUpdatedEnvelope as SubscriptionBillingDateUpdatedEnvelope, type index_d_SubscriptionCanceled as SubscriptionCanceled, type index_d_SubscriptionCanceledEnvelope as SubscriptionCanceledEnvelope, type index_d_SubscriptionCancellationRequested as SubscriptionCancellationRequested, type index_d_SubscriptionCharge as SubscriptionCharge, type index_d_SubscriptionCollectionMethodUpdated as SubscriptionCollectionMethodUpdated, type index_d_SubscriptionCreated as SubscriptionCreated, type index_d_SubscriptionCycleReadyToPay as SubscriptionCycleReadyToPay, type index_d_SubscriptionCycleTriggered as SubscriptionCycleTriggered, type index_d_SubscriptionDelayedSyncEvent as SubscriptionDelayedSyncEvent, type index_d_SubscriptionDeleted as SubscriptionDeleted, type index_d_SubscriptionDiff as SubscriptionDiff, type index_d_SubscriptionEnded as SubscriptionEnded, type index_d_SubscriptionEvent as SubscriptionEvent, type index_d_SubscriptionEventPayloadOneOf as SubscriptionEventPayloadOneOf, type index_d_SubscriptionExpired as SubscriptionExpired, type index_d_SubscriptionExtended as SubscriptionExtended, type index_d_SubscriptionExtendedEnvelope as SubscriptionExtendedEnvelope, type index_d_SubscriptionExtendedExtendPolicyOneOf as SubscriptionExtendedExtendPolicyOneOf, index_d_SubscriptionFrequency as SubscriptionFrequency, type index_d_SubscriptionHistoryEntry as SubscriptionHistoryEntry, type index_d_SubscriptionInfo as SubscriptionInfo, type index_d_SubscriptionInitialPurchaseCompleted as SubscriptionInitialPurchaseCompleted, type index_d_SubscriptionInvoice as SubscriptionInvoice, type index_d_SubscriptionLatestInvoiceMarkedAsPaidEnvelope as SubscriptionLatestInvoiceMarkedAsPaidEnvelope, type index_d_SubscriptionMarkedAsPaid as SubscriptionMarkedAsPaid, type index_d_SubscriptionPauseScheduleCanceledEnvelope as SubscriptionPauseScheduleCanceledEnvelope, type index_d_SubscriptionPauseScheduledEnvelope as SubscriptionPauseScheduledEnvelope, type index_d_SubscriptionPaused as SubscriptionPaused, type index_d_SubscriptionPausedEnvelope as SubscriptionPausedEnvelope, type index_d_SubscriptionPolicies as SubscriptionPolicies, type index_d_SubscriptionPolicy as SubscriptionPolicy, type index_d_SubscriptionResumeScheduleCanceledEnvelope as SubscriptionResumeScheduleCanceledEnvelope, type index_d_SubscriptionResumeScheduledEnvelope as SubscriptionResumeScheduledEnvelope, type index_d_SubscriptionResumed as SubscriptionResumed, type index_d_SubscriptionResumedEnvelope as SubscriptionResumedEnvelope, type index_d_SubscriptionRevived as SubscriptionRevived, type index_d_SubscriptionStatus as SubscriptionStatus, index_d_SubscriptionStatusEnumSubscriptionStatus as SubscriptionStatusEnumSubscriptionStatus, index_d_SubscriptionStatusGroup as SubscriptionStatusGroup, type index_d_SubscriptionSuspended as SubscriptionSuspended, type index_d_SubscriptionTrialPeriod as SubscriptionTrialPeriod, index_d_SubscriptionType as SubscriptionType, type index_d_SubscriptionUpdateData as SubscriptionUpdateData, type index_d_SubscriptionUpdated as SubscriptionUpdated, type index_d_SubscriptionUpdatedEnvelope as SubscriptionUpdatedEnvelope, type index_d_Suspension as Suspension, type index_d_Task as Task, type index_d_TaskAction as TaskAction, type index_d_TaskActionActionOneOf as TaskActionActionOneOf, type index_d_TaskKey as TaskKey, type index_d_Tax as Tax, type index_d_TaxSettings as TaxSettings, type index_d_TaxValueOneOf as TaxValueOneOf, type index_d_TimeBasedProration as TimeBasedProration, type index_d_Totals as Totals, type index_d_TurnOffSubscriptionAutoRenewalRequest as TurnOffSubscriptionAutoRenewalRequest, type index_d_TurnOffSubscriptionAutoRenewalResponse as TurnOffSubscriptionAutoRenewalResponse, type index_d_TurnOffSubscriptionAutoRenewalResponseNonNullableFields as TurnOffSubscriptionAutoRenewalResponseNonNullableFields, type index_d_TurnOnSubscriptionAutoRenewalRequest as TurnOnSubscriptionAutoRenewalRequest, type index_d_TurnOnSubscriptionAutoRenewalResponse as TurnOnSubscriptionAutoRenewalResponse, type index_d_TurnOnSubscriptionAutoRenewalResponseNonNullableFields as TurnOnSubscriptionAutoRenewalResponseNonNullableFields, type index_d_UnknownSubscriptionEvent as UnknownSubscriptionEvent, type index_d_UnsupportedAction as UnsupportedAction, type index_d_UnsupportedReason as UnsupportedReason, index_d_UpdateAction as UpdateAction, type index_d_UpdateBillingDateData as UpdateBillingDateData, type index_d_UpdateFullSubscriptionRequest as UpdateFullSubscriptionRequest, type index_d_UpdateFullSubscriptionResponse as UpdateFullSubscriptionResponse, type index_d_UpdatePausePaidDurationRequest as UpdatePausePaidDurationRequest, type index_d_UpdatePausePaidDurationResponse as UpdatePausePaidDurationResponse, type index_d_UpdatePaymentMethodBORequest as UpdatePaymentMethodBORequest, type index_d_UpdatePaymentMethodBOResponse as UpdatePaymentMethodBOResponse, type index_d_UpdatePaymentStatusRequest as UpdatePaymentStatusRequest, type index_d_UpdatePaymentStatusResponse as UpdatePaymentStatusResponse, type index_d_UpdateStatusRequest as UpdateStatusRequest, type index_d_UpdateStatusResponse as UpdateStatusResponse, type index_d_UpdateSubscriptionBillingDateOptions as UpdateSubscriptionBillingDateOptions, type index_d_UpdateSubscriptionBillingDateRequest as UpdateSubscriptionBillingDateRequest, type index_d_UpdateSubscriptionBillingDateResponse as UpdateSubscriptionBillingDateResponse, type index_d_UpdateSubscriptionBillingDateResponseNonNullableFields as UpdateSubscriptionBillingDateResponseNonNullableFields, type index_d_UpdateSubscriptionInvoiceCycleRequest as UpdateSubscriptionInvoiceCycleRequest, type index_d_UpdateSubscriptionInvoiceCycleResponse as UpdateSubscriptionInvoiceCycleResponse, type index_d_UpdateSubscriptionItemsRequest as UpdateSubscriptionItemsRequest, type index_d_UpdateSubscriptionItemsResponse as UpdateSubscriptionItemsResponse, type index_d_UpdateSubscriptionOriginRequest as UpdateSubscriptionOriginRequest, type index_d_UpdateSubscriptionOriginResponse as UpdateSubscriptionOriginResponse, type index_d_UpdateSubscriptionPaymentMethodRequest as UpdateSubscriptionPaymentMethodRequest, type index_d_UpdateSubscriptionPaymentMethodResponse as UpdateSubscriptionPaymentMethodResponse, type index_d_UpdateSubscriptionPaymentMethodResponseNonNullableFields as UpdateSubscriptionPaymentMethodResponseNonNullableFields, type index_d_UpdateSubscriptionPoliciesRequest as UpdateSubscriptionPoliciesRequest, type index_d_UpdateSubscriptionPoliciesResponse as UpdateSubscriptionPoliciesResponse, type index_d_UpdateSubscriptionRequest as UpdateSubscriptionRequest, type index_d_UpdateSubscriptionResponse as UpdateSubscriptionResponse, type index_d_UpdateSubscriptionStartDateRequest as UpdateSubscriptionStartDateRequest, type index_d_UpdateSubscriptionStartDateResponse as UpdateSubscriptionStartDateResponse, type index_d_UpdatesApplied as UpdatesApplied, type index_d_V1Duration as V1Duration, type index_d_V1Subscription as V1Subscription, type index_d_V1SubscriptionActivated as V1SubscriptionActivated, type index_d_V1SubscriptionCanceled as V1SubscriptionCanceled, type index_d_V1SubscriptionCreated as V1SubscriptionCreated, type index_d_V1SubscriptionEvent as V1SubscriptionEvent, type index_d_V1SubscriptionEventEventOneOf as V1SubscriptionEventEventOneOf, type index_d_V1SubscriptionInitialPurchaseCompleted as V1SubscriptionInitialPurchaseCompleted, type index_d_V1SubscriptionResumed as V1SubscriptionResumed, index_d_V1SubscriptionStatusEnumSubscriptionStatus as V1SubscriptionStatusEnumSubscriptionStatus, type index_d_V1SubscriptionUpdated as V1SubscriptionUpdated, type index_d_V2Subscription as V2Subscription, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_allowedActions as allowedActions, index_d_cancelSubscription as cancelSubscription, index_d_countSubscriptions as countSubscriptions, index_d_extendSubscription as extendSubscription, index_d_getSubscription as getSubscription, index_d_getSubscriptionsStats as getSubscriptionsStats, index_d_initiatePaymentMethodSetup as initiatePaymentMethodSetup, index_d_listUpcomingCharges as listUpcomingCharges, index_d_markLatestInvoiceAsPaid as markLatestInvoiceAsPaid, index_d_onSubscriptionAutoRenewalTurnedOff as onSubscriptionAutoRenewalTurnedOff, index_d_onSubscriptionAutoRenewalTurnedOn as onSubscriptionAutoRenewalTurnedOn, index_d_onSubscriptionBillingDateUpdated as onSubscriptionBillingDateUpdated, index_d_onSubscriptionCanceled as onSubscriptionCanceled, index_d_onSubscriptionExtended as onSubscriptionExtended, index_d_onSubscriptionLatestInvoiceMarkedAsPaid as onSubscriptionLatestInvoiceMarkedAsPaid, index_d_onSubscriptionPauseScheduleCanceled as onSubscriptionPauseScheduleCanceled, index_d_onSubscriptionPauseScheduled as onSubscriptionPauseScheduled, index_d_onSubscriptionPaused as onSubscriptionPaused, index_d_onSubscriptionResumeScheduleCanceled as onSubscriptionResumeScheduleCanceled, index_d_onSubscriptionResumeScheduled as onSubscriptionResumeScheduled, index_d_onSubscriptionResumed as onSubscriptionResumed, index_d_onSubscriptionUpdated as onSubscriptionUpdated, index_d_pauseSubscription as pauseSubscription, index_d_payCycle as payCycle, index_d_querySubscriptions as querySubscriptions, index_d_resumeSubscription as resumeSubscription, index_d_searchSubscriptions as searchSubscriptions, index_d_turnOffSubscriptionAutoRenewal as turnOffSubscriptionAutoRenewal, index_d_turnOnSubscriptionAutoRenewal as turnOnSubscriptionAutoRenewal, index_d_updateSubscriptionBillingDate as updateSubscriptionBillingDate, index_d_updateSubscriptionPaymentMethod as updateSubscriptionPaymentMethod };
3889
+ export { type index_d_Action as Action, type index_d_ActionContext as ActionContext, type index_d_ActionDetails as ActionDetails, type index_d_ActionEvent as ActionEvent, index_d_ActionInitiator as ActionInitiator, index_d_ActionType as ActionType, type index_d_AddPausePeriodRequest as AddPausePeriodRequest, type index_d_AddPausePeriodResponse as AddPausePeriodResponse, type index_d_AdditionalFee as AdditionalFee, index_d_AdditionalFeeTrigger as AdditionalFeeTrigger, type index_d_Address as Address, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_AllowedActionsOptions as AllowedActionsOptions, type index_d_AllowedActionsRequest as AllowedActionsRequest, type index_d_AllowedActionsResponse as AllowedActionsResponse, type index_d_AllowedActionsResponseNonNullableFields as AllowedActionsResponseNonNullableFields, type index_d_AmountByStatus as AmountByStatus, type index_d_ApplicationFee as ApplicationFee, type index_d_ApplicationFeeValueOneOf as ApplicationFeeValueOneOf, type index_d_AttachInvoice as AttachInvoice, type index_d_AutomaticRetryData as AutomaticRetryData, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BillingSettings as BillingSettings, type index_d_BillingStatus as BillingStatus, type index_d_BulkItemChange as BulkItemChange, type index_d_BulkUpdateSubscriptionItemsByFilterRequest as BulkUpdateSubscriptionItemsByFilterRequest, type index_d_BulkUpdateSubscriptionItemsByFilterResponse as BulkUpdateSubscriptionItemsByFilterResponse, type index_d_BusinessOrigin as BusinessOrigin, type index_d_BusinessOriginData as BusinessOriginData, type index_d_Cancel as Cancel, type index_d_CancelSubscriptionBORequest as CancelSubscriptionBORequest, type index_d_CancelSubscriptionBOResponse as CancelSubscriptionBOResponse, type index_d_CancelSubscriptionRequest as CancelSubscriptionRequest, type index_d_CancelSubscriptionResponse as CancelSubscriptionResponse, type index_d_CancelSubscriptionResponseNonNullableFields as CancelSubscriptionResponseNonNullableFields, type index_d_CancelTimeCapsuleTaskRequest as CancelTimeCapsuleTaskRequest, type index_d_CancellationInfo as CancellationInfo, index_d_CancellationInitiator as CancellationInitiator, type index_d_CatalogReference as CatalogReference, type index_d_Charge as Charge, index_d_CollectionMethod as CollectionMethod, index_d_CollectionMethodEnumCollectionMethod as CollectionMethodEnumCollectionMethod, type index_d_Complete as Complete, type index_d_ConvertSapiRequest as ConvertSapiRequest, type index_d_ConvertSapiResponse as ConvertSapiResponse, type index_d_CountByStatus as CountByStatus, type index_d_CountSubscriptionFilter as CountSubscriptionFilter, type index_d_CountSubscriptionFilterStatusOneOf as CountSubscriptionFilterStatusOneOf, type index_d_CountSubscriptionsOptions as CountSubscriptionsOptions, type index_d_CountSubscriptionsRequest as CountSubscriptionsRequest, type index_d_CountSubscriptionsResponse as CountSubscriptionsResponse, type index_d_CountSubscriptionsResponseNonNullableFields as CountSubscriptionsResponseNonNullableFields, type index_d_CreateRecurringInvoiceBORequest as CreateRecurringInvoiceBORequest, type index_d_CreateRecurringInvoiceBOResponse as CreateRecurringInvoiceBOResponse, type index_d_CreateSubscriptionForOrderRequest as CreateSubscriptionForOrderRequest, type index_d_CreateSubscriptionForOrderResponse as CreateSubscriptionForOrderResponse, type index_d_CreateSubscriptionInStateRequest as CreateSubscriptionInStateRequest, type index_d_CreateSubscriptionInStateRequestModeOneOf as CreateSubscriptionInStateRequestModeOneOf, type index_d_CreateSubscriptionInStateResponse as CreateSubscriptionInStateResponse, type index_d_CreateSubscriptionRequest as CreateSubscriptionRequest, type index_d_CreateSubscriptionResponse as CreateSubscriptionResponse, index_d_CreationMode as CreationMode, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_CustomBillingSchedule as CustomBillingSchedule, type index_d_CustomProration as CustomProration, type index_d_CustomProrationAmountOneOf as CustomProrationAmountOneOf, type index_d_Customer as Customer, type index_d_CustomerAllowedActionsRequest as CustomerAllowedActionsRequest, type index_d_CustomerAllowedActionsResponse as CustomerAllowedActionsResponse, type index_d_CustomerAllowedActionsResponseNonNullableFields as CustomerAllowedActionsResponseNonNullableFields, type index_d_CustomerCancelSubscriptionOptions as CustomerCancelSubscriptionOptions, type index_d_CustomerCancelSubscriptionRequest as CustomerCancelSubscriptionRequest, type index_d_CustomerCancelSubscriptionResponse as CustomerCancelSubscriptionResponse, type index_d_CustomerCancelSubscriptionResponseNonNullableFields as CustomerCancelSubscriptionResponseNonNullableFields, type index_d_CustomerExtendSubscriptionOptions as CustomerExtendSubscriptionOptions, type index_d_CustomerExtendSubscriptionRequest as CustomerExtendSubscriptionRequest, type index_d_CustomerExtendSubscriptionResponse as CustomerExtendSubscriptionResponse, type index_d_CustomerExtendSubscriptionResponseNonNullableFields as CustomerExtendSubscriptionResponseNonNullableFields, type index_d_CustomerIdOneOf as CustomerIdOneOf, type index_d_CustomerInitiatePaymentMethodSetupOptions as CustomerInitiatePaymentMethodSetupOptions, type index_d_CustomerListUpcomingChargesRequest as CustomerListUpcomingChargesRequest, type index_d_CustomerListUpcomingChargesResponse as CustomerListUpcomingChargesResponse, type index_d_CustomerListUpcomingChargesResponseNonNullableFields as CustomerListUpcomingChargesResponseNonNullableFields, type index_d_CustomerQuerySubscriptionsOptions as CustomerQuerySubscriptionsOptions, type index_d_CustomerTurnOffAutoRenewalRequest as CustomerTurnOffAutoRenewalRequest, type index_d_CustomerTurnOffAutoRenewalResponse as CustomerTurnOffAutoRenewalResponse, type index_d_CustomerTurnOffAutoRenewalResponseNonNullableFields as CustomerTurnOffAutoRenewalResponseNonNullableFields, type index_d_CustomerTurnOffSubscriptionAutoRenewalOptions as CustomerTurnOffSubscriptionAutoRenewalOptions, type index_d_CustomerTurnOnAutoRenewalRequest as CustomerTurnOnAutoRenewalRequest, type index_d_CustomerTurnOnAutoRenewalResponse as CustomerTurnOnAutoRenewalResponse, type index_d_CustomerTurnOnAutoRenewalResponseNonNullableFields as CustomerTurnOnAutoRenewalResponseNonNullableFields, type index_d_CustomerTurnOnSubscriptionAutoRenewalOptions as CustomerTurnOnSubscriptionAutoRenewalOptions, type index_d_DeleteDraftSubscriptionRequest as DeleteDraftSubscriptionRequest, type index_d_DeleteDraftSubscriptionResponse as DeleteDraftSubscriptionResponse, type index_d_DeleteSubscriptionRequest as DeleteSubscriptionRequest, type index_d_DeleteSubscriptionResponse as DeleteSubscriptionResponse, type index_d_DetachInvoice as DetachInvoice, type index_d_Discount as Discount, type index_d_DiscountCycles as DiscountCycles, type index_d_DiscountOrigin as DiscountOrigin, type index_d_DiscountValueOneOf as DiscountValueOneOf, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Duration as Duration, index_d_DurationUnit as DurationUnit, type index_d_DynamicTax as DynamicTax, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, index_d_ExtendPolicyType as ExtendPolicyType, type index_d_ExtendSubscriptionOptions as ExtendSubscriptionOptions, type index_d_ExtendSubscriptionRequest as ExtendSubscriptionRequest, type index_d_ExtendSubscriptionRequestExtendPolicyOneOf as ExtendSubscriptionRequestExtendPolicyOneOf, type index_d_ExtendSubscriptionResponse as ExtendSubscriptionResponse, type index_d_ExtendSubscriptionResponseNonNullableFields as ExtendSubscriptionResponseNonNullableFields, type index_d_ExternalCollectionDetails as ExternalCollectionDetails, type index_d_FinishFreeTrialNowRequest as FinishFreeTrialNowRequest, type index_d_FinishFreeTrialNowResponse as FinishFreeTrialNowResponse, type index_d_FixSubscriptionInvoicesRequest as FixSubscriptionInvoicesRequest, type index_d_FixSubscriptionInvoicesRequestModeOneOf as FixSubscriptionInvoicesRequestModeOneOf, type index_d_FixSubscriptionInvoicesResponse as FixSubscriptionInvoicesResponse, type index_d_FixedPrice as FixedPrice, type index_d_FreeTrailEnded as FreeTrailEnded, type index_d_FreeTrailStarted as FreeTrailStarted, type index_d_FreeTrialData as FreeTrialData, type index_d_FullAddressContactDetails as FullAddressContactDetails, type index_d_FullAddressDetails as FullAddressDetails, type index_d_FutureUpdatesRequested as FutureUpdatesRequested, type index_d_GetFullSubscriptionDataRequest as GetFullSubscriptionDataRequest, type index_d_GetFullSubscriptionDataResponse as GetFullSubscriptionDataResponse, type index_d_GetSubscriptionAndInternalDataRequest as GetSubscriptionAndInternalDataRequest, type index_d_GetSubscriptionAndInternalDataResponse as GetSubscriptionAndInternalDataResponse, type index_d_GetSubscriptionInvoicesRequest as GetSubscriptionInvoicesRequest, type index_d_GetSubscriptionInvoicesResponse as GetSubscriptionInvoicesResponse, type index_d_GetSubscriptionRequest as GetSubscriptionRequest, type index_d_GetSubscriptionResponse as GetSubscriptionResponse, type index_d_GetSubscriptionResponseNonNullableFields as GetSubscriptionResponseNonNullableFields, type index_d_GetSubscriptionsStatsRequest as GetSubscriptionsStatsRequest, type index_d_GetSubscriptionsStatsResponse as GetSubscriptionsStatsResponse, type index_d_GetSubscriptionsStatsResponseNonNullableFields as GetSubscriptionsStatsResponseNonNullableFields, type index_d_GracePeriodData as GracePeriodData, type index_d_GracePeriodEnded as GracePeriodEnded, type index_d_GracePeriodStarted as GracePeriodStarted, type index_d_HandleSubscriptionAfterInvoiceMarkedAsPaidRequest as HandleSubscriptionAfterInvoiceMarkedAsPaidRequest, index_d_HistoryActionInitiator as HistoryActionInitiator, index_d_HistoryViewMode as HistoryViewMode, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_InitiatePaymentMethodSetupOptions as InitiatePaymentMethodSetupOptions, type index_d_InitiatePaymentMethodSetupRequest as InitiatePaymentMethodSetupRequest, type index_d_InitiatePaymentMethodSetupResponse as InitiatePaymentMethodSetupResponse, type index_d_InitiatePaymentMethodSetupResponseNonNullableFields as InitiatePaymentMethodSetupResponseNonNullableFields, type index_d_InternalSubscriptionData as InternalSubscriptionData, type index_d_Invoice as Invoice, type index_d_InvoiceAction as InvoiceAction, type index_d_InvoiceActionActionTypeOneOf as InvoiceActionActionTypeOneOf, type index_d_InvoiceApplicationFee as InvoiceApplicationFee, type index_d_InvoiceApplicationFeeValueOneOf as InvoiceApplicationFeeValueOneOf, type index_d_InvoiceDiscount as InvoiceDiscount, type index_d_InvoiceDiscountValueOneOf as InvoiceDiscountValueOneOf, type index_d_InvoiceItem as InvoiceItem, type index_d_InvoiceItemPaymentTypeOneOf as InvoiceItemPaymentTypeOneOf, index_d_InvoiceStatus as InvoiceStatus, type index_d_Item as Item, index_d_ItemCategory as ItemCategory, type index_d_ItemChange as ItemChange, type index_d_LatestInvoiceMarkedAsPaid as LatestInvoiceMarkedAsPaid, type index_d_LatestPaymentAttempt as LatestPaymentAttempt, type index_d_ListSubscriptionHistoryRequest as ListSubscriptionHistoryRequest, type index_d_ListSubscriptionHistoryResponse as ListSubscriptionHistoryResponse, type index_d_ListUpcomingChargesOptions as ListUpcomingChargesOptions, type index_d_ListUpcomingChargesRequest as ListUpcomingChargesRequest, type index_d_ListUpcomingChargesResponse as ListUpcomingChargesResponse, type index_d_ListUpcomingChargesResponseNonNullableFields as ListUpcomingChargesResponseNonNullableFields, type index_d_MarkLatestInvoiceAsPaidRequest as MarkLatestInvoiceAsPaidRequest, type index_d_MarkLatestInvoiceAsPaidResponse as MarkLatestInvoiceAsPaidResponse, type index_d_MarkLatestInvoiceAsPaidResponseNonNullableFields as MarkLatestInvoiceAsPaidResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MigrationDetails as MigrationDetails, type index_d_Money as Money, type index_d_OneTime as OneTime, index_d_OrderMethod as OrderMethod, type index_d_OriginOverride as OriginOverride, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_PauseAt as PauseAt, type index_d_PauseInfo as PauseInfo, type index_d_PausePeriod as PausePeriod, index_d_PausePolicy as PausePolicy, type index_d_PauseSubscriptionOptions as PauseSubscriptionOptions, type index_d_PauseSubscriptionRequest as PauseSubscriptionRequest, type index_d_PauseSubscriptionRequested as PauseSubscriptionRequested, type index_d_PauseSubscriptionResponse as PauseSubscriptionResponse, type index_d_PauseSubscriptionResponseNonNullableFields as PauseSubscriptionResponseNonNullableFields, type index_d_PayCycleOptions as PayCycleOptions, type index_d_PayCycleRequest as PayCycleRequest, type index_d_PayCycleResponse as PayCycleResponse, type index_d_PayCycleResponseNonNullableFields as PayCycleResponseNonNullableFields, type index_d_PayRecurringInvoice as PayRecurringInvoice, index_d_PaymentAttemptStatus as PaymentAttemptStatus, type index_d_PaymentData as PaymentData, type index_d_PaymentMethod as PaymentMethod, type index_d_PaymentMethodUpdated as PaymentMethodUpdated, index_d_PaymentMode as PaymentMode, type index_d_PaymentSettings as PaymentSettings, index_d_PaymentSettlementMethod as PaymentSettlementMethod, index_d_PaymentStatus as PaymentStatus, index_d_PaymentStatusEnumPaymentStatus as PaymentStatusEnumPaymentStatus, index_d_PaymentTestMode as PaymentTestMode, type index_d_PreviewSubscriptionChargesOptions as PreviewSubscriptionChargesOptions, type index_d_PreviewSubscriptionChargesRequest as PreviewSubscriptionChargesRequest, type index_d_PreviewSubscriptionChargesRequestSubscriptionOneOf as PreviewSubscriptionChargesRequestSubscriptionOneOf, type index_d_PreviewSubscriptionChargesResponse as PreviewSubscriptionChargesResponse, type index_d_PreviewSubscriptionChargesResponseNonNullableFields as PreviewSubscriptionChargesResponseNonNullableFields, type index_d_PriceAdjustment as PriceAdjustment, type index_d_PriceAdjustmentAdjustmentTypeOneOf as PriceAdjustmentAdjustmentTypeOneOf, type index_d_PriceAdjustmentValue as PriceAdjustmentValue, type index_d_PriceAdjustmentValueAdjustmentValueTypeOneOf as PriceAdjustmentValueAdjustmentValueTypeOneOf, type index_d_PriceDetails as PriceDetails, type index_d_PricingModel as PricingModel, type index_d_PricingModelModelOneOf as PricingModelModelOneOf, type index_d_Proration as Proration, type index_d_ProrationTypeOneOf as ProrationTypeOneOf, type index_d_QuerySubscriptionsRequest as QuerySubscriptionsRequest, type index_d_QuerySubscriptionsResponse as QuerySubscriptionsResponse, type index_d_QuerySubscriptionsResponseNonNullableFields as QuerySubscriptionsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_Recurring as Recurring, type index_d_RedirectUrls as RedirectUrls, index_d_RequestedFields as RequestedFields, type index_d_Reschedule as Reschedule, type index_d_ResetPendingUpdates as ResetPendingUpdates, type index_d_RestoreDraftSubscriptionRequest as RestoreDraftSubscriptionRequest, type index_d_RestoreDraftSubscriptionResponse as RestoreDraftSubscriptionResponse, type index_d_RestoreInfo as RestoreInfo, index_d_ResumeAt as ResumeAt, type index_d_ResumeSubscriptionOptions as ResumeSubscriptionOptions, type index_d_ResumeSubscriptionRequest as ResumeSubscriptionRequest, type index_d_ResumeSubscriptionRequested as ResumeSubscriptionRequested, type index_d_ResumeSubscriptionResponse as ResumeSubscriptionResponse, type index_d_ResumeSubscriptionResponseNonNullableFields as ResumeSubscriptionResponseNonNullableFields, type index_d_ReviseSubscriptionRequest as ReviseSubscriptionRequest, type index_d_ReviseSubscriptionResponse as ReviseSubscriptionResponse, index_d_RevivePolicy as RevivePolicy, type index_d_ReviveSubscriptionRequest as ReviveSubscriptionRequest, type index_d_ReviveSubscriptionResponse as ReviveSubscriptionResponse, type index_d_RunTimeCapsuleTaskNowRequest as RunTimeCapsuleTaskNowRequest, type index_d_ScheduleAdditionalInfo as ScheduleAdditionalInfo, type index_d_ScheduleAdditionalInfoParamOneOf as ScheduleAdditionalInfoParamOneOf, type index_d_ScheduleTimeCapsuleTaskRequest as ScheduleTimeCapsuleTaskRequest, type index_d_ScheduledPauseCanceled as ScheduledPauseCanceled, type index_d_ScheduledResumeCanceled as ScheduledResumeCanceled, type index_d_SearchSubscriptionRequest as SearchSubscriptionRequest, type index_d_SearchSubscriptionResponse as SearchSubscriptionResponse, type index_d_SearchSubscriptionsOptions as SearchSubscriptionsOptions, type index_d_SearchSubscriptionsRequest as SearchSubscriptionsRequest, type index_d_SearchSubscriptionsRequestPagingMethodOneOf as SearchSubscriptionsRequestPagingMethodOneOf, type index_d_SearchSubscriptionsResponse as SearchSubscriptionsResponse, type index_d_SearchSubscriptionsResponseNonNullableFields as SearchSubscriptionsResponseNonNullableFields, type index_d_SendSubscriptionActionEventBORequest as SendSubscriptionActionEventBORequest, type index_d_SendSubscriptionActionEventBORequestEventOneOf as SendSubscriptionActionEventBORequestEventOneOf, type index_d_SendSubscriptionActionEventResponse as SendSubscriptionActionEventResponse, type index_d_SendTimeCapsuleTaskCanceledBIRequest as SendTimeCapsuleTaskCanceledBIRequest, type index_d_SetIsMigratedEvent as SetIsMigratedEvent, type index_d_SetShiftingDataRequest as SetShiftingDataRequest, type index_d_SetShiftingDataResponse as SetShiftingDataResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_SortingClauses as SortingClauses, type index_d_SpecificDateSubscriptionUpdateData as SpecificDateSubscriptionUpdateData, index_d_Status as Status, type index_d_StreetAddress as StreetAddress, type index_d_Subscriber as Subscriber, type index_d_Subscription as Subscription, type index_d_SubscriptionActivated as SubscriptionActivated, type index_d_SubscriptionAutoRenewalTurnedOff as SubscriptionAutoRenewalTurnedOff, type index_d_SubscriptionAutoRenewalTurnedOffEnvelope as SubscriptionAutoRenewalTurnedOffEnvelope, type index_d_SubscriptionAutoRenewalTurnedOn as SubscriptionAutoRenewalTurnedOn, type index_d_SubscriptionAutoRenewalTurnedOnEnvelope as SubscriptionAutoRenewalTurnedOnEnvelope, type index_d_SubscriptionBackOfficeAction as SubscriptionBackOfficeAction, type index_d_SubscriptionBillingCycleStarted as SubscriptionBillingCycleStarted, type index_d_SubscriptionBillingDateUpdated as SubscriptionBillingDateUpdated, type index_d_SubscriptionBillingDateUpdatedEnvelope as SubscriptionBillingDateUpdatedEnvelope, type index_d_SubscriptionCanceled as SubscriptionCanceled, type index_d_SubscriptionCanceledEnvelope as SubscriptionCanceledEnvelope, type index_d_SubscriptionCancellationRequested as SubscriptionCancellationRequested, type index_d_SubscriptionCharge as SubscriptionCharge, type index_d_SubscriptionCollectionMethodUpdated as SubscriptionCollectionMethodUpdated, type index_d_SubscriptionCreated as SubscriptionCreated, type index_d_SubscriptionCycleReadyToPay as SubscriptionCycleReadyToPay, type index_d_SubscriptionCycleTriggered as SubscriptionCycleTriggered, type index_d_SubscriptionDelayedSyncEvent as SubscriptionDelayedSyncEvent, type index_d_SubscriptionDeleted as SubscriptionDeleted, type index_d_SubscriptionDiff as SubscriptionDiff, type index_d_SubscriptionEnded as SubscriptionEnded, type index_d_SubscriptionEvent as SubscriptionEvent, type index_d_SubscriptionEventPayloadOneOf as SubscriptionEventPayloadOneOf, type index_d_SubscriptionExpired as SubscriptionExpired, type index_d_SubscriptionExtended as SubscriptionExtended, type index_d_SubscriptionExtendedEnvelope as SubscriptionExtendedEnvelope, type index_d_SubscriptionExtendedExtendPolicyOneOf as SubscriptionExtendedExtendPolicyOneOf, index_d_SubscriptionFrequency as SubscriptionFrequency, type index_d_SubscriptionHistoryEntry as SubscriptionHistoryEntry, type index_d_SubscriptionInfo as SubscriptionInfo, type index_d_SubscriptionInitialPurchaseCompleted as SubscriptionInitialPurchaseCompleted, type index_d_SubscriptionInvoice as SubscriptionInvoice, type index_d_SubscriptionLatestInvoiceMarkedAsPaidEnvelope as SubscriptionLatestInvoiceMarkedAsPaidEnvelope, type index_d_SubscriptionMarkedAsPaid as SubscriptionMarkedAsPaid, type index_d_SubscriptionPauseScheduleCanceledEnvelope as SubscriptionPauseScheduleCanceledEnvelope, type index_d_SubscriptionPauseScheduledEnvelope as SubscriptionPauseScheduledEnvelope, type index_d_SubscriptionPaused as SubscriptionPaused, type index_d_SubscriptionPausedEnvelope as SubscriptionPausedEnvelope, type index_d_SubscriptionPolicies as SubscriptionPolicies, type index_d_SubscriptionPolicy as SubscriptionPolicy, type index_d_SubscriptionResumeScheduleCanceledEnvelope as SubscriptionResumeScheduleCanceledEnvelope, type index_d_SubscriptionResumeScheduledEnvelope as SubscriptionResumeScheduledEnvelope, type index_d_SubscriptionResumed as SubscriptionResumed, type index_d_SubscriptionResumedEnvelope as SubscriptionResumedEnvelope, type index_d_SubscriptionRevived as SubscriptionRevived, type index_d_SubscriptionStatus as SubscriptionStatus, index_d_SubscriptionStatusEnumSubscriptionStatus as SubscriptionStatusEnumSubscriptionStatus, index_d_SubscriptionStatusGroup as SubscriptionStatusGroup, type index_d_SubscriptionSuspended as SubscriptionSuspended, type index_d_SubscriptionTrialPeriod as SubscriptionTrialPeriod, index_d_SubscriptionType as SubscriptionType, type index_d_SubscriptionUpdateData as SubscriptionUpdateData, type index_d_SubscriptionUpdated as SubscriptionUpdated, type index_d_SubscriptionUpdatedEnvelope as SubscriptionUpdatedEnvelope, type index_d_Suspension as Suspension, type index_d_Task as Task, type index_d_TaskAction as TaskAction, type index_d_TaskActionActionOneOf as TaskActionActionOneOf, type index_d_TaskKey as TaskKey, type index_d_Tax as Tax, type index_d_TaxSettings as TaxSettings, type index_d_TaxValueOneOf as TaxValueOneOf, type index_d_TimeBasedProration as TimeBasedProration, type index_d_Totals as Totals, type index_d_TurnOffSubscriptionAutoRenewalRequest as TurnOffSubscriptionAutoRenewalRequest, type index_d_TurnOffSubscriptionAutoRenewalResponse as TurnOffSubscriptionAutoRenewalResponse, type index_d_TurnOffSubscriptionAutoRenewalResponseNonNullableFields as TurnOffSubscriptionAutoRenewalResponseNonNullableFields, type index_d_TurnOnSubscriptionAutoRenewalRequest as TurnOnSubscriptionAutoRenewalRequest, type index_d_TurnOnSubscriptionAutoRenewalResponse as TurnOnSubscriptionAutoRenewalResponse, type index_d_TurnOnSubscriptionAutoRenewalResponseNonNullableFields as TurnOnSubscriptionAutoRenewalResponseNonNullableFields, type index_d_UnknownSubscriptionEvent as UnknownSubscriptionEvent, type index_d_UnsupportedAction as UnsupportedAction, type index_d_UnsupportedReason as UnsupportedReason, index_d_UpdateAction as UpdateAction, type index_d_UpdateBillingDateData as UpdateBillingDateData, type index_d_UpdateFullSubscriptionRequest as UpdateFullSubscriptionRequest, type index_d_UpdateFullSubscriptionResponse as UpdateFullSubscriptionResponse, type index_d_UpdatePausePaidDurationRequest as UpdatePausePaidDurationRequest, type index_d_UpdatePausePaidDurationResponse as UpdatePausePaidDurationResponse, type index_d_UpdatePaymentMethodBORequest as UpdatePaymentMethodBORequest, type index_d_UpdatePaymentMethodBOResponse as UpdatePaymentMethodBOResponse, type index_d_UpdatePaymentStatusRequest as UpdatePaymentStatusRequest, type index_d_UpdatePaymentStatusResponse as UpdatePaymentStatusResponse, type index_d_UpdateStatusRequest as UpdateStatusRequest, type index_d_UpdateStatusResponse as UpdateStatusResponse, type index_d_UpdateSubscriptionBillingDateOptions as UpdateSubscriptionBillingDateOptions, type index_d_UpdateSubscriptionBillingDateRequest as UpdateSubscriptionBillingDateRequest, type index_d_UpdateSubscriptionBillingDateResponse as UpdateSubscriptionBillingDateResponse, type index_d_UpdateSubscriptionBillingDateResponseNonNullableFields as UpdateSubscriptionBillingDateResponseNonNullableFields, type index_d_UpdateSubscriptionInvoiceCycleRequest as UpdateSubscriptionInvoiceCycleRequest, type index_d_UpdateSubscriptionInvoiceCycleResponse as UpdateSubscriptionInvoiceCycleResponse, type index_d_UpdateSubscriptionItemsRequest as UpdateSubscriptionItemsRequest, type index_d_UpdateSubscriptionItemsResponse as UpdateSubscriptionItemsResponse, type index_d_UpdateSubscriptionOriginRequest as UpdateSubscriptionOriginRequest, type index_d_UpdateSubscriptionOriginResponse as UpdateSubscriptionOriginResponse, type index_d_UpdateSubscriptionPaymentMethodRequest as UpdateSubscriptionPaymentMethodRequest, type index_d_UpdateSubscriptionPaymentMethodResponse as UpdateSubscriptionPaymentMethodResponse, type index_d_UpdateSubscriptionPaymentMethodResponseNonNullableFields as UpdateSubscriptionPaymentMethodResponseNonNullableFields, type index_d_UpdateSubscriptionPoliciesRequest as UpdateSubscriptionPoliciesRequest, type index_d_UpdateSubscriptionPoliciesResponse as UpdateSubscriptionPoliciesResponse, type index_d_UpdateSubscriptionRequest as UpdateSubscriptionRequest, type index_d_UpdateSubscriptionResponse as UpdateSubscriptionResponse, type index_d_UpdateSubscriptionStartDateRequest as UpdateSubscriptionStartDateRequest, type index_d_UpdateSubscriptionStartDateResponse as UpdateSubscriptionStartDateResponse, type index_d_UpdatesApplied as UpdatesApplied, type index_d_V1Duration as V1Duration, type index_d_V1Subscription as V1Subscription, type index_d_V1SubscriptionActivated as V1SubscriptionActivated, type index_d_V1SubscriptionCanceled as V1SubscriptionCanceled, type index_d_V1SubscriptionCreated as V1SubscriptionCreated, type index_d_V1SubscriptionEvent as V1SubscriptionEvent, type index_d_V1SubscriptionEventEventOneOf as V1SubscriptionEventEventOneOf, type index_d_V1SubscriptionInitialPurchaseCompleted as V1SubscriptionInitialPurchaseCompleted, type index_d_V1SubscriptionResumed as V1SubscriptionResumed, index_d_V1SubscriptionStatusEnumSubscriptionStatus as V1SubscriptionStatusEnumSubscriptionStatus, type index_d_V1SubscriptionUpdated as V1SubscriptionUpdated, type index_d_V2Subscription as V2Subscription, index_d_WebhookIdentityType as WebhookIdentityType, index_d_allowedActions as allowedActions, index_d_cancelSubscription as cancelSubscription, index_d_countSubscriptions as countSubscriptions, index_d_customerAllowedActions as customerAllowedActions, index_d_customerCancelSubscription as customerCancelSubscription, index_d_customerExtendSubscription as customerExtendSubscription, index_d_customerGetSubscription as customerGetSubscription, index_d_customerInitiatePaymentMethodSetup as customerInitiatePaymentMethodSetup, index_d_customerListUpcomingCharges as customerListUpcomingCharges, index_d_customerQuerySubscriptions as customerQuerySubscriptions, index_d_customerTurnOffSubscriptionAutoRenewal as customerTurnOffSubscriptionAutoRenewal, index_d_customerTurnOnSubscriptionAutoRenewal as customerTurnOnSubscriptionAutoRenewal, index_d_customerUpdateSubscriptionPaymentMethod as customerUpdateSubscriptionPaymentMethod, index_d_extendSubscription as extendSubscription, index_d_getSubscription as getSubscription, index_d_getSubscriptionsStats as getSubscriptionsStats, index_d_initiatePaymentMethodSetup as initiatePaymentMethodSetup, index_d_listUpcomingCharges as listUpcomingCharges, index_d_markLatestInvoiceAsPaid as markLatestInvoiceAsPaid, index_d_onSubscriptionAutoRenewalTurnedOff as onSubscriptionAutoRenewalTurnedOff, index_d_onSubscriptionAutoRenewalTurnedOn as onSubscriptionAutoRenewalTurnedOn, index_d_onSubscriptionBillingDateUpdated as onSubscriptionBillingDateUpdated, index_d_onSubscriptionCanceled as onSubscriptionCanceled, index_d_onSubscriptionExtended as onSubscriptionExtended, index_d_onSubscriptionLatestInvoiceMarkedAsPaid as onSubscriptionLatestInvoiceMarkedAsPaid, index_d_onSubscriptionPauseScheduleCanceled as onSubscriptionPauseScheduleCanceled, index_d_onSubscriptionPauseScheduled as onSubscriptionPauseScheduled, index_d_onSubscriptionPaused as onSubscriptionPaused, index_d_onSubscriptionResumeScheduleCanceled as onSubscriptionResumeScheduleCanceled, index_d_onSubscriptionResumeScheduled as onSubscriptionResumeScheduled, index_d_onSubscriptionResumed as onSubscriptionResumed, index_d_onSubscriptionUpdated as onSubscriptionUpdated, index_d_pauseSubscription as pauseSubscription, index_d_payCycle as payCycle, index_d_previewSubscriptionCharges as previewSubscriptionCharges, index_d_querySubscriptions as querySubscriptions, index_d_resumeSubscription as resumeSubscription, index_d_searchSubscriptions as searchSubscriptions, index_d_turnOffSubscriptionAutoRenewal as turnOffSubscriptionAutoRenewal, index_d_turnOnSubscriptionAutoRenewal as turnOnSubscriptionAutoRenewal, index_d_updateSubscriptionBillingDate as updateSubscriptionBillingDate, index_d_updateSubscriptionPaymentMethod as updateSubscriptionPaymentMethod };
6451
3890
  }
6452
3891
 
6453
3892
  export { index_d as subscriptions };