@wix/auto_sdk_subscription_subscriptions 1.0.47 → 1.0.49

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 (37) hide show
  1. package/build/cjs/index.d.ts +3 -11
  2. package/build/cjs/index.js +402 -142
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2020 -1771
  5. package/build/cjs/index.typings.js +338 -97
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1991 -1762
  8. package/build/cjs/meta.js +291 -92
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +3 -11
  11. package/build/es/index.mjs +396 -141
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +2020 -1771
  14. package/build/es/index.typings.mjs +332 -96
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +1991 -1762
  17. package/build/es/meta.mjs +285 -91
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +28 -10
  20. package/build/internal/cjs/index.typings.d.ts +1713 -1383
  21. package/build/internal/cjs/meta.d.ts +2124 -1783
  22. package/build/internal/es/index.d.mts +28 -10
  23. package/build/internal/es/index.typings.d.mts +1713 -1383
  24. package/build/internal/es/meta.d.mts +2124 -1783
  25. package/package.json +4 -4
  26. package/build/internal/cjs/index.js +0 -6659
  27. package/build/internal/cjs/index.js.map +0 -1
  28. package/build/internal/cjs/index.typings.js +0 -5629
  29. package/build/internal/cjs/index.typings.js.map +0 -1
  30. package/build/internal/cjs/meta.js +0 -4712
  31. package/build/internal/cjs/meta.js.map +0 -1
  32. package/build/internal/es/index.mjs +0 -6543
  33. package/build/internal/es/index.mjs.map +0 -1
  34. package/build/internal/es/index.typings.mjs +0 -5526
  35. package/build/internal/es/index.typings.mjs.map +0 -1
  36. package/build/internal/es/meta.mjs +0 -4606
  37. package/build/internal/es/meta.mjs.map +0 -1
package/build/es/meta.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  // src/billing-v1-subscription-subscriptions.http.ts
2
2
  import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
3
4
  import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
5
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
6
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
@@ -86,47 +87,6 @@ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts
86
87
  };
87
88
  return resolveUrl(Object.assign(opts, { domainToMappings }));
88
89
  }
89
- function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
90
- const domainToMappings = {
91
- "www._base_domain_": [
92
- {
93
- srcPath: "/_api/billing-subscriptions",
94
- destPath: ""
95
- }
96
- ],
97
- _: [
98
- {
99
- srcPath: "/_api/billing-subscriptions",
100
- destPath: ""
101
- }
102
- ],
103
- "*.dev.wix-code.com": [
104
- {
105
- srcPath: "/_api/billing-subscriptions",
106
- destPath: ""
107
- }
108
- ],
109
- "*.pub.wix-code.com": [
110
- {
111
- srcPath: "/_api/billing-subscriptions",
112
- destPath: ""
113
- }
114
- ],
115
- "manage._base_domain_": [
116
- {
117
- srcPath: "/_api/billing-subscriptions",
118
- destPath: ""
119
- }
120
- ],
121
- "payments.base44.com": [
122
- {
123
- srcPath: "/_api/billing-subscriptions",
124
- destPath: ""
125
- }
126
- ]
127
- };
128
- return resolveUrl(Object.assign(opts, { domainToMappings }));
129
- }
130
90
  function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
131
91
  const domainToMappings = {
132
92
  "www._base_domain_": [
@@ -427,6 +387,15 @@ function customerExtendSubscription(payload) {
427
387
  }
428
388
  function customerQuerySubscriptions(payload) {
429
389
  function __customerQuerySubscriptions({ host }) {
390
+ const serializedData = transformPaths(payload, [
391
+ {
392
+ transformFn: transformSDKFloatToRESTFloat,
393
+ paths: [
394
+ { path: "query.sort.origin.latitude" },
395
+ { path: "query.sort.origin.longitude" }
396
+ ]
397
+ }
398
+ ]);
430
399
  const metadata = {
431
400
  entityFqdn: "wix.billing.v1.subscription",
432
401
  method: "POST",
@@ -436,9 +405,13 @@ function customerQuerySubscriptions(payload) {
436
405
  optInTransformResponse: true
437
406
  },
438
407
  url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
439
- { protoPath: "/v1/customer_subscriptions/query", data: payload, host }
408
+ {
409
+ protoPath: "/v1/customer_subscriptions/query",
410
+ data: serializedData,
411
+ host
412
+ }
440
413
  ),
441
- data: payload,
414
+ data: serializedData,
442
415
  transformResponse: (payload2) => transformPaths(payload2, [
443
416
  {
444
417
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -942,19 +915,107 @@ function customerUpdateBillingDate(payload) {
942
915
  }
943
916
  return __customerUpdateBillingDate;
944
917
  }
945
- function payCycle(payload) {
946
- function __payCycle({ host }) {
918
+ function customerChangeSubscription(payload) {
919
+ function __customerChangeSubscription({ host }) {
920
+ const metadata = {
921
+ entityFqdn: "wix.billing.v1.subscription",
922
+ method: "POST",
923
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerChangeSubscription",
924
+ packageName: PACKAGE_NAME,
925
+ migrationOptions: {
926
+ optInTransformResponse: true
927
+ },
928
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
929
+ {
930
+ protoPath: "/v1/customer_subscriptions/{subscriptionId}/change",
931
+ data: payload,
932
+ host
933
+ }
934
+ ),
935
+ data: payload,
936
+ transformResponse: (payload2) => transformPaths(payload2, [
937
+ {
938
+ transformFn: transformRESTTimestampToSDKTimestamp,
939
+ paths: [
940
+ { path: "subscription.createdDate" },
941
+ { path: "subscription.updatedDate" },
942
+ { path: "subscription.startDate" },
943
+ { path: "subscription.endDate" },
944
+ { path: "subscription.billingStatus.nextBillingDate" },
945
+ { path: "subscription.billingStatus.previousBillingDate" },
946
+ {
947
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
948
+ },
949
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
950
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
951
+ {
952
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
953
+ },
954
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
955
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
956
+ { path: "subscription.pauseInfo.startDate" },
957
+ { path: "subscription.pauseInfo.resumeDate" },
958
+ { path: "subscription.cancellationInfo.cancellationDate" },
959
+ {
960
+ path: "subscription.specificDatePendingUpdateData.executionDate"
961
+ }
962
+ ]
963
+ }
964
+ ])
965
+ };
966
+ return metadata;
967
+ }
968
+ return __customerChangeSubscription;
969
+ }
970
+ function customerPreviewChangeSubscription(payload) {
971
+ function __customerPreviewChangeSubscription({ host }) {
947
972
  const metadata = {
948
973
  entityFqdn: "wix.billing.v1.subscription",
949
974
  method: "POST",
950
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle",
975
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPreviewChangeSubscription",
951
976
  packageName: PACKAGE_NAME,
952
977
  migrationOptions: {
953
978
  optInTransformResponse: true
954
979
  },
955
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(
980
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
956
981
  {
957
- protoPath: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
982
+ protoPath: "/v1/customer_subscriptions/{subscriptionId}/preview_change",
983
+ data: payload,
984
+ host
985
+ }
986
+ ),
987
+ data: payload,
988
+ transformResponse: (payload2) => transformPaths(payload2, [
989
+ {
990
+ transformFn: transformRESTTimestampToSDKTimestamp,
991
+ paths: [
992
+ { path: "preview.current.periodStart" },
993
+ { path: "preview.current.periodEnd" },
994
+ { path: "preview.proposed.periodStart" },
995
+ { path: "preview.proposed.periodEnd" },
996
+ { path: "preview.proration.newPeriodEnd" },
997
+ { path: "preview.renewalPreview.nextRenewalDate" }
998
+ ]
999
+ }
1000
+ ])
1001
+ };
1002
+ return metadata;
1003
+ }
1004
+ return __customerPreviewChangeSubscription;
1005
+ }
1006
+ function customerCancelPendingChange(payload) {
1007
+ function __customerCancelPendingChange({ host }) {
1008
+ const metadata = {
1009
+ entityFqdn: "wix.billing.v1.subscription",
1010
+ method: "POST",
1011
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelPendingChange",
1012
+ packageName: PACKAGE_NAME,
1013
+ migrationOptions: {
1014
+ optInTransformResponse: true
1015
+ },
1016
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
1017
+ {
1018
+ protoPath: "/v1/customer_subscriptions/{subscriptionId}/cancel_pending_change",
958
1019
  data: payload,
959
1020
  host
960
1021
  }
@@ -992,7 +1053,7 @@ function payCycle(payload) {
992
1053
  };
993
1054
  return metadata;
994
1055
  }
995
- return __payCycle;
1056
+ return __customerCancelPendingChange;
996
1057
  }
997
1058
  function getSubscription(payload) {
998
1059
  function __getSubscription({ host }) {
@@ -1367,6 +1428,15 @@ function resumeSubscription(payload) {
1367
1428
  }
1368
1429
  function querySubscriptions(payload) {
1369
1430
  function __querySubscriptions({ host }) {
1431
+ const serializedData = transformPaths(payload, [
1432
+ {
1433
+ transformFn: transformSDKFloatToRESTFloat,
1434
+ paths: [
1435
+ { path: "query.sort.origin.latitude" },
1436
+ { path: "query.sort.origin.longitude" }
1437
+ ]
1438
+ }
1439
+ ]);
1370
1440
  const metadata = {
1371
1441
  entityFqdn: "wix.billing.v1.subscription",
1372
1442
  method: "POST",
@@ -1377,10 +1447,10 @@ function querySubscriptions(payload) {
1377
1447
  },
1378
1448
  url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1379
1449
  protoPath: "/v1/subscriptions/query",
1380
- data: payload,
1450
+ data: serializedData,
1381
1451
  host
1382
1452
  }),
1383
- data: payload,
1453
+ data: serializedData,
1384
1454
  transformResponse: (payload2) => transformPaths(payload2, [
1385
1455
  {
1386
1456
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -1417,6 +1487,15 @@ function querySubscriptions(payload) {
1417
1487
  }
1418
1488
  function searchSubscriptions(payload) {
1419
1489
  function __searchSubscriptions({ host }) {
1490
+ const serializedData = transformPaths(payload, [
1491
+ {
1492
+ transformFn: transformSDKFloatToRESTFloat,
1493
+ paths: [
1494
+ { path: "sorting.sorting.origin.latitude" },
1495
+ { path: "sorting.sorting.origin.longitude" }
1496
+ ]
1497
+ }
1498
+ ]);
1420
1499
  const metadata = {
1421
1500
  entityFqdn: "wix.billing.v1.subscription",
1422
1501
  method: "POST",
@@ -1427,10 +1506,10 @@ function searchSubscriptions(payload) {
1427
1506
  },
1428
1507
  url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1429
1508
  protoPath: "/v1/subscriptions/search",
1430
- data: payload,
1509
+ data: serializedData,
1431
1510
  host
1432
1511
  }),
1433
- data: payload,
1512
+ data: serializedData,
1434
1513
  transformResponse: (payload2) => transformPaths(payload2, [
1435
1514
  {
1436
1515
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -3440,6 +3519,54 @@ function listSubscriptionHistory(payload) {
3440
3519
  {
3441
3520
  path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
3442
3521
  },
3522
+ {
3523
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.createdDate"
3524
+ },
3525
+ {
3526
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.updatedDate"
3527
+ },
3528
+ {
3529
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.startDate"
3530
+ },
3531
+ {
3532
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.endDate"
3533
+ },
3534
+ {
3535
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.nextBillingDate"
3536
+ },
3537
+ {
3538
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.previousBillingDate"
3539
+ },
3540
+ {
3541
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3542
+ },
3543
+ {
3544
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
3545
+ },
3546
+ {
3547
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
3548
+ },
3549
+ {
3550
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
3551
+ },
3552
+ {
3553
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
3554
+ },
3555
+ {
3556
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
3557
+ },
3558
+ {
3559
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.startDate"
3560
+ },
3561
+ {
3562
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.resumeDate"
3563
+ },
3564
+ {
3565
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.cancellationInfo.cancellationDate"
3566
+ },
3567
+ {
3568
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
3569
+ },
3443
3570
  {
3444
3571
  path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
3445
3572
  },
@@ -3587,6 +3714,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3587
3714
  return SortOrder2;
3588
3715
  })(SortOrder || {});
3589
3716
  var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
3717
+ SubscriptionStatusGroup2["UNKNOWN_STATUS_GROUP"] = "UNKNOWN_STATUS_GROUP";
3590
3718
  SubscriptionStatusGroup2["ALL"] = "ALL";
3591
3719
  SubscriptionStatusGroup2["LIVE"] = "LIVE";
3592
3720
  return SubscriptionStatusGroup2;
@@ -3608,6 +3736,7 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
3608
3736
  ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
3609
3737
  ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
3610
3738
  ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
3739
+ ActionType2["CHANGE_SUBSCRIPTION"] = "CHANGE_SUBSCRIPTION";
3611
3740
  return ActionType2;
3612
3741
  })(ActionType || {});
3613
3742
  var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
@@ -3627,6 +3756,20 @@ var OrderMethod = /* @__PURE__ */ ((OrderMethod2) => {
3627
3756
  OrderMethod2["NOT_MOTO"] = "NOT_MOTO";
3628
3757
  return OrderMethod2;
3629
3758
  })(OrderMethod || {});
3759
+ var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
3760
+ ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
3761
+ ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
3762
+ ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
3763
+ return ChangeEffectiveTime2;
3764
+ })(ChangeEffectiveTime || {});
3765
+ var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
3766
+ ProrationAction2["UNKNOWN"] = "UNKNOWN";
3767
+ ProrationAction2["CHARGE"] = "CHARGE";
3768
+ ProrationAction2["REFUND"] = "REFUND";
3769
+ ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
3770
+ ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
3771
+ return ProrationAction2;
3772
+ })(ProrationAction || {});
3630
3773
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3631
3774
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3632
3775
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -3635,25 +3778,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3635
3778
  WebhookIdentityType2["APP"] = "APP";
3636
3779
  return WebhookIdentityType2;
3637
3780
  })(WebhookIdentityType || {});
3638
- var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
3639
- PaymentTestMode2["REGULAR"] = "REGULAR";
3640
- PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
3641
- PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
3642
- PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
3643
- return PaymentTestMode2;
3644
- })(PaymentTestMode || {});
3645
- var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
3646
- RevivePolicy2["SIMPLE"] = "SIMPLE";
3647
- RevivePolicy2["RESUME"] = "RESUME";
3648
- return RevivePolicy2;
3649
- })(RevivePolicy || {});
3650
- var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
3651
- ActionInitiator2["UNDEFINED"] = "UNDEFINED";
3652
- ActionInitiator2["BUSINESS"] = "BUSINESS";
3653
- ActionInitiator2["CUSTOMER"] = "CUSTOMER";
3654
- ActionInitiator2["SYSTEM"] = "SYSTEM";
3655
- return ActionInitiator2;
3656
- })(ActionInitiator || {});
3657
3781
  var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
3658
3782
  UpdateAction2["NONE"] = "NONE";
3659
3783
  UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
@@ -3662,6 +3786,19 @@ var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
3662
3786
  UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
3663
3787
  return UpdateAction2;
3664
3788
  })(UpdateAction || {});
3789
+ var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
3790
+ ActionInitiator2["UNDEFINED"] = "UNDEFINED";
3791
+ ActionInitiator2["BUSINESS"] = "BUSINESS";
3792
+ ActionInitiator2["CUSTOMER"] = "CUSTOMER";
3793
+ ActionInitiator2["SYSTEM"] = "SYSTEM";
3794
+ return ActionInitiator2;
3795
+ })(ActionInitiator || {});
3796
+ var MissingPreviousBillingDateResumeStrategy = /* @__PURE__ */ ((MissingPreviousBillingDateResumeStrategy2) => {
3797
+ MissingPreviousBillingDateResumeStrategy2["UNKNOWN"] = "UNKNOWN";
3798
+ MissingPreviousBillingDateResumeStrategy2["START_BILLING_IMMEDIATELY"] = "START_BILLING_IMMEDIATELY";
3799
+ MissingPreviousBillingDateResumeStrategy2["START_BILLING_AFTER_ONE_FULL_CYCLE"] = "START_BILLING_AFTER_ONE_FULL_CYCLE";
3800
+ return MissingPreviousBillingDateResumeStrategy2;
3801
+ })(MissingPreviousBillingDateResumeStrategy || {});
3665
3802
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
3666
3803
  RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
3667
3804
  return RequestedFields2;
@@ -3720,28 +3857,30 @@ var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
3720
3857
  RefundReason2["OTHER"] = "OTHER";
3721
3858
  return RefundReason2;
3722
3859
  })(RefundReason || {});
3723
- var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
3724
- ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
3725
- ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
3726
- ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
3727
- return ChangeEffectiveTime2;
3728
- })(ChangeEffectiveTime || {});
3860
+ var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
3861
+ ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
3862
+ ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
3863
+ ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
3864
+ ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
3865
+ ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
3866
+ return ProrationBehaviorEnumProrationBehavior2;
3867
+ })(ProrationBehaviorEnumProrationBehavior || {});
3868
+ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
3869
+ ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
3870
+ ChangeType2["UPGRADE"] = "UPGRADE";
3871
+ ChangeType2["DOWNGRADE"] = "DOWNGRADE";
3872
+ ChangeType2["CYCLE_CHANGE"] = "CYCLE_CHANGE";
3873
+ ChangeType2["QUANTITY_CHANGE"] = "QUANTITY_CHANGE";
3874
+ return ChangeType2;
3875
+ })(ChangeType || {});
3729
3876
  var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
3730
- ProrationBehavior2["UNKNOWN"] = "UNKNOWN";
3877
+ ProrationBehavior2["PRORATION_BEHAVIOR_UNKNOWN"] = "PRORATION_BEHAVIOR_UNKNOWN";
3731
3878
  ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
3732
3879
  ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
3733
3880
  ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
3734
3881
  ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
3735
3882
  return ProrationBehavior2;
3736
3883
  })(ProrationBehavior || {});
3737
- var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
3738
- ProrationAction2["UNKNOWN"] = "UNKNOWN";
3739
- ProrationAction2["CHARGE"] = "CHARGE";
3740
- ProrationAction2["REFUND"] = "REFUND";
3741
- ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
3742
- ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
3743
- return ProrationAction2;
3744
- })(ProrationAction || {});
3745
3884
  var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
3746
3885
  IdentityType2["UNDEFINED"] = "UNDEFINED";
3747
3886
  IdentityType2["MEMBER"] = "MEMBER";
@@ -3796,6 +3935,18 @@ var Status = /* @__PURE__ */ ((Status2) => {
3796
3935
  Status2["ENDED"] = "ENDED";
3797
3936
  return Status2;
3798
3937
  })(Status || {});
3938
+ var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
3939
+ PaymentTestMode2["REGULAR"] = "REGULAR";
3940
+ PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
3941
+ PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
3942
+ PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
3943
+ return PaymentTestMode2;
3944
+ })(PaymentTestMode || {});
3945
+ var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
3946
+ RevivePolicy2["SIMPLE"] = "SIMPLE";
3947
+ RevivePolicy2["RESUME"] = "RESUME";
3948
+ return RevivePolicy2;
3949
+ })(RevivePolicy || {});
3799
3950
  var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
3800
3951
  HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
3801
3952
  HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
@@ -4107,9 +4258,47 @@ function customerUpdateBillingDate2() {
4107
4258
  __originalResponseType: null
4108
4259
  };
4109
4260
  }
4110
- function payCycle2() {
4261
+ function customerChangeSubscription2() {
4262
+ const payload = { subscriptionId: ":subscriptionId" };
4263
+ const getRequestOptions = customerChangeSubscription(payload);
4264
+ const getUrl = (context) => {
4265
+ const { url } = getRequestOptions(context);
4266
+ return url;
4267
+ };
4268
+ return {
4269
+ getUrl,
4270
+ httpMethod: "POST",
4271
+ path: "/v1/customer_subscriptions/{subscriptionId}/change",
4272
+ pathParams: { subscriptionId: "subscriptionId" },
4273
+ __requestType: null,
4274
+ __originalRequestType: null,
4275
+ __responseType: null,
4276
+ __originalResponseType: null
4277
+ };
4278
+ }
4279
+ function customerPreviewChangeSubscription2() {
4280
+ const payload = { subscriptionId: ":subscriptionId" };
4281
+ const getRequestOptions = customerPreviewChangeSubscription(
4282
+ payload
4283
+ );
4284
+ const getUrl = (context) => {
4285
+ const { url } = getRequestOptions(context);
4286
+ return url;
4287
+ };
4288
+ return {
4289
+ getUrl,
4290
+ httpMethod: "POST",
4291
+ path: "/v1/customer_subscriptions/{subscriptionId}/preview_change",
4292
+ pathParams: { subscriptionId: "subscriptionId" },
4293
+ __requestType: null,
4294
+ __originalRequestType: null,
4295
+ __responseType: null,
4296
+ __originalResponseType: null
4297
+ };
4298
+ }
4299
+ function customerCancelPendingChange2() {
4111
4300
  const payload = { subscriptionId: ":subscriptionId" };
4112
- const getRequestOptions = payCycle(payload);
4301
+ const getRequestOptions = customerCancelPendingChange(payload);
4113
4302
  const getUrl = (context) => {
4114
4303
  const { url } = getRequestOptions(context);
4115
4304
  return url;
@@ -4117,7 +4306,7 @@ function payCycle2() {
4117
4306
  return {
4118
4307
  getUrl,
4119
4308
  httpMethod: "POST",
4120
- path: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
4309
+ path: "/v1/customer_subscriptions/{subscriptionId}/cancel_pending_change",
4121
4310
  pathParams: { subscriptionId: "subscriptionId" },
4122
4311
  __requestType: null,
4123
4312
  __originalRequestType: null,
@@ -4527,6 +4716,7 @@ export {
4527
4716
  AdditionalFeeTrigger as AdditionalFeeTriggerOriginal,
4528
4717
  CancellationInitiator as CancellationInitiatorOriginal,
4529
4718
  ChangeEffectiveTime as ChangeEffectiveTimeOriginal,
4719
+ ChangeType as ChangeTypeOriginal,
4530
4720
  CollectionMethodEnumCollectionMethod as CollectionMethodEnumCollectionMethodOriginal,
4531
4721
  CollectionMethod as CollectionMethodOriginal,
4532
4722
  CreationMode as CreationModeOriginal,
@@ -4537,6 +4727,7 @@ export {
4537
4727
  IdentityType as IdentityTypeOriginal,
4538
4728
  InvoiceStatus as InvoiceStatusOriginal,
4539
4729
  ItemCategory as ItemCategoryOriginal,
4730
+ MissingPreviousBillingDateResumeStrategy as MissingPreviousBillingDateResumeStrategyOriginal,
4540
4731
  OrderMethod as OrderMethodOriginal,
4541
4732
  PauseAt as PauseAtOriginal,
4542
4733
  PausePolicy as PausePolicyOriginal,
@@ -4548,6 +4739,7 @@ export {
4548
4739
  PaymentTestMode as PaymentTestModeOriginal,
4549
4740
  PriceAdjustmentReason as PriceAdjustmentReasonOriginal,
4550
4741
  ProrationAction as ProrationActionOriginal,
4742
+ ProrationBehaviorEnumProrationBehavior as ProrationBehaviorEnumProrationBehaviorOriginal,
4551
4743
  ProrationBehavior as ProrationBehaviorOriginal,
4552
4744
  RefundReason as RefundReasonOriginal,
4553
4745
  RequestedFields as RequestedFieldsOriginal,
@@ -4567,14 +4759,17 @@ export {
4567
4759
  cancelSubscription2 as cancelSubscription,
4568
4760
  countSubscriptions2 as countSubscriptions,
4569
4761
  customerAllowedActions2 as customerAllowedActions,
4762
+ customerCancelPendingChange2 as customerCancelPendingChange,
4570
4763
  customerCancelScheduledPause2 as customerCancelScheduledPause,
4571
4764
  customerCancelScheduledSkip2 as customerCancelScheduledSkip,
4572
4765
  customerCancelSubscription2 as customerCancelSubscription,
4766
+ customerChangeSubscription2 as customerChangeSubscription,
4573
4767
  customerExtendSubscription2 as customerExtendSubscription,
4574
4768
  customerGetSubscription2 as customerGetSubscription,
4575
4769
  customerInitiatePaymentMethodSetup2 as customerInitiatePaymentMethodSetup,
4576
4770
  customerListUpcomingCharges2 as customerListUpcomingCharges,
4577
4771
  customerPauseSubscription2 as customerPauseSubscription,
4772
+ customerPreviewChangeSubscription2 as customerPreviewChangeSubscription,
4578
4773
  customerQuerySubscriptions2 as customerQuerySubscriptions,
4579
4774
  customerResumeSubscription2 as customerResumeSubscription,
4580
4775
  customerSkipCycle2 as customerSkipCycle,
@@ -4591,7 +4786,6 @@ export {
4591
4786
  markBillingCycleAsPaid2 as markBillingCycleAsPaid,
4592
4787
  markLatestInvoiceAsPaid2 as markLatestInvoiceAsPaid,
4593
4788
  pauseSubscription2 as pauseSubscription,
4594
- payCycle2 as payCycle,
4595
4789
  previewSubscriptionCharges2 as previewSubscriptionCharges,
4596
4790
  previewSubscriptionsCharges2 as previewSubscriptionsCharges,
4597
4791
  querySubscriptions2 as querySubscriptions,