@epilot/pricing-client 3.33.1 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/openapi-runtime.json +0 -0
- package/dist/openapi.d.ts +738 -297
- package/dist/openapi.json +87 -77
- package/package.json +3 -3
- package/LICENSE +0 -21
package/dist/openapi.d.ts
CHANGED
|
@@ -240,15 +240,158 @@ declare namespace Components {
|
|
|
240
240
|
* Total amount before discount is applied as a string with all the decimal places.
|
|
241
241
|
*/
|
|
242
242
|
before_discount_amount_total_decimal?: string;
|
|
243
|
+
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
244
|
+
/**
|
|
245
|
+
* The quantity of products being purchased.
|
|
246
|
+
*/
|
|
247
|
+
quantity?: number;
|
|
248
|
+
/**
|
|
249
|
+
* The id of the product.
|
|
250
|
+
*/
|
|
251
|
+
product_id?: string;
|
|
252
|
+
/**
|
|
253
|
+
* The id of the price.
|
|
254
|
+
*/
|
|
255
|
+
price_id?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The flag for prices that contain price components.
|
|
258
|
+
*/
|
|
259
|
+
is_composite_price?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
262
|
+
*/
|
|
263
|
+
description?: string;
|
|
264
|
+
price_mappings?: /**
|
|
265
|
+
* example:
|
|
266
|
+
* [
|
|
267
|
+
* {
|
|
268
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
269
|
+
* "frequency_unit": "weekly",
|
|
270
|
+
* "value": 1000.245,
|
|
271
|
+
* "name": "avg consumption",
|
|
272
|
+
* "metadata": {
|
|
273
|
+
* "journey_title": "energy journey",
|
|
274
|
+
* "step_name": "avg consumption picker"
|
|
275
|
+
* }
|
|
276
|
+
* }
|
|
277
|
+
* ]
|
|
278
|
+
*/
|
|
279
|
+
PriceInputMappings;
|
|
280
|
+
/**
|
|
281
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
282
|
+
*/
|
|
283
|
+
is_tax_inclusive?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* The snapshot of the product.
|
|
286
|
+
* example:
|
|
287
|
+
* {
|
|
288
|
+
* "$ref": "#/components/examples/product"
|
|
289
|
+
* }
|
|
290
|
+
*/
|
|
291
|
+
_product?: {
|
|
292
|
+
[name: string]: any;
|
|
293
|
+
/**
|
|
294
|
+
* The description for the product
|
|
295
|
+
*/
|
|
296
|
+
description?: string;
|
|
297
|
+
/**
|
|
298
|
+
* The product code
|
|
299
|
+
*/
|
|
300
|
+
code?: string;
|
|
301
|
+
/**
|
|
302
|
+
* The type of Product:
|
|
303
|
+
*
|
|
304
|
+
* | type | description |
|
|
305
|
+
* |----| ----|
|
|
306
|
+
* | `product` | Represents a physical good |
|
|
307
|
+
* | `service` | Represents a service or virtual product |
|
|
308
|
+
*
|
|
309
|
+
*/
|
|
310
|
+
type?: "product" | "service";
|
|
311
|
+
/**
|
|
312
|
+
* The product main name
|
|
313
|
+
*/
|
|
314
|
+
name?: string;
|
|
315
|
+
feature?: {
|
|
316
|
+
/**
|
|
317
|
+
* An arbitrary set of tags attached to a feature
|
|
318
|
+
*/
|
|
319
|
+
_tags?: string[];
|
|
320
|
+
feature?: string;
|
|
321
|
+
}[];
|
|
322
|
+
/**
|
|
323
|
+
* Stores references to products that can be cross sold with the current product.
|
|
324
|
+
*/
|
|
325
|
+
cross_sellable_products?: {
|
|
326
|
+
$relation?: EntityRelation[];
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* Stores references to a set of file images of the product
|
|
330
|
+
*/
|
|
331
|
+
product_images?: {
|
|
332
|
+
$relation?: EntityRelation[];
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* Stores references to a set of files downloadable from the product.
|
|
336
|
+
* e.g: tech specifications, quality control sheets, privacy policy agreements
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
339
|
+
product_downloads?: {
|
|
340
|
+
$relation?: EntityRelation[];
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
|
|
344
|
+
*/
|
|
345
|
+
price_options?: {
|
|
346
|
+
$relation?: EntityRelation[];
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Stores references to the availability files that define where this product is available.
|
|
350
|
+
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
|
|
351
|
+
*
|
|
352
|
+
*/
|
|
353
|
+
_availability_files?: File[];
|
|
354
|
+
/**
|
|
355
|
+
* The product id
|
|
356
|
+
*/
|
|
357
|
+
_id?: string;
|
|
358
|
+
/**
|
|
359
|
+
* The autogenerated product title
|
|
360
|
+
*/
|
|
361
|
+
_title?: string;
|
|
362
|
+
/**
|
|
363
|
+
* The organization id the product belongs to
|
|
364
|
+
*/
|
|
365
|
+
_org_id?: string;
|
|
366
|
+
/**
|
|
367
|
+
* The product creation date
|
|
368
|
+
*/
|
|
369
|
+
_created_at?: string;
|
|
370
|
+
/**
|
|
371
|
+
* The product last update date
|
|
372
|
+
*/
|
|
373
|
+
_updated_at?: string;
|
|
374
|
+
};
|
|
243
375
|
/**
|
|
244
376
|
* price item id
|
|
245
377
|
*/
|
|
246
378
|
_id?: string;
|
|
247
|
-
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
248
379
|
/**
|
|
249
380
|
* The unit amount value
|
|
250
381
|
*/
|
|
251
382
|
unit_amount?: number;
|
|
383
|
+
/**
|
|
384
|
+
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
385
|
+
*/
|
|
386
|
+
unit_amount_decimal?: string;
|
|
387
|
+
/**
|
|
388
|
+
* The discount amount applied for each unit
|
|
389
|
+
*/
|
|
390
|
+
unit_discount_amount?: number;
|
|
391
|
+
/**
|
|
392
|
+
* The discount amount applied for each unit represented as a decimal string
|
|
393
|
+
*/
|
|
394
|
+
unit_discount_amount_decimal?: string;
|
|
252
395
|
/**
|
|
253
396
|
* The unit gross amount value.
|
|
254
397
|
*/
|
|
@@ -257,10 +400,6 @@ declare namespace Components {
|
|
|
257
400
|
* The unit gross amount value.
|
|
258
401
|
*/
|
|
259
402
|
unit_amount_gross_decimal?: string;
|
|
260
|
-
/**
|
|
261
|
-
* Total tax amount for this line item.
|
|
262
|
-
*/
|
|
263
|
-
amount_tax?: number;
|
|
264
403
|
/**
|
|
265
404
|
* Net unit amount without taxes or discounts.
|
|
266
405
|
*/
|
|
@@ -270,9 +409,17 @@ declare namespace Components {
|
|
|
270
409
|
*/
|
|
271
410
|
unit_amount_net_decimal?: string;
|
|
272
411
|
/**
|
|
273
|
-
* The
|
|
412
|
+
* The net discount amount applied for each unit
|
|
274
413
|
*/
|
|
275
|
-
|
|
414
|
+
unit_discount_amount_net?: number;
|
|
415
|
+
/**
|
|
416
|
+
* The net discount amount applied for each unit represented as a decimal string
|
|
417
|
+
*/
|
|
418
|
+
unit_discount_amount_net_decimal?: string;
|
|
419
|
+
/**
|
|
420
|
+
* Total tax amount for this line item.
|
|
421
|
+
*/
|
|
422
|
+
amount_tax?: number;
|
|
276
423
|
currency?: /**
|
|
277
424
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
278
425
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -281,26 +428,6 @@ declare namespace Components {
|
|
|
281
428
|
* EUR
|
|
282
429
|
*/
|
|
283
430
|
Currency;
|
|
284
|
-
/**
|
|
285
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
286
|
-
*/
|
|
287
|
-
description?: string;
|
|
288
|
-
/**
|
|
289
|
-
* The quantity of products being purchased.
|
|
290
|
-
*/
|
|
291
|
-
quantity?: number;
|
|
292
|
-
/**
|
|
293
|
-
* The id of the product.
|
|
294
|
-
*/
|
|
295
|
-
product_id?: string;
|
|
296
|
-
/**
|
|
297
|
-
* The id of the price.
|
|
298
|
-
*/
|
|
299
|
-
price_id?: string;
|
|
300
|
-
/**
|
|
301
|
-
* The flag for prices that contain price components.
|
|
302
|
-
*/
|
|
303
|
-
is_composite_price?: boolean;
|
|
304
431
|
/**
|
|
305
432
|
* The price snapshot data.
|
|
306
433
|
*/
|
|
@@ -319,14 +446,6 @@ declare namespace Components {
|
|
|
319
446
|
* }
|
|
320
447
|
*/
|
|
321
448
|
CompositePrice;
|
|
322
|
-
_product?: /**
|
|
323
|
-
* The product entity
|
|
324
|
-
* example:
|
|
325
|
-
* {
|
|
326
|
-
* "$ref": "#/components/examples/product"
|
|
327
|
-
* }
|
|
328
|
-
*/
|
|
329
|
-
Product;
|
|
330
449
|
/**
|
|
331
450
|
* The taxes applied to the price item.
|
|
332
451
|
*/
|
|
@@ -335,40 +454,36 @@ declare namespace Components {
|
|
|
335
454
|
* The sum of amounts of the price items by recurrence.
|
|
336
455
|
*/
|
|
337
456
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
338
|
-
price_mappings?: /**
|
|
339
|
-
* example:
|
|
340
|
-
* [
|
|
341
|
-
* {
|
|
342
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
343
|
-
* "frequency_unit": "weekly",
|
|
344
|
-
* "value": 1000.245,
|
|
345
|
-
* "name": "avg consumption",
|
|
346
|
-
* "metadata": {
|
|
347
|
-
* "journey_title": "energy journey",
|
|
348
|
-
* "step_name": "avg consumption picker"
|
|
349
|
-
* }
|
|
350
|
-
* }
|
|
351
|
-
* ]
|
|
352
|
-
*/
|
|
353
|
-
PriceInputMappings;
|
|
354
457
|
/**
|
|
355
458
|
* 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'.
|
|
356
459
|
*/
|
|
357
460
|
on_request_approved?: boolean;
|
|
358
|
-
/**
|
|
359
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
360
|
-
*/
|
|
361
|
-
is_tax_inclusive?: boolean;
|
|
362
461
|
}
|
|
363
462
|
/**
|
|
364
|
-
* Represents
|
|
463
|
+
* Represents the common keys in BasePriceItem and BasePriceItemDto
|
|
365
464
|
*/
|
|
366
|
-
export interface
|
|
465
|
+
export interface BasePriceItemCommon {
|
|
367
466
|
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
368
467
|
/**
|
|
369
468
|
* The quantity of products being purchased.
|
|
370
469
|
*/
|
|
371
470
|
quantity?: number;
|
|
471
|
+
/**
|
|
472
|
+
* The id of the product.
|
|
473
|
+
*/
|
|
474
|
+
product_id?: string;
|
|
475
|
+
/**
|
|
476
|
+
* The id of the price.
|
|
477
|
+
*/
|
|
478
|
+
price_id?: string;
|
|
479
|
+
/**
|
|
480
|
+
* The flag for prices that contain price components.
|
|
481
|
+
*/
|
|
482
|
+
is_composite_price?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
485
|
+
*/
|
|
486
|
+
description?: string;
|
|
372
487
|
/**
|
|
373
488
|
* Price mapping information required to compute totals
|
|
374
489
|
*/
|
|
@@ -389,28 +504,110 @@ declare namespace Components {
|
|
|
389
504
|
*/
|
|
390
505
|
PriceInputMappings;
|
|
391
506
|
/**
|
|
392
|
-
*
|
|
393
|
-
*/
|
|
394
|
-
external_fees_mappings?: /**
|
|
395
|
-
* example:
|
|
396
|
-
* [
|
|
397
|
-
* {
|
|
398
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
399
|
-
* "frequency_unit": "weekly",
|
|
400
|
-
* "amount_total": 1000,
|
|
401
|
-
* "amount_total_decimal": "10.00"
|
|
402
|
-
* }
|
|
403
|
-
* ]
|
|
507
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
404
508
|
*/
|
|
405
|
-
|
|
509
|
+
is_tax_inclusive?: boolean;
|
|
406
510
|
/**
|
|
407
|
-
*
|
|
511
|
+
* The snapshot of the product.
|
|
512
|
+
* example:
|
|
513
|
+
* {
|
|
514
|
+
* "$ref": "#/components/examples/product"
|
|
515
|
+
* }
|
|
408
516
|
*/
|
|
409
|
-
|
|
517
|
+
_product?: {
|
|
518
|
+
[name: string]: any;
|
|
519
|
+
/**
|
|
520
|
+
* The description for the product
|
|
521
|
+
*/
|
|
522
|
+
description?: string;
|
|
523
|
+
/**
|
|
524
|
+
* The product code
|
|
525
|
+
*/
|
|
526
|
+
code?: string;
|
|
527
|
+
/**
|
|
528
|
+
* The type of Product:
|
|
529
|
+
*
|
|
530
|
+
* | type | description |
|
|
531
|
+
* |----| ----|
|
|
532
|
+
* | `product` | Represents a physical good |
|
|
533
|
+
* | `service` | Represents a service or virtual product |
|
|
534
|
+
*
|
|
535
|
+
*/
|
|
536
|
+
type?: "product" | "service";
|
|
537
|
+
/**
|
|
538
|
+
* The product main name
|
|
539
|
+
*/
|
|
540
|
+
name?: string;
|
|
541
|
+
feature?: {
|
|
542
|
+
/**
|
|
543
|
+
* An arbitrary set of tags attached to a feature
|
|
544
|
+
*/
|
|
545
|
+
_tags?: string[];
|
|
546
|
+
feature?: string;
|
|
547
|
+
}[];
|
|
548
|
+
/**
|
|
549
|
+
* Stores references to products that can be cross sold with the current product.
|
|
550
|
+
*/
|
|
551
|
+
cross_sellable_products?: {
|
|
552
|
+
$relation?: EntityRelation[];
|
|
553
|
+
};
|
|
554
|
+
/**
|
|
555
|
+
* Stores references to a set of file images of the product
|
|
556
|
+
*/
|
|
557
|
+
product_images?: {
|
|
558
|
+
$relation?: EntityRelation[];
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Stores references to a set of files downloadable from the product.
|
|
562
|
+
* e.g: tech specifications, quality control sheets, privacy policy agreements
|
|
563
|
+
*
|
|
564
|
+
*/
|
|
565
|
+
product_downloads?: {
|
|
566
|
+
$relation?: EntityRelation[];
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
|
|
570
|
+
*/
|
|
571
|
+
price_options?: {
|
|
572
|
+
$relation?: EntityRelation[];
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* Stores references to the availability files that define where this product is available.
|
|
576
|
+
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
|
|
577
|
+
*
|
|
578
|
+
*/
|
|
579
|
+
_availability_files?: File[];
|
|
580
|
+
/**
|
|
581
|
+
* The product id
|
|
582
|
+
*/
|
|
583
|
+
_id?: string;
|
|
584
|
+
/**
|
|
585
|
+
* The autogenerated product title
|
|
586
|
+
*/
|
|
587
|
+
_title?: string;
|
|
588
|
+
/**
|
|
589
|
+
* The organization id the product belongs to
|
|
590
|
+
*/
|
|
591
|
+
_org_id?: string;
|
|
592
|
+
/**
|
|
593
|
+
* The product creation date
|
|
594
|
+
*/
|
|
595
|
+
_created_at?: string;
|
|
596
|
+
/**
|
|
597
|
+
* The product last update date
|
|
598
|
+
*/
|
|
599
|
+
_updated_at?: string;
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Represents a valid base price item from a client.
|
|
604
|
+
*/
|
|
605
|
+
export interface BasePriceItemDto {
|
|
606
|
+
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
410
607
|
/**
|
|
411
|
-
*
|
|
608
|
+
* The quantity of products being purchased.
|
|
412
609
|
*/
|
|
413
|
-
|
|
610
|
+
quantity?: number;
|
|
414
611
|
/**
|
|
415
612
|
* The id of the product.
|
|
416
613
|
*/
|
|
@@ -420,17 +617,33 @@ declare namespace Components {
|
|
|
420
617
|
*/
|
|
421
618
|
price_id?: string;
|
|
422
619
|
/**
|
|
423
|
-
* The
|
|
620
|
+
* The flag for prices that contain price components.
|
|
424
621
|
*/
|
|
425
|
-
|
|
622
|
+
is_composite_price?: boolean;
|
|
426
623
|
/**
|
|
427
|
-
*
|
|
624
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
428
625
|
*/
|
|
429
|
-
|
|
626
|
+
description?: string;
|
|
627
|
+
price_mappings?: /**
|
|
628
|
+
* example:
|
|
629
|
+
* [
|
|
630
|
+
* {
|
|
631
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
632
|
+
* "frequency_unit": "weekly",
|
|
633
|
+
* "value": 1000.245,
|
|
634
|
+
* "name": "avg consumption",
|
|
635
|
+
* "metadata": {
|
|
636
|
+
* "journey_title": "energy journey",
|
|
637
|
+
* "step_name": "avg consumption picker"
|
|
638
|
+
* }
|
|
639
|
+
* }
|
|
640
|
+
* ]
|
|
641
|
+
*/
|
|
642
|
+
PriceInputMappings;
|
|
430
643
|
/**
|
|
431
|
-
*
|
|
644
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
432
645
|
*/
|
|
433
|
-
|
|
646
|
+
is_tax_inclusive?: boolean;
|
|
434
647
|
/**
|
|
435
648
|
* The snapshot of the product.
|
|
436
649
|
* example:
|
|
@@ -522,6 +735,31 @@ declare namespace Components {
|
|
|
522
735
|
*/
|
|
523
736
|
_updated_at?: string;
|
|
524
737
|
};
|
|
738
|
+
external_fees_mappings?: /**
|
|
739
|
+
* example:
|
|
740
|
+
* [
|
|
741
|
+
* {
|
|
742
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
743
|
+
* "frequency_unit": "weekly",
|
|
744
|
+
* "amount_total": 1000,
|
|
745
|
+
* "amount_total_decimal": "10.00"
|
|
746
|
+
* }
|
|
747
|
+
* ]
|
|
748
|
+
*/
|
|
749
|
+
ExternalFeeMappings;
|
|
750
|
+
external_fees_metadata?: ExternalFeeMetadata;
|
|
751
|
+
/**
|
|
752
|
+
* The ids of the coupons applicable to the price item
|
|
753
|
+
*/
|
|
754
|
+
coupon_ids?: string[];
|
|
755
|
+
/**
|
|
756
|
+
* The taxes applied to the price item.
|
|
757
|
+
*/
|
|
758
|
+
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
759
|
+
/**
|
|
760
|
+
* The taxes applied to the price item.
|
|
761
|
+
*/
|
|
762
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
525
763
|
/**
|
|
526
764
|
* The coupons applicable to the price item
|
|
527
765
|
*/
|
|
@@ -556,10 +794,6 @@ declare namespace Components {
|
|
|
556
794
|
* }
|
|
557
795
|
*/
|
|
558
796
|
Coupon)[];
|
|
559
|
-
/**
|
|
560
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
561
|
-
*/
|
|
562
|
-
is_tax_inclusive?: boolean;
|
|
563
797
|
}
|
|
564
798
|
/**
|
|
565
799
|
* The basic auth credentials
|
|
@@ -924,26 +1158,169 @@ declare namespace Components {
|
|
|
924
1158
|
*/
|
|
925
1159
|
discount_amount_decimal?: string;
|
|
926
1160
|
/**
|
|
927
|
-
* The discount percentage, if the applied coupon had a percentage type.
|
|
1161
|
+
* The discount percentage, if the applied coupon had a percentage type.
|
|
1162
|
+
*/
|
|
1163
|
+
discount_percentage?: number;
|
|
1164
|
+
/**
|
|
1165
|
+
* Total amount before discount is applied.
|
|
1166
|
+
*/
|
|
1167
|
+
before_discount_amount_total?: number;
|
|
1168
|
+
/**
|
|
1169
|
+
* Total amount before discount is applied as a string with all the decimal places.
|
|
1170
|
+
*/
|
|
1171
|
+
before_discount_amount_total_decimal?: string;
|
|
1172
|
+
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
1173
|
+
/**
|
|
1174
|
+
* The quantity of products being purchased.
|
|
1175
|
+
*/
|
|
1176
|
+
quantity?: number;
|
|
1177
|
+
/**
|
|
1178
|
+
* The id of the product.
|
|
1179
|
+
*/
|
|
1180
|
+
product_id?: string;
|
|
1181
|
+
/**
|
|
1182
|
+
* The id of the price.
|
|
1183
|
+
*/
|
|
1184
|
+
price_id?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* The flag for prices that contain price components.
|
|
1187
|
+
*/
|
|
1188
|
+
is_composite_price?: boolean;
|
|
1189
|
+
/**
|
|
1190
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
1191
|
+
*/
|
|
1192
|
+
description?: string;
|
|
1193
|
+
price_mappings?: /**
|
|
1194
|
+
* example:
|
|
1195
|
+
* [
|
|
1196
|
+
* {
|
|
1197
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1198
|
+
* "frequency_unit": "weekly",
|
|
1199
|
+
* "value": 1000.245,
|
|
1200
|
+
* "name": "avg consumption",
|
|
1201
|
+
* "metadata": {
|
|
1202
|
+
* "journey_title": "energy journey",
|
|
1203
|
+
* "step_name": "avg consumption picker"
|
|
1204
|
+
* }
|
|
1205
|
+
* }
|
|
1206
|
+
* ]
|
|
1207
|
+
*/
|
|
1208
|
+
PriceInputMappings;
|
|
1209
|
+
/**
|
|
1210
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1211
|
+
*/
|
|
1212
|
+
is_tax_inclusive?: boolean;
|
|
1213
|
+
/**
|
|
1214
|
+
* The snapshot of the product.
|
|
1215
|
+
* example:
|
|
1216
|
+
* {
|
|
1217
|
+
* "$ref": "#/components/examples/product"
|
|
1218
|
+
* }
|
|
1219
|
+
*/
|
|
1220
|
+
_product?: {
|
|
1221
|
+
[name: string]: any;
|
|
1222
|
+
/**
|
|
1223
|
+
* The description for the product
|
|
1224
|
+
*/
|
|
1225
|
+
description?: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* The product code
|
|
1228
|
+
*/
|
|
1229
|
+
code?: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* The type of Product:
|
|
1232
|
+
*
|
|
1233
|
+
* | type | description |
|
|
1234
|
+
* |----| ----|
|
|
1235
|
+
* | `product` | Represents a physical good |
|
|
1236
|
+
* | `service` | Represents a service or virtual product |
|
|
1237
|
+
*
|
|
1238
|
+
*/
|
|
1239
|
+
type?: "product" | "service";
|
|
1240
|
+
/**
|
|
1241
|
+
* The product main name
|
|
1242
|
+
*/
|
|
1243
|
+
name?: string;
|
|
1244
|
+
feature?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* An arbitrary set of tags attached to a feature
|
|
1247
|
+
*/
|
|
1248
|
+
_tags?: string[];
|
|
1249
|
+
feature?: string;
|
|
1250
|
+
}[];
|
|
1251
|
+
/**
|
|
1252
|
+
* Stores references to products that can be cross sold with the current product.
|
|
1253
|
+
*/
|
|
1254
|
+
cross_sellable_products?: {
|
|
1255
|
+
$relation?: EntityRelation[];
|
|
1256
|
+
};
|
|
1257
|
+
/**
|
|
1258
|
+
* Stores references to a set of file images of the product
|
|
1259
|
+
*/
|
|
1260
|
+
product_images?: {
|
|
1261
|
+
$relation?: EntityRelation[];
|
|
1262
|
+
};
|
|
1263
|
+
/**
|
|
1264
|
+
* Stores references to a set of files downloadable from the product.
|
|
1265
|
+
* e.g: tech specifications, quality control sheets, privacy policy agreements
|
|
1266
|
+
*
|
|
1267
|
+
*/
|
|
1268
|
+
product_downloads?: {
|
|
1269
|
+
$relation?: EntityRelation[];
|
|
1270
|
+
};
|
|
1271
|
+
/**
|
|
1272
|
+
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
|
|
1273
|
+
*/
|
|
1274
|
+
price_options?: {
|
|
1275
|
+
$relation?: EntityRelation[];
|
|
1276
|
+
};
|
|
1277
|
+
/**
|
|
1278
|
+
* Stores references to the availability files that define where this product is available.
|
|
1279
|
+
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
|
|
1280
|
+
*
|
|
1281
|
+
*/
|
|
1282
|
+
_availability_files?: File[];
|
|
1283
|
+
/**
|
|
1284
|
+
* The product id
|
|
1285
|
+
*/
|
|
1286
|
+
_id?: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* The autogenerated product title
|
|
1289
|
+
*/
|
|
1290
|
+
_title?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* The organization id the product belongs to
|
|
1293
|
+
*/
|
|
1294
|
+
_org_id?: string;
|
|
1295
|
+
/**
|
|
1296
|
+
* The product creation date
|
|
1297
|
+
*/
|
|
1298
|
+
_created_at?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* The product last update date
|
|
1301
|
+
*/
|
|
1302
|
+
_updated_at?: string;
|
|
1303
|
+
};
|
|
1304
|
+
/**
|
|
1305
|
+
* price item id
|
|
928
1306
|
*/
|
|
929
|
-
|
|
1307
|
+
_id?: string;
|
|
930
1308
|
/**
|
|
931
|
-
*
|
|
1309
|
+
* The unit amount value
|
|
932
1310
|
*/
|
|
933
|
-
|
|
1311
|
+
unit_amount?: number;
|
|
934
1312
|
/**
|
|
935
|
-
*
|
|
1313
|
+
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
936
1314
|
*/
|
|
937
|
-
|
|
1315
|
+
unit_amount_decimal?: string;
|
|
938
1316
|
/**
|
|
939
|
-
*
|
|
1317
|
+
* The discount amount applied for each unit
|
|
940
1318
|
*/
|
|
941
|
-
|
|
942
|
-
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
1319
|
+
unit_discount_amount?: number;
|
|
943
1320
|
/**
|
|
944
|
-
* The
|
|
1321
|
+
* The discount amount applied for each unit represented as a decimal string
|
|
945
1322
|
*/
|
|
946
|
-
|
|
1323
|
+
unit_discount_amount_decimal?: string;
|
|
947
1324
|
/**
|
|
948
1325
|
* The unit gross amount value.
|
|
949
1326
|
*/
|
|
@@ -952,10 +1329,6 @@ declare namespace Components {
|
|
|
952
1329
|
* The unit gross amount value.
|
|
953
1330
|
*/
|
|
954
1331
|
unit_amount_gross_decimal?: string;
|
|
955
|
-
/**
|
|
956
|
-
* Total tax amount for this line item.
|
|
957
|
-
*/
|
|
958
|
-
amount_tax?: number;
|
|
959
1332
|
/**
|
|
960
1333
|
* Net unit amount without taxes or discounts.
|
|
961
1334
|
*/
|
|
@@ -965,9 +1338,17 @@ declare namespace Components {
|
|
|
965
1338
|
*/
|
|
966
1339
|
unit_amount_net_decimal?: string;
|
|
967
1340
|
/**
|
|
968
|
-
* The
|
|
1341
|
+
* The net discount amount applied for each unit
|
|
969
1342
|
*/
|
|
970
|
-
|
|
1343
|
+
unit_discount_amount_net?: number;
|
|
1344
|
+
/**
|
|
1345
|
+
* The net discount amount applied for each unit represented as a decimal string
|
|
1346
|
+
*/
|
|
1347
|
+
unit_discount_amount_net_decimal?: string;
|
|
1348
|
+
/**
|
|
1349
|
+
* Total tax amount for this line item.
|
|
1350
|
+
*/
|
|
1351
|
+
amount_tax?: number;
|
|
971
1352
|
currency?: /**
|
|
972
1353
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
973
1354
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -976,26 +1357,6 @@ declare namespace Components {
|
|
|
976
1357
|
* EUR
|
|
977
1358
|
*/
|
|
978
1359
|
Currency;
|
|
979
|
-
/**
|
|
980
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
981
|
-
*/
|
|
982
|
-
description?: string;
|
|
983
|
-
/**
|
|
984
|
-
* The quantity of products being purchased.
|
|
985
|
-
*/
|
|
986
|
-
quantity?: number;
|
|
987
|
-
/**
|
|
988
|
-
* The id of the product.
|
|
989
|
-
*/
|
|
990
|
-
product_id?: string;
|
|
991
|
-
/**
|
|
992
|
-
* The id of the price.
|
|
993
|
-
*/
|
|
994
|
-
price_id?: string;
|
|
995
|
-
/**
|
|
996
|
-
* The flag for prices that contain price components.
|
|
997
|
-
*/
|
|
998
|
-
is_composite_price?: boolean;
|
|
999
1360
|
/**
|
|
1000
1361
|
* The price snapshot data.
|
|
1001
1362
|
*/
|
|
@@ -1014,14 +1375,6 @@ declare namespace Components {
|
|
|
1014
1375
|
* }
|
|
1015
1376
|
*/
|
|
1016
1377
|
CompositePrice;
|
|
1017
|
-
_product?: /**
|
|
1018
|
-
* The product entity
|
|
1019
|
-
* example:
|
|
1020
|
-
* {
|
|
1021
|
-
* "$ref": "#/components/examples/product"
|
|
1022
|
-
* }
|
|
1023
|
-
*/
|
|
1024
|
-
Product;
|
|
1025
1378
|
/**
|
|
1026
1379
|
* The taxes applied to the price item.
|
|
1027
1380
|
*/
|
|
@@ -1030,30 +1383,10 @@ declare namespace Components {
|
|
|
1030
1383
|
* The sum of amounts of the price items by recurrence.
|
|
1031
1384
|
*/
|
|
1032
1385
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
1033
|
-
price_mappings?: /**
|
|
1034
|
-
* example:
|
|
1035
|
-
* [
|
|
1036
|
-
* {
|
|
1037
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1038
|
-
* "frequency_unit": "weekly",
|
|
1039
|
-
* "value": 1000.245,
|
|
1040
|
-
* "name": "avg consumption",
|
|
1041
|
-
* "metadata": {
|
|
1042
|
-
* "journey_title": "energy journey",
|
|
1043
|
-
* "step_name": "avg consumption picker"
|
|
1044
|
-
* }
|
|
1045
|
-
* }
|
|
1046
|
-
* ]
|
|
1047
|
-
*/
|
|
1048
|
-
PriceInputMappings;
|
|
1049
1386
|
/**
|
|
1050
1387
|
* 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'.
|
|
1051
1388
|
*/
|
|
1052
1389
|
on_request_approved?: boolean;
|
|
1053
|
-
/**
|
|
1054
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1055
|
-
*/
|
|
1056
|
-
is_tax_inclusive?: boolean;
|
|
1057
1390
|
/**
|
|
1058
1391
|
* Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
|
|
1059
1392
|
*/
|
|
@@ -1076,6 +1409,22 @@ declare namespace Components {
|
|
|
1076
1409
|
* The quantity of products being purchased.
|
|
1077
1410
|
*/
|
|
1078
1411
|
quantity?: number;
|
|
1412
|
+
/**
|
|
1413
|
+
* The id of the product.
|
|
1414
|
+
*/
|
|
1415
|
+
product_id?: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* The id of the price.
|
|
1418
|
+
*/
|
|
1419
|
+
price_id?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* The flag for prices that contain price components.
|
|
1422
|
+
*/
|
|
1423
|
+
is_composite_price?: boolean;
|
|
1424
|
+
/**
|
|
1425
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
1426
|
+
*/
|
|
1427
|
+
description?: string;
|
|
1079
1428
|
price_mappings?: /**
|
|
1080
1429
|
* example:
|
|
1081
1430
|
* [
|
|
@@ -1092,43 +1441,10 @@ declare namespace Components {
|
|
|
1092
1441
|
* ]
|
|
1093
1442
|
*/
|
|
1094
1443
|
PriceInputMappings;
|
|
1095
|
-
external_fees_mappings?: /**
|
|
1096
|
-
* example:
|
|
1097
|
-
* [
|
|
1098
|
-
* {
|
|
1099
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1100
|
-
* "frequency_unit": "weekly",
|
|
1101
|
-
* "amount_total": 1000,
|
|
1102
|
-
* "amount_total_decimal": "10.00"
|
|
1103
|
-
* }
|
|
1104
|
-
* ]
|
|
1105
|
-
*/
|
|
1106
|
-
ExternalFeeMappings;
|
|
1107
|
-
external_fees_metadata?: ExternalFeeMetadata;
|
|
1108
|
-
/**
|
|
1109
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
1110
|
-
*/
|
|
1111
|
-
description?: string;
|
|
1112
|
-
/**
|
|
1113
|
-
* The id of the product.
|
|
1114
|
-
*/
|
|
1115
|
-
product_id?: string;
|
|
1116
1444
|
/**
|
|
1117
|
-
*
|
|
1118
|
-
*/
|
|
1119
|
-
price_id?: string;
|
|
1120
|
-
/**
|
|
1121
|
-
* The taxes applied to the price item.
|
|
1122
|
-
*/
|
|
1123
|
-
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
1124
|
-
/**
|
|
1125
|
-
* The taxes applied to the price item.
|
|
1126
|
-
*/
|
|
1127
|
-
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
1128
|
-
/**
|
|
1129
|
-
* The flag for prices that contain price components.
|
|
1445
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1130
1446
|
*/
|
|
1131
|
-
|
|
1447
|
+
is_tax_inclusive?: boolean;
|
|
1132
1448
|
/**
|
|
1133
1449
|
* The snapshot of the product.
|
|
1134
1450
|
* example:
|
|
@@ -1220,6 +1536,31 @@ declare namespace Components {
|
|
|
1220
1536
|
*/
|
|
1221
1537
|
_updated_at?: string;
|
|
1222
1538
|
};
|
|
1539
|
+
external_fees_mappings?: /**
|
|
1540
|
+
* example:
|
|
1541
|
+
* [
|
|
1542
|
+
* {
|
|
1543
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1544
|
+
* "frequency_unit": "weekly",
|
|
1545
|
+
* "amount_total": 1000,
|
|
1546
|
+
* "amount_total_decimal": "10.00"
|
|
1547
|
+
* }
|
|
1548
|
+
* ]
|
|
1549
|
+
*/
|
|
1550
|
+
ExternalFeeMappings;
|
|
1551
|
+
external_fees_metadata?: ExternalFeeMetadata;
|
|
1552
|
+
/**
|
|
1553
|
+
* The ids of the coupons applicable to the price item
|
|
1554
|
+
*/
|
|
1555
|
+
coupon_ids?: string[];
|
|
1556
|
+
/**
|
|
1557
|
+
* The taxes applied to the price item.
|
|
1558
|
+
*/
|
|
1559
|
+
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
1560
|
+
/**
|
|
1561
|
+
* The taxes applied to the price item.
|
|
1562
|
+
*/
|
|
1563
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
1223
1564
|
/**
|
|
1224
1565
|
* The coupons applicable to the price item
|
|
1225
1566
|
*/
|
|
@@ -1254,10 +1595,6 @@ declare namespace Components {
|
|
|
1254
1595
|
* }
|
|
1255
1596
|
*/
|
|
1256
1597
|
Coupon)[];
|
|
1257
|
-
/**
|
|
1258
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1259
|
-
*/
|
|
1260
|
-
is_tax_inclusive?: boolean;
|
|
1261
1598
|
/**
|
|
1262
1599
|
* Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
|
|
1263
1600
|
*/
|
|
@@ -2497,36 +2834,179 @@ declare namespace Components {
|
|
|
2497
2834
|
/**
|
|
2498
2835
|
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
2499
2836
|
*/
|
|
2500
|
-
amount_total_decimal?: string;
|
|
2837
|
+
amount_total_decimal?: string;
|
|
2838
|
+
/**
|
|
2839
|
+
* The discount amount.
|
|
2840
|
+
*/
|
|
2841
|
+
discount_amount?: number;
|
|
2842
|
+
/**
|
|
2843
|
+
* The discount amount as a string with all the decimal places.
|
|
2844
|
+
*/
|
|
2845
|
+
discount_amount_decimal?: string;
|
|
2846
|
+
/**
|
|
2847
|
+
* The discount percentage, if the applied coupon had a percentage type.
|
|
2848
|
+
*/
|
|
2849
|
+
discount_percentage?: number;
|
|
2850
|
+
/**
|
|
2851
|
+
* Total amount before discount is applied.
|
|
2852
|
+
*/
|
|
2853
|
+
before_discount_amount_total?: number;
|
|
2854
|
+
/**
|
|
2855
|
+
* Total amount before discount is applied as a string with all the decimal places.
|
|
2856
|
+
*/
|
|
2857
|
+
before_discount_amount_total_decimal?: string;
|
|
2858
|
+
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
2859
|
+
/**
|
|
2860
|
+
* The quantity of products being purchased.
|
|
2861
|
+
*/
|
|
2862
|
+
quantity?: number;
|
|
2863
|
+
/**
|
|
2864
|
+
* The id of the product.
|
|
2865
|
+
*/
|
|
2866
|
+
product_id?: string;
|
|
2867
|
+
/**
|
|
2868
|
+
* The id of the price.
|
|
2869
|
+
*/
|
|
2870
|
+
price_id?: string;
|
|
2871
|
+
/**
|
|
2872
|
+
* The flag for prices that contain price components.
|
|
2873
|
+
*/
|
|
2874
|
+
is_composite_price?: boolean;
|
|
2875
|
+
/**
|
|
2876
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
2877
|
+
*/
|
|
2878
|
+
description?: string;
|
|
2879
|
+
price_mappings?: /**
|
|
2880
|
+
* example:
|
|
2881
|
+
* [
|
|
2882
|
+
* {
|
|
2883
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2884
|
+
* "frequency_unit": "weekly",
|
|
2885
|
+
* "value": 1000.245,
|
|
2886
|
+
* "name": "avg consumption",
|
|
2887
|
+
* "metadata": {
|
|
2888
|
+
* "journey_title": "energy journey",
|
|
2889
|
+
* "step_name": "avg consumption picker"
|
|
2890
|
+
* }
|
|
2891
|
+
* }
|
|
2892
|
+
* ]
|
|
2893
|
+
*/
|
|
2894
|
+
PriceInputMappings;
|
|
2501
2895
|
/**
|
|
2502
|
-
*
|
|
2896
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2503
2897
|
*/
|
|
2504
|
-
|
|
2898
|
+
is_tax_inclusive?: boolean;
|
|
2505
2899
|
/**
|
|
2506
|
-
* The
|
|
2900
|
+
* The snapshot of the product.
|
|
2901
|
+
* example:
|
|
2902
|
+
* {
|
|
2903
|
+
* "$ref": "#/components/examples/product"
|
|
2904
|
+
* }
|
|
2507
2905
|
*/
|
|
2508
|
-
|
|
2906
|
+
_product?: {
|
|
2907
|
+
[name: string]: any;
|
|
2908
|
+
/**
|
|
2909
|
+
* The description for the product
|
|
2910
|
+
*/
|
|
2911
|
+
description?: string;
|
|
2912
|
+
/**
|
|
2913
|
+
* The product code
|
|
2914
|
+
*/
|
|
2915
|
+
code?: string;
|
|
2916
|
+
/**
|
|
2917
|
+
* The type of Product:
|
|
2918
|
+
*
|
|
2919
|
+
* | type | description |
|
|
2920
|
+
* |----| ----|
|
|
2921
|
+
* | `product` | Represents a physical good |
|
|
2922
|
+
* | `service` | Represents a service or virtual product |
|
|
2923
|
+
*
|
|
2924
|
+
*/
|
|
2925
|
+
type?: "product" | "service";
|
|
2926
|
+
/**
|
|
2927
|
+
* The product main name
|
|
2928
|
+
*/
|
|
2929
|
+
name?: string;
|
|
2930
|
+
feature?: {
|
|
2931
|
+
/**
|
|
2932
|
+
* An arbitrary set of tags attached to a feature
|
|
2933
|
+
*/
|
|
2934
|
+
_tags?: string[];
|
|
2935
|
+
feature?: string;
|
|
2936
|
+
}[];
|
|
2937
|
+
/**
|
|
2938
|
+
* Stores references to products that can be cross sold with the current product.
|
|
2939
|
+
*/
|
|
2940
|
+
cross_sellable_products?: {
|
|
2941
|
+
$relation?: EntityRelation[];
|
|
2942
|
+
};
|
|
2943
|
+
/**
|
|
2944
|
+
* Stores references to a set of file images of the product
|
|
2945
|
+
*/
|
|
2946
|
+
product_images?: {
|
|
2947
|
+
$relation?: EntityRelation[];
|
|
2948
|
+
};
|
|
2949
|
+
/**
|
|
2950
|
+
* Stores references to a set of files downloadable from the product.
|
|
2951
|
+
* e.g: tech specifications, quality control sheets, privacy policy agreements
|
|
2952
|
+
*
|
|
2953
|
+
*/
|
|
2954
|
+
product_downloads?: {
|
|
2955
|
+
$relation?: EntityRelation[];
|
|
2956
|
+
};
|
|
2957
|
+
/**
|
|
2958
|
+
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
|
|
2959
|
+
*/
|
|
2960
|
+
price_options?: {
|
|
2961
|
+
$relation?: EntityRelation[];
|
|
2962
|
+
};
|
|
2963
|
+
/**
|
|
2964
|
+
* Stores references to the availability files that define where this product is available.
|
|
2965
|
+
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
|
|
2966
|
+
*
|
|
2967
|
+
*/
|
|
2968
|
+
_availability_files?: File[];
|
|
2969
|
+
/**
|
|
2970
|
+
* The product id
|
|
2971
|
+
*/
|
|
2972
|
+
_id?: string;
|
|
2973
|
+
/**
|
|
2974
|
+
* The autogenerated product title
|
|
2975
|
+
*/
|
|
2976
|
+
_title?: string;
|
|
2977
|
+
/**
|
|
2978
|
+
* The organization id the product belongs to
|
|
2979
|
+
*/
|
|
2980
|
+
_org_id?: string;
|
|
2981
|
+
/**
|
|
2982
|
+
* The product creation date
|
|
2983
|
+
*/
|
|
2984
|
+
_created_at?: string;
|
|
2985
|
+
/**
|
|
2986
|
+
* The product last update date
|
|
2987
|
+
*/
|
|
2988
|
+
_updated_at?: string;
|
|
2989
|
+
};
|
|
2509
2990
|
/**
|
|
2510
|
-
*
|
|
2991
|
+
* price item id
|
|
2511
2992
|
*/
|
|
2512
|
-
|
|
2993
|
+
_id?: string;
|
|
2513
2994
|
/**
|
|
2514
|
-
*
|
|
2995
|
+
* The unit amount value
|
|
2515
2996
|
*/
|
|
2516
|
-
|
|
2997
|
+
unit_amount?: number;
|
|
2517
2998
|
/**
|
|
2518
|
-
*
|
|
2999
|
+
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
2519
3000
|
*/
|
|
2520
|
-
|
|
3001
|
+
unit_amount_decimal?: string;
|
|
2521
3002
|
/**
|
|
2522
|
-
*
|
|
3003
|
+
* The discount amount applied for each unit
|
|
2523
3004
|
*/
|
|
2524
|
-
|
|
2525
|
-
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
3005
|
+
unit_discount_amount?: number;
|
|
2526
3006
|
/**
|
|
2527
|
-
* The
|
|
3007
|
+
* The discount amount applied for each unit represented as a decimal string
|
|
2528
3008
|
*/
|
|
2529
|
-
|
|
3009
|
+
unit_discount_amount_decimal?: string;
|
|
2530
3010
|
/**
|
|
2531
3011
|
* The unit gross amount value.
|
|
2532
3012
|
*/
|
|
@@ -2535,10 +3015,6 @@ declare namespace Components {
|
|
|
2535
3015
|
* The unit gross amount value.
|
|
2536
3016
|
*/
|
|
2537
3017
|
unit_amount_gross_decimal?: string;
|
|
2538
|
-
/**
|
|
2539
|
-
* Total tax amount for this line item.
|
|
2540
|
-
*/
|
|
2541
|
-
amount_tax?: number;
|
|
2542
3018
|
/**
|
|
2543
3019
|
* Net unit amount without taxes or discounts.
|
|
2544
3020
|
*/
|
|
@@ -2548,9 +3024,17 @@ declare namespace Components {
|
|
|
2548
3024
|
*/
|
|
2549
3025
|
unit_amount_net_decimal?: string;
|
|
2550
3026
|
/**
|
|
2551
|
-
* The
|
|
3027
|
+
* The net discount amount applied for each unit
|
|
2552
3028
|
*/
|
|
2553
|
-
|
|
3029
|
+
unit_discount_amount_net?: number;
|
|
3030
|
+
/**
|
|
3031
|
+
* The net discount amount applied for each unit represented as a decimal string
|
|
3032
|
+
*/
|
|
3033
|
+
unit_discount_amount_net_decimal?: string;
|
|
3034
|
+
/**
|
|
3035
|
+
* Total tax amount for this line item.
|
|
3036
|
+
*/
|
|
3037
|
+
amount_tax?: number;
|
|
2554
3038
|
currency?: /**
|
|
2555
3039
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
2556
3040
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -2559,26 +3043,6 @@ declare namespace Components {
|
|
|
2559
3043
|
* EUR
|
|
2560
3044
|
*/
|
|
2561
3045
|
Currency;
|
|
2562
|
-
/**
|
|
2563
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
2564
|
-
*/
|
|
2565
|
-
description?: string;
|
|
2566
|
-
/**
|
|
2567
|
-
* The quantity of products being purchased.
|
|
2568
|
-
*/
|
|
2569
|
-
quantity?: number;
|
|
2570
|
-
/**
|
|
2571
|
-
* The id of the product.
|
|
2572
|
-
*/
|
|
2573
|
-
product_id?: string;
|
|
2574
|
-
/**
|
|
2575
|
-
* The id of the price.
|
|
2576
|
-
*/
|
|
2577
|
-
price_id?: string;
|
|
2578
|
-
/**
|
|
2579
|
-
* The flag for prices that contain price components.
|
|
2580
|
-
*/
|
|
2581
|
-
is_composite_price?: boolean;
|
|
2582
3046
|
/**
|
|
2583
3047
|
* The price snapshot data.
|
|
2584
3048
|
*/
|
|
@@ -2597,14 +3061,6 @@ declare namespace Components {
|
|
|
2597
3061
|
* }
|
|
2598
3062
|
*/
|
|
2599
3063
|
CompositePrice;
|
|
2600
|
-
_product?: /**
|
|
2601
|
-
* The product entity
|
|
2602
|
-
* example:
|
|
2603
|
-
* {
|
|
2604
|
-
* "$ref": "#/components/examples/product"
|
|
2605
|
-
* }
|
|
2606
|
-
*/
|
|
2607
|
-
Product;
|
|
2608
3064
|
/**
|
|
2609
3065
|
* The taxes applied to the price item.
|
|
2610
3066
|
*/
|
|
@@ -2613,30 +3069,10 @@ declare namespace Components {
|
|
|
2613
3069
|
* The sum of amounts of the price items by recurrence.
|
|
2614
3070
|
*/
|
|
2615
3071
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
2616
|
-
price_mappings?: /**
|
|
2617
|
-
* example:
|
|
2618
|
-
* [
|
|
2619
|
-
* {
|
|
2620
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2621
|
-
* "frequency_unit": "weekly",
|
|
2622
|
-
* "value": 1000.245,
|
|
2623
|
-
* "name": "avg consumption",
|
|
2624
|
-
* "metadata": {
|
|
2625
|
-
* "journey_title": "energy journey",
|
|
2626
|
-
* "step_name": "avg consumption picker"
|
|
2627
|
-
* }
|
|
2628
|
-
* }
|
|
2629
|
-
* ]
|
|
2630
|
-
*/
|
|
2631
|
-
PriceInputMappings;
|
|
2632
3072
|
/**
|
|
2633
3073
|
* 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'.
|
|
2634
3074
|
*/
|
|
2635
3075
|
on_request_approved?: boolean;
|
|
2636
|
-
/**
|
|
2637
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2638
|
-
*/
|
|
2639
|
-
is_tax_inclusive?: boolean;
|
|
2640
3076
|
/**
|
|
2641
3077
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
2642
3078
|
*/
|
|
@@ -2667,6 +3103,22 @@ declare namespace Components {
|
|
|
2667
3103
|
* The quantity of products being purchased.
|
|
2668
3104
|
*/
|
|
2669
3105
|
quantity?: number;
|
|
3106
|
+
/**
|
|
3107
|
+
* The id of the product.
|
|
3108
|
+
*/
|
|
3109
|
+
product_id?: string;
|
|
3110
|
+
/**
|
|
3111
|
+
* The id of the price.
|
|
3112
|
+
*/
|
|
3113
|
+
price_id?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* The flag for prices that contain price components.
|
|
3116
|
+
*/
|
|
3117
|
+
is_composite_price?: boolean;
|
|
3118
|
+
/**
|
|
3119
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
3120
|
+
*/
|
|
3121
|
+
description?: string;
|
|
2670
3122
|
price_mappings?: /**
|
|
2671
3123
|
* example:
|
|
2672
3124
|
* [
|
|
@@ -2683,43 +3135,10 @@ declare namespace Components {
|
|
|
2683
3135
|
* ]
|
|
2684
3136
|
*/
|
|
2685
3137
|
PriceInputMappings;
|
|
2686
|
-
external_fees_mappings?: /**
|
|
2687
|
-
* example:
|
|
2688
|
-
* [
|
|
2689
|
-
* {
|
|
2690
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2691
|
-
* "frequency_unit": "weekly",
|
|
2692
|
-
* "amount_total": 1000,
|
|
2693
|
-
* "amount_total_decimal": "10.00"
|
|
2694
|
-
* }
|
|
2695
|
-
* ]
|
|
2696
|
-
*/
|
|
2697
|
-
ExternalFeeMappings;
|
|
2698
|
-
external_fees_metadata?: ExternalFeeMetadata;
|
|
2699
|
-
/**
|
|
2700
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
2701
|
-
*/
|
|
2702
|
-
description?: string;
|
|
2703
|
-
/**
|
|
2704
|
-
* The id of the product.
|
|
2705
|
-
*/
|
|
2706
|
-
product_id?: string;
|
|
2707
|
-
/**
|
|
2708
|
-
* The id of the price.
|
|
2709
|
-
*/
|
|
2710
|
-
price_id?: string;
|
|
2711
|
-
/**
|
|
2712
|
-
* The taxes applied to the price item.
|
|
2713
|
-
*/
|
|
2714
|
-
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
2715
|
-
/**
|
|
2716
|
-
* The taxes applied to the price item.
|
|
2717
|
-
*/
|
|
2718
|
-
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
2719
3138
|
/**
|
|
2720
|
-
*
|
|
3139
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2721
3140
|
*/
|
|
2722
|
-
|
|
3141
|
+
is_tax_inclusive?: boolean;
|
|
2723
3142
|
/**
|
|
2724
3143
|
* The snapshot of the product.
|
|
2725
3144
|
* example:
|
|
@@ -2811,6 +3230,31 @@ declare namespace Components {
|
|
|
2811
3230
|
*/
|
|
2812
3231
|
_updated_at?: string;
|
|
2813
3232
|
};
|
|
3233
|
+
external_fees_mappings?: /**
|
|
3234
|
+
* example:
|
|
3235
|
+
* [
|
|
3236
|
+
* {
|
|
3237
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
3238
|
+
* "frequency_unit": "weekly",
|
|
3239
|
+
* "amount_total": 1000,
|
|
3240
|
+
* "amount_total_decimal": "10.00"
|
|
3241
|
+
* }
|
|
3242
|
+
* ]
|
|
3243
|
+
*/
|
|
3244
|
+
ExternalFeeMappings;
|
|
3245
|
+
external_fees_metadata?: ExternalFeeMetadata;
|
|
3246
|
+
/**
|
|
3247
|
+
* The ids of the coupons applicable to the price item
|
|
3248
|
+
*/
|
|
3249
|
+
coupon_ids?: string[];
|
|
3250
|
+
/**
|
|
3251
|
+
* The taxes applied to the price item.
|
|
3252
|
+
*/
|
|
3253
|
+
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
3254
|
+
/**
|
|
3255
|
+
* The taxes applied to the price item.
|
|
3256
|
+
*/
|
|
3257
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
2814
3258
|
/**
|
|
2815
3259
|
* The coupons applicable to the price item
|
|
2816
3260
|
*/
|
|
@@ -2845,10 +3289,6 @@ declare namespace Components {
|
|
|
2845
3289
|
* }
|
|
2846
3290
|
*/
|
|
2847
3291
|
Coupon)[];
|
|
2848
|
-
/**
|
|
2849
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2850
|
-
*/
|
|
2851
|
-
is_tax_inclusive?: boolean;
|
|
2852
3292
|
/**
|
|
2853
3293
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
2854
3294
|
*/
|
|
@@ -4415,6 +4855,7 @@ export type AvailabilityFilters = Components.Schemas.AvailabilityFilters;
|
|
|
4415
4855
|
export type AvailabilityLocation = Components.Schemas.AvailabilityLocation;
|
|
4416
4856
|
export type AvailabilityResult = Components.Schemas.AvailabilityResult;
|
|
4417
4857
|
export type BasePriceItem = Components.Schemas.BasePriceItem;
|
|
4858
|
+
export type BasePriceItemCommon = Components.Schemas.BasePriceItemCommon;
|
|
4418
4859
|
export type BasePriceItemDto = Components.Schemas.BasePriceItemDto;
|
|
4419
4860
|
export type BasicAuthCredentials = Components.Schemas.BasicAuthCredentials;
|
|
4420
4861
|
export type BillingPeriod = Components.Schemas.BillingPeriod;
|