@wix/auto_sdk_subscription_subscriptions 1.0.0 → 1.0.2

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.
Files changed (73) hide show
  1. package/build/cjs/src/billing-v1-subscription-subscriptions.context.d.ts +5 -5
  2. package/build/cjs/src/billing-v1-subscription-subscriptions.context.js +12 -12
  3. package/build/cjs/src/billing-v1-subscription-subscriptions.context.js.map +1 -1
  4. package/build/cjs/src/billing-v1-subscription-subscriptions.http.d.ts +5 -5
  5. package/build/cjs/src/billing-v1-subscription-subscriptions.http.js +1848 -1848
  6. package/build/cjs/src/billing-v1-subscription-subscriptions.http.js.map +1 -1
  7. package/build/cjs/src/billing-v1-subscription-subscriptions.meta.d.ts +7 -7
  8. package/build/cjs/src/billing-v1-subscription-subscriptions.meta.js +29 -29
  9. package/build/cjs/src/billing-v1-subscription-subscriptions.meta.js.map +1 -1
  10. package/build/cjs/src/billing-v1-subscription-subscriptions.public.d.ts +12 -12
  11. package/build/cjs/src/billing-v1-subscription-subscriptions.public.js +13 -13
  12. package/build/cjs/src/billing-v1-subscription-subscriptions.public.js.map +1 -1
  13. package/build/cjs/src/billing-v1-subscription-subscriptions.types.d.ts +1995 -1464
  14. package/build/cjs/src/billing-v1-subscription-subscriptions.types.js +59 -59
  15. package/build/cjs/src/billing-v1-subscription-subscriptions.types.js.map +1 -1
  16. package/build/cjs/src/billing-v1-subscription-subscriptions.universal.d.ts +2085 -1482
  17. package/build/cjs/src/billing-v1-subscription-subscriptions.universal.js +341 -340
  18. package/build/cjs/src/billing-v1-subscription-subscriptions.universal.js.map +1 -1
  19. package/build/es/src/billing-v1-subscription-subscriptions.context.d.ts +5 -5
  20. package/build/es/src/billing-v1-subscription-subscriptions.context.js +5 -5
  21. package/build/es/src/billing-v1-subscription-subscriptions.context.js.map +1 -1
  22. package/build/es/src/billing-v1-subscription-subscriptions.http.d.ts +5 -5
  23. package/build/es/src/billing-v1-subscription-subscriptions.http.js +1720 -1720
  24. package/build/es/src/billing-v1-subscription-subscriptions.http.js.map +1 -1
  25. package/build/es/src/billing-v1-subscription-subscriptions.meta.d.ts +7 -7
  26. package/build/es/src/billing-v1-subscription-subscriptions.meta.js +25 -25
  27. package/build/es/src/billing-v1-subscription-subscriptions.meta.js.map +1 -1
  28. package/build/es/src/billing-v1-subscription-subscriptions.public.d.ts +12 -12
  29. package/build/es/src/billing-v1-subscription-subscriptions.public.js +10 -10
  30. package/build/es/src/billing-v1-subscription-subscriptions.public.js.map +1 -1
  31. package/build/es/src/billing-v1-subscription-subscriptions.types.d.ts +1995 -1464
  32. package/build/es/src/billing-v1-subscription-subscriptions.types.js +58 -58
  33. package/build/es/src/billing-v1-subscription-subscriptions.types.js.map +1 -1
  34. package/build/es/src/billing-v1-subscription-subscriptions.universal.d.ts +2085 -1482
  35. package/build/es/src/billing-v1-subscription-subscriptions.universal.js +338 -337
  36. package/build/es/src/billing-v1-subscription-subscriptions.universal.js.map +1 -1
  37. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.d.ts +6 -6
  38. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.js +12 -12
  39. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.js.map +1 -1
  40. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.d.ts +5 -5
  41. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.js +1848 -1848
  42. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.js.map +1 -1
  43. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.d.ts +7 -7
  44. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.js +29 -29
  45. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.js.map +1 -1
  46. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.d.ts +17 -17
  47. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.js +13 -13
  48. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.js.map +1 -1
  49. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.d.ts +1995 -1464
  50. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.js +59 -59
  51. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.js.map +1 -1
  52. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.d.ts +2088 -1485
  53. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.js +341 -340
  54. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.js.map +1 -1
  55. package/build/internal/es/src/billing-v1-subscription-subscriptions.context.d.ts +6 -6
  56. package/build/internal/es/src/billing-v1-subscription-subscriptions.context.js +5 -5
  57. package/build/internal/es/src/billing-v1-subscription-subscriptions.context.js.map +1 -1
  58. package/build/internal/es/src/billing-v1-subscription-subscriptions.http.d.ts +5 -5
  59. package/build/internal/es/src/billing-v1-subscription-subscriptions.http.js +1720 -1720
  60. package/build/internal/es/src/billing-v1-subscription-subscriptions.http.js.map +1 -1
  61. package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.d.ts +7 -7
  62. package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.js +25 -25
  63. package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.js.map +1 -1
  64. package/build/internal/es/src/billing-v1-subscription-subscriptions.public.d.ts +17 -17
  65. package/build/internal/es/src/billing-v1-subscription-subscriptions.public.js +10 -10
  66. package/build/internal/es/src/billing-v1-subscription-subscriptions.public.js.map +1 -1
  67. package/build/internal/es/src/billing-v1-subscription-subscriptions.types.d.ts +1995 -1464
  68. package/build/internal/es/src/billing-v1-subscription-subscriptions.types.js +58 -58
  69. package/build/internal/es/src/billing-v1-subscription-subscriptions.types.js.map +1 -1
  70. package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.d.ts +2088 -1485
  71. package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.js +338 -337
  72. package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.js.map +1 -1
  73. package/package.json +2 -2
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.updateSubscriptionBillingDate = exports.updateSubscriptionPaymentMethod = exports.getSubscription = exports.customerInitiatePaymentMethodSetup = exports.customerListUpcomingCharges = exports.customerAllowedActions = exports.customerUpdateSubscriptionPaymentMethod = exports.customerQuerySubscriptions = exports.customerExtendSubscription = exports.customerTurnOffSubscriptionAutoRenewal = exports.customerTurnOnSubscriptionAutoRenewal = exports.customerCancelSubscription = exports.customerGetSubscription = exports.listSubscriptionHistory = exports.RevivePolicy = exports.PaymentTestMode = exports.Status = exports.CancellationInitiator = exports.SubscriptionFrequency = exports.PaymentStatusEnumPaymentStatus = exports.V1SubscriptionStatusEnumSubscriptionStatus = exports.SubscriptionType = exports.IdentityType = exports.PaymentAttemptStatus = exports.CreationMode = exports.CollectionMethod = exports.InvoiceStatus = exports.RequestedFields = exports.ActionInitiator = exports.OrderMethod = exports.ExtendPolicyType = exports.ActionType = exports.SubscriptionStatusGroup = exports.SortOrder = exports.WebhookIdentityType = exports.PaymentMode = exports.PaymentSettlementMethod = exports.UpdateAction = exports.HistoryViewMode = exports.ItemCategory = exports.HistoryActionInitiator = exports.ResumeAt = exports.PauseAt = exports.PausePolicy = exports.PaymentStatus = exports.TaxableAddressType = exports.AdditionalFeeTrigger = exports.DurationUnit = exports.CollectionMethodEnumCollectionMethod = exports.SubscriptionStatusEnumSubscriptionStatus = void 0;
27
- exports.payCycle = exports.initiatePaymentMethodSetup = exports.previewSubscriptionsCharges = exports.previewSubscriptionCharges = exports.listUpcomingCharges = exports.allowedActions = exports.extendSubscription = exports.getSubscriptionsStats = exports.markInvoiceAsPaid = exports.markLatestInvoiceAsPaid = exports.turnOffSubscriptionAutoRenewal = exports.turnOnSubscriptionAutoRenewal = exports.countSubscriptions = exports.searchSubscriptions = exports.querySubscriptions = exports.resumeSubscription = exports.pauseSubscription = exports.cancelSubscription = void 0;
26
+ exports.updateSubscriptionBillingDate = exports.updateSubscriptionPaymentMethod = exports.getSubscription = exports.payCycle = exports.customerInitiatePaymentMethodSetup = exports.customerListUpcomingCharges = exports.customerAllowedActions = exports.customerUpdateSubscriptionPaymentMethod = exports.customerQuerySubscriptions = exports.customerExtendSubscription = exports.customerTurnOffSubscriptionAutoRenewal = exports.customerTurnOnSubscriptionAutoRenewal = exports.customerCancelSubscription = exports.customerGetSubscription = exports.PaymentSettlementMethod = exports.HistoryViewMode = exports.Status = exports.CancellationInitiator = exports.SubscriptionFrequency = exports.PaymentStatusEnumPaymentStatus = exports.V1SubscriptionStatusEnumSubscriptionStatus = exports.SubscriptionType = exports.IdentityType = exports.PaymentAttemptStatus = exports.CreationMode = exports.CollectionMethod = exports.InvoiceStatus = exports.RequestedFields = exports.UpdateAction = exports.ActionInitiator = exports.RevivePolicy = exports.PaymentTestMode = exports.WebhookIdentityType = exports.OrderMethod = exports.PaymentMode = exports.ExtendPolicyType = exports.ActionType = exports.SubscriptionStatusGroup = exports.SortOrder = exports.ItemCategory = exports.HistoryActionInitiator = exports.ResumeAt = exports.PauseAt = exports.PausePolicy = exports.PaymentStatus = exports.TaxableAddressType = exports.AdditionalFeeTrigger = exports.DurationUnit = exports.CollectionMethodEnumCollectionMethod = exports.SubscriptionStatusEnumSubscriptionStatus = void 0;
27
+ exports.listSubscriptionHistory = exports.initiatePaymentMethodSetup = exports.previewSubscriptionsCharges = exports.previewSubscriptionCharges = exports.listUpcomingCharges = exports.allowedActions = exports.extendSubscription = exports.getSubscriptionsStats = exports.markBillingCycleAsPaid = exports.markLatestInvoiceAsPaid = exports.turnOffSubscriptionAutoRenewal = exports.turnOnSubscriptionAutoRenewal = exports.countSubscriptions = exports.searchSubscriptions = exports.querySubscriptions = exports.resumeSubscription = exports.pauseSubscription = exports.cancelSubscription = void 0;
28
28
  const transform_error_1 = require("@wix/sdk-runtime/transform-error");
29
29
  const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
30
30
  const ambassadorWixBillingV1Subscription = __importStar(require("./billing-v1-subscription-subscriptions.http.js"));
@@ -142,52 +142,6 @@ var ItemCategory;
142
142
  ItemCategory["PHYSICAL"] = "PHYSICAL";
143
143
  ItemCategory["DIGITAL"] = "DIGITAL";
144
144
  })(ItemCategory || (exports.ItemCategory = ItemCategory = {}));
145
- var HistoryViewMode;
146
- (function (HistoryViewMode) {
147
- HistoryViewMode["UNKNOWN"] = "UNKNOWN";
148
- /** Comprehensive view including all history events. */
149
- HistoryViewMode["BACKOFFICE"] = "BACKOFFICE";
150
- /** User-centric view of the history. */
151
- HistoryViewMode["USER"] = "USER";
152
- })(HistoryViewMode || (exports.HistoryViewMode = HistoryViewMode = {}));
153
- var UpdateAction;
154
- (function (UpdateAction) {
155
- UpdateAction["NONE"] = "NONE";
156
- /** Update subscription immediately, please note proration for updates changing price are not yet supported */
157
- UpdateAction["IMMEDIATELY"] = "IMMEDIATELY";
158
- /** Request updates that will take affect only at the start of the next billing cycle. */
159
- UpdateAction["NEXT_BILLING_CYCLE"] = "NEXT_BILLING_CYCLE";
160
- /** Reset all pending updates */
161
- UpdateAction["RESET_PENDING_UPDATES"] = "RESET_PENDING_UPDATES";
162
- /** Request updates that will take affect only at a specific date. */
163
- UpdateAction["SPECIFIC_DATE"] = "SPECIFIC_DATE";
164
- })(UpdateAction || (exports.UpdateAction = UpdateAction = {}));
165
- var PaymentSettlementMethod;
166
- (function (PaymentSettlementMethod) {
167
- PaymentSettlementMethod["UNKNOWN"] = "UNKNOWN";
168
- /** System-defined payment settlement. */
169
- PaymentSettlementMethod["SYSTEM"] = "SYSTEM";
170
- /** Manually mark the payment as paid. */
171
- PaymentSettlementMethod["MARK_AS_PAID"] = "MARK_AS_PAID";
172
- /** Require the customer to pay immediately, by insert a new payment method. */
173
- PaymentSettlementMethod["CUSTOMER_PAY_NOW"] = "CUSTOMER_PAY_NOW";
174
- })(PaymentSettlementMethod || (exports.PaymentSettlementMethod = PaymentSettlementMethod = {}));
175
- var PaymentMode;
176
- (function (PaymentMode) {
177
- PaymentMode["NONE"] = "NONE";
178
- /** The latest invoice of the subscription will be charged. */
179
- PaymentMode["CHARGE"] = "CHARGE";
180
- /** An authorization invoice with zero amount will be created. */
181
- PaymentMode["AUTHORIZATION"] = "AUTHORIZATION";
182
- })(PaymentMode || (exports.PaymentMode = PaymentMode = {}));
183
- var WebhookIdentityType;
184
- (function (WebhookIdentityType) {
185
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
186
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
187
- WebhookIdentityType["MEMBER"] = "MEMBER";
188
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
189
- WebhookIdentityType["APP"] = "APP";
190
- })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
191
145
  var SortOrder;
192
146
  (function (SortOrder) {
193
147
  SortOrder["ASC"] = "ASC";
@@ -221,12 +175,40 @@ var ExtendPolicyType;
221
175
  ExtendPolicyType["PERIOD"] = "PERIOD";
222
176
  ExtendPolicyType["BILLING_CYCLE"] = "BILLING_CYCLE";
223
177
  })(ExtendPolicyType || (exports.ExtendPolicyType = ExtendPolicyType = {}));
178
+ var PaymentMode;
179
+ (function (PaymentMode) {
180
+ PaymentMode["NONE"] = "NONE";
181
+ /** The latest invoice of the subscription will be charged. */
182
+ PaymentMode["CHARGE"] = "CHARGE";
183
+ /** An authorization invoice with zero amount will be created. */
184
+ PaymentMode["AUTHORIZATION"] = "AUTHORIZATION";
185
+ })(PaymentMode || (exports.PaymentMode = PaymentMode = {}));
224
186
  var OrderMethod;
225
187
  (function (OrderMethod) {
226
188
  OrderMethod["UNKNOWN"] = "UNKNOWN";
227
189
  OrderMethod["MOTO"] = "MOTO";
228
190
  OrderMethod["NOT_MOTO"] = "NOT_MOTO";
229
191
  })(OrderMethod || (exports.OrderMethod = OrderMethod = {}));
192
+ var WebhookIdentityType;
193
+ (function (WebhookIdentityType) {
194
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
195
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
196
+ WebhookIdentityType["MEMBER"] = "MEMBER";
197
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
198
+ WebhookIdentityType["APP"] = "APP";
199
+ })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
200
+ var PaymentTestMode;
201
+ (function (PaymentTestMode) {
202
+ PaymentTestMode["REGULAR"] = "REGULAR";
203
+ PaymentTestMode["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
204
+ PaymentTestMode["FAIL_DECLINE"] = "FAIL_DECLINE";
205
+ PaymentTestMode["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
206
+ })(PaymentTestMode || (exports.PaymentTestMode = PaymentTestMode = {}));
207
+ var RevivePolicy;
208
+ (function (RevivePolicy) {
209
+ RevivePolicy["SIMPLE"] = "SIMPLE";
210
+ RevivePolicy["RESUME"] = "RESUME";
211
+ })(RevivePolicy || (exports.RevivePolicy = RevivePolicy = {}));
230
212
  var ActionInitiator;
231
213
  (function (ActionInitiator) {
232
214
  ActionInitiator["UNDEFINED"] = "UNDEFINED";
@@ -234,6 +216,18 @@ var ActionInitiator;
234
216
  ActionInitiator["CUSTOMER"] = "CUSTOMER";
235
217
  ActionInitiator["SYSTEM"] = "SYSTEM";
236
218
  })(ActionInitiator || (exports.ActionInitiator = ActionInitiator = {}));
219
+ var UpdateAction;
220
+ (function (UpdateAction) {
221
+ UpdateAction["NONE"] = "NONE";
222
+ /** Update subscription immediately, please note proration for updates changing price are not yet supported */
223
+ UpdateAction["IMMEDIATELY"] = "IMMEDIATELY";
224
+ /** Request updates that will take affect only at the start of the next billing cycle. */
225
+ UpdateAction["NEXT_BILLING_CYCLE"] = "NEXT_BILLING_CYCLE";
226
+ /** Reset all pending updates */
227
+ UpdateAction["RESET_PENDING_UPDATES"] = "RESET_PENDING_UPDATES";
228
+ /** Request updates that will take affect only at a specific date. */
229
+ UpdateAction["SPECIFIC_DATE"] = "SPECIFIC_DATE";
230
+ })(UpdateAction || (exports.UpdateAction = UpdateAction = {}));
237
231
  var RequestedFields;
238
232
  (function (RequestedFields) {
239
233
  RequestedFields["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
@@ -352,261 +346,24 @@ var Status;
352
346
  Status["ACTIVE"] = "ACTIVE";
353
347
  Status["ENDED"] = "ENDED";
354
348
  })(Status || (exports.Status = Status = {}));
355
- var PaymentTestMode;
356
- (function (PaymentTestMode) {
357
- PaymentTestMode["REGULAR"] = "REGULAR";
358
- PaymentTestMode["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
359
- PaymentTestMode["FAIL_DECLINE"] = "FAIL_DECLINE";
360
- PaymentTestMode["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
361
- })(PaymentTestMode || (exports.PaymentTestMode = PaymentTestMode = {}));
362
- var RevivePolicy;
363
- (function (RevivePolicy) {
364
- RevivePolicy["SIMPLE"] = "SIMPLE";
365
- RevivePolicy["RESUME"] = "RESUME";
366
- })(RevivePolicy || (exports.RevivePolicy = RevivePolicy = {}));
367
- /** @public
368
- * @documentationMaturity preview
369
- * @requiredField subscriptionId
370
- * @permissionId subscriptions.view
371
- * @permissionScope Manage Events
372
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
373
- * @applicableIdentity APP
374
- * @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionHistoryService.ListSubscriptionHistory
375
- */
376
- async function listSubscriptionHistory(subscriptionId, options) {
377
- // @ts-ignore
378
- const { httpClient, sideEffects } = arguments[2];
379
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
380
- subscriptionId: subscriptionId,
381
- mode: options?.mode,
382
- cursor: options?.cursor,
383
- });
384
- const reqOpts = ambassadorWixBillingV1Subscription.listSubscriptionHistory(payload);
385
- sideEffects?.onSiteCall?.();
386
- try {
387
- const result = await httpClient.request(reqOpts);
388
- sideEffects?.onSuccess?.(result);
389
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
390
- {
391
- transformFn: address_2.transformRESTAddressToSDKAddress,
392
- paths: [
393
- {
394
- path: 'historyEntries.event.created.subscription.billingSettings.billingAddress.address',
395
- },
396
- {
397
- path: 'historyEntries.event.created.subscription.shippingAddress.address',
398
- },
399
- {
400
- path: 'historyEntries.event.updated.current.billingSettings.billingAddress.address',
401
- },
402
- {
403
- path: 'historyEntries.event.updated.current.shippingAddress.address',
404
- },
405
- {
406
- path: 'historyEntries.event.updated.previous.billingSettings.billingAddress.address',
407
- },
408
- {
409
- path: 'historyEntries.event.updated.previous.shippingAddress.address',
410
- },
411
- {
412
- path: 'historyEntries.event.activated.subscription.billingSettings.billingAddress.address',
413
- },
414
- {
415
- path: 'historyEntries.event.activated.subscription.shippingAddress.address',
416
- },
417
- {
418
- path: 'historyEntries.event.ended.subscription.billingSettings.billingAddress.address',
419
- },
420
- {
421
- path: 'historyEntries.event.ended.subscription.shippingAddress.address',
422
- },
423
- {
424
- path: 'historyEntries.event.canceled.subscription.billingSettings.billingAddress.address',
425
- },
426
- {
427
- path: 'historyEntries.event.canceled.subscription.shippingAddress.address',
428
- },
429
- {
430
- path: 'historyEntries.event.paused.subscription.billingSettings.billingAddress.address',
431
- },
432
- {
433
- path: 'historyEntries.event.paused.subscription.shippingAddress.address',
434
- },
435
- {
436
- path: 'historyEntries.event.resumed.subscription.billingSettings.billingAddress.address',
437
- },
438
- {
439
- path: 'historyEntries.event.resumed.subscription.shippingAddress.address',
440
- },
441
- {
442
- path: 'historyEntries.event.pauseRequested.subscription.billingSettings.billingAddress.address',
443
- },
444
- {
445
- path: 'historyEntries.event.pauseRequested.subscription.shippingAddress.address',
446
- },
447
- {
448
- path: 'historyEntries.event.resumeRequested.subscription.billingSettings.billingAddress.address',
449
- },
450
- {
451
- path: 'historyEntries.event.resumeRequested.subscription.shippingAddress.address',
452
- },
453
- {
454
- path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingSettings.billingAddress.address',
455
- },
456
- {
457
- path: 'historyEntries.event.scheduledPauseCanceled.subscription.shippingAddress.address',
458
- },
459
- {
460
- path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingSettings.billingAddress.address',
461
- },
462
- {
463
- path: 'historyEntries.event.scheduledResumeCanceled.subscription.shippingAddress.address',
464
- },
465
- {
466
- path: 'historyEntries.event.billingCycleStarted.subscription.billingSettings.billingAddress.address',
467
- },
468
- {
469
- path: 'historyEntries.event.billingCycleStarted.subscription.shippingAddress.address',
470
- },
471
- {
472
- path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingSettings.billingAddress.address',
473
- },
474
- {
475
- path: 'historyEntries.event.autoRenewalTurnedOn.subscription.shippingAddress.address',
476
- },
477
- {
478
- path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingSettings.billingAddress.address',
479
- },
480
- {
481
- path: 'historyEntries.event.autoRenewalTurnedOff.subscription.shippingAddress.address',
482
- },
483
- {
484
- path: 'historyEntries.event.cycleReadyToPay.subscription.billingSettings.billingAddress.address',
485
- },
486
- {
487
- path: 'historyEntries.event.cycleReadyToPay.subscription.shippingAddress.address',
488
- },
489
- {
490
- path: 'historyEntries.event.extended.subscription.billingSettings.billingAddress.address',
491
- },
492
- {
493
- path: 'historyEntries.event.extended.subscription.shippingAddress.address',
494
- },
495
- {
496
- path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingSettings.billingAddress.address',
497
- },
498
- {
499
- path: 'historyEntries.event.initialPurchaseCompleted.subscription.shippingAddress.address',
500
- },
501
- {
502
- path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingSettings.billingAddress.address',
503
- },
504
- {
505
- path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.shippingAddress.address',
506
- },
507
- {
508
- path: 'historyEntries.event.revived.subscription.billingSettings.billingAddress.address',
509
- },
510
- {
511
- path: 'historyEntries.event.revived.subscription.shippingAddress.address',
512
- },
513
- {
514
- path: 'historyEntries.event.billingDateUpdated.subscription.billingSettings.billingAddress.address',
515
- },
516
- {
517
- path: 'historyEntries.event.billingDateUpdated.subscription.shippingAddress.address',
518
- },
519
- {
520
- path: 'historyEntries.event.futureUpdatesRequested.subscription.billingSettings.billingAddress.address',
521
- },
522
- {
523
- path: 'historyEntries.event.futureUpdatesRequested.subscription.shippingAddress.address',
524
- },
525
- {
526
- path: 'historyEntries.event.updatesApplied.subscription.billingSettings.billingAddress.address',
527
- },
528
- {
529
- path: 'historyEntries.event.updatesApplied.subscription.shippingAddress.address',
530
- },
531
- {
532
- path: 'historyEntries.event.resetPendingUpdates.subscription.billingSettings.billingAddress.address',
533
- },
534
- {
535
- path: 'historyEntries.event.resetPendingUpdates.subscription.shippingAddress.address',
536
- },
537
- {
538
- path: 'historyEntries.event.gracePeriodStarted.subscription.billingSettings.billingAddress.address',
539
- },
540
- {
541
- path: 'historyEntries.event.gracePeriodStarted.subscription.shippingAddress.address',
542
- },
543
- {
544
- path: 'historyEntries.event.gracePeriodEnded.subscription.billingSettings.billingAddress.address',
545
- },
546
- {
547
- path: 'historyEntries.event.gracePeriodEnded.subscription.shippingAddress.address',
548
- },
549
- {
550
- path: 'historyEntries.event.paymentMethodUpdated.subscription.billingSettings.billingAddress.address',
551
- },
552
- {
553
- path: 'historyEntries.event.paymentMethodUpdated.subscription.shippingAddress.address',
554
- },
555
- {
556
- path: 'historyEntries.event.collectionMethodUpdated.subscription.billingSettings.billingAddress.address',
557
- },
558
- {
559
- path: 'historyEntries.event.collectionMethodUpdated.subscription.shippingAddress.address',
560
- },
561
- {
562
- path: 'historyEntries.event.freeTrailStarted.subscription.billingSettings.billingAddress.address',
563
- },
564
- {
565
- path: 'historyEntries.event.freeTrailStarted.subscription.shippingAddress.address',
566
- },
567
- {
568
- path: 'historyEntries.event.freeTrailEnded.subscription.billingSettings.billingAddress.address',
569
- },
570
- {
571
- path: 'historyEntries.event.freeTrailEnded.subscription.shippingAddress.address',
572
- },
573
- {
574
- path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingSettings.billingAddress.address',
575
- },
576
- {
577
- path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.shippingAddress.address',
578
- },
579
- {
580
- path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingSettings.billingAddress.address',
581
- },
582
- {
583
- path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.shippingAddress.address',
584
- },
585
- {
586
- path: 'historyEntries.event.subscriptionBoAction.subscription.billingSettings.billingAddress.address',
587
- },
588
- {
589
- path: 'historyEntries.event.subscriptionBoAction.subscription.shippingAddress.address',
590
- },
591
- ],
592
- },
593
- ]));
594
- }
595
- catch (err) {
596
- const transformedError = (0, transform_error_1.transformError)(err, {
597
- spreadPathsToArguments: {},
598
- explicitPathsToArguments: {
599
- subscriptionId: '$[0]',
600
- mode: '$[1].mode',
601
- cursor: '$[1].cursor',
602
- },
603
- singleArgumentUnchanged: false,
604
- }, ['subscriptionId', 'options']);
605
- sideEffects?.onError?.(err);
606
- throw transformedError;
607
- }
608
- }
609
- exports.listSubscriptionHistory = listSubscriptionHistory;
349
+ var HistoryViewMode;
350
+ (function (HistoryViewMode) {
351
+ HistoryViewMode["UNKNOWN"] = "UNKNOWN";
352
+ /** Comprehensive view including all history events. */
353
+ HistoryViewMode["BACKOFFICE"] = "BACKOFFICE";
354
+ /** User-centric view of the history. */
355
+ HistoryViewMode["USER"] = "USER";
356
+ })(HistoryViewMode || (exports.HistoryViewMode = HistoryViewMode = {}));
357
+ var PaymentSettlementMethod;
358
+ (function (PaymentSettlementMethod) {
359
+ PaymentSettlementMethod["UNKNOWN"] = "UNKNOWN";
360
+ /** System-defined payment settlement. */
361
+ PaymentSettlementMethod["SYSTEM"] = "SYSTEM";
362
+ /** Manually mark the payment as paid. */
363
+ PaymentSettlementMethod["MARK_AS_PAID"] = "MARK_AS_PAID";
364
+ /** Require the customer to pay immediately, by insert a new payment method. */
365
+ PaymentSettlementMethod["CUSTOMER_PAY_NOW"] = "CUSTOMER_PAY_NOW";
366
+ })(PaymentSettlementMethod || (exports.PaymentSettlementMethod = PaymentSettlementMethod = {}));
610
367
  /**
611
368
  * Identity must be a site member and customer subscription belongs to
612
369
  * @public
@@ -954,36 +711,82 @@ exports.customerListUpcomingCharges = customerListUpcomingCharges;
954
711
  * @requiredField _id
955
712
  * @fqn com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.InitiatePaymentMethodSetup
956
713
  */
957
- async function customerInitiatePaymentMethodSetup(_id, options) {
714
+ async function customerInitiatePaymentMethodSetup(_id, options) {
715
+ // @ts-ignore
716
+ const { httpClient, sideEffects } = arguments[2];
717
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
718
+ id: _id,
719
+ paymentMode: options?.paymentMode,
720
+ paymentSettings: options?.paymentSettings,
721
+ });
722
+ const reqOpts = ambassadorWixBillingV1Subscription.customerInitiatePaymentMethodSetup(payload);
723
+ sideEffects?.onSiteCall?.();
724
+ try {
725
+ const result = await httpClient.request(reqOpts);
726
+ sideEffects?.onSuccess?.(result);
727
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
728
+ }
729
+ catch (err) {
730
+ const transformedError = (0, transform_error_1.transformError)(err, {
731
+ spreadPathsToArguments: {},
732
+ explicitPathsToArguments: {
733
+ id: '$[0]',
734
+ paymentMode: '$[1].paymentMode',
735
+ paymentSettings: '$[1].paymentSettings',
736
+ },
737
+ singleArgumentUnchanged: false,
738
+ }, ['_id', 'options']);
739
+ sideEffects?.onError?.(err);
740
+ throw transformedError;
741
+ }
742
+ }
743
+ exports.customerInitiatePaymentMethodSetup = customerInitiatePaymentMethodSetup;
744
+ /**
745
+ * This used only for automation and permitted tenants (QA & testing)
746
+ * @public
747
+ * @documentationMaturity preview
748
+ * @requiredField options.tenantId
749
+ * @requiredField subscriptionId
750
+ * @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle
751
+ */
752
+ async function payCycle(subscriptionId, options) {
958
753
  // @ts-ignore
959
754
  const { httpClient, sideEffects } = arguments[2];
960
755
  const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
961
- id: _id,
962
- paymentMode: options?.paymentMode,
963
- paymentSettings: options?.paymentSettings,
756
+ subscriptionId: subscriptionId,
757
+ paymentTestMode: options?.paymentTestMode,
758
+ tenantId: options?.tenantId,
964
759
  });
965
- const reqOpts = ambassadorWixBillingV1Subscription.customerInitiatePaymentMethodSetup(payload);
760
+ const reqOpts = ambassadorWixBillingV1Subscription.payCycle(payload);
966
761
  sideEffects?.onSiteCall?.();
967
762
  try {
968
763
  const result = await httpClient.request(reqOpts);
969
764
  sideEffects?.onSuccess?.(result);
970
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
765
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
766
+ {
767
+ transformFn: address_2.transformRESTAddressToSDKAddress,
768
+ paths: [
769
+ { path: 'subscription.billingSettings.billingAddress.address' },
770
+ { path: 'subscription.shippingAddress.address' },
771
+ ],
772
+ },
773
+ ]));
971
774
  }
972
775
  catch (err) {
973
776
  const transformedError = (0, transform_error_1.transformError)(err, {
974
777
  spreadPathsToArguments: {},
975
778
  explicitPathsToArguments: {
976
- id: '$[0]',
977
- paymentMode: '$[1].paymentMode',
978
- paymentSettings: '$[1].paymentSettings',
779
+ subscriptionId: '$[0]',
780
+ paymentTestMode: '$[1].paymentTestMode',
781
+ tenantId: '$[1].tenantId',
979
782
  },
980
783
  singleArgumentUnchanged: false,
981
- }, ['_id', 'options']);
784
+ }, ['subscriptionId', 'options']);
982
785
  sideEffects?.onError?.(err);
983
786
  throw transformedError;
984
787
  }
985
788
  }
986
- exports.customerInitiatePaymentMethodSetup = customerInitiatePaymentMethodSetup;
789
+ exports.payCycle = payCycle;
987
790
  /**
988
791
  * Returns a single subscription by its id
989
792
  * @public
@@ -1571,7 +1374,7 @@ async function markLatestInvoiceAsPaid(subscriptionId) {
1571
1374
  }
1572
1375
  exports.markLatestInvoiceAsPaid = markLatestInvoiceAsPaid;
1573
1376
  /**
1574
- * Marks the invoice associated with the subscription in the specified cycle as paid.
1377
+ * Marks the invoice associated with given subscription cycle as paid for the following scenarios:
1575
1378
  * If `paid_cycle` is left empty, the most recent invoice will be marked as paid.
1576
1379
  * If the invoice contains items other than subscription items, an error will be thrown.
1577
1380
  *
@@ -1591,16 +1394,16 @@ exports.markLatestInvoiceAsPaid = markLatestInvoiceAsPaid;
1591
1394
  * @permissionScope Manage Orders
1592
1395
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
1593
1396
  * @applicableIdentity APP
1594
- * @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkInvoiceAsPaid
1397
+ * @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkBillingCycleAsPaid
1595
1398
  */
1596
- async function markInvoiceAsPaid(subscriptionId, options) {
1399
+ async function markBillingCycleAsPaid(subscriptionId, options) {
1597
1400
  // @ts-ignore
1598
1401
  const { httpClient, sideEffects } = arguments[2];
1599
1402
  const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
1600
1403
  subscriptionId: subscriptionId,
1601
1404
  paidCycle: options?.paidCycle,
1602
1405
  });
1603
- const reqOpts = ambassadorWixBillingV1Subscription.markInvoiceAsPaid(payload);
1406
+ const reqOpts = ambassadorWixBillingV1Subscription.markBillingCycleAsPaid(payload);
1604
1407
  sideEffects?.onSiteCall?.();
1605
1408
  try {
1606
1409
  const result = await httpClient.request(reqOpts);
@@ -1628,7 +1431,7 @@ async function markInvoiceAsPaid(subscriptionId, options) {
1628
1431
  throw transformedError;
1629
1432
  }
1630
1433
  }
1631
- exports.markInvoiceAsPaid = markInvoiceAsPaid;
1434
+ exports.markBillingCycleAsPaid = markBillingCycleAsPaid;
1632
1435
  /**
1633
1436
  * Returns number of subscriptions in each state.
1634
1437
  * @public
@@ -1668,6 +1471,7 @@ exports.getSubscriptionsStats = getSubscriptionsStats;
1668
1471
  * @documentationMaturity preview
1669
1472
  * @requiredField _id
1670
1473
  * @requiredField actionContext
1474
+ * @requiredField extendPolicy
1671
1475
  * @permissionId subscriptions.manage
1672
1476
  * @permissionScope Manage Orders
1673
1477
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
@@ -1795,11 +1599,10 @@ exports.listUpcomingCharges = listUpcomingCharges;
1795
1599
  * Returns all the charges applicable to a subscription based on the provided subscription information.
1796
1600
  * @public
1797
1601
  * @documentationMaturity preview
1798
- * @requiredField options
1799
- * @requiredField options.subscriptionInfo
1800
- * @requiredField options.subscriptionInfo.billingSettings
1801
- * @requiredField options.subscriptionInfo.items
1802
- * @requiredField options.subscriptionInfo.items.pricingModel
1602
+ * @requiredField subscription.subscriptionInfo
1603
+ * @requiredField subscription.subscriptionInfo.billingSettings
1604
+ * @requiredField subscription.subscriptionInfo.items
1605
+ * @requiredField subscription.subscriptionInfo.items.pricingModel
1803
1606
  * @permissionId subscriptions.view
1804
1607
  * @permissionScope Manage Events
1805
1608
  * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
@@ -1846,11 +1649,12 @@ exports.previewSubscriptionCharges = previewSubscriptionCharges;
1846
1649
  * @public
1847
1650
  * @documentationMaturity preview
1848
1651
  * @requiredField options.subscriptionsBillingDetails.billingSettings
1849
- * @requiredField options.subscriptionsBillingDetails.billingSettings.shippingCharges.tax
1652
+ * @requiredField options.subscriptionsBillingDetails.billingSettings.shippingCharges.tax.value
1850
1653
  * @requiredField options.subscriptionsBillingDetails.externalId
1851
1654
  * @requiredField options.subscriptionsBillingDetails.items
1852
1655
  * @requiredField options.subscriptionsBillingDetails.items.pricingModel
1853
- * @requiredField options.subscriptionsBillingDetails.items.tax
1656
+ * @requiredField options.subscriptionsBillingDetails.items.pricingModel.model
1657
+ * @requiredField options.subscriptionsBillingDetails.items.tax.value
1854
1658
  * @permissionId subscriptions.view
1855
1659
  * @permissionScope Manage Events
1856
1660
  * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
@@ -1936,23 +1740,24 @@ async function initiatePaymentMethodSetup(_id, options) {
1936
1740
  }
1937
1741
  }
1938
1742
  exports.initiatePaymentMethodSetup = initiatePaymentMethodSetup;
1939
- /**
1940
- * This used only for automation and permitted tenants (QA & testing)
1941
- * @public
1743
+ /** @public
1942
1744
  * @documentationMaturity preview
1943
- * @requiredField options.tenantId
1944
1745
  * @requiredField subscriptionId
1945
- * @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle
1746
+ * @permissionId subscriptions.view
1747
+ * @permissionScope Manage Events
1748
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1749
+ * @applicableIdentity APP
1750
+ * @fqn com.wixpress.billing.subscriptions.api.v1.SubscriptionHistoryService.ListSubscriptionHistory
1946
1751
  */
1947
- async function payCycle(subscriptionId, options) {
1752
+ async function listSubscriptionHistory(subscriptionId, options) {
1948
1753
  // @ts-ignore
1949
1754
  const { httpClient, sideEffects } = arguments[2];
1950
1755
  const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
1951
1756
  subscriptionId: subscriptionId,
1952
- paymentTestMode: options?.paymentTestMode,
1953
- tenantId: options?.tenantId,
1757
+ mode: options?.mode,
1758
+ cursor: options?.cursor,
1954
1759
  });
1955
- const reqOpts = ambassadorWixBillingV1Subscription.payCycle(payload);
1760
+ const reqOpts = ambassadorWixBillingV1Subscription.listSubscriptionHistory(payload);
1956
1761
  sideEffects?.onSiteCall?.();
1957
1762
  try {
1958
1763
  const result = await httpClient.request(reqOpts);
@@ -1961,8 +1766,204 @@ async function payCycle(subscriptionId, options) {
1961
1766
  {
1962
1767
  transformFn: address_2.transformRESTAddressToSDKAddress,
1963
1768
  paths: [
1964
- { path: 'subscription.billingSettings.billingAddress.address' },
1965
- { path: 'subscription.shippingAddress.address' },
1769
+ {
1770
+ path: 'historyEntries.event.created.subscription.billingSettings.billingAddress.address',
1771
+ },
1772
+ {
1773
+ path: 'historyEntries.event.created.subscription.shippingAddress.address',
1774
+ },
1775
+ {
1776
+ path: 'historyEntries.event.updated.current.billingSettings.billingAddress.address',
1777
+ },
1778
+ {
1779
+ path: 'historyEntries.event.updated.current.shippingAddress.address',
1780
+ },
1781
+ {
1782
+ path: 'historyEntries.event.updated.previous.billingSettings.billingAddress.address',
1783
+ },
1784
+ {
1785
+ path: 'historyEntries.event.updated.previous.shippingAddress.address',
1786
+ },
1787
+ {
1788
+ path: 'historyEntries.event.activated.subscription.billingSettings.billingAddress.address',
1789
+ },
1790
+ {
1791
+ path: 'historyEntries.event.activated.subscription.shippingAddress.address',
1792
+ },
1793
+ {
1794
+ path: 'historyEntries.event.ended.subscription.billingSettings.billingAddress.address',
1795
+ },
1796
+ {
1797
+ path: 'historyEntries.event.ended.subscription.shippingAddress.address',
1798
+ },
1799
+ {
1800
+ path: 'historyEntries.event.canceled.subscription.billingSettings.billingAddress.address',
1801
+ },
1802
+ {
1803
+ path: 'historyEntries.event.canceled.subscription.shippingAddress.address',
1804
+ },
1805
+ {
1806
+ path: 'historyEntries.event.paused.subscription.billingSettings.billingAddress.address',
1807
+ },
1808
+ {
1809
+ path: 'historyEntries.event.paused.subscription.shippingAddress.address',
1810
+ },
1811
+ {
1812
+ path: 'historyEntries.event.resumed.subscription.billingSettings.billingAddress.address',
1813
+ },
1814
+ {
1815
+ path: 'historyEntries.event.resumed.subscription.shippingAddress.address',
1816
+ },
1817
+ {
1818
+ path: 'historyEntries.event.pauseRequested.subscription.billingSettings.billingAddress.address',
1819
+ },
1820
+ {
1821
+ path: 'historyEntries.event.pauseRequested.subscription.shippingAddress.address',
1822
+ },
1823
+ {
1824
+ path: 'historyEntries.event.resumeRequested.subscription.billingSettings.billingAddress.address',
1825
+ },
1826
+ {
1827
+ path: 'historyEntries.event.resumeRequested.subscription.shippingAddress.address',
1828
+ },
1829
+ {
1830
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingSettings.billingAddress.address',
1831
+ },
1832
+ {
1833
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.shippingAddress.address',
1834
+ },
1835
+ {
1836
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingSettings.billingAddress.address',
1837
+ },
1838
+ {
1839
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.shippingAddress.address',
1840
+ },
1841
+ {
1842
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingSettings.billingAddress.address',
1843
+ },
1844
+ {
1845
+ path: 'historyEntries.event.billingCycleStarted.subscription.shippingAddress.address',
1846
+ },
1847
+ {
1848
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingSettings.billingAddress.address',
1849
+ },
1850
+ {
1851
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.shippingAddress.address',
1852
+ },
1853
+ {
1854
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingSettings.billingAddress.address',
1855
+ },
1856
+ {
1857
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.shippingAddress.address',
1858
+ },
1859
+ {
1860
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingSettings.billingAddress.address',
1861
+ },
1862
+ {
1863
+ path: 'historyEntries.event.cycleReadyToPay.subscription.shippingAddress.address',
1864
+ },
1865
+ {
1866
+ path: 'historyEntries.event.extended.subscription.billingSettings.billingAddress.address',
1867
+ },
1868
+ {
1869
+ path: 'historyEntries.event.extended.subscription.shippingAddress.address',
1870
+ },
1871
+ {
1872
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingSettings.billingAddress.address',
1873
+ },
1874
+ {
1875
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.shippingAddress.address',
1876
+ },
1877
+ {
1878
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingSettings.billingAddress.address',
1879
+ },
1880
+ {
1881
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.shippingAddress.address',
1882
+ },
1883
+ {
1884
+ path: 'historyEntries.event.revived.subscription.billingSettings.billingAddress.address',
1885
+ },
1886
+ {
1887
+ path: 'historyEntries.event.revived.subscription.shippingAddress.address',
1888
+ },
1889
+ {
1890
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingSettings.billingAddress.address',
1891
+ },
1892
+ {
1893
+ path: 'historyEntries.event.billingDateUpdated.subscription.shippingAddress.address',
1894
+ },
1895
+ {
1896
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingSettings.billingAddress.address',
1897
+ },
1898
+ {
1899
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.shippingAddress.address',
1900
+ },
1901
+ {
1902
+ path: 'historyEntries.event.updatesApplied.subscription.billingSettings.billingAddress.address',
1903
+ },
1904
+ {
1905
+ path: 'historyEntries.event.updatesApplied.subscription.shippingAddress.address',
1906
+ },
1907
+ {
1908
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingSettings.billingAddress.address',
1909
+ },
1910
+ {
1911
+ path: 'historyEntries.event.resetPendingUpdates.subscription.shippingAddress.address',
1912
+ },
1913
+ {
1914
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingSettings.billingAddress.address',
1915
+ },
1916
+ {
1917
+ path: 'historyEntries.event.gracePeriodStarted.subscription.shippingAddress.address',
1918
+ },
1919
+ {
1920
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingSettings.billingAddress.address',
1921
+ },
1922
+ {
1923
+ path: 'historyEntries.event.gracePeriodEnded.subscription.shippingAddress.address',
1924
+ },
1925
+ {
1926
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingSettings.billingAddress.address',
1927
+ },
1928
+ {
1929
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.shippingAddress.address',
1930
+ },
1931
+ {
1932
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingSettings.billingAddress.address',
1933
+ },
1934
+ {
1935
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.shippingAddress.address',
1936
+ },
1937
+ {
1938
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingSettings.billingAddress.address',
1939
+ },
1940
+ {
1941
+ path: 'historyEntries.event.freeTrailStarted.subscription.shippingAddress.address',
1942
+ },
1943
+ {
1944
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingSettings.billingAddress.address',
1945
+ },
1946
+ {
1947
+ path: 'historyEntries.event.freeTrailEnded.subscription.shippingAddress.address',
1948
+ },
1949
+ {
1950
+ path: 'historyEntries.event.billingCyclePaid.subscription.billingSettings.billingAddress.address',
1951
+ },
1952
+ {
1953
+ path: 'historyEntries.event.billingCyclePaid.subscription.shippingAddress.address',
1954
+ },
1955
+ {
1956
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingSettings.billingAddress.address',
1957
+ },
1958
+ {
1959
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.shippingAddress.address',
1960
+ },
1961
+ {
1962
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingSettings.billingAddress.address',
1963
+ },
1964
+ {
1965
+ path: 'historyEntries.event.subscriptionBoAction.subscription.shippingAddress.address',
1966
+ },
1966
1967
  ],
1967
1968
  },
1968
1969
  ]));
@@ -1972,8 +1973,8 @@ async function payCycle(subscriptionId, options) {
1972
1973
  spreadPathsToArguments: {},
1973
1974
  explicitPathsToArguments: {
1974
1975
  subscriptionId: '$[0]',
1975
- paymentTestMode: '$[1].paymentTestMode',
1976
- tenantId: '$[1].tenantId',
1976
+ mode: '$[1].mode',
1977
+ cursor: '$[1].cursor',
1977
1978
  },
1978
1979
  singleArgumentUnchanged: false,
1979
1980
  }, ['subscriptionId', 'options']);
@@ -1981,5 +1982,5 @@ async function payCycle(subscriptionId, options) {
1981
1982
  throw transformedError;
1982
1983
  }
1983
1984
  }
1984
- exports.payCycle = payCycle;
1985
+ exports.listSubscriptionHistory = listSubscriptionHistory;
1985
1986
  //# sourceMappingURL=billing-v1-subscription-subscriptions.universal.js.map