@wix/auto_sdk_subscription_subscriptions 1.0.46 → 1.0.48

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 +197 -222
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1962 -1734
  5. package/build/cjs/index.typings.js +153 -171
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1933 -1722
  8. package/build/cjs/meta.js +143 -146
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +3 -11
  11. package/build/es/index.mjs +194 -221
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1962 -1734
  14. package/build/es/index.typings.mjs +150 -170
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +1933 -1722
  17. package/build/es/meta.mjs +140 -145
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +3 -11
  20. package/build/internal/cjs/index.typings.d.ts +2021 -1732
  21. package/build/internal/cjs/meta.d.ts +1875 -1552
  22. package/build/internal/es/index.d.mts +3 -11
  23. package/build/internal/es/index.typings.d.mts +2021 -1732
  24. package/build/internal/es/meta.d.mts +1875 -1552
  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
@@ -25,6 +25,7 @@ __export(index_typings_exports, {
25
25
  AdditionalFeeTrigger: () => AdditionalFeeTrigger,
26
26
  CancellationInitiator: () => CancellationInitiator,
27
27
  ChangeEffectiveTime: () => ChangeEffectiveTime,
28
+ ChangeType: () => ChangeType,
28
29
  CollectionMethod: () => CollectionMethod,
29
30
  CollectionMethodEnumCollectionMethod: () => CollectionMethodEnumCollectionMethod,
30
31
  CreationMode: () => CreationMode,
@@ -35,6 +36,7 @@ __export(index_typings_exports, {
35
36
  IdentityType: () => IdentityType,
36
37
  InvoiceStatus: () => InvoiceStatus,
37
38
  ItemCategory: () => ItemCategory,
39
+ MissingPreviousBillingDateResumeStrategy: () => MissingPreviousBillingDateResumeStrategy,
38
40
  OrderMethod: () => OrderMethod,
39
41
  PauseAt: () => PauseAt,
40
42
  PausePolicy: () => PausePolicy,
@@ -47,6 +49,7 @@ __export(index_typings_exports, {
47
49
  PriceAdjustmentReason: () => PriceAdjustmentReason,
48
50
  ProrationAction: () => ProrationAction,
49
51
  ProrationBehavior: () => ProrationBehavior,
52
+ ProrationBehaviorEnumProrationBehavior: () => ProrationBehaviorEnumProrationBehavior,
50
53
  RefundReason: () => RefundReason,
51
54
  RequestedFields: () => RequestedFields,
52
55
  ResumeAt: () => ResumeAt,
@@ -89,7 +92,6 @@ __export(index_typings_exports, {
89
92
  markBillingCycleAsPaid: () => markBillingCycleAsPaid2,
90
93
  markLatestInvoiceAsPaid: () => markLatestInvoiceAsPaid2,
91
94
  pauseSubscription: () => pauseSubscription2,
92
- payCycle: () => payCycle2,
93
95
  previewSubscriptionCharges: () => previewSubscriptionCharges2,
94
96
  previewSubscriptionsCharges: () => previewSubscriptionsCharges2,
95
97
  querySubscriptions: () => querySubscriptions2,
@@ -109,6 +111,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
109
111
 
110
112
  // src/billing-v1-subscription-subscriptions.http.ts
111
113
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
114
+ var import_float = require("@wix/sdk-runtime/transformations/float");
112
115
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
113
116
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
114
117
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
@@ -195,47 +198,6 @@ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts
195
198
  };
196
199
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
197
200
  }
198
- function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
199
- const domainToMappings = {
200
- "www._base_domain_": [
201
- {
202
- srcPath: "/_api/billing-subscriptions",
203
- destPath: ""
204
- }
205
- ],
206
- _: [
207
- {
208
- srcPath: "/_api/billing-subscriptions",
209
- destPath: ""
210
- }
211
- ],
212
- "*.dev.wix-code.com": [
213
- {
214
- srcPath: "/_api/billing-subscriptions",
215
- destPath: ""
216
- }
217
- ],
218
- "*.pub.wix-code.com": [
219
- {
220
- srcPath: "/_api/billing-subscriptions",
221
- destPath: ""
222
- }
223
- ],
224
- "manage._base_domain_": [
225
- {
226
- srcPath: "/_api/billing-subscriptions",
227
- destPath: ""
228
- }
229
- ],
230
- "payments.base44.com": [
231
- {
232
- srcPath: "/_api/billing-subscriptions",
233
- destPath: ""
234
- }
235
- ]
236
- };
237
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
238
- }
239
201
  function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
240
202
  const domainToMappings = {
241
203
  "www._base_domain_": [
@@ -536,6 +498,15 @@ function customerExtendSubscription(payload) {
536
498
  }
537
499
  function customerQuerySubscriptions(payload) {
538
500
  function __customerQuerySubscriptions({ host }) {
501
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
502
+ {
503
+ transformFn: import_float.transformSDKFloatToRESTFloat,
504
+ paths: [
505
+ { path: "query.sort.origin.latitude" },
506
+ { path: "query.sort.origin.longitude" }
507
+ ]
508
+ }
509
+ ]);
539
510
  const metadata = {
540
511
  entityFqdn: "wix.billing.v1.subscription",
541
512
  method: "POST",
@@ -545,9 +516,13 @@ function customerQuerySubscriptions(payload) {
545
516
  optInTransformResponse: true
546
517
  },
547
518
  url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
548
- { protoPath: "/v1/customer_subscriptions/query", data: payload, host }
519
+ {
520
+ protoPath: "/v1/customer_subscriptions/query",
521
+ data: serializedData,
522
+ host
523
+ }
549
524
  ),
550
- data: payload,
525
+ data: serializedData,
551
526
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
552
527
  {
553
528
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -1051,58 +1026,6 @@ function customerUpdateBillingDate(payload) {
1051
1026
  }
1052
1027
  return __customerUpdateBillingDate;
1053
1028
  }
1054
- function payCycle(payload) {
1055
- function __payCycle({ host }) {
1056
- const metadata = {
1057
- entityFqdn: "wix.billing.v1.subscription",
1058
- method: "POST",
1059
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle",
1060
- packageName: PACKAGE_NAME,
1061
- migrationOptions: {
1062
- optInTransformResponse: true
1063
- },
1064
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(
1065
- {
1066
- protoPath: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
1067
- data: payload,
1068
- host
1069
- }
1070
- ),
1071
- data: payload,
1072
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1073
- {
1074
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1075
- paths: [
1076
- { path: "subscription.createdDate" },
1077
- { path: "subscription.updatedDate" },
1078
- { path: "subscription.startDate" },
1079
- { path: "subscription.endDate" },
1080
- { path: "subscription.billingStatus.nextBillingDate" },
1081
- { path: "subscription.billingStatus.previousBillingDate" },
1082
- {
1083
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1084
- },
1085
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1086
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1087
- {
1088
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1089
- },
1090
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1091
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1092
- { path: "subscription.pauseInfo.startDate" },
1093
- { path: "subscription.pauseInfo.resumeDate" },
1094
- { path: "subscription.cancellationInfo.cancellationDate" },
1095
- {
1096
- path: "subscription.specificDatePendingUpdateData.executionDate"
1097
- }
1098
- ]
1099
- }
1100
- ])
1101
- };
1102
- return metadata;
1103
- }
1104
- return __payCycle;
1105
- }
1106
1029
  function getSubscription(payload) {
1107
1030
  function __getSubscription({ host }) {
1108
1031
  const metadata = {
@@ -1476,6 +1399,15 @@ function resumeSubscription(payload) {
1476
1399
  }
1477
1400
  function querySubscriptions(payload) {
1478
1401
  function __querySubscriptions({ host }) {
1402
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1403
+ {
1404
+ transformFn: import_float.transformSDKFloatToRESTFloat,
1405
+ paths: [
1406
+ { path: "query.sort.origin.latitude" },
1407
+ { path: "query.sort.origin.longitude" }
1408
+ ]
1409
+ }
1410
+ ]);
1479
1411
  const metadata = {
1480
1412
  entityFqdn: "wix.billing.v1.subscription",
1481
1413
  method: "POST",
@@ -1486,10 +1418,10 @@ function querySubscriptions(payload) {
1486
1418
  },
1487
1419
  url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1488
1420
  protoPath: "/v1/subscriptions/query",
1489
- data: payload,
1421
+ data: serializedData,
1490
1422
  host
1491
1423
  }),
1492
- data: payload,
1424
+ data: serializedData,
1493
1425
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1494
1426
  {
1495
1427
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -1526,6 +1458,15 @@ function querySubscriptions(payload) {
1526
1458
  }
1527
1459
  function searchSubscriptions(payload) {
1528
1460
  function __searchSubscriptions({ host }) {
1461
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1462
+ {
1463
+ transformFn: import_float.transformSDKFloatToRESTFloat,
1464
+ paths: [
1465
+ { path: "sorting.sorting.origin.latitude" },
1466
+ { path: "sorting.sorting.origin.longitude" }
1467
+ ]
1468
+ }
1469
+ ]);
1529
1470
  const metadata = {
1530
1471
  entityFqdn: "wix.billing.v1.subscription",
1531
1472
  method: "POST",
@@ -1536,10 +1477,10 @@ function searchSubscriptions(payload) {
1536
1477
  },
1537
1478
  url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1538
1479
  protoPath: "/v1/subscriptions/search",
1539
- data: payload,
1480
+ data: serializedData,
1540
1481
  host
1541
1482
  }),
1542
- data: payload,
1483
+ data: serializedData,
1543
1484
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1544
1485
  {
1545
1486
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -3549,6 +3490,54 @@ function listSubscriptionHistory(payload) {
3549
3490
  {
3550
3491
  path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
3551
3492
  },
3493
+ {
3494
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.createdDate"
3495
+ },
3496
+ {
3497
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.updatedDate"
3498
+ },
3499
+ {
3500
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.startDate"
3501
+ },
3502
+ {
3503
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.endDate"
3504
+ },
3505
+ {
3506
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.nextBillingDate"
3507
+ },
3508
+ {
3509
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.previousBillingDate"
3510
+ },
3511
+ {
3512
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3513
+ },
3514
+ {
3515
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
3516
+ },
3517
+ {
3518
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
3519
+ },
3520
+ {
3521
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
3522
+ },
3523
+ {
3524
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
3525
+ },
3526
+ {
3527
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
3528
+ },
3529
+ {
3530
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.startDate"
3531
+ },
3532
+ {
3533
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.resumeDate"
3534
+ },
3535
+ {
3536
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.cancellationInfo.cancellationDate"
3537
+ },
3538
+ {
3539
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
3540
+ },
3552
3541
  {
3553
3542
  path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
3554
3543
  },
@@ -3699,6 +3688,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3699
3688
  return SortOrder2;
3700
3689
  })(SortOrder || {});
3701
3690
  var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
3691
+ SubscriptionStatusGroup2["UNKNOWN_STATUS_GROUP"] = "UNKNOWN_STATUS_GROUP";
3702
3692
  SubscriptionStatusGroup2["ALL"] = "ALL";
3703
3693
  SubscriptionStatusGroup2["LIVE"] = "LIVE";
3704
3694
  return SubscriptionStatusGroup2;
@@ -3720,6 +3710,7 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
3720
3710
  ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
3721
3711
  ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
3722
3712
  ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
3713
+ ActionType2["CHANGE_SUBSCRIPTION"] = "CHANGE_SUBSCRIPTION";
3723
3714
  return ActionType2;
3724
3715
  })(ActionType || {});
3725
3716
  var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
@@ -3747,25 +3738,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3747
3738
  WebhookIdentityType2["APP"] = "APP";
3748
3739
  return WebhookIdentityType2;
3749
3740
  })(WebhookIdentityType || {});
3750
- var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
3751
- PaymentTestMode2["REGULAR"] = "REGULAR";
3752
- PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
3753
- PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
3754
- PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
3755
- return PaymentTestMode2;
3756
- })(PaymentTestMode || {});
3757
- var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
3758
- RevivePolicy2["SIMPLE"] = "SIMPLE";
3759
- RevivePolicy2["RESUME"] = "RESUME";
3760
- return RevivePolicy2;
3761
- })(RevivePolicy || {});
3762
- var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
3763
- ActionInitiator2["UNDEFINED"] = "UNDEFINED";
3764
- ActionInitiator2["BUSINESS"] = "BUSINESS";
3765
- ActionInitiator2["CUSTOMER"] = "CUSTOMER";
3766
- ActionInitiator2["SYSTEM"] = "SYSTEM";
3767
- return ActionInitiator2;
3768
- })(ActionInitiator || {});
3769
3741
  var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
3770
3742
  UpdateAction2["NONE"] = "NONE";
3771
3743
  UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
@@ -3774,6 +3746,19 @@ var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
3774
3746
  UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
3775
3747
  return UpdateAction2;
3776
3748
  })(UpdateAction || {});
3749
+ var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
3750
+ ActionInitiator2["UNDEFINED"] = "UNDEFINED";
3751
+ ActionInitiator2["BUSINESS"] = "BUSINESS";
3752
+ ActionInitiator2["CUSTOMER"] = "CUSTOMER";
3753
+ ActionInitiator2["SYSTEM"] = "SYSTEM";
3754
+ return ActionInitiator2;
3755
+ })(ActionInitiator || {});
3756
+ var MissingPreviousBillingDateResumeStrategy = /* @__PURE__ */ ((MissingPreviousBillingDateResumeStrategy2) => {
3757
+ MissingPreviousBillingDateResumeStrategy2["UNKNOWN"] = "UNKNOWN";
3758
+ MissingPreviousBillingDateResumeStrategy2["START_BILLING_IMMEDIATELY"] = "START_BILLING_IMMEDIATELY";
3759
+ MissingPreviousBillingDateResumeStrategy2["START_BILLING_AFTER_ONE_FULL_CYCLE"] = "START_BILLING_AFTER_ONE_FULL_CYCLE";
3760
+ return MissingPreviousBillingDateResumeStrategy2;
3761
+ })(MissingPreviousBillingDateResumeStrategy || {});
3777
3762
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
3778
3763
  RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
3779
3764
  return RequestedFields2;
@@ -3838,14 +3823,14 @@ var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
3838
3823
  ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
3839
3824
  return ChangeEffectiveTime2;
3840
3825
  })(ChangeEffectiveTime || {});
3841
- var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
3842
- ProrationBehavior2["UNKNOWN"] = "UNKNOWN";
3843
- ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
3844
- ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
3845
- ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
3846
- ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
3847
- return ProrationBehavior2;
3848
- })(ProrationBehavior || {});
3826
+ var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
3827
+ ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
3828
+ ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
3829
+ ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
3830
+ ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
3831
+ ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
3832
+ return ProrationBehaviorEnumProrationBehavior2;
3833
+ })(ProrationBehaviorEnumProrationBehavior || {});
3849
3834
  var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
3850
3835
  ProrationAction2["UNKNOWN"] = "UNKNOWN";
3851
3836
  ProrationAction2["CHARGE"] = "CHARGE";
@@ -3854,6 +3839,22 @@ var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
3854
3839
  ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
3855
3840
  return ProrationAction2;
3856
3841
  })(ProrationAction || {});
3842
+ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
3843
+ ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
3844
+ ChangeType2["UPGRADE"] = "UPGRADE";
3845
+ ChangeType2["DOWNGRADE"] = "DOWNGRADE";
3846
+ ChangeType2["CYCLE_CHANGE"] = "CYCLE_CHANGE";
3847
+ ChangeType2["QUANTITY_CHANGE"] = "QUANTITY_CHANGE";
3848
+ return ChangeType2;
3849
+ })(ChangeType || {});
3850
+ var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
3851
+ ProrationBehavior2["PRORATION_BEHAVIOR_UNKNOWN"] = "PRORATION_BEHAVIOR_UNKNOWN";
3852
+ ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
3853
+ ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
3854
+ ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
3855
+ ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
3856
+ return ProrationBehavior2;
3857
+ })(ProrationBehavior || {});
3857
3858
  var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
3858
3859
  IdentityType2["UNDEFINED"] = "UNDEFINED";
3859
3860
  IdentityType2["MEMBER"] = "MEMBER";
@@ -3908,6 +3909,18 @@ var Status = /* @__PURE__ */ ((Status2) => {
3908
3909
  Status2["ENDED"] = "ENDED";
3909
3910
  return Status2;
3910
3911
  })(Status || {});
3912
+ var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
3913
+ PaymentTestMode2["REGULAR"] = "REGULAR";
3914
+ PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
3915
+ PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
3916
+ PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
3917
+ return PaymentTestMode2;
3918
+ })(PaymentTestMode || {});
3919
+ var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
3920
+ RevivePolicy2["SIMPLE"] = "SIMPLE";
3921
+ RevivePolicy2["RESUME"] = "RESUME";
3922
+ return RevivePolicy2;
3923
+ })(RevivePolicy || {});
3911
3924
  var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
3912
3925
  HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
3913
3926
  HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
@@ -4509,47 +4522,6 @@ async function customerUpdateBillingDate2(_id, billingDate, options) {
4509
4522
  throw transformedError;
4510
4523
  }
4511
4524
  }
4512
- async function payCycle2(subscriptionId, options) {
4513
- const { httpClient, sideEffects } = arguments[2];
4514
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4515
- subscriptionId,
4516
- paymentTestMode: options?.paymentTestMode,
4517
- tenantId: options?.tenantId
4518
- });
4519
- const reqOpts = payCycle(payload);
4520
- sideEffects?.onSiteCall?.();
4521
- try {
4522
- const result = await httpClient.request(reqOpts);
4523
- sideEffects?.onSuccess?.(result);
4524
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
4525
- (0, import_transform_paths2.transformPaths)(result.data, [
4526
- {
4527
- transformFn: import_address2.transformRESTAddressToSDKAddress,
4528
- paths: [
4529
- { path: "subscription.billingSettings.billingAddress.address" },
4530
- { path: "subscription.shippingAddress.address" }
4531
- ]
4532
- }
4533
- ])
4534
- );
4535
- } catch (err) {
4536
- const transformedError = (0, import_transform_error.transformError)(
4537
- err,
4538
- {
4539
- spreadPathsToArguments: {},
4540
- explicitPathsToArguments: {
4541
- subscriptionId: "$[0]",
4542
- paymentTestMode: "$[1].paymentTestMode",
4543
- tenantId: "$[1].tenantId"
4544
- },
4545
- singleArgumentUnchanged: false
4546
- },
4547
- ["subscriptionId", "options"]
4548
- );
4549
- sideEffects?.onError?.(err);
4550
- throw transformedError;
4551
- }
4552
- }
4553
4525
  async function getSubscription2(_id) {
4554
4526
  const { httpClient, sideEffects } = arguments[1];
4555
4527
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
@@ -4785,7 +4757,8 @@ async function resumeSubscription2(_id, options) {
4785
4757
  id: _id,
4786
4758
  resumeAt: options?.resumeAt,
4787
4759
  resumeAtSchedule: options?.resumeAtSchedule,
4788
- actionContext: options?.actionContext
4760
+ actionContext: options?.actionContext,
4761
+ missingPreviousBillingDateResumeStrategy: options?.missingPreviousBillingDateResumeStrategy
4789
4762
  });
4790
4763
  const reqOpts = resumeSubscription(payload);
4791
4764
  sideEffects?.onSiteCall?.();
@@ -4812,7 +4785,8 @@ async function resumeSubscription2(_id, options) {
4812
4785
  id: "$[0]",
4813
4786
  resumeAt: "$[1].resumeAt",
4814
4787
  resumeAtSchedule: "$[1].resumeAtSchedule",
4815
- actionContext: "$[1].actionContext"
4788
+ actionContext: "$[1].actionContext",
4789
+ missingPreviousBillingDateResumeStrategy: "$[1].missingPreviousBillingDateResumeStrategy"
4816
4790
  },
4817
4791
  singleArgumentUnchanged: false
4818
4792
  },
@@ -5515,6 +5489,12 @@ async function listSubscriptionHistory2(subscriptionId, options) {
5515
5489
  {
5516
5490
  path: "historyEntries.event.futurePriceUpdatesRequested.subscription.shippingAddress.address"
5517
5491
  },
5492
+ {
5493
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingSettings.billingAddress.address"
5494
+ },
5495
+ {
5496
+ path: "historyEntries.event.offlinePurchaseCompleted.subscription.shippingAddress.address"
5497
+ },
5518
5498
  {
5519
5499
  path: "historyEntries.event.subscriptionBoAction.subscription.billingSettings.billingAddress.address"
5520
5500
  },
@@ -5550,6 +5530,7 @@ async function listSubscriptionHistory2(subscriptionId, options) {
5550
5530
  AdditionalFeeTrigger,
5551
5531
  CancellationInitiator,
5552
5532
  ChangeEffectiveTime,
5533
+ ChangeType,
5553
5534
  CollectionMethod,
5554
5535
  CollectionMethodEnumCollectionMethod,
5555
5536
  CreationMode,
@@ -5560,6 +5541,7 @@ async function listSubscriptionHistory2(subscriptionId, options) {
5560
5541
  IdentityType,
5561
5542
  InvoiceStatus,
5562
5543
  ItemCategory,
5544
+ MissingPreviousBillingDateResumeStrategy,
5563
5545
  OrderMethod,
5564
5546
  PauseAt,
5565
5547
  PausePolicy,
@@ -5572,6 +5554,7 @@ async function listSubscriptionHistory2(subscriptionId, options) {
5572
5554
  PriceAdjustmentReason,
5573
5555
  ProrationAction,
5574
5556
  ProrationBehavior,
5557
+ ProrationBehaviorEnumProrationBehavior,
5575
5558
  RefundReason,
5576
5559
  RequestedFields,
5577
5560
  ResumeAt,
@@ -5614,7 +5597,6 @@ async function listSubscriptionHistory2(subscriptionId, options) {
5614
5597
  markBillingCycleAsPaid,
5615
5598
  markLatestInvoiceAsPaid,
5616
5599
  pauseSubscription,
5617
- payCycle,
5618
5600
  previewSubscriptionCharges,
5619
5601
  previewSubscriptionsCharges,
5620
5602
  querySubscriptions,