@wix/subscription 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/type-bundles/context.bundle.d.ts +68 -77
- package/type-bundles/index.bundle.d.ts +68 -77
- package/type-bundles/meta.bundle.d.ts +54 -100
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/subscription",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/subscription_subscriptions": "1.0.
|
|
21
|
+
"@wix/subscription_subscriptions": "1.0.23"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"glob": "^10.4.1",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"fqdn": ""
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
"falconPackageHash": "
|
|
46
|
+
"falconPackageHash": "f232d7da53cec90befb8839c2c4a603ed5cdabb61ce00cec152f7a94"
|
|
47
47
|
}
|
|
@@ -486,12 +486,12 @@ interface Subscription {
|
|
|
486
486
|
* Date when subscription was created
|
|
487
487
|
* @readonly
|
|
488
488
|
*/
|
|
489
|
-
_createdDate?: Date;
|
|
489
|
+
_createdDate?: Date | null;
|
|
490
490
|
/**
|
|
491
491
|
* Date when subscription was updated
|
|
492
492
|
* @readonly
|
|
493
493
|
*/
|
|
494
|
-
_updatedDate?: Date;
|
|
494
|
+
_updatedDate?: Date | null;
|
|
495
495
|
/**
|
|
496
496
|
* Revision of subscription. Increments upon changes
|
|
497
497
|
* @readonly
|
|
@@ -507,13 +507,13 @@ interface Subscription {
|
|
|
507
507
|
* Future start_date is not supported for `SEND_INVOICE` CollectionMethod
|
|
508
508
|
* If start_date is set in past, it means subscription was already started.
|
|
509
509
|
*/
|
|
510
|
-
startDate?: Date;
|
|
510
|
+
startDate?: Date | null;
|
|
511
511
|
/**
|
|
512
512
|
* Represents when the subscription will end, relevant for subscriptions with a termed period.
|
|
513
513
|
* If not provided, will be calculated based on billing schedule. Should be empty for evergreen subscription.
|
|
514
514
|
* Note: A 13-hour tolerance is applied when validating the end date to handle for time zone differences and minor discrepancies.
|
|
515
515
|
*/
|
|
516
|
-
endDate?: Date;
|
|
516
|
+
endDate?: Date | null;
|
|
517
517
|
/** Business origin subscription is coming from. In site-level subscription it will be vertical app_id and entity_id */
|
|
518
518
|
origin?: BusinessOrigin;
|
|
519
519
|
/** Customer information like id and identity type (member or contact) */
|
|
@@ -924,9 +924,9 @@ interface BillingStatus {
|
|
|
924
924
|
/** how many cycled are remaining, For auto-renew subscriptions is not set. */
|
|
925
925
|
remainingCycles?: number | null;
|
|
926
926
|
/** Date when charge will be for next billing cycle */
|
|
927
|
-
nextBillingDate?: Date;
|
|
927
|
+
nextBillingDate?: Date | null;
|
|
928
928
|
/** Previous Date charged for previous billing cycle */
|
|
929
|
-
previousBillingDate?: Date;
|
|
929
|
+
previousBillingDate?: Date | null;
|
|
930
930
|
/** last payment details */
|
|
931
931
|
latestPaymentData?: PaymentData;
|
|
932
932
|
/** Free trial data */
|
|
@@ -942,7 +942,7 @@ interface PaymentData {
|
|
|
942
942
|
invoiceId?: string;
|
|
943
943
|
paymentStatus?: PaymentStatus;
|
|
944
944
|
totals?: Totals;
|
|
945
|
-
initialFailedPaymentDate?: Date;
|
|
945
|
+
initialFailedPaymentDate?: Date | null;
|
|
946
946
|
}
|
|
947
947
|
declare enum PaymentStatus {
|
|
948
948
|
/** Payment status unknown */
|
|
@@ -1008,19 +1008,19 @@ interface FreeTrialData {
|
|
|
1008
1008
|
* Date when free trial starts
|
|
1009
1009
|
* @readonly
|
|
1010
1010
|
*/
|
|
1011
|
-
startDate?: Date;
|
|
1011
|
+
startDate?: Date | null;
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Date when free trial ends
|
|
1014
1014
|
* @readonly
|
|
1015
1015
|
*/
|
|
1016
|
-
endDate?: Date;
|
|
1016
|
+
endDate?: Date | null;
|
|
1017
1017
|
}
|
|
1018
1018
|
interface UpdateBillingDateData {
|
|
1019
1019
|
/**
|
|
1020
1020
|
* Date until the subscription is paid for.
|
|
1021
1021
|
* Different from `nextBillingDate` only when the next billing date is updated without immediately issuing a new invoice.
|
|
1022
1022
|
*/
|
|
1023
|
-
paidUntil?: Date;
|
|
1023
|
+
paidUntil?: Date | null;
|
|
1024
1024
|
/** Information about how to adjust the item's payment due to the update of the billing date */
|
|
1025
1025
|
proration?: Proration;
|
|
1026
1026
|
}
|
|
@@ -1095,12 +1095,12 @@ interface GracePeriodData {
|
|
|
1095
1095
|
* Grace period start date
|
|
1096
1096
|
* @readonly
|
|
1097
1097
|
*/
|
|
1098
|
-
startDate?: Date;
|
|
1098
|
+
startDate?: Date | null;
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Grace period end date
|
|
1101
1101
|
* @readonly
|
|
1102
1102
|
*/
|
|
1103
|
-
endDate?: Date;
|
|
1103
|
+
endDate?: Date | null;
|
|
1104
1104
|
/** Automatic retry data during grade period, if have any. Optional. */
|
|
1105
1105
|
automaticRetryData?: AutomaticRetryData;
|
|
1106
1106
|
}
|
|
@@ -1118,10 +1118,10 @@ interface SubscriptionPolicies {
|
|
|
1118
1118
|
interface PauseInfo {
|
|
1119
1119
|
pausePolicy?: PausePolicy;
|
|
1120
1120
|
pauseAt?: PauseAt;
|
|
1121
|
-
startDate?: Date;
|
|
1121
|
+
startDate?: Date | null;
|
|
1122
1122
|
startCycle?: number | null;
|
|
1123
1123
|
resumeAt?: ResumeAt;
|
|
1124
|
-
resumeDate?: Date;
|
|
1124
|
+
resumeDate?: Date | null;
|
|
1125
1125
|
resumeCycle?: number | null;
|
|
1126
1126
|
}
|
|
1127
1127
|
declare enum PausePolicy {
|
|
@@ -1155,7 +1155,7 @@ declare enum ResumeAt {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
interface CancellationInfo {
|
|
1157
1157
|
/** Subscription cancel date. Can contain a future or past date */
|
|
1158
|
-
cancellationDate?: Date;
|
|
1158
|
+
cancellationDate?: Date | null;
|
|
1159
1159
|
/** Initiator for cancellation */
|
|
1160
1160
|
initiator?: HistoryActionInitiator;
|
|
1161
1161
|
/** Reason for cancellation. Optional. */
|
|
@@ -1271,7 +1271,7 @@ interface ApplicationFeeValueOneOf {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
interface SpecificDateSubscriptionUpdateData {
|
|
1273
1273
|
updateData?: SubscriptionUpdateData;
|
|
1274
|
-
executionDate?: Date;
|
|
1274
|
+
executionDate?: Date | null;
|
|
1275
1275
|
}
|
|
1276
1276
|
interface ListSubscriptionHistoryRequest {
|
|
1277
1277
|
subscriptionId: string;
|
|
@@ -1308,7 +1308,7 @@ interface SubscriptionHistoryEntry {
|
|
|
1308
1308
|
entryId?: string;
|
|
1309
1309
|
/** TODO: add max length? it is not defined in domainevents, so should we? */
|
|
1310
1310
|
slug?: string;
|
|
1311
|
-
entryTime?: Date;
|
|
1311
|
+
entryTime?: Date | null;
|
|
1312
1312
|
event?: SubscriptionEvent;
|
|
1313
1313
|
}
|
|
1314
1314
|
interface SubscriptionEvent extends SubscriptionEventPayloadOneOf {
|
|
@@ -1499,7 +1499,7 @@ interface SubscriptionRevived {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
interface SubscriptionBillingDateUpdated {
|
|
1501
1501
|
subscription?: Subscription;
|
|
1502
|
-
billingDate?: Date;
|
|
1502
|
+
billingDate?: Date | null;
|
|
1503
1503
|
proration?: Proration;
|
|
1504
1504
|
}
|
|
1505
1505
|
interface FutureUpdatesRequested {
|
|
@@ -1808,7 +1808,7 @@ interface SubscriptionCharge {
|
|
|
1808
1808
|
/** cycle of future charge */
|
|
1809
1809
|
cycle?: number;
|
|
1810
1810
|
/** date of the charge */
|
|
1811
|
-
billingDate?: Date;
|
|
1811
|
+
billingDate?: Date | null;
|
|
1812
1812
|
/** breakdown of charge */
|
|
1813
1813
|
totals?: Totals;
|
|
1814
1814
|
/** List of items in the invoice */
|
|
@@ -1968,22 +1968,8 @@ interface LineItemTaxSummary {
|
|
|
1968
1968
|
aggregatedTaxAmount?: string;
|
|
1969
1969
|
/** Aggregated from tax_breakdowns */
|
|
1970
1970
|
aggregatedTaxRate?: string;
|
|
1971
|
-
/**
|
|
1972
|
-
|
|
1973
|
-
}
|
|
1974
|
-
interface AggregatedTaxBreakdown {
|
|
1975
|
-
/** Name of the tax that was calculated. */
|
|
1976
|
-
taxName?: string;
|
|
1977
|
-
/** Type of tax that was calculated. */
|
|
1978
|
-
taxType?: string;
|
|
1979
|
-
/** Jurisdiction that taxes were calculated for. */
|
|
1980
|
-
jurisdiction?: string;
|
|
1981
|
-
/** Type of jurisdiction that taxes were calculated for. */
|
|
1982
|
-
jurisdictionType?: string;
|
|
1983
|
-
/** Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `"0.1000"` and 200% tax is `"2.0000"`. */
|
|
1984
|
-
rate?: string;
|
|
1985
|
-
/** Total amount of this tax for this jurisdiction. */
|
|
1986
|
-
aggregatedTaxAmount?: string;
|
|
1971
|
+
/** Total taxable amount for this line item. */
|
|
1972
|
+
taxableAmount?: string;
|
|
1987
1973
|
}
|
|
1988
1974
|
interface TaxBreakdown {
|
|
1989
1975
|
taxType?: string;
|
|
@@ -2056,7 +2042,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
2056
2042
|
/** ID of the entity associated with the event. */
|
|
2057
2043
|
entityId?: string;
|
|
2058
2044
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2059
|
-
eventTime?: Date;
|
|
2045
|
+
eventTime?: Date | null;
|
|
2060
2046
|
/**
|
|
2061
2047
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
2062
2048
|
* (for example, GDPR).
|
|
@@ -2085,7 +2071,7 @@ interface EntityCreatedEvent {
|
|
|
2085
2071
|
entity?: string;
|
|
2086
2072
|
}
|
|
2087
2073
|
interface RestoreInfo {
|
|
2088
|
-
deletedDate?: Date;
|
|
2074
|
+
deletedDate?: Date | null;
|
|
2089
2075
|
}
|
|
2090
2076
|
interface EntityUpdatedEvent {
|
|
2091
2077
|
/**
|
|
@@ -2191,7 +2177,7 @@ interface UpdateSubscriptionStartDateRequest {
|
|
|
2191
2177
|
* By setting start_date in the future, end_date will be recalculated for termed Subscriptions
|
|
2192
2178
|
* cycles_to_pay_on_creation will be set to 1 if no free trial is set
|
|
2193
2179
|
*/
|
|
2194
|
-
startDate?: Date;
|
|
2180
|
+
startDate?: Date | null;
|
|
2195
2181
|
}
|
|
2196
2182
|
interface UpdateSubscriptionStartDateResponse {
|
|
2197
2183
|
subscription?: Subscription;
|
|
@@ -2209,7 +2195,7 @@ interface UpdateSubscriptionBillingDateRequest {
|
|
|
2209
2195
|
/** ID of the subscription to update the billing date for. */
|
|
2210
2196
|
_id: string;
|
|
2211
2197
|
/** New billing date in `YYYY-MM-DDThh:mm:ss:sssZ` format. */
|
|
2212
|
-
billingDate: Date;
|
|
2198
|
+
billingDate: Date | null;
|
|
2213
2199
|
/**
|
|
2214
2200
|
* Information about how BASS adjusts the total of the next invoice. Extending
|
|
2215
2201
|
* the current billing cycle results in a higher payment, while shortening it
|
|
@@ -2267,7 +2253,7 @@ interface ScheduleAdditionalInfo extends ScheduleAdditionalInfoParamOneOf {
|
|
|
2267
2253
|
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
2268
2254
|
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
2269
2255
|
*/
|
|
2270
|
-
specificDate?: Date;
|
|
2256
|
+
specificDate?: Date | null;
|
|
2271
2257
|
/**
|
|
2272
2258
|
* When the update becomes effective, as number of billing cycles from now.
|
|
2273
2259
|
* The use of this field may be restricted in various BASS endpoints.
|
|
@@ -2287,7 +2273,7 @@ interface ScheduleAdditionalInfoParamOneOf {
|
|
|
2287
2273
|
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
2288
2274
|
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
2289
2275
|
*/
|
|
2290
|
-
specificDate?: Date;
|
|
2276
|
+
specificDate?: Date | null;
|
|
2291
2277
|
/**
|
|
2292
2278
|
* When the update becomes effective, as number of billing cycles from now.
|
|
2293
2279
|
* The use of this field may be restricted in various BASS endpoints.
|
|
@@ -2520,7 +2506,7 @@ interface ListUpcomingChargesRequest {
|
|
|
2520
2506
|
* Date of the next billing cycle so that the upcoming charges will be calculated accordingly.
|
|
2521
2507
|
* If not provided, the upcoming charges will be calculated according to the existing next billing date.
|
|
2522
2508
|
*/
|
|
2523
|
-
nextBillingDate?: Date;
|
|
2509
|
+
nextBillingDate?: Date | null;
|
|
2524
2510
|
}
|
|
2525
2511
|
interface ListUpcomingChargesResponse {
|
|
2526
2512
|
upcomingCharges?: SubscriptionCharge[];
|
|
@@ -2538,7 +2524,7 @@ interface PreviewSubscriptionChargesRequestSubscriptionOneOf {
|
|
|
2538
2524
|
interface SubscriptionInfo {
|
|
2539
2525
|
billingSettings?: BillingSettings;
|
|
2540
2526
|
items?: Item[];
|
|
2541
|
-
startDate?: Date;
|
|
2527
|
+
startDate?: Date | null;
|
|
2542
2528
|
}
|
|
2543
2529
|
interface PreviewSubscriptionChargesResponse {
|
|
2544
2530
|
/** Charges for subscription. */
|
|
@@ -2553,7 +2539,7 @@ interface Charge {
|
|
|
2553
2539
|
/** The breakdown of the charge */
|
|
2554
2540
|
totals?: Totals;
|
|
2555
2541
|
/** The billing date from which the charge starts */
|
|
2556
|
-
cycleBillingDate?: Date;
|
|
2542
|
+
cycleBillingDate?: Date | null;
|
|
2557
2543
|
}
|
|
2558
2544
|
interface CreateSubscriptionForOrderRequest {
|
|
2559
2545
|
/** Subscription needs to be created */
|
|
@@ -2578,12 +2564,12 @@ interface Invoice {
|
|
|
2578
2564
|
* Date and time the invoice was created.
|
|
2579
2565
|
* @readonly
|
|
2580
2566
|
*/
|
|
2581
|
-
_createdDate?: Date;
|
|
2567
|
+
_createdDate?: Date | null;
|
|
2582
2568
|
/**
|
|
2583
2569
|
* Date and time the invoice was last updated.
|
|
2584
2570
|
* @readonly
|
|
2585
2571
|
*/
|
|
2586
|
-
_updatedDate?: Date;
|
|
2572
|
+
_updatedDate?: Date | null;
|
|
2587
2573
|
/**
|
|
2588
2574
|
* Revision number, which increments by 1 each time the invoice is updated.
|
|
2589
2575
|
* To prevent conflicting changes,
|
|
@@ -2728,7 +2714,7 @@ interface LatestPaymentAttempt {
|
|
|
2728
2714
|
* Date and time of the latest payment attempt in `YYYY-MM-DDThh:mm.sssZ` format.
|
|
2729
2715
|
* @readonly
|
|
2730
2716
|
*/
|
|
2731
|
-
dateAttempt?: Date;
|
|
2717
|
+
dateAttempt?: Date | null;
|
|
2732
2718
|
/** Number of the latest payment attempt. */
|
|
2733
2719
|
attemptNumber?: number;
|
|
2734
2720
|
/**
|
|
@@ -2836,9 +2822,23 @@ interface TaxSummary {
|
|
|
2836
2822
|
/** Array of each tax applied, grouped by `"jurisdiction"`, `"jurisdiction_type"`, `"tax_type"`, `"tax_name"` and `"tax_rate"`. */
|
|
2837
2823
|
aggregatedTaxBreakdowns?: AggregatedTaxBreakdown[];
|
|
2838
2824
|
}
|
|
2825
|
+
interface AggregatedTaxBreakdown {
|
|
2826
|
+
/** Name of the tax that was calculated. */
|
|
2827
|
+
taxName?: string;
|
|
2828
|
+
/** Type of tax that was calculated. */
|
|
2829
|
+
taxType?: string;
|
|
2830
|
+
/** Jurisdiction that taxes were calculated for. */
|
|
2831
|
+
jurisdiction?: string;
|
|
2832
|
+
/** Type of jurisdiction that taxes were calculated for. */
|
|
2833
|
+
jurisdictionType?: string;
|
|
2834
|
+
/** Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `"0.1000"` and 200% tax is `"2.0000"`. */
|
|
2835
|
+
rate?: string;
|
|
2836
|
+
/** Total amount of this tax for this jurisdiction. */
|
|
2837
|
+
aggregatedTaxAmount?: string;
|
|
2838
|
+
}
|
|
2839
2839
|
interface Task {
|
|
2840
2840
|
key?: TaskKey;
|
|
2841
|
-
executeAt?: Date;
|
|
2841
|
+
executeAt?: Date | null;
|
|
2842
2842
|
payload?: string | null;
|
|
2843
2843
|
}
|
|
2844
2844
|
interface TaskKey {
|
|
@@ -2862,7 +2862,7 @@ interface Complete {
|
|
|
2862
2862
|
interface Cancel {
|
|
2863
2863
|
}
|
|
2864
2864
|
interface Reschedule {
|
|
2865
|
-
executeAt?: Date;
|
|
2865
|
+
executeAt?: Date | null;
|
|
2866
2866
|
payload?: string | null;
|
|
2867
2867
|
}
|
|
2868
2868
|
interface Empty {
|
|
@@ -2960,9 +2960,9 @@ interface V1Subscription {
|
|
|
2960
2960
|
/** Active, expired, canceled, etc. */
|
|
2961
2961
|
subscriptionStatus?: V1SubscriptionStatusEnumSubscriptionStatus;
|
|
2962
2962
|
/** Subscription start date (may differ from creation date) */
|
|
2963
|
-
validFrom?: Date;
|
|
2963
|
+
validFrom?: Date | null;
|
|
2964
2964
|
/** Subscription expiration date */
|
|
2965
|
-
validUntil?: Date;
|
|
2965
|
+
validUntil?: Date | null;
|
|
2966
2966
|
/** Status of last payment associated with this subscription */
|
|
2967
2967
|
lastPaymentStatus?: PaymentStatusEnumPaymentStatus;
|
|
2968
2968
|
/** Payment schedule in the wix pay format. Exists for recurring subscriptions only. */
|
|
@@ -2974,13 +2974,13 @@ interface V1Subscription {
|
|
|
2974
2974
|
/** Can be used for arbitrary app-specific map<string, string> data */
|
|
2975
2975
|
externalData?: Record<string, string>;
|
|
2976
2976
|
/** Date when subscription was created (not related to payment dates) */
|
|
2977
|
-
dateCreated?: Date;
|
|
2977
|
+
dateCreated?: Date | null;
|
|
2978
2978
|
/** Restrictions on possible subscription actions. Default policy has all restrictions enabled. */
|
|
2979
2979
|
policy?: SubscriptionPolicy;
|
|
2980
2980
|
/** List of subscription suspension periods */
|
|
2981
2981
|
suspensions?: Suspension[];
|
|
2982
2982
|
/** Initial subscription expiration date that was calculated on the subscription purchase plus duration of suspensions */
|
|
2983
|
-
validUntilDateWithSuspensions?: Date;
|
|
2983
|
+
validUntilDateWithSuspensions?: Date | null;
|
|
2984
2984
|
/** Duration of single payment subscription (instead of billing_profile) */
|
|
2985
2985
|
singlePaymentDuration?: V1Duration;
|
|
2986
2986
|
originInstanceId?: string | null;
|
|
@@ -3071,7 +3071,7 @@ interface V2Subscription {
|
|
|
3071
3071
|
* date in the future or in the past when the first billing cycle begins
|
|
3072
3072
|
* (the first off-session payment is performed when it ends)
|
|
3073
3073
|
*/
|
|
3074
|
-
firstCycleStartDate?: Date;
|
|
3074
|
+
firstCycleStartDate?: Date | null;
|
|
3075
3075
|
}
|
|
3076
3076
|
/** Frequency unit of recurring payment */
|
|
3077
3077
|
declare enum SubscriptionFrequency {
|
|
@@ -3111,9 +3111,9 @@ interface SubscriptionPolicy {
|
|
|
3111
3111
|
interface Suspension {
|
|
3112
3112
|
status?: Status;
|
|
3113
3113
|
/** Beginning of the suspended period */
|
|
3114
|
-
startsAt?: Date;
|
|
3114
|
+
startsAt?: Date | null;
|
|
3115
3115
|
/** End of the suspended period */
|
|
3116
|
-
endsAt?: Date;
|
|
3116
|
+
endsAt?: Date | null;
|
|
3117
3117
|
}
|
|
3118
3118
|
declare enum Status {
|
|
3119
3119
|
UNDEFINED = "UNDEFINED",
|
|
@@ -3209,11 +3209,11 @@ interface MigrationDetails {
|
|
|
3209
3209
|
/** system (application) where the Subscription has been created */
|
|
3210
3210
|
originSystem?: string;
|
|
3211
3211
|
/** date when the Subscription started to be managed in BASS */
|
|
3212
|
-
shiftManagementDate?: Date;
|
|
3212
|
+
shiftManagementDate?: Date | null;
|
|
3213
3213
|
}
|
|
3214
3214
|
interface PausePeriod {
|
|
3215
|
-
startDate?: Date;
|
|
3216
|
-
endDate?: Date;
|
|
3215
|
+
startDate?: Date | null;
|
|
3216
|
+
endDate?: Date | null;
|
|
3217
3217
|
}
|
|
3218
3218
|
interface GetSubscriptionAndInternalDataRequest {
|
|
3219
3219
|
subscriptionId?: string;
|
|
@@ -3281,7 +3281,7 @@ interface GetSubscriptionInvoicesResponse {
|
|
|
3281
3281
|
interface SubscriptionInvoice {
|
|
3282
3282
|
_id?: string;
|
|
3283
3283
|
subscriptionCycle?: number;
|
|
3284
|
-
_createdDate?: Date;
|
|
3284
|
+
_createdDate?: Date | null;
|
|
3285
3285
|
}
|
|
3286
3286
|
interface FinishFreeTrialNowRequest {
|
|
3287
3287
|
subscriptionId?: string;
|
|
@@ -3298,7 +3298,7 @@ interface SendTimeCapsuleTaskCanceledBIRequest {
|
|
|
3298
3298
|
interface ScheduleTimeCapsuleTaskRequest {
|
|
3299
3299
|
subscriptionId?: string;
|
|
3300
3300
|
taskType?: string;
|
|
3301
|
-
executionTime?: Date;
|
|
3301
|
+
executionTime?: Date | null;
|
|
3302
3302
|
tenantId?: string;
|
|
3303
3303
|
}
|
|
3304
3304
|
interface CancelTimeCapsuleTaskRequest {
|
|
@@ -3325,8 +3325,8 @@ interface UpdateSubscriptionInvoiceCycleResponse {
|
|
|
3325
3325
|
interface AddPausePeriodRequest {
|
|
3326
3326
|
tenantId?: string;
|
|
3327
3327
|
subscriptionId?: string;
|
|
3328
|
-
pauseStartDate?: Date;
|
|
3329
|
-
pauseEndDate?: Date;
|
|
3328
|
+
pauseStartDate?: Date | null;
|
|
3329
|
+
pauseEndDate?: Date | null;
|
|
3330
3330
|
}
|
|
3331
3331
|
interface AddPausePeriodResponse {
|
|
3332
3332
|
subscription?: Subscription;
|
|
@@ -3348,7 +3348,7 @@ interface SetShiftingDataRequest {
|
|
|
3348
3348
|
subscriptionId?: string;
|
|
3349
3349
|
tenantId?: string;
|
|
3350
3350
|
isBassManaged?: boolean;
|
|
3351
|
-
shiftManagementDate?: Date;
|
|
3351
|
+
shiftManagementDate?: Date | null;
|
|
3352
3352
|
}
|
|
3353
3353
|
interface SetShiftingDataResponse {
|
|
3354
3354
|
subscription?: Subscription;
|
|
@@ -3804,19 +3804,10 @@ interface PriceDetailsNonNullableFields {
|
|
|
3804
3804
|
discount?: InvoiceDiscountNonNullableFields;
|
|
3805
3805
|
applicationFeeDetails?: InvoiceApplicationFeeNonNullableFields;
|
|
3806
3806
|
}
|
|
3807
|
-
interface AggregatedTaxBreakdownNonNullableFields {
|
|
3808
|
-
taxName: string;
|
|
3809
|
-
taxType: string;
|
|
3810
|
-
jurisdiction: string;
|
|
3811
|
-
jurisdictionType: string;
|
|
3812
|
-
rate: string;
|
|
3813
|
-
aggregatedTaxAmount: string;
|
|
3814
|
-
aggregatedTaxableAmount: string;
|
|
3815
|
-
}
|
|
3816
3807
|
interface LineItemTaxSummaryNonNullableFields {
|
|
3817
3808
|
aggregatedTaxAmount: string;
|
|
3818
3809
|
aggregatedTaxRate: string;
|
|
3819
|
-
|
|
3810
|
+
taxableAmount: string;
|
|
3820
3811
|
}
|
|
3821
3812
|
interface TaxBreakdownNonNullableFields {
|
|
3822
3813
|
taxType: string;
|
|
@@ -3946,7 +3937,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
3946
3937
|
/** ID of the entity associated with the event. */
|
|
3947
3938
|
entityId?: string;
|
|
3948
3939
|
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3949
|
-
eventTime?: Date;
|
|
3940
|
+
eventTime?: Date | null;
|
|
3950
3941
|
/**
|
|
3951
3942
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
3952
3943
|
* (for example, GDPR).
|
|
@@ -4105,7 +4096,7 @@ interface ListUpcomingChargesOptions {
|
|
|
4105
4096
|
* Date of the next billing cycle so that the upcoming charges will be calculated accordingly.
|
|
4106
4097
|
* If not provided, the upcoming charges will be calculated according to the existing next billing date.
|
|
4107
4098
|
*/
|
|
4108
|
-
nextBillingDate?: Date;
|
|
4099
|
+
nextBillingDate?: Date | null;
|
|
4109
4100
|
}
|
|
4110
4101
|
interface PreviewSubscriptionChargesOptions extends PreviewSubscriptionChargesRequestSubscriptionOneOf {
|
|
4111
4102
|
/** Information about a non-existing subscription. */
|
|
@@ -4227,7 +4218,7 @@ interface UpdateSubscriptionBillingDateSignature {
|
|
|
4227
4218
|
* @param - ID of the subscription to update the billing date for.
|
|
4228
4219
|
* @param - New billing date in `YYYY-MM-DDThh:mm:ss:sssZ` format.
|
|
4229
4220
|
*/
|
|
4230
|
-
(_id: string, billingDate: Date, options?: UpdateSubscriptionBillingDateOptions | undefined): Promise<UpdateSubscriptionBillingDateResponse & UpdateSubscriptionBillingDateResponseNonNullableFields>;
|
|
4221
|
+
(_id: string, billingDate: Date | null, options?: UpdateSubscriptionBillingDateOptions | undefined): Promise<UpdateSubscriptionBillingDateResponse & UpdateSubscriptionBillingDateResponseNonNullableFields>;
|
|
4231
4222
|
}
|
|
4232
4223
|
declare function cancelSubscription$1(httpClient: HttpClient): CancelSubscriptionSignature;
|
|
4233
4224
|
interface CancelSubscriptionSignature {
|