@wix/auto_sdk_subscription_subscriptions 1.0.41 → 1.0.42

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 +767 -91
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +469 -51
  5. package/build/cjs/index.typings.js +620 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +445 -51
  8. package/build/cjs/meta.js +478 -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 +760 -91
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +469 -51
  14. package/build/es/index.typings.mjs +613 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +445 -51
  17. package/build/es/meta.mjs +471 -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 +767 -91
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +545 -51
  23. package/build/internal/cjs/index.typings.js +620 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +445 -51
  26. package/build/internal/cjs/meta.js +478 -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 +760 -91
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +545 -51
  32. package/build/internal/es/index.typings.mjs +613 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +445 -51
  35. package/build/internal/es/meta.mjs +471 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
package/build/cjs/meta.js CHANGED
@@ -43,6 +43,7 @@ __export(meta_exports, {
43
43
  PaymentStatusEnumPaymentStatusOriginal: () => PaymentStatusEnumPaymentStatus,
44
44
  PaymentStatusOriginal: () => PaymentStatus,
45
45
  PaymentTestModeOriginal: () => PaymentTestMode,
46
+ PriceAdjustmentReasonOriginal: () => PriceAdjustmentReason,
46
47
  RefundReasonOriginal: () => RefundReason,
47
48
  RequestedFieldsOriginal: () => RequestedFields,
48
49
  ResumeAtOriginal: () => ResumeAt,
@@ -61,14 +62,20 @@ __export(meta_exports, {
61
62
  cancelSubscription: () => cancelSubscription2,
62
63
  countSubscriptions: () => countSubscriptions2,
63
64
  customerAllowedActions: () => customerAllowedActions2,
65
+ customerCancelScheduledPause: () => customerCancelScheduledPause2,
66
+ customerCancelScheduledSkip: () => customerCancelScheduledSkip2,
64
67
  customerCancelSubscription: () => customerCancelSubscription2,
65
68
  customerExtendSubscription: () => customerExtendSubscription2,
66
69
  customerGetSubscription: () => customerGetSubscription2,
67
70
  customerInitiatePaymentMethodSetup: () => customerInitiatePaymentMethodSetup2,
68
71
  customerListUpcomingCharges: () => customerListUpcomingCharges2,
72
+ customerPauseSubscription: () => customerPauseSubscription2,
69
73
  customerQuerySubscriptions: () => customerQuerySubscriptions2,
74
+ customerResumeSubscription: () => customerResumeSubscription2,
75
+ customerSkipCycle: () => customerSkipCycle2,
70
76
  customerTurnOffSubscriptionAutoRenewal: () => customerTurnOffSubscriptionAutoRenewal2,
71
77
  customerTurnOnSubscriptionAutoRenewal: () => customerTurnOnSubscriptionAutoRenewal2,
78
+ customerUpdateBillingDate: () => customerUpdateBillingDate2,
72
79
  customerUpdateSubscriptionPaymentMethod: () => customerUpdateSubscriptionPaymentMethod2,
73
80
  extendSubscription: () => extendSubscription2,
74
81
  getSubscription: () => getSubscription2,
@@ -671,6 +678,348 @@ function customerInitiatePaymentMethodSetup(payload) {
671
678
  }
672
679
  return __customerInitiatePaymentMethodSetup;
673
680
  }
681
+ function customerSkipCycle(payload) {
682
+ function __customerSkipCycle({ host }) {
683
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
684
+ {
685
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
686
+ paths: [
687
+ { path: "pauseAtSchedule.specificDate" },
688
+ { path: "autoResumeAtSchedule.specificDate" }
689
+ ]
690
+ }
691
+ ]);
692
+ const metadata = {
693
+ entityFqdn: "wix.billing.v1.subscription",
694
+ method: "POST",
695
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerSkipCycle",
696
+ packageName: PACKAGE_NAME,
697
+ migrationOptions: {
698
+ optInTransformResponse: true
699
+ },
700
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
701
+ {
702
+ protoPath: "/v1/customer_subscriptions/{id}/skip_cycle",
703
+ data: serializedData,
704
+ host
705
+ }
706
+ ),
707
+ data: serializedData,
708
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
709
+ {
710
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
711
+ paths: [
712
+ { path: "subscription.createdDate" },
713
+ { path: "subscription.updatedDate" },
714
+ { path: "subscription.startDate" },
715
+ { path: "subscription.endDate" },
716
+ { path: "subscription.billingStatus.nextBillingDate" },
717
+ { path: "subscription.billingStatus.previousBillingDate" },
718
+ {
719
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
720
+ },
721
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
722
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
723
+ {
724
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
725
+ },
726
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
727
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
728
+ { path: "subscription.pauseInfo.startDate" },
729
+ { path: "subscription.pauseInfo.resumeDate" },
730
+ { path: "subscription.cancellationInfo.cancellationDate" },
731
+ {
732
+ path: "subscription.specificDatePendingUpdateData.executionDate"
733
+ }
734
+ ]
735
+ }
736
+ ])
737
+ };
738
+ return metadata;
739
+ }
740
+ return __customerSkipCycle;
741
+ }
742
+ function customerCancelScheduledSkip(payload) {
743
+ function __customerCancelScheduledSkip({ host }) {
744
+ const metadata = {
745
+ entityFqdn: "wix.billing.v1.subscription",
746
+ method: "POST",
747
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledSkip",
748
+ packageName: PACKAGE_NAME,
749
+ migrationOptions: {
750
+ optInTransformResponse: true
751
+ },
752
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
753
+ {
754
+ protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_skip",
755
+ data: payload,
756
+ host
757
+ }
758
+ ),
759
+ data: payload,
760
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
761
+ {
762
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
763
+ paths: [
764
+ { path: "subscription.createdDate" },
765
+ { path: "subscription.updatedDate" },
766
+ { path: "subscription.startDate" },
767
+ { path: "subscription.endDate" },
768
+ { path: "subscription.billingStatus.nextBillingDate" },
769
+ { path: "subscription.billingStatus.previousBillingDate" },
770
+ {
771
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
772
+ },
773
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
774
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
775
+ {
776
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
777
+ },
778
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
779
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
780
+ { path: "subscription.pauseInfo.startDate" },
781
+ { path: "subscription.pauseInfo.resumeDate" },
782
+ { path: "subscription.cancellationInfo.cancellationDate" },
783
+ {
784
+ path: "subscription.specificDatePendingUpdateData.executionDate"
785
+ }
786
+ ]
787
+ }
788
+ ])
789
+ };
790
+ return metadata;
791
+ }
792
+ return __customerCancelScheduledSkip;
793
+ }
794
+ function customerPauseSubscription(payload) {
795
+ function __customerPauseSubscription({ host }) {
796
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
797
+ {
798
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
799
+ paths: [
800
+ { path: "pauseAtSchedule.specificDate" },
801
+ { path: "autoResumeAtSchedule.specificDate" }
802
+ ]
803
+ }
804
+ ]);
805
+ const metadata = {
806
+ entityFqdn: "wix.billing.v1.subscription",
807
+ method: "POST",
808
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPauseSubscription",
809
+ packageName: PACKAGE_NAME,
810
+ migrationOptions: {
811
+ optInTransformResponse: true
812
+ },
813
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
814
+ {
815
+ protoPath: "/v1/customer_subscriptions/{id}/pause",
816
+ data: serializedData,
817
+ host
818
+ }
819
+ ),
820
+ data: serializedData,
821
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
822
+ {
823
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
824
+ paths: [
825
+ { path: "subscription.createdDate" },
826
+ { path: "subscription.updatedDate" },
827
+ { path: "subscription.startDate" },
828
+ { path: "subscription.endDate" },
829
+ { path: "subscription.billingStatus.nextBillingDate" },
830
+ { path: "subscription.billingStatus.previousBillingDate" },
831
+ {
832
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
833
+ },
834
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
835
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
836
+ {
837
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
838
+ },
839
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
840
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
841
+ { path: "subscription.pauseInfo.startDate" },
842
+ { path: "subscription.pauseInfo.resumeDate" },
843
+ { path: "subscription.cancellationInfo.cancellationDate" },
844
+ {
845
+ path: "subscription.specificDatePendingUpdateData.executionDate"
846
+ }
847
+ ]
848
+ }
849
+ ])
850
+ };
851
+ return metadata;
852
+ }
853
+ return __customerPauseSubscription;
854
+ }
855
+ function customerResumeSubscription(payload) {
856
+ function __customerResumeSubscription({ host }) {
857
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
858
+ {
859
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
860
+ paths: [{ path: "resumeAtSchedule.specificDate" }]
861
+ }
862
+ ]);
863
+ const metadata = {
864
+ entityFqdn: "wix.billing.v1.subscription",
865
+ method: "POST",
866
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerResumeSubscription",
867
+ packageName: PACKAGE_NAME,
868
+ migrationOptions: {
869
+ optInTransformResponse: true
870
+ },
871
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
872
+ {
873
+ protoPath: "/v1/customer_subscriptions/{id}/resume",
874
+ data: serializedData,
875
+ host
876
+ }
877
+ ),
878
+ data: serializedData,
879
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
880
+ {
881
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
882
+ paths: [
883
+ { path: "subscription.createdDate" },
884
+ { path: "subscription.updatedDate" },
885
+ { path: "subscription.startDate" },
886
+ { path: "subscription.endDate" },
887
+ { path: "subscription.billingStatus.nextBillingDate" },
888
+ { path: "subscription.billingStatus.previousBillingDate" },
889
+ {
890
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
891
+ },
892
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
893
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
894
+ {
895
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
896
+ },
897
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
898
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
899
+ { path: "subscription.pauseInfo.startDate" },
900
+ { path: "subscription.pauseInfo.resumeDate" },
901
+ { path: "subscription.cancellationInfo.cancellationDate" },
902
+ {
903
+ path: "subscription.specificDatePendingUpdateData.executionDate"
904
+ }
905
+ ]
906
+ }
907
+ ])
908
+ };
909
+ return metadata;
910
+ }
911
+ return __customerResumeSubscription;
912
+ }
913
+ function customerCancelScheduledPause(payload) {
914
+ function __customerCancelScheduledPause({ host }) {
915
+ const metadata = {
916
+ entityFqdn: "wix.billing.v1.subscription",
917
+ method: "POST",
918
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledPause",
919
+ packageName: PACKAGE_NAME,
920
+ migrationOptions: {
921
+ optInTransformResponse: true
922
+ },
923
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
924
+ {
925
+ protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_pause",
926
+ data: payload,
927
+ host
928
+ }
929
+ ),
930
+ data: payload,
931
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
932
+ {
933
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
934
+ paths: [
935
+ { path: "subscription.createdDate" },
936
+ { path: "subscription.updatedDate" },
937
+ { path: "subscription.startDate" },
938
+ { path: "subscription.endDate" },
939
+ { path: "subscription.billingStatus.nextBillingDate" },
940
+ { path: "subscription.billingStatus.previousBillingDate" },
941
+ {
942
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
943
+ },
944
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
945
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
946
+ {
947
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
948
+ },
949
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
950
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
951
+ { path: "subscription.pauseInfo.startDate" },
952
+ { path: "subscription.pauseInfo.resumeDate" },
953
+ { path: "subscription.cancellationInfo.cancellationDate" },
954
+ {
955
+ path: "subscription.specificDatePendingUpdateData.executionDate"
956
+ }
957
+ ]
958
+ }
959
+ ])
960
+ };
961
+ return metadata;
962
+ }
963
+ return __customerCancelScheduledPause;
964
+ }
965
+ function customerUpdateBillingDate(payload) {
966
+ function __customerUpdateBillingDate({ host }) {
967
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
968
+ {
969
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
970
+ paths: [{ path: "billingDate" }]
971
+ }
972
+ ]);
973
+ const metadata = {
974
+ entityFqdn: "wix.billing.v1.subscription",
975
+ method: "POST",
976
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerUpdateBillingDate",
977
+ packageName: PACKAGE_NAME,
978
+ migrationOptions: {
979
+ optInTransformResponse: true
980
+ },
981
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
982
+ {
983
+ protoPath: "/v1/customer_subscriptions/{id}/update_billing_date",
984
+ data: serializedData,
985
+ host
986
+ }
987
+ ),
988
+ data: serializedData,
989
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
990
+ {
991
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
992
+ paths: [
993
+ { path: "subscription.createdDate" },
994
+ { path: "subscription.updatedDate" },
995
+ { path: "subscription.startDate" },
996
+ { path: "subscription.endDate" },
997
+ { path: "subscription.billingStatus.nextBillingDate" },
998
+ { path: "subscription.billingStatus.previousBillingDate" },
999
+ {
1000
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1001
+ },
1002
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
1003
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
1004
+ {
1005
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1006
+ },
1007
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
1008
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
1009
+ { path: "subscription.pauseInfo.startDate" },
1010
+ { path: "subscription.pauseInfo.resumeDate" },
1011
+ { path: "subscription.cancellationInfo.cancellationDate" },
1012
+ {
1013
+ path: "subscription.specificDatePendingUpdateData.executionDate"
1014
+ }
1015
+ ]
1016
+ }
1017
+ ])
1018
+ };
1019
+ return metadata;
1020
+ }
1021
+ return __customerUpdateBillingDate;
1022
+ }
674
1023
  function payCycle(payload) {
675
1024
  function __payCycle({ host }) {
676
1025
  const metadata = {
@@ -3335,6 +3684,8 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
3335
3684
  ActionType2["UPM"] = "UPM";
3336
3685
  ActionType2["UPDATE_BILLING_DATE"] = "UPDATE_BILLING_DATE";
3337
3686
  ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
3687
+ ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
3688
+ ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
3338
3689
  return ActionType2;
3339
3690
  })(ActionType || {});
3340
3691
  var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
@@ -3402,6 +3753,7 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
3402
3753
  InvoiceStatus2["ATTEMPT_FAILED"] = "ATTEMPT_FAILED";
3403
3754
  InvoiceStatus2["CANCELED"] = "CANCELED";
3404
3755
  InvoiceStatus2["REFUNDED"] = "REFUNDED";
3756
+ InvoiceStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3405
3757
  return InvoiceStatus2;
3406
3758
  })(InvoiceStatus || {});
3407
3759
  var CollectionMethod = /* @__PURE__ */ ((CollectionMethod2) => {
@@ -3426,8 +3778,19 @@ var PaymentAttemptStatus = /* @__PURE__ */ ((PaymentAttemptStatus2) => {
3426
3778
  PaymentAttemptStatus2["TECHNICAL_FAILURE"] = "TECHNICAL_FAILURE";
3427
3779
  PaymentAttemptStatus2["CANCELED"] = "CANCELED";
3428
3780
  PaymentAttemptStatus2["PENDING"] = "PENDING";
3781
+ PaymentAttemptStatus2["REFUNDED"] = "REFUNDED";
3782
+ PaymentAttemptStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3429
3783
  return PaymentAttemptStatus2;
3430
3784
  })(PaymentAttemptStatus || {});
3785
+ var PriceAdjustmentReason = /* @__PURE__ */ ((PriceAdjustmentReason2) => {
3786
+ PriceAdjustmentReason2["PRICE_ADJUSTMENT_REASON_UNSPECIFIED"] = "PRICE_ADJUSTMENT_REASON_UNSPECIFIED";
3787
+ PriceAdjustmentReason2["BILLING_DATE_CHANGE"] = "BILLING_DATE_CHANGE";
3788
+ PriceAdjustmentReason2["PLAN_CHANGE_PRORATION"] = "PLAN_CHANGE_PRORATION";
3789
+ PriceAdjustmentReason2["CYCLE_CHANGE_PRORATION"] = "CYCLE_CHANGE_PRORATION";
3790
+ PriceAdjustmentReason2["QUANTITY_CHANGE_PRORATION"] = "QUANTITY_CHANGE_PRORATION";
3791
+ PriceAdjustmentReason2["CUSTOM_PRICE_ADJUSTMENT"] = "CUSTOM_PRICE_ADJUSTMENT";
3792
+ return PriceAdjustmentReason2;
3793
+ })(PriceAdjustmentReason || {});
3431
3794
  var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
3432
3795
  RefundReason2["UNKNOWN_REFUND_REASON"] = "UNKNOWN_REFUND_REASON";
3433
3796
  RefundReason2["DUPLICATE_CHARGE"] = "DUPLICATE_CHARGE";
@@ -3694,6 +4057,114 @@ function customerInitiatePaymentMethodSetup2() {
3694
4057
  __originalResponseType: null
3695
4058
  };
3696
4059
  }
4060
+ function customerSkipCycle2() {
4061
+ const payload = { id: ":id" };
4062
+ const getRequestOptions = customerSkipCycle(payload);
4063
+ const getUrl = (context) => {
4064
+ const { url } = getRequestOptions(context);
4065
+ return url;
4066
+ };
4067
+ return {
4068
+ getUrl,
4069
+ httpMethod: "POST",
4070
+ path: "/v1/customer_subscriptions/{id}/skip_cycle",
4071
+ pathParams: { id: "id" },
4072
+ __requestType: null,
4073
+ __originalRequestType: null,
4074
+ __responseType: null,
4075
+ __originalResponseType: null
4076
+ };
4077
+ }
4078
+ function customerCancelScheduledSkip2() {
4079
+ const payload = { id: ":id" };
4080
+ const getRequestOptions = customerCancelScheduledSkip(payload);
4081
+ const getUrl = (context) => {
4082
+ const { url } = getRequestOptions(context);
4083
+ return url;
4084
+ };
4085
+ return {
4086
+ getUrl,
4087
+ httpMethod: "POST",
4088
+ path: "/v1/customer_subscriptions/{id}/cancel_scheduled_skip",
4089
+ pathParams: { id: "id" },
4090
+ __requestType: null,
4091
+ __originalRequestType: null,
4092
+ __responseType: null,
4093
+ __originalResponseType: null
4094
+ };
4095
+ }
4096
+ function customerPauseSubscription2() {
4097
+ const payload = { id: ":id" };
4098
+ const getRequestOptions = customerPauseSubscription(payload);
4099
+ const getUrl = (context) => {
4100
+ const { url } = getRequestOptions(context);
4101
+ return url;
4102
+ };
4103
+ return {
4104
+ getUrl,
4105
+ httpMethod: "POST",
4106
+ path: "/v1/customer_subscriptions/{id}/pause",
4107
+ pathParams: { id: "id" },
4108
+ __requestType: null,
4109
+ __originalRequestType: null,
4110
+ __responseType: null,
4111
+ __originalResponseType: null
4112
+ };
4113
+ }
4114
+ function customerResumeSubscription2() {
4115
+ const payload = { id: ":id" };
4116
+ const getRequestOptions = customerResumeSubscription(payload);
4117
+ const getUrl = (context) => {
4118
+ const { url } = getRequestOptions(context);
4119
+ return url;
4120
+ };
4121
+ return {
4122
+ getUrl,
4123
+ httpMethod: "POST",
4124
+ path: "/v1/customer_subscriptions/{id}/resume",
4125
+ pathParams: { id: "id" },
4126
+ __requestType: null,
4127
+ __originalRequestType: null,
4128
+ __responseType: null,
4129
+ __originalResponseType: null
4130
+ };
4131
+ }
4132
+ function customerCancelScheduledPause2() {
4133
+ const payload = { id: ":id" };
4134
+ const getRequestOptions = customerCancelScheduledPause(payload);
4135
+ const getUrl = (context) => {
4136
+ const { url } = getRequestOptions(context);
4137
+ return url;
4138
+ };
4139
+ return {
4140
+ getUrl,
4141
+ httpMethod: "POST",
4142
+ path: "/v1/customer_subscriptions/{id}/cancel_scheduled_pause",
4143
+ pathParams: { id: "id" },
4144
+ __requestType: null,
4145
+ __originalRequestType: null,
4146
+ __responseType: null,
4147
+ __originalResponseType: null
4148
+ };
4149
+ }
4150
+ function customerUpdateBillingDate2() {
4151
+ const payload = { id: ":id" };
4152
+ const getRequestOptions = customerUpdateBillingDate(payload);
4153
+ const getUrl = (context) => {
4154
+ const { url } = getRequestOptions(context);
4155
+ return url;
4156
+ };
4157
+ return {
4158
+ getUrl,
4159
+ httpMethod: "POST",
4160
+ path: "/v1/customer_subscriptions/{id}/update_billing_date",
4161
+ pathParams: { id: "id" },
4162
+ __requestType: null,
4163
+ __originalRequestType: null,
4164
+ __responseType: null,
4165
+ __originalResponseType: null
4166
+ };
4167
+ }
3697
4168
  function payCycle2() {
3698
4169
  const payload = { subscriptionId: ":subscriptionId" };
3699
4170
  const getRequestOptions = payCycle(payload);
@@ -4133,6 +4604,7 @@ function listSubscriptionHistory2() {
4133
4604
  PaymentStatusEnumPaymentStatusOriginal,
4134
4605
  PaymentStatusOriginal,
4135
4606
  PaymentTestModeOriginal,
4607
+ PriceAdjustmentReasonOriginal,
4136
4608
  RefundReasonOriginal,
4137
4609
  RequestedFieldsOriginal,
4138
4610
  ResumeAtOriginal,
@@ -4151,14 +4623,20 @@ function listSubscriptionHistory2() {
4151
4623
  cancelSubscription,
4152
4624
  countSubscriptions,
4153
4625
  customerAllowedActions,
4626
+ customerCancelScheduledPause,
4627
+ customerCancelScheduledSkip,
4154
4628
  customerCancelSubscription,
4155
4629
  customerExtendSubscription,
4156
4630
  customerGetSubscription,
4157
4631
  customerInitiatePaymentMethodSetup,
4158
4632
  customerListUpcomingCharges,
4633
+ customerPauseSubscription,
4159
4634
  customerQuerySubscriptions,
4635
+ customerResumeSubscription,
4636
+ customerSkipCycle,
4160
4637
  customerTurnOffSubscriptionAutoRenewal,
4161
4638
  customerTurnOnSubscriptionAutoRenewal,
4639
+ customerUpdateBillingDate,
4162
4640
  customerUpdateSubscriptionPaymentMethod,
4163
4641
  extendSubscription,
4164
4642
  getSubscription,