@epilot/pricing-client 1.6.1 → 1.6.4
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/openapi.d.ts +654 -604
- package/package.json +6 -6
- package/src/openapi.d.ts +654 -604
package/dist/openapi.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import {
|
|
2
|
+
import type {
|
|
3
3
|
OpenAPIClient,
|
|
4
4
|
Parameters,
|
|
5
5
|
UnknownParamsObject,
|
|
@@ -8,611 +8,661 @@ import {
|
|
|
8
8
|
} from 'openapi-client-axios';
|
|
9
9
|
|
|
10
10
|
declare namespace Components {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
order?: Order;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* The checkout mode for the cart checkout.
|
|
163
|
-
*/
|
|
164
|
-
export type CheckoutMode = "create_order" | "create_invoice" | "create_quote";
|
|
165
|
-
/**
|
|
166
|
-
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
167
|
-
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
168
|
-
*
|
|
169
|
-
*/
|
|
170
|
-
export type Currency = string;
|
|
171
|
-
export interface Customer {
|
|
172
|
-
first_name?: string;
|
|
173
|
-
last_name?: string;
|
|
174
|
-
company_name?: string;
|
|
175
|
-
vat_id?: string;
|
|
176
|
-
/**
|
|
177
|
-
* A valid email identifying the customer.
|
|
178
|
-
*/
|
|
179
|
-
email?: string;
|
|
180
|
-
phone?: string;
|
|
181
|
-
}
|
|
182
|
-
export interface Error {
|
|
183
|
-
/**
|
|
184
|
-
* Error message
|
|
185
|
-
*/
|
|
186
|
-
message: string;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* A set of key-value pairs.
|
|
190
|
-
*/
|
|
191
|
-
export type MetaData = ({
|
|
192
|
-
/**
|
|
193
|
-
* Item key
|
|
194
|
-
*/
|
|
195
|
-
key?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Item value
|
|
198
|
-
*/
|
|
199
|
-
value?: string;
|
|
200
|
-
})[];
|
|
201
|
-
/**
|
|
202
|
-
* The opportunity entity
|
|
203
|
-
*/
|
|
204
|
-
export interface Opportunity {
|
|
205
|
-
[name: string]: any;
|
|
206
|
-
/**
|
|
207
|
-
* The opportunity id number for the customer (autogenerated if left blank)
|
|
208
|
-
*/
|
|
209
|
-
opportunity_number?: string;
|
|
210
|
-
/**
|
|
211
|
-
* A description to frame this opportunity within its sales process
|
|
212
|
-
*/
|
|
213
|
-
description?: string;
|
|
214
|
-
/**
|
|
215
|
-
* The opportunity status
|
|
216
|
-
*/
|
|
217
|
-
status?: "lead" | "qualification" | "validation" | "offering" | "supply" | "approval" | "operations" | "complete";
|
|
218
|
-
items?: Order[] | {
|
|
219
|
-
$relation?: OrderRelation[];
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* Organization Id the order belongs to
|
|
223
|
-
*/
|
|
224
|
-
_org_id?: string;
|
|
225
|
-
readonly _id?: string;
|
|
226
|
-
readonly _created_at?: string;
|
|
227
|
-
readonly _updated_at?: string;
|
|
228
|
-
_tags?: string[];
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* The order entity
|
|
232
|
-
*/
|
|
233
|
-
export interface Order {
|
|
234
|
-
[name: string]: any;
|
|
235
|
-
/**
|
|
236
|
-
* The order id number for the customer
|
|
237
|
-
*/
|
|
238
|
-
order_number?: string;
|
|
239
|
-
/**
|
|
240
|
-
* The cart id that originated or is associated with the order
|
|
241
|
-
*/
|
|
242
|
-
cart_id?: string;
|
|
243
|
-
/**
|
|
244
|
-
* The order status
|
|
245
|
-
*/
|
|
246
|
-
status?: "draft" | "quote" | "placed" | "cancelled" | "completed";
|
|
247
|
-
metadata?: MetaData;
|
|
248
|
-
billing_first_name?: string;
|
|
249
|
-
billing_last_name?: string;
|
|
250
|
-
billing_company_name?: string;
|
|
251
|
-
billing_vat?: string;
|
|
252
|
-
billing_email?: string;
|
|
253
|
-
billing_phone?: string;
|
|
254
|
-
billing_address?: Address[];
|
|
255
|
-
currency?: Currency;
|
|
256
|
-
delivery_address?: Address[];
|
|
257
|
-
payment_method?: PaymentMethod[];
|
|
258
|
-
/**
|
|
259
|
-
* The id of an existing contact.
|
|
260
|
-
*/
|
|
261
|
-
readonly contact?: string;
|
|
262
|
-
line_items?: PriceItems;
|
|
263
|
-
/**
|
|
264
|
-
* Total of all items before (discounts or) taxes are applied.
|
|
265
|
-
*/
|
|
266
|
-
readonly amount_subtotal?: number;
|
|
267
|
-
/**
|
|
268
|
-
* Total of all items after (discounts and) taxes are applied.
|
|
269
|
-
*/
|
|
270
|
-
readonly amount_total?: number;
|
|
271
|
-
total_details?: TotalDetails;
|
|
272
|
-
/**
|
|
273
|
-
* Organization Id the order belongs to
|
|
274
|
-
*/
|
|
275
|
-
_org_id?: string;
|
|
276
|
-
readonly _id?: string;
|
|
277
|
-
readonly _created_at?: string;
|
|
278
|
-
readonly _updated_at?: string;
|
|
279
|
-
_tags?: string[];
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* An order relation reference
|
|
283
|
-
*/
|
|
284
|
-
export interface OrderRelation {
|
|
285
|
-
/**
|
|
286
|
-
* The relation order id
|
|
287
|
-
*/
|
|
288
|
-
entity_id?: string;
|
|
289
|
-
_tags?: string[];
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* A PaymentMethod represent your customer's payment instruments.
|
|
293
|
-
*
|
|
294
|
-
*/
|
|
295
|
-
export interface PaymentMethod {
|
|
296
|
-
/**
|
|
297
|
-
* The type of the PaymentMethod.
|
|
298
|
-
*/
|
|
299
|
-
type?: string;
|
|
300
|
-
/**
|
|
301
|
-
* Contains relevant data associated with the payment method type.
|
|
302
|
-
*/
|
|
303
|
-
details?: {
|
|
304
|
-
[name: string]: any;
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* The price configuration
|
|
309
|
-
*/
|
|
310
|
-
export interface Price {
|
|
311
|
-
[name: string]: any;
|
|
312
|
-
active?: boolean;
|
|
313
|
-
billing_scheme?: "Per Unit";
|
|
314
|
-
description?: string;
|
|
315
|
-
sales_tax?: SalesTax;
|
|
316
|
-
tax_behavior?: "inclusive" | "exclusive";
|
|
317
|
-
tiers_mode?: "Standard";
|
|
318
|
-
type?: "one_time" | "recurring";
|
|
319
|
-
billing_period?: BillingPeriod;
|
|
320
|
-
unit_amount?: number;
|
|
321
|
-
unit_amount_decimal?: string;
|
|
322
|
-
unit_amount_currency?: Currency;
|
|
323
|
-
billing_duration_amount?: number;
|
|
324
|
-
billing_duration_unit?: "weeks" | "months" | "years";
|
|
325
|
-
notice_time_amount?: number;
|
|
326
|
-
notice_time_unit?: "weeks" | "months" | "years";
|
|
327
|
-
termination_time_amount?: number;
|
|
328
|
-
termination_time_unit?: "weeks" | "months" | "years";
|
|
329
|
-
renewal_duration_amount?: number;
|
|
330
|
-
renewal_duration_unit?: "weeks" | "months" | "years";
|
|
331
|
-
_created_at?: string;
|
|
332
|
-
_id?: string;
|
|
333
|
-
_title?: string;
|
|
334
|
-
_updated_at?: string;
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Represents a price item
|
|
338
|
-
*/
|
|
339
|
-
export interface PriceItem {
|
|
340
|
-
/**
|
|
341
|
-
* price item id
|
|
342
|
-
*/
|
|
343
|
-
readonly id?: string;
|
|
344
|
-
metadata?: MetaData;
|
|
345
|
-
/**
|
|
346
|
-
* The unit amount value
|
|
347
|
-
*/
|
|
348
|
-
readonly unit_amount?: number;
|
|
349
|
-
/**
|
|
350
|
-
* Total before any (discounts or) taxes are applied.
|
|
351
|
-
*/
|
|
352
|
-
readonly amount_subtotal?: number;
|
|
353
|
-
/**
|
|
354
|
-
* Total after (discounts and) taxes.
|
|
355
|
-
*/
|
|
356
|
-
readonly amount_total?: number;
|
|
357
|
-
currency?: Currency;
|
|
358
|
-
/**
|
|
359
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
360
|
-
*/
|
|
361
|
-
description?: string;
|
|
362
|
-
/**
|
|
363
|
-
* The quantity of products being purchased.
|
|
364
|
-
*/
|
|
365
|
-
quantity?: number;
|
|
366
|
-
/**
|
|
367
|
-
* The id of the product.
|
|
368
|
-
*/
|
|
369
|
-
product_id?: string;
|
|
370
|
-
/**
|
|
371
|
-
* The id of the price.
|
|
372
|
-
*/
|
|
373
|
-
price_id?: string;
|
|
374
|
-
_price?: Price;
|
|
375
|
-
_product?: Product;
|
|
376
|
-
/**
|
|
377
|
-
* The taxes applied to the price item.
|
|
378
|
-
*/
|
|
379
|
-
readonly taxes?: (TaxAmount)[];
|
|
380
|
-
/**
|
|
381
|
-
* The sum of amounts of the price items by recurrence.
|
|
382
|
-
*/
|
|
383
|
-
readonly recurrences?: (RecurrenceAmount)[];
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Represents a valid price item from a client.
|
|
387
|
-
*/
|
|
388
|
-
export interface PriceItemDto {
|
|
389
|
-
metadata?: MetaData;
|
|
390
|
-
/**
|
|
391
|
-
* The quantity of products being purchased.
|
|
392
|
-
*/
|
|
393
|
-
quantity?: number;
|
|
394
|
-
/**
|
|
395
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
396
|
-
*/
|
|
397
|
-
description?: string;
|
|
398
|
-
/**
|
|
399
|
-
* The id of the product.
|
|
400
|
-
*/
|
|
401
|
-
product_id?: string;
|
|
402
|
-
/**
|
|
403
|
-
* The id of the price.
|
|
404
|
-
*/
|
|
405
|
-
price_id?: string;
|
|
406
|
-
/**
|
|
407
|
-
* The taxes applied to the price item.
|
|
408
|
-
*/
|
|
409
|
-
readonly taxes?: (TaxAmountDto)[];
|
|
410
|
-
/**
|
|
411
|
-
* The taxes applied to the price item.
|
|
412
|
-
*/
|
|
413
|
-
readonly recurrences?: (RecurrenceAmountDto)[];
|
|
414
|
-
_price?: Price;
|
|
415
|
-
/**
|
|
416
|
-
* The product linked to the price item.
|
|
417
|
-
*/
|
|
418
|
-
_product?: Product;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* Tracks a set of product prices, quantities, (discounts) and taxes.
|
|
422
|
-
*/
|
|
423
|
-
export type PriceItems = (PriceItem)[];
|
|
424
|
-
/**
|
|
425
|
-
* A valid set of product prices, quantities, (discounts) and taxes from a client.
|
|
426
|
-
*/
|
|
427
|
-
export type PriceItemsDto = (PriceItemDto)[];
|
|
428
|
-
/**
|
|
429
|
-
* The result from the calculation of a set of price items.
|
|
430
|
-
*/
|
|
431
|
-
export interface PricingDetails {
|
|
432
|
-
items?: (PriceItem)[];
|
|
433
|
-
/**
|
|
434
|
-
* Total of all items before (discounts or) taxes are applied.
|
|
435
|
-
*/
|
|
436
|
-
amount_subtotal?: number;
|
|
437
|
-
/**
|
|
438
|
-
* Total of all items after (discounts and) taxes are applied.
|
|
439
|
-
*/
|
|
440
|
-
amount_total?: number;
|
|
441
|
-
total_details?: TotalDetails;
|
|
442
|
-
}
|
|
443
|
-
/**
|
|
444
|
-
* The product configuration
|
|
445
|
-
*/
|
|
446
|
-
export interface Product {
|
|
447
|
-
[name: string]: any;
|
|
448
|
-
code?: string;
|
|
449
|
-
type?: "Product" | "Service";
|
|
450
|
-
name?: string;
|
|
451
|
-
_id?: string;
|
|
452
|
-
_title?: string;
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* An amount associated with a specific recurrence.
|
|
456
|
-
*/
|
|
457
|
-
export interface RecurrenceAmount {
|
|
458
|
-
/**
|
|
459
|
-
* The price type.
|
|
460
|
-
*/
|
|
461
|
-
type: string;
|
|
462
|
-
/**
|
|
463
|
-
* The price billing period.
|
|
464
|
-
*/
|
|
465
|
-
billing_period?: string;
|
|
466
|
-
/**
|
|
467
|
-
* Total of all items, with same recurrence, before (discounts or) taxes are applied.
|
|
468
|
-
*/
|
|
469
|
-
amount_subtotal: number;
|
|
470
|
-
/**
|
|
471
|
-
* Total of all items, with same recurrence, after (discounts and) taxes are applied.
|
|
472
|
-
*/
|
|
473
|
-
amount_total: number;
|
|
474
|
-
/**
|
|
475
|
-
* Total of all items taxes, with same recurrence.
|
|
476
|
-
*/
|
|
477
|
-
amount_tax?: number;
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* An amount associated with a specific recurrence.
|
|
481
|
-
*/
|
|
482
|
-
export interface RecurrenceAmountDto {
|
|
483
|
-
/**
|
|
484
|
-
* The price type.
|
|
485
|
-
*/
|
|
486
|
-
type: string;
|
|
487
|
-
/**
|
|
488
|
-
* The price billing period.
|
|
489
|
-
*/
|
|
490
|
-
billing_period?: string;
|
|
491
|
-
/**
|
|
492
|
-
* Total of all items, with same recurrence, before (discounts or) taxes are applied.
|
|
493
|
-
*/
|
|
494
|
-
amount_subtotal: number;
|
|
495
|
-
/**
|
|
496
|
-
* Total of all items, with same recurrence, after (discounts and) taxes are applied.
|
|
497
|
-
*/
|
|
498
|
-
amount_total: number;
|
|
499
|
-
/**
|
|
500
|
-
* Total of all items taxes, with same recurrence.
|
|
501
|
-
*/
|
|
502
|
-
amount_tax?: number;
|
|
503
|
-
}
|
|
504
|
-
export type SalesTax = "nontaxable" | "reduced" | "standard";
|
|
505
|
-
/**
|
|
506
|
-
* the tax configuration
|
|
507
|
-
*/
|
|
508
|
-
export interface Tax {
|
|
509
|
-
[name: string]: any;
|
|
510
|
-
type: "VAT" | "GST" | "Custom";
|
|
511
|
-
description?: string;
|
|
512
|
-
rate: number;
|
|
513
|
-
behavior: "Exclusive" | "Inclusive";
|
|
514
|
-
active?: boolean;
|
|
515
|
-
region?: string;
|
|
516
|
-
region_label?: string;
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* A tax amount associated with a specific tax rate.
|
|
520
|
-
*/
|
|
521
|
-
export interface TaxAmount {
|
|
522
|
-
/**
|
|
523
|
-
* The tax amount.
|
|
524
|
-
*/
|
|
525
|
-
amount?: number;
|
|
526
|
-
/**
|
|
527
|
-
* The tax rate applied.
|
|
528
|
-
*/
|
|
529
|
-
rate?: string;
|
|
530
|
-
/**
|
|
531
|
-
* The tax applied.
|
|
532
|
-
*/
|
|
533
|
-
tax?: Tax;
|
|
534
|
-
}
|
|
535
|
-
/**
|
|
536
|
-
* A valid tax rate from a client.
|
|
537
|
-
*/
|
|
538
|
-
export interface TaxAmountDto {
|
|
539
|
-
/**
|
|
540
|
-
* The tax rate applied.
|
|
541
|
-
*/
|
|
542
|
-
rate?: string;
|
|
543
|
-
/**
|
|
544
|
-
* The tax applied.
|
|
545
|
-
*/
|
|
546
|
-
tax?: Tax;
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* The total details with tax (and discount) aggregated totals.
|
|
550
|
-
*/
|
|
551
|
-
export interface TotalDetails {
|
|
552
|
-
/**
|
|
553
|
-
* This is the sum of all the price item shipping amounts.
|
|
554
|
-
*/
|
|
555
|
-
amount_shipping?: number;
|
|
556
|
-
/**
|
|
557
|
-
* This is the sum of all the price item tax amounts.
|
|
558
|
-
*/
|
|
559
|
-
amount_tax?: number;
|
|
560
|
-
/**
|
|
561
|
-
* Breakdown of individual tax (and discount) amounts that add up to the totals.
|
|
562
|
-
*/
|
|
563
|
-
breakdown?: {
|
|
11
|
+
namespace Schemas {
|
|
12
|
+
export interface Address {
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
/**
|
|
15
|
+
* The first line of the address. Typically the street address or PO Box number.
|
|
16
|
+
*/
|
|
17
|
+
street?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The second line of the address. Typically the number of the apartment, suite, or unit.
|
|
20
|
+
*/
|
|
21
|
+
street_number?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The postal code for the address.
|
|
24
|
+
*/
|
|
25
|
+
postal_code?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The name of the city, district, village, or town.
|
|
28
|
+
*/
|
|
29
|
+
city?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The two-letter code for the country of the address.
|
|
32
|
+
*/
|
|
33
|
+
country?: string;
|
|
34
|
+
/**
|
|
35
|
+
* An additional description for the address
|
|
36
|
+
*/
|
|
37
|
+
additional_info?: string;
|
|
38
|
+
}
|
|
39
|
+
export type BillingPeriod = "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
40
|
+
/**
|
|
41
|
+
* Supports shopping for products and services until ready for checkout.
|
|
42
|
+
*/
|
|
43
|
+
export interface Cart {
|
|
44
|
+
/**
|
|
45
|
+
* The cart identifier
|
|
46
|
+
*/
|
|
47
|
+
id?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The user's Organization Id the cart belongs to
|
|
50
|
+
*/
|
|
51
|
+
org_id?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The status of the Cart:
|
|
54
|
+
* - open - the cart checkout is still in progress. Payment processing has not started
|
|
55
|
+
* - complete - the cart checkout is complete. Payment processing may still be in progress
|
|
56
|
+
* - expired - the cart checkout has expired. No further processing will occur
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
status?: "open" | "complete" | "expired";
|
|
60
|
+
customer?: Customer;
|
|
61
|
+
billing_address?: Address;
|
|
62
|
+
delivery_address?: Address;
|
|
63
|
+
metadata?: /* A set of key-value pairs. */ MetaData;
|
|
64
|
+
line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
|
|
65
|
+
/**
|
|
66
|
+
* Total of all items before (discounts or) taxes are applied.
|
|
67
|
+
*/
|
|
68
|
+
amount_subtotal?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Total of all items after (discounts and) taxes are applied.
|
|
71
|
+
*/
|
|
72
|
+
amount_total?: number;
|
|
73
|
+
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
74
|
+
created_at?: string; // date-time
|
|
75
|
+
updated_at?: string; // date-time
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* A valid cart payload from a client.
|
|
79
|
+
*/
|
|
80
|
+
export interface CartDto {
|
|
81
|
+
metadata?: /* A set of key-value pairs. */ MetaData;
|
|
82
|
+
customer?: Customer;
|
|
83
|
+
billing_address?: Address;
|
|
84
|
+
delivery_address?: Address;
|
|
85
|
+
payment_method?: /**
|
|
86
|
+
* A PaymentMethod represent your customer's payment instruments.
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
PaymentMethod;
|
|
90
|
+
line_items: /* A valid set of product prices, quantities, (discounts) and taxes from a client. */ PriceItemsDto;
|
|
91
|
+
/**
|
|
92
|
+
* An array of file IDs, already upload into the File API, that are related with this cart
|
|
93
|
+
*/
|
|
94
|
+
files?: string[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A catalog search payload
|
|
98
|
+
* example:
|
|
99
|
+
* {
|
|
100
|
+
* "q": "_id:1233432 OR _id:123432454 OR _id:23445433",
|
|
101
|
+
* "sort": "description ASC",
|
|
102
|
+
* "from": 0,
|
|
103
|
+
* "size": 200
|
|
104
|
+
* }
|
|
105
|
+
*/
|
|
106
|
+
export interface CatalogSearch {
|
|
107
|
+
/**
|
|
108
|
+
* The query to perform using lucene query syntax.
|
|
109
|
+
*/
|
|
110
|
+
q: string;
|
|
111
|
+
/**
|
|
112
|
+
* The sort expression to sort the results.
|
|
113
|
+
*/
|
|
114
|
+
sort?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The index from which to query, used for pagination purposes. Defaults to 0
|
|
117
|
+
*/
|
|
118
|
+
from?: number;
|
|
119
|
+
/**
|
|
120
|
+
* The max size of the response, defaults to 2000.
|
|
121
|
+
*/
|
|
122
|
+
size?: number;
|
|
123
|
+
/**
|
|
124
|
+
* When true, enables entity hydration to resolve nested $relation references in-place.
|
|
125
|
+
*/
|
|
126
|
+
hydrate?: boolean;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The query result payload
|
|
130
|
+
* example:
|
|
131
|
+
* {
|
|
132
|
+
* "hits": 2,
|
|
133
|
+
* "results": [
|
|
134
|
+
* {
|
|
135
|
+
* "schema": "product",
|
|
136
|
+
* "description": "product a"
|
|
137
|
+
* },
|
|
138
|
+
* {
|
|
139
|
+
* "schema": "price",
|
|
140
|
+
* "unit_amount_decimal": "124.342343434"
|
|
141
|
+
* }
|
|
142
|
+
* ]
|
|
143
|
+
* }
|
|
144
|
+
*/
|
|
145
|
+
export interface CatalogSearchResult {
|
|
146
|
+
/**
|
|
147
|
+
* The number os results returned.
|
|
148
|
+
*/
|
|
149
|
+
hits?: number;
|
|
150
|
+
results?: (/* The product configuration */ Product | /* The price configuration */ Price)[];
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* The cart checkout request payload
|
|
154
|
+
*/
|
|
155
|
+
export interface CheckoutCart {
|
|
156
|
+
cart?: string | /* A valid cart payload from a client. */ CartDto;
|
|
157
|
+
mode?: /* The checkout mode for the cart checkout. */ CheckoutMode;
|
|
158
|
+
}
|
|
564
159
|
/**
|
|
565
|
-
* The
|
|
160
|
+
* The cart checkout result
|
|
566
161
|
*/
|
|
567
|
-
|
|
162
|
+
export interface CheckoutCartResult {
|
|
163
|
+
order?: /* The order entity */ Order;
|
|
164
|
+
}
|
|
568
165
|
/**
|
|
569
|
-
* The
|
|
166
|
+
* The checkout mode for the cart checkout.
|
|
570
167
|
*/
|
|
571
|
-
|
|
572
|
-
|
|
168
|
+
export type CheckoutMode = "create_order" | "create_invoice" | "create_quote";
|
|
169
|
+
/**
|
|
170
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
171
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
export type Currency = string;
|
|
175
|
+
export interface Customer {
|
|
176
|
+
first_name?: string;
|
|
177
|
+
last_name?: string;
|
|
178
|
+
company_name?: string;
|
|
179
|
+
vat_id?: string;
|
|
180
|
+
/**
|
|
181
|
+
* A valid email identifying the customer.
|
|
182
|
+
*/
|
|
183
|
+
email?: string;
|
|
184
|
+
phone?: string;
|
|
185
|
+
}
|
|
186
|
+
export interface Error {
|
|
187
|
+
/**
|
|
188
|
+
* Error message
|
|
189
|
+
*/
|
|
190
|
+
message: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* A set of key-value pairs.
|
|
194
|
+
*/
|
|
195
|
+
export type MetaData = ({
|
|
196
|
+
/**
|
|
197
|
+
* Item key
|
|
198
|
+
*/
|
|
199
|
+
key?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Item value
|
|
202
|
+
*/
|
|
203
|
+
value?: string;
|
|
204
|
+
})[];
|
|
205
|
+
/**
|
|
206
|
+
* The opportunity entity
|
|
207
|
+
*/
|
|
208
|
+
export interface Opportunity {
|
|
209
|
+
[name: string]: any;
|
|
210
|
+
/**
|
|
211
|
+
* The opportunity id number for the customer (autogenerated if left blank)
|
|
212
|
+
*/
|
|
213
|
+
opportunity_number?: string;
|
|
214
|
+
/**
|
|
215
|
+
* A description to frame this opportunity within its sales process
|
|
216
|
+
*/
|
|
217
|
+
description?: string;
|
|
218
|
+
/**
|
|
219
|
+
* The opportunity status
|
|
220
|
+
*/
|
|
221
|
+
status?: "lead" | "qualification" | "validation" | "offering" | "supply" | "approval" | "operations" | "complete";
|
|
222
|
+
items?: /* The order entity */ Order[] | {
|
|
223
|
+
$relation?: /* An order relation reference */ OrderRelation[];
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Organization Id the order belongs to
|
|
227
|
+
*/
|
|
228
|
+
_org_id?: string;
|
|
229
|
+
_id?: string;
|
|
230
|
+
_created_at?: string;
|
|
231
|
+
_updated_at?: string;
|
|
232
|
+
_tags?: string[];
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* The order entity
|
|
236
|
+
*/
|
|
237
|
+
export interface Order {
|
|
238
|
+
[name: string]: any;
|
|
239
|
+
/**
|
|
240
|
+
* The order id number for the customer
|
|
241
|
+
*/
|
|
242
|
+
order_number?: string;
|
|
243
|
+
/**
|
|
244
|
+
* The cart id that originated or is associated with the order
|
|
245
|
+
*/
|
|
246
|
+
cart_id?: string;
|
|
247
|
+
/**
|
|
248
|
+
* The order status
|
|
249
|
+
*/
|
|
250
|
+
status?: "draft" | "quote" | "placed" | "cancelled" | "completed";
|
|
251
|
+
metadata?: /* A set of key-value pairs. */ MetaData;
|
|
252
|
+
billing_first_name?: string;
|
|
253
|
+
billing_last_name?: string;
|
|
254
|
+
billing_company_name?: string;
|
|
255
|
+
billing_vat?: string;
|
|
256
|
+
billing_email?: string;
|
|
257
|
+
billing_phone?: string;
|
|
258
|
+
billing_address?: Address[];
|
|
259
|
+
currency?: /**
|
|
260
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
261
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
262
|
+
*
|
|
263
|
+
*/
|
|
264
|
+
Currency;
|
|
265
|
+
delivery_address?: Address[];
|
|
266
|
+
payment_method?: /**
|
|
267
|
+
* A PaymentMethod represent your customer's payment instruments.
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
270
|
+
PaymentMethod[];
|
|
271
|
+
/**
|
|
272
|
+
* The id of an existing contact.
|
|
273
|
+
*/
|
|
274
|
+
contact?: string;
|
|
275
|
+
line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
|
|
276
|
+
/**
|
|
277
|
+
* Total of all items before (discounts or) taxes are applied.
|
|
278
|
+
*/
|
|
279
|
+
amount_subtotal?: number;
|
|
280
|
+
/**
|
|
281
|
+
* Total of all items after (discounts and) taxes are applied.
|
|
282
|
+
*/
|
|
283
|
+
amount_total?: number;
|
|
284
|
+
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
285
|
+
/**
|
|
286
|
+
* Organization Id the order belongs to
|
|
287
|
+
*/
|
|
288
|
+
_org_id?: string;
|
|
289
|
+
_id?: string;
|
|
290
|
+
_created_at?: string;
|
|
291
|
+
_updated_at?: string;
|
|
292
|
+
_tags?: string[];
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* An order relation reference
|
|
296
|
+
*/
|
|
297
|
+
export interface OrderRelation {
|
|
298
|
+
/**
|
|
299
|
+
* The relation order id
|
|
300
|
+
*/
|
|
301
|
+
entity_id?: string;
|
|
302
|
+
_tags?: string[];
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* A PaymentMethod represent your customer's payment instruments.
|
|
306
|
+
*
|
|
307
|
+
*/
|
|
308
|
+
export interface PaymentMethod {
|
|
309
|
+
/**
|
|
310
|
+
* The type of the PaymentMethod.
|
|
311
|
+
*/
|
|
312
|
+
type?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Contains relevant data associated with the payment method type.
|
|
315
|
+
*/
|
|
316
|
+
details?: {
|
|
317
|
+
[name: string]: any;
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* The price configuration
|
|
322
|
+
*/
|
|
323
|
+
export interface Price {
|
|
324
|
+
[name: string]: any;
|
|
325
|
+
active?: boolean;
|
|
326
|
+
billing_scheme?: "Per Unit";
|
|
327
|
+
description?: string;
|
|
328
|
+
sales_tax?: SalesTax;
|
|
329
|
+
tax_behavior?: "inclusive" | "exclusive";
|
|
330
|
+
tiers_mode?: "Standard";
|
|
331
|
+
type?: "one_time" | "recurring";
|
|
332
|
+
billing_period?: BillingPeriod;
|
|
333
|
+
unit_amount?: number;
|
|
334
|
+
unit_amount_decimal?: string;
|
|
335
|
+
unit_amount_currency?: /**
|
|
336
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
337
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
338
|
+
*
|
|
339
|
+
*/
|
|
340
|
+
Currency;
|
|
341
|
+
billing_duration_amount?: number;
|
|
342
|
+
billing_duration_unit?: "weeks" | "months" | "years";
|
|
343
|
+
notice_time_amount?: number;
|
|
344
|
+
notice_time_unit?: "weeks" | "months" | "years";
|
|
345
|
+
termination_time_amount?: number;
|
|
346
|
+
termination_time_unit?: "weeks" | "months" | "years";
|
|
347
|
+
renewal_duration_amount?: number;
|
|
348
|
+
renewal_duration_unit?: "weeks" | "months" | "years";
|
|
349
|
+
_created_at?: string;
|
|
350
|
+
_id?: string;
|
|
351
|
+
_title?: string;
|
|
352
|
+
_updated_at?: string;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Represents a price item
|
|
356
|
+
*/
|
|
357
|
+
export interface PriceItem {
|
|
358
|
+
/**
|
|
359
|
+
* price item id
|
|
360
|
+
*/
|
|
361
|
+
id?: string;
|
|
362
|
+
metadata?: /* A set of key-value pairs. */ MetaData;
|
|
363
|
+
/**
|
|
364
|
+
* The unit amount value
|
|
365
|
+
*/
|
|
366
|
+
unit_amount?: number;
|
|
367
|
+
/**
|
|
368
|
+
* Total before any (discounts or) taxes are applied.
|
|
369
|
+
*/
|
|
370
|
+
amount_subtotal?: number;
|
|
371
|
+
/**
|
|
372
|
+
* Total after (discounts and) taxes.
|
|
373
|
+
*/
|
|
374
|
+
amount_total?: number;
|
|
375
|
+
currency?: /**
|
|
376
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
377
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
378
|
+
*
|
|
379
|
+
*/
|
|
380
|
+
Currency;
|
|
381
|
+
/**
|
|
382
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
383
|
+
*/
|
|
384
|
+
description?: string;
|
|
385
|
+
/**
|
|
386
|
+
* The quantity of products being purchased.
|
|
387
|
+
*/
|
|
388
|
+
quantity?: number;
|
|
389
|
+
/**
|
|
390
|
+
* The id of the product.
|
|
391
|
+
*/
|
|
392
|
+
product_id?: string;
|
|
393
|
+
/**
|
|
394
|
+
* The id of the price.
|
|
395
|
+
*/
|
|
396
|
+
price_id?: string;
|
|
397
|
+
_price?: /* The price configuration */ Price;
|
|
398
|
+
_product?: /* The product configuration */ Product;
|
|
399
|
+
/**
|
|
400
|
+
* The taxes applied to the price item.
|
|
401
|
+
*/
|
|
402
|
+
taxes?: (/* A tax amount associated with a specific tax rate. */ TaxAmount)[];
|
|
403
|
+
/**
|
|
404
|
+
* The sum of amounts of the price items by recurrence.
|
|
405
|
+
*/
|
|
406
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Represents a valid price item from a client.
|
|
410
|
+
*/
|
|
411
|
+
export interface PriceItemDto {
|
|
412
|
+
metadata?: /* A set of key-value pairs. */ MetaData;
|
|
413
|
+
/**
|
|
414
|
+
* The quantity of products being purchased.
|
|
415
|
+
*/
|
|
416
|
+
quantity?: number;
|
|
417
|
+
/**
|
|
418
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
419
|
+
*/
|
|
420
|
+
description?: string;
|
|
421
|
+
/**
|
|
422
|
+
* The id of the product.
|
|
423
|
+
*/
|
|
424
|
+
product_id?: string;
|
|
425
|
+
/**
|
|
426
|
+
* The id of the price.
|
|
427
|
+
*/
|
|
428
|
+
price_id?: string;
|
|
429
|
+
/**
|
|
430
|
+
* The taxes applied to the price item.
|
|
431
|
+
*/
|
|
432
|
+
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
433
|
+
/**
|
|
434
|
+
* The taxes applied to the price item.
|
|
435
|
+
*/
|
|
436
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
437
|
+
_price?: /* The price configuration */ Price;
|
|
438
|
+
/**
|
|
439
|
+
* The product linked to the price item.
|
|
440
|
+
*/
|
|
441
|
+
_product?: /* The product configuration */ Product;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Tracks a set of product prices, quantities, (discounts) and taxes.
|
|
445
|
+
*/
|
|
446
|
+
export type PriceItems = (/* Represents a price item */ PriceItem)[];
|
|
447
|
+
/**
|
|
448
|
+
* A valid set of product prices, quantities, (discounts) and taxes from a client.
|
|
449
|
+
*/
|
|
450
|
+
export type PriceItemsDto = (/* Represents a valid price item from a client. */ PriceItemDto)[];
|
|
451
|
+
/**
|
|
452
|
+
* The result from the calculation of a set of price items.
|
|
453
|
+
*/
|
|
454
|
+
export interface PricingDetails {
|
|
455
|
+
items?: (/* Represents a price item */ PriceItem)[];
|
|
456
|
+
/**
|
|
457
|
+
* Total of all items before (discounts or) taxes are applied.
|
|
458
|
+
*/
|
|
459
|
+
amount_subtotal?: number;
|
|
460
|
+
/**
|
|
461
|
+
* Total of all items after (discounts and) taxes are applied.
|
|
462
|
+
*/
|
|
463
|
+
amount_total?: number;
|
|
464
|
+
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* The product configuration
|
|
468
|
+
*/
|
|
469
|
+
export interface Product {
|
|
470
|
+
[name: string]: any;
|
|
471
|
+
code?: string;
|
|
472
|
+
type?: "Product" | "Service";
|
|
473
|
+
name?: string;
|
|
474
|
+
_id?: string;
|
|
475
|
+
_title?: string;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* An amount associated with a specific recurrence.
|
|
479
|
+
*/
|
|
480
|
+
export interface RecurrenceAmount {
|
|
481
|
+
/**
|
|
482
|
+
* The price type.
|
|
483
|
+
*/
|
|
484
|
+
type: string;
|
|
485
|
+
/**
|
|
486
|
+
* The price billing period.
|
|
487
|
+
*/
|
|
488
|
+
billing_period?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Total of all items, with same recurrence, before (discounts or) taxes are applied.
|
|
491
|
+
*/
|
|
492
|
+
amount_subtotal: number;
|
|
493
|
+
/**
|
|
494
|
+
* Total of all items, with same recurrence, after (discounts and) taxes are applied.
|
|
495
|
+
*/
|
|
496
|
+
amount_total: number;
|
|
497
|
+
/**
|
|
498
|
+
* Total of all items taxes, with same recurrence.
|
|
499
|
+
*/
|
|
500
|
+
amount_tax?: number;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* An amount associated with a specific recurrence.
|
|
504
|
+
*/
|
|
505
|
+
export interface RecurrenceAmountDto {
|
|
506
|
+
/**
|
|
507
|
+
* The price type.
|
|
508
|
+
*/
|
|
509
|
+
type: string;
|
|
510
|
+
/**
|
|
511
|
+
* The price billing period.
|
|
512
|
+
*/
|
|
513
|
+
billing_period?: string;
|
|
514
|
+
/**
|
|
515
|
+
* Total of all items, with same recurrence, before (discounts or) taxes are applied.
|
|
516
|
+
*/
|
|
517
|
+
amount_subtotal: number;
|
|
518
|
+
/**
|
|
519
|
+
* Total of all items, with same recurrence, after (discounts and) taxes are applied.
|
|
520
|
+
*/
|
|
521
|
+
amount_total: number;
|
|
522
|
+
/**
|
|
523
|
+
* Total of all items taxes, with same recurrence.
|
|
524
|
+
*/
|
|
525
|
+
amount_tax?: number;
|
|
526
|
+
}
|
|
527
|
+
export type SalesTax = "nontaxable" | "reduced" | "standard";
|
|
528
|
+
/**
|
|
529
|
+
* the tax configuration
|
|
530
|
+
*/
|
|
531
|
+
export interface Tax {
|
|
532
|
+
[name: string]: any;
|
|
533
|
+
type: "VAT" | "GST" | "Custom";
|
|
534
|
+
description?: string;
|
|
535
|
+
rate: number;
|
|
536
|
+
behavior: "Exclusive" | "Inclusive";
|
|
537
|
+
active?: boolean;
|
|
538
|
+
region?: string;
|
|
539
|
+
region_label?: string;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* A tax amount associated with a specific tax rate.
|
|
543
|
+
*/
|
|
544
|
+
export interface TaxAmount {
|
|
545
|
+
/**
|
|
546
|
+
* The tax amount.
|
|
547
|
+
*/
|
|
548
|
+
amount?: number;
|
|
549
|
+
/**
|
|
550
|
+
* The tax rate applied.
|
|
551
|
+
*/
|
|
552
|
+
rate?: string;
|
|
553
|
+
/**
|
|
554
|
+
* The tax applied.
|
|
555
|
+
*/
|
|
556
|
+
tax?: /* The tax applied. */ /* the tax configuration */ Tax;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* A valid tax rate from a client.
|
|
560
|
+
*/
|
|
561
|
+
export interface TaxAmountDto {
|
|
562
|
+
/**
|
|
563
|
+
* The tax rate applied.
|
|
564
|
+
*/
|
|
565
|
+
rate?: string;
|
|
566
|
+
/**
|
|
567
|
+
* The tax applied.
|
|
568
|
+
*/
|
|
569
|
+
tax?: /* The tax applied. */ /* the tax configuration */ Tax;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* The total details with tax (and discount) aggregated totals.
|
|
573
|
+
*/
|
|
574
|
+
export interface TotalDetails {
|
|
575
|
+
/**
|
|
576
|
+
* This is the sum of all the price item shipping amounts.
|
|
577
|
+
*/
|
|
578
|
+
amount_shipping?: number;
|
|
579
|
+
/**
|
|
580
|
+
* This is the sum of all the price item tax amounts.
|
|
581
|
+
*/
|
|
582
|
+
amount_tax?: number;
|
|
583
|
+
/**
|
|
584
|
+
* Breakdown of individual tax (and discount) amounts that add up to the totals.
|
|
585
|
+
*/
|
|
586
|
+
breakdown?: {
|
|
587
|
+
/**
|
|
588
|
+
* The aggregated price items tax amount per rate.
|
|
589
|
+
*/
|
|
590
|
+
taxes?: (/* A tax amount associated with a specific tax rate. */ TaxAmount)[];
|
|
591
|
+
/**
|
|
592
|
+
* The aggregated price items tax amount per rate.
|
|
593
|
+
*/
|
|
594
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
595
|
+
};
|
|
596
|
+
}
|
|
573
597
|
}
|
|
574
|
-
}
|
|
575
598
|
}
|
|
576
599
|
declare namespace Paths {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
600
|
+
namespace $CheckoutCart {
|
|
601
|
+
export interface HeaderParameters {
|
|
602
|
+
"X-Ivy-Org-ID": Parameters.XIvyOrgID;
|
|
603
|
+
}
|
|
604
|
+
namespace Parameters {
|
|
605
|
+
export type XIvyOrgID = string;
|
|
606
|
+
}
|
|
607
|
+
export type RequestBody = /* The cart checkout request payload */ Components.Schemas.CheckoutCart;
|
|
608
|
+
namespace Responses {
|
|
609
|
+
export type $200 = /* The cart checkout result */ Components.Schemas.CheckoutCartResult;
|
|
610
|
+
export type $400 = Components.Schemas.Error;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
namespace $CreateOpportunity {
|
|
614
|
+
export interface HeaderParameters {
|
|
615
|
+
"X-Ivy-Org-ID": Parameters.XIvyOrgID;
|
|
616
|
+
}
|
|
617
|
+
namespace Parameters {
|
|
618
|
+
export type XIvyOrgID = string;
|
|
619
|
+
}
|
|
620
|
+
export type RequestBody = /* The opportunity entity */ Components.Schemas.Opportunity;
|
|
621
|
+
namespace Responses {
|
|
622
|
+
export type $201 = /* The opportunity entity */ Components.Schemas.Opportunity;
|
|
623
|
+
export type $400 = Components.Schemas.Error;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
namespace $SearchCatalog {
|
|
627
|
+
export interface HeaderParameters {
|
|
628
|
+
"X-Ivy-Org-ID": Parameters.XIvyOrgID;
|
|
629
|
+
}
|
|
630
|
+
namespace Parameters {
|
|
631
|
+
export type XIvyOrgID = string;
|
|
632
|
+
}
|
|
633
|
+
export type RequestBody = /**
|
|
634
|
+
* A catalog search payload
|
|
635
|
+
* example:
|
|
636
|
+
* {
|
|
637
|
+
* "q": "_id:1233432 OR _id:123432454 OR _id:23445433",
|
|
638
|
+
* "sort": "description ASC",
|
|
639
|
+
* "from": 0,
|
|
640
|
+
* "size": 200
|
|
641
|
+
* }
|
|
642
|
+
*/
|
|
643
|
+
Components.Schemas.CatalogSearch;
|
|
644
|
+
namespace Responses {
|
|
645
|
+
export type $200 = /**
|
|
646
|
+
* The query result payload
|
|
647
|
+
* example:
|
|
648
|
+
* {
|
|
649
|
+
* "hits": 2,
|
|
650
|
+
* "results": [
|
|
651
|
+
* {
|
|
652
|
+
* "schema": "product",
|
|
653
|
+
* "description": "product a"
|
|
654
|
+
* },
|
|
655
|
+
* {
|
|
656
|
+
* "schema": "price",
|
|
657
|
+
* "unit_amount_decimal": "124.342343434"
|
|
658
|
+
* }
|
|
659
|
+
* ]
|
|
660
|
+
* }
|
|
661
|
+
*/
|
|
662
|
+
Components.Schemas.CatalogSearchResult;
|
|
663
|
+
export type $400 = Components.Schemas.Error;
|
|
664
|
+
}
|
|
614
665
|
}
|
|
615
|
-
}
|
|
616
666
|
}
|
|
617
667
|
|
|
618
668
|
export interface OperationMethods {
|
|
@@ -636,7 +686,7 @@ export interface OperationMethods {
|
|
|
636
686
|
parameters?: Parameters<Paths.$CheckoutCart.HeaderParameters> | null,
|
|
637
687
|
data?: Paths.$CheckoutCart.RequestBody,
|
|
638
688
|
config?: AxiosRequestConfig
|
|
639
|
-
): OperationResponse<Paths.$CheckoutCart.Responses.$200
|
|
689
|
+
): OperationResponse<Paths.$CheckoutCart.Responses.$200>
|
|
640
690
|
/**
|
|
641
691
|
* $searchCatalog - searchCatalog
|
|
642
692
|
*
|
|
@@ -646,7 +696,7 @@ export interface OperationMethods {
|
|
|
646
696
|
parameters?: Parameters<Paths.$SearchCatalog.HeaderParameters> | null,
|
|
647
697
|
data?: Paths.$SearchCatalog.RequestBody,
|
|
648
698
|
config?: AxiosRequestConfig
|
|
649
|
-
): OperationResponse<Paths.$SearchCatalog.Responses.$200
|
|
699
|
+
): OperationResponse<Paths.$SearchCatalog.Responses.$200>
|
|
650
700
|
/**
|
|
651
701
|
* $createOpportunity - createOpportunity
|
|
652
702
|
*
|
|
@@ -658,7 +708,7 @@ export interface OperationMethods {
|
|
|
658
708
|
parameters?: Parameters<Paths.$CreateOpportunity.HeaderParameters> | null,
|
|
659
709
|
data?: Paths.$CreateOpportunity.RequestBody,
|
|
660
710
|
config?: AxiosRequestConfig
|
|
661
|
-
): OperationResponse<Paths.$CreateOpportunity.Responses.$201
|
|
711
|
+
): OperationResponse<Paths.$CreateOpportunity.Responses.$201>
|
|
662
712
|
}
|
|
663
713
|
|
|
664
714
|
export interface PathsDictionary {
|
|
@@ -683,7 +733,7 @@ export interface PathsDictionary {
|
|
|
683
733
|
parameters?: Parameters<Paths.$CheckoutCart.HeaderParameters> | null,
|
|
684
734
|
data?: Paths.$CheckoutCart.RequestBody,
|
|
685
735
|
config?: AxiosRequestConfig
|
|
686
|
-
): OperationResponse<Paths.$CheckoutCart.Responses.$200
|
|
736
|
+
): OperationResponse<Paths.$CheckoutCart.Responses.$200>
|
|
687
737
|
}
|
|
688
738
|
['/v1/public/catalog']: {
|
|
689
739
|
/**
|
|
@@ -695,7 +745,7 @@ export interface PathsDictionary {
|
|
|
695
745
|
parameters?: Parameters<Paths.$SearchCatalog.HeaderParameters> | null,
|
|
696
746
|
data?: Paths.$SearchCatalog.RequestBody,
|
|
697
747
|
config?: AxiosRequestConfig
|
|
698
|
-
): OperationResponse<Paths.$SearchCatalog.Responses.$200
|
|
748
|
+
): OperationResponse<Paths.$SearchCatalog.Responses.$200>
|
|
699
749
|
}
|
|
700
750
|
['/v1/public/opportunity']: {
|
|
701
751
|
/**
|
|
@@ -709,7 +759,7 @@ export interface PathsDictionary {
|
|
|
709
759
|
parameters?: Parameters<Paths.$CreateOpportunity.HeaderParameters> | null,
|
|
710
760
|
data?: Paths.$CreateOpportunity.RequestBody,
|
|
711
761
|
config?: AxiosRequestConfig
|
|
712
|
-
): OperationResponse<Paths.$CreateOpportunity.Responses.$201
|
|
762
|
+
): OperationResponse<Paths.$CreateOpportunity.Responses.$201>
|
|
713
763
|
}
|
|
714
764
|
}
|
|
715
765
|
|