@wix/auto_sdk_subscription_subscriptions 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/billing-v1-subscription-subscriptions.context.d.ts +5 -5
- package/build/cjs/src/billing-v1-subscription-subscriptions.context.js +13 -11
- package/build/cjs/src/billing-v1-subscription-subscriptions.context.js.map +1 -1
- package/build/cjs/src/billing-v1-subscription-subscriptions.http.d.ts +19 -3
- package/build/cjs/src/billing-v1-subscription-subscriptions.http.js +1914 -1851
- package/build/cjs/src/billing-v1-subscription-subscriptions.http.js.map +1 -1
- package/build/cjs/src/billing-v1-subscription-subscriptions.meta.d.ts +8 -5
- package/build/cjs/src/billing-v1-subscription-subscriptions.meta.js +44 -25
- package/build/cjs/src/billing-v1-subscription-subscriptions.meta.js.map +1 -1
- package/build/cjs/src/billing-v1-subscription-subscriptions.public.d.ts +12 -12
- package/build/cjs/src/billing-v1-subscription-subscriptions.public.js +18 -11
- package/build/cjs/src/billing-v1-subscription-subscriptions.public.js.map +1 -1
- package/build/cjs/src/billing-v1-subscription-subscriptions.types.d.ts +2034 -1465
- package/build/cjs/src/billing-v1-subscription-subscriptions.types.js +59 -59
- package/build/cjs/src/billing-v1-subscription-subscriptions.types.js.map +1 -1
- package/build/cjs/src/billing-v1-subscription-subscriptions.universal.d.ts +2114 -1465
- package/build/cjs/src/billing-v1-subscription-subscriptions.universal.js +401 -339
- package/build/cjs/src/billing-v1-subscription-subscriptions.universal.js.map +1 -1
- package/build/es/src/billing-v1-subscription-subscriptions.context.d.ts +5 -5
- package/build/es/src/billing-v1-subscription-subscriptions.context.js +6 -4
- package/build/es/src/billing-v1-subscription-subscriptions.context.js.map +1 -1
- package/build/es/src/billing-v1-subscription-subscriptions.http.d.ts +19 -3
- package/build/es/src/billing-v1-subscription-subscriptions.http.js +1854 -1792
- package/build/es/src/billing-v1-subscription-subscriptions.http.js.map +1 -1
- package/build/es/src/billing-v1-subscription-subscriptions.meta.d.ts +8 -5
- package/build/es/src/billing-v1-subscription-subscriptions.meta.js +40 -22
- package/build/es/src/billing-v1-subscription-subscriptions.meta.js.map +1 -1
- package/build/es/src/billing-v1-subscription-subscriptions.public.d.ts +12 -12
- package/build/es/src/billing-v1-subscription-subscriptions.public.js +14 -8
- package/build/es/src/billing-v1-subscription-subscriptions.public.js.map +1 -1
- package/build/es/src/billing-v1-subscription-subscriptions.types.d.ts +2034 -1465
- package/build/es/src/billing-v1-subscription-subscriptions.types.js +58 -58
- package/build/es/src/billing-v1-subscription-subscriptions.types.js.map +1 -1
- package/build/es/src/billing-v1-subscription-subscriptions.universal.d.ts +2114 -1465
- package/build/es/src/billing-v1-subscription-subscriptions.universal.js +394 -333
- package/build/es/src/billing-v1-subscription-subscriptions.universal.js.map +1 -1
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.d.ts +7 -5
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.js +13 -11
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.js.map +1 -1
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.d.ts +19 -3
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.js +1914 -1851
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.js.map +1 -1
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.d.ts +8 -5
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.js +44 -25
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.js.map +1 -1
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.d.ts +35 -13
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.js +18 -11
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.js.map +1 -1
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.d.ts +2034 -1465
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.js +59 -59
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.js.map +1 -1
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.d.ts +2253 -1578
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.js +401 -339
- package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.js.map +1 -1
- package/build/internal/es/src/billing-v1-subscription-subscriptions.context.d.ts +7 -5
- package/build/internal/es/src/billing-v1-subscription-subscriptions.context.js +6 -4
- package/build/internal/es/src/billing-v1-subscription-subscriptions.context.js.map +1 -1
- package/build/internal/es/src/billing-v1-subscription-subscriptions.http.d.ts +19 -3
- package/build/internal/es/src/billing-v1-subscription-subscriptions.http.js +1854 -1792
- package/build/internal/es/src/billing-v1-subscription-subscriptions.http.js.map +1 -1
- package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.d.ts +8 -5
- package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.js +40 -22
- package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.js.map +1 -1
- package/build/internal/es/src/billing-v1-subscription-subscriptions.public.d.ts +35 -13
- package/build/internal/es/src/billing-v1-subscription-subscriptions.public.js +14 -8
- package/build/internal/es/src/billing-v1-subscription-subscriptions.public.js.map +1 -1
- package/build/internal/es/src/billing-v1-subscription-subscriptions.types.d.ts +2034 -1465
- package/build/internal/es/src/billing-v1-subscription-subscriptions.types.js +58 -58
- package/build/internal/es/src/billing-v1-subscription-subscriptions.types.js.map +1 -1
- package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.d.ts +2253 -1578
- package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.js +394 -333
- package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -115,52 +115,6 @@ export var ItemCategory;
|
|
|
115
115
|
ItemCategory["PHYSICAL"] = "PHYSICAL";
|
|
116
116
|
ItemCategory["DIGITAL"] = "DIGITAL";
|
|
117
117
|
})(ItemCategory || (ItemCategory = {}));
|
|
118
|
-
export var HistoryViewMode;
|
|
119
|
-
(function (HistoryViewMode) {
|
|
120
|
-
HistoryViewMode["UNKNOWN"] = "UNKNOWN";
|
|
121
|
-
/** Comprehensive view including all history events. */
|
|
122
|
-
HistoryViewMode["BACKOFFICE"] = "BACKOFFICE";
|
|
123
|
-
/** User-centric view of the history. */
|
|
124
|
-
HistoryViewMode["USER"] = "USER";
|
|
125
|
-
})(HistoryViewMode || (HistoryViewMode = {}));
|
|
126
|
-
export var UpdateAction;
|
|
127
|
-
(function (UpdateAction) {
|
|
128
|
-
UpdateAction["NONE"] = "NONE";
|
|
129
|
-
/** Update subscription immediately, please note proration for updates changing price are not yet supported */
|
|
130
|
-
UpdateAction["IMMEDIATELY"] = "IMMEDIATELY";
|
|
131
|
-
/** Request updates that will take affect only at the start of the next billing cycle. */
|
|
132
|
-
UpdateAction["NEXT_BILLING_CYCLE"] = "NEXT_BILLING_CYCLE";
|
|
133
|
-
/** Reset all pending updates */
|
|
134
|
-
UpdateAction["RESET_PENDING_UPDATES"] = "RESET_PENDING_UPDATES";
|
|
135
|
-
/** Request updates that will take affect only at a specific date. */
|
|
136
|
-
UpdateAction["SPECIFIC_DATE"] = "SPECIFIC_DATE";
|
|
137
|
-
})(UpdateAction || (UpdateAction = {}));
|
|
138
|
-
export var PaymentSettlementMethod;
|
|
139
|
-
(function (PaymentSettlementMethod) {
|
|
140
|
-
PaymentSettlementMethod["UNKNOWN"] = "UNKNOWN";
|
|
141
|
-
/** System-defined payment settlement. */
|
|
142
|
-
PaymentSettlementMethod["SYSTEM"] = "SYSTEM";
|
|
143
|
-
/** Manually mark the payment as paid. */
|
|
144
|
-
PaymentSettlementMethod["MARK_AS_PAID"] = "MARK_AS_PAID";
|
|
145
|
-
/** Require the customer to pay immediately, by insert a new payment method. */
|
|
146
|
-
PaymentSettlementMethod["CUSTOMER_PAY_NOW"] = "CUSTOMER_PAY_NOW";
|
|
147
|
-
})(PaymentSettlementMethod || (PaymentSettlementMethod = {}));
|
|
148
|
-
export var PaymentMode;
|
|
149
|
-
(function (PaymentMode) {
|
|
150
|
-
PaymentMode["NONE"] = "NONE";
|
|
151
|
-
/** The latest invoice of the subscription will be charged. */
|
|
152
|
-
PaymentMode["CHARGE"] = "CHARGE";
|
|
153
|
-
/** An authorization invoice with zero amount will be created. */
|
|
154
|
-
PaymentMode["AUTHORIZATION"] = "AUTHORIZATION";
|
|
155
|
-
})(PaymentMode || (PaymentMode = {}));
|
|
156
|
-
export var WebhookIdentityType;
|
|
157
|
-
(function (WebhookIdentityType) {
|
|
158
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
159
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
160
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
161
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
162
|
-
WebhookIdentityType["APP"] = "APP";
|
|
163
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
164
118
|
export var SortOrder;
|
|
165
119
|
(function (SortOrder) {
|
|
166
120
|
SortOrder["ASC"] = "ASC";
|
|
@@ -194,12 +148,40 @@ export var ExtendPolicyType;
|
|
|
194
148
|
ExtendPolicyType["PERIOD"] = "PERIOD";
|
|
195
149
|
ExtendPolicyType["BILLING_CYCLE"] = "BILLING_CYCLE";
|
|
196
150
|
})(ExtendPolicyType || (ExtendPolicyType = {}));
|
|
151
|
+
export var PaymentMode;
|
|
152
|
+
(function (PaymentMode) {
|
|
153
|
+
PaymentMode["NONE"] = "NONE";
|
|
154
|
+
/** The latest invoice of the subscription will be charged. */
|
|
155
|
+
PaymentMode["CHARGE"] = "CHARGE";
|
|
156
|
+
/** An authorization invoice with zero amount will be created. */
|
|
157
|
+
PaymentMode["AUTHORIZATION"] = "AUTHORIZATION";
|
|
158
|
+
})(PaymentMode || (PaymentMode = {}));
|
|
197
159
|
export var OrderMethod;
|
|
198
160
|
(function (OrderMethod) {
|
|
199
161
|
OrderMethod["UNKNOWN"] = "UNKNOWN";
|
|
200
162
|
OrderMethod["MOTO"] = "MOTO";
|
|
201
163
|
OrderMethod["NOT_MOTO"] = "NOT_MOTO";
|
|
202
164
|
})(OrderMethod || (OrderMethod = {}));
|
|
165
|
+
export var WebhookIdentityType;
|
|
166
|
+
(function (WebhookIdentityType) {
|
|
167
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
168
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
169
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
170
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
171
|
+
WebhookIdentityType["APP"] = "APP";
|
|
172
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
173
|
+
export var PaymentTestMode;
|
|
174
|
+
(function (PaymentTestMode) {
|
|
175
|
+
PaymentTestMode["REGULAR"] = "REGULAR";
|
|
176
|
+
PaymentTestMode["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
177
|
+
PaymentTestMode["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
178
|
+
PaymentTestMode["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
179
|
+
})(PaymentTestMode || (PaymentTestMode = {}));
|
|
180
|
+
export var RevivePolicy;
|
|
181
|
+
(function (RevivePolicy) {
|
|
182
|
+
RevivePolicy["SIMPLE"] = "SIMPLE";
|
|
183
|
+
RevivePolicy["RESUME"] = "RESUME";
|
|
184
|
+
})(RevivePolicy || (RevivePolicy = {}));
|
|
203
185
|
export var ActionInitiator;
|
|
204
186
|
(function (ActionInitiator) {
|
|
205
187
|
ActionInitiator["UNDEFINED"] = "UNDEFINED";
|
|
@@ -207,6 +189,18 @@ export var ActionInitiator;
|
|
|
207
189
|
ActionInitiator["CUSTOMER"] = "CUSTOMER";
|
|
208
190
|
ActionInitiator["SYSTEM"] = "SYSTEM";
|
|
209
191
|
})(ActionInitiator || (ActionInitiator = {}));
|
|
192
|
+
export var UpdateAction;
|
|
193
|
+
(function (UpdateAction) {
|
|
194
|
+
UpdateAction["NONE"] = "NONE";
|
|
195
|
+
/** Update subscription immediately, please note proration for updates changing price are not yet supported */
|
|
196
|
+
UpdateAction["IMMEDIATELY"] = "IMMEDIATELY";
|
|
197
|
+
/** Request updates that will take affect only at the start of the next billing cycle. */
|
|
198
|
+
UpdateAction["NEXT_BILLING_CYCLE"] = "NEXT_BILLING_CYCLE";
|
|
199
|
+
/** Reset all pending updates */
|
|
200
|
+
UpdateAction["RESET_PENDING_UPDATES"] = "RESET_PENDING_UPDATES";
|
|
201
|
+
/** Request updates that will take affect only at a specific date. */
|
|
202
|
+
UpdateAction["SPECIFIC_DATE"] = "SPECIFIC_DATE";
|
|
203
|
+
})(UpdateAction || (UpdateAction = {}));
|
|
210
204
|
export var RequestedFields;
|
|
211
205
|
(function (RequestedFields) {
|
|
212
206
|
RequestedFields["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
@@ -325,260 +319,24 @@ export var Status;
|
|
|
325
319
|
Status["ACTIVE"] = "ACTIVE";
|
|
326
320
|
Status["ENDED"] = "ENDED";
|
|
327
321
|
})(Status || (Status = {}));
|
|
328
|
-
export var
|
|
329
|
-
(function (
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
* @applicableIdentity APP
|
|
347
|
-
* @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionHistoryService.ListSubscriptionHistory
|
|
348
|
-
*/
|
|
349
|
-
export async function listSubscriptionHistory(subscriptionId, options) {
|
|
350
|
-
// @ts-ignore
|
|
351
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
352
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
353
|
-
subscriptionId: subscriptionId,
|
|
354
|
-
mode: options?.mode,
|
|
355
|
-
cursor: options?.cursor,
|
|
356
|
-
});
|
|
357
|
-
const reqOpts = ambassadorWixBillingV1Subscription.listSubscriptionHistory(payload);
|
|
358
|
-
sideEffects?.onSiteCall?.();
|
|
359
|
-
try {
|
|
360
|
-
const result = await httpClient.request(reqOpts);
|
|
361
|
-
sideEffects?.onSuccess?.(result);
|
|
362
|
-
return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
|
|
363
|
-
{
|
|
364
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
365
|
-
paths: [
|
|
366
|
-
{
|
|
367
|
-
path: 'historyEntries.event.created.subscription.billingSettings.billingAddress.address',
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
path: 'historyEntries.event.created.subscription.shippingAddress.address',
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
path: 'historyEntries.event.updated.current.billingSettings.billingAddress.address',
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
path: 'historyEntries.event.updated.current.shippingAddress.address',
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
path: 'historyEntries.event.updated.previous.billingSettings.billingAddress.address',
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
path: 'historyEntries.event.updated.previous.shippingAddress.address',
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
path: 'historyEntries.event.activated.subscription.billingSettings.billingAddress.address',
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
path: 'historyEntries.event.activated.subscription.shippingAddress.address',
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
path: 'historyEntries.event.ended.subscription.billingSettings.billingAddress.address',
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
path: 'historyEntries.event.ended.subscription.shippingAddress.address',
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
path: 'historyEntries.event.canceled.subscription.billingSettings.billingAddress.address',
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
path: 'historyEntries.event.canceled.subscription.shippingAddress.address',
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
path: 'historyEntries.event.paused.subscription.billingSettings.billingAddress.address',
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
path: 'historyEntries.event.paused.subscription.shippingAddress.address',
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
path: 'historyEntries.event.resumed.subscription.billingSettings.billingAddress.address',
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
path: 'historyEntries.event.resumed.subscription.shippingAddress.address',
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
path: 'historyEntries.event.pauseRequested.subscription.billingSettings.billingAddress.address',
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
path: 'historyEntries.event.pauseRequested.subscription.shippingAddress.address',
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
path: 'historyEntries.event.resumeRequested.subscription.billingSettings.billingAddress.address',
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
path: 'historyEntries.event.resumeRequested.subscription.shippingAddress.address',
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingSettings.billingAddress.address',
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
path: 'historyEntries.event.scheduledPauseCanceled.subscription.shippingAddress.address',
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingSettings.billingAddress.address',
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
path: 'historyEntries.event.scheduledResumeCanceled.subscription.shippingAddress.address',
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
path: 'historyEntries.event.billingCycleStarted.subscription.billingSettings.billingAddress.address',
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
path: 'historyEntries.event.billingCycleStarted.subscription.shippingAddress.address',
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingSettings.billingAddress.address',
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
path: 'historyEntries.event.autoRenewalTurnedOn.subscription.shippingAddress.address',
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingSettings.billingAddress.address',
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
path: 'historyEntries.event.autoRenewalTurnedOff.subscription.shippingAddress.address',
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
path: 'historyEntries.event.cycleReadyToPay.subscription.billingSettings.billingAddress.address',
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
path: 'historyEntries.event.cycleReadyToPay.subscription.shippingAddress.address',
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
path: 'historyEntries.event.extended.subscription.billingSettings.billingAddress.address',
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
path: 'historyEntries.event.extended.subscription.shippingAddress.address',
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingSettings.billingAddress.address',
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
path: 'historyEntries.event.initialPurchaseCompleted.subscription.shippingAddress.address',
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingSettings.billingAddress.address',
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.shippingAddress.address',
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
path: 'historyEntries.event.revived.subscription.billingSettings.billingAddress.address',
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
path: 'historyEntries.event.revived.subscription.shippingAddress.address',
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
path: 'historyEntries.event.billingDateUpdated.subscription.billingSettings.billingAddress.address',
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
path: 'historyEntries.event.billingDateUpdated.subscription.shippingAddress.address',
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
path: 'historyEntries.event.futureUpdatesRequested.subscription.billingSettings.billingAddress.address',
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
path: 'historyEntries.event.futureUpdatesRequested.subscription.shippingAddress.address',
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
path: 'historyEntries.event.updatesApplied.subscription.billingSettings.billingAddress.address',
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
path: 'historyEntries.event.updatesApplied.subscription.shippingAddress.address',
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
path: 'historyEntries.event.resetPendingUpdates.subscription.billingSettings.billingAddress.address',
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
path: 'historyEntries.event.resetPendingUpdates.subscription.shippingAddress.address',
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
path: 'historyEntries.event.gracePeriodStarted.subscription.billingSettings.billingAddress.address',
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
path: 'historyEntries.event.gracePeriodStarted.subscription.shippingAddress.address',
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
path: 'historyEntries.event.gracePeriodEnded.subscription.billingSettings.billingAddress.address',
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
path: 'historyEntries.event.gracePeriodEnded.subscription.shippingAddress.address',
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
path: 'historyEntries.event.paymentMethodUpdated.subscription.billingSettings.billingAddress.address',
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
path: 'historyEntries.event.paymentMethodUpdated.subscription.shippingAddress.address',
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
path: 'historyEntries.event.collectionMethodUpdated.subscription.billingSettings.billingAddress.address',
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
path: 'historyEntries.event.collectionMethodUpdated.subscription.shippingAddress.address',
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
path: 'historyEntries.event.freeTrailStarted.subscription.billingSettings.billingAddress.address',
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
path: 'historyEntries.event.freeTrailStarted.subscription.shippingAddress.address',
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
path: 'historyEntries.event.freeTrailEnded.subscription.billingSettings.billingAddress.address',
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
path: 'historyEntries.event.freeTrailEnded.subscription.shippingAddress.address',
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingSettings.billingAddress.address',
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.shippingAddress.address',
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingSettings.billingAddress.address',
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.shippingAddress.address',
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
path: 'historyEntries.event.subscriptionBoAction.subscription.billingSettings.billingAddress.address',
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
path: 'historyEntries.event.subscriptionBoAction.subscription.shippingAddress.address',
|
|
563
|
-
},
|
|
564
|
-
],
|
|
565
|
-
},
|
|
566
|
-
]));
|
|
567
|
-
}
|
|
568
|
-
catch (err) {
|
|
569
|
-
const transformedError = sdkTransformError(err, {
|
|
570
|
-
spreadPathsToArguments: {},
|
|
571
|
-
explicitPathsToArguments: {
|
|
572
|
-
subscriptionId: '$[0]',
|
|
573
|
-
mode: '$[1].mode',
|
|
574
|
-
cursor: '$[1].cursor',
|
|
575
|
-
},
|
|
576
|
-
singleArgumentUnchanged: false,
|
|
577
|
-
}, ['subscriptionId', 'options']);
|
|
578
|
-
sideEffects?.onError?.(err);
|
|
579
|
-
throw transformedError;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
322
|
+
export var HistoryViewMode;
|
|
323
|
+
(function (HistoryViewMode) {
|
|
324
|
+
HistoryViewMode["UNKNOWN"] = "UNKNOWN";
|
|
325
|
+
/** Comprehensive view including all history events. */
|
|
326
|
+
HistoryViewMode["BACKOFFICE"] = "BACKOFFICE";
|
|
327
|
+
/** User-centric view of the history. */
|
|
328
|
+
HistoryViewMode["USER"] = "USER";
|
|
329
|
+
})(HistoryViewMode || (HistoryViewMode = {}));
|
|
330
|
+
export var PaymentSettlementMethod;
|
|
331
|
+
(function (PaymentSettlementMethod) {
|
|
332
|
+
PaymentSettlementMethod["UNKNOWN"] = "UNKNOWN";
|
|
333
|
+
/** System-defined payment settlement. */
|
|
334
|
+
PaymentSettlementMethod["SYSTEM"] = "SYSTEM";
|
|
335
|
+
/** Manually mark the payment as paid. */
|
|
336
|
+
PaymentSettlementMethod["MARK_AS_PAID"] = "MARK_AS_PAID";
|
|
337
|
+
/** Require the customer to pay immediately, by insert a new payment method. */
|
|
338
|
+
PaymentSettlementMethod["CUSTOMER_PAY_NOW"] = "CUSTOMER_PAY_NOW";
|
|
339
|
+
})(PaymentSettlementMethod || (PaymentSettlementMethod = {}));
|
|
582
340
|
/**
|
|
583
341
|
* Identity must be a site member and customer subscription belongs to
|
|
584
342
|
* @public
|
|
@@ -946,6 +704,51 @@ export async function customerInitiatePaymentMethodSetup(_id, options) {
|
|
|
946
704
|
throw transformedError;
|
|
947
705
|
}
|
|
948
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* This used only for automation and permitted tenants (QA & testing)
|
|
709
|
+
* @public
|
|
710
|
+
* @documentationMaturity preview
|
|
711
|
+
* @requiredField options.tenantId
|
|
712
|
+
* @requiredField subscriptionId
|
|
713
|
+
* @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle
|
|
714
|
+
*/
|
|
715
|
+
export async function payCycle(subscriptionId, options) {
|
|
716
|
+
// @ts-ignore
|
|
717
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
718
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
719
|
+
subscriptionId: subscriptionId,
|
|
720
|
+
paymentTestMode: options?.paymentTestMode,
|
|
721
|
+
tenantId: options?.tenantId,
|
|
722
|
+
});
|
|
723
|
+
const reqOpts = ambassadorWixBillingV1Subscription.payCycle(payload);
|
|
724
|
+
sideEffects?.onSiteCall?.();
|
|
725
|
+
try {
|
|
726
|
+
const result = await httpClient.request(reqOpts);
|
|
727
|
+
sideEffects?.onSuccess?.(result);
|
|
728
|
+
return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
|
|
729
|
+
{
|
|
730
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
731
|
+
paths: [
|
|
732
|
+
{ path: 'subscription.billingSettings.billingAddress.address' },
|
|
733
|
+
{ path: 'subscription.shippingAddress.address' },
|
|
734
|
+
],
|
|
735
|
+
},
|
|
736
|
+
]));
|
|
737
|
+
}
|
|
738
|
+
catch (err) {
|
|
739
|
+
const transformedError = sdkTransformError(err, {
|
|
740
|
+
spreadPathsToArguments: {},
|
|
741
|
+
explicitPathsToArguments: {
|
|
742
|
+
subscriptionId: '$[0]',
|
|
743
|
+
paymentTestMode: '$[1].paymentTestMode',
|
|
744
|
+
tenantId: '$[1].tenantId',
|
|
745
|
+
},
|
|
746
|
+
singleArgumentUnchanged: false,
|
|
747
|
+
}, ['subscriptionId', 'options']);
|
|
748
|
+
sideEffects?.onError?.(err);
|
|
749
|
+
throw transformedError;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
949
752
|
/**
|
|
950
753
|
* Returns a single subscription by its id
|
|
951
754
|
* @public
|
|
@@ -1484,18 +1287,75 @@ export async function turnOffSubscriptionAutoRenewal(_id, actionContext) {
|
|
|
1484
1287
|
* @permissionScope Manage Orders
|
|
1485
1288
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1486
1289
|
* @applicableIdentity APP
|
|
1487
|
-
* @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkLatestInvoiceAsPaid
|
|
1488
|
-
* @deprecated
|
|
1489
|
-
* @replacedBy com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkInvoiceAsPaid
|
|
1490
|
-
* @targetRemovalDate 2025-09-30
|
|
1290
|
+
* @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkLatestInvoiceAsPaid
|
|
1291
|
+
* @deprecated
|
|
1292
|
+
* @replacedBy com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkInvoiceAsPaid
|
|
1293
|
+
* @targetRemovalDate 2025-09-30
|
|
1294
|
+
*/
|
|
1295
|
+
export async function markLatestInvoiceAsPaid(subscriptionId) {
|
|
1296
|
+
// @ts-ignore
|
|
1297
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1298
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1299
|
+
subscriptionId: subscriptionId,
|
|
1300
|
+
});
|
|
1301
|
+
const reqOpts = ambassadorWixBillingV1Subscription.markLatestInvoiceAsPaid(payload);
|
|
1302
|
+
sideEffects?.onSiteCall?.();
|
|
1303
|
+
try {
|
|
1304
|
+
const result = await httpClient.request(reqOpts);
|
|
1305
|
+
sideEffects?.onSuccess?.(result);
|
|
1306
|
+
return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
|
|
1307
|
+
{
|
|
1308
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
1309
|
+
paths: [
|
|
1310
|
+
{ path: 'subscription.billingSettings.billingAddress.address' },
|
|
1311
|
+
{ path: 'subscription.shippingAddress.address' },
|
|
1312
|
+
],
|
|
1313
|
+
},
|
|
1314
|
+
]));
|
|
1315
|
+
}
|
|
1316
|
+
catch (err) {
|
|
1317
|
+
const transformedError = sdkTransformError(err, {
|
|
1318
|
+
spreadPathsToArguments: {},
|
|
1319
|
+
explicitPathsToArguments: { subscriptionId: '$[0]' },
|
|
1320
|
+
singleArgumentUnchanged: false,
|
|
1321
|
+
}, ['subscriptionId']);
|
|
1322
|
+
sideEffects?.onError?.(err);
|
|
1323
|
+
throw transformedError;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Marks the invoice associated with the subscription in the specified cycle as paid.
|
|
1328
|
+
* If `paid_cycle` is left empty, the most recent invoice will be marked as paid.
|
|
1329
|
+
* If the invoice contains items other than subscription items, an error will be thrown.
|
|
1330
|
+
*
|
|
1331
|
+
* Marks the invoice as paid for the following scenarios:
|
|
1332
|
+
* 1. Offline subscriptions.
|
|
1333
|
+
* 2. Online subscriptions during the grace period.
|
|
1334
|
+
* This operation will convert the invoice to offline, remove the grace period,
|
|
1335
|
+
* and send a BillingCycleStarted event after the invoice is closed.
|
|
1336
|
+
* 3. Online one-time payment subscriptions with a total price of zero during the purchase flow.
|
|
1337
|
+
* An Activated event will be sent after the invoice is closed, and the subscription will be activated.
|
|
1338
|
+
* 4. For external subscriptions, where the payment occurs outside of BASS, an invoice is created and marked as paid
|
|
1339
|
+
* TODO: to delete after ECOM adjustments
|
|
1340
|
+
* @param subscriptionId - The ID of the subscription to mark as paid its invoice.
|
|
1341
|
+
* @internal
|
|
1342
|
+
* @documentationMaturity preview
|
|
1343
|
+
* @requiredField subscriptionId
|
|
1344
|
+
* @permissionId subscriptions.manage
|
|
1345
|
+
* @permissionScope Manage Orders
|
|
1346
|
+
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1347
|
+
* @applicableIdentity APP
|
|
1348
|
+
* @returns TODO: to delete after ECOM adjustments
|
|
1349
|
+
* @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkInvoiceAsPaid
|
|
1491
1350
|
*/
|
|
1492
|
-
export async function
|
|
1351
|
+
export async function markInvoiceAsPaid(subscriptionId, options) {
|
|
1493
1352
|
// @ts-ignore
|
|
1494
|
-
const { httpClient, sideEffects } = arguments[
|
|
1353
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1495
1354
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1496
1355
|
subscriptionId: subscriptionId,
|
|
1356
|
+
paidCycle: options?.paidCycle,
|
|
1497
1357
|
});
|
|
1498
|
-
const reqOpts = ambassadorWixBillingV1Subscription.
|
|
1358
|
+
const reqOpts = ambassadorWixBillingV1Subscription.markInvoiceAsPaid(payload);
|
|
1499
1359
|
sideEffects?.onSiteCall?.();
|
|
1500
1360
|
try {
|
|
1501
1361
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1513,15 +1373,18 @@ export async function markLatestInvoiceAsPaid(subscriptionId) {
|
|
|
1513
1373
|
catch (err) {
|
|
1514
1374
|
const transformedError = sdkTransformError(err, {
|
|
1515
1375
|
spreadPathsToArguments: {},
|
|
1516
|
-
explicitPathsToArguments: {
|
|
1376
|
+
explicitPathsToArguments: {
|
|
1377
|
+
subscriptionId: '$[0]',
|
|
1378
|
+
paidCycle: '$[1].paidCycle',
|
|
1379
|
+
},
|
|
1517
1380
|
singleArgumentUnchanged: false,
|
|
1518
|
-
}, ['subscriptionId']);
|
|
1381
|
+
}, ['subscriptionId', 'options']);
|
|
1519
1382
|
sideEffects?.onError?.(err);
|
|
1520
1383
|
throw transformedError;
|
|
1521
1384
|
}
|
|
1522
1385
|
}
|
|
1523
1386
|
/**
|
|
1524
|
-
* Marks the invoice associated with
|
|
1387
|
+
* Marks the invoice associated with given subscription cycle as paid for the following scenarios:
|
|
1525
1388
|
* If `paid_cycle` is left empty, the most recent invoice will be marked as paid.
|
|
1526
1389
|
* If the invoice contains items other than subscription items, an error will be thrown.
|
|
1527
1390
|
*
|
|
@@ -1541,16 +1404,16 @@ export async function markLatestInvoiceAsPaid(subscriptionId) {
|
|
|
1541
1404
|
* @permissionScope Manage Orders
|
|
1542
1405
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1543
1406
|
* @applicableIdentity APP
|
|
1544
|
-
* @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.
|
|
1407
|
+
* @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkBillingCycleAsPaid
|
|
1545
1408
|
*/
|
|
1546
|
-
export async function
|
|
1409
|
+
export async function markBillingCycleAsPaid(subscriptionId, options) {
|
|
1547
1410
|
// @ts-ignore
|
|
1548
1411
|
const { httpClient, sideEffects } = arguments[2];
|
|
1549
1412
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1550
1413
|
subscriptionId: subscriptionId,
|
|
1551
1414
|
paidCycle: options?.paidCycle,
|
|
1552
1415
|
});
|
|
1553
|
-
const reqOpts = ambassadorWixBillingV1Subscription.
|
|
1416
|
+
const reqOpts = ambassadorWixBillingV1Subscription.markBillingCycleAsPaid(payload);
|
|
1554
1417
|
sideEffects?.onSiteCall?.();
|
|
1555
1418
|
try {
|
|
1556
1419
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1616,6 +1479,7 @@ export async function getSubscriptionsStats() {
|
|
|
1616
1479
|
* @documentationMaturity preview
|
|
1617
1480
|
* @requiredField _id
|
|
1618
1481
|
* @requiredField actionContext
|
|
1482
|
+
* @requiredField extendPolicy
|
|
1619
1483
|
* @permissionId subscriptions.manage
|
|
1620
1484
|
* @permissionScope Manage Orders
|
|
1621
1485
|
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
@@ -1740,11 +1604,10 @@ export async function listUpcomingCharges(subscriptionId, options) {
|
|
|
1740
1604
|
* Returns all the charges applicable to a subscription based on the provided subscription information.
|
|
1741
1605
|
* @public
|
|
1742
1606
|
* @documentationMaturity preview
|
|
1743
|
-
* @requiredField
|
|
1744
|
-
* @requiredField
|
|
1745
|
-
* @requiredField
|
|
1746
|
-
* @requiredField
|
|
1747
|
-
* @requiredField options.subscriptionInfo.items.pricingModel
|
|
1607
|
+
* @requiredField subscription.subscriptionInfo
|
|
1608
|
+
* @requiredField subscription.subscriptionInfo.billingSettings
|
|
1609
|
+
* @requiredField subscription.subscriptionInfo.items
|
|
1610
|
+
* @requiredField subscription.subscriptionInfo.items.pricingModel
|
|
1748
1611
|
* @permissionId subscriptions.view
|
|
1749
1612
|
* @permissionScope Manage Events
|
|
1750
1613
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
@@ -1790,11 +1653,12 @@ export async function previewSubscriptionCharges(options) {
|
|
|
1790
1653
|
* @public
|
|
1791
1654
|
* @documentationMaturity preview
|
|
1792
1655
|
* @requiredField options.subscriptionsBillingDetails.billingSettings
|
|
1793
|
-
* @requiredField options.subscriptionsBillingDetails.billingSettings.shippingCharges.tax
|
|
1656
|
+
* @requiredField options.subscriptionsBillingDetails.billingSettings.shippingCharges.tax.value
|
|
1794
1657
|
* @requiredField options.subscriptionsBillingDetails.externalId
|
|
1795
1658
|
* @requiredField options.subscriptionsBillingDetails.items
|
|
1796
1659
|
* @requiredField options.subscriptionsBillingDetails.items.pricingModel
|
|
1797
|
-
* @requiredField options.subscriptionsBillingDetails.items.
|
|
1660
|
+
* @requiredField options.subscriptionsBillingDetails.items.pricingModel.model
|
|
1661
|
+
* @requiredField options.subscriptionsBillingDetails.items.tax.value
|
|
1798
1662
|
* @permissionId subscriptions.view
|
|
1799
1663
|
* @permissionScope Manage Events
|
|
1800
1664
|
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
@@ -1878,23 +1742,24 @@ export async function initiatePaymentMethodSetup(_id, options) {
|
|
|
1878
1742
|
throw transformedError;
|
|
1879
1743
|
}
|
|
1880
1744
|
}
|
|
1881
|
-
/**
|
|
1882
|
-
* This used only for automation and permitted tenants (QA & testing)
|
|
1883
|
-
* @public
|
|
1745
|
+
/** @public
|
|
1884
1746
|
* @documentationMaturity preview
|
|
1885
|
-
* @requiredField options.tenantId
|
|
1886
1747
|
* @requiredField subscriptionId
|
|
1887
|
-
* @
|
|
1748
|
+
* @permissionId subscriptions.view
|
|
1749
|
+
* @permissionScope Manage Events
|
|
1750
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1751
|
+
* @applicableIdentity APP
|
|
1752
|
+
* @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionHistoryService.ListSubscriptionHistory
|
|
1888
1753
|
*/
|
|
1889
|
-
export async function
|
|
1754
|
+
export async function listSubscriptionHistory(subscriptionId, options) {
|
|
1890
1755
|
// @ts-ignore
|
|
1891
1756
|
const { httpClient, sideEffects } = arguments[2];
|
|
1892
1757
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1893
1758
|
subscriptionId: subscriptionId,
|
|
1894
|
-
|
|
1895
|
-
|
|
1759
|
+
mode: options?.mode,
|
|
1760
|
+
cursor: options?.cursor,
|
|
1896
1761
|
});
|
|
1897
|
-
const reqOpts = ambassadorWixBillingV1Subscription.
|
|
1762
|
+
const reqOpts = ambassadorWixBillingV1Subscription.listSubscriptionHistory(payload);
|
|
1898
1763
|
sideEffects?.onSiteCall?.();
|
|
1899
1764
|
try {
|
|
1900
1765
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1903,8 +1768,204 @@ export async function payCycle(subscriptionId, options) {
|
|
|
1903
1768
|
{
|
|
1904
1769
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1905
1770
|
paths: [
|
|
1906
|
-
{
|
|
1907
|
-
|
|
1771
|
+
{
|
|
1772
|
+
path: 'historyEntries.event.created.subscription.billingSettings.billingAddress.address',
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
path: 'historyEntries.event.created.subscription.shippingAddress.address',
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
path: 'historyEntries.event.updated.current.billingSettings.billingAddress.address',
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
path: 'historyEntries.event.updated.current.shippingAddress.address',
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
path: 'historyEntries.event.updated.previous.billingSettings.billingAddress.address',
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
path: 'historyEntries.event.updated.previous.shippingAddress.address',
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
path: 'historyEntries.event.activated.subscription.billingSettings.billingAddress.address',
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
path: 'historyEntries.event.activated.subscription.shippingAddress.address',
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
path: 'historyEntries.event.ended.subscription.billingSettings.billingAddress.address',
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
path: 'historyEntries.event.ended.subscription.shippingAddress.address',
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
path: 'historyEntries.event.canceled.subscription.billingSettings.billingAddress.address',
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
path: 'historyEntries.event.canceled.subscription.shippingAddress.address',
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
path: 'historyEntries.event.paused.subscription.billingSettings.billingAddress.address',
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
path: 'historyEntries.event.paused.subscription.shippingAddress.address',
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
path: 'historyEntries.event.resumed.subscription.billingSettings.billingAddress.address',
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
path: 'historyEntries.event.resumed.subscription.shippingAddress.address',
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
path: 'historyEntries.event.pauseRequested.subscription.billingSettings.billingAddress.address',
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
path: 'historyEntries.event.pauseRequested.subscription.shippingAddress.address',
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
path: 'historyEntries.event.resumeRequested.subscription.billingSettings.billingAddress.address',
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
path: 'historyEntries.event.resumeRequested.subscription.shippingAddress.address',
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingSettings.billingAddress.address',
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
path: 'historyEntries.event.scheduledPauseCanceled.subscription.shippingAddress.address',
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingSettings.billingAddress.address',
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
path: 'historyEntries.event.scheduledResumeCanceled.subscription.shippingAddress.address',
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
path: 'historyEntries.event.billingCycleStarted.subscription.billingSettings.billingAddress.address',
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
path: 'historyEntries.event.billingCycleStarted.subscription.shippingAddress.address',
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingSettings.billingAddress.address',
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
path: 'historyEntries.event.autoRenewalTurnedOn.subscription.shippingAddress.address',
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingSettings.billingAddress.address',
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
path: 'historyEntries.event.autoRenewalTurnedOff.subscription.shippingAddress.address',
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
path: 'historyEntries.event.cycleReadyToPay.subscription.billingSettings.billingAddress.address',
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
path: 'historyEntries.event.cycleReadyToPay.subscription.shippingAddress.address',
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
path: 'historyEntries.event.extended.subscription.billingSettings.billingAddress.address',
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
path: 'historyEntries.event.extended.subscription.shippingAddress.address',
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingSettings.billingAddress.address',
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
path: 'historyEntries.event.initialPurchaseCompleted.subscription.shippingAddress.address',
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingSettings.billingAddress.address',
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.shippingAddress.address',
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
path: 'historyEntries.event.revived.subscription.billingSettings.billingAddress.address',
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
path: 'historyEntries.event.revived.subscription.shippingAddress.address',
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
path: 'historyEntries.event.billingDateUpdated.subscription.billingSettings.billingAddress.address',
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
path: 'historyEntries.event.billingDateUpdated.subscription.shippingAddress.address',
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
path: 'historyEntries.event.futureUpdatesRequested.subscription.billingSettings.billingAddress.address',
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
path: 'historyEntries.event.futureUpdatesRequested.subscription.shippingAddress.address',
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
path: 'historyEntries.event.updatesApplied.subscription.billingSettings.billingAddress.address',
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
path: 'historyEntries.event.updatesApplied.subscription.shippingAddress.address',
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
path: 'historyEntries.event.resetPendingUpdates.subscription.billingSettings.billingAddress.address',
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
path: 'historyEntries.event.resetPendingUpdates.subscription.shippingAddress.address',
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
path: 'historyEntries.event.gracePeriodStarted.subscription.billingSettings.billingAddress.address',
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
path: 'historyEntries.event.gracePeriodStarted.subscription.shippingAddress.address',
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
path: 'historyEntries.event.gracePeriodEnded.subscription.billingSettings.billingAddress.address',
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
path: 'historyEntries.event.gracePeriodEnded.subscription.shippingAddress.address',
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
path: 'historyEntries.event.paymentMethodUpdated.subscription.billingSettings.billingAddress.address',
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
path: 'historyEntries.event.paymentMethodUpdated.subscription.shippingAddress.address',
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
path: 'historyEntries.event.collectionMethodUpdated.subscription.billingSettings.billingAddress.address',
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
path: 'historyEntries.event.collectionMethodUpdated.subscription.shippingAddress.address',
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
path: 'historyEntries.event.freeTrailStarted.subscription.billingSettings.billingAddress.address',
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
path: 'historyEntries.event.freeTrailStarted.subscription.shippingAddress.address',
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
path: 'historyEntries.event.freeTrailEnded.subscription.billingSettings.billingAddress.address',
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
path: 'historyEntries.event.freeTrailEnded.subscription.shippingAddress.address',
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
path: 'historyEntries.event.billingCyclePaid.subscription.billingSettings.billingAddress.address',
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
path: 'historyEntries.event.billingCyclePaid.subscription.shippingAddress.address',
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingSettings.billingAddress.address',
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.shippingAddress.address',
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
path: 'historyEntries.event.subscriptionBoAction.subscription.billingSettings.billingAddress.address',
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
path: 'historyEntries.event.subscriptionBoAction.subscription.shippingAddress.address',
|
|
1968
|
+
},
|
|
1908
1969
|
],
|
|
1909
1970
|
},
|
|
1910
1971
|
]));
|
|
@@ -1914,8 +1975,8 @@ export async function payCycle(subscriptionId, options) {
|
|
|
1914
1975
|
spreadPathsToArguments: {},
|
|
1915
1976
|
explicitPathsToArguments: {
|
|
1916
1977
|
subscriptionId: '$[0]',
|
|
1917
|
-
|
|
1918
|
-
|
|
1978
|
+
mode: '$[1].mode',
|
|
1979
|
+
cursor: '$[1].cursor',
|
|
1919
1980
|
},
|
|
1920
1981
|
singleArgumentUnchanged: false,
|
|
1921
1982
|
}, ['subscriptionId', 'options']);
|