@usethrottle/api-client 2.0.0 → 2.0.1
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 +1 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/EnvironmentIdHeader.d.ts +5 -0
- package/dist/generated/models/EnvironmentIdHeader.d.ts.map +1 -0
- package/dist/generated/models/EnvironmentIdHeader.js +2 -0
- package/dist/generated/models/EnvironmentIdHeader.js.map +1 -0
- package/dist/generated/services/AffiliatesService.d.ts +8 -4
- package/dist/generated/services/AffiliatesService.d.ts.map +1 -1
- package/dist/generated/services/AffiliatesService.js +20 -4
- package/dist/generated/services/AffiliatesService.js.map +1 -1
- package/dist/generated/services/ApiKeysService.d.ts +6 -3
- package/dist/generated/services/ApiKeysService.d.ts.map +1 -1
- package/dist/generated/services/ApiKeysService.js +15 -3
- package/dist/generated/services/ApiKeysService.js.map +1 -1
- package/dist/generated/services/ApplicationEmailSettingsService.d.ts +12 -6
- package/dist/generated/services/ApplicationEmailSettingsService.d.ts.map +1 -1
- package/dist/generated/services/ApplicationEmailSettingsService.js +30 -6
- package/dist/generated/services/ApplicationEmailSettingsService.js.map +1 -1
- package/dist/generated/services/ApplicationEmailTemplatesService.d.ts +14 -7
- package/dist/generated/services/ApplicationEmailTemplatesService.d.ts.map +1 -1
- package/dist/generated/services/ApplicationEmailTemplatesService.js +35 -7
- package/dist/generated/services/ApplicationEmailTemplatesService.js.map +1 -1
- package/dist/generated/services/ApplicationsService.d.ts +14 -7
- package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
- package/dist/generated/services/ApplicationsService.js +35 -7
- package/dist/generated/services/ApplicationsService.js.map +1 -1
- package/dist/generated/services/AuditService.d.ts +2 -1
- package/dist/generated/services/AuditService.d.ts.map +1 -1
- package/dist/generated/services/AuditService.js +5 -1
- package/dist/generated/services/AuditService.js.map +1 -1
- package/dist/generated/services/AuthService.d.ts +2 -1
- package/dist/generated/services/AuthService.d.ts.map +1 -1
- package/dist/generated/services/AuthService.js +5 -1
- package/dist/generated/services/AuthService.js.map +1 -1
- package/dist/generated/services/BigCommerceService.d.ts +8 -4
- package/dist/generated/services/BigCommerceService.d.ts.map +1 -1
- package/dist/generated/services/BigCommerceService.js +20 -4
- package/dist/generated/services/BigCommerceService.js.map +1 -1
- package/dist/generated/services/CartsService.d.ts +30 -15
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js +75 -15
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.d.ts +24 -12
- package/dist/generated/services/CheckoutSessionsService.d.ts.map +1 -1
- package/dist/generated/services/CheckoutSessionsService.js +60 -12
- package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
- package/dist/generated/services/ConnectorsService.d.ts +26 -13
- package/dist/generated/services/ConnectorsService.d.ts.map +1 -1
- package/dist/generated/services/ConnectorsService.js +65 -13
- package/dist/generated/services/ConnectorsService.js.map +1 -1
- package/dist/generated/services/CustomersService.d.ts +34 -17
- package/dist/generated/services/CustomersService.d.ts.map +1 -1
- package/dist/generated/services/CustomersService.js +85 -17
- package/dist/generated/services/CustomersService.js.map +1 -1
- package/dist/generated/services/DefaultService.d.ts +98 -49
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DefaultService.js +245 -49
- package/dist/generated/services/DefaultService.js.map +1 -1
- package/dist/generated/services/DiscountsService.d.ts +14 -7
- package/dist/generated/services/DiscountsService.d.ts.map +1 -1
- package/dist/generated/services/DiscountsService.js +35 -7
- package/dist/generated/services/DiscountsService.js.map +1 -1
- package/dist/generated/services/EmailSettingsService.d.ts +12 -6
- package/dist/generated/services/EmailSettingsService.d.ts.map +1 -1
- package/dist/generated/services/EmailSettingsService.js +30 -6
- package/dist/generated/services/EmailSettingsService.js.map +1 -1
- package/dist/generated/services/EmailTemplatesService.d.ts +16 -8
- package/dist/generated/services/EmailTemplatesService.d.ts.map +1 -1
- package/dist/generated/services/EmailTemplatesService.js +40 -8
- package/dist/generated/services/EmailTemplatesService.js.map +1 -1
- package/dist/generated/services/EmbedService.d.ts +4 -2
- package/dist/generated/services/EmbedService.d.ts.map +1 -1
- package/dist/generated/services/EmbedService.js +10 -2
- package/dist/generated/services/EmbedService.js.map +1 -1
- package/dist/generated/services/EventsService.d.ts +4 -2
- package/dist/generated/services/EventsService.d.ts.map +1 -1
- package/dist/generated/services/EventsService.js +10 -2
- package/dist/generated/services/EventsService.js.map +1 -1
- package/dist/generated/services/ExtensionsService.d.ts +20 -10
- package/dist/generated/services/ExtensionsService.d.ts.map +1 -1
- package/dist/generated/services/ExtensionsService.js +50 -10
- package/dist/generated/services/ExtensionsService.js.map +1 -1
- package/dist/generated/services/FulfillmentsService.d.ts +20 -10
- package/dist/generated/services/FulfillmentsService.d.ts.map +1 -1
- package/dist/generated/services/FulfillmentsService.js +50 -10
- package/dist/generated/services/FulfillmentsService.js.map +1 -1
- package/dist/generated/services/MerchantService.d.ts +10 -5
- package/dist/generated/services/MerchantService.d.ts.map +1 -1
- package/dist/generated/services/MerchantService.js +25 -5
- package/dist/generated/services/MerchantService.js.map +1 -1
- package/dist/generated/services/MerchantsService.d.ts +2 -1
- package/dist/generated/services/MerchantsService.d.ts.map +1 -1
- package/dist/generated/services/MerchantsService.js +5 -1
- package/dist/generated/services/MerchantsService.js.map +1 -1
- package/dist/generated/services/OrdersService.d.ts +22 -11
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +55 -11
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/OrganizationsService.d.ts +8 -4
- package/dist/generated/services/OrganizationsService.d.ts.map +1 -1
- package/dist/generated/services/OrganizationsService.js +20 -4
- package/dist/generated/services/OrganizationsService.js.map +1 -1
- package/dist/generated/services/PartnerSeatsService.d.ts +6 -3
- package/dist/generated/services/PartnerSeatsService.d.ts.map +1 -1
- package/dist/generated/services/PartnerSeatsService.js +15 -3
- package/dist/generated/services/PartnerSeatsService.js.map +1 -1
- package/dist/generated/services/PartnersService.d.ts +16 -8
- package/dist/generated/services/PartnersService.d.ts.map +1 -1
- package/dist/generated/services/PartnersService.js +40 -8
- package/dist/generated/services/PartnersService.js.map +1 -1
- package/dist/generated/services/PaymentMethodsService.d.ts +4 -2
- package/dist/generated/services/PaymentMethodsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentMethodsService.js +10 -2
- package/dist/generated/services/PaymentMethodsService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts +38 -19
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +95 -19
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/StoresService.d.ts +8 -4
- package/dist/generated/services/StoresService.d.ts.map +1 -1
- package/dist/generated/services/StoresService.js +20 -4
- package/dist/generated/services/StoresService.js.map +1 -1
- package/dist/generated/services/SubscriptionsService.d.ts +16 -8
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js +40 -8
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/generated/services/TeamService.d.ts +30 -15
- package/dist/generated/services/TeamService.d.ts.map +1 -1
- package/dist/generated/services/TeamService.js +75 -15
- package/dist/generated/services/TeamService.js.map +1 -1
- package/dist/generated/services/WebhooksInboundService.d.ts +2 -1
- package/dist/generated/services/WebhooksInboundService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksInboundService.js +5 -1
- package/dist/generated/services/WebhooksInboundService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +14 -7
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.js +35 -7
- package/dist/generated/services/WebhooksOutboundService.js.map +1 -1
- package/dist/generated/services/WebhooksService.d.ts +14 -7
- package/dist/generated/services/WebhooksService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksService.js +35 -7
- package/dist/generated/services/WebhooksService.js.map +1 -1
- package/dist/generated/services/WorkspaceService.d.ts +2 -1
- package/dist/generated/services/WorkspaceService.d.ts.map +1 -1
- package/dist/generated/services/WorkspaceService.js +5 -1
- package/dist/generated/services/WorkspaceService.js.map +1 -1
- package/dist/generated/services/WorkspacesService.d.ts +10 -5
- package/dist/generated/services/WorkspacesService.d.ts.map +1 -1
- package/dist/generated/services/WorkspacesService.js +25 -5
- package/dist/generated/services/WorkspacesService.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,178 +3,226 @@ import { request as __request } from '../core/request.js';
|
|
|
3
3
|
export class CheckoutSessionsService {
|
|
4
4
|
/**
|
|
5
5
|
* Create a new hosted checkout session
|
|
6
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
6
7
|
* @returns any Default Response
|
|
7
8
|
* @throws ApiError
|
|
8
9
|
*/
|
|
9
|
-
static postApiV1CheckoutSessions() {
|
|
10
|
+
static postApiV1CheckoutSessions(xThrottleEnvironmentId) {
|
|
10
11
|
return __request(OpenAPI, {
|
|
11
12
|
method: 'POST',
|
|
12
13
|
url: '/api/v1/checkout/sessions',
|
|
14
|
+
headers: {
|
|
15
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
16
|
+
},
|
|
13
17
|
});
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
16
20
|
* Get a checkout session by ID
|
|
17
21
|
* @param id
|
|
22
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
18
23
|
* @returns any Default Response
|
|
19
24
|
* @throws ApiError
|
|
20
25
|
*/
|
|
21
|
-
static getApiV1CheckoutSessions(id) {
|
|
26
|
+
static getApiV1CheckoutSessions(id, xThrottleEnvironmentId) {
|
|
22
27
|
return __request(OpenAPI, {
|
|
23
28
|
method: 'GET',
|
|
24
29
|
url: '/api/v1/checkout/sessions/{id}',
|
|
25
30
|
path: {
|
|
26
31
|
'id': id,
|
|
27
32
|
},
|
|
33
|
+
headers: {
|
|
34
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
35
|
+
},
|
|
28
36
|
});
|
|
29
37
|
}
|
|
30
38
|
/**
|
|
31
39
|
* Cancel a checkout session
|
|
32
40
|
* @param id
|
|
41
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
33
42
|
* @returns void
|
|
34
43
|
* @throws ApiError
|
|
35
44
|
*/
|
|
36
|
-
static deleteApiV1CheckoutSessions(id) {
|
|
45
|
+
static deleteApiV1CheckoutSessions(id, xThrottleEnvironmentId) {
|
|
37
46
|
return __request(OpenAPI, {
|
|
38
47
|
method: 'DELETE',
|
|
39
48
|
url: '/api/v1/checkout/sessions/{id}',
|
|
40
49
|
path: {
|
|
41
50
|
'id': id,
|
|
42
51
|
},
|
|
52
|
+
headers: {
|
|
53
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
54
|
+
},
|
|
43
55
|
});
|
|
44
56
|
}
|
|
45
57
|
/**
|
|
46
58
|
* Get a customer-facing checkout session by ID (public)
|
|
47
59
|
* @param id
|
|
60
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
48
61
|
* @returns any Default Response
|
|
49
62
|
* @throws ApiError
|
|
50
63
|
*/
|
|
51
|
-
static getApiV1CheckoutSessions1(id) {
|
|
64
|
+
static getApiV1CheckoutSessions1(id, xThrottleEnvironmentId) {
|
|
52
65
|
return __request(OpenAPI, {
|
|
53
66
|
method: 'GET',
|
|
54
67
|
url: '/api/v1/checkout-sessions/{id}',
|
|
55
68
|
path: {
|
|
56
69
|
'id': id,
|
|
57
70
|
},
|
|
71
|
+
headers: {
|
|
72
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
73
|
+
},
|
|
58
74
|
});
|
|
59
75
|
}
|
|
60
76
|
/**
|
|
61
77
|
* Get customer-facing embed config by checkout session ID (public)
|
|
62
78
|
* @param id
|
|
79
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
63
80
|
* @returns any Default Response
|
|
64
81
|
* @throws ApiError
|
|
65
82
|
*/
|
|
66
|
-
static getApiV1CheckoutSessionsEmbedConfig(id) {
|
|
83
|
+
static getApiV1CheckoutSessionsEmbedConfig(id, xThrottleEnvironmentId) {
|
|
67
84
|
return __request(OpenAPI, {
|
|
68
85
|
method: 'GET',
|
|
69
86
|
url: '/api/v1/checkout-sessions/{id}/embed-config',
|
|
70
87
|
path: {
|
|
71
88
|
'id': id,
|
|
72
89
|
},
|
|
90
|
+
headers: {
|
|
91
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
92
|
+
},
|
|
73
93
|
});
|
|
74
94
|
}
|
|
75
95
|
/**
|
|
76
96
|
* Get a customer-facing checkout session cart by session ID (public)
|
|
77
97
|
* @param id
|
|
98
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
78
99
|
* @returns any Default Response
|
|
79
100
|
* @throws ApiError
|
|
80
101
|
*/
|
|
81
|
-
static getApiV1CheckoutSessionsCart(id) {
|
|
102
|
+
static getApiV1CheckoutSessionsCart(id, xThrottleEnvironmentId) {
|
|
82
103
|
return __request(OpenAPI, {
|
|
83
104
|
method: 'GET',
|
|
84
105
|
url: '/api/v1/checkout-sessions/{id}/cart',
|
|
85
106
|
path: {
|
|
86
107
|
'id': id,
|
|
87
108
|
},
|
|
109
|
+
headers: {
|
|
110
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
111
|
+
},
|
|
88
112
|
});
|
|
89
113
|
}
|
|
90
114
|
/**
|
|
91
115
|
* Calculate customer-facing checkout session totals by session ID (public)
|
|
92
116
|
* @param id
|
|
117
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
93
118
|
* @returns any Default Response
|
|
94
119
|
* @throws ApiError
|
|
95
120
|
*/
|
|
96
|
-
static postApiV1CheckoutSessionsCalculate(id) {
|
|
121
|
+
static postApiV1CheckoutSessionsCalculate(id, xThrottleEnvironmentId) {
|
|
97
122
|
return __request(OpenAPI, {
|
|
98
123
|
method: 'POST',
|
|
99
124
|
url: '/api/v1/checkout-sessions/{id}/calculate',
|
|
100
125
|
path: {
|
|
101
126
|
'id': id,
|
|
102
127
|
},
|
|
128
|
+
headers: {
|
|
129
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
130
|
+
},
|
|
103
131
|
});
|
|
104
132
|
}
|
|
105
133
|
/**
|
|
106
134
|
* Apply a customer-facing checkout discount by session ID (public)
|
|
107
135
|
* @param id
|
|
136
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
108
137
|
* @returns any Default Response
|
|
109
138
|
* @throws ApiError
|
|
110
139
|
*/
|
|
111
|
-
static postApiV1CheckoutSessionsDiscount(id) {
|
|
140
|
+
static postApiV1CheckoutSessionsDiscount(id, xThrottleEnvironmentId) {
|
|
112
141
|
return __request(OpenAPI, {
|
|
113
142
|
method: 'POST',
|
|
114
143
|
url: '/api/v1/checkout-sessions/{id}/discount',
|
|
115
144
|
path: {
|
|
116
145
|
'id': id,
|
|
117
146
|
},
|
|
147
|
+
headers: {
|
|
148
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
149
|
+
},
|
|
118
150
|
});
|
|
119
151
|
}
|
|
120
152
|
/**
|
|
121
153
|
* Remove a customer-facing checkout discount by session ID (public)
|
|
122
154
|
* @param id
|
|
155
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
123
156
|
* @returns any Default Response
|
|
124
157
|
* @throws ApiError
|
|
125
158
|
*/
|
|
126
|
-
static deleteApiV1CheckoutSessionsDiscount(id) {
|
|
159
|
+
static deleteApiV1CheckoutSessionsDiscount(id, xThrottleEnvironmentId) {
|
|
127
160
|
return __request(OpenAPI, {
|
|
128
161
|
method: 'DELETE',
|
|
129
162
|
url: '/api/v1/checkout-sessions/{id}/discount',
|
|
130
163
|
path: {
|
|
131
164
|
'id': id,
|
|
132
165
|
},
|
|
166
|
+
headers: {
|
|
167
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
168
|
+
},
|
|
133
169
|
});
|
|
134
170
|
}
|
|
135
171
|
/**
|
|
136
172
|
* Complete a checkout session
|
|
137
173
|
* @param id
|
|
174
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
138
175
|
* @returns any Default Response
|
|
139
176
|
* @throws ApiError
|
|
140
177
|
*/
|
|
141
|
-
static postApiV1CheckoutSessionsComplete(id) {
|
|
178
|
+
static postApiV1CheckoutSessionsComplete(id, xThrottleEnvironmentId) {
|
|
142
179
|
return __request(OpenAPI, {
|
|
143
180
|
method: 'POST',
|
|
144
181
|
url: '/api/v1/checkout/sessions/{id}/complete',
|
|
145
182
|
path: {
|
|
146
183
|
'id': id,
|
|
147
184
|
},
|
|
185
|
+
headers: {
|
|
186
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
187
|
+
},
|
|
148
188
|
});
|
|
149
189
|
}
|
|
150
190
|
/**
|
|
151
191
|
* Public customer-facing complete
|
|
152
192
|
* @param id
|
|
193
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
153
194
|
* @returns any Default Response
|
|
154
195
|
* @throws ApiError
|
|
155
196
|
*/
|
|
156
|
-
static postApiV1CheckoutSessionsComplete1(id) {
|
|
197
|
+
static postApiV1CheckoutSessionsComplete1(id, xThrottleEnvironmentId) {
|
|
157
198
|
return __request(OpenAPI, {
|
|
158
199
|
method: 'POST',
|
|
159
200
|
url: '/api/v1/checkout-sessions/{id}/complete',
|
|
160
201
|
path: {
|
|
161
202
|
'id': id,
|
|
162
203
|
},
|
|
204
|
+
headers: {
|
|
205
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
206
|
+
},
|
|
163
207
|
});
|
|
164
208
|
}
|
|
165
209
|
/**
|
|
166
210
|
* List payment methods available for a checkout session (public)
|
|
167
211
|
* @param id
|
|
212
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
168
213
|
* @returns any Default Response
|
|
169
214
|
* @throws ApiError
|
|
170
215
|
*/
|
|
171
|
-
static getApiV1CheckoutSessionsPaymentMethods(id) {
|
|
216
|
+
static getApiV1CheckoutSessionsPaymentMethods(id, xThrottleEnvironmentId) {
|
|
172
217
|
return __request(OpenAPI, {
|
|
173
218
|
method: 'GET',
|
|
174
219
|
url: '/api/v1/checkout-sessions/{id}/payment-methods',
|
|
175
220
|
path: {
|
|
176
221
|
'id': id,
|
|
177
222
|
},
|
|
223
|
+
headers: {
|
|
224
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
225
|
+
},
|
|
178
226
|
});
|
|
179
227
|
}
|
|
180
228
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutSessionsService.js","sourceRoot":"","sources":["../../../src/generated/services/CheckoutSessionsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,uBAAuB;IAChC
|
|
1
|
+
{"version":3,"file":"CheckoutSessionsService.js","sourceRoot":"","sources":["../../../src/generated/services/CheckoutSessionsService.ts"],"names":[],"mappings":"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"}
|
|
@@ -2,13 +2,15 @@ import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
|
2
2
|
export declare class ConnectorsService {
|
|
3
3
|
/**
|
|
4
4
|
* List configured connectors for the calling merchant
|
|
5
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
5
6
|
* @returns any Default Response
|
|
6
7
|
* @throws ApiError
|
|
7
8
|
*/
|
|
8
|
-
static getApiV1Connectors(): CancelablePromise<any>;
|
|
9
|
+
static getApiV1Connectors(xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
9
10
|
/**
|
|
10
11
|
* Create a new connector for the calling merchant
|
|
11
12
|
* @param requestBody
|
|
13
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
12
14
|
* @returns any Default Response
|
|
13
15
|
* @throws ApiError
|
|
14
16
|
*/
|
|
@@ -22,24 +24,27 @@ export declare class ConnectorsService {
|
|
|
22
24
|
acceptedCountries?: Array<string>;
|
|
23
25
|
acceptedCurrencies?: Array<string>;
|
|
24
26
|
active?: boolean;
|
|
25
|
-
}): CancelablePromise<any>;
|
|
27
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
26
28
|
/**
|
|
27
29
|
* List available connector types
|
|
30
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
28
31
|
* @returns any Default Response
|
|
29
32
|
* @throws ApiError
|
|
30
33
|
*/
|
|
31
|
-
static getApiV1ConnectorsAvailable(): CancelablePromise<any>;
|
|
34
|
+
static getApiV1ConnectorsAvailable(xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
32
35
|
/**
|
|
33
36
|
* Get a configured connector by id
|
|
34
37
|
* @param id
|
|
38
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
35
39
|
* @returns any Default Response
|
|
36
40
|
* @throws ApiError
|
|
37
41
|
*/
|
|
38
|
-
static getApiV1Connectors1(id: string): CancelablePromise<any>;
|
|
42
|
+
static getApiV1Connectors1(id: string, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
39
43
|
/**
|
|
40
44
|
* Update a connector for the calling merchant
|
|
41
45
|
* @param id
|
|
42
46
|
* @param requestBody
|
|
47
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
43
48
|
* @returns any Default Response
|
|
44
49
|
* @throws ApiError
|
|
45
50
|
*/
|
|
@@ -53,23 +58,26 @@ export declare class ConnectorsService {
|
|
|
53
58
|
acceptedCountries?: Array<string>;
|
|
54
59
|
acceptedCurrencies?: Array<string>;
|
|
55
60
|
active?: boolean;
|
|
56
|
-
}): CancelablePromise<any>;
|
|
61
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
57
62
|
/**
|
|
58
63
|
* Delete a connector for the calling merchant
|
|
59
64
|
* @param id
|
|
65
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
60
66
|
* @returns any Default Response
|
|
61
67
|
* @throws ApiError
|
|
62
68
|
*/
|
|
63
|
-
static deleteApiV1Connectors(id: string): CancelablePromise<any>;
|
|
69
|
+
static deleteApiV1Connectors(id: string, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
64
70
|
/**
|
|
65
71
|
* Get the calling merchant's Net30 connection
|
|
72
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
66
73
|
* @returns any Default Response
|
|
67
74
|
* @throws ApiError
|
|
68
75
|
*/
|
|
69
|
-
static getApiV1Net30Connection(): CancelablePromise<any>;
|
|
76
|
+
static getApiV1Net30Connection(xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
70
77
|
/**
|
|
71
78
|
* Create the calling merchant's Net30 connection
|
|
72
79
|
* @param requestBody
|
|
80
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
73
81
|
* @returns any Default Response
|
|
74
82
|
* @throws ApiError
|
|
75
83
|
*/
|
|
@@ -79,11 +87,12 @@ export declare class ConnectorsService {
|
|
|
79
87
|
termsText?: string | null;
|
|
80
88
|
maxOrderTotal?: number | null;
|
|
81
89
|
enabled: boolean;
|
|
82
|
-
}): CancelablePromise<any>;
|
|
90
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
83
91
|
/**
|
|
84
92
|
* Update the calling merchant's Net30 connection
|
|
85
93
|
* @param id
|
|
86
94
|
* @param requestBody
|
|
95
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
87
96
|
* @returns any Default Response
|
|
88
97
|
* @throws ApiError
|
|
89
98
|
*/
|
|
@@ -93,36 +102,40 @@ export declare class ConnectorsService {
|
|
|
93
102
|
termsText?: string | null;
|
|
94
103
|
maxOrderTotal?: number | null;
|
|
95
104
|
enabled?: boolean;
|
|
96
|
-
}): CancelablePromise<any>;
|
|
105
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
97
106
|
/**
|
|
98
107
|
* Soft-delete (disable) the calling merchant's Net30 connection
|
|
99
108
|
* @param id
|
|
109
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
100
110
|
* @returns any Default Response
|
|
101
111
|
* @throws ApiError
|
|
102
112
|
*/
|
|
103
|
-
static deleteApiV1Net30Connection(id: string): CancelablePromise<any>;
|
|
113
|
+
static deleteApiV1Net30Connection(id: string, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
104
114
|
/**
|
|
105
115
|
* List the calling merchant's Net30 eligible customers
|
|
116
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
106
117
|
* @returns any Default Response
|
|
107
118
|
* @throws ApiError
|
|
108
119
|
*/
|
|
109
|
-
static getApiV1Net30EligibleCustomers(): CancelablePromise<any>;
|
|
120
|
+
static getApiV1Net30EligibleCustomers(xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
110
121
|
/**
|
|
111
122
|
* Add a customer to the Net30 eligible allowlist
|
|
112
123
|
* @param requestBody
|
|
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.
|
|
113
125
|
* @returns any Default Response
|
|
114
126
|
* @throws ApiError
|
|
115
127
|
*/
|
|
116
128
|
static postApiV1Net30EligibleCustomers(requestBody: {
|
|
117
129
|
customerId: string;
|
|
118
130
|
notes?: string;
|
|
119
|
-
}): CancelablePromise<any>;
|
|
131
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
120
132
|
/**
|
|
121
133
|
* Remove a customer from the Net30 eligible allowlist
|
|
122
134
|
* @param customerId
|
|
135
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
123
136
|
* @returns any Default Response
|
|
124
137
|
* @throws ApiError
|
|
125
138
|
*/
|
|
126
|
-
static deleteApiV1Net30EligibleCustomers(customerId: string): CancelablePromise<any>;
|
|
139
|
+
static deleteApiV1Net30EligibleCustomers(customerId: string, xThrottleEnvironmentId?: string): CancelablePromise<any>;
|
|
127
140
|
}
|
|
128
141
|
//# sourceMappingURL=ConnectorsService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/ConnectorsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,iBAAiB;IAC1B
|
|
1
|
+
{"version":3,"file":"ConnectorsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/ConnectorsService.ts"],"names":[],"mappings":"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"}
|
|
@@ -3,69 +3,89 @@ import { request as __request } from '../core/request.js';
|
|
|
3
3
|
export class ConnectorsService {
|
|
4
4
|
/**
|
|
5
5
|
* List configured connectors for the calling merchant
|
|
6
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
6
7
|
* @returns any Default Response
|
|
7
8
|
* @throws ApiError
|
|
8
9
|
*/
|
|
9
|
-
static getApiV1Connectors() {
|
|
10
|
+
static getApiV1Connectors(xThrottleEnvironmentId) {
|
|
10
11
|
return __request(OpenAPI, {
|
|
11
12
|
method: 'GET',
|
|
12
13
|
url: '/api/v1/connectors',
|
|
14
|
+
headers: {
|
|
15
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
16
|
+
},
|
|
13
17
|
});
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
16
20
|
* Create a new connector for the calling merchant
|
|
17
21
|
* @param requestBody
|
|
22
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
18
23
|
* @returns any Default Response
|
|
19
24
|
* @throws ApiError
|
|
20
25
|
*/
|
|
21
|
-
static postApiV1Connectors(requestBody) {
|
|
26
|
+
static postApiV1Connectors(requestBody, xThrottleEnvironmentId) {
|
|
22
27
|
return __request(OpenAPI, {
|
|
23
28
|
method: 'POST',
|
|
24
29
|
url: '/api/v1/connectors',
|
|
30
|
+
headers: {
|
|
31
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
32
|
+
},
|
|
25
33
|
body: requestBody,
|
|
26
34
|
mediaType: 'application/json',
|
|
27
35
|
});
|
|
28
36
|
}
|
|
29
37
|
/**
|
|
30
38
|
* List available connector types
|
|
39
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
31
40
|
* @returns any Default Response
|
|
32
41
|
* @throws ApiError
|
|
33
42
|
*/
|
|
34
|
-
static getApiV1ConnectorsAvailable() {
|
|
43
|
+
static getApiV1ConnectorsAvailable(xThrottleEnvironmentId) {
|
|
35
44
|
return __request(OpenAPI, {
|
|
36
45
|
method: 'GET',
|
|
37
46
|
url: '/api/v1/connectors/available',
|
|
47
|
+
headers: {
|
|
48
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
49
|
+
},
|
|
38
50
|
});
|
|
39
51
|
}
|
|
40
52
|
/**
|
|
41
53
|
* Get a configured connector by id
|
|
42
54
|
* @param id
|
|
55
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
43
56
|
* @returns any Default Response
|
|
44
57
|
* @throws ApiError
|
|
45
58
|
*/
|
|
46
|
-
static getApiV1Connectors1(id) {
|
|
59
|
+
static getApiV1Connectors1(id, xThrottleEnvironmentId) {
|
|
47
60
|
return __request(OpenAPI, {
|
|
48
61
|
method: 'GET',
|
|
49
62
|
url: '/api/v1/connectors/{id}',
|
|
50
63
|
path: {
|
|
51
64
|
'id': id,
|
|
52
65
|
},
|
|
66
|
+
headers: {
|
|
67
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
68
|
+
},
|
|
53
69
|
});
|
|
54
70
|
}
|
|
55
71
|
/**
|
|
56
72
|
* Update a connector for the calling merchant
|
|
57
73
|
* @param id
|
|
58
74
|
* @param requestBody
|
|
75
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
59
76
|
* @returns any Default Response
|
|
60
77
|
* @throws ApiError
|
|
61
78
|
*/
|
|
62
|
-
static patchApiV1Connectors(id, requestBody) {
|
|
79
|
+
static patchApiV1Connectors(id, requestBody, xThrottleEnvironmentId) {
|
|
63
80
|
return __request(OpenAPI, {
|
|
64
81
|
method: 'PATCH',
|
|
65
82
|
url: '/api/v1/connectors/{id}',
|
|
66
83
|
path: {
|
|
67
84
|
'id': id,
|
|
68
85
|
},
|
|
86
|
+
headers: {
|
|
87
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
88
|
+
},
|
|
69
89
|
body: requestBody,
|
|
70
90
|
mediaType: 'application/json',
|
|
71
91
|
});
|
|
@@ -73,39 +93,51 @@ export class ConnectorsService {
|
|
|
73
93
|
/**
|
|
74
94
|
* Delete a connector for the calling merchant
|
|
75
95
|
* @param id
|
|
96
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
76
97
|
* @returns any Default Response
|
|
77
98
|
* @throws ApiError
|
|
78
99
|
*/
|
|
79
|
-
static deleteApiV1Connectors(id) {
|
|
100
|
+
static deleteApiV1Connectors(id, xThrottleEnvironmentId) {
|
|
80
101
|
return __request(OpenAPI, {
|
|
81
102
|
method: 'DELETE',
|
|
82
103
|
url: '/api/v1/connectors/{id}',
|
|
83
104
|
path: {
|
|
84
105
|
'id': id,
|
|
85
106
|
},
|
|
107
|
+
headers: {
|
|
108
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
109
|
+
},
|
|
86
110
|
});
|
|
87
111
|
}
|
|
88
112
|
/**
|
|
89
113
|
* Get the calling merchant's Net30 connection
|
|
114
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
90
115
|
* @returns any Default Response
|
|
91
116
|
* @throws ApiError
|
|
92
117
|
*/
|
|
93
|
-
static getApiV1Net30Connection() {
|
|
118
|
+
static getApiV1Net30Connection(xThrottleEnvironmentId) {
|
|
94
119
|
return __request(OpenAPI, {
|
|
95
120
|
method: 'GET',
|
|
96
121
|
url: '/api/v1/net30/connection',
|
|
122
|
+
headers: {
|
|
123
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
124
|
+
},
|
|
97
125
|
});
|
|
98
126
|
}
|
|
99
127
|
/**
|
|
100
128
|
* Create the calling merchant's Net30 connection
|
|
101
129
|
* @param requestBody
|
|
130
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
102
131
|
* @returns any Default Response
|
|
103
132
|
* @throws ApiError
|
|
104
133
|
*/
|
|
105
|
-
static postApiV1Net30Connection(requestBody) {
|
|
134
|
+
static postApiV1Net30Connection(requestBody, xThrottleEnvironmentId) {
|
|
106
135
|
return __request(OpenAPI, {
|
|
107
136
|
method: 'POST',
|
|
108
137
|
url: '/api/v1/net30/connection',
|
|
138
|
+
headers: {
|
|
139
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
140
|
+
},
|
|
109
141
|
body: requestBody,
|
|
110
142
|
mediaType: 'application/json',
|
|
111
143
|
});
|
|
@@ -114,16 +146,20 @@ export class ConnectorsService {
|
|
|
114
146
|
* Update the calling merchant's Net30 connection
|
|
115
147
|
* @param id
|
|
116
148
|
* @param requestBody
|
|
149
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
117
150
|
* @returns any Default Response
|
|
118
151
|
* @throws ApiError
|
|
119
152
|
*/
|
|
120
|
-
static patchApiV1Net30Connection(id, requestBody) {
|
|
153
|
+
static patchApiV1Net30Connection(id, requestBody, xThrottleEnvironmentId) {
|
|
121
154
|
return __request(OpenAPI, {
|
|
122
155
|
method: 'PATCH',
|
|
123
156
|
url: '/api/v1/net30/connection/{id}',
|
|
124
157
|
path: {
|
|
125
158
|
'id': id,
|
|
126
159
|
},
|
|
160
|
+
headers: {
|
|
161
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
162
|
+
},
|
|
127
163
|
body: requestBody,
|
|
128
164
|
mediaType: 'application/json',
|
|
129
165
|
});
|
|
@@ -131,39 +167,51 @@ export class ConnectorsService {
|
|
|
131
167
|
/**
|
|
132
168
|
* Soft-delete (disable) the calling merchant's Net30 connection
|
|
133
169
|
* @param id
|
|
170
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
134
171
|
* @returns any Default Response
|
|
135
172
|
* @throws ApiError
|
|
136
173
|
*/
|
|
137
|
-
static deleteApiV1Net30Connection(id) {
|
|
174
|
+
static deleteApiV1Net30Connection(id, xThrottleEnvironmentId) {
|
|
138
175
|
return __request(OpenAPI, {
|
|
139
176
|
method: 'DELETE',
|
|
140
177
|
url: '/api/v1/net30/connection/{id}',
|
|
141
178
|
path: {
|
|
142
179
|
'id': id,
|
|
143
180
|
},
|
|
181
|
+
headers: {
|
|
182
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
183
|
+
},
|
|
144
184
|
});
|
|
145
185
|
}
|
|
146
186
|
/**
|
|
147
187
|
* List the calling merchant's Net30 eligible customers
|
|
188
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
148
189
|
* @returns any Default Response
|
|
149
190
|
* @throws ApiError
|
|
150
191
|
*/
|
|
151
|
-
static getApiV1Net30EligibleCustomers() {
|
|
192
|
+
static getApiV1Net30EligibleCustomers(xThrottleEnvironmentId) {
|
|
152
193
|
return __request(OpenAPI, {
|
|
153
194
|
method: 'GET',
|
|
154
195
|
url: '/api/v1/net30/eligible-customers',
|
|
196
|
+
headers: {
|
|
197
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
198
|
+
},
|
|
155
199
|
});
|
|
156
200
|
}
|
|
157
201
|
/**
|
|
158
202
|
* Add a customer to the Net30 eligible allowlist
|
|
159
203
|
* @param requestBody
|
|
204
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
160
205
|
* @returns any Default Response
|
|
161
206
|
* @throws ApiError
|
|
162
207
|
*/
|
|
163
|
-
static postApiV1Net30EligibleCustomers(requestBody) {
|
|
208
|
+
static postApiV1Net30EligibleCustomers(requestBody, xThrottleEnvironmentId) {
|
|
164
209
|
return __request(OpenAPI, {
|
|
165
210
|
method: 'POST',
|
|
166
211
|
url: '/api/v1/net30/eligible-customers',
|
|
212
|
+
headers: {
|
|
213
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
214
|
+
},
|
|
167
215
|
body: requestBody,
|
|
168
216
|
mediaType: 'application/json',
|
|
169
217
|
});
|
|
@@ -171,16 +219,20 @@ export class ConnectorsService {
|
|
|
171
219
|
/**
|
|
172
220
|
* Remove a customer from the Net30 eligible allowlist
|
|
173
221
|
* @param customerId
|
|
222
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
174
223
|
* @returns any Default Response
|
|
175
224
|
* @throws ApiError
|
|
176
225
|
*/
|
|
177
|
-
static deleteApiV1Net30EligibleCustomers(customerId) {
|
|
226
|
+
static deleteApiV1Net30EligibleCustomers(customerId, xThrottleEnvironmentId) {
|
|
178
227
|
return __request(OpenAPI, {
|
|
179
228
|
method: 'DELETE',
|
|
180
229
|
url: '/api/v1/net30/eligible-customers/{customerId}',
|
|
181
230
|
path: {
|
|
182
231
|
'customerId': customerId,
|
|
183
232
|
},
|
|
233
|
+
headers: {
|
|
234
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
235
|
+
},
|
|
184
236
|
});
|
|
185
237
|
}
|
|
186
238
|
}
|