@epilot/pricing-client 3.33.2 → 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/dist/openapi.d.ts +736 -307
- package/dist/openapi.json +79 -78
- package/package.json +1 -1
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,21 +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
|
-
|
|
430
|
-
/**
|
|
431
|
-
*
|
|
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
|
+
* ]
|
|
432
641
|
*/
|
|
433
|
-
|
|
642
|
+
PriceInputMappings;
|
|
434
643
|
/**
|
|
435
|
-
*
|
|
644
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
436
645
|
*/
|
|
437
|
-
|
|
646
|
+
is_tax_inclusive?: boolean;
|
|
438
647
|
/**
|
|
439
648
|
* The snapshot of the product.
|
|
440
649
|
* example:
|
|
@@ -526,6 +735,31 @@ declare namespace Components {
|
|
|
526
735
|
*/
|
|
527
736
|
_updated_at?: string;
|
|
528
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)[];
|
|
529
763
|
/**
|
|
530
764
|
* The coupons applicable to the price item
|
|
531
765
|
*/
|
|
@@ -560,10 +794,6 @@ declare namespace Components {
|
|
|
560
794
|
* }
|
|
561
795
|
*/
|
|
562
796
|
Coupon)[];
|
|
563
|
-
/**
|
|
564
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
565
|
-
*/
|
|
566
|
-
is_tax_inclusive?: boolean;
|
|
567
797
|
}
|
|
568
798
|
/**
|
|
569
799
|
* The basic auth credentials
|
|
@@ -928,26 +1158,169 @@ declare namespace Components {
|
|
|
928
1158
|
*/
|
|
929
1159
|
discount_amount_decimal?: string;
|
|
930
1160
|
/**
|
|
931
|
-
* 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
|
|
932
1306
|
*/
|
|
933
|
-
|
|
1307
|
+
_id?: string;
|
|
934
1308
|
/**
|
|
935
|
-
*
|
|
1309
|
+
* The unit amount value
|
|
936
1310
|
*/
|
|
937
|
-
|
|
1311
|
+
unit_amount?: number;
|
|
938
1312
|
/**
|
|
939
|
-
*
|
|
1313
|
+
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
940
1314
|
*/
|
|
941
|
-
|
|
1315
|
+
unit_amount_decimal?: string;
|
|
942
1316
|
/**
|
|
943
|
-
*
|
|
1317
|
+
* The discount amount applied for each unit
|
|
944
1318
|
*/
|
|
945
|
-
|
|
946
|
-
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
1319
|
+
unit_discount_amount?: number;
|
|
947
1320
|
/**
|
|
948
|
-
* The
|
|
1321
|
+
* The discount amount applied for each unit represented as a decimal string
|
|
949
1322
|
*/
|
|
950
|
-
|
|
1323
|
+
unit_discount_amount_decimal?: string;
|
|
951
1324
|
/**
|
|
952
1325
|
* The unit gross amount value.
|
|
953
1326
|
*/
|
|
@@ -956,10 +1329,6 @@ declare namespace Components {
|
|
|
956
1329
|
* The unit gross amount value.
|
|
957
1330
|
*/
|
|
958
1331
|
unit_amount_gross_decimal?: string;
|
|
959
|
-
/**
|
|
960
|
-
* Total tax amount for this line item.
|
|
961
|
-
*/
|
|
962
|
-
amount_tax?: number;
|
|
963
1332
|
/**
|
|
964
1333
|
* Net unit amount without taxes or discounts.
|
|
965
1334
|
*/
|
|
@@ -969,9 +1338,17 @@ declare namespace Components {
|
|
|
969
1338
|
*/
|
|
970
1339
|
unit_amount_net_decimal?: string;
|
|
971
1340
|
/**
|
|
972
|
-
* The
|
|
1341
|
+
* The net discount amount applied for each unit
|
|
973
1342
|
*/
|
|
974
|
-
|
|
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;
|
|
975
1352
|
currency?: /**
|
|
976
1353
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
977
1354
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -980,26 +1357,6 @@ declare namespace Components {
|
|
|
980
1357
|
* EUR
|
|
981
1358
|
*/
|
|
982
1359
|
Currency;
|
|
983
|
-
/**
|
|
984
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
985
|
-
*/
|
|
986
|
-
description?: string;
|
|
987
|
-
/**
|
|
988
|
-
* The quantity of products being purchased.
|
|
989
|
-
*/
|
|
990
|
-
quantity?: number;
|
|
991
|
-
/**
|
|
992
|
-
* The id of the product.
|
|
993
|
-
*/
|
|
994
|
-
product_id?: string;
|
|
995
|
-
/**
|
|
996
|
-
* The id of the price.
|
|
997
|
-
*/
|
|
998
|
-
price_id?: string;
|
|
999
|
-
/**
|
|
1000
|
-
* The flag for prices that contain price components.
|
|
1001
|
-
*/
|
|
1002
|
-
is_composite_price?: boolean;
|
|
1003
1360
|
/**
|
|
1004
1361
|
* The price snapshot data.
|
|
1005
1362
|
*/
|
|
@@ -1018,14 +1375,6 @@ declare namespace Components {
|
|
|
1018
1375
|
* }
|
|
1019
1376
|
*/
|
|
1020
1377
|
CompositePrice;
|
|
1021
|
-
_product?: /**
|
|
1022
|
-
* The product entity
|
|
1023
|
-
* example:
|
|
1024
|
-
* {
|
|
1025
|
-
* "$ref": "#/components/examples/product"
|
|
1026
|
-
* }
|
|
1027
|
-
*/
|
|
1028
|
-
Product;
|
|
1029
1378
|
/**
|
|
1030
1379
|
* The taxes applied to the price item.
|
|
1031
1380
|
*/
|
|
@@ -1034,30 +1383,10 @@ declare namespace Components {
|
|
|
1034
1383
|
* The sum of amounts of the price items by recurrence.
|
|
1035
1384
|
*/
|
|
1036
1385
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
1037
|
-
price_mappings?: /**
|
|
1038
|
-
* example:
|
|
1039
|
-
* [
|
|
1040
|
-
* {
|
|
1041
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1042
|
-
* "frequency_unit": "weekly",
|
|
1043
|
-
* "value": 1000.245,
|
|
1044
|
-
* "name": "avg consumption",
|
|
1045
|
-
* "metadata": {
|
|
1046
|
-
* "journey_title": "energy journey",
|
|
1047
|
-
* "step_name": "avg consumption picker"
|
|
1048
|
-
* }
|
|
1049
|
-
* }
|
|
1050
|
-
* ]
|
|
1051
|
-
*/
|
|
1052
|
-
PriceInputMappings;
|
|
1053
1386
|
/**
|
|
1054
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'.
|
|
1055
1388
|
*/
|
|
1056
1389
|
on_request_approved?: boolean;
|
|
1057
|
-
/**
|
|
1058
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1059
|
-
*/
|
|
1060
|
-
is_tax_inclusive?: boolean;
|
|
1061
1390
|
/**
|
|
1062
1391
|
* Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
|
|
1063
1392
|
*/
|
|
@@ -1080,6 +1409,22 @@ declare namespace Components {
|
|
|
1080
1409
|
* The quantity of products being purchased.
|
|
1081
1410
|
*/
|
|
1082
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;
|
|
1083
1428
|
price_mappings?: /**
|
|
1084
1429
|
* example:
|
|
1085
1430
|
* [
|
|
@@ -1096,47 +1441,10 @@ declare namespace Components {
|
|
|
1096
1441
|
* ]
|
|
1097
1442
|
*/
|
|
1098
1443
|
PriceInputMappings;
|
|
1099
|
-
external_fees_mappings?: /**
|
|
1100
|
-
* example:
|
|
1101
|
-
* [
|
|
1102
|
-
* {
|
|
1103
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1104
|
-
* "frequency_unit": "weekly",
|
|
1105
|
-
* "amount_total": 1000,
|
|
1106
|
-
* "amount_total_decimal": "10.00"
|
|
1107
|
-
* }
|
|
1108
|
-
* ]
|
|
1109
|
-
*/
|
|
1110
|
-
ExternalFeeMappings;
|
|
1111
|
-
external_fees_metadata?: ExternalFeeMetadata;
|
|
1112
|
-
/**
|
|
1113
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
1114
|
-
*/
|
|
1115
|
-
description?: string;
|
|
1116
|
-
/**
|
|
1117
|
-
* The id of the product.
|
|
1118
|
-
*/
|
|
1119
|
-
product_id?: string;
|
|
1120
|
-
/**
|
|
1121
|
-
* The id of the price.
|
|
1122
|
-
*/
|
|
1123
|
-
price_id?: string;
|
|
1124
|
-
/**
|
|
1125
|
-
* The ids of the coupons applicable to the price item
|
|
1126
|
-
*/
|
|
1127
|
-
coupon_ids?: string[];
|
|
1128
|
-
/**
|
|
1129
|
-
* The taxes applied to the price item.
|
|
1130
|
-
*/
|
|
1131
|
-
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
1132
|
-
/**
|
|
1133
|
-
* The taxes applied to the price item.
|
|
1134
|
-
*/
|
|
1135
|
-
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
1136
1444
|
/**
|
|
1137
|
-
*
|
|
1445
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1138
1446
|
*/
|
|
1139
|
-
|
|
1447
|
+
is_tax_inclusive?: boolean;
|
|
1140
1448
|
/**
|
|
1141
1449
|
* The snapshot of the product.
|
|
1142
1450
|
* example:
|
|
@@ -1228,6 +1536,31 @@ declare namespace Components {
|
|
|
1228
1536
|
*/
|
|
1229
1537
|
_updated_at?: string;
|
|
1230
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)[];
|
|
1231
1564
|
/**
|
|
1232
1565
|
* The coupons applicable to the price item
|
|
1233
1566
|
*/
|
|
@@ -1262,10 +1595,6 @@ declare namespace Components {
|
|
|
1262
1595
|
* }
|
|
1263
1596
|
*/
|
|
1264
1597
|
Coupon)[];
|
|
1265
|
-
/**
|
|
1266
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1267
|
-
*/
|
|
1268
|
-
is_tax_inclusive?: boolean;
|
|
1269
1598
|
/**
|
|
1270
1599
|
* Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
|
|
1271
1600
|
*/
|
|
@@ -2507,34 +2836,177 @@ declare namespace Components {
|
|
|
2507
2836
|
*/
|
|
2508
2837
|
amount_total_decimal?: string;
|
|
2509
2838
|
/**
|
|
2510
|
-
* The discount amount.
|
|
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;
|
|
2895
|
+
/**
|
|
2896
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2511
2897
|
*/
|
|
2512
|
-
|
|
2898
|
+
is_tax_inclusive?: boolean;
|
|
2513
2899
|
/**
|
|
2514
|
-
* The
|
|
2900
|
+
* The snapshot of the product.
|
|
2901
|
+
* example:
|
|
2902
|
+
* {
|
|
2903
|
+
* "$ref": "#/components/examples/product"
|
|
2904
|
+
* }
|
|
2515
2905
|
*/
|
|
2516
|
-
|
|
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
|
+
};
|
|
2517
2990
|
/**
|
|
2518
|
-
*
|
|
2991
|
+
* price item id
|
|
2519
2992
|
*/
|
|
2520
|
-
|
|
2993
|
+
_id?: string;
|
|
2521
2994
|
/**
|
|
2522
|
-
*
|
|
2995
|
+
* The unit amount value
|
|
2523
2996
|
*/
|
|
2524
|
-
|
|
2997
|
+
unit_amount?: number;
|
|
2525
2998
|
/**
|
|
2526
|
-
*
|
|
2999
|
+
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
2527
3000
|
*/
|
|
2528
|
-
|
|
3001
|
+
unit_amount_decimal?: string;
|
|
2529
3002
|
/**
|
|
2530
|
-
*
|
|
3003
|
+
* The discount amount applied for each unit
|
|
2531
3004
|
*/
|
|
2532
|
-
|
|
2533
|
-
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
3005
|
+
unit_discount_amount?: number;
|
|
2534
3006
|
/**
|
|
2535
|
-
* The
|
|
3007
|
+
* The discount amount applied for each unit represented as a decimal string
|
|
2536
3008
|
*/
|
|
2537
|
-
|
|
3009
|
+
unit_discount_amount_decimal?: string;
|
|
2538
3010
|
/**
|
|
2539
3011
|
* The unit gross amount value.
|
|
2540
3012
|
*/
|
|
@@ -2543,10 +3015,6 @@ declare namespace Components {
|
|
|
2543
3015
|
* The unit gross amount value.
|
|
2544
3016
|
*/
|
|
2545
3017
|
unit_amount_gross_decimal?: string;
|
|
2546
|
-
/**
|
|
2547
|
-
* Total tax amount for this line item.
|
|
2548
|
-
*/
|
|
2549
|
-
amount_tax?: number;
|
|
2550
3018
|
/**
|
|
2551
3019
|
* Net unit amount without taxes or discounts.
|
|
2552
3020
|
*/
|
|
@@ -2556,9 +3024,17 @@ declare namespace Components {
|
|
|
2556
3024
|
*/
|
|
2557
3025
|
unit_amount_net_decimal?: string;
|
|
2558
3026
|
/**
|
|
2559
|
-
* The
|
|
3027
|
+
* The net discount amount applied for each unit
|
|
2560
3028
|
*/
|
|
2561
|
-
|
|
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;
|
|
2562
3038
|
currency?: /**
|
|
2563
3039
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
2564
3040
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -2567,26 +3043,6 @@ declare namespace Components {
|
|
|
2567
3043
|
* EUR
|
|
2568
3044
|
*/
|
|
2569
3045
|
Currency;
|
|
2570
|
-
/**
|
|
2571
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
2572
|
-
*/
|
|
2573
|
-
description?: string;
|
|
2574
|
-
/**
|
|
2575
|
-
* The quantity of products being purchased.
|
|
2576
|
-
*/
|
|
2577
|
-
quantity?: number;
|
|
2578
|
-
/**
|
|
2579
|
-
* The id of the product.
|
|
2580
|
-
*/
|
|
2581
|
-
product_id?: string;
|
|
2582
|
-
/**
|
|
2583
|
-
* The id of the price.
|
|
2584
|
-
*/
|
|
2585
|
-
price_id?: string;
|
|
2586
|
-
/**
|
|
2587
|
-
* The flag for prices that contain price components.
|
|
2588
|
-
*/
|
|
2589
|
-
is_composite_price?: boolean;
|
|
2590
3046
|
/**
|
|
2591
3047
|
* The price snapshot data.
|
|
2592
3048
|
*/
|
|
@@ -2605,14 +3061,6 @@ declare namespace Components {
|
|
|
2605
3061
|
* }
|
|
2606
3062
|
*/
|
|
2607
3063
|
CompositePrice;
|
|
2608
|
-
_product?: /**
|
|
2609
|
-
* The product entity
|
|
2610
|
-
* example:
|
|
2611
|
-
* {
|
|
2612
|
-
* "$ref": "#/components/examples/product"
|
|
2613
|
-
* }
|
|
2614
|
-
*/
|
|
2615
|
-
Product;
|
|
2616
3064
|
/**
|
|
2617
3065
|
* The taxes applied to the price item.
|
|
2618
3066
|
*/
|
|
@@ -2621,30 +3069,10 @@ declare namespace Components {
|
|
|
2621
3069
|
* The sum of amounts of the price items by recurrence.
|
|
2622
3070
|
*/
|
|
2623
3071
|
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
|
|
2624
|
-
price_mappings?: /**
|
|
2625
|
-
* example:
|
|
2626
|
-
* [
|
|
2627
|
-
* {
|
|
2628
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2629
|
-
* "frequency_unit": "weekly",
|
|
2630
|
-
* "value": 1000.245,
|
|
2631
|
-
* "name": "avg consumption",
|
|
2632
|
-
* "metadata": {
|
|
2633
|
-
* "journey_title": "energy journey",
|
|
2634
|
-
* "step_name": "avg consumption picker"
|
|
2635
|
-
* }
|
|
2636
|
-
* }
|
|
2637
|
-
* ]
|
|
2638
|
-
*/
|
|
2639
|
-
PriceInputMappings;
|
|
2640
3072
|
/**
|
|
2641
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'.
|
|
2642
3074
|
*/
|
|
2643
3075
|
on_request_approved?: boolean;
|
|
2644
|
-
/**
|
|
2645
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2646
|
-
*/
|
|
2647
|
-
is_tax_inclusive?: boolean;
|
|
2648
3076
|
/**
|
|
2649
3077
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
2650
3078
|
*/
|
|
@@ -2675,6 +3103,22 @@ declare namespace Components {
|
|
|
2675
3103
|
* The quantity of products being purchased.
|
|
2676
3104
|
*/
|
|
2677
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;
|
|
2678
3122
|
price_mappings?: /**
|
|
2679
3123
|
* example:
|
|
2680
3124
|
* [
|
|
@@ -2691,47 +3135,10 @@ declare namespace Components {
|
|
|
2691
3135
|
* ]
|
|
2692
3136
|
*/
|
|
2693
3137
|
PriceInputMappings;
|
|
2694
|
-
external_fees_mappings?: /**
|
|
2695
|
-
* example:
|
|
2696
|
-
* [
|
|
2697
|
-
* {
|
|
2698
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2699
|
-
* "frequency_unit": "weekly",
|
|
2700
|
-
* "amount_total": 1000,
|
|
2701
|
-
* "amount_total_decimal": "10.00"
|
|
2702
|
-
* }
|
|
2703
|
-
* ]
|
|
2704
|
-
*/
|
|
2705
|
-
ExternalFeeMappings;
|
|
2706
|
-
external_fees_metadata?: ExternalFeeMetadata;
|
|
2707
|
-
/**
|
|
2708
|
-
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
2709
|
-
*/
|
|
2710
|
-
description?: string;
|
|
2711
|
-
/**
|
|
2712
|
-
* The id of the product.
|
|
2713
|
-
*/
|
|
2714
|
-
product_id?: string;
|
|
2715
|
-
/**
|
|
2716
|
-
* The id of the price.
|
|
2717
|
-
*/
|
|
2718
|
-
price_id?: string;
|
|
2719
|
-
/**
|
|
2720
|
-
* The ids of the coupons applicable to the price item
|
|
2721
|
-
*/
|
|
2722
|
-
coupon_ids?: string[];
|
|
2723
|
-
/**
|
|
2724
|
-
* The taxes applied to the price item.
|
|
2725
|
-
*/
|
|
2726
|
-
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
2727
|
-
/**
|
|
2728
|
-
* The taxes applied to the price item.
|
|
2729
|
-
*/
|
|
2730
|
-
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
2731
3138
|
/**
|
|
2732
|
-
*
|
|
3139
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2733
3140
|
*/
|
|
2734
|
-
|
|
3141
|
+
is_tax_inclusive?: boolean;
|
|
2735
3142
|
/**
|
|
2736
3143
|
* The snapshot of the product.
|
|
2737
3144
|
* example:
|
|
@@ -2823,6 +3230,31 @@ declare namespace Components {
|
|
|
2823
3230
|
*/
|
|
2824
3231
|
_updated_at?: string;
|
|
2825
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)[];
|
|
2826
3258
|
/**
|
|
2827
3259
|
* The coupons applicable to the price item
|
|
2828
3260
|
*/
|
|
@@ -2857,10 +3289,6 @@ declare namespace Components {
|
|
|
2857
3289
|
* }
|
|
2858
3290
|
*/
|
|
2859
3291
|
Coupon)[];
|
|
2860
|
-
/**
|
|
2861
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2862
|
-
*/
|
|
2863
|
-
is_tax_inclusive?: boolean;
|
|
2864
3292
|
/**
|
|
2865
3293
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
2866
3294
|
*/
|
|
@@ -4427,6 +4855,7 @@ export type AvailabilityFilters = Components.Schemas.AvailabilityFilters;
|
|
|
4427
4855
|
export type AvailabilityLocation = Components.Schemas.AvailabilityLocation;
|
|
4428
4856
|
export type AvailabilityResult = Components.Schemas.AvailabilityResult;
|
|
4429
4857
|
export type BasePriceItem = Components.Schemas.BasePriceItem;
|
|
4858
|
+
export type BasePriceItemCommon = Components.Schemas.BasePriceItemCommon;
|
|
4430
4859
|
export type BasePriceItemDto = Components.Schemas.BasePriceItemDto;
|
|
4431
4860
|
export type BasicAuthCredentials = Components.Schemas.BasicAuthCredentials;
|
|
4432
4861
|
export type BillingPeriod = Components.Schemas.BillingPeriod;
|