@epilot/pricing-client 3.47.9-alpha.7 → 3.47.9

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 CHANGED
@@ -254,36 +254,111 @@ declare namespace Components {
254
254
  _meta?: /* Signature meta data payload */ SignatureMeta;
255
255
  }
256
256
  /**
257
- * The coupon configuration
257
+ * The common properties for a composite price entity, without the price components
258
258
  * example:
259
259
  * {
260
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
261
- * "_schema": "coupon",
262
- * "_org": "org_12345",
263
- * "_created_at": "2024-01-15T10:00:00.000Z",
264
- * "_updated_at": "2024-01-20T12:00:00.000Z",
265
- * "_title": "Sample Coupon",
266
- * "name": "Sample Coupon",
267
- * "type": "fixed",
268
- * "fixed_value": 555,
269
- * "fixed_value_currency": "USD",
270
- * "fixed_value_decimal": "5.55",
271
- * "active": true,
272
- * "prices": {
273
- * "$relation": [
274
- * {
275
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
276
- * "_tags": [
277
- * "discount",
278
- * "special"
279
- * ],
280
- * "_schema": "price"
281
- * }
282
- * ]
283
- * }
260
+ * "$ref": "#/components/examples/composite-price"
284
261
  * }
285
262
  */
286
- export interface BaseCoupon {
263
+ export interface BaseCompositePrice {
264
+ [name: string]: any;
265
+ /**
266
+ * The billing period duration
267
+ */
268
+ billing_duration_amount?: number;
269
+ /**
270
+ * The billing period duration unit
271
+ */
272
+ billing_duration_unit?: "weeks" | "months" | "years";
273
+ /**
274
+ * The notice period duration
275
+ */
276
+ notice_time_amount?: number;
277
+ /**
278
+ * The notice period duration unit
279
+ */
280
+ notice_time_unit?: "weeks" | "months" | "years";
281
+ /**
282
+ * The termination period duration
283
+ */
284
+ termination_time_amount?: number;
285
+ /**
286
+ * The termination period duration unit
287
+ */
288
+ termination_time_unit?: "weeks" | "months" | "years";
289
+ /**
290
+ * The renewal period duration
291
+ */
292
+ renewal_duration_amount?: number;
293
+ /**
294
+ * The renewal period duration unit
295
+ */
296
+ renewal_duration_unit?: "weeks" | "months" | "years";
297
+ /**
298
+ * Whether the price can be used for new purchases.
299
+ */
300
+ active?: boolean;
301
+ /**
302
+ * A brief description of the price.
303
+ */
304
+ description?: string;
305
+ /**
306
+ * A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price.
307
+ */
308
+ price_components?: /* A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price. */ /**
309
+ * The price entity schema for simple pricing
310
+ * example:
311
+ * {
312
+ * "$ref": "#/components/examples/price"
313
+ * }
314
+ */
315
+ Price[] | {
316
+ $relation?: PriceComponentRelation[];
317
+ };
318
+ /**
319
+ * Three-letter ISO currency code, in lowercase.
320
+ */
321
+ unit_amount_currency?: /* Three-letter ISO currency code, in lowercase. */ /**
322
+ * Three-letter ISO currency code, in lowercase. Must be a supported currency.
323
+ * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
324
+ *
325
+ * example:
326
+ * EUR
327
+ */
328
+ Currency;
329
+ /**
330
+ * The flag for prices that contain price components.
331
+ */
332
+ is_composite_price: true;
333
+ /**
334
+ * The price creation date
335
+ */
336
+ _created_at?: string;
337
+ /**
338
+ * The price id
339
+ */
340
+ _id?: string;
341
+ /**
342
+ * The price autogenerated title
343
+ */
344
+ _title?: string;
345
+ /**
346
+ * The price last update date
347
+ */
348
+ _updated_at?: string;
349
+ /**
350
+ * The organization id the price belongs to
351
+ */
352
+ _org_id?: string;
353
+ /**
354
+ * An arbitrary set of tags attached to the composite price
355
+ */
356
+ _tags?: string[];
357
+ }
358
+ /**
359
+ * The shared properties for the coupon entity and coupon item entity
360
+ */
361
+ export interface BaseCouponCommon {
287
362
  [name: string]: any;
288
363
  _id: EntityId /* uuid */;
289
364
  /**
@@ -309,8 +384,8 @@ declare namespace Components {
309
384
  _updated_at: string; // date-time
310
385
  name: string | null;
311
386
  description?: string | null;
312
- type?: "fixed" | "percentage";
313
- category?: "discount" | "cashback";
387
+ type: "fixed" | "percentage";
388
+ category: "discount" | "cashback";
314
389
  /**
315
390
  * Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
316
391
  */
@@ -343,19 +418,6 @@ declare namespace Components {
343
418
  * Whether the coupon requires a promo code to be applied
344
419
  */
345
420
  requires_promo_code?: boolean;
346
- /**
347
- * The prices associated with the coupon. Will hold price entities if hydrated, relations otherwise.
348
- */
349
- prices?: /* The prices associated with the coupon. Will hold price entities if hydrated, relations otherwise. */ {
350
- $relation?: EntityRelation[];
351
- } | /**
352
- * The price entity schema for simple pricing
353
- * example:
354
- * {
355
- * "$ref": "#/components/examples/price"
356
- * }
357
- */
358
- Price[];
359
421
  }
360
422
  export interface BaseMarketPriceRecord {
361
423
  /**
@@ -702,14 +764,7 @@ declare namespace Components {
702
764
  * "$ref": "#/components/examples/price"
703
765
  * }
704
766
  */
705
- Price | /**
706
- * The price entity schema for dynamic pricing
707
- * example:
708
- * {
709
- * "$ref": "#/components/examples/composite-price"
710
- * }
711
- */
712
- CompositePrice;
767
+ Price | /* The composite price entity */ CompositePrice;
713
768
  /**
714
769
  * The taxes applied to the price item.
715
770
  */
@@ -721,7 +776,7 @@ declare namespace Components {
721
776
  /**
722
777
  * The coupons applicable to the price item
723
778
  */
724
- _coupons?: (CouponItem)[];
779
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
725
780
  /**
726
781
  * 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'.
727
782
  */
@@ -1031,14 +1086,9 @@ declare namespace Components {
1031
1086
  };
1032
1087
  external_fees_mappings?: /**
1033
1088
  * example:
1034
- * [
1035
- * {
1036
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
1037
- * "frequency_unit": "weekly",
1038
- * "amount_total": 1000,
1039
- * "amount_total_decimal": "10.00"
1040
- * }
1041
- * ]
1089
+ * {
1090
+ * "$ref": "#/components/examples/external-fee-mappings/value"
1091
+ * }
1042
1092
  */
1043
1093
  ExternalFeeMappings;
1044
1094
  external_fees_metadata?: ExternalFeeMetadata;
@@ -1059,7 +1109,7 @@ declare namespace Components {
1059
1109
  /**
1060
1110
  * The coupons applicable to the price item
1061
1111
  */
1062
- _coupons?: (CouponItem)[];
1112
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
1063
1113
  }
1064
1114
  export interface BasicAuthCredentials {
1065
1115
  /**
@@ -1317,33 +1367,10 @@ declare namespace Components {
1317
1367
  * }
1318
1368
  */
1319
1369
  Price | /**
1320
- * The coupon configuration
1370
+ * The coupon entity
1321
1371
  * example:
1322
1372
  * {
1323
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
1324
- * "_schema": "coupon",
1325
- * "_org": "org_12345",
1326
- * "_created_at": "2024-01-15T10:00:00.000Z",
1327
- * "_updated_at": "2024-01-20T12:00:00.000Z",
1328
- * "_title": "Sample Coupon",
1329
- * "name": "Sample Coupon",
1330
- * "type": "fixed",
1331
- * "fixed_value": 555,
1332
- * "fixed_value_currency": "USD",
1333
- * "fixed_value_decimal": "5.55",
1334
- * "active": true,
1335
- * "prices": {
1336
- * "$relation": [
1337
- * {
1338
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
1339
- * "_tags": [
1340
- * "discount",
1341
- * "special"
1342
- * ],
1343
- * "_schema": "price"
1344
- * }
1345
- * ]
1346
- * }
1373
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
1347
1374
  * }
1348
1375
  */
1349
1376
  Coupon)[];
@@ -1374,107 +1401,23 @@ declare namespace Components {
1374
1401
  */
1375
1402
  export type CheckoutMode = "create_order" | "create_invoice" | "create_quote";
1376
1403
  /**
1377
- * The price entity schema for dynamic pricing
1404
+ * The composite price entity
1405
+ */
1406
+ export type CompositePrice = /* The composite price entity */ /**
1407
+ * The composite price entity
1378
1408
  * example:
1379
1409
  * {
1380
1410
  * "$ref": "#/components/examples/composite-price"
1381
1411
  * }
1382
1412
  */
1383
- export interface CompositePrice {
1384
- [name: string]: any;
1385
- /**
1386
- * The billing period duration
1387
- */
1388
- billing_duration_amount?: number;
1389
- /**
1390
- * The billing period duration unit
1391
- */
1392
- billing_duration_unit?: "weeks" | "months" | "years";
1393
- /**
1394
- * The notice period duration
1395
- */
1396
- notice_time_amount?: number;
1397
- /**
1398
- * The notice period duration unit
1399
- */
1400
- notice_time_unit?: "weeks" | "months" | "years";
1401
- /**
1402
- * The termination period duration
1403
- */
1404
- termination_time_amount?: number;
1405
- /**
1406
- * The termination period duration unit
1407
- */
1408
- termination_time_unit?: "weeks" | "months" | "years";
1409
- /**
1410
- * The renewal period duration
1411
- */
1412
- renewal_duration_amount?: number;
1413
- /**
1414
- * The renewal period duration unit
1415
- */
1416
- renewal_duration_unit?: "weeks" | "months" | "years";
1417
- /**
1418
- * Whether the price can be used for new purchases.
1419
- */
1420
- active?: boolean;
1421
- /**
1422
- * A brief description of the price.
1423
- */
1424
- description?: string;
1425
- /**
1426
- * A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price.
1427
- */
1428
- price_components?: /* A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price. */ /**
1429
- * The price entity schema for simple pricing
1430
- * example:
1431
- * {
1432
- * "$ref": "#/components/examples/price"
1433
- * }
1434
- */
1435
- Price[] | {
1436
- $relation?: PriceComponentRelation[];
1437
- };
1438
- /**
1439
- * Three-letter ISO currency code, in lowercase.
1440
- */
1441
- unit_amount_currency?: /* Three-letter ISO currency code, in lowercase. */ /**
1442
- * Three-letter ISO currency code, in lowercase. Must be a supported currency.
1443
- * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
1444
- *
1445
- * example:
1446
- * EUR
1447
- */
1448
- Currency;
1449
- /**
1450
- * The flag for prices that contain price components.
1451
- */
1452
- is_composite_price?: boolean;
1453
- /**
1454
- * The price creation date
1455
- */
1456
- _created_at?: string;
1457
- /**
1458
- * The price id
1459
- */
1460
- _id?: string;
1461
- /**
1462
- * The price autogenerated title
1463
- */
1464
- _title?: string;
1465
- /**
1466
- * The price last update date
1467
- */
1468
- _updated_at?: string;
1469
- /**
1470
- * The organization id the price belongs to
1471
- */
1472
- _org_id?: string;
1473
- /**
1474
- * An arbitrary set of tags attached to the composite price
1475
- */
1476
- _tags?: string[];
1477
- }
1413
+ NonHydratedCompositePrice | /**
1414
+ * The composite price entity
1415
+ * example:
1416
+ * {
1417
+ * "$ref": "#/components/examples/composite-price"
1418
+ * }
1419
+ */
1420
+ HydratedCompositePrice;
1478
1421
  /**
1479
1422
  * Represents a composite price input to the pricing library.
1480
1423
  * example:
@@ -1798,14 +1741,7 @@ declare namespace Components {
1798
1741
  * "$ref": "#/components/examples/price"
1799
1742
  * }
1800
1743
  */
1801
- Price | /**
1802
- * The price entity schema for dynamic pricing
1803
- * example:
1804
- * {
1805
- * "$ref": "#/components/examples/composite-price"
1806
- * }
1807
- */
1808
- CompositePrice;
1744
+ Price | /* The composite price entity */ CompositePrice;
1809
1745
  /**
1810
1746
  * The taxes applied to the price item.
1811
1747
  */
@@ -1817,11 +1753,15 @@ declare namespace Components {
1817
1753
  /**
1818
1754
  * The coupons applicable to the price item
1819
1755
  */
1820
- _coupons?: (CouponItem)[];
1756
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
1821
1757
  /**
1822
1758
  * 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'.
1823
1759
  */
1824
1760
  on_request_approved?: boolean;
1761
+ /**
1762
+ * The flag for prices that contain price components.
1763
+ */
1764
+ is_composite_price: true;
1825
1765
  /**
1826
1766
  * Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
1827
1767
  */
@@ -1986,14 +1926,9 @@ declare namespace Components {
1986
1926
  };
1987
1927
  external_fees_mappings?: /**
1988
1928
  * example:
1989
- * [
1990
- * {
1991
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
1992
- * "frequency_unit": "weekly",
1993
- * "amount_total": 1000,
1994
- * "amount_total_decimal": "10.00"
1995
- * }
1996
- * ]
1929
+ * {
1930
+ * "$ref": "#/components/examples/external-fee-mappings/value"
1931
+ * }
1997
1932
  */
1998
1933
  ExternalFeeMappings;
1999
1934
  external_fees_metadata?: ExternalFeeMetadata;
@@ -2014,11 +1949,11 @@ declare namespace Components {
2014
1949
  /**
2015
1950
  * The coupons applicable to the price item
2016
1951
  */
2017
- _coupons?: (CouponItem)[];
1952
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
2018
1953
  /**
2019
1954
  * The flag for prices that contain price components.
2020
1955
  */
2021
- is_composite_price?: true;
1956
+ is_composite_price: true;
2022
1957
  /**
2023
1958
  * Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
2024
1959
  */
@@ -2033,14 +1968,7 @@ declare namespace Components {
2033
1968
  price_component_coupon_ids?: {
2034
1969
  [name: string]: string[];
2035
1970
  };
2036
- _price?: /**
2037
- * The price entity schema for dynamic pricing
2038
- * example:
2039
- * {
2040
- * "$ref": "#/components/examples/composite-price"
2041
- * }
2042
- */
2043
- CompositePrice;
1971
+ _price?: /* The composite price entity */ CompositePrice;
2044
1972
  }
2045
1973
  /**
2046
1974
  * The compute price payload
@@ -2269,33 +2197,10 @@ declare namespace Components {
2269
2197
  }
2270
2198
  export type ConsumptionTypeGetAg = "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
2271
2199
  /**
2272
- * The coupon configuration
2200
+ * The coupon entity
2273
2201
  * example:
2274
2202
  * {
2275
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
2276
- * "_schema": "coupon",
2277
- * "_org": "org_12345",
2278
- * "_created_at": "2024-01-15T10:00:00.000Z",
2279
- * "_updated_at": "2024-01-20T12:00:00.000Z",
2280
- * "_title": "Sample Coupon",
2281
- * "name": "Sample Coupon",
2282
- * "type": "fixed",
2283
- * "fixed_value": 555,
2284
- * "fixed_value_currency": "USD",
2285
- * "fixed_value_decimal": "5.55",
2286
- * "active": true,
2287
- * "prices": {
2288
- * "$relation": [
2289
- * {
2290
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
2291
- * "_tags": [
2292
- * "discount",
2293
- * "special"
2294
- * ],
2295
- * "_schema": "price"
2296
- * }
2297
- * ]
2298
- * }
2203
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
2299
2204
  * }
2300
2205
  */
2301
2206
  export interface Coupon {
@@ -2324,8 +2229,8 @@ declare namespace Components {
2324
2229
  _updated_at: string; // date-time
2325
2230
  name: string | null;
2326
2231
  description?: string | null;
2327
- type?: "fixed" | "percentage";
2328
- category?: "discount" | "cashback";
2232
+ type: "fixed" | "percentage";
2233
+ category: "discount" | "cashback";
2329
2234
  /**
2330
2235
  * Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
2331
2236
  */
@@ -2374,10 +2279,7 @@ declare namespace Components {
2374
2279
  promo_codes?: /**
2375
2280
  * example:
2376
2281
  * {
2377
- * "id": "123e4567-e89b-12d3-a456-426614174000",
2378
- * "code": "123456",
2379
- * "has_usage_limit": true,
2380
- * "usage_limit": 10
2282
+ * "$ref": "#/components/examples/promo-code/value"
2381
2283
  * }
2382
2284
  */
2383
2285
  PromoCode[];
@@ -2388,16 +2290,20 @@ declare namespace Components {
2388
2290
  [name: string]: number;
2389
2291
  };
2390
2292
  }
2293
+ /**
2294
+ * The shared properties for the coupon entity and coupon item entity
2295
+ */
2391
2296
  export interface CouponItem {
2392
- _id?: EntityId /* uuid */;
2297
+ [name: string]: any;
2298
+ _id: EntityId /* uuid */;
2393
2299
  /**
2394
2300
  * The auto-generated title for the title
2395
2301
  */
2396
- _title?: string;
2302
+ _title: string;
2397
2303
  /**
2398
2304
  * Organization Id the entity belongs to
2399
2305
  */
2400
- _org?: string;
2306
+ _org: string;
2401
2307
  /**
2402
2308
  * The schema of the entity, for coupons it is always `coupon`
2403
2309
  */
@@ -2406,12 +2312,12 @@ declare namespace Components {
2406
2312
  /**
2407
2313
  * The creation date for the opportunity
2408
2314
  */
2409
- _created_at?: string; // date-time
2315
+ _created_at: string; // date-time
2410
2316
  /**
2411
2317
  * The date the coupon was last updated
2412
2318
  */
2413
- _updated_at?: string; // date-time
2414
- name?: string | null;
2319
+ _updated_at: string; // date-time
2320
+ name: string | null;
2415
2321
  description?: string | null;
2416
2322
  type: "fixed" | "percentage";
2417
2323
  category: "discount" | "cashback";
@@ -2449,33 +2355,10 @@ declare namespace Components {
2449
2355
  requires_promo_code?: boolean;
2450
2356
  }
2451
2357
  /**
2452
- * The coupon configuration
2358
+ * The base for the coupon entity without promo codes
2453
2359
  * example:
2454
2360
  * {
2455
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
2456
- * "_schema": "coupon",
2457
- * "_org": "org_12345",
2458
- * "_created_at": "2024-01-15T10:00:00.000Z",
2459
- * "_updated_at": "2024-01-20T12:00:00.000Z",
2460
- * "_title": "Sample Coupon",
2461
- * "name": "Sample Coupon",
2462
- * "type": "fixed",
2463
- * "fixed_value": 555,
2464
- * "fixed_value_currency": "USD",
2465
- * "fixed_value_decimal": "5.55",
2466
- * "active": true,
2467
- * "prices": {
2468
- * "$relation": [
2469
- * {
2470
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
2471
- * "_tags": [
2472
- * "discount",
2473
- * "special"
2474
- * ],
2475
- * "_schema": "price"
2476
- * }
2477
- * ]
2478
- * }
2361
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
2479
2362
  * }
2480
2363
  */
2481
2364
  export interface CouponWithoutPromoCodes {
@@ -2504,8 +2387,8 @@ declare namespace Components {
2504
2387
  _updated_at: string; // date-time
2505
2388
  name: string | null;
2506
2389
  description?: string | null;
2507
- type?: "fixed" | "percentage";
2508
- category?: "discount" | "cashback";
2390
+ type: "fixed" | "percentage";
2391
+ category: "discount" | "cashback";
2509
2392
  /**
2510
2393
  * Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
2511
2394
  */
@@ -2583,15 +2466,7 @@ declare namespace Components {
2583
2466
  /**
2584
2467
  * example:
2585
2468
  * {
2586
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
2587
- * "_org": "123",
2588
- * "_schema": "contact",
2589
- * "_tags": [
2590
- * "example",
2591
- * "mock"
2592
- * ],
2593
- * "_created_at": "2021-02-09T12:41:43.662Z",
2594
- * "_updated_at": "2021-02-09T12:41:43.662Z"
2469
+ * "$ref": "#/components/examples/entity-item/value"
2595
2470
  * }
2596
2471
  */
2597
2472
  export interface EntityItem {
@@ -2638,10 +2513,7 @@ declare namespace Components {
2638
2513
  /**
2639
2514
  * example:
2640
2515
  * {
2641
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2642
- * "frequency_unit": "weekly",
2643
- * "amount_total": 1000,
2644
- * "amount_total_decimal": "10.00"
2516
+ * "$ref": "#/components/examples/external-fee-mapping/value"
2645
2517
  * }
2646
2518
  */
2647
2519
  export interface ExternalFeeMapping {
@@ -2652,22 +2524,14 @@ declare namespace Components {
2652
2524
  }
2653
2525
  /**
2654
2526
  * example:
2655
- * [
2656
- * {
2657
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2658
- * "frequency_unit": "weekly",
2659
- * "amount_total": 1000,
2660
- * "amount_total_decimal": "10.00"
2661
- * }
2662
- * ]
2527
+ * {
2528
+ * "$ref": "#/components/examples/external-fee-mappings/value"
2529
+ * }
2663
2530
  */
2664
2531
  export type ExternalFeeMappings = /**
2665
2532
  * example:
2666
2533
  * {
2667
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2668
- * "frequency_unit": "weekly",
2669
- * "amount_total": 1000,
2670
- * "amount_total_decimal": "10.00"
2534
+ * "$ref": "#/components/examples/external-fee-mapping/value"
2671
2535
  * }
2672
2536
  */
2673
2537
  ExternalFeeMapping[];
@@ -2778,18 +2642,106 @@ declare namespace Components {
2778
2642
  */
2779
2643
  export interface HistoricMarketPriceRecord {
2780
2644
  /**
2781
- * Cost in Cents, e.g. 12.3 for 12,3 Cents = 0.123€.
2782
- * example:
2783
- * 12.3
2645
+ * Cost in Cents, e.g. 12.3 for 12,3 Cents = 0.123€.
2646
+ * example:
2647
+ * 12.3
2648
+ */
2649
+ unit_amount: number;
2650
+ /**
2651
+ * Cost in decimal format, e.g. 0.123€.
2652
+ * example:
2653
+ * 0.123
2654
+ */
2655
+ unit_amount_decimal: string;
2656
+ unit_amount_currency: /**
2657
+ * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2658
+ * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2659
+ *
2660
+ * example:
2661
+ * EUR
2662
+ */
2663
+ Currency;
2664
+ /**
2665
+ * ISO 8601 timestamp of the price record in UTC.
2666
+ */
2667
+ timestamp: string; // date-time
2668
+ }
2669
+ export interface HistoricMarketPricesResult {
2670
+ market: /* The market for a spot market price. */ SpotMarketType;
2671
+ bidding_zone: /* The bidding zone for a spot market price. */ SpotMarketBiddingZone;
2672
+ prices: /* A market price at a given point in time. */ HistoricMarketPriceRecord[];
2673
+ }
2674
+ /**
2675
+ * The composite price entity
2676
+ * example:
2677
+ * {
2678
+ * "$ref": "#/components/examples/composite-price"
2679
+ * }
2680
+ */
2681
+ export interface HydratedCompositePrice {
2682
+ [name: string]: any;
2683
+ /**
2684
+ * The billing period duration
2685
+ */
2686
+ billing_duration_amount?: number;
2687
+ /**
2688
+ * The billing period duration unit
2689
+ */
2690
+ billing_duration_unit?: "weeks" | "months" | "years";
2691
+ /**
2692
+ * The notice period duration
2693
+ */
2694
+ notice_time_amount?: number;
2695
+ /**
2696
+ * The notice period duration unit
2697
+ */
2698
+ notice_time_unit?: "weeks" | "months" | "years";
2699
+ /**
2700
+ * The termination period duration
2701
+ */
2702
+ termination_time_amount?: number;
2703
+ /**
2704
+ * The termination period duration unit
2705
+ */
2706
+ termination_time_unit?: "weeks" | "months" | "years";
2707
+ /**
2708
+ * The renewal period duration
2709
+ */
2710
+ renewal_duration_amount?: number;
2711
+ /**
2712
+ * The renewal period duration unit
2784
2713
  */
2785
- unit_amount: number;
2714
+ renewal_duration_unit?: "weeks" | "months" | "years";
2786
2715
  /**
2787
- * Cost in decimal format, e.g. 0.123€.
2716
+ * Whether the price can be used for new purchases.
2717
+ */
2718
+ active?: boolean;
2719
+ /**
2720
+ * A brief description of the price.
2721
+ */
2722
+ description?: string;
2723
+ /**
2724
+ * A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price.
2725
+ */
2726
+ price_components?: /* A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price. */ /**
2727
+ * The price entity schema for simple pricing
2788
2728
  * example:
2789
- * 0.123
2729
+ * {
2730
+ * "$ref": "#/components/examples/price"
2731
+ * }
2790
2732
  */
2791
- unit_amount_decimal: string;
2792
- unit_amount_currency: /**
2733
+ Price[] | /**
2734
+ * The price entity schema for simple pricing
2735
+ * example:
2736
+ * {
2737
+ * "$ref": "#/components/examples/price"
2738
+ * }
2739
+ */
2740
+ Price[];
2741
+ /**
2742
+ * Three-letter ISO currency code, in lowercase.
2743
+ */
2744
+ unit_amount_currency?: /* Three-letter ISO currency code, in lowercase. */ /**
2793
2745
  * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2794
2746
  * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2795
2747
  *
@@ -2798,14 +2750,33 @@ declare namespace Components {
2798
2750
  */
2799
2751
  Currency;
2800
2752
  /**
2801
- * ISO 8601 timestamp of the price record in UTC.
2753
+ * The flag for prices that contain price components.
2802
2754
  */
2803
- timestamp: string; // date-time
2804
- }
2805
- export interface HistoricMarketPricesResult {
2806
- market: /* The market for a spot market price. */ SpotMarketType;
2807
- bidding_zone: /* The bidding zone for a spot market price. */ SpotMarketBiddingZone;
2808
- prices: /* A market price at a given point in time. */ HistoricMarketPriceRecord[];
2755
+ is_composite_price: true;
2756
+ /**
2757
+ * The price creation date
2758
+ */
2759
+ _created_at?: string;
2760
+ /**
2761
+ * The price id
2762
+ */
2763
+ _id?: string;
2764
+ /**
2765
+ * The price autogenerated title
2766
+ */
2767
+ _title?: string;
2768
+ /**
2769
+ * The price last update date
2770
+ */
2771
+ _updated_at?: string;
2772
+ /**
2773
+ * The organization id the price belongs to
2774
+ */
2775
+ _org_id?: string;
2776
+ /**
2777
+ * An arbitrary set of tags attached to the composite price
2778
+ */
2779
+ _tags?: string[];
2809
2780
  }
2810
2781
  /**
2811
2782
  * The auth credentials for external integrations
@@ -2899,6 +2870,103 @@ declare namespace Components {
2899
2870
  */
2900
2871
  value?: string;
2901
2872
  })[];
2873
+ /**
2874
+ * The composite price entity
2875
+ * example:
2876
+ * {
2877
+ * "$ref": "#/components/examples/composite-price"
2878
+ * }
2879
+ */
2880
+ export interface NonHydratedCompositePrice {
2881
+ [name: string]: any;
2882
+ /**
2883
+ * The billing period duration
2884
+ */
2885
+ billing_duration_amount?: number;
2886
+ /**
2887
+ * The billing period duration unit
2888
+ */
2889
+ billing_duration_unit?: "weeks" | "months" | "years";
2890
+ /**
2891
+ * The notice period duration
2892
+ */
2893
+ notice_time_amount?: number;
2894
+ /**
2895
+ * The notice period duration unit
2896
+ */
2897
+ notice_time_unit?: "weeks" | "months" | "years";
2898
+ /**
2899
+ * The termination period duration
2900
+ */
2901
+ termination_time_amount?: number;
2902
+ /**
2903
+ * The termination period duration unit
2904
+ */
2905
+ termination_time_unit?: "weeks" | "months" | "years";
2906
+ /**
2907
+ * The renewal period duration
2908
+ */
2909
+ renewal_duration_amount?: number;
2910
+ /**
2911
+ * The renewal period duration unit
2912
+ */
2913
+ renewal_duration_unit?: "weeks" | "months" | "years";
2914
+ /**
2915
+ * Whether the price can be used for new purchases.
2916
+ */
2917
+ active?: boolean;
2918
+ /**
2919
+ * A brief description of the price.
2920
+ */
2921
+ description?: string;
2922
+ /**
2923
+ * A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price.
2924
+ */
2925
+ price_components?: /* A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price. */ {
2926
+ $relation?: PriceComponentRelation[];
2927
+ } | {
2928
+ $relation?: PriceComponentRelation[];
2929
+ };
2930
+ /**
2931
+ * Three-letter ISO currency code, in lowercase.
2932
+ */
2933
+ unit_amount_currency?: /* Three-letter ISO currency code, in lowercase. */ /**
2934
+ * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2935
+ * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2936
+ *
2937
+ * example:
2938
+ * EUR
2939
+ */
2940
+ Currency;
2941
+ /**
2942
+ * The flag for prices that contain price components.
2943
+ */
2944
+ is_composite_price: true;
2945
+ /**
2946
+ * The price creation date
2947
+ */
2948
+ _created_at?: string;
2949
+ /**
2950
+ * The price id
2951
+ */
2952
+ _id?: string;
2953
+ /**
2954
+ * The price autogenerated title
2955
+ */
2956
+ _title?: string;
2957
+ /**
2958
+ * The price last update date
2959
+ */
2960
+ _updated_at?: string;
2961
+ /**
2962
+ * The organization id the price belongs to
2963
+ */
2964
+ _org_id?: string;
2965
+ /**
2966
+ * An arbitrary set of tags attached to the composite price
2967
+ */
2968
+ _tags?: string[];
2969
+ }
2902
2970
  export interface OAuthCredentials {
2903
2971
  /**
2904
2972
  * The OAuth client ID
@@ -2957,6 +3025,11 @@ declare namespace Components {
2957
3025
  */
2958
3026
  base_url?: string;
2959
3027
  }
3028
+ export interface Offer {
3029
+ product_id?: string;
3030
+ price_id?: string;
3031
+ target_id?: string;
3032
+ }
2960
3033
  /**
2961
3034
  * The opportunity entity
2962
3035
  * example:
@@ -3438,7 +3511,7 @@ declare namespace Components {
3438
3511
  /**
3439
3512
  * The flag for prices that contain price components.
3440
3513
  */
3441
- is_composite_price?: boolean;
3514
+ is_composite_price?: false;
3442
3515
  /**
3443
3516
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
3444
3517
  * - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
@@ -3483,20 +3556,7 @@ declare namespace Components {
3483
3556
  * the tax configuration
3484
3557
  * example:
3485
3558
  * {
3486
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3487
- * "type": "VAT",
3488
- * "description": "Tax description",
3489
- * "active": "true",
3490
- * "region": "DE",
3491
- * "region_label": "Germany",
3492
- * "_org": "123",
3493
- * "_schema": "tax",
3494
- * "_tags": [
3495
- * "example",
3496
- * "mock"
3497
- * ],
3498
- * "_created_at": "2021-02-09T12:41:43.662Z",
3499
- * "_updated_at": "2021-02-09T12:41:43.662Z"
3559
+ * "$ref": "#/components/examples/tax/value"
3500
3560
  * }
3501
3561
  */
3502
3562
  Tax[];
@@ -3698,14 +3758,7 @@ declare namespace Components {
3698
3758
  /**
3699
3759
  * example:
3700
3760
  * {
3701
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
3702
- * "frequency_unit": "weekly",
3703
- * "value": 1000.245,
3704
- * "name": "avg consumption",
3705
- * "metadata": {
3706
- * "journey_title": "energy journey",
3707
- * "step_name": "avg consumption picker"
3708
- * }
3761
+ * "$ref": "#/components/examples/price-input-mapping/value"
3709
3762
  * }
3710
3763
  */
3711
3764
  export interface PriceInputMapping {
@@ -3735,14 +3788,7 @@ declare namespace Components {
3735
3788
  export type PriceInputMappings = /**
3736
3789
  * example:
3737
3790
  * {
3738
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
3739
- * "frequency_unit": "weekly",
3740
- * "value": 1000.245,
3741
- * "name": "avg consumption",
3742
- * "metadata": {
3743
- * "journey_title": "energy journey",
3744
- * "step_name": "avg consumption picker"
3745
- * }
3791
+ * "$ref": "#/components/examples/price-input-mapping/value"
3746
3792
  * }
3747
3793
  */
3748
3794
  PriceInputMapping[];
@@ -4069,14 +4115,7 @@ declare namespace Components {
4069
4115
  * "$ref": "#/components/examples/price"
4070
4116
  * }
4071
4117
  */
4072
- Price | /**
4073
- * The price entity schema for dynamic pricing
4074
- * example:
4075
- * {
4076
- * "$ref": "#/components/examples/composite-price"
4077
- * }
4078
- */
4079
- CompositePrice;
4118
+ Price | /* The composite price entity */ CompositePrice;
4080
4119
  /**
4081
4120
  * The taxes applied to the price item.
4082
4121
  */
@@ -4088,7 +4127,7 @@ declare namespace Components {
4088
4127
  /**
4089
4128
  * The coupons applicable to the price item
4090
4129
  */
4091
- _coupons?: (CouponItem)[];
4130
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
4092
4131
  /**
4093
4132
  * 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'.
4094
4133
  */
@@ -4097,10 +4136,14 @@ declare namespace Components {
4097
4136
  * One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
4098
4137
  */
4099
4138
  type?: "one_time" | "recurring";
4139
+ /**
4140
+ * The flag for prices that contain price components.
4141
+ */
4142
+ is_composite_price?: false;
4100
4143
  /**
4101
4144
  * The price billing period.
4102
4145
  */
4103
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
4146
+ billing_period?: /* The price billing period. */ BillingPeriod;
4104
4147
  pricing_model: /**
4105
4148
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
4106
4149
  * - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
@@ -4267,14 +4310,9 @@ declare namespace Components {
4267
4310
  };
4268
4311
  external_fees_mappings?: /**
4269
4312
  * example:
4270
- * [
4271
- * {
4272
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
4273
- * "frequency_unit": "weekly",
4274
- * "amount_total": 1000,
4275
- * "amount_total_decimal": "10.00"
4276
- * }
4277
- * ]
4313
+ * {
4314
+ * "$ref": "#/components/examples/external-fee-mappings/value"
4315
+ * }
4278
4316
  */
4279
4317
  ExternalFeeMappings;
4280
4318
  external_fees_metadata?: ExternalFeeMetadata;
@@ -4295,7 +4333,7 @@ declare namespace Components {
4295
4333
  /**
4296
4334
  * The coupons applicable to the price item
4297
4335
  */
4298
- _coupons?: (CouponItem)[];
4336
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
4299
4337
  /**
4300
4338
  * One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
4301
4339
  */
@@ -4303,7 +4341,7 @@ declare namespace Components {
4303
4341
  /**
4304
4342
  * The price billing period.
4305
4343
  */
4306
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
4344
+ billing_period?: /* The price billing period. */ BillingPeriod;
4307
4345
  /**
4308
4346
  * The unit amount value
4309
4347
  */
@@ -4387,7 +4425,7 @@ declare namespace Components {
4387
4425
  /**
4388
4426
  * The flag for prices that contain price components.
4389
4427
  */
4390
- is_composite_price?: boolean;
4428
+ is_composite_price?: false;
4391
4429
  /**
4392
4430
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
4393
4431
  * - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
@@ -4432,20 +4470,7 @@ declare namespace Components {
4432
4470
  * the tax configuration
4433
4471
  * example:
4434
4472
  * {
4435
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
4436
- * "type": "VAT",
4437
- * "description": "Tax description",
4438
- * "active": "true",
4439
- * "region": "DE",
4440
- * "region_label": "Germany",
4441
- * "_org": "123",
4442
- * "_schema": "tax",
4443
- * "_tags": [
4444
- * "example",
4445
- * "mock"
4446
- * ],
4447
- * "_created_at": "2021-02-09T12:41:43.662Z",
4448
- * "_updated_at": "2021-02-09T12:41:43.662Z"
4473
+ * "$ref": "#/components/examples/tax/value"
4449
4474
  * }
4450
4475
  */
4451
4476
  Tax[];
@@ -4520,7 +4545,7 @@ declare namespace Components {
4520
4545
  _tags?: string[];
4521
4546
  };
4522
4547
  }
4523
- export type PriceItemUnion = /* Represents a price input to the pricing library. */ PriceItemDto | /* Represents a composite price input to the pricing library. */ CompositePriceItemDto;
4548
+ export type PriceItemDtoUnion = /* Represents a price input to the pricing library. */ PriceItemDto | /* Represents a composite price input to the pricing library. */ CompositePriceItemDto;
4524
4549
  /**
4525
4550
  * Tracks a set of product prices, quantities, (discounts) and taxes.
4526
4551
  */
@@ -4542,7 +4567,7 @@ declare namespace Components {
4542
4567
  /**
4543
4568
  * A valid set of product prices, quantities, (discounts) and taxes from a client.
4544
4569
  */
4545
- export type PriceItemsDto = PriceItemUnion[];
4570
+ export type PriceItemsDto = PriceItemDtoUnion[];
4546
4571
  export interface PriceTier {
4547
4572
  up_to?: number | null;
4548
4573
  flat_fee_amount?: number;
@@ -4779,10 +4804,80 @@ declare namespace Components {
4779
4804
  /**
4780
4805
  * example:
4781
4806
  * {
4782
- * "id": "123e4567-e89b-12d3-a456-426614174000",
4783
- * "code": "123456",
4784
- * "has_usage_limit": true,
4785
- * "usage_limit": 10
4807
+ * "$ref": "#/components/examples/entity-item/value"
4808
+ * }
4809
+ */
4810
+ export interface ProductRecommendation {
4811
+ _id: EntityId /* uuid */;
4812
+ /**
4813
+ * Title of entity
4814
+ */
4815
+ _title: string;
4816
+ /**
4817
+ * Organization Id the entity belongs to
4818
+ */
4819
+ _org: string;
4820
+ _schema: string;
4821
+ _tags?: string[];
4822
+ _created_at: string; // date-time
4823
+ _updated_at: string; // date-time
4824
+ /**
4825
+ * Price being used as source
4826
+ */
4827
+ source_price?: {
4828
+ $relation?: EntityRelation[];
4829
+ };
4830
+ /**
4831
+ * Product being used as source
4832
+ */
4833
+ source_product?: {
4834
+ $relation?: EntityRelation[];
4835
+ };
4836
+ /**
4837
+ * Type of product recommendation
4838
+ */
4839
+ type?: "change" | "cross-sell" | "up-sell";
4840
+ offer?: Offer[];
4841
+ }
4842
+ /**
4843
+ * Product recommendations request payload
4844
+ */
4845
+ export interface ProductRecommendationResponse {
4846
+ /**
4847
+ * The number os results returned.
4848
+ */
4849
+ hits?: number;
4850
+ results?: /**
4851
+ * example:
4852
+ * {
4853
+ * "$ref": "#/components/examples/entity-item/value"
4854
+ * }
4855
+ */
4856
+ ProductRecommendation[];
4857
+ }
4858
+ /**
4859
+ * Product recommendations request payload
4860
+ */
4861
+ export interface ProductRecommendationSearch {
4862
+ product_recommendation_ids?: string[];
4863
+ /**
4864
+ * The catalog item to be used as source for the recommendation
4865
+ */
4866
+ catalog_item?: {
4867
+ /**
4868
+ * Product id
4869
+ */
4870
+ product_id?: string;
4871
+ /**
4872
+ * Product id
4873
+ */
4874
+ price_id?: string;
4875
+ };
4876
+ }
4877
+ /**
4878
+ * example:
4879
+ * {
4880
+ * "$ref": "#/components/examples/promo-code/value"
4786
4881
  * }
4787
4882
  */
4788
4883
  export interface PromoCode {
@@ -4808,36 +4903,13 @@ declare namespace Components {
4808
4903
  */
4809
4904
  export interface PromoCodeValidationResponse {
4810
4905
  matched_coupons?: /**
4811
- * The coupon configuration
4906
+ * The base for the coupon entity without promo codes
4812
4907
  * example:
4813
4908
  * {
4814
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
4815
- * "_schema": "coupon",
4816
- * "_org": "org_12345",
4817
- * "_created_at": "2024-01-15T10:00:00.000Z",
4818
- * "_updated_at": "2024-01-20T12:00:00.000Z",
4819
- * "_title": "Sample Coupon",
4820
- * "name": "Sample Coupon",
4821
- * "type": "fixed",
4822
- * "fixed_value": 555,
4823
- * "fixed_value_currency": "USD",
4824
- * "fixed_value_decimal": "5.55",
4825
- * "active": true,
4826
- * "prices": {
4827
- * "$relation": [
4828
- * {
4829
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
4830
- * "_tags": [
4831
- * "discount",
4832
- * "special"
4833
- * ],
4834
- * "_schema": "price"
4835
- * }
4836
- * ]
4837
- * }
4909
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
4838
4910
  * }
4839
4911
  */
4840
- BaseCoupon[];
4912
+ CouponWithoutPromoCodes[];
4841
4913
  }
4842
4914
  /**
4843
4915
  * The provider entity
@@ -4919,7 +4991,7 @@ declare namespace Components {
4919
4991
  /**
4920
4992
  * The price billing period.
4921
4993
  */
4922
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
4994
+ billing_period?: /* The price billing period. */ BillingPeriod;
4923
4995
  /**
4924
4996
  * The unit gross amount value.
4925
4997
  */
@@ -5012,7 +5084,7 @@ declare namespace Components {
5012
5084
  /**
5013
5085
  * The price billing period.
5014
5086
  */
5015
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
5087
+ billing_period?: /* The price billing period. */ BillingPeriod;
5016
5088
  /**
5017
5089
  * The unit gross amount value.
5018
5090
  */
@@ -5037,7 +5109,7 @@ declare namespace Components {
5037
5109
  /**
5038
5110
  * The price billing period.
5039
5111
  */
5040
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
5112
+ billing_period?: /* The price billing period. */ BillingPeriod;
5041
5113
  /**
5042
5114
  * Total amount of items with same recurrence.
5043
5115
  */
@@ -5066,33 +5138,10 @@ declare namespace Components {
5066
5138
  * The coupons that got redeemed with received the code
5067
5139
  */
5068
5140
  coupons: /**
5069
- * The coupon configuration
5141
+ * The base for the coupon entity without promo codes
5070
5142
  * example:
5071
5143
  * {
5072
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
5073
- * "_schema": "coupon",
5074
- * "_org": "org_12345",
5075
- * "_created_at": "2024-01-15T10:00:00.000Z",
5076
- * "_updated_at": "2024-01-20T12:00:00.000Z",
5077
- * "_title": "Sample Coupon",
5078
- * "name": "Sample Coupon",
5079
- * "type": "fixed",
5080
- * "fixed_value": 555,
5081
- * "fixed_value_currency": "USD",
5082
- * "fixed_value_decimal": "5.55",
5083
- * "active": true,
5084
- * "prices": {
5085
- * "$relation": [
5086
- * {
5087
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
5088
- * "_tags": [
5089
- * "discount",
5090
- * "special"
5091
- * ],
5092
- * "_schema": "price"
5093
- * }
5094
- * ]
5095
- * }
5144
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
5096
5145
  * }
5097
5146
  */
5098
5147
  CouponWithoutPromoCodes[];
@@ -5194,20 +5243,7 @@ declare namespace Components {
5194
5243
  * the tax configuration
5195
5244
  * example:
5196
5245
  * {
5197
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
5198
- * "type": "VAT",
5199
- * "description": "Tax description",
5200
- * "active": "true",
5201
- * "region": "DE",
5202
- * "region_label": "Germany",
5203
- * "_org": "123",
5204
- * "_schema": "tax",
5205
- * "_tags": [
5206
- * "example",
5207
- * "mock"
5208
- * ],
5209
- * "_created_at": "2021-02-09T12:41:43.662Z",
5210
- * "_updated_at": "2021-02-09T12:41:43.662Z"
5246
+ * "$ref": "#/components/examples/tax/value"
5211
5247
  * }
5212
5248
  */
5213
5249
  export interface Tax {
@@ -5259,20 +5295,7 @@ declare namespace Components {
5259
5295
  * the tax configuration
5260
5296
  * example:
5261
5297
  * {
5262
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
5263
- * "type": "VAT",
5264
- * "description": "Tax description",
5265
- * "active": "true",
5266
- * "region": "DE",
5267
- * "region_label": "Germany",
5268
- * "_org": "123",
5269
- * "_schema": "tax",
5270
- * "_tags": [
5271
- * "example",
5272
- * "mock"
5273
- * ],
5274
- * "_created_at": "2021-02-09T12:41:43.662Z",
5275
- * "_updated_at": "2021-02-09T12:41:43.662Z"
5298
+ * "$ref": "#/components/examples/tax/value"
5276
5299
  * }
5277
5300
  */
5278
5301
  Tax;
@@ -5309,20 +5332,7 @@ declare namespace Components {
5309
5332
  * the tax configuration
5310
5333
  * example:
5311
5334
  * {
5312
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
5313
- * "type": "VAT",
5314
- * "description": "Tax description",
5315
- * "active": "true",
5316
- * "region": "DE",
5317
- * "region_label": "Germany",
5318
- * "_org": "123",
5319
- * "_schema": "tax",
5320
- * "_tags": [
5321
- * "example",
5322
- * "mock"
5323
- * ],
5324
- * "_created_at": "2021-02-09T12:41:43.662Z",
5325
- * "_updated_at": "2021-02-09T12:41:43.662Z"
5335
+ * "$ref": "#/components/examples/tax/value"
5326
5336
  * }
5327
5337
  */
5328
5338
  Tax;
@@ -5592,6 +5602,19 @@ declare namespace Paths {
5592
5602
  export type $400 = Components.Schemas.Error;
5593
5603
  }
5594
5604
  }
5605
+ namespace $ProductRecommendations {
5606
+ export interface HeaderParameters {
5607
+ "X-Ivy-Org-ID"?: Parameters.XIvyOrgID;
5608
+ }
5609
+ namespace Parameters {
5610
+ export type XIvyOrgID = string;
5611
+ }
5612
+ export type RequestBody = /* Product recommendations request payload */ Components.Schemas.ProductRecommendationSearch;
5613
+ namespace Responses {
5614
+ export type $200 = /* Product recommendations request payload */ Components.Schemas.ProductRecommendationResponse;
5615
+ export type $400 = Components.Schemas.Error;
5616
+ }
5617
+ }
5595
5618
  namespace $SaveCredentials {
5596
5619
  namespace Parameters {
5597
5620
  export type IntegrationId = Components.Schemas.IntegrationId;
@@ -5976,6 +5999,16 @@ export interface OperationMethods {
5976
5999
  data?: any,
5977
6000
  config?: AxiosRequestConfig
5978
6001
  ): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
6002
+ /**
6003
+ * $productRecommendations - productRecommendations
6004
+ *
6005
+ * Get a list of product recommendations based on the search parameters.
6006
+ */
6007
+ '$productRecommendations'(
6008
+ parameters?: Parameters<Paths.$ProductRecommendations.HeaderParameters> | null,
6009
+ data?: Paths.$ProductRecommendations.RequestBody,
6010
+ config?: AxiosRequestConfig
6011
+ ): OperationResponse<Paths.$ProductRecommendations.Responses.$200>
5979
6012
  }
5980
6013
 
5981
6014
  export interface PathsDictionary {
@@ -6206,6 +6239,18 @@ export interface PathsDictionary {
6206
6239
  config?: AxiosRequestConfig
6207
6240
  ): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
6208
6241
  }
6242
+ ['/v1/public/product-recommendations']: {
6243
+ /**
6244
+ * $productRecommendations - productRecommendations
6245
+ *
6246
+ * Get a list of product recommendations based on the search parameters.
6247
+ */
6248
+ 'post'(
6249
+ parameters?: Parameters<Paths.$ProductRecommendations.HeaderParameters> | null,
6250
+ data?: Paths.$ProductRecommendations.RequestBody,
6251
+ config?: AxiosRequestConfig
6252
+ ): OperationResponse<Paths.$ProductRecommendations.Responses.$200>
6253
+ }
6209
6254
  }
6210
6255
 
6211
6256
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
@@ -6219,7 +6264,8 @@ export type AvailabilityLocation = Components.Schemas.AvailabilityLocation;
6219
6264
  export type AvailabilityResult = Components.Schemas.AvailabilityResult;
6220
6265
  export type AverageMarketPriceRecord = Components.Schemas.AverageMarketPriceRecord;
6221
6266
  export type AverageMarketPriceResult = Components.Schemas.AverageMarketPriceResult;
6222
- export type BaseCoupon = Components.Schemas.BaseCoupon;
6267
+ export type BaseCompositePrice = Components.Schemas.BaseCompositePrice;
6268
+ export type BaseCouponCommon = Components.Schemas.BaseCouponCommon;
6223
6269
  export type BaseMarketPriceRecord = Components.Schemas.BaseMarketPriceRecord;
6224
6270
  export type BasePriceItem = Components.Schemas.BasePriceItem;
6225
6271
  export type BasePriceItemCommon = Components.Schemas.BasePriceItemCommon;
@@ -6267,14 +6313,17 @@ export type File = Components.Schemas.File;
6267
6313
  export type GasConcessionType = Components.Schemas.GasConcessionType;
6268
6314
  export type HistoricMarketPriceRecord = Components.Schemas.HistoricMarketPriceRecord;
6269
6315
  export type HistoricMarketPricesResult = Components.Schemas.HistoricMarketPricesResult;
6316
+ export type HydratedCompositePrice = Components.Schemas.HydratedCompositePrice;
6270
6317
  export type IntegrationAuthCredentials = Components.Schemas.IntegrationAuthCredentials;
6271
6318
  export type IntegrationCredentialsResult = Components.Schemas.IntegrationCredentialsResult;
6272
6319
  export type IntegrationId = Components.Schemas.IntegrationId;
6273
6320
  export type JourneyContext = Components.Schemas.JourneyContext;
6274
6321
  export type MarkupPricingModel = Components.Schemas.MarkupPricingModel;
6275
6322
  export type MetaData = Components.Schemas.MetaData;
6323
+ export type NonHydratedCompositePrice = Components.Schemas.NonHydratedCompositePrice;
6276
6324
  export type OAuthCredentials = Components.Schemas.OAuthCredentials;
6277
6325
  export type OAuthIntegration = Components.Schemas.OAuthIntegration;
6326
+ export type Offer = Components.Schemas.Offer;
6278
6327
  export type Opportunity = Components.Schemas.Opportunity;
6279
6328
  export type OpportunitySource = Components.Schemas.OpportunitySource;
6280
6329
  export type Order = Components.Schemas.Order;
@@ -6293,7 +6342,7 @@ export type PriceInputMapping = Components.Schemas.PriceInputMapping;
6293
6342
  export type PriceInputMappings = Components.Schemas.PriceInputMappings;
6294
6343
  export type PriceItem = Components.Schemas.PriceItem;
6295
6344
  export type PriceItemDto = Components.Schemas.PriceItemDto;
6296
- export type PriceItemUnion = Components.Schemas.PriceItemUnion;
6345
+ export type PriceItemDtoUnion = Components.Schemas.PriceItemDtoUnion;
6297
6346
  export type PriceItems = Components.Schemas.PriceItems;
6298
6347
  export type PriceItemsDto = Components.Schemas.PriceItemsDto;
6299
6348
  export type PriceTier = Components.Schemas.PriceTier;
@@ -6304,6 +6353,9 @@ export type PricingDetailsResponse = Components.Schemas.PricingDetailsResponse;
6304
6353
  export type PricingModel = Components.Schemas.PricingModel;
6305
6354
  export type Product = Components.Schemas.Product;
6306
6355
  export type ProductCategory = Components.Schemas.ProductCategory;
6356
+ export type ProductRecommendation = Components.Schemas.ProductRecommendation;
6357
+ export type ProductRecommendationResponse = Components.Schemas.ProductRecommendationResponse;
6358
+ export type ProductRecommendationSearch = Components.Schemas.ProductRecommendationSearch;
6307
6359
  export type PromoCode = Components.Schemas.PromoCode;
6308
6360
  export type PromoCodeValidationResponse = Components.Schemas.PromoCodeValidationResponse;
6309
6361
  export type Provider = Components.Schemas.Provider;