@usethrottle/api-client 1.4.2 → 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/README.md +10 -0
- 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 +38 -14
- package/dist/generated/services/ExtensionsService.d.ts.map +1 -1
- package/dist/generated/services/ExtensionsService.js +54 -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 +10 -10
|
@@ -5,16 +5,20 @@ export class PaymentsService {
|
|
|
5
5
|
* Create a payment for an order
|
|
6
6
|
* @param id
|
|
7
7
|
* @param requestBody
|
|
8
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
8
9
|
* @returns any Default Response
|
|
9
10
|
* @throws ApiError
|
|
10
11
|
*/
|
|
11
|
-
static postApiV1OrdersPayments(id, requestBody) {
|
|
12
|
+
static postApiV1OrdersPayments(id, requestBody, xThrottleEnvironmentId) {
|
|
12
13
|
return __request(OpenAPI, {
|
|
13
14
|
method: 'POST',
|
|
14
15
|
url: '/api/v1/orders/{id}/payments',
|
|
15
16
|
path: {
|
|
16
17
|
'id': id,
|
|
17
18
|
},
|
|
19
|
+
headers: {
|
|
20
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
21
|
+
},
|
|
18
22
|
body: requestBody,
|
|
19
23
|
mediaType: 'application/json',
|
|
20
24
|
});
|
|
@@ -22,26 +26,31 @@ export class PaymentsService {
|
|
|
22
26
|
/**
|
|
23
27
|
* List payments for an order
|
|
24
28
|
* @param id
|
|
29
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
25
30
|
* @returns any Default Response
|
|
26
31
|
* @throws ApiError
|
|
27
32
|
*/
|
|
28
|
-
static getApiV1OrdersPayments(id) {
|
|
33
|
+
static getApiV1OrdersPayments(id, xThrottleEnvironmentId) {
|
|
29
34
|
return __request(OpenAPI, {
|
|
30
35
|
method: 'GET',
|
|
31
36
|
url: '/api/v1/orders/{id}/payments',
|
|
32
37
|
path: {
|
|
33
38
|
'id': id,
|
|
34
39
|
},
|
|
40
|
+
headers: {
|
|
41
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
42
|
+
},
|
|
35
43
|
});
|
|
36
44
|
}
|
|
37
45
|
/**
|
|
38
46
|
* Get a specific payment for an order
|
|
39
47
|
* @param id
|
|
40
48
|
* @param paymentId
|
|
49
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
41
50
|
* @returns any Default Response
|
|
42
51
|
* @throws ApiError
|
|
43
52
|
*/
|
|
44
|
-
static getApiV1OrdersPayments1(id, paymentId) {
|
|
53
|
+
static getApiV1OrdersPayments1(id, paymentId, xThrottleEnvironmentId) {
|
|
45
54
|
return __request(OpenAPI, {
|
|
46
55
|
method: 'GET',
|
|
47
56
|
url: '/api/v1/orders/{id}/payments/{paymentId}',
|
|
@@ -49,6 +58,9 @@ export class PaymentsService {
|
|
|
49
58
|
'id': id,
|
|
50
59
|
'paymentId': paymentId,
|
|
51
60
|
},
|
|
61
|
+
headers: {
|
|
62
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
63
|
+
},
|
|
52
64
|
errors: {
|
|
53
65
|
404: `Default Response`,
|
|
54
66
|
},
|
|
@@ -57,20 +69,25 @@ export class PaymentsService {
|
|
|
57
69
|
/**
|
|
58
70
|
* List transactions for a payment
|
|
59
71
|
* @param id
|
|
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.
|
|
60
73
|
* @returns any Default Response
|
|
61
74
|
* @throws ApiError
|
|
62
75
|
*/
|
|
63
|
-
static getApiV1PaymentsTransactions(id) {
|
|
76
|
+
static getApiV1PaymentsTransactions(id, xThrottleEnvironmentId) {
|
|
64
77
|
return __request(OpenAPI, {
|
|
65
78
|
method: 'GET',
|
|
66
79
|
url: '/api/v1/payments/{id}/transactions',
|
|
67
80
|
path: {
|
|
68
81
|
'id': id,
|
|
69
82
|
},
|
|
83
|
+
headers: {
|
|
84
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
85
|
+
},
|
|
70
86
|
});
|
|
71
87
|
}
|
|
72
88
|
/**
|
|
73
89
|
* List payments for the calling merchant.
|
|
90
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
74
91
|
* @param method
|
|
75
92
|
* @param status
|
|
76
93
|
* @param limit
|
|
@@ -84,10 +101,13 @@ export class PaymentsService {
|
|
|
84
101
|
* @returns any Default Response
|
|
85
102
|
* @throws ApiError
|
|
86
103
|
*/
|
|
87
|
-
static getApiV1Payments(method, status, limit, cursor, aging, orderId, dueFrom, dueTo, amountMin, amountMax) {
|
|
104
|
+
static getApiV1Payments(xThrottleEnvironmentId, method, status, limit, cursor, aging, orderId, dueFrom, dueTo, amountMin, amountMax) {
|
|
88
105
|
return __request(OpenAPI, {
|
|
89
106
|
method: 'GET',
|
|
90
107
|
url: '/api/v1/payments',
|
|
108
|
+
headers: {
|
|
109
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
110
|
+
},
|
|
91
111
|
query: {
|
|
92
112
|
'method': method,
|
|
93
113
|
'status': status,
|
|
@@ -105,31 +125,39 @@ export class PaymentsService {
|
|
|
105
125
|
/**
|
|
106
126
|
* Get a payment by id.
|
|
107
127
|
* @param id
|
|
128
|
+
* @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
129
|
* @returns any Default Response
|
|
109
130
|
* @throws ApiError
|
|
110
131
|
*/
|
|
111
|
-
static getApiV1Payments1(id) {
|
|
132
|
+
static getApiV1Payments1(id, xThrottleEnvironmentId) {
|
|
112
133
|
return __request(OpenAPI, {
|
|
113
134
|
method: 'GET',
|
|
114
135
|
url: '/api/v1/payments/{id}',
|
|
115
136
|
path: {
|
|
116
137
|
'id': id,
|
|
117
138
|
},
|
|
139
|
+
headers: {
|
|
140
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
141
|
+
},
|
|
118
142
|
});
|
|
119
143
|
}
|
|
120
144
|
/**
|
|
121
145
|
* Authorize a payment (pending -> authorized)
|
|
122
146
|
* @param id
|
|
147
|
+
* @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
148
|
* @returns any Default Response
|
|
124
149
|
* @throws ApiError
|
|
125
150
|
*/
|
|
126
|
-
static postApiV1PaymentsAuthorize(id) {
|
|
151
|
+
static postApiV1PaymentsAuthorize(id, xThrottleEnvironmentId) {
|
|
127
152
|
return __request(OpenAPI, {
|
|
128
153
|
method: 'POST',
|
|
129
154
|
url: '/api/v1/payments/{id}/authorize',
|
|
130
155
|
path: {
|
|
131
156
|
'id': id,
|
|
132
157
|
},
|
|
158
|
+
headers: {
|
|
159
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
160
|
+
},
|
|
133
161
|
errors: {
|
|
134
162
|
400: `Default Response`,
|
|
135
163
|
},
|
|
@@ -139,16 +167,20 @@ export class PaymentsService {
|
|
|
139
167
|
* Capture a payment (authorized -> captured)
|
|
140
168
|
* @param id
|
|
141
169
|
* @param requestBody
|
|
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.
|
|
142
171
|
* @returns any Default Response
|
|
143
172
|
* @throws ApiError
|
|
144
173
|
*/
|
|
145
|
-
static postApiV1PaymentsCapture(id, requestBody) {
|
|
174
|
+
static postApiV1PaymentsCapture(id, requestBody, xThrottleEnvironmentId) {
|
|
146
175
|
return __request(OpenAPI, {
|
|
147
176
|
method: 'POST',
|
|
148
177
|
url: '/api/v1/payments/{id}/capture',
|
|
149
178
|
path: {
|
|
150
179
|
'id': id,
|
|
151
180
|
},
|
|
181
|
+
headers: {
|
|
182
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
183
|
+
},
|
|
152
184
|
body: requestBody,
|
|
153
185
|
mediaType: 'application/json',
|
|
154
186
|
});
|
|
@@ -156,16 +188,20 @@ export class PaymentsService {
|
|
|
156
188
|
/**
|
|
157
189
|
* Void an authorized payment
|
|
158
190
|
* @param id
|
|
191
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
159
192
|
* @returns any Default Response
|
|
160
193
|
* @throws ApiError
|
|
161
194
|
*/
|
|
162
|
-
static postApiV1PaymentsVoid(id) {
|
|
195
|
+
static postApiV1PaymentsVoid(id, xThrottleEnvironmentId) {
|
|
163
196
|
return __request(OpenAPI, {
|
|
164
197
|
method: 'POST',
|
|
165
198
|
url: '/api/v1/payments/{id}/void',
|
|
166
199
|
path: {
|
|
167
200
|
'id': id,
|
|
168
201
|
},
|
|
202
|
+
headers: {
|
|
203
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
204
|
+
},
|
|
169
205
|
errors: {
|
|
170
206
|
400: `Default Response`,
|
|
171
207
|
},
|
|
@@ -175,16 +211,20 @@ export class PaymentsService {
|
|
|
175
211
|
* Refund a captured payment (full or partial)
|
|
176
212
|
* @param id
|
|
177
213
|
* @param requestBody
|
|
214
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
178
215
|
* @returns any Default Response
|
|
179
216
|
* @throws ApiError
|
|
180
217
|
*/
|
|
181
|
-
static postApiV1PaymentsRefund(id, requestBody) {
|
|
218
|
+
static postApiV1PaymentsRefund(id, requestBody, xThrottleEnvironmentId) {
|
|
182
219
|
return __request(OpenAPI, {
|
|
183
220
|
method: 'POST',
|
|
184
221
|
url: '/api/v1/payments/{id}/refund',
|
|
185
222
|
path: {
|
|
186
223
|
'id': id,
|
|
187
224
|
},
|
|
225
|
+
headers: {
|
|
226
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
227
|
+
},
|
|
188
228
|
body: requestBody,
|
|
189
229
|
mediaType: 'application/json',
|
|
190
230
|
});
|
|
@@ -192,43 +232,55 @@ export class PaymentsService {
|
|
|
192
232
|
/**
|
|
193
233
|
* Resend the Net-N invoice email to the customer.
|
|
194
234
|
* @param id
|
|
235
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
195
236
|
* @returns any Default Response
|
|
196
237
|
* @throws ApiError
|
|
197
238
|
*/
|
|
198
|
-
static postApiV1PaymentsInvoiceResend(id) {
|
|
239
|
+
static postApiV1PaymentsInvoiceResend(id, xThrottleEnvironmentId) {
|
|
199
240
|
return __request(OpenAPI, {
|
|
200
241
|
method: 'POST',
|
|
201
242
|
url: '/api/v1/payments/{id}/invoice/resend',
|
|
202
243
|
path: {
|
|
203
244
|
'id': id,
|
|
204
245
|
},
|
|
246
|
+
headers: {
|
|
247
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
248
|
+
},
|
|
205
249
|
});
|
|
206
250
|
}
|
|
207
251
|
/**
|
|
208
252
|
* Get a signed download URL for a Net30 invoice PDF.
|
|
209
253
|
* @param id
|
|
254
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
210
255
|
* @returns any Default Response
|
|
211
256
|
* @throws ApiError
|
|
212
257
|
*/
|
|
213
|
-
static getApiV1PaymentsInvoicePdf(id) {
|
|
258
|
+
static getApiV1PaymentsInvoicePdf(id, xThrottleEnvironmentId) {
|
|
214
259
|
return __request(OpenAPI, {
|
|
215
260
|
method: 'GET',
|
|
216
261
|
url: '/api/v1/payments/{id}/invoice-pdf',
|
|
217
262
|
path: {
|
|
218
263
|
'id': id,
|
|
219
264
|
},
|
|
265
|
+
headers: {
|
|
266
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
267
|
+
},
|
|
220
268
|
});
|
|
221
269
|
}
|
|
222
270
|
/**
|
|
223
271
|
* Mint a Gr4vy Embed token for card capture. The token is scoped to a server-side checkout session.
|
|
224
272
|
* @param requestBody
|
|
273
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
225
274
|
* @returns any Default Response
|
|
226
275
|
* @throws ApiError
|
|
227
276
|
*/
|
|
228
|
-
static postApiV1CheckoutSessionsEmbedToken(requestBody) {
|
|
277
|
+
static postApiV1CheckoutSessionsEmbedToken(requestBody, xThrottleEnvironmentId) {
|
|
229
278
|
return __request(OpenAPI, {
|
|
230
279
|
method: 'POST',
|
|
231
280
|
url: '/api/v1/checkout-sessions/embed-token',
|
|
281
|
+
headers: {
|
|
282
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
283
|
+
},
|
|
232
284
|
body: requestBody,
|
|
233
285
|
mediaType: 'application/json',
|
|
234
286
|
});
|
|
@@ -236,32 +288,40 @@ export class PaymentsService {
|
|
|
236
288
|
/**
|
|
237
289
|
* Re-mint a Gr4vy Embed JWT for an existing throttle checkout session. Anonymous; the session id is the only secret needed.
|
|
238
290
|
* @param id
|
|
291
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
239
292
|
* @returns any Default Response
|
|
240
293
|
* @throws ApiError
|
|
241
294
|
*/
|
|
242
|
-
static getApiV1CheckoutSessionsEmbedToken(id) {
|
|
295
|
+
static getApiV1CheckoutSessionsEmbedToken(id, xThrottleEnvironmentId) {
|
|
243
296
|
return __request(OpenAPI, {
|
|
244
297
|
method: 'GET',
|
|
245
298
|
url: '/api/v1/checkout-sessions/{id}/embed-token',
|
|
246
299
|
path: {
|
|
247
300
|
'id': id,
|
|
248
301
|
},
|
|
302
|
+
headers: {
|
|
303
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
304
|
+
},
|
|
249
305
|
});
|
|
250
306
|
}
|
|
251
307
|
/**
|
|
252
308
|
* Update free-text notes on a payment (5000 char max).
|
|
253
309
|
* @param id
|
|
254
310
|
* @param requestBody
|
|
311
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
255
312
|
* @returns any Default Response
|
|
256
313
|
* @throws ApiError
|
|
257
314
|
*/
|
|
258
|
-
static patchApiV1PaymentsNotes(id, requestBody) {
|
|
315
|
+
static patchApiV1PaymentsNotes(id, requestBody, xThrottleEnvironmentId) {
|
|
259
316
|
return __request(OpenAPI, {
|
|
260
317
|
method: 'PATCH',
|
|
261
318
|
url: '/api/v1/payments/{id}/notes',
|
|
262
319
|
path: {
|
|
263
320
|
'id': id,
|
|
264
321
|
},
|
|
322
|
+
headers: {
|
|
323
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
324
|
+
},
|
|
265
325
|
body: requestBody,
|
|
266
326
|
mediaType: 'application/json',
|
|
267
327
|
});
|
|
@@ -270,16 +330,20 @@ export class PaymentsService {
|
|
|
270
330
|
* Open a dispute on a Net30 payment.
|
|
271
331
|
* @param id
|
|
272
332
|
* @param requestBody
|
|
333
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
273
334
|
* @returns any Default Response
|
|
274
335
|
* @throws ApiError
|
|
275
336
|
*/
|
|
276
|
-
static postApiV1PaymentsDispute(id, requestBody) {
|
|
337
|
+
static postApiV1PaymentsDispute(id, requestBody, xThrottleEnvironmentId) {
|
|
277
338
|
return __request(OpenAPI, {
|
|
278
339
|
method: 'POST',
|
|
279
340
|
url: '/api/v1/payments/{id}/dispute',
|
|
280
341
|
path: {
|
|
281
342
|
'id': id,
|
|
282
343
|
},
|
|
344
|
+
headers: {
|
|
345
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
346
|
+
},
|
|
283
347
|
body: requestBody,
|
|
284
348
|
mediaType: 'application/json',
|
|
285
349
|
});
|
|
@@ -287,45 +351,57 @@ export class PaymentsService {
|
|
|
287
351
|
/**
|
|
288
352
|
* Clear an open dispute on a payment (leaves reason + opened_at for audit).
|
|
289
353
|
* @param id
|
|
354
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
290
355
|
* @returns any Default Response
|
|
291
356
|
* @throws ApiError
|
|
292
357
|
*/
|
|
293
|
-
static postApiV1PaymentsDisputeClear(id) {
|
|
358
|
+
static postApiV1PaymentsDisputeClear(id, xThrottleEnvironmentId) {
|
|
294
359
|
return __request(OpenAPI, {
|
|
295
360
|
method: 'POST',
|
|
296
361
|
url: '/api/v1/payments/{id}/dispute/clear',
|
|
297
362
|
path: {
|
|
298
363
|
'id': id,
|
|
299
364
|
},
|
|
365
|
+
headers: {
|
|
366
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
367
|
+
},
|
|
300
368
|
});
|
|
301
369
|
}
|
|
302
370
|
/**
|
|
303
371
|
* Backdate metadata.dueDate so a Net-N invoice falls into a specific aging bucket. Demo/test tool only.
|
|
304
372
|
* @param id
|
|
305
373
|
* @param requestBody
|
|
374
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
306
375
|
* @returns any Default Response
|
|
307
376
|
* @throws ApiError
|
|
308
377
|
*/
|
|
309
|
-
static postApiV1PaymentsBackdateDueDate(id, requestBody) {
|
|
378
|
+
static postApiV1PaymentsBackdateDueDate(id, requestBody, xThrottleEnvironmentId) {
|
|
310
379
|
return __request(OpenAPI, {
|
|
311
380
|
method: 'POST',
|
|
312
381
|
url: '/api/v1/payments/{id}/backdate-due-date',
|
|
313
382
|
path: {
|
|
314
383
|
'id': id,
|
|
315
384
|
},
|
|
385
|
+
headers: {
|
|
386
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
387
|
+
},
|
|
316
388
|
body: requestBody,
|
|
317
389
|
mediaType: 'application/json',
|
|
318
390
|
});
|
|
319
391
|
}
|
|
320
392
|
/**
|
|
321
393
|
* AR aging report: outstanding Net30 payments bucketed by days past due.
|
|
394
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
322
395
|
* @returns any Default Response
|
|
323
396
|
* @throws ApiError
|
|
324
397
|
*/
|
|
325
|
-
static getApiV1InvoicesAging() {
|
|
398
|
+
static getApiV1InvoicesAging(xThrottleEnvironmentId) {
|
|
326
399
|
return __request(OpenAPI, {
|
|
327
400
|
method: 'GET',
|
|
328
401
|
url: '/api/v1/invoices/aging',
|
|
402
|
+
headers: {
|
|
403
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
404
|
+
},
|
|
329
405
|
});
|
|
330
406
|
}
|
|
331
407
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentsService.js","sourceRoot":"","sources":["../../../src/generated/services/PaymentsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,eAAe;IACxB
|
|
1
|
+
{"version":3,"file":"PaymentsService.js","sourceRoot":"","sources":["../../../src/generated/services/PaymentsService.ts"],"names":[],"mappings":"AAK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;OAKG;IACI,MAAM,CAAC,qBAAqB,CAC/B,sBAA+B;QAE/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,wBAAwB;YAC7B,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBAAsB;aACtD;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -3,6 +3,7 @@ export declare class StoresService {
|
|
|
3
3
|
/**
|
|
4
4
|
* Create a new store under the organization
|
|
5
5
|
* @param requestBody
|
|
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
|
*/
|
|
@@ -17,7 +18,7 @@ export declare class StoresService {
|
|
|
17
18
|
*/
|
|
18
19
|
currency?: string;
|
|
19
20
|
settings?: Record<string, any>;
|
|
20
|
-
}): CancelablePromise<{
|
|
21
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
21
22
|
data?: {
|
|
22
23
|
id?: string;
|
|
23
24
|
workspaceId?: string;
|
|
@@ -42,10 +43,11 @@ export declare class StoresService {
|
|
|
42
43
|
}>;
|
|
43
44
|
/**
|
|
44
45
|
* List all stores for the organization
|
|
46
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
45
47
|
* @returns any Default Response
|
|
46
48
|
* @throws ApiError
|
|
47
49
|
*/
|
|
48
|
-
static getApiV1Stores(): CancelablePromise<{
|
|
50
|
+
static getApiV1Stores(xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
49
51
|
data?: Array<{
|
|
50
52
|
id?: string;
|
|
51
53
|
workspaceId?: string;
|
|
@@ -71,10 +73,11 @@ export declare class StoresService {
|
|
|
71
73
|
/**
|
|
72
74
|
* Get a store by ID
|
|
73
75
|
* @param id
|
|
76
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
74
77
|
* @returns any Default Response
|
|
75
78
|
* @throws ApiError
|
|
76
79
|
*/
|
|
77
|
-
static getApiV1Stores1(id: string): CancelablePromise<{
|
|
80
|
+
static getApiV1Stores1(id: string, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
78
81
|
data?: {
|
|
79
82
|
id?: string;
|
|
80
83
|
workspaceId?: string;
|
|
@@ -101,6 +104,7 @@ export declare class StoresService {
|
|
|
101
104
|
* Update a store (name, currency, settings, active status)
|
|
102
105
|
* @param id
|
|
103
106
|
* @param requestBody
|
|
107
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
104
108
|
* @returns any Default Response
|
|
105
109
|
* @throws ApiError
|
|
106
110
|
*/
|
|
@@ -115,7 +119,7 @@ export declare class StoresService {
|
|
|
115
119
|
* Deactivate a store without deleting it
|
|
116
120
|
*/
|
|
117
121
|
isActive?: boolean;
|
|
118
|
-
}): CancelablePromise<{
|
|
122
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
119
123
|
data?: {
|
|
120
124
|
id?: string;
|
|
121
125
|
workspaceId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoresService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/StoresService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,aAAa;IACtB
|
|
1
|
+
{"version":3,"file":"StoresService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/StoresService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,aAAa;IACtB;;;;;;OAMG;WACW,eAAe,CACzB,WAAW,EAAE;QACT,IAAI,EAAE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CAAC;QAC/B;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;KACtB,EACD,sBAAsB,CAAC,EAAE,MAAM,GAChC,iBAAiB,CAAC;QACjB,IAAI,CAAC,EAAE;YACH,EAAE,CAAC,EAAE,MAAM,CAAC;YACZ,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,IAAI,CAAC,EAAE,MAAM,CAAC;YACd;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,SAAS,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC;QACF,IAAI,CAAC,EAAE;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE;gBACT,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBACvB,OAAO,CAAC,EAAE,OAAO,CAAC;aACrB,CAAC;SACL,CAAC;KACL,CAAC;CAiBL"}
|
|
@@ -4,13 +4,17 @@ export class StoresService {
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a new store under the organization
|
|
6
6
|
* @param requestBody
|
|
7
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
7
8
|
* @returns any Default Response
|
|
8
9
|
* @throws ApiError
|
|
9
10
|
*/
|
|
10
|
-
static postApiV1Stores(requestBody) {
|
|
11
|
+
static postApiV1Stores(requestBody, xThrottleEnvironmentId) {
|
|
11
12
|
return __request(OpenAPI, {
|
|
12
13
|
method: 'POST',
|
|
13
14
|
url: '/api/v1/stores',
|
|
15
|
+
headers: {
|
|
16
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
17
|
+
},
|
|
14
18
|
body: requestBody,
|
|
15
19
|
mediaType: 'application/json',
|
|
16
20
|
errors: {
|
|
@@ -21,28 +25,36 @@ export class StoresService {
|
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
27
|
* List all stores for the organization
|
|
28
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
24
29
|
* @returns any Default Response
|
|
25
30
|
* @throws ApiError
|
|
26
31
|
*/
|
|
27
|
-
static getApiV1Stores() {
|
|
32
|
+
static getApiV1Stores(xThrottleEnvironmentId) {
|
|
28
33
|
return __request(OpenAPI, {
|
|
29
34
|
method: 'GET',
|
|
30
35
|
url: '/api/v1/stores',
|
|
36
|
+
headers: {
|
|
37
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
38
|
+
},
|
|
31
39
|
});
|
|
32
40
|
}
|
|
33
41
|
/**
|
|
34
42
|
* Get a store by ID
|
|
35
43
|
* @param id
|
|
44
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
36
45
|
* @returns any Default Response
|
|
37
46
|
* @throws ApiError
|
|
38
47
|
*/
|
|
39
|
-
static getApiV1Stores1(id) {
|
|
48
|
+
static getApiV1Stores1(id, xThrottleEnvironmentId) {
|
|
40
49
|
return __request(OpenAPI, {
|
|
41
50
|
method: 'GET',
|
|
42
51
|
url: '/api/v1/stores/{id}',
|
|
43
52
|
path: {
|
|
44
53
|
'id': id,
|
|
45
54
|
},
|
|
55
|
+
headers: {
|
|
56
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
57
|
+
},
|
|
46
58
|
errors: {
|
|
47
59
|
404: `Default Response`,
|
|
48
60
|
},
|
|
@@ -52,16 +64,20 @@ export class StoresService {
|
|
|
52
64
|
* Update a store (name, currency, settings, active status)
|
|
53
65
|
* @param id
|
|
54
66
|
* @param requestBody
|
|
67
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
55
68
|
* @returns any Default Response
|
|
56
69
|
* @throws ApiError
|
|
57
70
|
*/
|
|
58
|
-
static patchApiV1Stores(id, requestBody) {
|
|
71
|
+
static patchApiV1Stores(id, requestBody, xThrottleEnvironmentId) {
|
|
59
72
|
return __request(OpenAPI, {
|
|
60
73
|
method: 'PATCH',
|
|
61
74
|
url: '/api/v1/stores/{id}',
|
|
62
75
|
path: {
|
|
63
76
|
'id': id,
|
|
64
77
|
},
|
|
78
|
+
headers: {
|
|
79
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
80
|
+
},
|
|
65
81
|
body: requestBody,
|
|
66
82
|
mediaType: 'application/json',
|
|
67
83
|
errors: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoresService.js","sourceRoot":"","sources":["../../../src/generated/services/StoresService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,aAAa;IACtB
|
|
1
|
+
{"version":3,"file":"StoresService.js","sourceRoot":"","sources":["../../../src/generated/services/StoresService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,aAAa;IACtB;;;;;;OAMG;IACI,MAAM,CAAC,eAAe,CACzB,WAWC,EACD,sBAA+B;QAwB/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,gBAAgB;YACrB,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBAAsB;aACtD;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;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