@epilot/pricing-client 1.10.0 → 1.11.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/src/openapi.d.ts DELETED
@@ -1,970 +0,0 @@
1
- /* eslint-disable */
2
- import type {
3
- OpenAPIClient,
4
- Parameters,
5
- UnknownParamsObject,
6
- OperationResponse,
7
- AxiosRequestConfig,
8
- } from 'openapi-client-axios';
9
-
10
- declare namespace Components {
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
- /**
40
- * Availability check request payload
41
- */
42
- export interface AvailabilityCheckParams {
43
- /**
44
- * Products to check availability
45
- */
46
- products: string[];
47
- filters: /* Availability filters dimensions */ AvailabilityFilters;
48
- }
49
- export interface AvailabilityDate {
50
- /**
51
- * The availability interval start date
52
- * example:
53
- * 2017-07-21
54
- */
55
- available_start_date?: string; // date
56
- /**
57
- * The availability interval end date
58
- * example:
59
- * 2017-07-21
60
- */
61
- available_end_date?: string; // date
62
- }
63
- /**
64
- * Availability filters dimensions
65
- */
66
- export interface AvailabilityFilters {
67
- location: AvailabilityLocation;
68
- /**
69
- * A value to be matched against the availability window (start & end date)
70
- * example:
71
- * 2017-07-21
72
- */
73
- available_date?: string; // date
74
- }
75
- export interface AvailabilityLocation {
76
- /**
77
- * The first line of the address. Typically the street address or PO Box number.
78
- */
79
- street?: string;
80
- /**
81
- * The second line of the address. Typically the number of the apartment, suite, or unit.
82
- */
83
- street_number?: string;
84
- /**
85
- * The postal code for the address.
86
- */
87
- postal_code?: string;
88
- /**
89
- * The name of the city, district, village, or town.
90
- */
91
- city?: string;
92
- /**
93
- * The name of the country.
94
- */
95
- country?: string;
96
- }
97
- /**
98
- * The availability check result payload
99
- * example:
100
- * {
101
- * "available_products": [],
102
- * "check_results": [
103
- * {
104
- * "product_id": "my-product-id-123-1",
105
- * "matching_hits": 0
106
- * },
107
- * {
108
- * "product_id": "my-product-id-123-2",
109
- * "matching_hits": 0
110
- * }
111
- * ]
112
- * }
113
- */
114
- export interface AvailabilityResult {
115
- available_products: string[];
116
- /**
117
- * The check result details
118
- */
119
- check_results?: {
120
- product_id: string;
121
- /**
122
- * The number of rules matched
123
- */
124
- matching_hits?: number;
125
- /**
126
- * A set of matching errors when checking availability
127
- */
128
- matching_error?: {
129
- [name: string]: any;
130
- };
131
- }[];
132
- }
133
- export type BillingPeriod = "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
134
- /**
135
- * Supports shopping for products and services until ready for checkout.
136
- */
137
- export interface Cart {
138
- /**
139
- * The cart identifier
140
- */
141
- id?: string;
142
- /**
143
- * The user's Organization Id the cart belongs to
144
- */
145
- org_id?: string;
146
- /**
147
- * The status of the Cart:
148
- * - open - the cart checkout is still in progress. Payment processing has not started
149
- * - complete - the cart checkout is complete. Payment processing may still be in progress
150
- * - expired - the cart checkout has expired. No further processing will occur
151
- *
152
- */
153
- status?: "open" | "complete" | "expired";
154
- customer?: Customer;
155
- billing_address?: Address;
156
- delivery_address?: Address;
157
- metadata?: /* A set of key-value pairs. */ MetaData;
158
- line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
159
- /**
160
- * Total of all items before (discounts or) taxes are applied.
161
- */
162
- amount_subtotal?: number;
163
- /**
164
- * Total of all items after (discounts and) taxes are applied.
165
- */
166
- amount_total?: number;
167
- total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
168
- created_at?: string; // date-time
169
- updated_at?: string; // date-time
170
- }
171
- /**
172
- * A valid cart payload from a client.
173
- */
174
- export interface CartDto {
175
- metadata?: /* A set of key-value pairs. */ MetaData;
176
- customer?: Customer;
177
- billing_address?: Address;
178
- delivery_address?: Address;
179
- additional_addresses?: Address[];
180
- payment_method?: /**
181
- * A PaymentMethod represent your customer's payment instruments.
182
- *
183
- */
184
- PaymentMethod;
185
- line_items: /* A valid set of product prices, quantities, (discounts) and taxes from a client. */ PriceItemsDto;
186
- /**
187
- * An array of file IDs, already upload into the File API, that are related with this cart
188
- */
189
- files?: string[];
190
- status?: /* The order status */ OrderStatus;
191
- tags?: string[];
192
- journey_data?: {
193
- [name: string]: any;
194
- };
195
- consents?: {
196
- [name: string]: any;
197
- };
198
- }
199
- /**
200
- * A catalog search payload
201
- * example:
202
- * {
203
- * "q": "_id:1233432 OR _id:123432454 OR _id:23445433",
204
- * "sort": "description ASC",
205
- * "from": 0,
206
- * "size": 200,
207
- * "availability": {
208
- * "location": {
209
- * "postal_code": "57008,",
210
- * "city": "Cologne,",
211
- * "street": "Media Park,",
212
- * "street_number": "8a"
213
- * },
214
- * "available_date": {
215
- * "value": "2022-05-01"
216
- * }
217
- * }
218
- * }
219
- */
220
- export interface CatalogSearch {
221
- /**
222
- * The query to perform using lucene query syntax.
223
- */
224
- q: string;
225
- /**
226
- * The sort expression to sort the results.
227
- */
228
- sort?: string;
229
- /**
230
- * The index from which to query, used for pagination purposes. Defaults to 0
231
- */
232
- from?: number;
233
- /**
234
- * The max size of the response, defaults to 2000.
235
- */
236
- size?: number;
237
- /**
238
- * When true, enables entity hydration to resolve nested $relation references in-place.
239
- */
240
- hydrate?: boolean;
241
- availability?: /* Availability filters dimensions */ AvailabilityFilters;
242
- }
243
- /**
244
- * The query result payload
245
- * example:
246
- * {
247
- * "hits": 2,
248
- * "results": [
249
- * {
250
- * "schema": "product",
251
- * "description": "product a"
252
- * },
253
- * {
254
- * "schema": "price",
255
- * "unit_amount_decimal": "124.342343434"
256
- * }
257
- * ]
258
- * }
259
- */
260
- export interface CatalogSearchResult {
261
- /**
262
- * The number os results returned.
263
- */
264
- hits?: number;
265
- results?: (/* The product configuration */ Product | /* The price configuration */ Price)[];
266
- }
267
- /**
268
- * The cart checkout request payload
269
- */
270
- export interface CheckoutCart {
271
- cart?: string | /* A valid cart payload from a client. */ CartDto;
272
- mode?: /* The checkout mode for the cart checkout. */ CheckoutMode;
273
- }
274
- /**
275
- * The cart checkout result
276
- */
277
- export interface CheckoutCartResult {
278
- order?: /* The order entity */ Order;
279
- }
280
- /**
281
- * The checkout mode for the cart checkout.
282
- */
283
- export type CheckoutMode = "create_order" | "create_invoice" | "create_quote";
284
- /**
285
- * Three-letter ISO currency code, in lowercase. Must be a supported currency.
286
- * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
287
- *
288
- */
289
- export type Currency = string;
290
- export interface Customer {
291
- first_name?: string;
292
- last_name?: string;
293
- company_name?: string;
294
- vat_id?: string;
295
- /**
296
- * A valid email identifying the customer.
297
- */
298
- email?: string;
299
- phone?: string;
300
- }
301
- export interface EntityRelation {
302
- [name: string]: any;
303
- entity_id?: string;
304
- _tags?: string[];
305
- }
306
- export interface Error {
307
- /**
308
- * Error message
309
- */
310
- message: string;
311
- }
312
- export interface File {
313
- [name: string]: any;
314
- _id: string;
315
- filename: string;
316
- mime_type: string;
317
- versions: {
318
- [name: string]: any;
319
- s3ref: {
320
- bucket: string;
321
- key: string;
322
- };
323
- }[];
324
- _schema: string;
325
- _org: string;
326
- _created_at: string; // date-time
327
- _updated_at: string; // date-time
328
- _title?: string;
329
- $relation?: EntityRelation;
330
- }
331
- /**
332
- * A set of key-value pairs.
333
- */
334
- export type MetaData = ({
335
- /**
336
- * Item key
337
- */
338
- key?: string;
339
- /**
340
- * Item value
341
- */
342
- value?: string;
343
- })[];
344
- /**
345
- * The opportunity entity
346
- */
347
- export interface Opportunity {
348
- [name: string]: any;
349
- /**
350
- * The opportunity id number for the customer (autogenerated if left blank)
351
- */
352
- opportunity_number?: string;
353
- /**
354
- * A description to frame this opportunity within its sales process
355
- */
356
- description?: string;
357
- /**
358
- * The opportunity status
359
- */
360
- status?: "lead" | "qualification" | "validation" | "offering" | "supply" | "approval" | "operations" | "complete";
361
- items?: /* The order entity */ Order[] | {
362
- $relation?: /* An order relation reference */ OrderRelation[];
363
- };
364
- /**
365
- * Organization Id the order belongs to
366
- */
367
- _org_id?: string;
368
- _id?: string;
369
- _created_at?: string;
370
- _updated_at?: string;
371
- _tags?: string[];
372
- }
373
- /**
374
- * The order entity
375
- */
376
- export interface Order {
377
- [name: string]: any;
378
- /**
379
- * The order id number for the customer
380
- */
381
- order_number?: string;
382
- /**
383
- * The cart id that originated or is associated with the order
384
- */
385
- cart_id?: string;
386
- status?: /* The order status */ OrderStatus;
387
- metadata?: /* A set of key-value pairs. */ MetaData;
388
- billing_first_name?: string;
389
- billing_last_name?: string;
390
- billing_company_name?: string;
391
- billing_vat?: string;
392
- billing_email?: string;
393
- billing_phone?: string;
394
- billing_address?: Address[];
395
- currency?: /**
396
- * Three-letter ISO currency code, in lowercase. Must be a supported currency.
397
- * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
398
- *
399
- */
400
- Currency;
401
- delivery_address?: Address[];
402
- payment_method?: /**
403
- * A PaymentMethod represent your customer's payment instruments.
404
- *
405
- */
406
- PaymentMethod[];
407
- /**
408
- * The id of an existing contact.
409
- */
410
- contact?: string;
411
- line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
412
- /**
413
- * Total of all items before (discounts or) taxes are applied.
414
- */
415
- amount_subtotal?: number;
416
- /**
417
- * Total of all items after (discounts and) taxes are applied.
418
- */
419
- amount_total?: number;
420
- total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
421
- /**
422
- * Organization Id the order belongs to
423
- */
424
- _org_id?: string;
425
- _id?: string;
426
- _created_at?: string;
427
- _updated_at?: string;
428
- _tags?: string[];
429
- }
430
- /**
431
- * An order relation reference
432
- */
433
- export interface OrderRelation {
434
- /**
435
- * The relation order id
436
- */
437
- entity_id?: string;
438
- _tags?: string[];
439
- }
440
- /**
441
- * The order status
442
- */
443
- export type OrderStatus = "draft" | "quote" | "placed" | "cancelled" | "completed";
444
- /**
445
- * A PaymentMethod represent your customer's payment instruments.
446
- *
447
- */
448
- export interface PaymentMethod {
449
- /**
450
- * The type of the PaymentMethod.
451
- */
452
- type?: string;
453
- /**
454
- * Contains relevant data associated with the payment method type.
455
- */
456
- details?: {
457
- [name: string]: any;
458
- };
459
- }
460
- /**
461
- * The price configuration
462
- */
463
- export interface Price {
464
- [name: string]: any;
465
- active?: boolean;
466
- billing_scheme?: "Per Unit";
467
- description?: string;
468
- sales_tax?: SalesTax;
469
- tax_behavior?: "inclusive" | "exclusive";
470
- tiers_mode?: "Standard";
471
- type?: "one_time" | "recurring";
472
- billing_period?: BillingPeriod;
473
- unit_amount?: number;
474
- unit_amount_decimal?: string;
475
- unit_amount_currency?: /**
476
- * Three-letter ISO currency code, in lowercase. Must be a supported currency.
477
- * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
478
- *
479
- */
480
- Currency;
481
- billing_duration_amount?: number;
482
- billing_duration_unit?: "weeks" | "months" | "years";
483
- notice_time_amount?: number;
484
- notice_time_unit?: "weeks" | "months" | "years";
485
- termination_time_amount?: number;
486
- termination_time_unit?: "weeks" | "months" | "years";
487
- renewal_duration_amount?: number;
488
- renewal_duration_unit?: "weeks" | "months" | "years";
489
- _created_at?: string;
490
- _id?: string;
491
- _title?: string;
492
- _updated_at?: string;
493
- }
494
- /**
495
- * Represents a price item
496
- */
497
- export interface PriceItem {
498
- /**
499
- * price item id
500
- */
501
- id?: string;
502
- metadata?: /* A set of key-value pairs. */ MetaData;
503
- /**
504
- * The unit amount value
505
- */
506
- unit_amount?: number;
507
- /**
508
- * Total before any (discounts or) taxes are applied.
509
- */
510
- amount_subtotal?: number;
511
- /**
512
- * Total after (discounts and) taxes.
513
- */
514
- amount_total?: number;
515
- currency?: /**
516
- * Three-letter ISO currency code, in lowercase. Must be a supported currency.
517
- * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
518
- *
519
- */
520
- Currency;
521
- /**
522
- * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
523
- */
524
- description?: string;
525
- /**
526
- * The quantity of products being purchased.
527
- */
528
- quantity?: number;
529
- /**
530
- * The id of the product.
531
- */
532
- product_id?: string;
533
- /**
534
- * The id of the price.
535
- */
536
- price_id?: string;
537
- _price?: /* The price configuration */ Price;
538
- _product?: /* The product configuration */ Product;
539
- /**
540
- * The taxes applied to the price item.
541
- */
542
- taxes?: (/* A tax amount associated with a specific tax rate. */ TaxAmount)[];
543
- /**
544
- * The sum of amounts of the price items by recurrence.
545
- */
546
- recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
547
- }
548
- /**
549
- * Represents a valid price item from a client.
550
- */
551
- export interface PriceItemDto {
552
- metadata?: /* A set of key-value pairs. */ MetaData;
553
- /**
554
- * The quantity of products being purchased.
555
- */
556
- quantity?: number;
557
- /**
558
- * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
559
- */
560
- description?: string;
561
- /**
562
- * The id of the product.
563
- */
564
- product_id?: string;
565
- /**
566
- * The id of the price.
567
- */
568
- price_id?: string;
569
- /**
570
- * The taxes applied to the price item.
571
- */
572
- taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
573
- /**
574
- * The taxes applied to the price item.
575
- */
576
- recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
577
- _price?: /* The price configuration */ Price;
578
- /**
579
- * The product linked to the price item.
580
- */
581
- _product?: /* The product configuration */ Product;
582
- }
583
- /**
584
- * Tracks a set of product prices, quantities, (discounts) and taxes.
585
- */
586
- export type PriceItems = (/* Represents a price item */ PriceItem)[];
587
- /**
588
- * A valid set of product prices, quantities, (discounts) and taxes from a client.
589
- */
590
- export type PriceItemsDto = (/* Represents a valid price item from a client. */ PriceItemDto)[];
591
- /**
592
- * The result from the calculation of a set of price items.
593
- */
594
- export interface PricingDetails {
595
- items?: (/* Represents a price item */ PriceItem)[];
596
- /**
597
- * Total of all items before (discounts or) taxes are applied.
598
- */
599
- amount_subtotal?: number;
600
- /**
601
- * Total of all items after (discounts and) taxes are applied.
602
- */
603
- amount_total?: number;
604
- total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
605
- }
606
- /**
607
- * The product configuration
608
- */
609
- export interface Product {
610
- [name: string]: any;
611
- code?: string;
612
- type?: "Product" | "Service";
613
- name?: string;
614
- _id?: string;
615
- _title?: string;
616
- _availability_files?: File[];
617
- }
618
- /**
619
- * An amount associated with a specific recurrence.
620
- */
621
- export interface RecurrenceAmount {
622
- /**
623
- * The price type.
624
- */
625
- type: string;
626
- /**
627
- * The price billing period.
628
- */
629
- billing_period?: string;
630
- /**
631
- * Total of all items, with same recurrence, before (discounts or) taxes are applied.
632
- */
633
- amount_subtotal: number;
634
- /**
635
- * Total of all items, with same recurrence, after (discounts and) taxes are applied.
636
- */
637
- amount_total: number;
638
- /**
639
- * Total of all items taxes, with same recurrence.
640
- */
641
- amount_tax?: number;
642
- }
643
- /**
644
- * An amount associated with a specific recurrence.
645
- */
646
- export interface RecurrenceAmountDto {
647
- /**
648
- * The price type.
649
- */
650
- type: string;
651
- /**
652
- * The price billing period.
653
- */
654
- billing_period?: string;
655
- /**
656
- * Total of all items, with same recurrence, before (discounts or) taxes are applied.
657
- */
658
- amount_subtotal: number;
659
- /**
660
- * Total of all items, with same recurrence, after (discounts and) taxes are applied.
661
- */
662
- amount_total: number;
663
- /**
664
- * Total of all items taxes, with same recurrence.
665
- */
666
- amount_tax?: number;
667
- }
668
- export type SalesTax = "nontaxable" | "reduced" | "standard";
669
- /**
670
- * the tax configuration
671
- */
672
- export interface Tax {
673
- [name: string]: any;
674
- type: "VAT" | "GST" | "Custom";
675
- description?: string;
676
- rate: number;
677
- behavior: "Exclusive" | "Inclusive";
678
- active?: boolean;
679
- region?: string;
680
- region_label?: string;
681
- }
682
- /**
683
- * A tax amount associated with a specific tax rate.
684
- */
685
- export interface TaxAmount {
686
- /**
687
- * The tax amount.
688
- */
689
- amount?: number;
690
- /**
691
- * The tax rate applied.
692
- */
693
- rate?: string;
694
- /**
695
- * The tax applied.
696
- */
697
- tax?: /* The tax applied. */ /* the tax configuration */ Tax;
698
- }
699
- /**
700
- * A valid tax rate from a client.
701
- */
702
- export interface TaxAmountDto {
703
- /**
704
- * The tax rate applied.
705
- */
706
- rate?: string;
707
- /**
708
- * The tax applied.
709
- */
710
- tax?: /* The tax applied. */ /* the tax configuration */ Tax;
711
- }
712
- /**
713
- * The total details with tax (and discount) aggregated totals.
714
- */
715
- export interface TotalDetails {
716
- /**
717
- * This is the sum of all the price item shipping amounts.
718
- */
719
- amount_shipping?: number;
720
- /**
721
- * This is the sum of all the price item tax amounts.
722
- */
723
- amount_tax?: number;
724
- /**
725
- * Breakdown of individual tax (and discount) amounts that add up to the totals.
726
- */
727
- breakdown?: {
728
- /**
729
- * The aggregated price items tax amount per rate.
730
- */
731
- taxes?: (/* A tax amount associated with a specific tax rate. */ TaxAmount)[];
732
- /**
733
- * The aggregated price items tax amount per rate.
734
- */
735
- recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
736
- };
737
- }
738
- }
739
- }
740
- declare namespace Paths {
741
- namespace $AvailabilityCheck {
742
- export interface HeaderParameters {
743
- "X-Ivy-Org-ID": Parameters.XIvyOrgID;
744
- }
745
- namespace Parameters {
746
- export type XIvyOrgID = string;
747
- }
748
- export type RequestBody = /* Availability check request payload */ Components.Schemas.AvailabilityCheckParams;
749
- namespace Responses {
750
- export type $200 = /**
751
- * The availability check result payload
752
- * example:
753
- * {
754
- * "available_products": [],
755
- * "check_results": [
756
- * {
757
- * "product_id": "my-product-id-123-1",
758
- * "matching_hits": 0
759
- * },
760
- * {
761
- * "product_id": "my-product-id-123-2",
762
- * "matching_hits": 0
763
- * }
764
- * ]
765
- * }
766
- */
767
- Components.Schemas.AvailabilityResult;
768
- export type $400 = Components.Schemas.Error;
769
- }
770
- }
771
- namespace $CheckoutCart {
772
- export interface HeaderParameters {
773
- "X-Ivy-Org-ID": Parameters.XIvyOrgID;
774
- }
775
- namespace Parameters {
776
- export type XIvyOrgID = string;
777
- }
778
- export type RequestBody = /* The cart checkout request payload */ Components.Schemas.CheckoutCart;
779
- namespace Responses {
780
- export type $200 = /* The cart checkout result */ Components.Schemas.CheckoutCartResult;
781
- export type $400 = Components.Schemas.Error;
782
- }
783
- }
784
- namespace $CreateOpportunity {
785
- export interface HeaderParameters {
786
- "X-Ivy-Org-ID": Parameters.XIvyOrgID;
787
- }
788
- namespace Parameters {
789
- export type XIvyOrgID = string;
790
- }
791
- export type RequestBody = /* The opportunity entity */ Components.Schemas.Opportunity;
792
- namespace Responses {
793
- export type $201 = /* The opportunity entity */ Components.Schemas.Opportunity;
794
- export type $400 = Components.Schemas.Error;
795
- }
796
- }
797
- namespace $SearchCatalog {
798
- export interface HeaderParameters {
799
- "X-Ivy-Org-ID": Parameters.XIvyOrgID;
800
- }
801
- namespace Parameters {
802
- export type XIvyOrgID = string;
803
- }
804
- export type RequestBody = /**
805
- * A catalog search payload
806
- * example:
807
- * {
808
- * "q": "_id:1233432 OR _id:123432454 OR _id:23445433",
809
- * "sort": "description ASC",
810
- * "from": 0,
811
- * "size": 200,
812
- * "availability": {
813
- * "location": {
814
- * "postal_code": "57008,",
815
- * "city": "Cologne,",
816
- * "street": "Media Park,",
817
- * "street_number": "8a"
818
- * },
819
- * "available_date": {
820
- * "value": "2022-05-01"
821
- * }
822
- * }
823
- * }
824
- */
825
- Components.Schemas.CatalogSearch;
826
- namespace Responses {
827
- export type $200 = /**
828
- * The query result payload
829
- * example:
830
- * {
831
- * "hits": 2,
832
- * "results": [
833
- * {
834
- * "schema": "product",
835
- * "description": "product a"
836
- * },
837
- * {
838
- * "schema": "price",
839
- * "unit_amount_decimal": "124.342343434"
840
- * }
841
- * ]
842
- * }
843
- */
844
- Components.Schemas.CatalogSearchResult;
845
- export type $400 = Components.Schemas.Error;
846
- }
847
- }
848
- }
849
-
850
- export interface OperationMethods {
851
- /**
852
- * $checkoutCart - checkoutCart
853
- *
854
- * Checkouts a cart and executes the specified checkout `mode` process.
855
- *
856
- * A Checkout implicitly finalizes the provided cart (if not transient from a fast-checkout) and behaves in one of the following modes:
857
- * - `create_order` (**default**): the payment happens at a later date or managed by 3rd-party CRM (SAP)
858
- * - `create_invoice`: the payment happens on the online checkout (paypal, stripe, adyen)
859
- * - `create_quote`: the checkout represents a price quote request
860
- *
861
- * Fast checkout is also supported, by passing the Cart contents directly.
862
- * When a fast checkout is performed the cart is considered transient and there is no cart persistance.
863
- *
864
- * If the checkout `mode` is omitted, the `mode` will default to `create_order`.
865
- *
866
- */
867
- '$checkoutCart'(
868
- parameters?: Parameters<Paths.$CheckoutCart.HeaderParameters> | null,
869
- data?: Paths.$CheckoutCart.RequestBody,
870
- config?: AxiosRequestConfig
871
- ): OperationResponse<Paths.$CheckoutCart.Responses.$200>
872
- /**
873
- * $searchCatalog - searchCatalog
874
- *
875
- * Provides a querying functionalities over products and prices of the Catalog for a given organization.
876
- */
877
- '$searchCatalog'(
878
- parameters?: Parameters<Paths.$SearchCatalog.HeaderParameters> | null,
879
- data?: Paths.$SearchCatalog.RequestBody,
880
- config?: AxiosRequestConfig
881
- ): OperationResponse<Paths.$SearchCatalog.Responses.$200>
882
- /**
883
- * $availabilityCheck - availabilityCheck
884
- *
885
- * The availability check endpoint
886
- */
887
- '$availabilityCheck'(
888
- parameters?: Parameters<Paths.$AvailabilityCheck.HeaderParameters> | null,
889
- data?: Paths.$AvailabilityCheck.RequestBody,
890
- config?: AxiosRequestConfig
891
- ): OperationResponse<Paths.$AvailabilityCheck.Responses.$200>
892
- /**
893
- * $createOpportunity - createOpportunity
894
- *
895
- * Creates a new opportunity. During the creation of an opportunity, an unique customer-readable `opportunity_number` will be generated.
896
- * The `opportunity_number` can be used to universally identify an opportunity within epilot platform.
897
- *
898
- */
899
- '$createOpportunity'(
900
- parameters?: Parameters<Paths.$CreateOpportunity.HeaderParameters> | null,
901
- data?: Paths.$CreateOpportunity.RequestBody,
902
- config?: AxiosRequestConfig
903
- ): OperationResponse<Paths.$CreateOpportunity.Responses.$201>
904
- }
905
-
906
- export interface PathsDictionary {
907
- ['/v1/public/cart:checkout']: {
908
- /**
909
- * $checkoutCart - checkoutCart
910
- *
911
- * Checkouts a cart and executes the specified checkout `mode` process.
912
- *
913
- * A Checkout implicitly finalizes the provided cart (if not transient from a fast-checkout) and behaves in one of the following modes:
914
- * - `create_order` (**default**): the payment happens at a later date or managed by 3rd-party CRM (SAP)
915
- * - `create_invoice`: the payment happens on the online checkout (paypal, stripe, adyen)
916
- * - `create_quote`: the checkout represents a price quote request
917
- *
918
- * Fast checkout is also supported, by passing the Cart contents directly.
919
- * When a fast checkout is performed the cart is considered transient and there is no cart persistance.
920
- *
921
- * If the checkout `mode` is omitted, the `mode` will default to `create_order`.
922
- *
923
- */
924
- 'post'(
925
- parameters?: Parameters<Paths.$CheckoutCart.HeaderParameters> | null,
926
- data?: Paths.$CheckoutCart.RequestBody,
927
- config?: AxiosRequestConfig
928
- ): OperationResponse<Paths.$CheckoutCart.Responses.$200>
929
- }
930
- ['/v1/public/catalog']: {
931
- /**
932
- * $searchCatalog - searchCatalog
933
- *
934
- * Provides a querying functionalities over products and prices of the Catalog for a given organization.
935
- */
936
- 'post'(
937
- parameters?: Parameters<Paths.$SearchCatalog.HeaderParameters> | null,
938
- data?: Paths.$SearchCatalog.RequestBody,
939
- config?: AxiosRequestConfig
940
- ): OperationResponse<Paths.$SearchCatalog.Responses.$200>
941
- }
942
- ['/v1/public/availability:check']: {
943
- /**
944
- * $availabilityCheck - availabilityCheck
945
- *
946
- * The availability check endpoint
947
- */
948
- 'post'(
949
- parameters?: Parameters<Paths.$AvailabilityCheck.HeaderParameters> | null,
950
- data?: Paths.$AvailabilityCheck.RequestBody,
951
- config?: AxiosRequestConfig
952
- ): OperationResponse<Paths.$AvailabilityCheck.Responses.$200>
953
- }
954
- ['/v1/public/opportunity']: {
955
- /**
956
- * $createOpportunity - createOpportunity
957
- *
958
- * Creates a new opportunity. During the creation of an opportunity, an unique customer-readable `opportunity_number` will be generated.
959
- * The `opportunity_number` can be used to universally identify an opportunity within epilot platform.
960
- *
961
- */
962
- 'post'(
963
- parameters?: Parameters<Paths.$CreateOpportunity.HeaderParameters> | null,
964
- data?: Paths.$CreateOpportunity.RequestBody,
965
- config?: AxiosRequestConfig
966
- ): OperationResponse<Paths.$CreateOpportunity.Responses.$201>
967
- }
968
- }
969
-
970
- export type Client = OpenAPIClient<OperationMethods, PathsDictionary>