@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
@@ -24,6 +24,7 @@ __export(index_typings_exports, {
24
24
  ActionType: () => ActionType,
25
25
  AdditionalFeeTrigger: () => AdditionalFeeTrigger,
26
26
  CancellationInitiator: () => CancellationInitiator,
27
+ ChangeEffectiveTime: () => ChangeEffectiveTime,
27
28
  CollectionMethod: () => CollectionMethod,
28
29
  CollectionMethodEnumCollectionMethod: () => CollectionMethodEnumCollectionMethod,
29
30
  CreationMode: () => CreationMode,
@@ -43,6 +44,9 @@ __export(index_typings_exports, {
43
44
  PaymentStatus: () => PaymentStatus,
44
45
  PaymentStatusEnumPaymentStatus: () => PaymentStatusEnumPaymentStatus,
45
46
  PaymentTestMode: () => PaymentTestMode,
47
+ PriceAdjustmentReason: () => PriceAdjustmentReason,
48
+ ProrationAction: () => ProrationAction,
49
+ ProrationBehavior: () => ProrationBehavior,
46
50
  RefundReason: () => RefundReason,
47
51
  RequestedFields: () => RequestedFields,
48
52
  ResumeAt: () => ResumeAt,
@@ -61,14 +65,20 @@ __export(index_typings_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,
@@ -675,6 +685,348 @@ function customerInitiatePaymentMethodSetup(payload) {
675
685
  }
676
686
  return __customerInitiatePaymentMethodSetup;
677
687
  }
688
+ function customerSkipCycle(payload) {
689
+ function __customerSkipCycle({ host }) {
690
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
691
+ {
692
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
693
+ paths: [
694
+ { path: "pauseAtSchedule.specificDate" },
695
+ { path: "autoResumeAtSchedule.specificDate" }
696
+ ]
697
+ }
698
+ ]);
699
+ const metadata = {
700
+ entityFqdn: "wix.billing.v1.subscription",
701
+ method: "POST",
702
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerSkipCycle",
703
+ packageName: PACKAGE_NAME,
704
+ migrationOptions: {
705
+ optInTransformResponse: true
706
+ },
707
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
708
+ {
709
+ protoPath: "/v1/customer_subscriptions/{id}/skip_cycle",
710
+ data: serializedData,
711
+ host
712
+ }
713
+ ),
714
+ data: serializedData,
715
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
716
+ {
717
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
718
+ paths: [
719
+ { path: "subscription.createdDate" },
720
+ { path: "subscription.updatedDate" },
721
+ { path: "subscription.startDate" },
722
+ { path: "subscription.endDate" },
723
+ { path: "subscription.billingStatus.nextBillingDate" },
724
+ { path: "subscription.billingStatus.previousBillingDate" },
725
+ {
726
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
727
+ },
728
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
729
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
730
+ {
731
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
732
+ },
733
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
734
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
735
+ { path: "subscription.pauseInfo.startDate" },
736
+ { path: "subscription.pauseInfo.resumeDate" },
737
+ { path: "subscription.cancellationInfo.cancellationDate" },
738
+ {
739
+ path: "subscription.specificDatePendingUpdateData.executionDate"
740
+ }
741
+ ]
742
+ }
743
+ ])
744
+ };
745
+ return metadata;
746
+ }
747
+ return __customerSkipCycle;
748
+ }
749
+ function customerCancelScheduledSkip(payload) {
750
+ function __customerCancelScheduledSkip({ host }) {
751
+ const metadata = {
752
+ entityFqdn: "wix.billing.v1.subscription",
753
+ method: "POST",
754
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledSkip",
755
+ packageName: PACKAGE_NAME,
756
+ migrationOptions: {
757
+ optInTransformResponse: true
758
+ },
759
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
760
+ {
761
+ protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_skip",
762
+ data: payload,
763
+ host
764
+ }
765
+ ),
766
+ data: payload,
767
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
768
+ {
769
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
770
+ paths: [
771
+ { path: "subscription.createdDate" },
772
+ { path: "subscription.updatedDate" },
773
+ { path: "subscription.startDate" },
774
+ { path: "subscription.endDate" },
775
+ { path: "subscription.billingStatus.nextBillingDate" },
776
+ { path: "subscription.billingStatus.previousBillingDate" },
777
+ {
778
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
779
+ },
780
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
781
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
782
+ {
783
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
784
+ },
785
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
786
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
787
+ { path: "subscription.pauseInfo.startDate" },
788
+ { path: "subscription.pauseInfo.resumeDate" },
789
+ { path: "subscription.cancellationInfo.cancellationDate" },
790
+ {
791
+ path: "subscription.specificDatePendingUpdateData.executionDate"
792
+ }
793
+ ]
794
+ }
795
+ ])
796
+ };
797
+ return metadata;
798
+ }
799
+ return __customerCancelScheduledSkip;
800
+ }
801
+ function customerPauseSubscription(payload) {
802
+ function __customerPauseSubscription({ host }) {
803
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
804
+ {
805
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
806
+ paths: [
807
+ { path: "pauseAtSchedule.specificDate" },
808
+ { path: "autoResumeAtSchedule.specificDate" }
809
+ ]
810
+ }
811
+ ]);
812
+ const metadata = {
813
+ entityFqdn: "wix.billing.v1.subscription",
814
+ method: "POST",
815
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPauseSubscription",
816
+ packageName: PACKAGE_NAME,
817
+ migrationOptions: {
818
+ optInTransformResponse: true
819
+ },
820
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
821
+ {
822
+ protoPath: "/v1/customer_subscriptions/{id}/pause",
823
+ data: serializedData,
824
+ host
825
+ }
826
+ ),
827
+ data: serializedData,
828
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
829
+ {
830
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
831
+ paths: [
832
+ { path: "subscription.createdDate" },
833
+ { path: "subscription.updatedDate" },
834
+ { path: "subscription.startDate" },
835
+ { path: "subscription.endDate" },
836
+ { path: "subscription.billingStatus.nextBillingDate" },
837
+ { path: "subscription.billingStatus.previousBillingDate" },
838
+ {
839
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
840
+ },
841
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
842
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
843
+ {
844
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
845
+ },
846
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
847
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
848
+ { path: "subscription.pauseInfo.startDate" },
849
+ { path: "subscription.pauseInfo.resumeDate" },
850
+ { path: "subscription.cancellationInfo.cancellationDate" },
851
+ {
852
+ path: "subscription.specificDatePendingUpdateData.executionDate"
853
+ }
854
+ ]
855
+ }
856
+ ])
857
+ };
858
+ return metadata;
859
+ }
860
+ return __customerPauseSubscription;
861
+ }
862
+ function customerResumeSubscription(payload) {
863
+ function __customerResumeSubscription({ host }) {
864
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
865
+ {
866
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
867
+ paths: [{ path: "resumeAtSchedule.specificDate" }]
868
+ }
869
+ ]);
870
+ const metadata = {
871
+ entityFqdn: "wix.billing.v1.subscription",
872
+ method: "POST",
873
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerResumeSubscription",
874
+ packageName: PACKAGE_NAME,
875
+ migrationOptions: {
876
+ optInTransformResponse: true
877
+ },
878
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
879
+ {
880
+ protoPath: "/v1/customer_subscriptions/{id}/resume",
881
+ data: serializedData,
882
+ host
883
+ }
884
+ ),
885
+ data: serializedData,
886
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
887
+ {
888
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
889
+ paths: [
890
+ { path: "subscription.createdDate" },
891
+ { path: "subscription.updatedDate" },
892
+ { path: "subscription.startDate" },
893
+ { path: "subscription.endDate" },
894
+ { path: "subscription.billingStatus.nextBillingDate" },
895
+ { path: "subscription.billingStatus.previousBillingDate" },
896
+ {
897
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
898
+ },
899
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
900
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
901
+ {
902
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
903
+ },
904
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
905
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
906
+ { path: "subscription.pauseInfo.startDate" },
907
+ { path: "subscription.pauseInfo.resumeDate" },
908
+ { path: "subscription.cancellationInfo.cancellationDate" },
909
+ {
910
+ path: "subscription.specificDatePendingUpdateData.executionDate"
911
+ }
912
+ ]
913
+ }
914
+ ])
915
+ };
916
+ return metadata;
917
+ }
918
+ return __customerResumeSubscription;
919
+ }
920
+ function customerCancelScheduledPause(payload) {
921
+ function __customerCancelScheduledPause({ host }) {
922
+ const metadata = {
923
+ entityFqdn: "wix.billing.v1.subscription",
924
+ method: "POST",
925
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledPause",
926
+ packageName: PACKAGE_NAME,
927
+ migrationOptions: {
928
+ optInTransformResponse: true
929
+ },
930
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
931
+ {
932
+ protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_pause",
933
+ data: payload,
934
+ host
935
+ }
936
+ ),
937
+ data: payload,
938
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
939
+ {
940
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
941
+ paths: [
942
+ { path: "subscription.createdDate" },
943
+ { path: "subscription.updatedDate" },
944
+ { path: "subscription.startDate" },
945
+ { path: "subscription.endDate" },
946
+ { path: "subscription.billingStatus.nextBillingDate" },
947
+ { path: "subscription.billingStatus.previousBillingDate" },
948
+ {
949
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
950
+ },
951
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
952
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
953
+ {
954
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
955
+ },
956
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
957
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
958
+ { path: "subscription.pauseInfo.startDate" },
959
+ { path: "subscription.pauseInfo.resumeDate" },
960
+ { path: "subscription.cancellationInfo.cancellationDate" },
961
+ {
962
+ path: "subscription.specificDatePendingUpdateData.executionDate"
963
+ }
964
+ ]
965
+ }
966
+ ])
967
+ };
968
+ return metadata;
969
+ }
970
+ return __customerCancelScheduledPause;
971
+ }
972
+ function customerUpdateBillingDate(payload) {
973
+ function __customerUpdateBillingDate({ host }) {
974
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
975
+ {
976
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
977
+ paths: [{ path: "billingDate" }]
978
+ }
979
+ ]);
980
+ const metadata = {
981
+ entityFqdn: "wix.billing.v1.subscription",
982
+ method: "POST",
983
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerUpdateBillingDate",
984
+ packageName: PACKAGE_NAME,
985
+ migrationOptions: {
986
+ optInTransformResponse: true
987
+ },
988
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
989
+ {
990
+ protoPath: "/v1/customer_subscriptions/{id}/update_billing_date",
991
+ data: serializedData,
992
+ host
993
+ }
994
+ ),
995
+ data: serializedData,
996
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
997
+ {
998
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
999
+ paths: [
1000
+ { path: "subscription.createdDate" },
1001
+ { path: "subscription.updatedDate" },
1002
+ { path: "subscription.startDate" },
1003
+ { path: "subscription.endDate" },
1004
+ { path: "subscription.billingStatus.nextBillingDate" },
1005
+ { path: "subscription.billingStatus.previousBillingDate" },
1006
+ {
1007
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1008
+ },
1009
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
1010
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
1011
+ {
1012
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1013
+ },
1014
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
1015
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
1016
+ { path: "subscription.pauseInfo.startDate" },
1017
+ { path: "subscription.pauseInfo.resumeDate" },
1018
+ { path: "subscription.cancellationInfo.cancellationDate" },
1019
+ {
1020
+ path: "subscription.specificDatePendingUpdateData.executionDate"
1021
+ }
1022
+ ]
1023
+ }
1024
+ ])
1025
+ };
1026
+ return metadata;
1027
+ }
1028
+ return __customerUpdateBillingDate;
1029
+ }
678
1030
  function payCycle(payload) {
679
1031
  function __payCycle({ host }) {
680
1032
  const metadata = {
@@ -3342,6 +3694,8 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
3342
3694
  ActionType2["UPM"] = "UPM";
3343
3695
  ActionType2["UPDATE_BILLING_DATE"] = "UPDATE_BILLING_DATE";
3344
3696
  ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
3697
+ ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
3698
+ ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
3345
3699
  return ActionType2;
3346
3700
  })(ActionType || {});
3347
3701
  var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
@@ -3409,6 +3763,7 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
3409
3763
  InvoiceStatus2["ATTEMPT_FAILED"] = "ATTEMPT_FAILED";
3410
3764
  InvoiceStatus2["CANCELED"] = "CANCELED";
3411
3765
  InvoiceStatus2["REFUNDED"] = "REFUNDED";
3766
+ InvoiceStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3412
3767
  return InvoiceStatus2;
3413
3768
  })(InvoiceStatus || {});
3414
3769
  var CollectionMethod = /* @__PURE__ */ ((CollectionMethod2) => {
@@ -3433,8 +3788,19 @@ var PaymentAttemptStatus = /* @__PURE__ */ ((PaymentAttemptStatus2) => {
3433
3788
  PaymentAttemptStatus2["TECHNICAL_FAILURE"] = "TECHNICAL_FAILURE";
3434
3789
  PaymentAttemptStatus2["CANCELED"] = "CANCELED";
3435
3790
  PaymentAttemptStatus2["PENDING"] = "PENDING";
3791
+ PaymentAttemptStatus2["REFUNDED"] = "REFUNDED";
3792
+ PaymentAttemptStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3436
3793
  return PaymentAttemptStatus2;
3437
3794
  })(PaymentAttemptStatus || {});
3795
+ var PriceAdjustmentReason = /* @__PURE__ */ ((PriceAdjustmentReason2) => {
3796
+ PriceAdjustmentReason2["PRICE_ADJUSTMENT_REASON_UNSPECIFIED"] = "PRICE_ADJUSTMENT_REASON_UNSPECIFIED";
3797
+ PriceAdjustmentReason2["BILLING_DATE_CHANGE"] = "BILLING_DATE_CHANGE";
3798
+ PriceAdjustmentReason2["PLAN_CHANGE_PRORATION"] = "PLAN_CHANGE_PRORATION";
3799
+ PriceAdjustmentReason2["CYCLE_CHANGE_PRORATION"] = "CYCLE_CHANGE_PRORATION";
3800
+ PriceAdjustmentReason2["QUANTITY_CHANGE_PRORATION"] = "QUANTITY_CHANGE_PRORATION";
3801
+ PriceAdjustmentReason2["CUSTOM_PRICE_ADJUSTMENT"] = "CUSTOM_PRICE_ADJUSTMENT";
3802
+ return PriceAdjustmentReason2;
3803
+ })(PriceAdjustmentReason || {});
3438
3804
  var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
3439
3805
  RefundReason2["UNKNOWN_REFUND_REASON"] = "UNKNOWN_REFUND_REASON";
3440
3806
  RefundReason2["DUPLICATE_CHARGE"] = "DUPLICATE_CHARGE";
@@ -3444,6 +3810,28 @@ var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
3444
3810
  RefundReason2["OTHER"] = "OTHER";
3445
3811
  return RefundReason2;
3446
3812
  })(RefundReason || {});
3813
+ var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
3814
+ ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
3815
+ ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
3816
+ ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
3817
+ return ChangeEffectiveTime2;
3818
+ })(ChangeEffectiveTime || {});
3819
+ var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
3820
+ ProrationBehavior2["UNKNOWN"] = "UNKNOWN";
3821
+ ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
3822
+ ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
3823
+ ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
3824
+ ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
3825
+ return ProrationBehavior2;
3826
+ })(ProrationBehavior || {});
3827
+ var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
3828
+ ProrationAction2["UNKNOWN"] = "UNKNOWN";
3829
+ ProrationAction2["CHARGE"] = "CHARGE";
3830
+ ProrationAction2["REFUND"] = "REFUND";
3831
+ ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
3832
+ ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
3833
+ return ProrationAction2;
3834
+ })(ProrationAction || {});
3447
3835
  var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
3448
3836
  IdentityType2["UNDEFINED"] = "UNDEFINED";
3449
3837
  IdentityType2["MEMBER"] = "MEMBER";
@@ -3849,6 +4237,256 @@ async function customerInitiatePaymentMethodSetup2(_id, options) {
3849
4237
  throw transformedError;
3850
4238
  }
3851
4239
  }
4240
+ async function customerSkipCycle2(_id, cyclesToSkip, options) {
4241
+ const { httpClient, sideEffects } = arguments[3];
4242
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4243
+ id: _id,
4244
+ cyclesToSkip,
4245
+ pauseAtSchedule: options?.pauseAtSchedule,
4246
+ autoResumeAtSchedule: options?.autoResumeAtSchedule,
4247
+ reason: options?.reason
4248
+ });
4249
+ const reqOpts = customerSkipCycle(payload);
4250
+ sideEffects?.onSiteCall?.();
4251
+ try {
4252
+ const result = await httpClient.request(reqOpts);
4253
+ sideEffects?.onSuccess?.(result);
4254
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
4255
+ (0, import_transform_paths2.transformPaths)(result.data, [
4256
+ {
4257
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
4258
+ paths: [
4259
+ { path: "subscription.billingSettings.billingAddress.address" },
4260
+ { path: "subscription.shippingAddress.address" }
4261
+ ]
4262
+ }
4263
+ ])
4264
+ );
4265
+ } catch (err) {
4266
+ const transformedError = (0, import_transform_error.transformError)(
4267
+ err,
4268
+ {
4269
+ spreadPathsToArguments: {},
4270
+ explicitPathsToArguments: {
4271
+ id: "$[0]",
4272
+ cyclesToSkip: "$[1]",
4273
+ pauseAtSchedule: "$[2].pauseAtSchedule",
4274
+ autoResumeAtSchedule: "$[2].autoResumeAtSchedule",
4275
+ reason: "$[2].reason"
4276
+ },
4277
+ singleArgumentUnchanged: false
4278
+ },
4279
+ ["_id", "cyclesToSkip", "options"]
4280
+ );
4281
+ sideEffects?.onError?.(err);
4282
+ throw transformedError;
4283
+ }
4284
+ }
4285
+ async function customerCancelScheduledSkip2(_id, options) {
4286
+ const { httpClient, sideEffects } = arguments[2];
4287
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4288
+ id: _id,
4289
+ reason: options?.reason
4290
+ });
4291
+ const reqOpts = customerCancelScheduledSkip(payload);
4292
+ sideEffects?.onSiteCall?.();
4293
+ try {
4294
+ const result = await httpClient.request(reqOpts);
4295
+ sideEffects?.onSuccess?.(result);
4296
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
4297
+ (0, import_transform_paths2.transformPaths)(result.data, [
4298
+ {
4299
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
4300
+ paths: [
4301
+ { path: "subscription.billingSettings.billingAddress.address" },
4302
+ { path: "subscription.shippingAddress.address" }
4303
+ ]
4304
+ }
4305
+ ])
4306
+ );
4307
+ } catch (err) {
4308
+ const transformedError = (0, import_transform_error.transformError)(
4309
+ err,
4310
+ {
4311
+ spreadPathsToArguments: {},
4312
+ explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
4313
+ singleArgumentUnchanged: false
4314
+ },
4315
+ ["_id", "options"]
4316
+ );
4317
+ sideEffects?.onError?.(err);
4318
+ throw transformedError;
4319
+ }
4320
+ }
4321
+ async function customerPauseSubscription2(_id, options) {
4322
+ const { httpClient, sideEffects } = arguments[2];
4323
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4324
+ id: _id,
4325
+ pausePolicy: options?.pausePolicy,
4326
+ reason: options?.reason,
4327
+ pauseAt: options?.pauseAt,
4328
+ pauseAtSchedule: options?.pauseAtSchedule,
4329
+ autoResumeAtSchedule: options?.autoResumeAtSchedule
4330
+ });
4331
+ const reqOpts = customerPauseSubscription(payload);
4332
+ sideEffects?.onSiteCall?.();
4333
+ try {
4334
+ const result = await httpClient.request(reqOpts);
4335
+ sideEffects?.onSuccess?.(result);
4336
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
4337
+ (0, import_transform_paths2.transformPaths)(result.data, [
4338
+ {
4339
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
4340
+ paths: [
4341
+ { path: "subscription.billingSettings.billingAddress.address" },
4342
+ { path: "subscription.shippingAddress.address" }
4343
+ ]
4344
+ }
4345
+ ])
4346
+ );
4347
+ } catch (err) {
4348
+ const transformedError = (0, import_transform_error.transformError)(
4349
+ err,
4350
+ {
4351
+ spreadPathsToArguments: {},
4352
+ explicitPathsToArguments: {
4353
+ id: "$[0]",
4354
+ pausePolicy: "$[1].pausePolicy",
4355
+ reason: "$[1].reason",
4356
+ pauseAt: "$[1].pauseAt",
4357
+ pauseAtSchedule: "$[1].pauseAtSchedule",
4358
+ autoResumeAtSchedule: "$[1].autoResumeAtSchedule"
4359
+ },
4360
+ singleArgumentUnchanged: false
4361
+ },
4362
+ ["_id", "options"]
4363
+ );
4364
+ sideEffects?.onError?.(err);
4365
+ throw transformedError;
4366
+ }
4367
+ }
4368
+ async function customerResumeSubscription2(_id, options) {
4369
+ const { httpClient, sideEffects } = arguments[2];
4370
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4371
+ id: _id,
4372
+ reason: options?.reason,
4373
+ resumeAt: options?.resumeAt,
4374
+ resumeAtSchedule: options?.resumeAtSchedule
4375
+ });
4376
+ const reqOpts = customerResumeSubscription(payload);
4377
+ sideEffects?.onSiteCall?.();
4378
+ try {
4379
+ const result = await httpClient.request(reqOpts);
4380
+ sideEffects?.onSuccess?.(result);
4381
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
4382
+ (0, import_transform_paths2.transformPaths)(result.data, [
4383
+ {
4384
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
4385
+ paths: [
4386
+ { path: "subscription.billingSettings.billingAddress.address" },
4387
+ { path: "subscription.shippingAddress.address" }
4388
+ ]
4389
+ }
4390
+ ])
4391
+ );
4392
+ } catch (err) {
4393
+ const transformedError = (0, import_transform_error.transformError)(
4394
+ err,
4395
+ {
4396
+ spreadPathsToArguments: {},
4397
+ explicitPathsToArguments: {
4398
+ id: "$[0]",
4399
+ reason: "$[1].reason",
4400
+ resumeAt: "$[1].resumeAt",
4401
+ resumeAtSchedule: "$[1].resumeAtSchedule"
4402
+ },
4403
+ singleArgumentUnchanged: false
4404
+ },
4405
+ ["_id", "options"]
4406
+ );
4407
+ sideEffects?.onError?.(err);
4408
+ throw transformedError;
4409
+ }
4410
+ }
4411
+ async function customerCancelScheduledPause2(_id, options) {
4412
+ const { httpClient, sideEffects } = arguments[2];
4413
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4414
+ id: _id,
4415
+ reason: options?.reason
4416
+ });
4417
+ const reqOpts = customerCancelScheduledPause(payload);
4418
+ sideEffects?.onSiteCall?.();
4419
+ try {
4420
+ const result = await httpClient.request(reqOpts);
4421
+ sideEffects?.onSuccess?.(result);
4422
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
4423
+ (0, import_transform_paths2.transformPaths)(result.data, [
4424
+ {
4425
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
4426
+ paths: [
4427
+ { path: "subscription.billingSettings.billingAddress.address" },
4428
+ { path: "subscription.shippingAddress.address" }
4429
+ ]
4430
+ }
4431
+ ])
4432
+ );
4433
+ } catch (err) {
4434
+ const transformedError = (0, import_transform_error.transformError)(
4435
+ err,
4436
+ {
4437
+ spreadPathsToArguments: {},
4438
+ explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
4439
+ singleArgumentUnchanged: false
4440
+ },
4441
+ ["_id", "options"]
4442
+ );
4443
+ sideEffects?.onError?.(err);
4444
+ throw transformedError;
4445
+ }
4446
+ }
4447
+ async function customerUpdateBillingDate2(_id, billingDate, options) {
4448
+ const { httpClient, sideEffects } = arguments[3];
4449
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
4450
+ id: _id,
4451
+ billingDate,
4452
+ proration: options?.proration,
4453
+ reason: options?.reason
4454
+ });
4455
+ const reqOpts = customerUpdateBillingDate(payload);
4456
+ sideEffects?.onSiteCall?.();
4457
+ try {
4458
+ const result = await httpClient.request(reqOpts);
4459
+ sideEffects?.onSuccess?.(result);
4460
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
4461
+ (0, import_transform_paths2.transformPaths)(result.data, [
4462
+ {
4463
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
4464
+ paths: [
4465
+ { path: "subscription.billingSettings.billingAddress.address" },
4466
+ { path: "subscription.shippingAddress.address" }
4467
+ ]
4468
+ }
4469
+ ])
4470
+ );
4471
+ } catch (err) {
4472
+ const transformedError = (0, import_transform_error.transformError)(
4473
+ err,
4474
+ {
4475
+ spreadPathsToArguments: {},
4476
+ explicitPathsToArguments: {
4477
+ id: "$[0]",
4478
+ billingDate: "$[1]",
4479
+ proration: "$[2].proration",
4480
+ reason: "$[2].reason"
4481
+ },
4482
+ singleArgumentUnchanged: false
4483
+ },
4484
+ ["_id", "billingDate", "options"]
4485
+ );
4486
+ sideEffects?.onError?.(err);
4487
+ throw transformedError;
4488
+ }
4489
+ }
3852
4490
  async function payCycle2(subscriptionId, options) {
3853
4491
  const { httpClient, sideEffects } = arguments[2];
3854
4492
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -4889,6 +5527,7 @@ async function listSubscriptionHistory2(subscriptionId, options) {
4889
5527
  ActionType,
4890
5528
  AdditionalFeeTrigger,
4891
5529
  CancellationInitiator,
5530
+ ChangeEffectiveTime,
4892
5531
  CollectionMethod,
4893
5532
  CollectionMethodEnumCollectionMethod,
4894
5533
  CreationMode,
@@ -4908,6 +5547,9 @@ async function listSubscriptionHistory2(subscriptionId, options) {
4908
5547
  PaymentStatus,
4909
5548
  PaymentStatusEnumPaymentStatus,
4910
5549
  PaymentTestMode,
5550
+ PriceAdjustmentReason,
5551
+ ProrationAction,
5552
+ ProrationBehavior,
4911
5553
  RefundReason,
4912
5554
  RequestedFields,
4913
5555
  ResumeAt,
@@ -4926,14 +5568,20 @@ async function listSubscriptionHistory2(subscriptionId, options) {
4926
5568
  cancelSubscription,
4927
5569
  countSubscriptions,
4928
5570
  customerAllowedActions,
5571
+ customerCancelScheduledPause,
5572
+ customerCancelScheduledSkip,
4929
5573
  customerCancelSubscription,
4930
5574
  customerExtendSubscription,
4931
5575
  customerGetSubscription,
4932
5576
  customerInitiatePaymentMethodSetup,
4933
5577
  customerListUpcomingCharges,
5578
+ customerPauseSubscription,
4934
5579
  customerQuerySubscriptions,
5580
+ customerResumeSubscription,
5581
+ customerSkipCycle,
4935
5582
  customerTurnOffSubscriptionAutoRenewal,
4936
5583
  customerTurnOnSubscriptionAutoRenewal,
5584
+ customerUpdateBillingDate,
4937
5585
  customerUpdateSubscriptionPaymentMethod,
4938
5586
  extendSubscription,
4939
5587
  getSubscription,