@usethrottle/api-client 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/customers-net-n-types.test.js +7 -7
- package/dist/__tests__/customers-net-n-types.test.js.map +1 -1
- package/dist/generated/services/ApplicationsService.d.ts +4 -12
- package/dist/generated/services/ApplicationsService.d.ts.map +1 -1
- package/dist/generated/services/ApplicationsService.js.map +1 -1
- package/dist/generated/services/CartsService.d.ts +83 -97
- package/dist/generated/services/CartsService.d.ts.map +1 -1
- package/dist/generated/services/CartsService.js +19 -1
- package/dist/generated/services/CartsService.js.map +1 -1
- package/dist/generated/services/CustomersService.d.ts +107 -120
- package/dist/generated/services/CustomersService.d.ts.map +1 -1
- package/dist/generated/services/CustomersService.js +3 -3
- package/dist/generated/services/CustomersService.js.map +1 -1
- package/dist/generated/services/DiscountsService.d.ts +50 -64
- package/dist/generated/services/DiscountsService.d.ts.map +1 -1
- package/dist/generated/services/DiscountsService.js +2 -4
- package/dist/generated/services/DiscountsService.js.map +1 -1
- package/dist/generated/services/EmbedService.d.ts +0 -8
- package/dist/generated/services/EmbedService.d.ts.map +1 -1
- package/dist/generated/services/EmbedService.js.map +1 -1
- package/dist/generated/services/EventsService.d.ts +10 -12
- package/dist/generated/services/EventsService.d.ts.map +1 -1
- package/dist/generated/services/EventsService.js +2 -2
- package/dist/generated/services/EventsService.js.map +1 -1
- package/dist/generated/services/ExtensionsService.d.ts +59 -67
- package/dist/generated/services/ExtensionsService.d.ts.map +1 -1
- package/dist/generated/services/ExtensionsService.js.map +1 -1
- package/dist/generated/services/FulfillmentsService.d.ts +33 -43
- package/dist/generated/services/FulfillmentsService.d.ts.map +1 -1
- package/dist/generated/services/FulfillmentsService.js.map +1 -1
- package/dist/generated/services/OrdersService.d.ts +142 -155
- package/dist/generated/services/OrdersService.d.ts.map +1 -1
- package/dist/generated/services/OrdersService.js +3 -5
- package/dist/generated/services/OrdersService.js.map +1 -1
- package/dist/generated/services/PaymentsService.d.ts +84 -92
- package/dist/generated/services/PaymentsService.d.ts.map +1 -1
- package/dist/generated/services/PaymentsService.js.map +1 -1
- package/dist/generated/services/StoresService.d.ts +21 -25
- package/dist/generated/services/StoresService.d.ts.map +1 -1
- package/dist/generated/services/StoresService.js.map +1 -1
- package/dist/generated/services/SubscriptionsService.d.ts +71 -79
- package/dist/generated/services/SubscriptionsService.d.ts.map +1 -1
- package/dist/generated/services/SubscriptionsService.js +2 -2
- package/dist/generated/services/SubscriptionsService.js.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.d.ts +5 -5
- package/dist/generated/services/WebhooksOutboundService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksOutboundService.js +3 -3
- package/dist/generated/services/WebhooksOutboundService.js.map +1 -1
- package/dist/generated/services/WebhooksService.d.ts +35 -41
- package/dist/generated/services/WebhooksService.d.ts.map +1 -1
- package/dist/generated/services/WebhooksService.js.map +1 -1
- package/dist/generated/services/WorkspacesService.d.ts +4 -8
- package/dist/generated/services/WorkspacesService.d.ts.map +1 -1
- package/dist/generated/services/WorkspacesService.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest';
|
|
2
2
|
describe('customer Net-N types', () => {
|
|
3
|
-
it('exposes nullable
|
|
3
|
+
it('exposes nullable netN on customer create, update, and responses', () => {
|
|
4
4
|
const createBody = {
|
|
5
5
|
email: 'net45@example.com',
|
|
6
|
-
|
|
6
|
+
netN: 45,
|
|
7
7
|
};
|
|
8
8
|
const clearOverride = {
|
|
9
|
-
|
|
9
|
+
netN: null,
|
|
10
10
|
};
|
|
11
11
|
const customer = {
|
|
12
12
|
id: 'cus_123',
|
|
13
13
|
email: 'net45@example.com',
|
|
14
|
-
|
|
14
|
+
netN: 45,
|
|
15
15
|
};
|
|
16
|
-
expect(createBody.
|
|
17
|
-
expect(clearOverride.
|
|
18
|
-
expect(customer.
|
|
16
|
+
expect(createBody.netN).toBe(45);
|
|
17
|
+
expect(clearOverride.netN).toBeNull();
|
|
18
|
+
expect(customer.netN).toBe(45);
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=customers-net-n-types.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers-net-n-types.test.js","sourceRoot":"","sources":["../../src/__tests__/customers-net-n-types.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAQ9C,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"customers-net-n-types.test.js","sourceRoot":"","sources":["../../src/__tests__/customers-net-n-types.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAQ9C,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACzE,MAAM,UAAU,GAAG;YACjB,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE,EAAE;SACoB,CAAC;QAE/B,MAAM,aAAa,GAAG;YACpB,IAAI,EAAE,IAAI;SACkB,CAAC;QAE/B,MAAM,QAAQ,GAAG;YACf,EAAE,EAAE,SAAS;YACb,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE,EAAE;SACU,CAAC;QAErB,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;QACtC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -47,14 +47,12 @@ export declare class ApplicationsService {
|
|
|
47
47
|
allowedOrigins?: Array<string>;
|
|
48
48
|
createdAt?: string;
|
|
49
49
|
updatedAt?: string;
|
|
50
|
-
merchant_id?: string;
|
|
51
50
|
};
|
|
52
51
|
meta?: {
|
|
53
|
-
|
|
52
|
+
requestId?: string;
|
|
54
53
|
pagination?: {
|
|
55
54
|
cursor?: string | null;
|
|
56
55
|
hasMore?: boolean;
|
|
57
|
-
has_more?: boolean;
|
|
58
56
|
};
|
|
59
57
|
};
|
|
60
58
|
}>;
|
|
@@ -78,14 +76,12 @@ export declare class ApplicationsService {
|
|
|
78
76
|
allowedOrigins?: Array<string>;
|
|
79
77
|
createdAt?: string;
|
|
80
78
|
updatedAt?: string;
|
|
81
|
-
merchant_id?: string;
|
|
82
79
|
}>;
|
|
83
80
|
meta?: {
|
|
84
|
-
|
|
81
|
+
requestId?: string;
|
|
85
82
|
pagination?: {
|
|
86
83
|
cursor?: string | null;
|
|
87
84
|
hasMore?: boolean;
|
|
88
|
-
has_more?: boolean;
|
|
89
85
|
};
|
|
90
86
|
};
|
|
91
87
|
}>;
|
|
@@ -110,14 +106,12 @@ export declare class ApplicationsService {
|
|
|
110
106
|
allowedOrigins?: Array<string>;
|
|
111
107
|
createdAt?: string;
|
|
112
108
|
updatedAt?: string;
|
|
113
|
-
merchant_id?: string;
|
|
114
109
|
};
|
|
115
110
|
meta?: {
|
|
116
|
-
|
|
111
|
+
requestId?: string;
|
|
117
112
|
pagination?: {
|
|
118
113
|
cursor?: string | null;
|
|
119
114
|
hasMore?: boolean;
|
|
120
|
-
has_more?: boolean;
|
|
121
115
|
};
|
|
122
116
|
};
|
|
123
117
|
}>;
|
|
@@ -151,14 +145,12 @@ export declare class ApplicationsService {
|
|
|
151
145
|
allowedOrigins?: Array<string>;
|
|
152
146
|
createdAt?: string;
|
|
153
147
|
updatedAt?: string;
|
|
154
|
-
merchant_id?: string;
|
|
155
148
|
};
|
|
156
149
|
meta?: {
|
|
157
|
-
|
|
150
|
+
requestId?: string;
|
|
158
151
|
pagination?: {
|
|
159
152
|
cursor?: string | null;
|
|
160
153
|
hasMore?: boolean;
|
|
161
|
-
has_more?: boolean;
|
|
162
154
|
};
|
|
163
155
|
};
|
|
164
156
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/ApplicationsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,mBAAmB;IAC5B;;;;;;OAMG;WACW,mCAAmC,CAC7C,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACtB,iBAAiB,CAAC,GAAG,CAAC;IAUzB;;;;;;OAMG;WACW,qCAAqC,CAC/C,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACtB,iBAAiB,CAAC,GAAG,CAAC;IAUzB;;;;;;OAMG;WACW,+BAA+B,CACzC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAClC,GACF,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,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YACxB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAC3B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/ApplicationsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,mBAAmB;IAC5B;;;;;;OAMG;WACW,mCAAmC,CAC7C,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACtB,iBAAiB,CAAC,GAAG,CAAC;IAUzB;;;;;;OAMG;WACW,qCAAqC,CAC/C,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACtB,iBAAiB,CAAC,GAAG,CAAC;IAUzB;;;;;;OAMG;WACW,+BAA+B,CACzC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAClC,GACF,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,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;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AAI,CAAC;QAC3B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAClC,GACF,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,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YACxB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAC3B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAC/B,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;IAiBF;;;;;;OAMG;WACW,iCAAiC,CAC3C,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACtB,iBAAiB,CAAC,IAAI,CAAC;CAc7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationsService.js","sourceRoot":"","sources":["../../../src/generated/services/ApplicationsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,mBAAmB;IAC5B;;;;;;OAMG;IACI,MAAM,CAAC,mCAAmC,CAC7C,WAAmB,EACnB,aAAqB;QAErB,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,oEAAoE;YACzE,IAAI,EAAE;gBACF,aAAa,EAAE,WAAW;gBAC1B,eAAe,EAAE,aAAa;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,qCAAqC,CAC/C,WAAmB,EACnB,aAAqB;QAErB,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,oEAAoE;YACzE,IAAI,EAAE;gBACF,aAAa,EAAE,WAAW;gBAC1B,eAAe,EAAE,aAAa;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,+BAA+B,CACzC,WAAmB,EACnB,WAUC;
|
|
1
|
+
{"version":3,"file":"ApplicationsService.js","sourceRoot":"","sources":["../../../src/generated/services/ApplicationsService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,MAAM,OAAO,mBAAmB;IAC5B;;;;;;OAMG;IACI,MAAM,CAAC,mCAAmC,CAC7C,WAAmB,EACnB,aAAqB;QAErB,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,oEAAoE;YACzE,IAAI,EAAE;gBACF,aAAa,EAAE,WAAW;gBAC1B,eAAe,EAAE,aAAa;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,qCAAqC,CAC/C,WAAmB,EACnB,aAAqB;QAErB,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,oEAAoE;YACzE,IAAI,EAAE;gBACF,aA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G,EAAE,+DAA+D;YACpE,IAAI,EAAE;gBACF,aAAa,EAAE,WAAW;gBAC1B,eAAe,EAAE,aAAa;aACjC;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACJ,GAAG,EAAE,kBAAkB;gBACvB,GAAG,EAAE,kBAAkB;gBACvB,GAAG,EAAE,kBAAkB;aAC1B;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,iCAAiC,CAC3C,WAAmB,EACnB,aAAqB;QAErB,OAAO,SAAS,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,+DAA+D;YACpE,IAAI,EAAE;gBACF,aAAa,EAAE,WAAW;gBAC1B,eAAe,EAAE,aAAa;aACjC;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,kBAAkB;gBACvB,GAAG,EAAE,kBAAkB;aAC1B;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -8,14 +8,9 @@ export declare class CartsService {
|
|
|
8
8
|
*/
|
|
9
9
|
static postApiV1Carts(requestBody: {
|
|
10
10
|
applicationId?: string;
|
|
11
|
-
storeId?: string;
|
|
12
|
-
store_id?: string;
|
|
13
|
-
application_id?: string;
|
|
14
11
|
customerId?: string;
|
|
15
|
-
customer_id?: string;
|
|
16
12
|
currency?: string;
|
|
17
13
|
netN?: number | null;
|
|
18
|
-
net_n?: number | null;
|
|
19
14
|
/**
|
|
20
15
|
* Arbitrary key-value metadata
|
|
21
16
|
*/
|
|
@@ -23,8 +18,8 @@ export declare class CartsService {
|
|
|
23
18
|
}): CancelablePromise<{
|
|
24
19
|
data?: {
|
|
25
20
|
id?: string;
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
workspaceId?: string;
|
|
22
|
+
applicationId?: string | null;
|
|
28
23
|
customerId?: string | null;
|
|
29
24
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
30
25
|
currency?: string;
|
|
@@ -48,7 +43,7 @@ export declare class CartsService {
|
|
|
48
43
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
49
44
|
*/
|
|
50
45
|
total?: number;
|
|
51
|
-
|
|
46
|
+
netN?: number | null;
|
|
52
47
|
discountCode?: string | null;
|
|
53
48
|
appliedDiscount?: ({
|
|
54
49
|
discountId?: string | null;
|
|
@@ -95,11 +90,10 @@ export declare class CartsService {
|
|
|
95
90
|
createdAt?: string;
|
|
96
91
|
};
|
|
97
92
|
meta?: {
|
|
98
|
-
|
|
93
|
+
requestId?: string;
|
|
99
94
|
pagination?: {
|
|
100
95
|
cursor?: string | null;
|
|
101
96
|
hasMore?: boolean;
|
|
102
|
-
has_more?: boolean;
|
|
103
97
|
};
|
|
104
98
|
};
|
|
105
99
|
}>;
|
|
@@ -112,8 +106,8 @@ export declare class CartsService {
|
|
|
112
106
|
static getApiV1Carts(id: string): CancelablePromise<{
|
|
113
107
|
data?: {
|
|
114
108
|
id?: string;
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
workspaceId?: string;
|
|
110
|
+
applicationId?: string | null;
|
|
117
111
|
customerId?: string | null;
|
|
118
112
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
119
113
|
currency?: string;
|
|
@@ -137,7 +131,7 @@ export declare class CartsService {
|
|
|
137
131
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
138
132
|
*/
|
|
139
133
|
total?: number;
|
|
140
|
-
|
|
134
|
+
netN?: number | null;
|
|
141
135
|
discountCode?: string | null;
|
|
142
136
|
appliedDiscount?: ({
|
|
143
137
|
discountId?: string | null;
|
|
@@ -184,11 +178,10 @@ export declare class CartsService {
|
|
|
184
178
|
createdAt?: string;
|
|
185
179
|
};
|
|
186
180
|
meta?: {
|
|
187
|
-
|
|
181
|
+
requestId?: string;
|
|
188
182
|
pagination?: {
|
|
189
183
|
cursor?: string | null;
|
|
190
184
|
hasMore?: boolean;
|
|
191
|
-
has_more?: boolean;
|
|
192
185
|
};
|
|
193
186
|
};
|
|
194
187
|
}>;
|
|
@@ -201,14 +194,10 @@ export declare class CartsService {
|
|
|
201
194
|
*/
|
|
202
195
|
static patchApiV1Carts(id: string, requestBody: {
|
|
203
196
|
customerId?: string;
|
|
204
|
-
customer_id?: string;
|
|
205
197
|
billingAddress?: Record<string, any>;
|
|
206
|
-
billing_address?: Record<string, any>;
|
|
207
198
|
shippingAddress?: Record<string, any>;
|
|
208
|
-
shipping_address?: Record<string, any>;
|
|
209
199
|
notes?: string;
|
|
210
200
|
netN?: number | null;
|
|
211
|
-
net_n?: number | null;
|
|
212
201
|
/**
|
|
213
202
|
* Arbitrary key-value metadata
|
|
214
203
|
*/
|
|
@@ -216,8 +205,8 @@ export declare class CartsService {
|
|
|
216
205
|
}): CancelablePromise<{
|
|
217
206
|
data?: {
|
|
218
207
|
id?: string;
|
|
219
|
-
|
|
220
|
-
|
|
208
|
+
workspaceId?: string;
|
|
209
|
+
applicationId?: string | null;
|
|
221
210
|
customerId?: string | null;
|
|
222
211
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
223
212
|
currency?: string;
|
|
@@ -241,7 +230,7 @@ export declare class CartsService {
|
|
|
241
230
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
242
231
|
*/
|
|
243
232
|
total?: number;
|
|
244
|
-
|
|
233
|
+
netN?: number | null;
|
|
245
234
|
discountCode?: string | null;
|
|
246
235
|
appliedDiscount?: ({
|
|
247
236
|
discountId?: string | null;
|
|
@@ -288,11 +277,10 @@ export declare class CartsService {
|
|
|
288
277
|
createdAt?: string;
|
|
289
278
|
};
|
|
290
279
|
meta?: {
|
|
291
|
-
|
|
280
|
+
requestId?: string;
|
|
292
281
|
pagination?: {
|
|
293
282
|
cursor?: string | null;
|
|
294
283
|
hasMore?: boolean;
|
|
295
|
-
has_more?: boolean;
|
|
296
284
|
};
|
|
297
285
|
};
|
|
298
286
|
}>;
|
|
@@ -306,36 +294,22 @@ export declare class CartsService {
|
|
|
306
294
|
static postApiV1CartsItems(id: string, requestBody: {
|
|
307
295
|
type?: 'product' | 'subscription' | 'service' | 'ticket' | 'donation' | 'custom';
|
|
308
296
|
referenceId?: string;
|
|
309
|
-
|
|
310
|
-
name?: string;
|
|
297
|
+
name: string;
|
|
311
298
|
description?: string;
|
|
312
299
|
/**
|
|
313
300
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
314
301
|
*/
|
|
315
|
-
unitPrice
|
|
316
|
-
/**
|
|
317
|
-
* Amount in cents (e.g. 1999 = $19.99)
|
|
318
|
-
*/
|
|
319
|
-
unit_price?: number;
|
|
302
|
+
unitPrice: number;
|
|
320
303
|
quantity?: number;
|
|
321
304
|
/**
|
|
322
305
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
323
306
|
*/
|
|
324
307
|
taxAmount?: number;
|
|
325
|
-
/**
|
|
326
|
-
* Amount in cents (e.g. 1999 = $19.99)
|
|
327
|
-
*/
|
|
328
|
-
tax_amount?: number;
|
|
329
308
|
/**
|
|
330
309
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
331
310
|
*/
|
|
332
311
|
discountAmount?: number;
|
|
333
|
-
/**
|
|
334
|
-
* Amount in cents (e.g. 1999 = $19.99)
|
|
335
|
-
*/
|
|
336
|
-
discount_amount?: number;
|
|
337
312
|
imageUrl?: string;
|
|
338
|
-
image_url?: string;
|
|
339
313
|
/**
|
|
340
314
|
* Arbitrary key-value metadata
|
|
341
315
|
*/
|
|
@@ -347,7 +321,7 @@ export declare class CartsService {
|
|
|
347
321
|
/**
|
|
348
322
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
349
323
|
*/
|
|
350
|
-
|
|
324
|
+
unitPrice?: number;
|
|
351
325
|
quantity?: number;
|
|
352
326
|
/**
|
|
353
327
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
@@ -359,11 +333,10 @@ export declare class CartsService {
|
|
|
359
333
|
metadata?: Record<string, any>;
|
|
360
334
|
};
|
|
361
335
|
meta?: {
|
|
362
|
-
|
|
336
|
+
requestId?: string;
|
|
363
337
|
pagination?: {
|
|
364
338
|
cursor?: string | null;
|
|
365
339
|
hasMore?: boolean;
|
|
366
|
-
has_more?: boolean;
|
|
367
340
|
};
|
|
368
341
|
};
|
|
369
342
|
}>;
|
|
@@ -380,26 +353,14 @@ export declare class CartsService {
|
|
|
380
353
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
381
354
|
*/
|
|
382
355
|
unitPrice?: number;
|
|
383
|
-
/**
|
|
384
|
-
* Amount in cents (e.g. 1999 = $19.99)
|
|
385
|
-
*/
|
|
386
|
-
unit_price?: number;
|
|
387
356
|
/**
|
|
388
357
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
389
358
|
*/
|
|
390
359
|
taxAmount?: number;
|
|
391
|
-
/**
|
|
392
|
-
* Amount in cents (e.g. 1999 = $19.99)
|
|
393
|
-
*/
|
|
394
|
-
tax_amount?: number;
|
|
395
360
|
/**
|
|
396
361
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
397
362
|
*/
|
|
398
363
|
discountAmount?: number;
|
|
399
|
-
/**
|
|
400
|
-
* Amount in cents (e.g. 1999 = $19.99)
|
|
401
|
-
*/
|
|
402
|
-
discount_amount?: number;
|
|
403
364
|
/**
|
|
404
365
|
* Arbitrary key-value metadata
|
|
405
366
|
*/
|
|
@@ -411,7 +372,7 @@ export declare class CartsService {
|
|
|
411
372
|
/**
|
|
412
373
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
413
374
|
*/
|
|
414
|
-
|
|
375
|
+
unitPrice?: number;
|
|
415
376
|
quantity?: number;
|
|
416
377
|
/**
|
|
417
378
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
@@ -423,11 +384,10 @@ export declare class CartsService {
|
|
|
423
384
|
metadata?: Record<string, any>;
|
|
424
385
|
};
|
|
425
386
|
meta?: {
|
|
426
|
-
|
|
387
|
+
requestId?: string;
|
|
427
388
|
pagination?: {
|
|
428
389
|
cursor?: string | null;
|
|
429
390
|
hasMore?: boolean;
|
|
430
|
-
has_more?: boolean;
|
|
431
391
|
};
|
|
432
392
|
};
|
|
433
393
|
}>;
|
|
@@ -439,18 +399,52 @@ export declare class CartsService {
|
|
|
439
399
|
*/
|
|
440
400
|
static deleteApiV1CartsItems(id: string): CancelablePromise<void>;
|
|
441
401
|
/**
|
|
442
|
-
*
|
|
402
|
+
* Convert the cart to a draft order. Legacy alias for /finalize — same handler, identical semantics. New integrations should call /finalize instead.
|
|
443
403
|
* @param id
|
|
444
404
|
* @returns any Default Response
|
|
445
405
|
* @throws ApiError
|
|
446
406
|
*/
|
|
447
407
|
static postApiV1CartsCheckout(id: string): CancelablePromise<{
|
|
448
408
|
/**
|
|
449
|
-
* The created order
|
|
409
|
+
* The created draft order
|
|
410
|
+
*/
|
|
411
|
+
data?: {
|
|
412
|
+
id?: string;
|
|
413
|
+
orderNumber?: string;
|
|
414
|
+
status?: 'draft';
|
|
415
|
+
currency?: string;
|
|
416
|
+
/**
|
|
417
|
+
* In cents
|
|
418
|
+
*/
|
|
419
|
+
subtotal?: number;
|
|
420
|
+
/**
|
|
421
|
+
* In cents
|
|
422
|
+
*/
|
|
423
|
+
total?: number;
|
|
424
|
+
cartId?: string;
|
|
425
|
+
createdAt?: string;
|
|
426
|
+
};
|
|
427
|
+
meta?: {
|
|
428
|
+
requestId?: string;
|
|
429
|
+
pagination?: {
|
|
430
|
+
cursor?: string | null;
|
|
431
|
+
hasMore?: boolean;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
}>;
|
|
435
|
+
/**
|
|
436
|
+
* Finalize a cart by converting it to a draft order (status=draft). To collect payment, mint a checkout session against the resulting order afterwards.
|
|
437
|
+
* @param id
|
|
438
|
+
* @returns any Default Response
|
|
439
|
+
* @throws ApiError
|
|
440
|
+
*/
|
|
441
|
+
static postApiV1CartsFinalize(id: string): CancelablePromise<{
|
|
442
|
+
/**
|
|
443
|
+
* The created draft order
|
|
450
444
|
*/
|
|
451
445
|
data?: {
|
|
452
446
|
id?: string;
|
|
453
|
-
|
|
447
|
+
orderNumber?: string;
|
|
454
448
|
status?: 'draft';
|
|
455
449
|
currency?: string;
|
|
456
450
|
/**
|
|
@@ -461,15 +455,14 @@ export declare class CartsService {
|
|
|
461
455
|
* In cents
|
|
462
456
|
*/
|
|
463
457
|
total?: number;
|
|
464
|
-
|
|
465
|
-
|
|
458
|
+
cartId?: string;
|
|
459
|
+
createdAt?: string;
|
|
466
460
|
};
|
|
467
461
|
meta?: {
|
|
468
|
-
|
|
462
|
+
requestId?: string;
|
|
469
463
|
pagination?: {
|
|
470
464
|
cursor?: string | null;
|
|
471
465
|
hasMore?: boolean;
|
|
472
|
-
has_more?: boolean;
|
|
473
466
|
};
|
|
474
467
|
};
|
|
475
468
|
}>;
|
|
@@ -485,8 +478,8 @@ export declare class CartsService {
|
|
|
485
478
|
}): CancelablePromise<{
|
|
486
479
|
data?: {
|
|
487
480
|
id?: string;
|
|
488
|
-
|
|
489
|
-
|
|
481
|
+
workspaceId?: string;
|
|
482
|
+
applicationId?: string | null;
|
|
490
483
|
customerId?: string | null;
|
|
491
484
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
492
485
|
currency?: string;
|
|
@@ -510,7 +503,7 @@ export declare class CartsService {
|
|
|
510
503
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
511
504
|
*/
|
|
512
505
|
total?: number;
|
|
513
|
-
|
|
506
|
+
netN?: number | null;
|
|
514
507
|
discountCode?: string | null;
|
|
515
508
|
appliedDiscount?: ({
|
|
516
509
|
discountId?: string | null;
|
|
@@ -557,11 +550,10 @@ export declare class CartsService {
|
|
|
557
550
|
createdAt?: string;
|
|
558
551
|
};
|
|
559
552
|
meta?: {
|
|
560
|
-
|
|
553
|
+
requestId?: string;
|
|
561
554
|
pagination?: {
|
|
562
555
|
cursor?: string | null;
|
|
563
556
|
hasMore?: boolean;
|
|
564
|
-
has_more?: boolean;
|
|
565
557
|
};
|
|
566
558
|
};
|
|
567
559
|
}>;
|
|
@@ -574,8 +566,8 @@ export declare class CartsService {
|
|
|
574
566
|
static deleteApiV1CartsDiscount(id: string): CancelablePromise<{
|
|
575
567
|
data?: {
|
|
576
568
|
id?: string;
|
|
577
|
-
|
|
578
|
-
|
|
569
|
+
workspaceId?: string;
|
|
570
|
+
applicationId?: string | null;
|
|
579
571
|
customerId?: string | null;
|
|
580
572
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
581
573
|
currency?: string;
|
|
@@ -599,7 +591,7 @@ export declare class CartsService {
|
|
|
599
591
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
600
592
|
*/
|
|
601
593
|
total?: number;
|
|
602
|
-
|
|
594
|
+
netN?: number | null;
|
|
603
595
|
discountCode?: string | null;
|
|
604
596
|
appliedDiscount?: ({
|
|
605
597
|
discountId?: string | null;
|
|
@@ -646,11 +638,10 @@ export declare class CartsService {
|
|
|
646
638
|
createdAt?: string;
|
|
647
639
|
};
|
|
648
640
|
meta?: {
|
|
649
|
-
|
|
641
|
+
requestId?: string;
|
|
650
642
|
pagination?: {
|
|
651
643
|
cursor?: string | null;
|
|
652
644
|
hasMore?: boolean;
|
|
653
|
-
has_more?: boolean;
|
|
654
645
|
};
|
|
655
646
|
};
|
|
656
647
|
}>;
|
|
@@ -675,8 +666,8 @@ export declare class CartsService {
|
|
|
675
666
|
}): CancelablePromise<{
|
|
676
667
|
data?: {
|
|
677
668
|
id?: string;
|
|
678
|
-
|
|
679
|
-
|
|
669
|
+
workspaceId?: string;
|
|
670
|
+
applicationId?: string | null;
|
|
680
671
|
customerId?: string | null;
|
|
681
672
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
682
673
|
currency?: string;
|
|
@@ -700,7 +691,7 @@ export declare class CartsService {
|
|
|
700
691
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
701
692
|
*/
|
|
702
693
|
total?: number;
|
|
703
|
-
|
|
694
|
+
netN?: number | null;
|
|
704
695
|
discountCode?: string | null;
|
|
705
696
|
appliedDiscount?: ({
|
|
706
697
|
discountId?: string | null;
|
|
@@ -747,11 +738,10 @@ export declare class CartsService {
|
|
|
747
738
|
createdAt?: string;
|
|
748
739
|
};
|
|
749
740
|
meta?: {
|
|
750
|
-
|
|
741
|
+
requestId?: string;
|
|
751
742
|
pagination?: {
|
|
752
743
|
cursor?: string | null;
|
|
753
744
|
hasMore?: boolean;
|
|
754
|
-
has_more?: boolean;
|
|
755
745
|
};
|
|
756
746
|
};
|
|
757
747
|
}>;
|
|
@@ -764,8 +754,8 @@ export declare class CartsService {
|
|
|
764
754
|
static deleteApiV1CartsShipping(id: string): CancelablePromise<{
|
|
765
755
|
data?: {
|
|
766
756
|
id?: string;
|
|
767
|
-
|
|
768
|
-
|
|
757
|
+
workspaceId?: string;
|
|
758
|
+
applicationId?: string | null;
|
|
769
759
|
customerId?: string | null;
|
|
770
760
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
771
761
|
currency?: string;
|
|
@@ -789,7 +779,7 @@ export declare class CartsService {
|
|
|
789
779
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
790
780
|
*/
|
|
791
781
|
total?: number;
|
|
792
|
-
|
|
782
|
+
netN?: number | null;
|
|
793
783
|
discountCode?: string | null;
|
|
794
784
|
appliedDiscount?: ({
|
|
795
785
|
discountId?: string | null;
|
|
@@ -836,11 +826,10 @@ export declare class CartsService {
|
|
|
836
826
|
createdAt?: string;
|
|
837
827
|
};
|
|
838
828
|
meta?: {
|
|
839
|
-
|
|
829
|
+
requestId?: string;
|
|
840
830
|
pagination?: {
|
|
841
831
|
cursor?: string | null;
|
|
842
832
|
hasMore?: boolean;
|
|
843
|
-
has_more?: boolean;
|
|
844
833
|
};
|
|
845
834
|
};
|
|
846
835
|
}>;
|
|
@@ -864,8 +853,8 @@ export declare class CartsService {
|
|
|
864
853
|
}): CancelablePromise<{
|
|
865
854
|
data?: {
|
|
866
855
|
id?: string;
|
|
867
|
-
|
|
868
|
-
|
|
856
|
+
workspaceId?: string;
|
|
857
|
+
applicationId?: string | null;
|
|
869
858
|
customerId?: string | null;
|
|
870
859
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
871
860
|
currency?: string;
|
|
@@ -889,7 +878,7 @@ export declare class CartsService {
|
|
|
889
878
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
890
879
|
*/
|
|
891
880
|
total?: number;
|
|
892
|
-
|
|
881
|
+
netN?: number | null;
|
|
893
882
|
discountCode?: string | null;
|
|
894
883
|
appliedDiscount?: ({
|
|
895
884
|
discountId?: string | null;
|
|
@@ -936,11 +925,10 @@ export declare class CartsService {
|
|
|
936
925
|
createdAt?: string;
|
|
937
926
|
};
|
|
938
927
|
meta?: {
|
|
939
|
-
|
|
928
|
+
requestId?: string;
|
|
940
929
|
pagination?: {
|
|
941
930
|
cursor?: string | null;
|
|
942
931
|
hasMore?: boolean;
|
|
943
|
-
has_more?: boolean;
|
|
944
932
|
};
|
|
945
933
|
};
|
|
946
934
|
}>;
|
|
@@ -953,8 +941,8 @@ export declare class CartsService {
|
|
|
953
941
|
static deleteApiV1CartsTaxLines(id: string): CancelablePromise<{
|
|
954
942
|
data?: {
|
|
955
943
|
id?: string;
|
|
956
|
-
|
|
957
|
-
|
|
944
|
+
workspaceId?: string;
|
|
945
|
+
applicationId?: string | null;
|
|
958
946
|
customerId?: string | null;
|
|
959
947
|
status?: 'open' | 'checkout' | 'converted' | 'abandoned';
|
|
960
948
|
currency?: string;
|
|
@@ -978,7 +966,7 @@ export declare class CartsService {
|
|
|
978
966
|
* Amount in cents (e.g. 1999 = $19.99)
|
|
979
967
|
*/
|
|
980
968
|
total?: number;
|
|
981
|
-
|
|
969
|
+
netN?: number | null;
|
|
982
970
|
discountCode?: string | null;
|
|
983
971
|
appliedDiscount?: ({
|
|
984
972
|
discountId?: string | null;
|
|
@@ -1025,11 +1013,10 @@ export declare class CartsService {
|
|
|
1025
1013
|
createdAt?: string;
|
|
1026
1014
|
};
|
|
1027
1015
|
meta?: {
|
|
1028
|
-
|
|
1016
|
+
requestId?: string;
|
|
1029
1017
|
pagination?: {
|
|
1030
1018
|
cursor?: string | null;
|
|
1031
1019
|
hasMore?: boolean;
|
|
1032
|
-
has_more?: boolean;
|
|
1033
1020
|
};
|
|
1034
1021
|
};
|
|
1035
1022
|
}>;
|
|
@@ -1053,11 +1040,10 @@ export declare class CartsService {
|
|
|
1053
1040
|
createdAt?: string;
|
|
1054
1041
|
}>;
|
|
1055
1042
|
meta?: {
|
|
1056
|
-
|
|
1043
|
+
requestId?: string;
|
|
1057
1044
|
pagination?: {
|
|
1058
1045
|
cursor?: string | null;
|
|
1059
1046
|
hasMore?: boolean;
|
|
1060
|
-
has_more?: boolean;
|
|
1061
1047
|
};
|
|
1062
1048
|
};
|
|
1063
1049
|
}>;
|