@usethrottle/api-client 4.3.0 → 4.4.0
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.
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/services/ApplicationsService.d.ts +19 -0
- package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
- package/dist/generated/services/ApplicationsService.js +41 -0
- package/dist/generated/services/ApplicationsService.js.map +1 -1
- package/dist/generated/services/CartsService.d.ts +117 -0
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts +16 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.js +24 -1
- package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
- package/dist/generated/services/CustomersService.d.ts +24 -0
- package/dist/generated/services/CustomersService.d.ts.map +1 -1
- package/dist/generated/services/CustomersService.js +57 -0
- package/dist/generated/services/CustomersService.js.map +1 -1
- package/dist/generated/services/DefaultService.d.ts +500 -0
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DefaultService.js +1097 -105
- package/dist/generated/services/DefaultService.js.map +1 -1
- package/dist/generated/services/EmbedService.d.ts +10 -0
- package/dist/generated/services/EmbedService.d.ts.map +1 -1
- package/dist/generated/services/EmbedService.js.map +1 -1
- package/dist/generated/services/ExtensionsService.d.ts +164 -1
- package/dist/generated/services/ExtensionsService.d.ts.map +1 -1
- package/dist/generated/services/ExtensionsService.js +192 -1
- package/dist/generated/services/ExtensionsService.js.map +1 -1
- package/dist/generated/services/FulfillmentsService.d.ts +67 -0
- package/dist/generated/services/FulfillmentsService.d.ts.map +1 -1
- package/dist/generated/services/FulfillmentsService.js.map +1 -1
- package/dist/generated/services/ImportsService.d.ts +76 -0
- package/dist/generated/services/ImportsService.d.ts.map +1 -0
- package/dist/generated/services/ImportsService.js +174 -0
- package/dist/generated/services/ImportsService.js.map +1 -0
- package/dist/generated/services/OrdersService.d.ts +284 -23
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +10 -6
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/PartnersService.d.ts +8 -0
- package/dist/generated/services/PartnersService.d.ts.map +1 -1
- package/dist/generated/services/PartnersService.js +19 -0
- package/dist/generated/services/PartnersService.js.map +1 -1
- package/dist/generated/services/PaymentMethodsService.d.ts +17 -0
- package/dist/generated/services/PaymentMethodsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentMethodsService.js +38 -0
- package/dist/generated/services/PaymentMethodsService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +4 -0
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/QuotesService.d.ts +128 -1
- package/dist/generated/services/QuotesService.d.ts.map +1 -1
- package/dist/generated/services/QuotesService.js +68 -0
- package/dist/generated/services/QuotesService.js.map +1 -1
- package/dist/generated/services/ScriptsService.d.ts +110 -0
- package/dist/generated/services/ScriptsService.d.ts.map +1 -0
- package/dist/generated/services/ScriptsService.js +245 -0
- package/dist/generated/services/ScriptsService.js.map +1 -0
- package/dist/generated/services/SubscriptionsService.d.ts +40 -16
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js +24 -0
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +9 -5
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.js +5 -1
- package/dist/generated/services/WebhooksOutboundService.js.map +1 -1
- package/dist/generated/services/WorkspacesService.d.ts +4 -0
- package/dist/generated/services/WorkspacesService.d.ts.map +1 -1
- package/dist/generated/services/WorkspacesService.js.map +1 -1
- package/package.json +1 -1
|
@@ -101,6 +101,42 @@ export class DefaultService {
|
|
|
101
101
|
},
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* @param id
|
|
106
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
107
|
+
* @returns any Default Response
|
|
108
|
+
* @throws ApiError
|
|
109
|
+
*/
|
|
110
|
+
static patchApiV1CartSessions(id, xThrottleEnvironmentId) {
|
|
111
|
+
return __request(OpenAPI, {
|
|
112
|
+
method: 'PATCH',
|
|
113
|
+
url: '/api/v1/cart-sessions/{id}',
|
|
114
|
+
path: {
|
|
115
|
+
'id': id,
|
|
116
|
+
},
|
|
117
|
+
headers: {
|
|
118
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @param id
|
|
124
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
125
|
+
* @returns any Default Response
|
|
126
|
+
* @throws ApiError
|
|
127
|
+
*/
|
|
128
|
+
static getApiV1CartSessionsSummary(id, xThrottleEnvironmentId) {
|
|
129
|
+
return __request(OpenAPI, {
|
|
130
|
+
method: 'GET',
|
|
131
|
+
url: '/api/v1/cart-sessions/{id}/summary',
|
|
132
|
+
path: {
|
|
133
|
+
'id': id,
|
|
134
|
+
},
|
|
135
|
+
headers: {
|
|
136
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
}
|
|
104
140
|
/**
|
|
105
141
|
* @param id
|
|
106
142
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
@@ -467,6 +503,20 @@ export class DefaultService {
|
|
|
467
503
|
},
|
|
468
504
|
});
|
|
469
505
|
}
|
|
506
|
+
/**
|
|
507
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
508
|
+
* @returns any Default Response
|
|
509
|
+
* @throws ApiError
|
|
510
|
+
*/
|
|
511
|
+
static postApiV1ShippingTaxTaxProvidersCompanies(xThrottleEnvironmentId) {
|
|
512
|
+
return __request(OpenAPI, {
|
|
513
|
+
method: 'POST',
|
|
514
|
+
url: '/api/v1/shipping-tax/tax-providers/companies',
|
|
515
|
+
headers: {
|
|
516
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
517
|
+
},
|
|
518
|
+
});
|
|
519
|
+
}
|
|
470
520
|
/**
|
|
471
521
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
472
522
|
* @returns any Default Response
|
|
@@ -571,6 +621,24 @@ export class DefaultService {
|
|
|
571
621
|
},
|
|
572
622
|
});
|
|
573
623
|
}
|
|
624
|
+
/**
|
|
625
|
+
* @param id
|
|
626
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
627
|
+
* @returns any Default Response
|
|
628
|
+
* @throws ApiError
|
|
629
|
+
*/
|
|
630
|
+
static patchApiV1ShippingTaxTaxProviders(id, xThrottleEnvironmentId) {
|
|
631
|
+
return __request(OpenAPI, {
|
|
632
|
+
method: 'PATCH',
|
|
633
|
+
url: '/api/v1/shipping-tax/tax-providers/{id}',
|
|
634
|
+
path: {
|
|
635
|
+
'id': id,
|
|
636
|
+
},
|
|
637
|
+
headers: {
|
|
638
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
639
|
+
},
|
|
640
|
+
});
|
|
641
|
+
}
|
|
574
642
|
/**
|
|
575
643
|
* @param id
|
|
576
644
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
@@ -618,54 +686,56 @@ export class DefaultService {
|
|
|
618
686
|
});
|
|
619
687
|
}
|
|
620
688
|
/**
|
|
621
|
-
* @param id
|
|
622
689
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
623
690
|
* @returns any Default Response
|
|
624
691
|
* @throws ApiError
|
|
625
692
|
*/
|
|
626
|
-
static
|
|
693
|
+
static getApiV1ShippingTaxTaxCodes(xThrottleEnvironmentId) {
|
|
627
694
|
return __request(OpenAPI, {
|
|
628
|
-
method: '
|
|
629
|
-
url: '/api/v1/shipping-tax/
|
|
630
|
-
path: {
|
|
631
|
-
'id': id,
|
|
632
|
-
},
|
|
695
|
+
method: 'GET',
|
|
696
|
+
url: '/api/v1/shipping-tax/tax-codes',
|
|
633
697
|
headers: {
|
|
634
698
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
635
699
|
},
|
|
636
700
|
});
|
|
637
701
|
}
|
|
638
702
|
/**
|
|
639
|
-
* @param id
|
|
640
703
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
641
704
|
* @returns any Default Response
|
|
642
705
|
* @throws ApiError
|
|
643
706
|
*/
|
|
644
|
-
static
|
|
707
|
+
static getApiV1ShippingTaxLocations(xThrottleEnvironmentId) {
|
|
645
708
|
return __request(OpenAPI, {
|
|
646
709
|
method: 'GET',
|
|
647
|
-
url: '/api/v1/
|
|
648
|
-
path: {
|
|
649
|
-
'id': id,
|
|
650
|
-
},
|
|
710
|
+
url: '/api/v1/shipping-tax/locations',
|
|
651
711
|
headers: {
|
|
652
712
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
653
713
|
},
|
|
654
714
|
});
|
|
655
715
|
}
|
|
656
716
|
/**
|
|
657
|
-
* @param id
|
|
658
717
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
659
718
|
* @returns any Default Response
|
|
660
719
|
* @throws ApiError
|
|
661
720
|
*/
|
|
662
|
-
static
|
|
721
|
+
static postApiV1ShippingTaxValidateAddress(xThrottleEnvironmentId) {
|
|
663
722
|
return __request(OpenAPI, {
|
|
664
|
-
method: '
|
|
665
|
-
url: '/api/v1/
|
|
666
|
-
|
|
667
|
-
'
|
|
723
|
+
method: 'POST',
|
|
724
|
+
url: '/api/v1/shipping-tax/validate-address',
|
|
725
|
+
headers: {
|
|
726
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
668
727
|
},
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
732
|
+
* @returns any Default Response
|
|
733
|
+
* @throws ApiError
|
|
734
|
+
*/
|
|
735
|
+
static postApiV1ShippingTaxDocumentsCustoms(xThrottleEnvironmentId) {
|
|
736
|
+
return __request(OpenAPI, {
|
|
737
|
+
method: 'POST',
|
|
738
|
+
url: '/api/v1/shipping-tax/documents/customs',
|
|
669
739
|
headers: {
|
|
670
740
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
671
741
|
},
|
|
@@ -677,10 +747,10 @@ export class DefaultService {
|
|
|
677
747
|
* @returns any Default Response
|
|
678
748
|
* @throws ApiError
|
|
679
749
|
*/
|
|
680
|
-
static
|
|
750
|
+
static postApiV1ShippingTaxDocumentsRetry(id, xThrottleEnvironmentId) {
|
|
681
751
|
return __request(OpenAPI, {
|
|
682
|
-
method: '
|
|
683
|
-
url: '/api/v1/
|
|
752
|
+
method: 'POST',
|
|
753
|
+
url: '/api/v1/shipping-tax/documents/{id}/retry',
|
|
684
754
|
path: {
|
|
685
755
|
'id': id,
|
|
686
756
|
},
|
|
@@ -690,36 +760,28 @@ export class DefaultService {
|
|
|
690
760
|
});
|
|
691
761
|
}
|
|
692
762
|
/**
|
|
693
|
-
* @param id
|
|
694
763
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
695
764
|
* @returns any Default Response
|
|
696
765
|
* @throws ApiError
|
|
697
766
|
*/
|
|
698
|
-
static
|
|
767
|
+
static getApiV1TaxClassifications(xThrottleEnvironmentId) {
|
|
699
768
|
return __request(OpenAPI, {
|
|
700
769
|
method: 'GET',
|
|
701
|
-
url: '/api/v1/
|
|
702
|
-
path: {
|
|
703
|
-
'id': id,
|
|
704
|
-
},
|
|
770
|
+
url: '/api/v1/tax-classifications',
|
|
705
771
|
headers: {
|
|
706
772
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
707
773
|
},
|
|
708
774
|
});
|
|
709
775
|
}
|
|
710
776
|
/**
|
|
711
|
-
* @param id
|
|
712
777
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
713
778
|
* @returns any Default Response
|
|
714
779
|
* @throws ApiError
|
|
715
780
|
*/
|
|
716
|
-
static
|
|
781
|
+
static postApiV1TaxClassifications(xThrottleEnvironmentId) {
|
|
717
782
|
return __request(OpenAPI, {
|
|
718
783
|
method: 'POST',
|
|
719
|
-
url: '/api/v1/
|
|
720
|
-
path: {
|
|
721
|
-
'id': id,
|
|
722
|
-
},
|
|
784
|
+
url: '/api/v1/tax-classifications',
|
|
723
785
|
headers: {
|
|
724
786
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
725
787
|
},
|
|
@@ -731,10 +793,10 @@ export class DefaultService {
|
|
|
731
793
|
* @returns any Default Response
|
|
732
794
|
* @throws ApiError
|
|
733
795
|
*/
|
|
734
|
-
static
|
|
796
|
+
static patchApiV1TaxClassifications(id, xThrottleEnvironmentId) {
|
|
735
797
|
return __request(OpenAPI, {
|
|
736
|
-
method: '
|
|
737
|
-
url: '/api/v1/
|
|
798
|
+
method: 'PATCH',
|
|
799
|
+
url: '/api/v1/tax-classifications/{id}',
|
|
738
800
|
path: {
|
|
739
801
|
'id': id,
|
|
740
802
|
},
|
|
@@ -745,18 +807,16 @@ export class DefaultService {
|
|
|
745
807
|
}
|
|
746
808
|
/**
|
|
747
809
|
* @param id
|
|
748
|
-
* @param sid
|
|
749
810
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
750
811
|
* @returns any Default Response
|
|
751
812
|
* @throws ApiError
|
|
752
813
|
*/
|
|
753
|
-
static
|
|
814
|
+
static deleteApiV1TaxClassifications(id, xThrottleEnvironmentId) {
|
|
754
815
|
return __request(OpenAPI, {
|
|
755
|
-
method: '
|
|
756
|
-
url: '/api/v1/
|
|
816
|
+
method: 'DELETE',
|
|
817
|
+
url: '/api/v1/tax-classifications/{id}',
|
|
757
818
|
path: {
|
|
758
819
|
'id': id,
|
|
759
|
-
'sid': sid,
|
|
760
820
|
},
|
|
761
821
|
headers: {
|
|
762
822
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
@@ -764,20 +824,14 @@ export class DefaultService {
|
|
|
764
824
|
});
|
|
765
825
|
}
|
|
766
826
|
/**
|
|
767
|
-
* @param id
|
|
768
|
-
* @param sid
|
|
769
827
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
770
828
|
* @returns any Default Response
|
|
771
829
|
* @throws ApiError
|
|
772
830
|
*/
|
|
773
|
-
static
|
|
831
|
+
static postApiV1EcmTestConnection(xThrottleEnvironmentId) {
|
|
774
832
|
return __request(OpenAPI, {
|
|
775
833
|
method: 'POST',
|
|
776
|
-
url: '/api/v1/
|
|
777
|
-
path: {
|
|
778
|
-
'id': id,
|
|
779
|
-
'sid': sid,
|
|
780
|
-
},
|
|
834
|
+
url: '/api/v1/ecm/test-connection',
|
|
781
835
|
headers: {
|
|
782
836
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
783
837
|
},
|
|
@@ -785,18 +839,16 @@ export class DefaultService {
|
|
|
785
839
|
}
|
|
786
840
|
/**
|
|
787
841
|
* @param id
|
|
788
|
-
* @param sid
|
|
789
842
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
790
843
|
* @returns any Default Response
|
|
791
844
|
* @throws ApiError
|
|
792
845
|
*/
|
|
793
|
-
static
|
|
846
|
+
static getApiV1CustomersExemptionCertificates(id, xThrottleEnvironmentId) {
|
|
794
847
|
return __request(OpenAPI, {
|
|
795
|
-
method: '
|
|
796
|
-
url: '/api/v1/
|
|
848
|
+
method: 'GET',
|
|
849
|
+
url: '/api/v1/customers/{id}/exemption-certificates',
|
|
797
850
|
path: {
|
|
798
851
|
'id': id,
|
|
799
|
-
'sid': sid,
|
|
800
852
|
},
|
|
801
853
|
headers: {
|
|
802
854
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
@@ -804,42 +856,58 @@ export class DefaultService {
|
|
|
804
856
|
});
|
|
805
857
|
}
|
|
806
858
|
/**
|
|
859
|
+
* @param id
|
|
860
|
+
* @param certificateId
|
|
807
861
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
808
862
|
* @returns any Default Response
|
|
809
863
|
* @throws ApiError
|
|
810
864
|
*/
|
|
811
|
-
static
|
|
865
|
+
static getApiV1CustomersExemptionCertificatesDownload(id, certificateId, xThrottleEnvironmentId) {
|
|
812
866
|
return __request(OpenAPI, {
|
|
813
867
|
method: 'GET',
|
|
814
|
-
url: '/api/v1/
|
|
868
|
+
url: '/api/v1/customers/{id}/exemption-certificates/{certificateId}/download',
|
|
869
|
+
path: {
|
|
870
|
+
'id': id,
|
|
871
|
+
'certificateId': certificateId,
|
|
872
|
+
},
|
|
815
873
|
headers: {
|
|
816
874
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
817
875
|
},
|
|
818
876
|
});
|
|
819
877
|
}
|
|
820
878
|
/**
|
|
879
|
+
* @param id
|
|
821
880
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
822
881
|
* @returns any Default Response
|
|
823
882
|
* @throws ApiError
|
|
824
883
|
*/
|
|
825
|
-
static
|
|
884
|
+
static postApiV1CustomersExemptionCertificatesRequest(id, xThrottleEnvironmentId) {
|
|
826
885
|
return __request(OpenAPI, {
|
|
827
886
|
method: 'POST',
|
|
828
|
-
url: '/api/v1/
|
|
887
|
+
url: '/api/v1/customers/{id}/exemption-certificates/request',
|
|
888
|
+
path: {
|
|
889
|
+
'id': id,
|
|
890
|
+
},
|
|
829
891
|
headers: {
|
|
830
892
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
831
893
|
},
|
|
832
894
|
});
|
|
833
895
|
}
|
|
834
896
|
/**
|
|
897
|
+
* @param id
|
|
898
|
+
* @param certificateId
|
|
835
899
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
836
900
|
* @returns any Default Response
|
|
837
901
|
* @throws ApiError
|
|
838
902
|
*/
|
|
839
|
-
static
|
|
903
|
+
static deleteApiV1CustomersExemptionCertificates(id, certificateId, xThrottleEnvironmentId) {
|
|
840
904
|
return __request(OpenAPI, {
|
|
841
|
-
method: '
|
|
842
|
-
url: '/api/v1/
|
|
905
|
+
method: 'DELETE',
|
|
906
|
+
url: '/api/v1/customers/{id}/exemption-certificates/{certificateId}',
|
|
907
|
+
path: {
|
|
908
|
+
'id': id,
|
|
909
|
+
'certificateId': certificateId,
|
|
910
|
+
},
|
|
843
911
|
headers: {
|
|
844
912
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
845
913
|
},
|
|
@@ -850,28 +918,24 @@ export class DefaultService {
|
|
|
850
918
|
* @returns any Default Response
|
|
851
919
|
* @throws ApiError
|
|
852
920
|
*/
|
|
853
|
-
static
|
|
921
|
+
static getApiV1EcmExemptReasons(xThrottleEnvironmentId) {
|
|
854
922
|
return __request(OpenAPI, {
|
|
855
|
-
method: '
|
|
856
|
-
url: '/api/v1/
|
|
923
|
+
method: 'GET',
|
|
924
|
+
url: '/api/v1/ecm/exempt-reasons',
|
|
857
925
|
headers: {
|
|
858
926
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
859
927
|
},
|
|
860
928
|
});
|
|
861
929
|
}
|
|
862
930
|
/**
|
|
863
|
-
* @param id
|
|
864
931
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
865
932
|
* @returns any Default Response
|
|
866
933
|
* @throws ApiError
|
|
867
934
|
*/
|
|
868
|
-
static
|
|
935
|
+
static getApiV1EcmExposureZones(xThrottleEnvironmentId) {
|
|
869
936
|
return __request(OpenAPI, {
|
|
870
|
-
method: '
|
|
871
|
-
url: '/api/v1/
|
|
872
|
-
path: {
|
|
873
|
-
'id': id,
|
|
874
|
-
},
|
|
937
|
+
method: 'GET',
|
|
938
|
+
url: '/api/v1/ecm/exposure-zones',
|
|
875
939
|
headers: {
|
|
876
940
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
877
941
|
},
|
|
@@ -882,10 +946,10 @@ export class DefaultService {
|
|
|
882
946
|
* @returns any Default Response
|
|
883
947
|
* @throws ApiError
|
|
884
948
|
*/
|
|
885
|
-
static
|
|
949
|
+
static getApiV1ShippingTaxProviderCalls(xThrottleEnvironmentId) {
|
|
886
950
|
return __request(OpenAPI, {
|
|
887
951
|
method: 'GET',
|
|
888
|
-
url: '/api/v1/
|
|
952
|
+
url: '/api/v1/shipping-tax/provider-calls',
|
|
889
953
|
headers: {
|
|
890
954
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
891
955
|
},
|
|
@@ -896,73 +960,99 @@ export class DefaultService {
|
|
|
896
960
|
* @returns any Default Response
|
|
897
961
|
* @throws ApiError
|
|
898
962
|
*/
|
|
899
|
-
static
|
|
963
|
+
static getApiV1ShippingTaxProviderCallsStats(xThrottleEnvironmentId) {
|
|
900
964
|
return __request(OpenAPI, {
|
|
901
965
|
method: 'GET',
|
|
902
|
-
url: '/api/v1/
|
|
966
|
+
url: '/api/v1/shipping-tax/provider-calls/stats',
|
|
903
967
|
headers: {
|
|
904
968
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
905
969
|
},
|
|
906
970
|
});
|
|
907
971
|
}
|
|
908
972
|
/**
|
|
973
|
+
* @param id
|
|
974
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
909
975
|
* @returns any Default Response
|
|
910
976
|
* @throws ApiError
|
|
911
977
|
*/
|
|
912
|
-
static
|
|
978
|
+
static getApiV1ShippingTaxProviderCalls1(id, xThrottleEnvironmentId) {
|
|
913
979
|
return __request(OpenAPI, {
|
|
914
980
|
method: 'GET',
|
|
915
|
-
url: '
|
|
981
|
+
url: '/api/v1/shipping-tax/provider-calls/{id}',
|
|
982
|
+
path: {
|
|
983
|
+
'id': id,
|
|
984
|
+
},
|
|
985
|
+
headers: {
|
|
986
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
987
|
+
},
|
|
916
988
|
});
|
|
917
989
|
}
|
|
918
990
|
/**
|
|
991
|
+
* @param id
|
|
992
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
919
993
|
* @returns any Default Response
|
|
920
994
|
* @throws ApiError
|
|
921
995
|
*/
|
|
922
|
-
static
|
|
996
|
+
static getApiV1SubscriptionsInvoices(id, xThrottleEnvironmentId) {
|
|
923
997
|
return __request(OpenAPI, {
|
|
924
998
|
method: 'GET',
|
|
925
|
-
url: '
|
|
999
|
+
url: '/api/v1/subscriptions/{id}/invoices',
|
|
1000
|
+
path: {
|
|
1001
|
+
'id': id,
|
|
1002
|
+
},
|
|
1003
|
+
headers: {
|
|
1004
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1005
|
+
},
|
|
926
1006
|
});
|
|
927
1007
|
}
|
|
928
1008
|
/**
|
|
1009
|
+
* @param id
|
|
1010
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
929
1011
|
* @returns any Default Response
|
|
930
1012
|
* @throws ApiError
|
|
931
1013
|
*/
|
|
932
|
-
static
|
|
1014
|
+
static getApiV1ExtensionsListing(id, xThrottleEnvironmentId) {
|
|
933
1015
|
return __request(OpenAPI, {
|
|
934
1016
|
method: 'GET',
|
|
935
|
-
url: '
|
|
1017
|
+
url: '/api/v1/extensions/{id}/listing',
|
|
1018
|
+
path: {
|
|
1019
|
+
'id': id,
|
|
1020
|
+
},
|
|
1021
|
+
headers: {
|
|
1022
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1023
|
+
},
|
|
936
1024
|
});
|
|
937
1025
|
}
|
|
938
1026
|
/**
|
|
939
|
-
* @param
|
|
1027
|
+
* @param id
|
|
1028
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
940
1029
|
* @returns any Default Response
|
|
941
1030
|
* @throws ApiError
|
|
942
1031
|
*/
|
|
943
|
-
static
|
|
1032
|
+
static putApiV1ExtensionsListing(id, xThrottleEnvironmentId) {
|
|
944
1033
|
return __request(OpenAPI, {
|
|
945
|
-
method: '
|
|
946
|
-
url: '/
|
|
1034
|
+
method: 'PUT',
|
|
1035
|
+
url: '/api/v1/extensions/{id}/listing',
|
|
947
1036
|
path: {
|
|
948
|
-
'
|
|
1037
|
+
'id': id,
|
|
1038
|
+
},
|
|
1039
|
+
headers: {
|
|
1040
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
949
1041
|
},
|
|
950
1042
|
});
|
|
951
1043
|
}
|
|
952
1044
|
/**
|
|
953
|
-
* @param
|
|
954
|
-
* @param connectionId
|
|
1045
|
+
* @param id
|
|
955
1046
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
956
1047
|
* @returns any Default Response
|
|
957
1048
|
* @throws ApiError
|
|
958
1049
|
*/
|
|
959
|
-
static
|
|
1050
|
+
static getApiV1ExtensionsReadiness(id, xThrottleEnvironmentId) {
|
|
960
1051
|
return __request(OpenAPI, {
|
|
961
|
-
method: '
|
|
962
|
-
url: '/api/v1/
|
|
1052
|
+
method: 'GET',
|
|
1053
|
+
url: '/api/v1/extensions/{id}/readiness',
|
|
963
1054
|
path: {
|
|
964
|
-
'
|
|
965
|
-
'connectionId': connectionId,
|
|
1055
|
+
'id': id,
|
|
966
1056
|
},
|
|
967
1057
|
headers: {
|
|
968
1058
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
@@ -970,17 +1060,17 @@ export class DefaultService {
|
|
|
970
1060
|
});
|
|
971
1061
|
}
|
|
972
1062
|
/**
|
|
973
|
-
* @param
|
|
1063
|
+
* @param id
|
|
974
1064
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
975
1065
|
* @returns any Default Response
|
|
976
1066
|
* @throws ApiError
|
|
977
1067
|
*/
|
|
978
|
-
static
|
|
1068
|
+
static postApiV1ExtensionsReviews(id, xThrottleEnvironmentId) {
|
|
979
1069
|
return __request(OpenAPI, {
|
|
980
1070
|
method: 'POST',
|
|
981
|
-
url: '/api/v1/
|
|
1071
|
+
url: '/api/v1/extensions/{id}/reviews',
|
|
982
1072
|
path: {
|
|
983
|
-
'
|
|
1073
|
+
'id': id,
|
|
984
1074
|
},
|
|
985
1075
|
headers: {
|
|
986
1076
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
@@ -988,25 +1078,927 @@ export class DefaultService {
|
|
|
988
1078
|
});
|
|
989
1079
|
}
|
|
990
1080
|
/**
|
|
991
|
-
* @param
|
|
992
|
-
* @param connectionId
|
|
1081
|
+
* @param id
|
|
993
1082
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
994
1083
|
* @returns any Default Response
|
|
995
1084
|
* @throws ApiError
|
|
996
1085
|
*/
|
|
997
|
-
static
|
|
1086
|
+
static getApiV1ExtensionsReviews(id, xThrottleEnvironmentId) {
|
|
998
1087
|
return __request(OpenAPI, {
|
|
999
|
-
method: '
|
|
1000
|
-
url: '/api/v1/
|
|
1088
|
+
method: 'GET',
|
|
1089
|
+
url: '/api/v1/extensions/{id}/reviews',
|
|
1001
1090
|
path: {
|
|
1002
|
-
'
|
|
1003
|
-
'connectionId': connectionId,
|
|
1091
|
+
'id': id,
|
|
1004
1092
|
},
|
|
1005
1093
|
headers: {
|
|
1006
1094
|
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1007
1095
|
},
|
|
1008
1096
|
});
|
|
1009
1097
|
}
|
|
1098
|
+
/**
|
|
1099
|
+
* @param id
|
|
1100
|
+
* @param sid
|
|
1101
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1102
|
+
* @returns any Default Response
|
|
1103
|
+
* @throws ApiError
|
|
1104
|
+
*/
|
|
1105
|
+
static getApiV1ExtensionsReviews1(id, sid, xThrottleEnvironmentId) {
|
|
1106
|
+
return __request(OpenAPI, {
|
|
1107
|
+
method: 'GET',
|
|
1108
|
+
url: '/api/v1/extensions/{id}/reviews/{sid}',
|
|
1109
|
+
path: {
|
|
1110
|
+
'id': id,
|
|
1111
|
+
'sid': sid,
|
|
1112
|
+
},
|
|
1113
|
+
headers: {
|
|
1114
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1115
|
+
},
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* @param id
|
|
1120
|
+
* @param sid
|
|
1121
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1122
|
+
* @returns any Default Response
|
|
1123
|
+
* @throws ApiError
|
|
1124
|
+
*/
|
|
1125
|
+
static postApiV1ExtensionsReviewsComments(id, sid, xThrottleEnvironmentId) {
|
|
1126
|
+
return __request(OpenAPI, {
|
|
1127
|
+
method: 'POST',
|
|
1128
|
+
url: '/api/v1/extensions/{id}/reviews/{sid}/comments',
|
|
1129
|
+
path: {
|
|
1130
|
+
'id': id,
|
|
1131
|
+
'sid': sid,
|
|
1132
|
+
},
|
|
1133
|
+
headers: {
|
|
1134
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1135
|
+
},
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* @param id
|
|
1140
|
+
* @param sid
|
|
1141
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1142
|
+
* @returns any Default Response
|
|
1143
|
+
* @throws ApiError
|
|
1144
|
+
*/
|
|
1145
|
+
static postApiV1ExtensionsReviewsWithdraw(id, sid, xThrottleEnvironmentId) {
|
|
1146
|
+
return __request(OpenAPI, {
|
|
1147
|
+
method: 'POST',
|
|
1148
|
+
url: '/api/v1/extensions/{id}/reviews/{sid}/withdraw',
|
|
1149
|
+
path: {
|
|
1150
|
+
'id': id,
|
|
1151
|
+
'sid': sid,
|
|
1152
|
+
},
|
|
1153
|
+
headers: {
|
|
1154
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1155
|
+
},
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1160
|
+
* @returns any Default Response
|
|
1161
|
+
* @throws ApiError
|
|
1162
|
+
*/
|
|
1163
|
+
static getApiV1PublisherTerms(xThrottleEnvironmentId) {
|
|
1164
|
+
return __request(OpenAPI, {
|
|
1165
|
+
method: 'GET',
|
|
1166
|
+
url: '/api/v1/publisher/terms',
|
|
1167
|
+
headers: {
|
|
1168
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1169
|
+
},
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1174
|
+
* @returns any Default Response
|
|
1175
|
+
* @throws ApiError
|
|
1176
|
+
*/
|
|
1177
|
+
static postApiV1PublisherAcceptTerms(xThrottleEnvironmentId) {
|
|
1178
|
+
return __request(OpenAPI, {
|
|
1179
|
+
method: 'POST',
|
|
1180
|
+
url: '/api/v1/publisher/accept-terms',
|
|
1181
|
+
headers: {
|
|
1182
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1183
|
+
},
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1188
|
+
* @returns any Default Response
|
|
1189
|
+
* @throws ApiError
|
|
1190
|
+
*/
|
|
1191
|
+
static getApiV1ExtensionsDomains(xThrottleEnvironmentId) {
|
|
1192
|
+
return __request(OpenAPI, {
|
|
1193
|
+
method: 'GET',
|
|
1194
|
+
url: '/api/v1/extensions/domains',
|
|
1195
|
+
headers: {
|
|
1196
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1197
|
+
},
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1202
|
+
* @returns any Default Response
|
|
1203
|
+
* @throws ApiError
|
|
1204
|
+
*/
|
|
1205
|
+
static postApiV1ExtensionsDomains(xThrottleEnvironmentId) {
|
|
1206
|
+
return __request(OpenAPI, {
|
|
1207
|
+
method: 'POST',
|
|
1208
|
+
url: '/api/v1/extensions/domains',
|
|
1209
|
+
headers: {
|
|
1210
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1211
|
+
},
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* @param id
|
|
1216
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1217
|
+
* @returns any Default Response
|
|
1218
|
+
* @throws ApiError
|
|
1219
|
+
*/
|
|
1220
|
+
static postApiV1ExtensionsDomainsVerify(id, xThrottleEnvironmentId) {
|
|
1221
|
+
return __request(OpenAPI, {
|
|
1222
|
+
method: 'POST',
|
|
1223
|
+
url: '/api/v1/extensions/domains/{id}/verify',
|
|
1224
|
+
path: {
|
|
1225
|
+
'id': id,
|
|
1226
|
+
},
|
|
1227
|
+
headers: {
|
|
1228
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1229
|
+
},
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1234
|
+
* @returns any Default Response
|
|
1235
|
+
* @throws ApiError
|
|
1236
|
+
*/
|
|
1237
|
+
static getApiV1Scopes(xThrottleEnvironmentId) {
|
|
1238
|
+
return __request(OpenAPI, {
|
|
1239
|
+
method: 'GET',
|
|
1240
|
+
url: '/api/v1/scopes',
|
|
1241
|
+
headers: {
|
|
1242
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1243
|
+
},
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1248
|
+
* @returns any Default Response
|
|
1249
|
+
* @throws ApiError
|
|
1250
|
+
*/
|
|
1251
|
+
static getApiV1EventTypes(xThrottleEnvironmentId) {
|
|
1252
|
+
return __request(OpenAPI, {
|
|
1253
|
+
method: 'GET',
|
|
1254
|
+
url: '/api/v1/event-types',
|
|
1255
|
+
headers: {
|
|
1256
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1257
|
+
},
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* @returns any Default Response
|
|
1262
|
+
* @throws ApiError
|
|
1263
|
+
*/
|
|
1264
|
+
static getWellKnownExtensionJwksJson() {
|
|
1265
|
+
return __request(OpenAPI, {
|
|
1266
|
+
method: 'GET',
|
|
1267
|
+
url: '/.well-known/extension-jwks.json',
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* @returns any Default Response
|
|
1272
|
+
* @throws ApiError
|
|
1273
|
+
*/
|
|
1274
|
+
static getWellKnownOauthAuthorizationServer() {
|
|
1275
|
+
return __request(OpenAPI, {
|
|
1276
|
+
method: 'GET',
|
|
1277
|
+
url: '/.well-known/oauth-authorization-server',
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* @returns any Default Response
|
|
1282
|
+
* @throws ApiError
|
|
1283
|
+
*/
|
|
1284
|
+
static getWellKnownOauthProtectedResource() {
|
|
1285
|
+
return __request(OpenAPI, {
|
|
1286
|
+
method: 'GET',
|
|
1287
|
+
url: '/.well-known/oauth-protected-resource',
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* @param clientId
|
|
1292
|
+
* @returns any Default Response
|
|
1293
|
+
* @throws ApiError
|
|
1294
|
+
*/
|
|
1295
|
+
static getOauthClients(clientId) {
|
|
1296
|
+
return __request(OpenAPI, {
|
|
1297
|
+
method: 'GET',
|
|
1298
|
+
url: '/oauth/clients/{clientId}',
|
|
1299
|
+
path: {
|
|
1300
|
+
'clientId': clientId,
|
|
1301
|
+
},
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* @param provider
|
|
1306
|
+
* @param connectionId
|
|
1307
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1308
|
+
* @returns any Default Response
|
|
1309
|
+
* @throws ApiError
|
|
1310
|
+
*/
|
|
1311
|
+
static postApiV1ProvidersWebhooks(provider, connectionId, xThrottleEnvironmentId) {
|
|
1312
|
+
return __request(OpenAPI, {
|
|
1313
|
+
method: 'POST',
|
|
1314
|
+
url: '/api/v1/providers/{provider}/webhooks/{connectionId}',
|
|
1315
|
+
path: {
|
|
1316
|
+
'provider': provider,
|
|
1317
|
+
'connectionId': connectionId,
|
|
1318
|
+
},
|
|
1319
|
+
headers: {
|
|
1320
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1321
|
+
},
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* @param provider
|
|
1326
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1327
|
+
* @returns any Default Response
|
|
1328
|
+
* @throws ApiError
|
|
1329
|
+
*/
|
|
1330
|
+
static postApiV1PaymentProvidersWebhooks(provider, xThrottleEnvironmentId) {
|
|
1331
|
+
return __request(OpenAPI, {
|
|
1332
|
+
method: 'POST',
|
|
1333
|
+
url: '/api/v1/payment-providers/{provider}/webhooks',
|
|
1334
|
+
path: {
|
|
1335
|
+
'provider': provider,
|
|
1336
|
+
},
|
|
1337
|
+
headers: {
|
|
1338
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1339
|
+
},
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* @param provider
|
|
1344
|
+
* @param connectionId
|
|
1345
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1346
|
+
* @returns any Default Response
|
|
1347
|
+
* @throws ApiError
|
|
1348
|
+
*/
|
|
1349
|
+
static postApiV1PaymentProvidersWebhooks1(provider, connectionId, xThrottleEnvironmentId) {
|
|
1350
|
+
return __request(OpenAPI, {
|
|
1351
|
+
method: 'POST',
|
|
1352
|
+
url: '/api/v1/payment-providers/{provider}/webhooks/{connectionId}',
|
|
1353
|
+
path: {
|
|
1354
|
+
'provider': provider,
|
|
1355
|
+
'connectionId': connectionId,
|
|
1356
|
+
},
|
|
1357
|
+
headers: {
|
|
1358
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1359
|
+
},
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* @param requestBody
|
|
1364
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1365
|
+
* @returns any Default Response
|
|
1366
|
+
* @throws ApiError
|
|
1367
|
+
*/
|
|
1368
|
+
static postV1StorefrontAuthRegister(requestBody, xThrottleEnvironmentId) {
|
|
1369
|
+
return __request(OpenAPI, {
|
|
1370
|
+
method: 'POST',
|
|
1371
|
+
url: '/v1/storefront/auth/register',
|
|
1372
|
+
headers: {
|
|
1373
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1374
|
+
},
|
|
1375
|
+
body: requestBody,
|
|
1376
|
+
mediaType: 'application/json',
|
|
1377
|
+
errors: {
|
|
1378
|
+
400: `Invalid request — the body, query, or path failed validation. See \`error.details\`.`,
|
|
1379
|
+
429: `Rate limited. Slow down and retry after the interval in the response headers.`,
|
|
1380
|
+
503: `A dependency this route needs is not configured or is unavailable.`,
|
|
1381
|
+
},
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* @param requestBody
|
|
1386
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1387
|
+
* @returns any Default Response
|
|
1388
|
+
* @throws ApiError
|
|
1389
|
+
*/
|
|
1390
|
+
static postV1StorefrontAuthLogin(requestBody, xThrottleEnvironmentId) {
|
|
1391
|
+
return __request(OpenAPI, {
|
|
1392
|
+
method: 'POST',
|
|
1393
|
+
url: '/v1/storefront/auth/login',
|
|
1394
|
+
headers: {
|
|
1395
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1396
|
+
},
|
|
1397
|
+
body: requestBody,
|
|
1398
|
+
mediaType: 'application/json',
|
|
1399
|
+
errors: {
|
|
1400
|
+
401: `Missing or invalid credentials. Send a valid \`X-API-Key\` or \`Authorization: Bearer\` token.`,
|
|
1401
|
+
429: `Rate limited. Slow down and retry after the interval in the response headers.`,
|
|
1402
|
+
503: `A dependency this route needs is not configured or is unavailable.`,
|
|
1403
|
+
},
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* @param requestBody
|
|
1408
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1409
|
+
* @returns any Default Response
|
|
1410
|
+
* @throws ApiError
|
|
1411
|
+
*/
|
|
1412
|
+
static postV1StorefrontAuthRefresh(requestBody, xThrottleEnvironmentId) {
|
|
1413
|
+
return __request(OpenAPI, {
|
|
1414
|
+
method: 'POST',
|
|
1415
|
+
url: '/v1/storefront/auth/refresh',
|
|
1416
|
+
headers: {
|
|
1417
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1418
|
+
},
|
|
1419
|
+
body: requestBody,
|
|
1420
|
+
mediaType: 'application/json',
|
|
1421
|
+
errors: {
|
|
1422
|
+
401: `Missing or invalid credentials. Send a valid \`X-API-Key\` or \`Authorization: Bearer\` token.`,
|
|
1423
|
+
403: `Authenticated but not permitted — the credential lacks the scope or role this route requires.`,
|
|
1424
|
+
},
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1429
|
+
* @returns any Default Response
|
|
1430
|
+
* @throws ApiError
|
|
1431
|
+
*/
|
|
1432
|
+
static postV1StorefrontAuthLogout(xThrottleEnvironmentId) {
|
|
1433
|
+
return __request(OpenAPI, {
|
|
1434
|
+
method: 'POST',
|
|
1435
|
+
url: '/v1/storefront/auth/logout',
|
|
1436
|
+
headers: {
|
|
1437
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1438
|
+
},
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1443
|
+
* @returns any Default Response
|
|
1444
|
+
* @throws ApiError
|
|
1445
|
+
*/
|
|
1446
|
+
static postV1StorefrontAuthLogoutAll(xThrottleEnvironmentId) {
|
|
1447
|
+
return __request(OpenAPI, {
|
|
1448
|
+
method: 'POST',
|
|
1449
|
+
url: '/v1/storefront/auth/logout-all',
|
|
1450
|
+
headers: {
|
|
1451
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1452
|
+
},
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
/**
|
|
1456
|
+
* @param requestBody
|
|
1457
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1458
|
+
* @returns any Default Response
|
|
1459
|
+
* @throws ApiError
|
|
1460
|
+
*/
|
|
1461
|
+
static postV1StorefrontAuthVerifyEmail(requestBody, xThrottleEnvironmentId) {
|
|
1462
|
+
return __request(OpenAPI, {
|
|
1463
|
+
method: 'POST',
|
|
1464
|
+
url: '/v1/storefront/auth/verify-email',
|
|
1465
|
+
headers: {
|
|
1466
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1467
|
+
},
|
|
1468
|
+
body: requestBody,
|
|
1469
|
+
mediaType: 'application/json',
|
|
1470
|
+
errors: {
|
|
1471
|
+
400: `Invalid request — the body, query, or path failed validation. See \`error.details\`.`,
|
|
1472
|
+
},
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1477
|
+
* @returns any Default Response
|
|
1478
|
+
* @throws ApiError
|
|
1479
|
+
*/
|
|
1480
|
+
static postV1StorefrontAuthVerifyEmailResend(xThrottleEnvironmentId) {
|
|
1481
|
+
return __request(OpenAPI, {
|
|
1482
|
+
method: 'POST',
|
|
1483
|
+
url: '/v1/storefront/auth/verify-email/resend',
|
|
1484
|
+
headers: {
|
|
1485
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1486
|
+
},
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* @param requestBody
|
|
1491
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1492
|
+
* @returns any Default Response
|
|
1493
|
+
* @throws ApiError
|
|
1494
|
+
*/
|
|
1495
|
+
static postV1StorefrontAuthForgotPassword(requestBody, xThrottleEnvironmentId) {
|
|
1496
|
+
return __request(OpenAPI, {
|
|
1497
|
+
method: 'POST',
|
|
1498
|
+
url: '/v1/storefront/auth/forgot-password',
|
|
1499
|
+
headers: {
|
|
1500
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1501
|
+
},
|
|
1502
|
+
body: requestBody,
|
|
1503
|
+
mediaType: 'application/json',
|
|
1504
|
+
errors: {
|
|
1505
|
+
429: `Rate limited. Slow down and retry after the interval in the response headers.`,
|
|
1506
|
+
503: `A dependency this route needs is not configured or is unavailable.`,
|
|
1507
|
+
},
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
/**
|
|
1511
|
+
* @param requestBody
|
|
1512
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1513
|
+
* @returns any Default Response
|
|
1514
|
+
* @throws ApiError
|
|
1515
|
+
*/
|
|
1516
|
+
static postV1StorefrontAuthResetPassword(requestBody, xThrottleEnvironmentId) {
|
|
1517
|
+
return __request(OpenAPI, {
|
|
1518
|
+
method: 'POST',
|
|
1519
|
+
url: '/v1/storefront/auth/reset-password',
|
|
1520
|
+
headers: {
|
|
1521
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1522
|
+
},
|
|
1523
|
+
body: requestBody,
|
|
1524
|
+
mediaType: 'application/json',
|
|
1525
|
+
errors: {
|
|
1526
|
+
400: `Invalid request — the body, query, or path failed validation. See \`error.details\`.`,
|
|
1527
|
+
429: `Rate limited. Slow down and retry after the interval in the response headers.`,
|
|
1528
|
+
503: `A dependency this route needs is not configured or is unavailable.`,
|
|
1529
|
+
},
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* @param requestBody
|
|
1534
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1535
|
+
* @returns any Default Response
|
|
1536
|
+
* @throws ApiError
|
|
1537
|
+
*/
|
|
1538
|
+
static postV1StorefrontAuthStepUp(requestBody, xThrottleEnvironmentId) {
|
|
1539
|
+
return __request(OpenAPI, {
|
|
1540
|
+
method: 'POST',
|
|
1541
|
+
url: '/v1/storefront/auth/step-up',
|
|
1542
|
+
headers: {
|
|
1543
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1544
|
+
},
|
|
1545
|
+
body: requestBody,
|
|
1546
|
+
mediaType: 'application/json',
|
|
1547
|
+
errors: {
|
|
1548
|
+
401: `Missing or invalid credentials. Send a valid \`X-API-Key\` or \`Authorization: Bearer\` token.`,
|
|
1549
|
+
429: `Rate limited. Slow down and retry after the interval in the response headers.`,
|
|
1550
|
+
503: `A dependency this route needs is not configured or is unavailable.`,
|
|
1551
|
+
},
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* @param requestBody
|
|
1556
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1557
|
+
* @returns any Default Response
|
|
1558
|
+
* @throws ApiError
|
|
1559
|
+
*/
|
|
1560
|
+
static postV1StorefrontMeChangePassword(requestBody, xThrottleEnvironmentId) {
|
|
1561
|
+
return __request(OpenAPI, {
|
|
1562
|
+
method: 'POST',
|
|
1563
|
+
url: '/v1/storefront/me/change-password',
|
|
1564
|
+
headers: {
|
|
1565
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1566
|
+
},
|
|
1567
|
+
body: requestBody,
|
|
1568
|
+
mediaType: 'application/json',
|
|
1569
|
+
errors: {
|
|
1570
|
+
400: `Invalid request — the body, query, or path failed validation. See \`error.details\`.`,
|
|
1571
|
+
403: `Authenticated but not permitted — the credential lacks the scope or role this route requires.`,
|
|
1572
|
+
},
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1577
|
+
* @returns any Default Response
|
|
1578
|
+
* @throws ApiError
|
|
1579
|
+
*/
|
|
1580
|
+
static getV1StorefrontMe(xThrottleEnvironmentId) {
|
|
1581
|
+
return __request(OpenAPI, {
|
|
1582
|
+
method: 'GET',
|
|
1583
|
+
url: '/v1/storefront/me',
|
|
1584
|
+
headers: {
|
|
1585
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1586
|
+
},
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
/**
|
|
1590
|
+
* @param requestBody
|
|
1591
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1592
|
+
* @returns any Default Response
|
|
1593
|
+
* @throws ApiError
|
|
1594
|
+
*/
|
|
1595
|
+
static patchV1StorefrontMe(requestBody, xThrottleEnvironmentId) {
|
|
1596
|
+
return __request(OpenAPI, {
|
|
1597
|
+
method: 'PATCH',
|
|
1598
|
+
url: '/v1/storefront/me',
|
|
1599
|
+
headers: {
|
|
1600
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1601
|
+
},
|
|
1602
|
+
body: requestBody,
|
|
1603
|
+
mediaType: 'application/json',
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1608
|
+
* @returns any Default Response
|
|
1609
|
+
* @throws ApiError
|
|
1610
|
+
*/
|
|
1611
|
+
static getV1StorefrontMeSessions(xThrottleEnvironmentId) {
|
|
1612
|
+
return __request(OpenAPI, {
|
|
1613
|
+
method: 'GET',
|
|
1614
|
+
url: '/v1/storefront/me/sessions',
|
|
1615
|
+
headers: {
|
|
1616
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1617
|
+
},
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* @param id
|
|
1622
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1623
|
+
* @returns any Default Response
|
|
1624
|
+
* @throws ApiError
|
|
1625
|
+
*/
|
|
1626
|
+
static deleteV1StorefrontMeSessions(id, xThrottleEnvironmentId) {
|
|
1627
|
+
return __request(OpenAPI, {
|
|
1628
|
+
method: 'DELETE',
|
|
1629
|
+
url: '/v1/storefront/me/sessions/{id}',
|
|
1630
|
+
path: {
|
|
1631
|
+
'id': id,
|
|
1632
|
+
},
|
|
1633
|
+
headers: {
|
|
1634
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1635
|
+
},
|
|
1636
|
+
});
|
|
1637
|
+
}
|
|
1638
|
+
/**
|
|
1639
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1640
|
+
* @returns any Default Response
|
|
1641
|
+
* @throws ApiError
|
|
1642
|
+
*/
|
|
1643
|
+
static getV1StorefrontMeAddresses(xThrottleEnvironmentId) {
|
|
1644
|
+
return __request(OpenAPI, {
|
|
1645
|
+
method: 'GET',
|
|
1646
|
+
url: '/v1/storefront/me/addresses',
|
|
1647
|
+
headers: {
|
|
1648
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1649
|
+
},
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* @param requestBody
|
|
1654
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1655
|
+
* @returns any Default Response
|
|
1656
|
+
* @throws ApiError
|
|
1657
|
+
*/
|
|
1658
|
+
static postV1StorefrontMeAddresses(requestBody, xThrottleEnvironmentId) {
|
|
1659
|
+
return __request(OpenAPI, {
|
|
1660
|
+
method: 'POST',
|
|
1661
|
+
url: '/v1/storefront/me/addresses',
|
|
1662
|
+
headers: {
|
|
1663
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1664
|
+
},
|
|
1665
|
+
body: requestBody,
|
|
1666
|
+
mediaType: 'application/json',
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
* @param id
|
|
1671
|
+
* @param requestBody
|
|
1672
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1673
|
+
* @returns any Default Response
|
|
1674
|
+
* @throws ApiError
|
|
1675
|
+
*/
|
|
1676
|
+
static patchV1StorefrontMeAddresses(id, requestBody, xThrottleEnvironmentId) {
|
|
1677
|
+
return __request(OpenAPI, {
|
|
1678
|
+
method: 'PATCH',
|
|
1679
|
+
url: '/v1/storefront/me/addresses/{id}',
|
|
1680
|
+
path: {
|
|
1681
|
+
'id': id,
|
|
1682
|
+
},
|
|
1683
|
+
headers: {
|
|
1684
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1685
|
+
},
|
|
1686
|
+
body: requestBody,
|
|
1687
|
+
mediaType: 'application/json',
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
* @param id
|
|
1692
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1693
|
+
* @returns any Default Response
|
|
1694
|
+
* @throws ApiError
|
|
1695
|
+
*/
|
|
1696
|
+
static deleteV1StorefrontMeAddresses(id, xThrottleEnvironmentId) {
|
|
1697
|
+
return __request(OpenAPI, {
|
|
1698
|
+
method: 'DELETE',
|
|
1699
|
+
url: '/v1/storefront/me/addresses/{id}',
|
|
1700
|
+
path: {
|
|
1701
|
+
'id': id,
|
|
1702
|
+
},
|
|
1703
|
+
headers: {
|
|
1704
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1705
|
+
},
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1710
|
+
* @returns any Default Response
|
|
1711
|
+
* @throws ApiError
|
|
1712
|
+
*/
|
|
1713
|
+
static getV1StorefrontMePaymentMethods(xThrottleEnvironmentId) {
|
|
1714
|
+
return __request(OpenAPI, {
|
|
1715
|
+
method: 'GET',
|
|
1716
|
+
url: '/v1/storefront/me/payment-methods',
|
|
1717
|
+
headers: {
|
|
1718
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1719
|
+
},
|
|
1720
|
+
});
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* @param id
|
|
1724
|
+
* @param requestBody
|
|
1725
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1726
|
+
* @returns any Default Response
|
|
1727
|
+
* @throws ApiError
|
|
1728
|
+
*/
|
|
1729
|
+
static patchV1StorefrontMePaymentMethods(id, requestBody, xThrottleEnvironmentId) {
|
|
1730
|
+
return __request(OpenAPI, {
|
|
1731
|
+
method: 'PATCH',
|
|
1732
|
+
url: '/v1/storefront/me/payment-methods/{id}',
|
|
1733
|
+
path: {
|
|
1734
|
+
'id': id,
|
|
1735
|
+
},
|
|
1736
|
+
headers: {
|
|
1737
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1738
|
+
},
|
|
1739
|
+
body: requestBody,
|
|
1740
|
+
mediaType: 'application/json',
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* @param id
|
|
1745
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1746
|
+
* @returns any Default Response
|
|
1747
|
+
* @throws ApiError
|
|
1748
|
+
*/
|
|
1749
|
+
static deleteV1StorefrontMePaymentMethods(id, xThrottleEnvironmentId) {
|
|
1750
|
+
return __request(OpenAPI, {
|
|
1751
|
+
method: 'DELETE',
|
|
1752
|
+
url: '/v1/storefront/me/payment-methods/{id}',
|
|
1753
|
+
path: {
|
|
1754
|
+
'id': id,
|
|
1755
|
+
},
|
|
1756
|
+
headers: {
|
|
1757
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1758
|
+
},
|
|
1759
|
+
});
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1763
|
+
* @returns any Default Response
|
|
1764
|
+
* @throws ApiError
|
|
1765
|
+
*/
|
|
1766
|
+
static postV1StorefrontMePaymentMethodsEmbedToken(xThrottleEnvironmentId) {
|
|
1767
|
+
return __request(OpenAPI, {
|
|
1768
|
+
method: 'POST',
|
|
1769
|
+
url: '/v1/storefront/me/payment-methods/embed-token',
|
|
1770
|
+
headers: {
|
|
1771
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1772
|
+
},
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* @param requestBody
|
|
1777
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1778
|
+
* @returns any Default Response
|
|
1779
|
+
* @throws ApiError
|
|
1780
|
+
*/
|
|
1781
|
+
static postV1StorefrontMePaymentMethodsConfirm(requestBody, xThrottleEnvironmentId) {
|
|
1782
|
+
return __request(OpenAPI, {
|
|
1783
|
+
method: 'POST',
|
|
1784
|
+
url: '/v1/storefront/me/payment-methods/confirm',
|
|
1785
|
+
headers: {
|
|
1786
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1787
|
+
},
|
|
1788
|
+
body: requestBody,
|
|
1789
|
+
mediaType: 'application/json',
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
/**
|
|
1793
|
+
* @param cartId
|
|
1794
|
+
* @param requestBody
|
|
1795
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1796
|
+
* @returns any Default Response
|
|
1797
|
+
* @throws ApiError
|
|
1798
|
+
*/
|
|
1799
|
+
static postV1StorefrontMeCartsClaim(cartId, requestBody, xThrottleEnvironmentId) {
|
|
1800
|
+
return __request(OpenAPI, {
|
|
1801
|
+
method: 'POST',
|
|
1802
|
+
url: '/v1/storefront/me/carts/{cartId}/claim',
|
|
1803
|
+
path: {
|
|
1804
|
+
'cartId': cartId,
|
|
1805
|
+
},
|
|
1806
|
+
headers: {
|
|
1807
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1808
|
+
},
|
|
1809
|
+
body: requestBody,
|
|
1810
|
+
mediaType: 'application/json',
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1815
|
+
* @param cursor
|
|
1816
|
+
* @param limit
|
|
1817
|
+
* @returns any Default Response
|
|
1818
|
+
* @throws ApiError
|
|
1819
|
+
*/
|
|
1820
|
+
static getV1StorefrontMeOrders(xThrottleEnvironmentId, cursor, limit = 25) {
|
|
1821
|
+
return __request(OpenAPI, {
|
|
1822
|
+
method: 'GET',
|
|
1823
|
+
url: '/v1/storefront/me/orders',
|
|
1824
|
+
headers: {
|
|
1825
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1826
|
+
},
|
|
1827
|
+
query: {
|
|
1828
|
+
'cursor': cursor,
|
|
1829
|
+
'limit': limit,
|
|
1830
|
+
},
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
/**
|
|
1834
|
+
* @param id
|
|
1835
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1836
|
+
* @returns any Default Response
|
|
1837
|
+
* @throws ApiError
|
|
1838
|
+
*/
|
|
1839
|
+
static getV1StorefrontMeOrders1(id, xThrottleEnvironmentId) {
|
|
1840
|
+
return __request(OpenAPI, {
|
|
1841
|
+
method: 'GET',
|
|
1842
|
+
url: '/v1/storefront/me/orders/{id}',
|
|
1843
|
+
path: {
|
|
1844
|
+
'id': id,
|
|
1845
|
+
},
|
|
1846
|
+
headers: {
|
|
1847
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1848
|
+
},
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
/**
|
|
1852
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1853
|
+
* @param cursor
|
|
1854
|
+
* @param limit
|
|
1855
|
+
* @returns any Default Response
|
|
1856
|
+
* @throws ApiError
|
|
1857
|
+
*/
|
|
1858
|
+
static getV1StorefrontMeInvoices(xThrottleEnvironmentId, cursor, limit = 25) {
|
|
1859
|
+
return __request(OpenAPI, {
|
|
1860
|
+
method: 'GET',
|
|
1861
|
+
url: '/v1/storefront/me/invoices',
|
|
1862
|
+
headers: {
|
|
1863
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1864
|
+
},
|
|
1865
|
+
query: {
|
|
1866
|
+
'cursor': cursor,
|
|
1867
|
+
'limit': limit,
|
|
1868
|
+
},
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1871
|
+
/**
|
|
1872
|
+
* @param id
|
|
1873
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1874
|
+
* @returns any Default Response
|
|
1875
|
+
* @throws ApiError
|
|
1876
|
+
*/
|
|
1877
|
+
static getV1StorefrontMeInvoices1(id, xThrottleEnvironmentId) {
|
|
1878
|
+
return __request(OpenAPI, {
|
|
1879
|
+
method: 'GET',
|
|
1880
|
+
url: '/v1/storefront/me/invoices/{id}',
|
|
1881
|
+
path: {
|
|
1882
|
+
'id': id,
|
|
1883
|
+
},
|
|
1884
|
+
headers: {
|
|
1885
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1886
|
+
},
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1891
|
+
* @param cursor
|
|
1892
|
+
* @param limit
|
|
1893
|
+
* @returns any Default Response
|
|
1894
|
+
* @throws ApiError
|
|
1895
|
+
*/
|
|
1896
|
+
static getV1StorefrontMeSubscriptions(xThrottleEnvironmentId, cursor, limit = 25) {
|
|
1897
|
+
return __request(OpenAPI, {
|
|
1898
|
+
method: 'GET',
|
|
1899
|
+
url: '/v1/storefront/me/subscriptions',
|
|
1900
|
+
headers: {
|
|
1901
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1902
|
+
},
|
|
1903
|
+
query: {
|
|
1904
|
+
'cursor': cursor,
|
|
1905
|
+
'limit': limit,
|
|
1906
|
+
},
|
|
1907
|
+
});
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* @param id
|
|
1911
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1912
|
+
* @returns any Default Response
|
|
1913
|
+
* @throws ApiError
|
|
1914
|
+
*/
|
|
1915
|
+
static getV1StorefrontMeSubscriptions1(id, xThrottleEnvironmentId) {
|
|
1916
|
+
return __request(OpenAPI, {
|
|
1917
|
+
method: 'GET',
|
|
1918
|
+
url: '/v1/storefront/me/subscriptions/{id}',
|
|
1919
|
+
path: {
|
|
1920
|
+
'id': id,
|
|
1921
|
+
},
|
|
1922
|
+
headers: {
|
|
1923
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1924
|
+
},
|
|
1925
|
+
});
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* @param id
|
|
1929
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1930
|
+
* @returns any Default Response
|
|
1931
|
+
* @throws ApiError
|
|
1932
|
+
*/
|
|
1933
|
+
static getV1StorefrontMeInvoicesPdf(id, xThrottleEnvironmentId) {
|
|
1934
|
+
return __request(OpenAPI, {
|
|
1935
|
+
method: 'GET',
|
|
1936
|
+
url: '/v1/storefront/me/invoices/{id}/pdf',
|
|
1937
|
+
path: {
|
|
1938
|
+
'id': id,
|
|
1939
|
+
},
|
|
1940
|
+
headers: {
|
|
1941
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1942
|
+
},
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* @param id
|
|
1947
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1948
|
+
* @returns any Default Response
|
|
1949
|
+
* @throws ApiError
|
|
1950
|
+
*/
|
|
1951
|
+
static postV1StorefrontMeSubscriptionsPause(id, xThrottleEnvironmentId) {
|
|
1952
|
+
return __request(OpenAPI, {
|
|
1953
|
+
method: 'POST',
|
|
1954
|
+
url: '/v1/storefront/me/subscriptions/{id}/pause',
|
|
1955
|
+
path: {
|
|
1956
|
+
'id': id,
|
|
1957
|
+
},
|
|
1958
|
+
headers: {
|
|
1959
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1960
|
+
},
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* @param id
|
|
1965
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1966
|
+
* @returns any Default Response
|
|
1967
|
+
* @throws ApiError
|
|
1968
|
+
*/
|
|
1969
|
+
static postV1StorefrontMeSubscriptionsResume(id, xThrottleEnvironmentId) {
|
|
1970
|
+
return __request(OpenAPI, {
|
|
1971
|
+
method: 'POST',
|
|
1972
|
+
url: '/v1/storefront/me/subscriptions/{id}/resume',
|
|
1973
|
+
path: {
|
|
1974
|
+
'id': id,
|
|
1975
|
+
},
|
|
1976
|
+
headers: {
|
|
1977
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1978
|
+
},
|
|
1979
|
+
});
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
* @param id
|
|
1983
|
+
* @param requestBody
|
|
1984
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
1985
|
+
* @returns any Default Response
|
|
1986
|
+
* @throws ApiError
|
|
1987
|
+
*/
|
|
1988
|
+
static postV1StorefrontMeSubscriptionsCancel(id, requestBody, xThrottleEnvironmentId) {
|
|
1989
|
+
return __request(OpenAPI, {
|
|
1990
|
+
method: 'POST',
|
|
1991
|
+
url: '/v1/storefront/me/subscriptions/{id}/cancel',
|
|
1992
|
+
path: {
|
|
1993
|
+
'id': id,
|
|
1994
|
+
},
|
|
1995
|
+
headers: {
|
|
1996
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
1997
|
+
},
|
|
1998
|
+
body: requestBody,
|
|
1999
|
+
mediaType: 'application/json',
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
1010
2002
|
/**
|
|
1011
2003
|
* @param id
|
|
1012
2004
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|