@usethrottle/api-client 5.28.0 → 5.29.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/services/ApplicationsService.d.ts +8 -8
- package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.d.ts +314 -38
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js +8 -2
- 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 +1 -1
- package/dist/generated/services/CheckoutSessionsService.js.map +1 -1
- package/dist/generated/services/CustomersService.d.ts +0 -4
- package/dist/generated/services/CustomersService.d.ts.map +1 -1
- package/dist/generated/services/CustomersService.js +1 -1
- package/dist/generated/services/CustomersService.js.map +1 -1
- package/dist/generated/services/DefaultService.d.ts +26 -5
- package/dist/generated/services/DefaultService.d.ts.map +1 -1
- package/dist/generated/services/DefaultService.js +4 -8
- package/dist/generated/services/DefaultService.js.map +1 -1
- package/dist/generated/services/DiscountsService.d.ts +45 -21
- package/dist/generated/services/DiscountsService.d.ts.map +1 -1
- package/dist/generated/services/DiscountsService.js.map +1 -1
- package/dist/generated/services/ExtensionsService.d.ts +46 -0
- package/dist/generated/services/ExtensionsService.d.ts.map +1 -1
- package/dist/generated/services/ExtensionsService.js.map +1 -1
- package/dist/generated/services/FormsService.d.ts +58 -1
- package/dist/generated/services/FormsService.d.ts.map +1 -1
- package/dist/generated/services/FormsService.js +31 -1
- package/dist/generated/services/FormsService.js.map +1 -1
- package/dist/generated/services/OrdersService.d.ts +103 -8
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +3 -3
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts +0 -4
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js +1 -1
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/QuotesService.d.ts +0 -4
- package/dist/generated/services/QuotesService.d.ts.map +1 -1
- package/dist/generated/services/QuotesService.js +2 -2
- package/dist/generated/services/QuotesService.js.map +1 -1
- package/dist/generated/services/SubscriptionsService.d.ts +60 -4
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js +1 -1
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +3 -3
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,10 @@ export declare class FormsService {
|
|
|
21
21
|
* Where a plain HTML post goes after submitting.
|
|
22
22
|
*/
|
|
23
23
|
redirectUrl?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* true also emails the application owner's current Throttle account address on each submission (no confirmation needed). Default false.
|
|
26
|
+
*/
|
|
27
|
+
notifyAppOwner?: boolean;
|
|
24
28
|
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
25
29
|
data?: {
|
|
26
30
|
id?: string;
|
|
@@ -37,6 +41,10 @@ export declare class FormsService {
|
|
|
37
41
|
pendingEmails?: Array<string>;
|
|
38
42
|
allowedOrigins?: Array<string>;
|
|
39
43
|
redirectUrl?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Also emails the application owner (their current Throttle account address, resolved at send time and never returned).
|
|
46
|
+
*/
|
|
47
|
+
notifyAppOwner?: boolean;
|
|
40
48
|
createdAt?: string;
|
|
41
49
|
updatedAt?: string;
|
|
42
50
|
};
|
|
@@ -73,6 +81,10 @@ export declare class FormsService {
|
|
|
73
81
|
pendingEmails?: Array<string>;
|
|
74
82
|
allowedOrigins?: Array<string>;
|
|
75
83
|
redirectUrl?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Also emails the application owner (their current Throttle account address, resolved at send time and never returned).
|
|
86
|
+
*/
|
|
87
|
+
notifyAppOwner?: boolean;
|
|
76
88
|
createdAt?: string;
|
|
77
89
|
updatedAt?: string;
|
|
78
90
|
}>;
|
|
@@ -110,6 +122,10 @@ export declare class FormsService {
|
|
|
110
122
|
pendingEmails?: Array<string>;
|
|
111
123
|
allowedOrigins?: Array<string>;
|
|
112
124
|
redirectUrl?: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* Also emails the application owner (their current Throttle account address, resolved at send time and never returned).
|
|
127
|
+
*/
|
|
128
|
+
notifyAppOwner?: boolean;
|
|
113
129
|
createdAt?: string;
|
|
114
130
|
updatedAt?: string;
|
|
115
131
|
};
|
|
@@ -150,6 +166,10 @@ export declare class FormsService {
|
|
|
150
166
|
* Where a plain HTML post goes after submitting.
|
|
151
167
|
*/
|
|
152
168
|
redirectUrl?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* true also emails the application owner's current Throttle account address on each submission (no confirmation needed). Default false.
|
|
171
|
+
*/
|
|
172
|
+
notifyAppOwner?: boolean;
|
|
153
173
|
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
154
174
|
data?: {
|
|
155
175
|
id?: string;
|
|
@@ -166,6 +186,10 @@ export declare class FormsService {
|
|
|
166
186
|
pendingEmails?: Array<string>;
|
|
167
187
|
allowedOrigins?: Array<string>;
|
|
168
188
|
redirectUrl?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Also emails the application owner (their current Throttle account address, resolved at send time and never returned).
|
|
191
|
+
*/
|
|
192
|
+
notifyAppOwner?: boolean;
|
|
169
193
|
createdAt?: string;
|
|
170
194
|
updatedAt?: string;
|
|
171
195
|
};
|
|
@@ -181,7 +205,7 @@ export declare class FormsService {
|
|
|
181
205
|
};
|
|
182
206
|
}>;
|
|
183
207
|
/**
|
|
184
|
-
* List a site form's submissions, newest first. Pass `meta.pagination.cursor` back as `cursor` for the next page. Requires `forms:read`.
|
|
208
|
+
* List a site form's submissions, newest first. Pass `meta.pagination.cursor` back as `cursor` for the next page. Requires `forms:read`. A key that belongs to an extension installation, an extension session and an OAuth or AI-agent token also need an explicit `customer_pii:read` (`*` does not count): without it the answer is `403 insufficient_scopes`. Use `/submissions/metadata` for a view without visitor data.
|
|
185
209
|
* @param id Form id (UUID).
|
|
186
210
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
187
211
|
* @param limit Default 50.
|
|
@@ -222,6 +246,39 @@ export declare class FormsService {
|
|
|
222
246
|
};
|
|
223
247
|
};
|
|
224
248
|
}>;
|
|
249
|
+
/**
|
|
250
|
+
* Metadata-only view of a site form's submissions, newest first: `{ totalCount, items: [{ id, submittedAt, subject, status }] }`. `subject` is the visitor-supplied value of the `subject` field (at most 100 characters; null if it looks like contact details); no other visitor data is returned. `status` is the email delivery status. Same `limit`/`cursor` pagination as the full list. Requires `forms:read`.
|
|
251
|
+
* @param id Form id (UUID).
|
|
252
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
253
|
+
* @param limit Default 50.
|
|
254
|
+
* @param cursor
|
|
255
|
+
* @returns any Default Response
|
|
256
|
+
* @throws ApiError
|
|
257
|
+
*/
|
|
258
|
+
static getApiV1FormsSubmissionsMetadata(id: string, xThrottleEnvironmentId?: string, limit?: number, cursor?: string): CancelablePromise<{
|
|
259
|
+
data?: {
|
|
260
|
+
/**
|
|
261
|
+
* All submissions of the form.
|
|
262
|
+
*/
|
|
263
|
+
totalCount?: number;
|
|
264
|
+
items?: Array<{
|
|
265
|
+
id?: string;
|
|
266
|
+
submittedAt?: string;
|
|
267
|
+
subject?: string | null;
|
|
268
|
+
status?: 'queued' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped';
|
|
269
|
+
}>;
|
|
270
|
+
};
|
|
271
|
+
meta?: {
|
|
272
|
+
/**
|
|
273
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
274
|
+
*/
|
|
275
|
+
requestId?: string;
|
|
276
|
+
pagination?: {
|
|
277
|
+
cursor?: string | null;
|
|
278
|
+
hasMore?: boolean;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
}>;
|
|
225
282
|
/**
|
|
226
283
|
* Submit a site form from a web page. No API key. Accepts a plain HTML form post (answered with a 303 to the form redirectUrl, or a thank-you page) or JSON. Any field names; values are text, numbers, true/false or lists of those. Fields starting with `_` are not stored, and a filled `_gotcha` is treated as spam. Notification emails go only to the addresses set on the form.
|
|
227
284
|
* @param publicKey The form's frm_ key.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/FormsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,YAAY;IACrB;;;;;;OAMG;WACW,cAAc,CACxB,WAAW,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B;;WAEG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC/B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"FormsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/FormsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,qBAAa,YAAY;IACrB;;;;;;OAMG;WACW,cAAc,CACxB,WAAW,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B;;WAEG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC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;WACW,+BAA+B,CACzC,KAAK,EAAE,MAAM,EACb,sBAAsB,CAAC,EAAE,MAAM,GAChC,iBAAiB,CAAC,GAAG,CAAC;CAY5B"}
|
|
@@ -88,7 +88,7 @@ export class FormsService {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* List a site form's submissions, newest first. Pass `meta.pagination.cursor` back as `cursor` for the next page. Requires `forms:read`.
|
|
91
|
+
* List a site form's submissions, newest first. Pass `meta.pagination.cursor` back as `cursor` for the next page. Requires `forms:read`. A key that belongs to an extension installation, an extension session and an OAuth or AI-agent token also need an explicit `customer_pii:read` (`*` does not count): without it the answer is `403 insufficient_scopes`. Use `/submissions/metadata` for a view without visitor data.
|
|
92
92
|
* @param id Form id (UUID).
|
|
93
93
|
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
94
94
|
* @param limit Default 50.
|
|
@@ -110,6 +110,36 @@ export class FormsService {
|
|
|
110
110
|
'limit': limit,
|
|
111
111
|
'cursor': cursor,
|
|
112
112
|
},
|
|
113
|
+
errors: {
|
|
114
|
+
400: `Invalid request — the body, query, or path failed validation. See \`error.details\`.`,
|
|
115
|
+
403: `\`insufficient_scopes\`: an extension installation key, extension session or OAuth/AI-agent token without an explicit \`customer_pii:read\`.`,
|
|
116
|
+
404: `\`not_found\`: no such form in this environment.`,
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Metadata-only view of a site form's submissions, newest first: `{ totalCount, items: [{ id, submittedAt, subject, status }] }`. `subject` is the visitor-supplied value of the `subject` field (at most 100 characters; null if it looks like contact details); no other visitor data is returned. `status` is the email delivery status. Same `limit`/`cursor` pagination as the full list. Requires `forms:read`.
|
|
122
|
+
* @param id Form id (UUID).
|
|
123
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
124
|
+
* @param limit Default 50.
|
|
125
|
+
* @param cursor
|
|
126
|
+
* @returns any Default Response
|
|
127
|
+
* @throws ApiError
|
|
128
|
+
*/
|
|
129
|
+
static getApiV1FormsSubmissionsMetadata(id, xThrottleEnvironmentId, limit, cursor) {
|
|
130
|
+
return __request(OpenAPI, {
|
|
131
|
+
method: 'GET',
|
|
132
|
+
url: '/api/v1/forms/{id}/submissions/metadata',
|
|
133
|
+
path: {
|
|
134
|
+
'id': id,
|
|
135
|
+
},
|
|
136
|
+
headers: {
|
|
137
|
+
'X-Throttle-Environment-Id': xThrottleEnvironmentId,
|
|
138
|
+
},
|
|
139
|
+
query: {
|
|
140
|
+
'limit': limit,
|
|
141
|
+
'cursor': cursor,
|
|
142
|
+
},
|
|
113
143
|
errors: {
|
|
114
144
|
400: `Invalid request — the body, query, or path failed validation. See \`error.details\`.`,
|
|
115
145
|
404: `\`not_found\`: no such form in this environment.`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormsService.js","sourceRoot":"","sources":["../../../src/generated/services/FormsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,YAAY;IACrB;;;;;;OAMG;IACI,MAAM,CAAC,cAAc,CACxB,
|
|
1
|
+
{"version":3,"file":"FormsService.js","sourceRoot":"","sources":["../../../src/generated/services/FormsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,MAAM,OAAO,YAAY;IACrB;;;;;;OAMG;IACI,MAAM,CAAC,cAAc,CACxB,WAkBC,EACD,sBAA+B;QAmC/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE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sB;aACtD;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACJ,GAAG,EAAE,iDAAiD;gBACtD,GAAG,EAAE,0EAA0E;gBAC/E,GAAG,EAAE,6DAA6D;aACrE;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,8BAA8B,CACxC,KAAa,EACb,sBAA+B;QAE/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,0CAA0C;YAC/C,IAAI,EAAE;gBACF,OAAO,EAAE,KAAK;aACjB;YACD,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBAAsB;aACtD;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,+BAA+B,CACzC,KAAa,EACb,sBAA+B;QAE/B,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,0CAA0C;YAC/C,IAAI,EAAE;gBACF,OAAO,EAAE,KAAK;aACjB;YACD,OAAO,EAAE;gBACL,2BAA2B,EAAE,sBAAsB;aACtD;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -208,6 +208,8 @@ export declare class OrdersService {
|
|
|
208
208
|
workspaceId?: string;
|
|
209
209
|
discountId?: string | null;
|
|
210
210
|
discountCode?: string | null;
|
|
211
|
+
shippingDiscountId?: string | null;
|
|
212
|
+
shippingDiscountCode?: string | null;
|
|
211
213
|
orderNumber?: string;
|
|
212
214
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
213
215
|
displayStatus?: string;
|
|
@@ -248,6 +250,10 @@ export declare class OrdersService {
|
|
|
248
250
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
249
251
|
*/
|
|
250
252
|
shippingTotal?: number;
|
|
253
|
+
/**
|
|
254
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
255
|
+
*/
|
|
256
|
+
shippingDiscountTotal?: number;
|
|
251
257
|
/**
|
|
252
258
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
253
259
|
*/
|
|
@@ -463,6 +469,8 @@ export declare class OrdersService {
|
|
|
463
469
|
workspaceId?: string;
|
|
464
470
|
discountId?: string | null;
|
|
465
471
|
discountCode?: string | null;
|
|
472
|
+
shippingDiscountId?: string | null;
|
|
473
|
+
shippingDiscountCode?: string | null;
|
|
466
474
|
orderNumber?: string;
|
|
467
475
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
468
476
|
displayStatus?: string;
|
|
@@ -503,6 +511,10 @@ export declare class OrdersService {
|
|
|
503
511
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
504
512
|
*/
|
|
505
513
|
shippingTotal?: number;
|
|
514
|
+
/**
|
|
515
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
516
|
+
*/
|
|
517
|
+
shippingDiscountTotal?: number;
|
|
506
518
|
/**
|
|
507
519
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
508
520
|
*/
|
|
@@ -726,6 +738,8 @@ export declare class OrdersService {
|
|
|
726
738
|
workspaceId?: string;
|
|
727
739
|
discountId?: string | null;
|
|
728
740
|
discountCode?: string | null;
|
|
741
|
+
shippingDiscountId?: string | null;
|
|
742
|
+
shippingDiscountCode?: string | null;
|
|
729
743
|
orderNumber?: string;
|
|
730
744
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
731
745
|
displayStatus?: string;
|
|
@@ -766,6 +780,10 @@ export declare class OrdersService {
|
|
|
766
780
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
767
781
|
*/
|
|
768
782
|
shippingTotal?: number;
|
|
783
|
+
/**
|
|
784
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
785
|
+
*/
|
|
786
|
+
shippingDiscountTotal?: number;
|
|
769
787
|
/**
|
|
770
788
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
771
789
|
*/
|
|
@@ -1026,6 +1044,8 @@ export declare class OrdersService {
|
|
|
1026
1044
|
workspaceId?: string;
|
|
1027
1045
|
discountId?: string | null;
|
|
1028
1046
|
discountCode?: string | null;
|
|
1047
|
+
shippingDiscountId?: string | null;
|
|
1048
|
+
shippingDiscountCode?: string | null;
|
|
1029
1049
|
orderNumber?: string;
|
|
1030
1050
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
1031
1051
|
displayStatus?: string;
|
|
@@ -1066,6 +1086,10 @@ export declare class OrdersService {
|
|
|
1066
1086
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1067
1087
|
*/
|
|
1068
1088
|
shippingTotal?: number;
|
|
1089
|
+
/**
|
|
1090
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1091
|
+
*/
|
|
1092
|
+
shippingDiscountTotal?: number;
|
|
1069
1093
|
/**
|
|
1070
1094
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1071
1095
|
*/
|
|
@@ -1277,6 +1301,8 @@ export declare class OrdersService {
|
|
|
1277
1301
|
workspaceId?: string;
|
|
1278
1302
|
discountId?: string | null;
|
|
1279
1303
|
discountCode?: string | null;
|
|
1304
|
+
shippingDiscountId?: string | null;
|
|
1305
|
+
shippingDiscountCode?: string | null;
|
|
1280
1306
|
orderNumber?: string;
|
|
1281
1307
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
1282
1308
|
displayStatus?: string;
|
|
@@ -1317,6 +1343,10 @@ export declare class OrdersService {
|
|
|
1317
1343
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1318
1344
|
*/
|
|
1319
1345
|
shippingTotal?: number;
|
|
1346
|
+
/**
|
|
1347
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1348
|
+
*/
|
|
1349
|
+
shippingDiscountTotal?: number;
|
|
1320
1350
|
/**
|
|
1321
1351
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1322
1352
|
*/
|
|
@@ -1523,6 +1553,8 @@ export declare class OrdersService {
|
|
|
1523
1553
|
workspaceId?: string;
|
|
1524
1554
|
discountId?: string | null;
|
|
1525
1555
|
discountCode?: string | null;
|
|
1556
|
+
shippingDiscountId?: string | null;
|
|
1557
|
+
shippingDiscountCode?: string | null;
|
|
1526
1558
|
orderNumber?: string;
|
|
1527
1559
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
1528
1560
|
displayStatus?: string;
|
|
@@ -1563,6 +1595,10 @@ export declare class OrdersService {
|
|
|
1563
1595
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1564
1596
|
*/
|
|
1565
1597
|
shippingTotal?: number;
|
|
1598
|
+
/**
|
|
1599
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1600
|
+
*/
|
|
1601
|
+
shippingDiscountTotal?: number;
|
|
1566
1602
|
/**
|
|
1567
1603
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1568
1604
|
*/
|
|
@@ -1769,6 +1805,8 @@ export declare class OrdersService {
|
|
|
1769
1805
|
workspaceId?: string;
|
|
1770
1806
|
discountId?: string | null;
|
|
1771
1807
|
discountCode?: string | null;
|
|
1808
|
+
shippingDiscountId?: string | null;
|
|
1809
|
+
shippingDiscountCode?: string | null;
|
|
1772
1810
|
orderNumber?: string;
|
|
1773
1811
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
1774
1812
|
displayStatus?: string;
|
|
@@ -1809,6 +1847,10 @@ export declare class OrdersService {
|
|
|
1809
1847
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1810
1848
|
*/
|
|
1811
1849
|
shippingTotal?: number;
|
|
1850
|
+
/**
|
|
1851
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1852
|
+
*/
|
|
1853
|
+
shippingDiscountTotal?: number;
|
|
1812
1854
|
/**
|
|
1813
1855
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
1814
1856
|
*/
|
|
@@ -2016,6 +2058,8 @@ export declare class OrdersService {
|
|
|
2016
2058
|
workspaceId?: string;
|
|
2017
2059
|
discountId?: string | null;
|
|
2018
2060
|
discountCode?: string | null;
|
|
2061
|
+
shippingDiscountId?: string | null;
|
|
2062
|
+
shippingDiscountCode?: string | null;
|
|
2019
2063
|
orderNumber?: string;
|
|
2020
2064
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
2021
2065
|
displayStatus?: string;
|
|
@@ -2056,6 +2100,10 @@ export declare class OrdersService {
|
|
|
2056
2100
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2057
2101
|
*/
|
|
2058
2102
|
shippingTotal?: number;
|
|
2103
|
+
/**
|
|
2104
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2105
|
+
*/
|
|
2106
|
+
shippingDiscountTotal?: number;
|
|
2059
2107
|
/**
|
|
2060
2108
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2061
2109
|
*/
|
|
@@ -2272,6 +2320,8 @@ export declare class OrdersService {
|
|
|
2272
2320
|
workspaceId?: string;
|
|
2273
2321
|
discountId?: string | null;
|
|
2274
2322
|
discountCode?: string | null;
|
|
2323
|
+
shippingDiscountId?: string | null;
|
|
2324
|
+
shippingDiscountCode?: string | null;
|
|
2275
2325
|
orderNumber?: string;
|
|
2276
2326
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
2277
2327
|
displayStatus?: string;
|
|
@@ -2312,6 +2362,10 @@ export declare class OrdersService {
|
|
|
2312
2362
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2313
2363
|
*/
|
|
2314
2364
|
shippingTotal?: number;
|
|
2365
|
+
/**
|
|
2366
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2367
|
+
*/
|
|
2368
|
+
shippingDiscountTotal?: number;
|
|
2315
2369
|
/**
|
|
2316
2370
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2317
2371
|
*/
|
|
@@ -2518,6 +2572,8 @@ export declare class OrdersService {
|
|
|
2518
2572
|
workspaceId?: string;
|
|
2519
2573
|
discountId?: string | null;
|
|
2520
2574
|
discountCode?: string | null;
|
|
2575
|
+
shippingDiscountId?: string | null;
|
|
2576
|
+
shippingDiscountCode?: string | null;
|
|
2521
2577
|
orderNumber?: string;
|
|
2522
2578
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
2523
2579
|
displayStatus?: string;
|
|
@@ -2558,6 +2614,10 @@ export declare class OrdersService {
|
|
|
2558
2614
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2559
2615
|
*/
|
|
2560
2616
|
shippingTotal?: number;
|
|
2617
|
+
/**
|
|
2618
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2619
|
+
*/
|
|
2620
|
+
shippingDiscountTotal?: number;
|
|
2561
2621
|
/**
|
|
2562
2622
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2563
2623
|
*/
|
|
@@ -2770,6 +2830,8 @@ export declare class OrdersService {
|
|
|
2770
2830
|
workspaceId?: string;
|
|
2771
2831
|
discountId?: string | null;
|
|
2772
2832
|
discountCode?: string | null;
|
|
2833
|
+
shippingDiscountId?: string | null;
|
|
2834
|
+
shippingDiscountCode?: string | null;
|
|
2773
2835
|
orderNumber?: string;
|
|
2774
2836
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
2775
2837
|
displayStatus?: string;
|
|
@@ -2810,6 +2872,10 @@ export declare class OrdersService {
|
|
|
2810
2872
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2811
2873
|
*/
|
|
2812
2874
|
shippingTotal?: number;
|
|
2875
|
+
/**
|
|
2876
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2877
|
+
*/
|
|
2878
|
+
shippingDiscountTotal?: number;
|
|
2813
2879
|
/**
|
|
2814
2880
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
2815
2881
|
*/
|
|
@@ -3016,6 +3082,8 @@ export declare class OrdersService {
|
|
|
3016
3082
|
workspaceId?: string;
|
|
3017
3083
|
discountId?: string | null;
|
|
3018
3084
|
discountCode?: string | null;
|
|
3085
|
+
shippingDiscountId?: string | null;
|
|
3086
|
+
shippingDiscountCode?: string | null;
|
|
3019
3087
|
orderNumber?: string;
|
|
3020
3088
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
3021
3089
|
displayStatus?: string;
|
|
@@ -3056,6 +3124,10 @@ export declare class OrdersService {
|
|
|
3056
3124
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3057
3125
|
*/
|
|
3058
3126
|
shippingTotal?: number;
|
|
3127
|
+
/**
|
|
3128
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3129
|
+
*/
|
|
3130
|
+
shippingDiscountTotal?: number;
|
|
3059
3131
|
/**
|
|
3060
3132
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3061
3133
|
*/
|
|
@@ -3259,6 +3331,8 @@ export declare class OrdersService {
|
|
|
3259
3331
|
workspaceId?: string;
|
|
3260
3332
|
discountId?: string | null;
|
|
3261
3333
|
discountCode?: string | null;
|
|
3334
|
+
shippingDiscountId?: string | null;
|
|
3335
|
+
shippingDiscountCode?: string | null;
|
|
3262
3336
|
orderNumber?: string;
|
|
3263
3337
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
3264
3338
|
displayStatus?: string;
|
|
@@ -3299,6 +3373,10 @@ export declare class OrdersService {
|
|
|
3299
3373
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3300
3374
|
*/
|
|
3301
3375
|
shippingTotal?: number;
|
|
3376
|
+
/**
|
|
3377
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3378
|
+
*/
|
|
3379
|
+
shippingDiscountTotal?: number;
|
|
3302
3380
|
/**
|
|
3303
3381
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3304
3382
|
*/
|
|
@@ -3566,6 +3644,8 @@ export declare class OrdersService {
|
|
|
3566
3644
|
workspaceId?: string;
|
|
3567
3645
|
discountId?: string | null;
|
|
3568
3646
|
discountCode?: string | null;
|
|
3647
|
+
shippingDiscountId?: string | null;
|
|
3648
|
+
shippingDiscountCode?: string | null;
|
|
3569
3649
|
orderNumber?: string;
|
|
3570
3650
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
3571
3651
|
displayStatus?: string;
|
|
@@ -3606,6 +3686,10 @@ export declare class OrdersService {
|
|
|
3606
3686
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3607
3687
|
*/
|
|
3608
3688
|
shippingTotal?: number;
|
|
3689
|
+
/**
|
|
3690
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3691
|
+
*/
|
|
3692
|
+
shippingDiscountTotal?: number;
|
|
3609
3693
|
/**
|
|
3610
3694
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
3611
3695
|
*/
|
|
@@ -3909,17 +3993,17 @@ export declare class OrdersService {
|
|
|
3909
3993
|
/**
|
|
3910
3994
|
* Start a card payment the merchant types in for the customer (a mail or telephone order) on a draft order built in the dashboard. Returns a 30-minute `embedUrl` that only the Throttle dashboard can show; the secure card form there charges the order as a MOTO transaction and the card never reaches Throttle. The card is saved to the order's customer when `saveCard` is true or the order has a subscription line (renewals charge it). Cancels any open payment link first. An API key needs both `orders:write` and `checkout_sessions:write`.
|
|
3911
3995
|
* @param id
|
|
3912
|
-
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
3913
3996
|
* @param requestBody
|
|
3997
|
+
* @param xThrottleEnvironmentId Optional workspace environment id for dashboard-session, Clerk JWT, and extension-session requests. API keys are already pinned to one workspace environment.
|
|
3914
3998
|
* @returns any Default Response
|
|
3915
3999
|
* @throws ApiError
|
|
3916
4000
|
*/
|
|
3917
|
-
static postApiV1OrdersCardEntry(id: string,
|
|
4001
|
+
static postApiV1OrdersCardEntry(id: string, requestBody: {
|
|
3918
4002
|
/**
|
|
3919
4003
|
* Save the card to the order's customer for future orders. Default false; always true when the order has a subscription line.
|
|
3920
4004
|
*/
|
|
3921
4005
|
saveCard?: boolean;
|
|
3922
|
-
}): CancelablePromise<{
|
|
4006
|
+
}, xThrottleEnvironmentId?: string): CancelablePromise<{
|
|
3923
4007
|
data?: {
|
|
3924
4008
|
sessionId?: string;
|
|
3925
4009
|
/**
|
|
@@ -3932,7 +4016,16 @@ export declare class OrdersService {
|
|
|
3932
4016
|
*/
|
|
3933
4017
|
saveCard?: boolean;
|
|
3934
4018
|
};
|
|
3935
|
-
meta?:
|
|
4019
|
+
meta?: {
|
|
4020
|
+
/**
|
|
4021
|
+
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
4022
|
+
*/
|
|
4023
|
+
requestId?: string;
|
|
4024
|
+
pagination?: {
|
|
4025
|
+
cursor?: string | null;
|
|
4026
|
+
hasMore?: boolean;
|
|
4027
|
+
};
|
|
4028
|
+
};
|
|
3936
4029
|
}>;
|
|
3937
4030
|
/**
|
|
3938
4031
|
* Issue a Net-N invoice for a draft order built with `POST /orders/from-cart`, accepting the Invoice Terms on the buyer's behalf, and move the order to processing. Cancels any payment link first. Requires an active Invoice Terms connector. An API key needs both `payments:write` and `orders:write`.
|
|
@@ -4053,6 +4146,8 @@ export declare class OrdersService {
|
|
|
4053
4146
|
workspaceId?: string;
|
|
4054
4147
|
discountId?: string | null;
|
|
4055
4148
|
discountCode?: string | null;
|
|
4149
|
+
shippingDiscountId?: string | null;
|
|
4150
|
+
shippingDiscountCode?: string | null;
|
|
4056
4151
|
orderNumber?: string;
|
|
4057
4152
|
status?: 'draft' | 'pending' | 'processing' | 'partially_fulfilled' | 'fulfilled' | 'cancelled' | 'closed';
|
|
4058
4153
|
type?: 'one_time' | 'recurring' | 'mixed';
|
|
@@ -4087,6 +4182,10 @@ export declare class OrdersService {
|
|
|
4087
4182
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
4088
4183
|
*/
|
|
4089
4184
|
shippingTotal?: number;
|
|
4185
|
+
/**
|
|
4186
|
+
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
4187
|
+
*/
|
|
4188
|
+
shippingDiscountTotal?: number;
|
|
4090
4189
|
/**
|
|
4091
4190
|
* Integer minor units of `currency` (ISO 4217 exponent).
|
|
4092
4191
|
*/
|
|
@@ -4390,10 +4489,6 @@ export declare class OrdersService {
|
|
|
4390
4489
|
url?: string | null;
|
|
4391
4490
|
}>;
|
|
4392
4491
|
meta: {
|
|
4393
|
-
/**
|
|
4394
|
-
* `req_<uuid>`, or a client-supplied id matching `^[A-Za-z0-9_-]{8,128}$`.
|
|
4395
|
-
*/
|
|
4396
|
-
requestId?: string;
|
|
4397
4492
|
pagination?: {
|
|
4398
4493
|
cursor?: string | null;
|
|
4399
4494
|
hasMore?: boolean;
|