@epilot/pricing-client 3.47.9 → 3.47.11
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 +214 -106
- package/dist/openapi.json +87 -49
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -81,14 +81,6 @@ declare namespace Components {
|
|
|
81
81
|
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
82
82
|
*/
|
|
83
83
|
amount_total_decimal?: string;
|
|
84
|
-
/**
|
|
85
|
-
* The discount amount.
|
|
86
|
-
*/
|
|
87
|
-
discount_amount?: number;
|
|
88
|
-
/**
|
|
89
|
-
* The discount amount as a string with all the decimal places.
|
|
90
|
-
*/
|
|
91
|
-
discount_amount_decimal?: string;
|
|
92
84
|
/**
|
|
93
85
|
* The cashback amount.
|
|
94
86
|
*/
|
|
@@ -97,10 +89,7 @@ declare namespace Components {
|
|
|
97
89
|
* The cashback amount as a string with all the decimal places.
|
|
98
90
|
*/
|
|
99
91
|
cashback_amount_decimal?: string;
|
|
100
|
-
|
|
101
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
102
|
-
*/
|
|
103
|
-
cashback_period?: "0" | "12";
|
|
92
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
104
93
|
/**
|
|
105
94
|
* Total amount after cashback is applied.
|
|
106
95
|
*/
|
|
@@ -109,6 +98,14 @@ declare namespace Components {
|
|
|
109
98
|
* Total amount after cashback is applied as a string with all the decimal places.
|
|
110
99
|
*/
|
|
111
100
|
after_cashback_amount_total_decimal?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The discount amount.
|
|
103
|
+
*/
|
|
104
|
+
discount_amount?: number;
|
|
105
|
+
/**
|
|
106
|
+
* The discount amount as a string with all the decimal places.
|
|
107
|
+
*/
|
|
108
|
+
discount_amount_decimal?: string;
|
|
112
109
|
/**
|
|
113
110
|
* The discount percentage, if the applied coupon had a percentage type.
|
|
114
111
|
*/
|
|
@@ -409,10 +406,7 @@ declare namespace Components {
|
|
|
409
406
|
* EUR
|
|
410
407
|
*/
|
|
411
408
|
Currency;
|
|
412
|
-
|
|
413
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
414
|
-
*/
|
|
415
|
-
cashback_period?: "0" | "12";
|
|
409
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
416
410
|
active?: boolean;
|
|
417
411
|
/**
|
|
418
412
|
* Whether the coupon requires a promo code to be applied
|
|
@@ -465,14 +459,6 @@ declare namespace Components {
|
|
|
465
459
|
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
466
460
|
*/
|
|
467
461
|
amount_total_decimal?: string;
|
|
468
|
-
/**
|
|
469
|
-
* The discount amount.
|
|
470
|
-
*/
|
|
471
|
-
discount_amount?: number;
|
|
472
|
-
/**
|
|
473
|
-
* The discount amount as a string with all the decimal places.
|
|
474
|
-
*/
|
|
475
|
-
discount_amount_decimal?: string;
|
|
476
462
|
/**
|
|
477
463
|
* The cashback amount.
|
|
478
464
|
*/
|
|
@@ -481,10 +467,7 @@ declare namespace Components {
|
|
|
481
467
|
* The cashback amount as a string with all the decimal places.
|
|
482
468
|
*/
|
|
483
469
|
cashback_amount_decimal?: string;
|
|
484
|
-
|
|
485
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
486
|
-
*/
|
|
487
|
-
cashback_period?: "0" | "12";
|
|
470
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
488
471
|
/**
|
|
489
472
|
* Total amount after cashback is applied.
|
|
490
473
|
*/
|
|
@@ -493,6 +476,14 @@ declare namespace Components {
|
|
|
493
476
|
* Total amount after cashback is applied as a string with all the decimal places.
|
|
494
477
|
*/
|
|
495
478
|
after_cashback_amount_total_decimal?: string;
|
|
479
|
+
/**
|
|
480
|
+
* The discount amount.
|
|
481
|
+
*/
|
|
482
|
+
discount_amount?: number;
|
|
483
|
+
/**
|
|
484
|
+
* The discount amount as a string with all the decimal places.
|
|
485
|
+
*/
|
|
486
|
+
discount_amount_decimal?: string;
|
|
496
487
|
/**
|
|
497
488
|
* The discount percentage, if the applied coupon had a percentage type.
|
|
498
489
|
*/
|
|
@@ -1167,14 +1158,6 @@ declare namespace Components {
|
|
|
1167
1158
|
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
1168
1159
|
*/
|
|
1169
1160
|
amount_total_decimal?: string;
|
|
1170
|
-
/**
|
|
1171
|
-
* The discount amount.
|
|
1172
|
-
*/
|
|
1173
|
-
discount_amount?: number;
|
|
1174
|
-
/**
|
|
1175
|
-
* The discount amount as a string with all the decimal places.
|
|
1176
|
-
*/
|
|
1177
|
-
discount_amount_decimal?: string;
|
|
1178
1161
|
/**
|
|
1179
1162
|
* The cashback amount.
|
|
1180
1163
|
*/
|
|
@@ -1183,10 +1166,7 @@ declare namespace Components {
|
|
|
1183
1166
|
* The cashback amount as a string with all the decimal places.
|
|
1184
1167
|
*/
|
|
1185
1168
|
cashback_amount_decimal?: string;
|
|
1186
|
-
|
|
1187
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
1188
|
-
*/
|
|
1189
|
-
cashback_period?: "0" | "12";
|
|
1169
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
1190
1170
|
/**
|
|
1191
1171
|
* Total amount after cashback is applied.
|
|
1192
1172
|
*/
|
|
@@ -1195,6 +1175,14 @@ declare namespace Components {
|
|
|
1195
1175
|
* Total amount after cashback is applied as a string with all the decimal places.
|
|
1196
1176
|
*/
|
|
1197
1177
|
after_cashback_amount_total_decimal?: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* The discount amount.
|
|
1180
|
+
*/
|
|
1181
|
+
discount_amount?: number;
|
|
1182
|
+
/**
|
|
1183
|
+
* The discount amount as a string with all the decimal places.
|
|
1184
|
+
*/
|
|
1185
|
+
discount_amount_decimal?: string;
|
|
1198
1186
|
/**
|
|
1199
1187
|
* The discount percentage, if the applied coupon had a percentage type.
|
|
1200
1188
|
*/
|
|
@@ -1288,15 +1276,35 @@ declare namespace Components {
|
|
|
1288
1276
|
* An amount associated with a specific cashback period.
|
|
1289
1277
|
*/
|
|
1290
1278
|
export interface CashbackAmount {
|
|
1291
|
-
|
|
1292
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
1293
|
-
*/
|
|
1294
|
-
cashback_period: "0" | "12";
|
|
1279
|
+
cashback_period: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
1295
1280
|
/**
|
|
1296
1281
|
* The sum of all cashbacks for a specific cashback period
|
|
1297
1282
|
*/
|
|
1298
1283
|
amount_total: number;
|
|
1299
1284
|
}
|
|
1285
|
+
export interface CashbackAmounts {
|
|
1286
|
+
/**
|
|
1287
|
+
* The cashback amount.
|
|
1288
|
+
*/
|
|
1289
|
+
cashback_amount?: number;
|
|
1290
|
+
/**
|
|
1291
|
+
* The cashback amount as a string with all the decimal places.
|
|
1292
|
+
*/
|
|
1293
|
+
cashback_amount_decimal?: string;
|
|
1294
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
1295
|
+
/**
|
|
1296
|
+
* Total amount after cashback is applied.
|
|
1297
|
+
*/
|
|
1298
|
+
after_cashback_amount_total?: number;
|
|
1299
|
+
/**
|
|
1300
|
+
* Total amount after cashback is applied as a string with all the decimal places.
|
|
1301
|
+
*/
|
|
1302
|
+
after_cashback_amount_total_decimal?: string;
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
1306
|
+
*/
|
|
1307
|
+
export type CashbackPeriod = "0" | "12";
|
|
1300
1308
|
/**
|
|
1301
1309
|
* A catalog search payload
|
|
1302
1310
|
* example:
|
|
@@ -1442,14 +1450,6 @@ declare namespace Components {
|
|
|
1442
1450
|
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
1443
1451
|
*/
|
|
1444
1452
|
amount_total_decimal?: string;
|
|
1445
|
-
/**
|
|
1446
|
-
* The discount amount.
|
|
1447
|
-
*/
|
|
1448
|
-
discount_amount?: number;
|
|
1449
|
-
/**
|
|
1450
|
-
* The discount amount as a string with all the decimal places.
|
|
1451
|
-
*/
|
|
1452
|
-
discount_amount_decimal?: string;
|
|
1453
1453
|
/**
|
|
1454
1454
|
* The cashback amount.
|
|
1455
1455
|
*/
|
|
@@ -1458,10 +1458,7 @@ declare namespace Components {
|
|
|
1458
1458
|
* The cashback amount as a string with all the decimal places.
|
|
1459
1459
|
*/
|
|
1460
1460
|
cashback_amount_decimal?: string;
|
|
1461
|
-
|
|
1462
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
1463
|
-
*/
|
|
1464
|
-
cashback_period?: "0" | "12";
|
|
1461
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
1465
1462
|
/**
|
|
1466
1463
|
* Total amount after cashback is applied.
|
|
1467
1464
|
*/
|
|
@@ -1470,6 +1467,14 @@ declare namespace Components {
|
|
|
1470
1467
|
* Total amount after cashback is applied as a string with all the decimal places.
|
|
1471
1468
|
*/
|
|
1472
1469
|
after_cashback_amount_total_decimal?: string;
|
|
1470
|
+
/**
|
|
1471
|
+
* The discount amount.
|
|
1472
|
+
*/
|
|
1473
|
+
discount_amount?: number;
|
|
1474
|
+
/**
|
|
1475
|
+
* The discount amount as a string with all the decimal places.
|
|
1476
|
+
*/
|
|
1477
|
+
discount_amount_decimal?: string;
|
|
1473
1478
|
/**
|
|
1474
1479
|
* The discount percentage, if the applied coupon had a percentage type.
|
|
1475
1480
|
*/
|
|
@@ -1751,9 +1756,82 @@ declare namespace Components {
|
|
|
1751
1756
|
*/
|
|
1752
1757
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
1753
1758
|
/**
|
|
1754
|
-
* The coupons applicable to the price item
|
|
1759
|
+
* The coupons applicable to the composite price item + related (cashback) amounts
|
|
1755
1760
|
*/
|
|
1756
|
-
_coupons?: (
|
|
1761
|
+
_coupons?: ({
|
|
1762
|
+
[name: string]: any;
|
|
1763
|
+
_id: EntityId /* uuid */;
|
|
1764
|
+
/**
|
|
1765
|
+
* The auto-generated title for the title
|
|
1766
|
+
*/
|
|
1767
|
+
_title: string;
|
|
1768
|
+
/**
|
|
1769
|
+
* Organization Id the entity belongs to
|
|
1770
|
+
*/
|
|
1771
|
+
_org: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* The schema of the entity, for coupons it is always `coupon`
|
|
1774
|
+
*/
|
|
1775
|
+
_schema: "coupon";
|
|
1776
|
+
_tags?: string[];
|
|
1777
|
+
/**
|
|
1778
|
+
* The creation date for the opportunity
|
|
1779
|
+
*/
|
|
1780
|
+
_created_at: string; // date-time
|
|
1781
|
+
/**
|
|
1782
|
+
* The date the coupon was last updated
|
|
1783
|
+
*/
|
|
1784
|
+
_updated_at: string; // date-time
|
|
1785
|
+
name: string | null;
|
|
1786
|
+
description?: string | null;
|
|
1787
|
+
type: "fixed" | "percentage";
|
|
1788
|
+
category: "discount" | "cashback";
|
|
1789
|
+
/**
|
|
1790
|
+
* Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
|
|
1791
|
+
*/
|
|
1792
|
+
percentage_value?: string | null;
|
|
1793
|
+
/**
|
|
1794
|
+
* Use if type is set to fixed. The fixed amount in cents to be discounted, represented as a whole integer.
|
|
1795
|
+
*/
|
|
1796
|
+
fixed_value?: number;
|
|
1797
|
+
/**
|
|
1798
|
+
* Use if type is set to fixed. The unit amount in cents to be discounted, represented as a decimal string with at most 12 decimal places.
|
|
1799
|
+
*/
|
|
1800
|
+
fixed_value_decimal?: string;
|
|
1801
|
+
/**
|
|
1802
|
+
* Use if type is set to fixed. Three-letter ISO currency code, in lowercase.
|
|
1803
|
+
*/
|
|
1804
|
+
fixed_value_currency?: /* Use if type is set to fixed. Three-letter ISO currency code, in lowercase. */ /**
|
|
1805
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
1806
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
1807
|
+
*
|
|
1808
|
+
* example:
|
|
1809
|
+
* EUR
|
|
1810
|
+
*/
|
|
1811
|
+
Currency;
|
|
1812
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
1813
|
+
active?: boolean;
|
|
1814
|
+
/**
|
|
1815
|
+
* Whether the coupon requires a promo code to be applied
|
|
1816
|
+
*/
|
|
1817
|
+
requires_promo_code?: boolean;
|
|
1818
|
+
/**
|
|
1819
|
+
* The cashback amount.
|
|
1820
|
+
*/
|
|
1821
|
+
cashback_amount?: number;
|
|
1822
|
+
/**
|
|
1823
|
+
* The cashback amount as a string with all the decimal places.
|
|
1824
|
+
*/
|
|
1825
|
+
cashback_amount_decimal?: string;
|
|
1826
|
+
/**
|
|
1827
|
+
* Total amount after cashback is applied.
|
|
1828
|
+
*/
|
|
1829
|
+
after_cashback_amount_total?: number;
|
|
1830
|
+
/**
|
|
1831
|
+
* Total amount after cashback is applied as a string with all the decimal places.
|
|
1832
|
+
*/
|
|
1833
|
+
after_cashback_amount_total_decimal?: string;
|
|
1834
|
+
} & /* The shared properties for the coupon entity and coupon item entity */ (/* The shared properties for the coupon entity and coupon item entity */ CouponItem))[];
|
|
1757
1835
|
/**
|
|
1758
1836
|
* When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'.
|
|
1759
1837
|
*/
|
|
@@ -2254,10 +2332,7 @@ declare namespace Components {
|
|
|
2254
2332
|
* EUR
|
|
2255
2333
|
*/
|
|
2256
2334
|
Currency;
|
|
2257
|
-
|
|
2258
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
2259
|
-
*/
|
|
2260
|
-
cashback_period?: "0" | "12";
|
|
2335
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
2261
2336
|
active?: boolean;
|
|
2262
2337
|
/**
|
|
2263
2338
|
* Whether the coupon requires a promo code to be applied
|
|
@@ -2344,10 +2419,7 @@ declare namespace Components {
|
|
|
2344
2419
|
* EUR
|
|
2345
2420
|
*/
|
|
2346
2421
|
Currency;
|
|
2347
|
-
|
|
2348
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
2349
|
-
*/
|
|
2350
|
-
cashback_period?: "0" | "12";
|
|
2422
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
2351
2423
|
active?: boolean;
|
|
2352
2424
|
/**
|
|
2353
2425
|
* Whether the coupon requires a promo code to be applied
|
|
@@ -2412,10 +2484,7 @@ declare namespace Components {
|
|
|
2412
2484
|
* EUR
|
|
2413
2485
|
*/
|
|
2414
2486
|
Currency;
|
|
2415
|
-
|
|
2416
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
2417
|
-
*/
|
|
2418
|
-
cashback_period?: "0" | "12";
|
|
2487
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
2419
2488
|
active?: boolean;
|
|
2420
2489
|
/**
|
|
2421
2490
|
* Whether the coupon requires a promo code to be applied
|
|
@@ -2454,6 +2523,28 @@ declare namespace Components {
|
|
|
2454
2523
|
email?: string;
|
|
2455
2524
|
phone?: string;
|
|
2456
2525
|
}
|
|
2526
|
+
export interface DiscountAmounts {
|
|
2527
|
+
/**
|
|
2528
|
+
* The discount amount.
|
|
2529
|
+
*/
|
|
2530
|
+
discount_amount?: number;
|
|
2531
|
+
/**
|
|
2532
|
+
* The discount amount as a string with all the decimal places.
|
|
2533
|
+
*/
|
|
2534
|
+
discount_amount_decimal?: string;
|
|
2535
|
+
/**
|
|
2536
|
+
* The discount percentage, if the applied coupon had a percentage type.
|
|
2537
|
+
*/
|
|
2538
|
+
discount_percentage?: number;
|
|
2539
|
+
/**
|
|
2540
|
+
* Total amount before discount is applied.
|
|
2541
|
+
*/
|
|
2542
|
+
before_discount_amount_total?: number;
|
|
2543
|
+
/**
|
|
2544
|
+
* Total amount before discount is applied as a string with all the decimal places.
|
|
2545
|
+
*/
|
|
2546
|
+
before_discount_amount_total_decimal?: string;
|
|
2547
|
+
}
|
|
2457
2548
|
/**
|
|
2458
2549
|
* The interval of the tariff if a spot market price is used as base.
|
|
2459
2550
|
*/
|
|
@@ -3630,6 +3721,24 @@ declare namespace Components {
|
|
|
3630
3721
|
*/
|
|
3631
3722
|
_tags?: string[];
|
|
3632
3723
|
}
|
|
3724
|
+
export interface PriceAmounts {
|
|
3725
|
+
/**
|
|
3726
|
+
* Total of all items before (discounts or) taxes are applied.
|
|
3727
|
+
*/
|
|
3728
|
+
amount_subtotal?: number;
|
|
3729
|
+
/**
|
|
3730
|
+
* Total of all items before (discounts or) taxes are applied, as a string with all the decimal places.
|
|
3731
|
+
*/
|
|
3732
|
+
amount_subtotal_decimal?: string;
|
|
3733
|
+
/**
|
|
3734
|
+
* Total of all items after (discounts and) taxes are applied.
|
|
3735
|
+
*/
|
|
3736
|
+
amount_total?: number;
|
|
3737
|
+
/**
|
|
3738
|
+
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
3739
|
+
*/
|
|
3740
|
+
amount_total_decimal?: string;
|
|
3741
|
+
}
|
|
3633
3742
|
export interface PriceComponentRelation {
|
|
3634
3743
|
/**
|
|
3635
3744
|
* The id of the price component
|
|
@@ -3816,14 +3925,6 @@ declare namespace Components {
|
|
|
3816
3925
|
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
3817
3926
|
*/
|
|
3818
3927
|
amount_total_decimal?: string;
|
|
3819
|
-
/**
|
|
3820
|
-
* The discount amount.
|
|
3821
|
-
*/
|
|
3822
|
-
discount_amount?: number;
|
|
3823
|
-
/**
|
|
3824
|
-
* The discount amount as a string with all the decimal places.
|
|
3825
|
-
*/
|
|
3826
|
-
discount_amount_decimal?: string;
|
|
3827
3928
|
/**
|
|
3828
3929
|
* The cashback amount.
|
|
3829
3930
|
*/
|
|
@@ -3832,10 +3933,7 @@ declare namespace Components {
|
|
|
3832
3933
|
* The cashback amount as a string with all the decimal places.
|
|
3833
3934
|
*/
|
|
3834
3935
|
cashback_amount_decimal?: string;
|
|
3835
|
-
|
|
3836
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
3837
|
-
*/
|
|
3838
|
-
cashback_period?: "0" | "12";
|
|
3936
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
3839
3937
|
/**
|
|
3840
3938
|
* Total amount after cashback is applied.
|
|
3841
3939
|
*/
|
|
@@ -3844,6 +3942,14 @@ declare namespace Components {
|
|
|
3844
3942
|
* Total amount after cashback is applied as a string with all the decimal places.
|
|
3845
3943
|
*/
|
|
3846
3944
|
after_cashback_amount_total_decimal?: string;
|
|
3945
|
+
/**
|
|
3946
|
+
* The discount amount.
|
|
3947
|
+
*/
|
|
3948
|
+
discount_amount?: number;
|
|
3949
|
+
/**
|
|
3950
|
+
* The discount amount as a string with all the decimal places.
|
|
3951
|
+
*/
|
|
3952
|
+
discount_amount_decimal?: string;
|
|
3847
3953
|
/**
|
|
3848
3954
|
* The discount percentage, if the applied coupon had a percentage type.
|
|
3849
3955
|
*/
|
|
@@ -4873,6 +4979,10 @@ declare namespace Components {
|
|
|
4873
4979
|
*/
|
|
4874
4980
|
price_id?: string;
|
|
4875
4981
|
};
|
|
4982
|
+
/**
|
|
4983
|
+
* The contract id to be used as source for the recommendation
|
|
4984
|
+
*/
|
|
4985
|
+
contract_id?: string;
|
|
4876
4986
|
}
|
|
4877
4987
|
/**
|
|
4878
4988
|
* example:
|
|
@@ -4944,14 +5054,6 @@ declare namespace Components {
|
|
|
4944
5054
|
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
4945
5055
|
*/
|
|
4946
5056
|
amount_total_decimal: string;
|
|
4947
|
-
/**
|
|
4948
|
-
* The discount amount.
|
|
4949
|
-
*/
|
|
4950
|
-
discount_amount?: number;
|
|
4951
|
-
/**
|
|
4952
|
-
* The discount amount as a string with all the decimal places.
|
|
4953
|
-
*/
|
|
4954
|
-
discount_amount_decimal?: string;
|
|
4955
5057
|
/**
|
|
4956
5058
|
* The cashback amount.
|
|
4957
5059
|
*/
|
|
@@ -4960,10 +5062,7 @@ declare namespace Components {
|
|
|
4960
5062
|
* The cashback amount as a string with all the decimal places.
|
|
4961
5063
|
*/
|
|
4962
5064
|
cashback_amount_decimal?: string;
|
|
4963
|
-
|
|
4964
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
4965
|
-
*/
|
|
4966
|
-
cashback_period?: "0" | "12";
|
|
5065
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
4967
5066
|
/**
|
|
4968
5067
|
* Total amount after cashback is applied.
|
|
4969
5068
|
*/
|
|
@@ -4972,6 +5071,14 @@ declare namespace Components {
|
|
|
4972
5071
|
* Total amount after cashback is applied as a string with all the decimal places.
|
|
4973
5072
|
*/
|
|
4974
5073
|
after_cashback_amount_total_decimal?: string;
|
|
5074
|
+
/**
|
|
5075
|
+
* The discount amount.
|
|
5076
|
+
*/
|
|
5077
|
+
discount_amount?: number;
|
|
5078
|
+
/**
|
|
5079
|
+
* The discount amount as a string with all the decimal places.
|
|
5080
|
+
*/
|
|
5081
|
+
discount_amount_decimal?: string;
|
|
4975
5082
|
/**
|
|
4976
5083
|
* The discount percentage, if the applied coupon had a percentage type.
|
|
4977
5084
|
*/
|
|
@@ -5037,14 +5144,6 @@ declare namespace Components {
|
|
|
5037
5144
|
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
5038
5145
|
*/
|
|
5039
5146
|
amount_total_decimal: string;
|
|
5040
|
-
/**
|
|
5041
|
-
* The discount amount.
|
|
5042
|
-
*/
|
|
5043
|
-
discount_amount?: number;
|
|
5044
|
-
/**
|
|
5045
|
-
* The discount amount as a string with all the decimal places.
|
|
5046
|
-
*/
|
|
5047
|
-
discount_amount_decimal?: string;
|
|
5048
5147
|
/**
|
|
5049
5148
|
* The cashback amount.
|
|
5050
5149
|
*/
|
|
@@ -5053,10 +5152,7 @@ declare namespace Components {
|
|
|
5053
5152
|
* The cashback amount as a string with all the decimal places.
|
|
5054
5153
|
*/
|
|
5055
5154
|
cashback_amount_decimal?: string;
|
|
5056
|
-
|
|
5057
|
-
* The cashback period, for now it's limited to either 0 months or 12 months
|
|
5058
|
-
*/
|
|
5059
|
-
cashback_period?: "0" | "12";
|
|
5155
|
+
cashback_period?: /* The cashback period, for now it's limited to either 0 months or 12 months */ CashbackPeriod;
|
|
5060
5156
|
/**
|
|
5061
5157
|
* Total amount after cashback is applied.
|
|
5062
5158
|
*/
|
|
@@ -5065,6 +5161,14 @@ declare namespace Components {
|
|
|
5065
5161
|
* Total amount after cashback is applied as a string with all the decimal places.
|
|
5066
5162
|
*/
|
|
5067
5163
|
after_cashback_amount_total_decimal?: string;
|
|
5164
|
+
/**
|
|
5165
|
+
* The discount amount.
|
|
5166
|
+
*/
|
|
5167
|
+
discount_amount?: number;
|
|
5168
|
+
/**
|
|
5169
|
+
* The discount amount as a string with all the decimal places.
|
|
5170
|
+
*/
|
|
5171
|
+
discount_amount_decimal?: string;
|
|
5068
5172
|
/**
|
|
5069
5173
|
* The discount percentage, if the applied coupon had a percentage type.
|
|
5070
5174
|
*/
|
|
@@ -6276,6 +6380,8 @@ export type BillingPeriod = Components.Schemas.BillingPeriod;
|
|
|
6276
6380
|
export type Cart = Components.Schemas.Cart;
|
|
6277
6381
|
export type CartDto = Components.Schemas.CartDto;
|
|
6278
6382
|
export type CashbackAmount = Components.Schemas.CashbackAmount;
|
|
6383
|
+
export type CashbackAmounts = Components.Schemas.CashbackAmounts;
|
|
6384
|
+
export type CashbackPeriod = Components.Schemas.CashbackPeriod;
|
|
6279
6385
|
export type CatalogSearch = Components.Schemas.CatalogSearch;
|
|
6280
6386
|
export type CatalogSearchResult = Components.Schemas.CatalogSearchResult;
|
|
6281
6387
|
export type CheckoutCart = Components.Schemas.CheckoutCart;
|
|
@@ -6298,6 +6404,7 @@ export type CouponItem = Components.Schemas.CouponItem;
|
|
|
6298
6404
|
export type CouponWithoutPromoCodes = Components.Schemas.CouponWithoutPromoCodes;
|
|
6299
6405
|
export type Currency = Components.Schemas.Currency;
|
|
6300
6406
|
export type Customer = Components.Schemas.Customer;
|
|
6407
|
+
export type DiscountAmounts = Components.Schemas.DiscountAmounts;
|
|
6301
6408
|
export type DynamicTariffInterval = Components.Schemas.DynamicTariffInterval;
|
|
6302
6409
|
export type DynamicTariffMode = Components.Schemas.DynamicTariffMode;
|
|
6303
6410
|
export type EntityId = Components.Schemas.EntityId;
|
|
@@ -6334,6 +6441,7 @@ export type OrderStatus = Components.Schemas.OrderStatus;
|
|
|
6334
6441
|
export type PaymentMethod = Components.Schemas.PaymentMethod;
|
|
6335
6442
|
export type PowerMeterType = Components.Schemas.PowerMeterType;
|
|
6336
6443
|
export type Price = Components.Schemas.Price;
|
|
6444
|
+
export type PriceAmounts = Components.Schemas.PriceAmounts;
|
|
6337
6445
|
export type PriceComponentRelation = Components.Schemas.PriceComponentRelation;
|
|
6338
6446
|
export type PriceConditions = Components.Schemas.PriceConditions;
|
|
6339
6447
|
export type PriceDynamicTariff = Components.Schemas.PriceDynamicTariff;
|
package/dist/openapi.json
CHANGED
|
@@ -2251,13 +2251,18 @@
|
|
|
2251
2251
|
]
|
|
2252
2252
|
}
|
|
2253
2253
|
},
|
|
2254
|
-
"Search product recommendations source product and price": {
|
|
2254
|
+
"Search product recommendations by source product and price": {
|
|
2255
2255
|
"value": {
|
|
2256
2256
|
"catalog_item": {
|
|
2257
2257
|
"product_id": "aa1ebf85-f36e-46ff-978c-ed948c646f12",
|
|
2258
2258
|
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
|
+
},
|
|
2262
|
+
"Search product recommendations by contract": {
|
|
2263
|
+
"value": {
|
|
2264
|
+
"contract_id": "98ffca40-46ab-4288-af10-a478893b2aa2"
|
|
2265
|
+
}
|
|
2261
2266
|
}
|
|
2262
2267
|
}
|
|
2263
2268
|
}
|
|
@@ -5062,6 +5067,21 @@
|
|
|
5062
5067
|
},
|
|
5063
5068
|
"total_details": {
|
|
5064
5069
|
"$ref": "#/components/schemas/TotalDetails"
|
|
5070
|
+
},
|
|
5071
|
+
"_coupons": {
|
|
5072
|
+
"type": "array",
|
|
5073
|
+
"description": "The coupons applicable to the composite price item + related (cashback) amounts",
|
|
5074
|
+
"readOnly": true,
|
|
5075
|
+
"items": {
|
|
5076
|
+
"allOf": [
|
|
5077
|
+
{
|
|
5078
|
+
"$ref": "#/components/schemas/CouponItem"
|
|
5079
|
+
},
|
|
5080
|
+
{
|
|
5081
|
+
"$ref": "#/components/schemas/CashbackAmounts"
|
|
5082
|
+
}
|
|
5083
|
+
]
|
|
5084
|
+
}
|
|
5065
5085
|
}
|
|
5066
5086
|
}
|
|
5067
5087
|
},
|
|
@@ -5255,35 +5275,9 @@
|
|
|
5255
5275
|
}
|
|
5256
5276
|
}
|
|
5257
5277
|
},
|
|
5258
|
-
"
|
|
5278
|
+
"CashbackAmounts": {
|
|
5259
5279
|
"type": "object",
|
|
5260
5280
|
"properties": {
|
|
5261
|
-
"amount_subtotal": {
|
|
5262
|
-
"type": "integer",
|
|
5263
|
-
"description": "Total of all items before (discounts or) taxes are applied."
|
|
5264
|
-
},
|
|
5265
|
-
"amount_subtotal_decimal": {
|
|
5266
|
-
"type": "string",
|
|
5267
|
-
"description": "Total of all items before (discounts or) taxes are applied, as a string with all the decimal places."
|
|
5268
|
-
},
|
|
5269
|
-
"amount_total": {
|
|
5270
|
-
"type": "integer",
|
|
5271
|
-
"description": "Total of all items after (discounts and) taxes are applied."
|
|
5272
|
-
},
|
|
5273
|
-
"amount_total_decimal": {
|
|
5274
|
-
"type": "string",
|
|
5275
|
-
"description": "Total of all items after (discounts and) taxes are applied, as a string with all the decimal places."
|
|
5276
|
-
},
|
|
5277
|
-
"discount_amount": {
|
|
5278
|
-
"type": "integer",
|
|
5279
|
-
"description": "The discount amount.",
|
|
5280
|
-
"readOnly": true
|
|
5281
|
-
},
|
|
5282
|
-
"discount_amount_decimal": {
|
|
5283
|
-
"type": "string",
|
|
5284
|
-
"description": "The discount amount as a string with all the decimal places.",
|
|
5285
|
-
"readOnly": true
|
|
5286
|
-
},
|
|
5287
5281
|
"cashback_amount": {
|
|
5288
5282
|
"type": "integer",
|
|
5289
5283
|
"description": "The cashback amount.",
|
|
@@ -5295,13 +5289,7 @@
|
|
|
5295
5289
|
"readOnly": true
|
|
5296
5290
|
},
|
|
5297
5291
|
"cashback_period": {
|
|
5298
|
-
"
|
|
5299
|
-
"description": "The cashback period, for now it's limited to either 0 months or 12 months",
|
|
5300
|
-
"enum": [
|
|
5301
|
-
"0",
|
|
5302
|
-
"12"
|
|
5303
|
-
],
|
|
5304
|
-
"nullable": true
|
|
5292
|
+
"$ref": "#/components/schemas/CashbackPeriod"
|
|
5305
5293
|
},
|
|
5306
5294
|
"after_cashback_amount_total": {
|
|
5307
5295
|
"type": "integer",
|
|
@@ -5312,6 +5300,21 @@
|
|
|
5312
5300
|
"type": "string",
|
|
5313
5301
|
"description": "Total amount after cashback is applied as a string with all the decimal places.",
|
|
5314
5302
|
"readOnly": true
|
|
5303
|
+
}
|
|
5304
|
+
}
|
|
5305
|
+
},
|
|
5306
|
+
"DiscountAmounts": {
|
|
5307
|
+
"type": "object",
|
|
5308
|
+
"properties": {
|
|
5309
|
+
"discount_amount": {
|
|
5310
|
+
"type": "integer",
|
|
5311
|
+
"description": "The discount amount.",
|
|
5312
|
+
"readOnly": true
|
|
5313
|
+
},
|
|
5314
|
+
"discount_amount_decimal": {
|
|
5315
|
+
"type": "string",
|
|
5316
|
+
"description": "The discount amount as a string with all the decimal places.",
|
|
5317
|
+
"readOnly": true
|
|
5315
5318
|
},
|
|
5316
5319
|
"discount_percentage": {
|
|
5317
5320
|
"type": "integer",
|
|
@@ -5330,6 +5333,40 @@
|
|
|
5330
5333
|
}
|
|
5331
5334
|
}
|
|
5332
5335
|
},
|
|
5336
|
+
"PriceAmounts": {
|
|
5337
|
+
"type": "object",
|
|
5338
|
+
"properties": {
|
|
5339
|
+
"amount_subtotal": {
|
|
5340
|
+
"type": "integer",
|
|
5341
|
+
"description": "Total of all items before (discounts or) taxes are applied."
|
|
5342
|
+
},
|
|
5343
|
+
"amount_subtotal_decimal": {
|
|
5344
|
+
"type": "string",
|
|
5345
|
+
"description": "Total of all items before (discounts or) taxes are applied, as a string with all the decimal places."
|
|
5346
|
+
},
|
|
5347
|
+
"amount_total": {
|
|
5348
|
+
"type": "integer",
|
|
5349
|
+
"description": "Total of all items after (discounts and) taxes are applied."
|
|
5350
|
+
},
|
|
5351
|
+
"amount_total_decimal": {
|
|
5352
|
+
"type": "string",
|
|
5353
|
+
"description": "Total of all items after (discounts and) taxes are applied, as a string with all the decimal places."
|
|
5354
|
+
}
|
|
5355
|
+
}
|
|
5356
|
+
},
|
|
5357
|
+
"Amounts": {
|
|
5358
|
+
"allOf": [
|
|
5359
|
+
{
|
|
5360
|
+
"$ref": "#/components/schemas/PriceAmounts"
|
|
5361
|
+
},
|
|
5362
|
+
{
|
|
5363
|
+
"$ref": "#/components/schemas/CashbackAmounts"
|
|
5364
|
+
},
|
|
5365
|
+
{
|
|
5366
|
+
"$ref": "#/components/schemas/DiscountAmounts"
|
|
5367
|
+
}
|
|
5368
|
+
]
|
|
5369
|
+
},
|
|
5333
5370
|
"PriceItem": {
|
|
5334
5371
|
"allOf": [
|
|
5335
5372
|
{
|
|
@@ -5494,13 +5531,7 @@
|
|
|
5494
5531
|
"description": "An amount associated with a specific cashback period.",
|
|
5495
5532
|
"properties": {
|
|
5496
5533
|
"cashback_period": {
|
|
5497
|
-
"
|
|
5498
|
-
"description": "The cashback period, for now it's limited to either 0 months or 12 months",
|
|
5499
|
-
"enum": [
|
|
5500
|
-
"0",
|
|
5501
|
-
"12"
|
|
5502
|
-
],
|
|
5503
|
-
"nullable": true
|
|
5534
|
+
"$ref": "#/components/schemas/CashbackPeriod"
|
|
5504
5535
|
},
|
|
5505
5536
|
"amount_total": {
|
|
5506
5537
|
"type": "integer",
|
|
@@ -5704,6 +5735,15 @@
|
|
|
5704
5735
|
"yearly"
|
|
5705
5736
|
]
|
|
5706
5737
|
},
|
|
5738
|
+
"CashbackPeriod": {
|
|
5739
|
+
"type": "string",
|
|
5740
|
+
"description": "The cashback period, for now it's limited to either 0 months or 12 months",
|
|
5741
|
+
"enum": [
|
|
5742
|
+
"0",
|
|
5743
|
+
"12"
|
|
5744
|
+
],
|
|
5745
|
+
"nullable": true
|
|
5746
|
+
},
|
|
5707
5747
|
"SalesTax": {
|
|
5708
5748
|
"type": "string",
|
|
5709
5749
|
"enum": [
|
|
@@ -6208,13 +6248,7 @@
|
|
|
6208
6248
|
]
|
|
6209
6249
|
},
|
|
6210
6250
|
"cashback_period": {
|
|
6211
|
-
"
|
|
6212
|
-
"description": "The cashback period, for now it's limited to either 0 months or 12 months",
|
|
6213
|
-
"enum": [
|
|
6214
|
-
"0",
|
|
6215
|
-
"12"
|
|
6216
|
-
],
|
|
6217
|
-
"nullable": true
|
|
6251
|
+
"$ref": "#/components/schemas/CashbackPeriod"
|
|
6218
6252
|
},
|
|
6219
6253
|
"active": {
|
|
6220
6254
|
"type": "boolean"
|
|
@@ -6778,6 +6812,10 @@
|
|
|
6778
6812
|
"description": "Product id"
|
|
6779
6813
|
}
|
|
6780
6814
|
}
|
|
6815
|
+
},
|
|
6816
|
+
"contract_id": {
|
|
6817
|
+
"type": "string",
|
|
6818
|
+
"description": "The contract id to be used as source for the recommendation"
|
|
6781
6819
|
}
|
|
6782
6820
|
}
|
|
6783
6821
|
},
|