@epilot/pricing-client 3.47.9-alpha.4 → 3.47.9-alpha.6

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,79 +254,71 @@ 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 {
287
264
  [name: string]: any;
288
- _id: EntityId /* uuid */;
289
265
  /**
290
- * The auto-generated title for the title
266
+ * The billing period duration
291
267
  */
292
- _title: string;
268
+ billing_duration_amount?: number;
293
269
  /**
294
- * Organization Id the entity belongs to
270
+ * The billing period duration unit
295
271
  */
296
- _org: string;
272
+ billing_duration_unit?: "weeks" | "months" | "years";
297
273
  /**
298
- * The schema of the entity, for coupons it is always `coupon`
274
+ * The notice period duration
299
275
  */
300
- _schema: "coupon";
301
- _tags?: string[];
276
+ notice_time_amount?: number;
302
277
  /**
303
- * The creation date for the opportunity
278
+ * The notice period duration unit
304
279
  */
305
- _created_at: string; // date-time
280
+ notice_time_unit?: "weeks" | "months" | "years";
306
281
  /**
307
- * The date the coupon was last updated
282
+ * The termination period duration
308
283
  */
309
- _updated_at: string; // date-time
310
- name: string | null;
311
- description?: string | null;
312
- type: "fixed" | "percentage";
313
- category: "discount" | "cashback";
284
+ termination_time_amount?: number;
314
285
  /**
315
- * Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
286
+ * The termination period duration unit
316
287
  */
317
- percentage_value?: string | null;
288
+ termination_time_unit?: "weeks" | "months" | "years";
318
289
  /**
319
- * Use if type is set to fixed. The fixed amount in cents to be discounted, represented as a whole integer.
290
+ * The renewal period duration
320
291
  */
321
- fixed_value?: number;
292
+ renewal_duration_amount?: number;
322
293
  /**
323
- * 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.
294
+ * The renewal period duration unit
324
295
  */
325
- fixed_value_decimal?: string;
296
+ renewal_duration_unit?: "weeks" | "months" | "years";
326
297
  /**
327
- * Use if type is set to fixed. Three-letter ISO currency code, in lowercase.
298
+ * Whether the price can be used for new purchases.
328
299
  */
329
- fixed_value_currency?: /* Use if type is set to fixed. Three-letter ISO currency code, in lowercase. */ /**
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. */ /**
330
322
  * Three-letter ISO currency code, in lowercase. Must be a supported currency.
331
323
  * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
332
324
  *
@@ -335,30 +327,36 @@ declare namespace Components {
335
327
  */
336
328
  Currency;
337
329
  /**
338
- * The cashback period, for now it's limited to either 0 months or 12 months
330
+ * The flag for prices that contain price components.
339
331
  */
340
- cashback_period?: "0" | "12";
341
- active?: boolean;
332
+ is_composite_price: true;
342
333
  /**
343
- * Whether the coupon requires a promo code to be applied
334
+ * The price creation date
344
335
  */
345
- requires_promo_code?: boolean;
336
+ _created_at?: string;
346
337
  /**
347
- * The prices associated with the coupon. Will hold price entities if hydrated, relations otherwise.
338
+ * The price id
348
339
  */
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
- * }
340
+ _id?: string;
341
+ /**
342
+ * The price autogenerated title
357
343
  */
358
- Price[];
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[];
359
357
  }
360
358
  /**
361
- * The coupon configuration
359
+ * The shared properties for the coupon entity and coupon item entity
362
360
  */
363
361
  export interface BaseCouponCommon {
364
362
  [name: string]: any;
@@ -766,14 +764,7 @@ declare namespace Components {
766
764
  * "$ref": "#/components/examples/price"
767
765
  * }
768
766
  */
769
- Price | /**
770
- * The price entity schema for dynamic pricing
771
- * example:
772
- * {
773
- * "$ref": "#/components/examples/composite-price"
774
- * }
775
- */
776
- CompositePrice;
767
+ Price | /* The composite price entity */ CompositePrice;
777
768
  /**
778
769
  * The taxes applied to the price item.
779
770
  */
@@ -785,7 +776,7 @@ declare namespace Components {
785
776
  /**
786
777
  * The coupons applicable to the price item
787
778
  */
788
- _coupons?: (/* The coupon configuration */ CouponItem)[];
779
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
789
780
  /**
790
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'.
791
782
  */
@@ -1095,14 +1086,9 @@ declare namespace Components {
1095
1086
  };
1096
1087
  external_fees_mappings?: /**
1097
1088
  * example:
1098
- * [
1099
- * {
1100
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
1101
- * "frequency_unit": "weekly",
1102
- * "amount_total": 1000,
1103
- * "amount_total_decimal": "10.00"
1104
- * }
1105
- * ]
1089
+ * {
1090
+ * "$ref": "#/components/examples/external-fee-mappings/value"
1091
+ * }
1106
1092
  */
1107
1093
  ExternalFeeMappings;
1108
1094
  external_fees_metadata?: ExternalFeeMetadata;
@@ -1123,7 +1109,7 @@ declare namespace Components {
1123
1109
  /**
1124
1110
  * The coupons applicable to the price item
1125
1111
  */
1126
- _coupons?: (/* The coupon configuration */ CouponItem)[];
1112
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
1127
1113
  }
1128
1114
  export interface BasicAuthCredentials {
1129
1115
  /**
@@ -1381,33 +1367,10 @@ declare namespace Components {
1381
1367
  * }
1382
1368
  */
1383
1369
  Price | /**
1384
- * The coupon configuration
1370
+ * The coupon entity
1385
1371
  * example:
1386
1372
  * {
1387
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
1388
- * "_schema": "coupon",
1389
- * "_org": "org_12345",
1390
- * "_created_at": "2024-01-15T10:00:00.000Z",
1391
- * "_updated_at": "2024-01-20T12:00:00.000Z",
1392
- * "_title": "Sample Coupon",
1393
- * "name": "Sample Coupon",
1394
- * "type": "fixed",
1395
- * "fixed_value": 555,
1396
- * "fixed_value_currency": "USD",
1397
- * "fixed_value_decimal": "5.55",
1398
- * "active": true,
1399
- * "prices": {
1400
- * "$relation": [
1401
- * {
1402
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
1403
- * "_tags": [
1404
- * "discount",
1405
- * "special"
1406
- * ],
1407
- * "_schema": "price"
1408
- * }
1409
- * ]
1410
- * }
1373
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
1411
1374
  * }
1412
1375
  */
1413
1376
  Coupon)[];
@@ -1438,107 +1401,23 @@ declare namespace Components {
1438
1401
  */
1439
1402
  export type CheckoutMode = "create_order" | "create_invoice" | "create_quote";
1440
1403
  /**
1441
- * 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
1442
1408
  * example:
1443
1409
  * {
1444
1410
  * "$ref": "#/components/examples/composite-price"
1445
1411
  * }
1446
1412
  */
1447
- export interface CompositePrice {
1448
- [name: string]: any;
1449
- /**
1450
- * The billing period duration
1451
- */
1452
- billing_duration_amount?: number;
1453
- /**
1454
- * The billing period duration unit
1455
- */
1456
- billing_duration_unit?: "weeks" | "months" | "years";
1457
- /**
1458
- * The notice period duration
1459
- */
1460
- notice_time_amount?: number;
1461
- /**
1462
- * The notice period duration unit
1463
- */
1464
- notice_time_unit?: "weeks" | "months" | "years";
1465
- /**
1466
- * The termination period duration
1467
- */
1468
- termination_time_amount?: number;
1469
- /**
1470
- * The termination period duration unit
1471
- */
1472
- termination_time_unit?: "weeks" | "months" | "years";
1473
- /**
1474
- * The renewal period duration
1475
- */
1476
- renewal_duration_amount?: number;
1477
- /**
1478
- * The renewal period duration unit
1479
- */
1480
- renewal_duration_unit?: "weeks" | "months" | "years";
1481
- /**
1482
- * Whether the price can be used for new purchases.
1483
- */
1484
- active?: boolean;
1485
- /**
1486
- * A brief description of the price.
1487
- */
1488
- description?: string;
1489
- /**
1490
- * A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price.
1491
- */
1492
- price_components?: /* A set of [price](/api/pricing#tag/simple_price_schema) components that define the composite price. */ /**
1493
- * The price entity schema for simple pricing
1494
- * example:
1495
- * {
1496
- * "$ref": "#/components/examples/price"
1497
- * }
1498
- */
1499
- Price[] | {
1500
- $relation?: PriceComponentRelation[];
1501
- };
1502
- /**
1503
- * Three-letter ISO currency code, in lowercase.
1504
- */
1505
- unit_amount_currency?: /* Three-letter ISO currency code, in lowercase. */ /**
1506
- * Three-letter ISO currency code, in lowercase. Must be a supported currency.
1507
- * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
1508
- *
1509
- * example:
1510
- * EUR
1511
- */
1512
- Currency;
1513
- /**
1514
- * The flag for prices that contain price components.
1515
- */
1516
- is_composite_price: true;
1517
- /**
1518
- * The price creation date
1519
- */
1520
- _created_at?: string;
1521
- /**
1522
- * The price id
1523
- */
1524
- _id?: string;
1525
- /**
1526
- * The price autogenerated title
1527
- */
1528
- _title?: string;
1529
- /**
1530
- * The price last update date
1531
- */
1532
- _updated_at?: string;
1533
- /**
1534
- * The organization id the price belongs to
1535
- */
1536
- _org_id?: string;
1537
- /**
1538
- * An arbitrary set of tags attached to the composite price
1539
- */
1540
- _tags?: string[];
1541
- }
1413
+ NonHydratedCompositePrice | /**
1414
+ * The composite price entity
1415
+ * example:
1416
+ * {
1417
+ * "$ref": "#/components/examples/composite-price"
1418
+ * }
1419
+ */
1420
+ HydratedCompositePrice;
1542
1421
  /**
1543
1422
  * Represents a composite price input to the pricing library.
1544
1423
  * example:
@@ -1862,14 +1741,7 @@ declare namespace Components {
1862
1741
  * "$ref": "#/components/examples/price"
1863
1742
  * }
1864
1743
  */
1865
- Price | /**
1866
- * The price entity schema for dynamic pricing
1867
- * example:
1868
- * {
1869
- * "$ref": "#/components/examples/composite-price"
1870
- * }
1871
- */
1872
- CompositePrice;
1744
+ Price | /* The composite price entity */ CompositePrice;
1873
1745
  /**
1874
1746
  * The taxes applied to the price item.
1875
1747
  */
@@ -1881,7 +1753,7 @@ declare namespace Components {
1881
1753
  /**
1882
1754
  * The coupons applicable to the price item
1883
1755
  */
1884
- _coupons?: (/* The coupon configuration */ CouponItem)[];
1756
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
1885
1757
  /**
1886
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'.
1887
1759
  */
@@ -2054,14 +1926,9 @@ declare namespace Components {
2054
1926
  };
2055
1927
  external_fees_mappings?: /**
2056
1928
  * example:
2057
- * [
2058
- * {
2059
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2060
- * "frequency_unit": "weekly",
2061
- * "amount_total": 1000,
2062
- * "amount_total_decimal": "10.00"
2063
- * }
2064
- * ]
1929
+ * {
1930
+ * "$ref": "#/components/examples/external-fee-mappings/value"
1931
+ * }
2065
1932
  */
2066
1933
  ExternalFeeMappings;
2067
1934
  external_fees_metadata?: ExternalFeeMetadata;
@@ -2082,7 +1949,7 @@ declare namespace Components {
2082
1949
  /**
2083
1950
  * The coupons applicable to the price item
2084
1951
  */
2085
- _coupons?: (/* The coupon configuration */ CouponItem)[];
1952
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
2086
1953
  /**
2087
1954
  * The flag for prices that contain price components.
2088
1955
  */
@@ -2101,14 +1968,7 @@ declare namespace Components {
2101
1968
  price_component_coupon_ids?: {
2102
1969
  [name: string]: string[];
2103
1970
  };
2104
- _price?: /**
2105
- * The price entity schema for dynamic pricing
2106
- * example:
2107
- * {
2108
- * "$ref": "#/components/examples/composite-price"
2109
- * }
2110
- */
2111
- CompositePrice;
1971
+ _price?: /* The composite price entity */ CompositePrice;
2112
1972
  }
2113
1973
  /**
2114
1974
  * The compute price payload
@@ -2337,33 +2197,10 @@ declare namespace Components {
2337
2197
  }
2338
2198
  export type ConsumptionTypeGetAg = "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
2339
2199
  /**
2340
- * The coupon configuration
2200
+ * The coupon entity
2341
2201
  * example:
2342
2202
  * {
2343
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
2344
- * "_schema": "coupon",
2345
- * "_org": "org_12345",
2346
- * "_created_at": "2024-01-15T10:00:00.000Z",
2347
- * "_updated_at": "2024-01-20T12:00:00.000Z",
2348
- * "_title": "Sample Coupon",
2349
- * "name": "Sample Coupon",
2350
- * "type": "fixed",
2351
- * "fixed_value": 555,
2352
- * "fixed_value_currency": "USD",
2353
- * "fixed_value_decimal": "5.55",
2354
- * "active": true,
2355
- * "prices": {
2356
- * "$relation": [
2357
- * {
2358
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
2359
- * "_tags": [
2360
- * "discount",
2361
- * "special"
2362
- * ],
2363
- * "_schema": "price"
2364
- * }
2365
- * ]
2366
- * }
2203
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
2367
2204
  * }
2368
2205
  */
2369
2206
  export interface Coupon {
@@ -2442,10 +2279,7 @@ declare namespace Components {
2442
2279
  promo_codes?: /**
2443
2280
  * example:
2444
2281
  * {
2445
- * "id": "123e4567-e89b-12d3-a456-426614174000",
2446
- * "code": "123456",
2447
- * "has_usage_limit": true,
2448
- * "usage_limit": 10
2282
+ * "$ref": "#/components/examples/promo-code/value"
2449
2283
  * }
2450
2284
  */
2451
2285
  PromoCode[];
@@ -2457,7 +2291,7 @@ declare namespace Components {
2457
2291
  };
2458
2292
  }
2459
2293
  /**
2460
- * The coupon configuration
2294
+ * The shared properties for the coupon entity and coupon item entity
2461
2295
  */
2462
2296
  export interface CouponItem {
2463
2297
  [name: string]: any;
@@ -2521,33 +2355,10 @@ declare namespace Components {
2521
2355
  requires_promo_code?: boolean;
2522
2356
  }
2523
2357
  /**
2524
- * The coupon configuration
2358
+ * The base for the coupon entity without promo codes
2525
2359
  * example:
2526
2360
  * {
2527
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
2528
- * "_schema": "coupon",
2529
- * "_org": "org_12345",
2530
- * "_created_at": "2024-01-15T10:00:00.000Z",
2531
- * "_updated_at": "2024-01-20T12:00:00.000Z",
2532
- * "_title": "Sample Coupon",
2533
- * "name": "Sample Coupon",
2534
- * "type": "fixed",
2535
- * "fixed_value": 555,
2536
- * "fixed_value_currency": "USD",
2537
- * "fixed_value_decimal": "5.55",
2538
- * "active": true,
2539
- * "prices": {
2540
- * "$relation": [
2541
- * {
2542
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
2543
- * "_tags": [
2544
- * "discount",
2545
- * "special"
2546
- * ],
2547
- * "_schema": "price"
2548
- * }
2549
- * ]
2550
- * }
2361
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
2551
2362
  * }
2552
2363
  */
2553
2364
  export interface CouponWithoutPromoCodes {
@@ -2655,15 +2466,7 @@ declare namespace Components {
2655
2466
  /**
2656
2467
  * example:
2657
2468
  * {
2658
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
2659
- * "_org": "123",
2660
- * "_schema": "contact",
2661
- * "_tags": [
2662
- * "example",
2663
- * "mock"
2664
- * ],
2665
- * "_created_at": "2021-02-09T12:41:43.662Z",
2666
- * "_updated_at": "2021-02-09T12:41:43.662Z"
2469
+ * "$ref": "#/components/examples/entity-item/value"
2667
2470
  * }
2668
2471
  */
2669
2472
  export interface EntityItem {
@@ -2710,10 +2513,7 @@ declare namespace Components {
2710
2513
  /**
2711
2514
  * example:
2712
2515
  * {
2713
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2714
- * "frequency_unit": "weekly",
2715
- * "amount_total": 1000,
2716
- * "amount_total_decimal": "10.00"
2516
+ * "$ref": "#/components/examples/external-fee-mapping/value"
2717
2517
  * }
2718
2518
  */
2719
2519
  export interface ExternalFeeMapping {
@@ -2724,22 +2524,14 @@ declare namespace Components {
2724
2524
  }
2725
2525
  /**
2726
2526
  * example:
2727
- * [
2728
- * {
2729
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2730
- * "frequency_unit": "weekly",
2731
- * "amount_total": 1000,
2732
- * "amount_total_decimal": "10.00"
2733
- * }
2734
- * ]
2527
+ * {
2528
+ * "$ref": "#/components/examples/external-fee-mappings/value"
2529
+ * }
2735
2530
  */
2736
2531
  export type ExternalFeeMappings = /**
2737
2532
  * example:
2738
2533
  * {
2739
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2740
- * "frequency_unit": "weekly",
2741
- * "amount_total": 1000,
2742
- * "amount_total_decimal": "10.00"
2534
+ * "$ref": "#/components/examples/external-fee-mapping/value"
2743
2535
  * }
2744
2536
  */
2745
2537
  ExternalFeeMapping[];
@@ -2850,18 +2642,106 @@ declare namespace Components {
2850
2642
  */
2851
2643
  export interface HistoricMarketPriceRecord {
2852
2644
  /**
2853
- * Cost in Cents, e.g. 12.3 for 12,3 Cents = 0.123€.
2854
- * example:
2855
- * 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
2856
2713
  */
2857
- unit_amount: number;
2714
+ renewal_duration_unit?: "weeks" | "months" | "years";
2858
2715
  /**
2859
- * 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
2860
2728
  * example:
2861
- * 0.123
2729
+ * {
2730
+ * "$ref": "#/components/examples/price"
2731
+ * }
2862
2732
  */
2863
- unit_amount_decimal: string;
2864
- 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. */ /**
2865
2745
  * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2866
2746
  * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2867
2747
  *
@@ -2870,14 +2750,33 @@ declare namespace Components {
2870
2750
  */
2871
2751
  Currency;
2872
2752
  /**
2873
- * ISO 8601 timestamp of the price record in UTC.
2753
+ * The flag for prices that contain price components.
2874
2754
  */
2875
- timestamp: string; // date-time
2876
- }
2877
- export interface HistoricMarketPricesResult {
2878
- market: /* The market for a spot market price. */ SpotMarketType;
2879
- bidding_zone: /* The bidding zone for a spot market price. */ SpotMarketBiddingZone;
2880
- 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[];
2881
2780
  }
2882
2781
  /**
2883
2782
  * The auth credentials for external integrations
@@ -2971,6 +2870,103 @@ declare namespace Components {
2971
2870
  */
2972
2871
  value?: string;
2973
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
+ }
2974
2970
  export interface OAuthCredentials {
2975
2971
  /**
2976
2972
  * The OAuth client ID
@@ -3029,6 +3025,11 @@ declare namespace Components {
3029
3025
  */
3030
3026
  base_url?: string;
3031
3027
  }
3028
+ export interface Offer {
3029
+ product_id?: string;
3030
+ price_id?: string;
3031
+ target_id?: string;
3032
+ }
3032
3033
  /**
3033
3034
  * The opportunity entity
3034
3035
  * example:
@@ -3555,20 +3556,7 @@ declare namespace Components {
3555
3556
  * the tax configuration
3556
3557
  * example:
3557
3558
  * {
3558
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3559
- * "type": "VAT",
3560
- * "description": "Tax description",
3561
- * "active": "true",
3562
- * "region": "DE",
3563
- * "region_label": "Germany",
3564
- * "_org": "123",
3565
- * "_schema": "tax",
3566
- * "_tags": [
3567
- * "example",
3568
- * "mock"
3569
- * ],
3570
- * "_created_at": "2021-02-09T12:41:43.662Z",
3571
- * "_updated_at": "2021-02-09T12:41:43.662Z"
3559
+ * "$ref": "#/components/examples/tax/value"
3572
3560
  * }
3573
3561
  */
3574
3562
  Tax[];
@@ -3770,14 +3758,7 @@ declare namespace Components {
3770
3758
  /**
3771
3759
  * example:
3772
3760
  * {
3773
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
3774
- * "frequency_unit": "weekly",
3775
- * "value": 1000.245,
3776
- * "name": "avg consumption",
3777
- * "metadata": {
3778
- * "journey_title": "energy journey",
3779
- * "step_name": "avg consumption picker"
3780
- * }
3761
+ * "$ref": "#/components/examples/price-input-mapping/value"
3781
3762
  * }
3782
3763
  */
3783
3764
  export interface PriceInputMapping {
@@ -3807,14 +3788,7 @@ declare namespace Components {
3807
3788
  export type PriceInputMappings = /**
3808
3789
  * example:
3809
3790
  * {
3810
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
3811
- * "frequency_unit": "weekly",
3812
- * "value": 1000.245,
3813
- * "name": "avg consumption",
3814
- * "metadata": {
3815
- * "journey_title": "energy journey",
3816
- * "step_name": "avg consumption picker"
3817
- * }
3791
+ * "$ref": "#/components/examples/price-input-mapping/value"
3818
3792
  * }
3819
3793
  */
3820
3794
  PriceInputMapping[];
@@ -4141,14 +4115,7 @@ declare namespace Components {
4141
4115
  * "$ref": "#/components/examples/price"
4142
4116
  * }
4143
4117
  */
4144
- Price | /**
4145
- * The price entity schema for dynamic pricing
4146
- * example:
4147
- * {
4148
- * "$ref": "#/components/examples/composite-price"
4149
- * }
4150
- */
4151
- CompositePrice;
4118
+ Price | /* The composite price entity */ CompositePrice;
4152
4119
  /**
4153
4120
  * The taxes applied to the price item.
4154
4121
  */
@@ -4160,7 +4127,7 @@ declare namespace Components {
4160
4127
  /**
4161
4128
  * The coupons applicable to the price item
4162
4129
  */
4163
- _coupons?: (/* The coupon configuration */ CouponItem)[];
4130
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
4164
4131
  /**
4165
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'.
4166
4133
  */
@@ -4176,7 +4143,7 @@ declare namespace Components {
4176
4143
  /**
4177
4144
  * The price billing period.
4178
4145
  */
4179
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
4146
+ billing_period?: /* The price billing period. */ BillingPeriod;
4180
4147
  pricing_model: /**
4181
4148
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
4182
4149
  * - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
@@ -4343,14 +4310,9 @@ declare namespace Components {
4343
4310
  };
4344
4311
  external_fees_mappings?: /**
4345
4312
  * example:
4346
- * [
4347
- * {
4348
- * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
4349
- * "frequency_unit": "weekly",
4350
- * "amount_total": 1000,
4351
- * "amount_total_decimal": "10.00"
4352
- * }
4353
- * ]
4313
+ * {
4314
+ * "$ref": "#/components/examples/external-fee-mappings/value"
4315
+ * }
4354
4316
  */
4355
4317
  ExternalFeeMappings;
4356
4318
  external_fees_metadata?: ExternalFeeMetadata;
@@ -4371,7 +4333,7 @@ declare namespace Components {
4371
4333
  /**
4372
4334
  * The coupons applicable to the price item
4373
4335
  */
4374
- _coupons?: (/* The coupon configuration */ CouponItem)[];
4336
+ _coupons?: (/* The shared properties for the coupon entity and coupon item entity */ CouponItem)[];
4375
4337
  /**
4376
4338
  * One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
4377
4339
  */
@@ -4379,7 +4341,7 @@ declare namespace Components {
4379
4341
  /**
4380
4342
  * The price billing period.
4381
4343
  */
4382
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
4344
+ billing_period?: /* The price billing period. */ BillingPeriod;
4383
4345
  /**
4384
4346
  * The unit amount value
4385
4347
  */
@@ -4508,20 +4470,7 @@ declare namespace Components {
4508
4470
  * the tax configuration
4509
4471
  * example:
4510
4472
  * {
4511
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
4512
- * "type": "VAT",
4513
- * "description": "Tax description",
4514
- * "active": "true",
4515
- * "region": "DE",
4516
- * "region_label": "Germany",
4517
- * "_org": "123",
4518
- * "_schema": "tax",
4519
- * "_tags": [
4520
- * "example",
4521
- * "mock"
4522
- * ],
4523
- * "_created_at": "2021-02-09T12:41:43.662Z",
4524
- * "_updated_at": "2021-02-09T12:41:43.662Z"
4473
+ * "$ref": "#/components/examples/tax/value"
4525
4474
  * }
4526
4475
  */
4527
4476
  Tax[];
@@ -4855,10 +4804,80 @@ declare namespace Components {
4855
4804
  /**
4856
4805
  * example:
4857
4806
  * {
4858
- * "id": "123e4567-e89b-12d3-a456-426614174000",
4859
- * "code": "123456",
4860
- * "has_usage_limit": true,
4861
- * "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"
4862
4881
  * }
4863
4882
  */
4864
4883
  export interface PromoCode {
@@ -4884,36 +4903,13 @@ declare namespace Components {
4884
4903
  */
4885
4904
  export interface PromoCodeValidationResponse {
4886
4905
  matched_coupons?: /**
4887
- * The coupon configuration
4906
+ * The base for the coupon entity without promo codes
4888
4907
  * example:
4889
4908
  * {
4890
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
4891
- * "_schema": "coupon",
4892
- * "_org": "org_12345",
4893
- * "_created_at": "2024-01-15T10:00:00.000Z",
4894
- * "_updated_at": "2024-01-20T12:00:00.000Z",
4895
- * "_title": "Sample Coupon",
4896
- * "name": "Sample Coupon",
4897
- * "type": "fixed",
4898
- * "fixed_value": 555,
4899
- * "fixed_value_currency": "USD",
4900
- * "fixed_value_decimal": "5.55",
4901
- * "active": true,
4902
- * "prices": {
4903
- * "$relation": [
4904
- * {
4905
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
4906
- * "_tags": [
4907
- * "discount",
4908
- * "special"
4909
- * ],
4910
- * "_schema": "price"
4911
- * }
4912
- * ]
4913
- * }
4909
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
4914
4910
  * }
4915
4911
  */
4916
- BaseCoupon[];
4912
+ CouponWithoutPromoCodes[];
4917
4913
  }
4918
4914
  /**
4919
4915
  * The provider entity
@@ -4995,7 +4991,7 @@ declare namespace Components {
4995
4991
  /**
4996
4992
  * The price billing period.
4997
4993
  */
4998
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
4994
+ billing_period?: /* The price billing period. */ BillingPeriod;
4999
4995
  /**
5000
4996
  * The unit gross amount value.
5001
4997
  */
@@ -5088,7 +5084,7 @@ declare namespace Components {
5088
5084
  /**
5089
5085
  * The price billing period.
5090
5086
  */
5091
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
5087
+ billing_period?: /* The price billing period. */ BillingPeriod;
5092
5088
  /**
5093
5089
  * The unit gross amount value.
5094
5090
  */
@@ -5113,7 +5109,7 @@ declare namespace Components {
5113
5109
  /**
5114
5110
  * The price billing period.
5115
5111
  */
5116
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
5112
+ billing_period?: /* The price billing period. */ BillingPeriod;
5117
5113
  /**
5118
5114
  * Total amount of items with same recurrence.
5119
5115
  */
@@ -5142,33 +5138,10 @@ declare namespace Components {
5142
5138
  * The coupons that got redeemed with received the code
5143
5139
  */
5144
5140
  coupons: /**
5145
- * The coupon configuration
5141
+ * The base for the coupon entity without promo codes
5146
5142
  * example:
5147
5143
  * {
5148
- * "_id": "123e4567-e89b-12d3-a456-426614174000",
5149
- * "_schema": "coupon",
5150
- * "_org": "org_12345",
5151
- * "_created_at": "2024-01-15T10:00:00.000Z",
5152
- * "_updated_at": "2024-01-20T12:00:00.000Z",
5153
- * "_title": "Sample Coupon",
5154
- * "name": "Sample Coupon",
5155
- * "type": "fixed",
5156
- * "fixed_value": 555,
5157
- * "fixed_value_currency": "USD",
5158
- * "fixed_value_decimal": "5.55",
5159
- * "active": true,
5160
- * "prices": {
5161
- * "$relation": [
5162
- * {
5163
- * "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
5164
- * "_tags": [
5165
- * "discount",
5166
- * "special"
5167
- * ],
5168
- * "_schema": "price"
5169
- * }
5170
- * ]
5171
- * }
5144
+ * "$ref": "#/components/examples/coupon-without-promo-codes/value"
5172
5145
  * }
5173
5146
  */
5174
5147
  CouponWithoutPromoCodes[];
@@ -5270,20 +5243,7 @@ declare namespace Components {
5270
5243
  * the tax configuration
5271
5244
  * example:
5272
5245
  * {
5273
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
5274
- * "type": "VAT",
5275
- * "description": "Tax description",
5276
- * "active": "true",
5277
- * "region": "DE",
5278
- * "region_label": "Germany",
5279
- * "_org": "123",
5280
- * "_schema": "tax",
5281
- * "_tags": [
5282
- * "example",
5283
- * "mock"
5284
- * ],
5285
- * "_created_at": "2021-02-09T12:41:43.662Z",
5286
- * "_updated_at": "2021-02-09T12:41:43.662Z"
5246
+ * "$ref": "#/components/examples/tax/value"
5287
5247
  * }
5288
5248
  */
5289
5249
  export interface Tax {
@@ -5335,20 +5295,7 @@ declare namespace Components {
5335
5295
  * the tax configuration
5336
5296
  * example:
5337
5297
  * {
5338
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
5339
- * "type": "VAT",
5340
- * "description": "Tax description",
5341
- * "active": "true",
5342
- * "region": "DE",
5343
- * "region_label": "Germany",
5344
- * "_org": "123",
5345
- * "_schema": "tax",
5346
- * "_tags": [
5347
- * "example",
5348
- * "mock"
5349
- * ],
5350
- * "_created_at": "2021-02-09T12:41:43.662Z",
5351
- * "_updated_at": "2021-02-09T12:41:43.662Z"
5298
+ * "$ref": "#/components/examples/tax/value"
5352
5299
  * }
5353
5300
  */
5354
5301
  Tax;
@@ -5385,20 +5332,7 @@ declare namespace Components {
5385
5332
  * the tax configuration
5386
5333
  * example:
5387
5334
  * {
5388
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
5389
- * "type": "VAT",
5390
- * "description": "Tax description",
5391
- * "active": "true",
5392
- * "region": "DE",
5393
- * "region_label": "Germany",
5394
- * "_org": "123",
5395
- * "_schema": "tax",
5396
- * "_tags": [
5397
- * "example",
5398
- * "mock"
5399
- * ],
5400
- * "_created_at": "2021-02-09T12:41:43.662Z",
5401
- * "_updated_at": "2021-02-09T12:41:43.662Z"
5335
+ * "$ref": "#/components/examples/tax/value"
5402
5336
  * }
5403
5337
  */
5404
5338
  Tax;
@@ -5668,6 +5602,19 @@ declare namespace Paths {
5668
5602
  export type $400 = Components.Schemas.Error;
5669
5603
  }
5670
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
+ }
5671
5618
  namespace $SaveCredentials {
5672
5619
  namespace Parameters {
5673
5620
  export type IntegrationId = Components.Schemas.IntegrationId;
@@ -6052,6 +5999,16 @@ export interface OperationMethods {
6052
5999
  data?: any,
6053
6000
  config?: AxiosRequestConfig
6054
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>
6055
6012
  }
6056
6013
 
6057
6014
  export interface PathsDictionary {
@@ -6282,6 +6239,18 @@ export interface PathsDictionary {
6282
6239
  config?: AxiosRequestConfig
6283
6240
  ): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
6284
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
+ }
6285
6254
  }
6286
6255
 
6287
6256
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
@@ -6295,7 +6264,7 @@ export type AvailabilityLocation = Components.Schemas.AvailabilityLocation;
6295
6264
  export type AvailabilityResult = Components.Schemas.AvailabilityResult;
6296
6265
  export type AverageMarketPriceRecord = Components.Schemas.AverageMarketPriceRecord;
6297
6266
  export type AverageMarketPriceResult = Components.Schemas.AverageMarketPriceResult;
6298
- export type BaseCoupon = Components.Schemas.BaseCoupon;
6267
+ export type BaseCompositePrice = Components.Schemas.BaseCompositePrice;
6299
6268
  export type BaseCouponCommon = Components.Schemas.BaseCouponCommon;
6300
6269
  export type BaseMarketPriceRecord = Components.Schemas.BaseMarketPriceRecord;
6301
6270
  export type BasePriceItem = Components.Schemas.BasePriceItem;
@@ -6344,14 +6313,17 @@ export type File = Components.Schemas.File;
6344
6313
  export type GasConcessionType = Components.Schemas.GasConcessionType;
6345
6314
  export type HistoricMarketPriceRecord = Components.Schemas.HistoricMarketPriceRecord;
6346
6315
  export type HistoricMarketPricesResult = Components.Schemas.HistoricMarketPricesResult;
6316
+ export type HydratedCompositePrice = Components.Schemas.HydratedCompositePrice;
6347
6317
  export type IntegrationAuthCredentials = Components.Schemas.IntegrationAuthCredentials;
6348
6318
  export type IntegrationCredentialsResult = Components.Schemas.IntegrationCredentialsResult;
6349
6319
  export type IntegrationId = Components.Schemas.IntegrationId;
6350
6320
  export type JourneyContext = Components.Schemas.JourneyContext;
6351
6321
  export type MarkupPricingModel = Components.Schemas.MarkupPricingModel;
6352
6322
  export type MetaData = Components.Schemas.MetaData;
6323
+ export type NonHydratedCompositePrice = Components.Schemas.NonHydratedCompositePrice;
6353
6324
  export type OAuthCredentials = Components.Schemas.OAuthCredentials;
6354
6325
  export type OAuthIntegration = Components.Schemas.OAuthIntegration;
6326
+ export type Offer = Components.Schemas.Offer;
6355
6327
  export type Opportunity = Components.Schemas.Opportunity;
6356
6328
  export type OpportunitySource = Components.Schemas.OpportunitySource;
6357
6329
  export type Order = Components.Schemas.Order;
@@ -6381,6 +6353,9 @@ export type PricingDetailsResponse = Components.Schemas.PricingDetailsResponse;
6381
6353
  export type PricingModel = Components.Schemas.PricingModel;
6382
6354
  export type Product = Components.Schemas.Product;
6383
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;
6384
6359
  export type PromoCode = Components.Schemas.PromoCode;
6385
6360
  export type PromoCodeValidationResponse = Components.Schemas.PromoCodeValidationResponse;
6386
6361
  export type Provider = Components.Schemas.Provider;