@wix/auto_sdk_subscription_subscriptions 1.0.40 → 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 +4 -4
@@ -590,6 +590,348 @@ function customerInitiatePaymentMethodSetup(payload) {
590
590
  }
591
591
  return __customerInitiatePaymentMethodSetup;
592
592
  }
593
+ function customerSkipCycle(payload) {
594
+ function __customerSkipCycle({ host }) {
595
+ const serializedData = transformPaths(payload, [
596
+ {
597
+ transformFn: transformSDKTimestampToRESTTimestamp,
598
+ paths: [
599
+ { path: "pauseAtSchedule.specificDate" },
600
+ { path: "autoResumeAtSchedule.specificDate" }
601
+ ]
602
+ }
603
+ ]);
604
+ const metadata = {
605
+ entityFqdn: "wix.billing.v1.subscription",
606
+ method: "POST",
607
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerSkipCycle",
608
+ packageName: PACKAGE_NAME,
609
+ migrationOptions: {
610
+ optInTransformResponse: true
611
+ },
612
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
613
+ {
614
+ protoPath: "/v1/customer_subscriptions/{id}/skip_cycle",
615
+ data: serializedData,
616
+ host
617
+ }
618
+ ),
619
+ data: serializedData,
620
+ transformResponse: (payload2) => transformPaths(payload2, [
621
+ {
622
+ transformFn: transformRESTTimestampToSDKTimestamp,
623
+ paths: [
624
+ { path: "subscription.createdDate" },
625
+ { path: "subscription.updatedDate" },
626
+ { path: "subscription.startDate" },
627
+ { path: "subscription.endDate" },
628
+ { path: "subscription.billingStatus.nextBillingDate" },
629
+ { path: "subscription.billingStatus.previousBillingDate" },
630
+ {
631
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
632
+ },
633
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
634
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
635
+ {
636
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
637
+ },
638
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
639
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
640
+ { path: "subscription.pauseInfo.startDate" },
641
+ { path: "subscription.pauseInfo.resumeDate" },
642
+ { path: "subscription.cancellationInfo.cancellationDate" },
643
+ {
644
+ path: "subscription.specificDatePendingUpdateData.executionDate"
645
+ }
646
+ ]
647
+ }
648
+ ])
649
+ };
650
+ return metadata;
651
+ }
652
+ return __customerSkipCycle;
653
+ }
654
+ function customerCancelScheduledSkip(payload) {
655
+ function __customerCancelScheduledSkip({ host }) {
656
+ const metadata = {
657
+ entityFqdn: "wix.billing.v1.subscription",
658
+ method: "POST",
659
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledSkip",
660
+ packageName: PACKAGE_NAME,
661
+ migrationOptions: {
662
+ optInTransformResponse: true
663
+ },
664
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
665
+ {
666
+ protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_skip",
667
+ data: payload,
668
+ host
669
+ }
670
+ ),
671
+ data: payload,
672
+ transformResponse: (payload2) => transformPaths(payload2, [
673
+ {
674
+ transformFn: transformRESTTimestampToSDKTimestamp,
675
+ paths: [
676
+ { path: "subscription.createdDate" },
677
+ { path: "subscription.updatedDate" },
678
+ { path: "subscription.startDate" },
679
+ { path: "subscription.endDate" },
680
+ { path: "subscription.billingStatus.nextBillingDate" },
681
+ { path: "subscription.billingStatus.previousBillingDate" },
682
+ {
683
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
684
+ },
685
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
686
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
687
+ {
688
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
689
+ },
690
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
691
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
692
+ { path: "subscription.pauseInfo.startDate" },
693
+ { path: "subscription.pauseInfo.resumeDate" },
694
+ { path: "subscription.cancellationInfo.cancellationDate" },
695
+ {
696
+ path: "subscription.specificDatePendingUpdateData.executionDate"
697
+ }
698
+ ]
699
+ }
700
+ ])
701
+ };
702
+ return metadata;
703
+ }
704
+ return __customerCancelScheduledSkip;
705
+ }
706
+ function customerPauseSubscription(payload) {
707
+ function __customerPauseSubscription({ host }) {
708
+ const serializedData = transformPaths(payload, [
709
+ {
710
+ transformFn: transformSDKTimestampToRESTTimestamp,
711
+ paths: [
712
+ { path: "pauseAtSchedule.specificDate" },
713
+ { path: "autoResumeAtSchedule.specificDate" }
714
+ ]
715
+ }
716
+ ]);
717
+ const metadata = {
718
+ entityFqdn: "wix.billing.v1.subscription",
719
+ method: "POST",
720
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPauseSubscription",
721
+ packageName: PACKAGE_NAME,
722
+ migrationOptions: {
723
+ optInTransformResponse: true
724
+ },
725
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
726
+ {
727
+ protoPath: "/v1/customer_subscriptions/{id}/pause",
728
+ data: serializedData,
729
+ host
730
+ }
731
+ ),
732
+ data: serializedData,
733
+ transformResponse: (payload2) => transformPaths(payload2, [
734
+ {
735
+ transformFn: transformRESTTimestampToSDKTimestamp,
736
+ paths: [
737
+ { path: "subscription.createdDate" },
738
+ { path: "subscription.updatedDate" },
739
+ { path: "subscription.startDate" },
740
+ { path: "subscription.endDate" },
741
+ { path: "subscription.billingStatus.nextBillingDate" },
742
+ { path: "subscription.billingStatus.previousBillingDate" },
743
+ {
744
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
745
+ },
746
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
747
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
748
+ {
749
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
750
+ },
751
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
752
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
753
+ { path: "subscription.pauseInfo.startDate" },
754
+ { path: "subscription.pauseInfo.resumeDate" },
755
+ { path: "subscription.cancellationInfo.cancellationDate" },
756
+ {
757
+ path: "subscription.specificDatePendingUpdateData.executionDate"
758
+ }
759
+ ]
760
+ }
761
+ ])
762
+ };
763
+ return metadata;
764
+ }
765
+ return __customerPauseSubscription;
766
+ }
767
+ function customerResumeSubscription(payload) {
768
+ function __customerResumeSubscription({ host }) {
769
+ const serializedData = transformPaths(payload, [
770
+ {
771
+ transformFn: transformSDKTimestampToRESTTimestamp,
772
+ paths: [{ path: "resumeAtSchedule.specificDate" }]
773
+ }
774
+ ]);
775
+ const metadata = {
776
+ entityFqdn: "wix.billing.v1.subscription",
777
+ method: "POST",
778
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerResumeSubscription",
779
+ packageName: PACKAGE_NAME,
780
+ migrationOptions: {
781
+ optInTransformResponse: true
782
+ },
783
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
784
+ {
785
+ protoPath: "/v1/customer_subscriptions/{id}/resume",
786
+ data: serializedData,
787
+ host
788
+ }
789
+ ),
790
+ data: serializedData,
791
+ transformResponse: (payload2) => transformPaths(payload2, [
792
+ {
793
+ transformFn: transformRESTTimestampToSDKTimestamp,
794
+ paths: [
795
+ { path: "subscription.createdDate" },
796
+ { path: "subscription.updatedDate" },
797
+ { path: "subscription.startDate" },
798
+ { path: "subscription.endDate" },
799
+ { path: "subscription.billingStatus.nextBillingDate" },
800
+ { path: "subscription.billingStatus.previousBillingDate" },
801
+ {
802
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
803
+ },
804
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
805
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
806
+ {
807
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
808
+ },
809
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
810
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
811
+ { path: "subscription.pauseInfo.startDate" },
812
+ { path: "subscription.pauseInfo.resumeDate" },
813
+ { path: "subscription.cancellationInfo.cancellationDate" },
814
+ {
815
+ path: "subscription.specificDatePendingUpdateData.executionDate"
816
+ }
817
+ ]
818
+ }
819
+ ])
820
+ };
821
+ return metadata;
822
+ }
823
+ return __customerResumeSubscription;
824
+ }
825
+ function customerCancelScheduledPause(payload) {
826
+ function __customerCancelScheduledPause({ host }) {
827
+ const metadata = {
828
+ entityFqdn: "wix.billing.v1.subscription",
829
+ method: "POST",
830
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledPause",
831
+ packageName: PACKAGE_NAME,
832
+ migrationOptions: {
833
+ optInTransformResponse: true
834
+ },
835
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
836
+ {
837
+ protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_pause",
838
+ data: payload,
839
+ host
840
+ }
841
+ ),
842
+ data: payload,
843
+ transformResponse: (payload2) => transformPaths(payload2, [
844
+ {
845
+ transformFn: transformRESTTimestampToSDKTimestamp,
846
+ paths: [
847
+ { path: "subscription.createdDate" },
848
+ { path: "subscription.updatedDate" },
849
+ { path: "subscription.startDate" },
850
+ { path: "subscription.endDate" },
851
+ { path: "subscription.billingStatus.nextBillingDate" },
852
+ { path: "subscription.billingStatus.previousBillingDate" },
853
+ {
854
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
855
+ },
856
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
857
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
858
+ {
859
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
860
+ },
861
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
862
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
863
+ { path: "subscription.pauseInfo.startDate" },
864
+ { path: "subscription.pauseInfo.resumeDate" },
865
+ { path: "subscription.cancellationInfo.cancellationDate" },
866
+ {
867
+ path: "subscription.specificDatePendingUpdateData.executionDate"
868
+ }
869
+ ]
870
+ }
871
+ ])
872
+ };
873
+ return metadata;
874
+ }
875
+ return __customerCancelScheduledPause;
876
+ }
877
+ function customerUpdateBillingDate(payload) {
878
+ function __customerUpdateBillingDate({ host }) {
879
+ const serializedData = transformPaths(payload, [
880
+ {
881
+ transformFn: transformSDKTimestampToRESTTimestamp,
882
+ paths: [{ path: "billingDate" }]
883
+ }
884
+ ]);
885
+ const metadata = {
886
+ entityFqdn: "wix.billing.v1.subscription",
887
+ method: "POST",
888
+ methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerUpdateBillingDate",
889
+ packageName: PACKAGE_NAME,
890
+ migrationOptions: {
891
+ optInTransformResponse: true
892
+ },
893
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
894
+ {
895
+ protoPath: "/v1/customer_subscriptions/{id}/update_billing_date",
896
+ data: serializedData,
897
+ host
898
+ }
899
+ ),
900
+ data: serializedData,
901
+ transformResponse: (payload2) => transformPaths(payload2, [
902
+ {
903
+ transformFn: transformRESTTimestampToSDKTimestamp,
904
+ paths: [
905
+ { path: "subscription.createdDate" },
906
+ { path: "subscription.updatedDate" },
907
+ { path: "subscription.startDate" },
908
+ { path: "subscription.endDate" },
909
+ { path: "subscription.billingStatus.nextBillingDate" },
910
+ { path: "subscription.billingStatus.previousBillingDate" },
911
+ {
912
+ path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
913
+ },
914
+ { path: "subscription.billingStatus.freeTrialData.startDate" },
915
+ { path: "subscription.billingStatus.freeTrialData.endDate" },
916
+ {
917
+ path: "subscription.billingStatus.updateBillingDateData.paidUntil"
918
+ },
919
+ { path: "subscription.billingStatus.gracePeriodData.startDate" },
920
+ { path: "subscription.billingStatus.gracePeriodData.endDate" },
921
+ { path: "subscription.pauseInfo.startDate" },
922
+ { path: "subscription.pauseInfo.resumeDate" },
923
+ { path: "subscription.cancellationInfo.cancellationDate" },
924
+ {
925
+ path: "subscription.specificDatePendingUpdateData.executionDate"
926
+ }
927
+ ]
928
+ }
929
+ ])
930
+ };
931
+ return metadata;
932
+ }
933
+ return __customerUpdateBillingDate;
934
+ }
593
935
  function payCycle(payload) {
594
936
  function __payCycle({ host }) {
595
937
  const metadata = {
@@ -3257,6 +3599,8 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
3257
3599
  ActionType2["UPM"] = "UPM";
3258
3600
  ActionType2["UPDATE_BILLING_DATE"] = "UPDATE_BILLING_DATE";
3259
3601
  ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
3602
+ ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
3603
+ ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
3260
3604
  return ActionType2;
3261
3605
  })(ActionType || {});
3262
3606
  var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
@@ -3324,6 +3668,7 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
3324
3668
  InvoiceStatus2["ATTEMPT_FAILED"] = "ATTEMPT_FAILED";
3325
3669
  InvoiceStatus2["CANCELED"] = "CANCELED";
3326
3670
  InvoiceStatus2["REFUNDED"] = "REFUNDED";
3671
+ InvoiceStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3327
3672
  return InvoiceStatus2;
3328
3673
  })(InvoiceStatus || {});
3329
3674
  var CollectionMethod = /* @__PURE__ */ ((CollectionMethod2) => {
@@ -3348,8 +3693,19 @@ var PaymentAttemptStatus = /* @__PURE__ */ ((PaymentAttemptStatus2) => {
3348
3693
  PaymentAttemptStatus2["TECHNICAL_FAILURE"] = "TECHNICAL_FAILURE";
3349
3694
  PaymentAttemptStatus2["CANCELED"] = "CANCELED";
3350
3695
  PaymentAttemptStatus2["PENDING"] = "PENDING";
3696
+ PaymentAttemptStatus2["REFUNDED"] = "REFUNDED";
3697
+ PaymentAttemptStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3351
3698
  return PaymentAttemptStatus2;
3352
3699
  })(PaymentAttemptStatus || {});
3700
+ var PriceAdjustmentReason = /* @__PURE__ */ ((PriceAdjustmentReason2) => {
3701
+ PriceAdjustmentReason2["PRICE_ADJUSTMENT_REASON_UNSPECIFIED"] = "PRICE_ADJUSTMENT_REASON_UNSPECIFIED";
3702
+ PriceAdjustmentReason2["BILLING_DATE_CHANGE"] = "BILLING_DATE_CHANGE";
3703
+ PriceAdjustmentReason2["PLAN_CHANGE_PRORATION"] = "PLAN_CHANGE_PRORATION";
3704
+ PriceAdjustmentReason2["CYCLE_CHANGE_PRORATION"] = "CYCLE_CHANGE_PRORATION";
3705
+ PriceAdjustmentReason2["QUANTITY_CHANGE_PRORATION"] = "QUANTITY_CHANGE_PRORATION";
3706
+ PriceAdjustmentReason2["CUSTOM_PRICE_ADJUSTMENT"] = "CUSTOM_PRICE_ADJUSTMENT";
3707
+ return PriceAdjustmentReason2;
3708
+ })(PriceAdjustmentReason || {});
3353
3709
  var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
3354
3710
  RefundReason2["UNKNOWN_REFUND_REASON"] = "UNKNOWN_REFUND_REASON";
3355
3711
  RefundReason2["DUPLICATE_CHARGE"] = "DUPLICATE_CHARGE";
@@ -3450,22 +3806,212 @@ async function customerGetSubscription2(_id) {
3450
3806
  err,
3451
3807
  {
3452
3808
  spreadPathsToArguments: {},
3453
- explicitPathsToArguments: { id: "$[0]" },
3809
+ explicitPathsToArguments: { id: "$[0]" },
3810
+ singleArgumentUnchanged: false
3811
+ },
3812
+ ["_id"]
3813
+ );
3814
+ sideEffects?.onError?.(err);
3815
+ throw transformedError;
3816
+ }
3817
+ }
3818
+ async function customerCancelSubscription2(_id, options) {
3819
+ const { httpClient, sideEffects } = arguments[2];
3820
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3821
+ id: _id,
3822
+ reason: options?.reason
3823
+ });
3824
+ const reqOpts = customerCancelSubscription(payload);
3825
+ sideEffects?.onSiteCall?.();
3826
+ try {
3827
+ const result = await httpClient.request(reqOpts);
3828
+ sideEffects?.onSuccess?.(result);
3829
+ return renameKeysFromRESTResponseToSDKResponse(
3830
+ transformPaths2(result.data, [
3831
+ {
3832
+ transformFn: transformRESTAddressToSDKAddress,
3833
+ paths: [
3834
+ { path: "subscription.billingSettings.billingAddress.address" },
3835
+ { path: "subscription.shippingAddress.address" }
3836
+ ]
3837
+ }
3838
+ ])
3839
+ );
3840
+ } catch (err) {
3841
+ const transformedError = sdkTransformError(
3842
+ err,
3843
+ {
3844
+ spreadPathsToArguments: {},
3845
+ explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
3846
+ singleArgumentUnchanged: false
3847
+ },
3848
+ ["_id", "options"]
3849
+ );
3850
+ sideEffects?.onError?.(err);
3851
+ throw transformedError;
3852
+ }
3853
+ }
3854
+ async function customerTurnOnSubscriptionAutoRenewal2(_id, options) {
3855
+ const { httpClient, sideEffects } = arguments[2];
3856
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3857
+ id: _id,
3858
+ reason: options?.reason
3859
+ });
3860
+ const reqOpts = customerTurnOnSubscriptionAutoRenewal(
3861
+ payload
3862
+ );
3863
+ sideEffects?.onSiteCall?.();
3864
+ try {
3865
+ const result = await httpClient.request(reqOpts);
3866
+ sideEffects?.onSuccess?.(result);
3867
+ return renameKeysFromRESTResponseToSDKResponse(
3868
+ transformPaths2(result.data, [
3869
+ {
3870
+ transformFn: transformRESTAddressToSDKAddress,
3871
+ paths: [
3872
+ { path: "subscription.billingSettings.billingAddress.address" },
3873
+ { path: "subscription.shippingAddress.address" }
3874
+ ]
3875
+ }
3876
+ ])
3877
+ );
3878
+ } catch (err) {
3879
+ const transformedError = sdkTransformError(
3880
+ err,
3881
+ {
3882
+ spreadPathsToArguments: {},
3883
+ explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
3884
+ singleArgumentUnchanged: false
3885
+ },
3886
+ ["_id", "options"]
3887
+ );
3888
+ sideEffects?.onError?.(err);
3889
+ throw transformedError;
3890
+ }
3891
+ }
3892
+ async function customerTurnOffSubscriptionAutoRenewal2(_id, options) {
3893
+ const { httpClient, sideEffects } = arguments[2];
3894
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3895
+ id: _id,
3896
+ reason: options?.reason
3897
+ });
3898
+ const reqOpts = customerTurnOffSubscriptionAutoRenewal(
3899
+ payload
3900
+ );
3901
+ sideEffects?.onSiteCall?.();
3902
+ try {
3903
+ const result = await httpClient.request(reqOpts);
3904
+ sideEffects?.onSuccess?.(result);
3905
+ return renameKeysFromRESTResponseToSDKResponse(
3906
+ transformPaths2(result.data, [
3907
+ {
3908
+ transformFn: transformRESTAddressToSDKAddress,
3909
+ paths: [
3910
+ { path: "subscription.billingSettings.billingAddress.address" },
3911
+ { path: "subscription.shippingAddress.address" }
3912
+ ]
3913
+ }
3914
+ ])
3915
+ );
3916
+ } catch (err) {
3917
+ const transformedError = sdkTransformError(
3918
+ err,
3919
+ {
3920
+ spreadPathsToArguments: {},
3921
+ explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
3922
+ singleArgumentUnchanged: false
3923
+ },
3924
+ ["_id", "options"]
3925
+ );
3926
+ sideEffects?.onError?.(err);
3927
+ throw transformedError;
3928
+ }
3929
+ }
3930
+ async function customerExtendSubscription2(_id, options) {
3931
+ const { httpClient, sideEffects } = arguments[2];
3932
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3933
+ id: _id,
3934
+ reason: options?.reason,
3935
+ billingCyclesToAdd: options?.billingCyclesToAdd
3936
+ });
3937
+ const reqOpts = customerExtendSubscription(payload);
3938
+ sideEffects?.onSiteCall?.();
3939
+ try {
3940
+ const result = await httpClient.request(reqOpts);
3941
+ sideEffects?.onSuccess?.(result);
3942
+ return renameKeysFromRESTResponseToSDKResponse(
3943
+ transformPaths2(result.data, [
3944
+ {
3945
+ transformFn: transformRESTAddressToSDKAddress,
3946
+ paths: [
3947
+ { path: "subscription.billingSettings.billingAddress.address" },
3948
+ { path: "subscription.shippingAddress.address" }
3949
+ ]
3950
+ }
3951
+ ])
3952
+ );
3953
+ } catch (err) {
3954
+ const transformedError = sdkTransformError(
3955
+ err,
3956
+ {
3957
+ spreadPathsToArguments: {},
3958
+ explicitPathsToArguments: {
3959
+ id: "$[0]",
3960
+ reason: "$[1].reason",
3961
+ billingCyclesToAdd: "$[1].billingCyclesToAdd"
3962
+ },
3963
+ singleArgumentUnchanged: false
3964
+ },
3965
+ ["_id", "options"]
3966
+ );
3967
+ sideEffects?.onError?.(err);
3968
+ throw transformedError;
3969
+ }
3970
+ }
3971
+ async function customerQuerySubscriptions2(options) {
3972
+ const { httpClient, sideEffects } = arguments[1];
3973
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3974
+ query: options?.query
3975
+ });
3976
+ const reqOpts = customerQuerySubscriptions(payload);
3977
+ sideEffects?.onSiteCall?.();
3978
+ try {
3979
+ const result = await httpClient.request(reqOpts);
3980
+ sideEffects?.onSuccess?.(result);
3981
+ return renameKeysFromRESTResponseToSDKResponse(
3982
+ transformPaths2(result.data, [
3983
+ {
3984
+ transformFn: transformRESTAddressToSDKAddress,
3985
+ paths: [
3986
+ { path: "subscriptions.billingSettings.billingAddress.address" },
3987
+ { path: "subscriptions.shippingAddress.address" }
3988
+ ]
3989
+ }
3990
+ ])
3991
+ );
3992
+ } catch (err) {
3993
+ const transformedError = sdkTransformError(
3994
+ err,
3995
+ {
3996
+ spreadPathsToArguments: {},
3997
+ explicitPathsToArguments: { query: "$[0].query" },
3454
3998
  singleArgumentUnchanged: false
3455
3999
  },
3456
- ["_id"]
4000
+ ["options"]
3457
4001
  );
3458
4002
  sideEffects?.onError?.(err);
3459
4003
  throw transformedError;
3460
4004
  }
3461
4005
  }
3462
- async function customerCancelSubscription2(_id, options) {
4006
+ async function customerUpdateSubscriptionPaymentMethod2(_id, paymentMethodId) {
3463
4007
  const { httpClient, sideEffects } = arguments[2];
3464
4008
  const payload = renameKeysFromSDKRequestToRESTRequest({
3465
4009
  id: _id,
3466
- reason: options?.reason
4010
+ paymentMethodId
3467
4011
  });
3468
- const reqOpts = customerCancelSubscription(payload);
4012
+ const reqOpts = customerUpdateSubscriptionPaymentMethod(
4013
+ payload
4014
+ );
3469
4015
  sideEffects?.onSiteCall?.();
3470
4016
  try {
3471
4017
  const result = await httpClient.request(reqOpts);
@@ -3486,83 +4032,86 @@ async function customerCancelSubscription2(_id, options) {
3486
4032
  err,
3487
4033
  {
3488
4034
  spreadPathsToArguments: {},
3489
- explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
4035
+ explicitPathsToArguments: { id: "$[0]", paymentMethodId: "$[1]" },
3490
4036
  singleArgumentUnchanged: false
3491
4037
  },
3492
- ["_id", "options"]
4038
+ ["_id", "paymentMethodId"]
3493
4039
  );
3494
4040
  sideEffects?.onError?.(err);
3495
4041
  throw transformedError;
3496
4042
  }
3497
4043
  }
3498
- async function customerTurnOnSubscriptionAutoRenewal2(_id, options) {
3499
- const { httpClient, sideEffects } = arguments[2];
3500
- const payload = renameKeysFromSDKRequestToRESTRequest({
3501
- id: _id,
3502
- reason: options?.reason
3503
- });
3504
- const reqOpts = customerTurnOnSubscriptionAutoRenewal(
3505
- payload
3506
- );
4044
+ async function customerAllowedActions2(_id) {
4045
+ const { httpClient, sideEffects } = arguments[1];
4046
+ const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
4047
+ const reqOpts = customerAllowedActions(payload);
3507
4048
  sideEffects?.onSiteCall?.();
3508
4049
  try {
3509
4050
  const result = await httpClient.request(reqOpts);
3510
4051
  sideEffects?.onSuccess?.(result);
3511
- return renameKeysFromRESTResponseToSDKResponse(
3512
- transformPaths2(result.data, [
3513
- {
3514
- transformFn: transformRESTAddressToSDKAddress,
3515
- paths: [
3516
- { path: "subscription.billingSettings.billingAddress.address" },
3517
- { path: "subscription.shippingAddress.address" }
3518
- ]
3519
- }
3520
- ])
4052
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
4053
+ } catch (err) {
4054
+ const transformedError = sdkTransformError(
4055
+ err,
4056
+ {
4057
+ spreadPathsToArguments: {},
4058
+ explicitPathsToArguments: { id: "$[0]" },
4059
+ singleArgumentUnchanged: false
4060
+ },
4061
+ ["_id"]
3521
4062
  );
4063
+ sideEffects?.onError?.(err);
4064
+ throw transformedError;
4065
+ }
4066
+ }
4067
+ async function customerListUpcomingCharges2(_id) {
4068
+ const { httpClient, sideEffects } = arguments[1];
4069
+ const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
4070
+ const reqOpts = customerListUpcomingCharges(payload);
4071
+ sideEffects?.onSiteCall?.();
4072
+ try {
4073
+ const result = await httpClient.request(reqOpts);
4074
+ sideEffects?.onSuccess?.(result);
4075
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
3522
4076
  } catch (err) {
3523
4077
  const transformedError = sdkTransformError(
3524
4078
  err,
3525
4079
  {
3526
4080
  spreadPathsToArguments: {},
3527
- explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
4081
+ explicitPathsToArguments: { id: "$[0]" },
3528
4082
  singleArgumentUnchanged: false
3529
4083
  },
3530
- ["_id", "options"]
4084
+ ["_id"]
3531
4085
  );
3532
4086
  sideEffects?.onError?.(err);
3533
4087
  throw transformedError;
3534
4088
  }
3535
4089
  }
3536
- async function customerTurnOffSubscriptionAutoRenewal2(_id, options) {
4090
+ async function customerInitiatePaymentMethodSetup2(_id, options) {
3537
4091
  const { httpClient, sideEffects } = arguments[2];
3538
4092
  const payload = renameKeysFromSDKRequestToRESTRequest({
3539
4093
  id: _id,
3540
- reason: options?.reason
4094
+ paymentMode: options?.paymentMode,
4095
+ paymentSettings: options?.paymentSettings
3541
4096
  });
3542
- const reqOpts = customerTurnOffSubscriptionAutoRenewal(
4097
+ const reqOpts = customerInitiatePaymentMethodSetup(
3543
4098
  payload
3544
4099
  );
3545
4100
  sideEffects?.onSiteCall?.();
3546
4101
  try {
3547
4102
  const result = await httpClient.request(reqOpts);
3548
4103
  sideEffects?.onSuccess?.(result);
3549
- return renameKeysFromRESTResponseToSDKResponse(
3550
- transformPaths2(result.data, [
3551
- {
3552
- transformFn: transformRESTAddressToSDKAddress,
3553
- paths: [
3554
- { path: "subscription.billingSettings.billingAddress.address" },
3555
- { path: "subscription.shippingAddress.address" }
3556
- ]
3557
- }
3558
- ])
3559
- );
4104
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
3560
4105
  } catch (err) {
3561
4106
  const transformedError = sdkTransformError(
3562
4107
  err,
3563
4108
  {
3564
4109
  spreadPathsToArguments: {},
3565
- explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
4110
+ explicitPathsToArguments: {
4111
+ id: "$[0]",
4112
+ paymentMode: "$[1].paymentMode",
4113
+ paymentSettings: "$[1].paymentSettings"
4114
+ },
3566
4115
  singleArgumentUnchanged: false
3567
4116
  },
3568
4117
  ["_id", "options"]
@@ -3571,14 +4120,16 @@ async function customerTurnOffSubscriptionAutoRenewal2(_id, options) {
3571
4120
  throw transformedError;
3572
4121
  }
3573
4122
  }
3574
- async function customerExtendSubscription2(_id, options) {
3575
- const { httpClient, sideEffects } = arguments[2];
4123
+ async function customerSkipCycle2(_id, cyclesToSkip, options) {
4124
+ const { httpClient, sideEffects } = arguments[3];
3576
4125
  const payload = renameKeysFromSDKRequestToRESTRequest({
3577
4126
  id: _id,
3578
- reason: options?.reason,
3579
- billingCyclesToAdd: options?.billingCyclesToAdd
4127
+ cyclesToSkip,
4128
+ pauseAtSchedule: options?.pauseAtSchedule,
4129
+ autoResumeAtSchedule: options?.autoResumeAtSchedule,
4130
+ reason: options?.reason
3580
4131
  });
3581
- const reqOpts = customerExtendSubscription(payload);
4132
+ const reqOpts = customerSkipCycle(payload);
3582
4133
  sideEffects?.onSiteCall?.();
3583
4134
  try {
3584
4135
  const result = await httpClient.request(reqOpts);
@@ -3601,23 +4152,26 @@ async function customerExtendSubscription2(_id, options) {
3601
4152
  spreadPathsToArguments: {},
3602
4153
  explicitPathsToArguments: {
3603
4154
  id: "$[0]",
3604
- reason: "$[1].reason",
3605
- billingCyclesToAdd: "$[1].billingCyclesToAdd"
4155
+ cyclesToSkip: "$[1]",
4156
+ pauseAtSchedule: "$[2].pauseAtSchedule",
4157
+ autoResumeAtSchedule: "$[2].autoResumeAtSchedule",
4158
+ reason: "$[2].reason"
3606
4159
  },
3607
4160
  singleArgumentUnchanged: false
3608
4161
  },
3609
- ["_id", "options"]
4162
+ ["_id", "cyclesToSkip", "options"]
3610
4163
  );
3611
4164
  sideEffects?.onError?.(err);
3612
4165
  throw transformedError;
3613
4166
  }
3614
4167
  }
3615
- async function customerQuerySubscriptions2(options) {
3616
- const { httpClient, sideEffects } = arguments[1];
4168
+ async function customerCancelScheduledSkip2(_id, options) {
4169
+ const { httpClient, sideEffects } = arguments[2];
3617
4170
  const payload = renameKeysFromSDKRequestToRESTRequest({
3618
- query: options?.query
4171
+ id: _id,
4172
+ reason: options?.reason
3619
4173
  });
3620
- const reqOpts = customerQuerySubscriptions(payload);
4174
+ const reqOpts = customerCancelScheduledSkip(payload);
3621
4175
  sideEffects?.onSiteCall?.();
3622
4176
  try {
3623
4177
  const result = await httpClient.request(reqOpts);
@@ -3627,8 +4181,8 @@ async function customerQuerySubscriptions2(options) {
3627
4181
  {
3628
4182
  transformFn: transformRESTAddressToSDKAddress,
3629
4183
  paths: [
3630
- { path: "subscriptions.billingSettings.billingAddress.address" },
3631
- { path: "subscriptions.shippingAddress.address" }
4184
+ { path: "subscription.billingSettings.billingAddress.address" },
4185
+ { path: "subscription.shippingAddress.address" }
3632
4186
  ]
3633
4187
  }
3634
4188
  ])
@@ -3638,24 +4192,26 @@ async function customerQuerySubscriptions2(options) {
3638
4192
  err,
3639
4193
  {
3640
4194
  spreadPathsToArguments: {},
3641
- explicitPathsToArguments: { query: "$[0].query" },
4195
+ explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
3642
4196
  singleArgumentUnchanged: false
3643
4197
  },
3644
- ["options"]
4198
+ ["_id", "options"]
3645
4199
  );
3646
4200
  sideEffects?.onError?.(err);
3647
4201
  throw transformedError;
3648
4202
  }
3649
4203
  }
3650
- async function customerUpdateSubscriptionPaymentMethod2(_id, paymentMethodId) {
4204
+ async function customerPauseSubscription2(_id, options) {
3651
4205
  const { httpClient, sideEffects } = arguments[2];
3652
4206
  const payload = renameKeysFromSDKRequestToRESTRequest({
3653
4207
  id: _id,
3654
- paymentMethodId
4208
+ pausePolicy: options?.pausePolicy,
4209
+ reason: options?.reason,
4210
+ pauseAt: options?.pauseAt,
4211
+ pauseAtSchedule: options?.pauseAtSchedule,
4212
+ autoResumeAtSchedule: options?.autoResumeAtSchedule
3655
4213
  });
3656
- const reqOpts = customerUpdateSubscriptionPaymentMethod(
3657
- payload
3658
- );
4214
+ const reqOpts = customerPauseSubscription(payload);
3659
4215
  sideEffects?.onSiteCall?.();
3660
4216
  try {
3661
4217
  const result = await httpClient.request(reqOpts);
@@ -3676,76 +4232,125 @@ async function customerUpdateSubscriptionPaymentMethod2(_id, paymentMethodId) {
3676
4232
  err,
3677
4233
  {
3678
4234
  spreadPathsToArguments: {},
3679
- explicitPathsToArguments: { id: "$[0]", paymentMethodId: "$[1]" },
4235
+ explicitPathsToArguments: {
4236
+ id: "$[0]",
4237
+ pausePolicy: "$[1].pausePolicy",
4238
+ reason: "$[1].reason",
4239
+ pauseAt: "$[1].pauseAt",
4240
+ pauseAtSchedule: "$[1].pauseAtSchedule",
4241
+ autoResumeAtSchedule: "$[1].autoResumeAtSchedule"
4242
+ },
3680
4243
  singleArgumentUnchanged: false
3681
4244
  },
3682
- ["_id", "paymentMethodId"]
4245
+ ["_id", "options"]
3683
4246
  );
3684
4247
  sideEffects?.onError?.(err);
3685
4248
  throw transformedError;
3686
4249
  }
3687
4250
  }
3688
- async function customerAllowedActions2(_id) {
3689
- const { httpClient, sideEffects } = arguments[1];
3690
- const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
3691
- const reqOpts = customerAllowedActions(payload);
4251
+ async function customerResumeSubscription2(_id, options) {
4252
+ const { httpClient, sideEffects } = arguments[2];
4253
+ const payload = renameKeysFromSDKRequestToRESTRequest({
4254
+ id: _id,
4255
+ reason: options?.reason,
4256
+ resumeAt: options?.resumeAt,
4257
+ resumeAtSchedule: options?.resumeAtSchedule
4258
+ });
4259
+ const reqOpts = customerResumeSubscription(payload);
3692
4260
  sideEffects?.onSiteCall?.();
3693
4261
  try {
3694
4262
  const result = await httpClient.request(reqOpts);
3695
4263
  sideEffects?.onSuccess?.(result);
3696
- return renameKeysFromRESTResponseToSDKResponse(result.data);
4264
+ return renameKeysFromRESTResponseToSDKResponse(
4265
+ transformPaths2(result.data, [
4266
+ {
4267
+ transformFn: transformRESTAddressToSDKAddress,
4268
+ paths: [
4269
+ { path: "subscription.billingSettings.billingAddress.address" },
4270
+ { path: "subscription.shippingAddress.address" }
4271
+ ]
4272
+ }
4273
+ ])
4274
+ );
3697
4275
  } catch (err) {
3698
4276
  const transformedError = sdkTransformError(
3699
4277
  err,
3700
4278
  {
3701
4279
  spreadPathsToArguments: {},
3702
- explicitPathsToArguments: { id: "$[0]" },
4280
+ explicitPathsToArguments: {
4281
+ id: "$[0]",
4282
+ reason: "$[1].reason",
4283
+ resumeAt: "$[1].resumeAt",
4284
+ resumeAtSchedule: "$[1].resumeAtSchedule"
4285
+ },
3703
4286
  singleArgumentUnchanged: false
3704
4287
  },
3705
- ["_id"]
4288
+ ["_id", "options"]
3706
4289
  );
3707
4290
  sideEffects?.onError?.(err);
3708
4291
  throw transformedError;
3709
4292
  }
3710
4293
  }
3711
- async function customerListUpcomingCharges2(_id) {
3712
- const { httpClient, sideEffects } = arguments[1];
3713
- const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
3714
- const reqOpts = customerListUpcomingCharges(payload);
4294
+ async function customerCancelScheduledPause2(_id, options) {
4295
+ const { httpClient, sideEffects } = arguments[2];
4296
+ const payload = renameKeysFromSDKRequestToRESTRequest({
4297
+ id: _id,
4298
+ reason: options?.reason
4299
+ });
4300
+ const reqOpts = customerCancelScheduledPause(payload);
3715
4301
  sideEffects?.onSiteCall?.();
3716
4302
  try {
3717
4303
  const result = await httpClient.request(reqOpts);
3718
4304
  sideEffects?.onSuccess?.(result);
3719
- return renameKeysFromRESTResponseToSDKResponse(result.data);
4305
+ return renameKeysFromRESTResponseToSDKResponse(
4306
+ transformPaths2(result.data, [
4307
+ {
4308
+ transformFn: transformRESTAddressToSDKAddress,
4309
+ paths: [
4310
+ { path: "subscription.billingSettings.billingAddress.address" },
4311
+ { path: "subscription.shippingAddress.address" }
4312
+ ]
4313
+ }
4314
+ ])
4315
+ );
3720
4316
  } catch (err) {
3721
4317
  const transformedError = sdkTransformError(
3722
4318
  err,
3723
4319
  {
3724
4320
  spreadPathsToArguments: {},
3725
- explicitPathsToArguments: { id: "$[0]" },
4321
+ explicitPathsToArguments: { id: "$[0]", reason: "$[1].reason" },
3726
4322
  singleArgumentUnchanged: false
3727
4323
  },
3728
- ["_id"]
4324
+ ["_id", "options"]
3729
4325
  );
3730
4326
  sideEffects?.onError?.(err);
3731
4327
  throw transformedError;
3732
4328
  }
3733
4329
  }
3734
- async function customerInitiatePaymentMethodSetup2(_id, options) {
3735
- const { httpClient, sideEffects } = arguments[2];
4330
+ async function customerUpdateBillingDate2(_id, billingDate, options) {
4331
+ const { httpClient, sideEffects } = arguments[3];
3736
4332
  const payload = renameKeysFromSDKRequestToRESTRequest({
3737
4333
  id: _id,
3738
- paymentMode: options?.paymentMode,
3739
- paymentSettings: options?.paymentSettings
4334
+ billingDate,
4335
+ proration: options?.proration,
4336
+ reason: options?.reason
3740
4337
  });
3741
- const reqOpts = customerInitiatePaymentMethodSetup(
3742
- payload
3743
- );
4338
+ const reqOpts = customerUpdateBillingDate(payload);
3744
4339
  sideEffects?.onSiteCall?.();
3745
4340
  try {
3746
4341
  const result = await httpClient.request(reqOpts);
3747
4342
  sideEffects?.onSuccess?.(result);
3748
- return renameKeysFromRESTResponseToSDKResponse(result.data);
4343
+ return renameKeysFromRESTResponseToSDKResponse(
4344
+ transformPaths2(result.data, [
4345
+ {
4346
+ transformFn: transformRESTAddressToSDKAddress,
4347
+ paths: [
4348
+ { path: "subscription.billingSettings.billingAddress.address" },
4349
+ { path: "subscription.shippingAddress.address" }
4350
+ ]
4351
+ }
4352
+ ])
4353
+ );
3749
4354
  } catch (err) {
3750
4355
  const transformedError = sdkTransformError(
3751
4356
  err,
@@ -3753,12 +4358,13 @@ async function customerInitiatePaymentMethodSetup2(_id, options) {
3753
4358
  spreadPathsToArguments: {},
3754
4359
  explicitPathsToArguments: {
3755
4360
  id: "$[0]",
3756
- paymentMode: "$[1].paymentMode",
3757
- paymentSettings: "$[1].paymentSettings"
4361
+ billingDate: "$[1]",
4362
+ proration: "$[2].proration",
4363
+ reason: "$[2].reason"
3758
4364
  },
3759
4365
  singleArgumentUnchanged: false
3760
4366
  },
3761
- ["_id", "options"]
4367
+ ["_id", "billingDate", "options"]
3762
4368
  );
3763
4369
  sideEffects?.onError?.(err);
3764
4370
  throw transformedError;
@@ -4876,6 +5482,56 @@ function customerInitiatePaymentMethodSetup3(httpClient) {
4876
5482
  { httpClient }
4877
5483
  );
4878
5484
  }
5485
+ function customerSkipCycle3(httpClient) {
5486
+ return (_id, cyclesToSkip, options) => customerSkipCycle2(
5487
+ _id,
5488
+ cyclesToSkip,
5489
+ options,
5490
+ // @ts-ignore
5491
+ { httpClient }
5492
+ );
5493
+ }
5494
+ function customerCancelScheduledSkip3(httpClient) {
5495
+ return (_id, options) => customerCancelScheduledSkip2(
5496
+ _id,
5497
+ options,
5498
+ // @ts-ignore
5499
+ { httpClient }
5500
+ );
5501
+ }
5502
+ function customerPauseSubscription3(httpClient) {
5503
+ return (_id, options) => customerPauseSubscription2(
5504
+ _id,
5505
+ options,
5506
+ // @ts-ignore
5507
+ { httpClient }
5508
+ );
5509
+ }
5510
+ function customerResumeSubscription3(httpClient) {
5511
+ return (_id, options) => customerResumeSubscription2(
5512
+ _id,
5513
+ options,
5514
+ // @ts-ignore
5515
+ { httpClient }
5516
+ );
5517
+ }
5518
+ function customerCancelScheduledPause3(httpClient) {
5519
+ return (_id, options) => customerCancelScheduledPause2(
5520
+ _id,
5521
+ options,
5522
+ // @ts-ignore
5523
+ { httpClient }
5524
+ );
5525
+ }
5526
+ function customerUpdateBillingDate3(httpClient) {
5527
+ return (_id, billingDate, options) => customerUpdateBillingDate2(
5528
+ _id,
5529
+ billingDate,
5530
+ options,
5531
+ // @ts-ignore
5532
+ { httpClient }
5533
+ );
5534
+ }
4879
5535
  function payCycle3(httpClient) {
4880
5536
  return (subscriptionId, options) => payCycle2(
4881
5537
  subscriptionId,
@@ -5677,6 +6333,12 @@ var customerUpdateSubscriptionPaymentMethod4 = /* @__PURE__ */ createRESTModule(
5677
6333
  var customerAllowedActions4 = /* @__PURE__ */ createRESTModule(customerAllowedActions3);
5678
6334
  var customerListUpcomingCharges4 = /* @__PURE__ */ createRESTModule(customerListUpcomingCharges3);
5679
6335
  var customerInitiatePaymentMethodSetup4 = /* @__PURE__ */ createRESTModule(customerInitiatePaymentMethodSetup3);
6336
+ var customerSkipCycle4 = /* @__PURE__ */ createRESTModule(customerSkipCycle3);
6337
+ var customerCancelScheduledSkip4 = /* @__PURE__ */ createRESTModule(customerCancelScheduledSkip3);
6338
+ var customerPauseSubscription4 = /* @__PURE__ */ createRESTModule(customerPauseSubscription3);
6339
+ var customerResumeSubscription4 = /* @__PURE__ */ createRESTModule(customerResumeSubscription3);
6340
+ var customerCancelScheduledPause4 = /* @__PURE__ */ createRESTModule(customerCancelScheduledPause3);
6341
+ var customerUpdateBillingDate4 = /* @__PURE__ */ createRESTModule(customerUpdateBillingDate3);
5680
6342
  var payCycle4 = /* @__PURE__ */ createRESTModule(payCycle3);
5681
6343
  var getSubscription4 = /* @__PURE__ */ createRESTModule(getSubscription3);
5682
6344
  var updateSubscriptionPaymentMethod4 = /* @__PURE__ */ createRESTModule(updateSubscriptionPaymentMethod3);
@@ -5763,6 +6425,7 @@ export {
5763
6425
  PaymentStatus,
5764
6426
  PaymentStatusEnumPaymentStatus,
5765
6427
  PaymentTestMode,
6428
+ PriceAdjustmentReason,
5766
6429
  RefundReason,
5767
6430
  RequestedFields,
5768
6431
  ResumeAt,
@@ -5781,14 +6444,20 @@ export {
5781
6444
  cancelSubscription4 as cancelSubscription,
5782
6445
  countSubscriptions4 as countSubscriptions,
5783
6446
  customerAllowedActions4 as customerAllowedActions,
6447
+ customerCancelScheduledPause4 as customerCancelScheduledPause,
6448
+ customerCancelScheduledSkip4 as customerCancelScheduledSkip,
5784
6449
  customerCancelSubscription4 as customerCancelSubscription,
5785
6450
  customerExtendSubscription4 as customerExtendSubscription,
5786
6451
  customerGetSubscription4 as customerGetSubscription,
5787
6452
  customerInitiatePaymentMethodSetup4 as customerInitiatePaymentMethodSetup,
5788
6453
  customerListUpcomingCharges4 as customerListUpcomingCharges,
6454
+ customerPauseSubscription4 as customerPauseSubscription,
5789
6455
  customerQuerySubscriptions4 as customerQuerySubscriptions,
6456
+ customerResumeSubscription4 as customerResumeSubscription,
6457
+ customerSkipCycle4 as customerSkipCycle,
5790
6458
  customerTurnOffSubscriptionAutoRenewal4 as customerTurnOffSubscriptionAutoRenewal,
5791
6459
  customerTurnOnSubscriptionAutoRenewal4 as customerTurnOnSubscriptionAutoRenewal,
6460
+ customerUpdateBillingDate4 as customerUpdateBillingDate,
5792
6461
  customerUpdateSubscriptionPaymentMethod4 as customerUpdateSubscriptionPaymentMethod,
5793
6462
  extendSubscription4 as extendSubscription,
5794
6463
  getSubscription4 as getSubscription,