@wix/auto_sdk_subscription_subscriptions 1.0.41 → 1.0.43

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 +2 -2
  2. package/build/cjs/index.js +795 -91
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +690 -51
  5. package/build/cjs/index.typings.js +648 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +666 -51
  8. package/build/cjs/meta.js +506 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +2 -2
  11. package/build/es/index.mjs +785 -91
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +690 -51
  14. package/build/es/index.typings.mjs +638 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +666 -51
  17. package/build/es/meta.mjs +496 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +90 -4
  20. package/build/internal/cjs/index.js +795 -91
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +766 -51
  23. package/build/internal/cjs/index.typings.js +648 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +666 -51
  26. package/build/internal/cjs/meta.js +506 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +90 -4
  29. package/build/internal/es/index.mjs +785 -91
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +766 -51
  32. package/build/internal/es/index.typings.mjs +638 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +666 -51
  35. package/build/internal/es/meta.mjs +496 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
package/build/cjs/meta.js CHANGED
@@ -24,6 +24,7 @@ __export(meta_exports, {
24
24
  ActionTypeOriginal: () => ActionType,
25
25
  AdditionalFeeTriggerOriginal: () => AdditionalFeeTrigger,
26
26
  CancellationInitiatorOriginal: () => CancellationInitiator,
27
+ ChangeEffectiveTimeOriginal: () => ChangeEffectiveTime,
27
28
  CollectionMethodEnumCollectionMethodOriginal: () => CollectionMethodEnumCollectionMethod,
28
29
  CollectionMethodOriginal: () => CollectionMethod,
29
30
  CreationModeOriginal: () => CreationMode,
@@ -43,6 +44,9 @@ __export(meta_exports, {
43
44
  PaymentStatusEnumPaymentStatusOriginal: () => PaymentStatusEnumPaymentStatus,
44
45
  PaymentStatusOriginal: () => PaymentStatus,
45
46
  PaymentTestModeOriginal: () => PaymentTestMode,
47
+ PriceAdjustmentReasonOriginal: () => PriceAdjustmentReason,
48
+ ProrationActionOriginal: () => ProrationAction,
49
+ ProrationBehaviorOriginal: () => ProrationBehavior,
46
50
  RefundReasonOriginal: () => RefundReason,
47
51
  RequestedFieldsOriginal: () => RequestedFields,
48
52
  ResumeAtOriginal: () => ResumeAt,
@@ -61,14 +65,20 @@ __export(meta_exports, {
61
65
  cancelSubscription: () => cancelSubscription2,
62
66
  countSubscriptions: () => countSubscriptions2,
63
67
  customerAllowedActions: () => customerAllowedActions2,
68
+ customerCancelScheduledPause: () => customerCancelScheduledPause2,
69
+ customerCancelScheduledSkip: () => customerCancelScheduledSkip2,
64
70
  customerCancelSubscription: () => customerCancelSubscription2,
65
71
  customerExtendSubscription: () => customerExtendSubscription2,
66
72
  customerGetSubscription: () => customerGetSubscription2,
67
73
  customerInitiatePaymentMethodSetup: () => customerInitiatePaymentMethodSetup2,
68
74
  customerListUpcomingCharges: () => customerListUpcomingCharges2,
75
+ customerPauseSubscription: () => customerPauseSubscription2,
69
76
  customerQuerySubscriptions: () => customerQuerySubscriptions2,
77
+ customerResumeSubscription: () => customerResumeSubscription2,
78
+ customerSkipCycle: () => customerSkipCycle2,
70
79
  customerTurnOffSubscriptionAutoRenewal: () => customerTurnOffSubscriptionAutoRenewal2,
71
80
  customerTurnOnSubscriptionAutoRenewal: () => customerTurnOnSubscriptionAutoRenewal2,
81
+ customerUpdateBillingDate: () => customerUpdateBillingDate2,
72
82
  customerUpdateSubscriptionPaymentMethod: () => customerUpdateSubscriptionPaymentMethod2,
73
83
  extendSubscription: () => extendSubscription2,
74
84
  getSubscription: () => getSubscription2,
@@ -671,6 +681,348 @@ function customerInitiatePaymentMethodSetup(payload) {
671
681
  }
672
682
  return __customerInitiatePaymentMethodSetup;
673
683
  }
684
+ function customerSkipCycle(payload) {
685
+ function __customerSkipCycle({ host }) {
686
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
687
+ {
688
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
689
+ paths: [
690
+ { path: "pauseAtSchedule.specificDate" },
691
+ { path: "autoResumeAtSchedule.specificDate" }
692
+ ]
693
+ }
694
+ ]);
695
+ const metadata = {
696
+ entityFqdn: "wix.billing.v1.subscription",
697
+ method: "POST",
698
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerSkipCycle",
699
+ packageName: PACKAGE_NAME,
700
+ migrationOptions: {
701
+ optInTransformResponse: true
702
+ },
703
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
704
+ {
705
+ protoPath: "/v1/customer_subscriptions/{id}/skip_cycle",
706
+ data: serializedData,
707
+ host
708
+ }
709
+ ),
710
+ data: serializedData,
711
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
712
+ {
713
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
714
+ paths: [
715
+ { path: "subscription.createdDate" },
716
+ { path: "subscription.updatedDate" },
717
+ { path: "subscription.startDate" },
718
+ { path: "subscription.endDate" },
719
+ { path: "subscription.billingStatus.nextBillingDate" },
720
+ { path: "subscription.billingStatus.previousBillingDate" },
721
+ {
722
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
723
+ },
724
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
725
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
726
+ {
727
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
728
+ },
729
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
730
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
731
+ { path: "subscription.pauseInfo.startDate" },
732
+ { path: "subscription.pauseInfo.resumeDate" },
733
+ { path: "subscription.cancellationInfo.cancellationDate" },
734
+ {
735
+ path: "subscription.specificDatePendingUpdateData.executionDate"
736
+ }
737
+ ]
738
+ }
739
+ ])
740
+ };
741
+ return metadata;
742
+ }
743
+ return __customerSkipCycle;
744
+ }
745
+ function customerCancelScheduledSkip(payload) {
746
+ function __customerCancelScheduledSkip({ host }) {
747
+ const metadata = {
748
+ entityFqdn: "wix.billing.v1.subscription",
749
+ method: "POST",
750
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledSkip",
751
+ packageName: PACKAGE_NAME,
752
+ migrationOptions: {
753
+ optInTransformResponse: true
754
+ },
755
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
756
+ {
757
+ protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_skip",
758
+ data: payload,
759
+ host
760
+ }
761
+ ),
762
+ data: payload,
763
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
764
+ {
765
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
766
+ paths: [
767
+ { path: "subscription.createdDate" },
768
+ { path: "subscription.updatedDate" },
769
+ { path: "subscription.startDate" },
770
+ { path: "subscription.endDate" },
771
+ { path: "subscription.billingStatus.nextBillingDate" },
772
+ { path: "subscription.billingStatus.previousBillingDate" },
773
+ {
774
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
775
+ },
776
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
777
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
778
+ {
779
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
780
+ },
781
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
782
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
783
+ { path: "subscription.pauseInfo.startDate" },
784
+ { path: "subscription.pauseInfo.resumeDate" },
785
+ { path: "subscription.cancellationInfo.cancellationDate" },
786
+ {
787
+ path: "subscription.specificDatePendingUpdateData.executionDate"
788
+ }
789
+ ]
790
+ }
791
+ ])
792
+ };
793
+ return metadata;
794
+ }
795
+ return __customerCancelScheduledSkip;
796
+ }
797
+ function customerPauseSubscription(payload) {
798
+ function __customerPauseSubscription({ host }) {
799
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
800
+ {
801
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
802
+ paths: [
803
+ { path: "pauseAtSchedule.specificDate" },
804
+ { path: "autoResumeAtSchedule.specificDate" }
805
+ ]
806
+ }
807
+ ]);
808
+ const metadata = {
809
+ entityFqdn: "wix.billing.v1.subscription",
810
+ method: "POST",
811
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPauseSubscription",
812
+ packageName: PACKAGE_NAME,
813
+ migrationOptions: {
814
+ optInTransformResponse: true
815
+ },
816
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
817
+ {
818
+ protoPath: "/v1/customer_subscriptions/{id}/pause",
819
+ data: serializedData,
820
+ host
821
+ }
822
+ ),
823
+ data: serializedData,
824
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
825
+ {
826
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
827
+ paths: [
828
+ { path: "subscription.createdDate" },
829
+ { path: "subscription.updatedDate" },
830
+ { path: "subscription.startDate" },
831
+ { path: "subscription.endDate" },
832
+ { path: "subscription.billingStatus.nextBillingDate" },
833
+ { path: "subscription.billingStatus.previousBillingDate" },
834
+ {
835
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
836
+ },
837
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
838
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
839
+ {
840
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
841
+ },
842
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
843
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
844
+ { path: "subscription.pauseInfo.startDate" },
845
+ { path: "subscription.pauseInfo.resumeDate" },
846
+ { path: "subscription.cancellationInfo.cancellationDate" },
847
+ {
848
+ path: "subscription.specificDatePendingUpdateData.executionDate"
849
+ }
850
+ ]
851
+ }
852
+ ])
853
+ };
854
+ return metadata;
855
+ }
856
+ return __customerPauseSubscription;
857
+ }
858
+ function customerResumeSubscription(payload) {
859
+ function __customerResumeSubscription({ host }) {
860
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
861
+ {
862
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
863
+ paths: [{ path: "resumeAtSchedule.specificDate" }]
864
+ }
865
+ ]);
866
+ const metadata = {
867
+ entityFqdn: "wix.billing.v1.subscription",
868
+ method: "POST",
869
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerResumeSubscription",
870
+ packageName: PACKAGE_NAME,
871
+ migrationOptions: {
872
+ optInTransformResponse: true
873
+ },
874
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
875
+ {
876
+ protoPath: "/v1/customer_subscriptions/{id}/resume",
877
+ data: serializedData,
878
+ host
879
+ }
880
+ ),
881
+ data: serializedData,
882
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
883
+ {
884
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
885
+ paths: [
886
+ { path: "subscription.createdDate" },
887
+ { path: "subscription.updatedDate" },
888
+ { path: "subscription.startDate" },
889
+ { path: "subscription.endDate" },
890
+ { path: "subscription.billingStatus.nextBillingDate" },
891
+ { path: "subscription.billingStatus.previousBillingDate" },
892
+ {
893
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
894
+ },
895
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
896
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
897
+ {
898
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
899
+ },
900
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
901
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
902
+ { path: "subscription.pauseInfo.startDate" },
903
+ { path: "subscription.pauseInfo.resumeDate" },
904
+ { path: "subscription.cancellationInfo.cancellationDate" },
905
+ {
906
+ path: "subscription.specificDatePendingUpdateData.executionDate"
907
+ }
908
+ ]
909
+ }
910
+ ])
911
+ };
912
+ return metadata;
913
+ }
914
+ return __customerResumeSubscription;
915
+ }
916
+ function customerCancelScheduledPause(payload) {
917
+ function __customerCancelScheduledPause({ host }) {
918
+ const metadata = {
919
+ entityFqdn: "wix.billing.v1.subscription",
920
+ method: "POST",
921
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledPause",
922
+ packageName: PACKAGE_NAME,
923
+ migrationOptions: {
924
+ optInTransformResponse: true
925
+ },
926
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
927
+ {
928
+ protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_pause",
929
+ data: payload,
930
+ host
931
+ }
932
+ ),
933
+ data: payload,
934
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
935
+ {
936
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
937
+ paths: [
938
+ { path: "subscription.createdDate" },
939
+ { path: "subscription.updatedDate" },
940
+ { path: "subscription.startDate" },
941
+ { path: "subscription.endDate" },
942
+ { path: "subscription.billingStatus.nextBillingDate" },
943
+ { path: "subscription.billingStatus.previousBillingDate" },
944
+ {
945
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
946
+ },
947
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
948
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
949
+ {
950
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
951
+ },
952
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
953
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
954
+ { path: "subscription.pauseInfo.startDate" },
955
+ { path: "subscription.pauseInfo.resumeDate" },
956
+ { path: "subscription.cancellationInfo.cancellationDate" },
957
+ {
958
+ path: "subscription.specificDatePendingUpdateData.executionDate"
959
+ }
960
+ ]
961
+ }
962
+ ])
963
+ };
964
+ return metadata;
965
+ }
966
+ return __customerCancelScheduledPause;
967
+ }
968
+ function customerUpdateBillingDate(payload) {
969
+ function __customerUpdateBillingDate({ host }) {
970
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
971
+ {
972
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
973
+ paths: [{ path: "billingDate" }]
974
+ }
975
+ ]);
976
+ const metadata = {
977
+ entityFqdn: "wix.billing.v1.subscription",
978
+ method: "POST",
979
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerUpdateBillingDate",
980
+ packageName: PACKAGE_NAME,
981
+ migrationOptions: {
982
+ optInTransformResponse: true
983
+ },
984
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
985
+ {
986
+ protoPath: "/v1/customer_subscriptions/{id}/update_billing_date",
987
+ data: serializedData,
988
+ host
989
+ }
990
+ ),
991
+ data: serializedData,
992
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
993
+ {
994
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
995
+ paths: [
996
+ { path: "subscription.createdDate" },
997
+ { path: "subscription.updatedDate" },
998
+ { path: "subscription.startDate" },
999
+ { path: "subscription.endDate" },
1000
+ { path: "subscription.billingStatus.nextBillingDate" },
1001
+ { path: "subscription.billingStatus.previousBillingDate" },
1002
+ {
1003
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1004
+ },
1005
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
1006
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
1007
+ {
1008
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1009
+ },
1010
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
1011
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
1012
+ { path: "subscription.pauseInfo.startDate" },
1013
+ { path: "subscription.pauseInfo.resumeDate" },
1014
+ { path: "subscription.cancellationInfo.cancellationDate" },
1015
+ {
1016
+ path: "subscription.specificDatePendingUpdateData.executionDate"
1017
+ }
1018
+ ]
1019
+ }
1020
+ ])
1021
+ };
1022
+ return metadata;
1023
+ }
1024
+ return __customerUpdateBillingDate;
1025
+ }
674
1026
  function payCycle(payload) {
675
1027
  function __payCycle({ host }) {
676
1028
  const metadata = {
@@ -3335,6 +3687,8 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
3335
3687
  ActionType2["UPM"] = "UPM";
3336
3688
  ActionType2["UPDATE_BILLING_DATE"] = "UPDATE_BILLING_DATE";
3337
3689
  ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
3690
+ ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
3691
+ ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
3338
3692
  return ActionType2;
3339
3693
  })(ActionType || {});
3340
3694
  var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
@@ -3402,6 +3756,7 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
3402
3756
  InvoiceStatus2["ATTEMPT_FAILED"] = "ATTEMPT_FAILED";
3403
3757
  InvoiceStatus2["CANCELED"] = "CANCELED";
3404
3758
  InvoiceStatus2["REFUNDED"] = "REFUNDED";
3759
+ InvoiceStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3405
3760
  return InvoiceStatus2;
3406
3761
  })(InvoiceStatus || {});
3407
3762
  var CollectionMethod = /* @__PURE__ */ ((CollectionMethod2) => {
@@ -3426,8 +3781,19 @@ var PaymentAttemptStatus = /* @__PURE__ */ ((PaymentAttemptStatus2) => {
3426
3781
  PaymentAttemptStatus2["TECHNICAL_FAILURE"] = "TECHNICAL_FAILURE";
3427
3782
  PaymentAttemptStatus2["CANCELED"] = "CANCELED";
3428
3783
  PaymentAttemptStatus2["PENDING"] = "PENDING";
3784
+ PaymentAttemptStatus2["REFUNDED"] = "REFUNDED";
3785
+ PaymentAttemptStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3429
3786
  return PaymentAttemptStatus2;
3430
3787
  })(PaymentAttemptStatus || {});
3788
+ var PriceAdjustmentReason = /* @__PURE__ */ ((PriceAdjustmentReason2) => {
3789
+ PriceAdjustmentReason2["PRICE_ADJUSTMENT_REASON_UNSPECIFIED"] = "PRICE_ADJUSTMENT_REASON_UNSPECIFIED";
3790
+ PriceAdjustmentReason2["BILLING_DATE_CHANGE"] = "BILLING_DATE_CHANGE";
3791
+ PriceAdjustmentReason2["PLAN_CHANGE_PRORATION"] = "PLAN_CHANGE_PRORATION";
3792
+ PriceAdjustmentReason2["CYCLE_CHANGE_PRORATION"] = "CYCLE_CHANGE_PRORATION";
3793
+ PriceAdjustmentReason2["QUANTITY_CHANGE_PRORATION"] = "QUANTITY_CHANGE_PRORATION";
3794
+ PriceAdjustmentReason2["CUSTOM_PRICE_ADJUSTMENT"] = "CUSTOM_PRICE_ADJUSTMENT";
3795
+ return PriceAdjustmentReason2;
3796
+ })(PriceAdjustmentReason || {});
3431
3797
  var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
3432
3798
  RefundReason2["UNKNOWN_REFUND_REASON"] = "UNKNOWN_REFUND_REASON";
3433
3799
  RefundReason2["DUPLICATE_CHARGE"] = "DUPLICATE_CHARGE";
@@ -3437,6 +3803,28 @@ var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
3437
3803
  RefundReason2["OTHER"] = "OTHER";
3438
3804
  return RefundReason2;
3439
3805
  })(RefundReason || {});
3806
+ var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
3807
+ ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
3808
+ ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
3809
+ ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
3810
+ return ChangeEffectiveTime2;
3811
+ })(ChangeEffectiveTime || {});
3812
+ var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
3813
+ ProrationBehavior2["UNKNOWN"] = "UNKNOWN";
3814
+ ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
3815
+ ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
3816
+ ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
3817
+ ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
3818
+ return ProrationBehavior2;
3819
+ })(ProrationBehavior || {});
3820
+ var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
3821
+ ProrationAction2["UNKNOWN"] = "UNKNOWN";
3822
+ ProrationAction2["CHARGE"] = "CHARGE";
3823
+ ProrationAction2["REFUND"] = "REFUND";
3824
+ ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
3825
+ ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
3826
+ return ProrationAction2;
3827
+ })(ProrationAction || {});
3440
3828
  var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
3441
3829
  IdentityType2["UNDEFINED"] = "UNDEFINED";
3442
3830
  IdentityType2["MEMBER"] = "MEMBER";
@@ -3694,6 +4082,114 @@ function customerInitiatePaymentMethodSetup2() {
3694
4082
  __originalResponseType: null
3695
4083
  };
3696
4084
  }
4085
+ function customerSkipCycle2() {
4086
+ const payload = { id: ":id" };
4087
+ const getRequestOptions = customerSkipCycle(payload);
4088
+ const getUrl = (context) => {
4089
+ const { url } = getRequestOptions(context);
4090
+ return url;
4091
+ };
4092
+ return {
4093
+ getUrl,
4094
+ httpMethod: "POST",
4095
+ path: "/v1/customer_subscriptions/{id}/skip_cycle",
4096
+ pathParams: { id: "id" },
4097
+ __requestType: null,
4098
+ __originalRequestType: null,
4099
+ __responseType: null,
4100
+ __originalResponseType: null
4101
+ };
4102
+ }
4103
+ function customerCancelScheduledSkip2() {
4104
+ const payload = { id: ":id" };
4105
+ const getRequestOptions = customerCancelScheduledSkip(payload);
4106
+ const getUrl = (context) => {
4107
+ const { url } = getRequestOptions(context);
4108
+ return url;
4109
+ };
4110
+ return {
4111
+ getUrl,
4112
+ httpMethod: "POST",
4113
+ path: "/v1/customer_subscriptions/{id}/cancel_scheduled_skip",
4114
+ pathParams: { id: "id" },
4115
+ __requestType: null,
4116
+ __originalRequestType: null,
4117
+ __responseType: null,
4118
+ __originalResponseType: null
4119
+ };
4120
+ }
4121
+ function customerPauseSubscription2() {
4122
+ const payload = { id: ":id" };
4123
+ const getRequestOptions = customerPauseSubscription(payload);
4124
+ const getUrl = (context) => {
4125
+ const { url } = getRequestOptions(context);
4126
+ return url;
4127
+ };
4128
+ return {
4129
+ getUrl,
4130
+ httpMethod: "POST",
4131
+ path: "/v1/customer_subscriptions/{id}/pause",
4132
+ pathParams: { id: "id" },
4133
+ __requestType: null,
4134
+ __originalRequestType: null,
4135
+ __responseType: null,
4136
+ __originalResponseType: null
4137
+ };
4138
+ }
4139
+ function customerResumeSubscription2() {
4140
+ const payload = { id: ":id" };
4141
+ const getRequestOptions = customerResumeSubscription(payload);
4142
+ const getUrl = (context) => {
4143
+ const { url } = getRequestOptions(context);
4144
+ return url;
4145
+ };
4146
+ return {
4147
+ getUrl,
4148
+ httpMethod: "POST",
4149
+ path: "/v1/customer_subscriptions/{id}/resume",
4150
+ pathParams: { id: "id" },
4151
+ __requestType: null,
4152
+ __originalRequestType: null,
4153
+ __responseType: null,
4154
+ __originalResponseType: null
4155
+ };
4156
+ }
4157
+ function customerCancelScheduledPause2() {
4158
+ const payload = { id: ":id" };
4159
+ const getRequestOptions = customerCancelScheduledPause(payload);
4160
+ const getUrl = (context) => {
4161
+ const { url } = getRequestOptions(context);
4162
+ return url;
4163
+ };
4164
+ return {
4165
+ getUrl,
4166
+ httpMethod: "POST",
4167
+ path: "/v1/customer_subscriptions/{id}/cancel_scheduled_pause",
4168
+ pathParams: { id: "id" },
4169
+ __requestType: null,
4170
+ __originalRequestType: null,
4171
+ __responseType: null,
4172
+ __originalResponseType: null
4173
+ };
4174
+ }
4175
+ function customerUpdateBillingDate2() {
4176
+ const payload = { id: ":id" };
4177
+ const getRequestOptions = customerUpdateBillingDate(payload);
4178
+ const getUrl = (context) => {
4179
+ const { url } = getRequestOptions(context);
4180
+ return url;
4181
+ };
4182
+ return {
4183
+ getUrl,
4184
+ httpMethod: "POST",
4185
+ path: "/v1/customer_subscriptions/{id}/update_billing_date",
4186
+ pathParams: { id: "id" },
4187
+ __requestType: null,
4188
+ __originalRequestType: null,
4189
+ __responseType: null,
4190
+ __originalResponseType: null
4191
+ };
4192
+ }
3697
4193
  function payCycle2() {
3698
4194
  const payload = { subscriptionId: ":subscriptionId" };
3699
4195
  const getRequestOptions = payCycle(payload);
@@ -4114,6 +4610,7 @@ function listSubscriptionHistory2() {
4114
4610
  ActionTypeOriginal,
4115
4611
  AdditionalFeeTriggerOriginal,
4116
4612
  CancellationInitiatorOriginal,
4613
+ ChangeEffectiveTimeOriginal,
4117
4614
  CollectionMethodEnumCollectionMethodOriginal,
4118
4615
  CollectionMethodOriginal,
4119
4616
  CreationModeOriginal,
@@ -4133,6 +4630,9 @@ function listSubscriptionHistory2() {
4133
4630
  PaymentStatusEnumPaymentStatusOriginal,
4134
4631
  PaymentStatusOriginal,
4135
4632
  PaymentTestModeOriginal,
4633
+ PriceAdjustmentReasonOriginal,
4634
+ ProrationActionOriginal,
4635
+ ProrationBehaviorOriginal,
4136
4636
  RefundReasonOriginal,
4137
4637
  RequestedFieldsOriginal,
4138
4638
  ResumeAtOriginal,
@@ -4151,14 +4651,20 @@ function listSubscriptionHistory2() {
4151
4651
  cancelSubscription,
4152
4652
  countSubscriptions,
4153
4653
  customerAllowedActions,
4654
+ customerCancelScheduledPause,
4655
+ customerCancelScheduledSkip,
4154
4656
  customerCancelSubscription,
4155
4657
  customerExtendSubscription,
4156
4658
  customerGetSubscription,
4157
4659
  customerInitiatePaymentMethodSetup,
4158
4660
  customerListUpcomingCharges,
4661
+ customerPauseSubscription,
4159
4662
  customerQuerySubscriptions,
4663
+ customerResumeSubscription,
4664
+ customerSkipCycle,
4160
4665
  customerTurnOffSubscriptionAutoRenewal,
4161
4666
  customerTurnOnSubscriptionAutoRenewal,
4667
+ customerUpdateBillingDate,
4162
4668
  customerUpdateSubscriptionPaymentMethod,
4163
4669
  extendSubscription,
4164
4670
  getSubscription,