@epilot/pricing-client 3.33.2 → 3.35.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 +882 -393
- package/dist/openapi.json +100 -74
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -240,15 +240,162 @@ 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 before any discount is applied
|
|
385
|
+
*/
|
|
386
|
+
before_discount_unit_amount?: number;
|
|
387
|
+
/**
|
|
388
|
+
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
389
|
+
*/
|
|
390
|
+
unit_amount_decimal?: string;
|
|
391
|
+
/**
|
|
392
|
+
* The discount amount applied for each unit
|
|
393
|
+
*/
|
|
394
|
+
unit_discount_amount?: number;
|
|
395
|
+
/**
|
|
396
|
+
* The discount amount applied for each unit represented as a decimal string
|
|
397
|
+
*/
|
|
398
|
+
unit_discount_amount_decimal?: string;
|
|
252
399
|
/**
|
|
253
400
|
* The unit gross amount value.
|
|
254
401
|
*/
|
|
@@ -257,10 +404,6 @@ declare namespace Components {
|
|
|
257
404
|
* The unit gross amount value.
|
|
258
405
|
*/
|
|
259
406
|
unit_amount_gross_decimal?: string;
|
|
260
|
-
/**
|
|
261
|
-
* Total tax amount for this line item.
|
|
262
|
-
*/
|
|
263
|
-
amount_tax?: number;
|
|
264
407
|
/**
|
|
265
408
|
* Net unit amount without taxes or discounts.
|
|
266
409
|
*/
|
|
@@ -270,37 +413,41 @@ declare namespace Components {
|
|
|
270
413
|
*/
|
|
271
414
|
unit_amount_net_decimal?: string;
|
|
272
415
|
/**
|
|
273
|
-
* The
|
|
416
|
+
* The net discount amount applied for each unit
|
|
274
417
|
*/
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
*
|
|
278
|
-
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
279
|
-
*
|
|
280
|
-
* example:
|
|
281
|
-
* EUR
|
|
418
|
+
unit_discount_amount_net?: number;
|
|
419
|
+
/**
|
|
420
|
+
* The net discount amount applied for each unit represented as a decimal string
|
|
282
421
|
*/
|
|
283
|
-
|
|
422
|
+
unit_discount_amount_net_decimal?: string;
|
|
284
423
|
/**
|
|
285
|
-
*
|
|
424
|
+
* The discount amount applied to the tax
|
|
286
425
|
*/
|
|
287
|
-
|
|
426
|
+
tax_discount_amount?: number;
|
|
288
427
|
/**
|
|
289
|
-
* The
|
|
428
|
+
* The discount amount applied to the tax represented as a decimal string
|
|
290
429
|
*/
|
|
291
|
-
|
|
430
|
+
tax_discount_amount_decimal?: string;
|
|
292
431
|
/**
|
|
293
|
-
*
|
|
432
|
+
* Total tax amount for this line item.
|
|
294
433
|
*/
|
|
295
|
-
|
|
434
|
+
amount_tax?: number;
|
|
296
435
|
/**
|
|
297
|
-
* The
|
|
436
|
+
* The tax amount before any discount is applied
|
|
298
437
|
*/
|
|
299
|
-
|
|
438
|
+
before_discount_tax_amount?: number;
|
|
300
439
|
/**
|
|
301
|
-
* The
|
|
440
|
+
* The tax amount before any discount is applied represented as a decimal string
|
|
302
441
|
*/
|
|
303
|
-
|
|
442
|
+
before_discount_tax_amount_decimal?: string;
|
|
443
|
+
currency?: /**
|
|
444
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
445
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
446
|
+
*
|
|
447
|
+
* example:
|
|
448
|
+
* EUR
|
|
449
|
+
*/
|
|
450
|
+
Currency;
|
|
304
451
|
/**
|
|
305
452
|
* The price snapshot data.
|
|
306
453
|
*/
|
|
@@ -319,14 +466,6 @@ declare namespace Components {
|
|
|
319
466
|
* }
|
|
320
467
|
*/
|
|
321
468
|
CompositePrice;
|
|
322
|
-
_product?: /**
|
|
323
|
-
* The product entity
|
|
324
|
-
* example:
|
|
325
|
-
* {
|
|
326
|
-
* "$ref": "#/components/examples/product"
|
|
327
|
-
* }
|
|
328
|
-
*/
|
|
329
|
-
Product;
|
|
330
469
|
/**
|
|
331
470
|
* The taxes applied to the price item.
|
|
332
471
|
*/
|
|
@@ -335,40 +474,36 @@ declare namespace Components {
|
|
|
335
474
|
* The sum of amounts of the price items by recurrence.
|
|
336
475
|
*/
|
|
337
476
|
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
477
|
/**
|
|
355
478
|
* 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
479
|
*/
|
|
357
480
|
on_request_approved?: boolean;
|
|
358
|
-
/**
|
|
359
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
360
|
-
*/
|
|
361
|
-
is_tax_inclusive?: boolean;
|
|
362
481
|
}
|
|
363
482
|
/**
|
|
364
|
-
* Represents
|
|
483
|
+
* Represents the common keys in BasePriceItem and BasePriceItemDto
|
|
365
484
|
*/
|
|
366
|
-
export interface
|
|
485
|
+
export interface BasePriceItemCommon {
|
|
367
486
|
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
368
487
|
/**
|
|
369
488
|
* The quantity of products being purchased.
|
|
370
489
|
*/
|
|
371
490
|
quantity?: number;
|
|
491
|
+
/**
|
|
492
|
+
* The id of the product.
|
|
493
|
+
*/
|
|
494
|
+
product_id?: string;
|
|
495
|
+
/**
|
|
496
|
+
* The id of the price.
|
|
497
|
+
*/
|
|
498
|
+
price_id?: string;
|
|
499
|
+
/**
|
|
500
|
+
* The flag for prices that contain price components.
|
|
501
|
+
*/
|
|
502
|
+
is_composite_price?: boolean;
|
|
503
|
+
/**
|
|
504
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
505
|
+
*/
|
|
506
|
+
description?: string;
|
|
372
507
|
/**
|
|
373
508
|
* Price mapping information required to compute totals
|
|
374
509
|
*/
|
|
@@ -389,28 +524,110 @@ declare namespace Components {
|
|
|
389
524
|
*/
|
|
390
525
|
PriceInputMappings;
|
|
391
526
|
/**
|
|
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
|
-
* ]
|
|
527
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
404
528
|
*/
|
|
405
|
-
|
|
529
|
+
is_tax_inclusive?: boolean;
|
|
406
530
|
/**
|
|
407
|
-
*
|
|
531
|
+
* The snapshot of the product.
|
|
532
|
+
* example:
|
|
533
|
+
* {
|
|
534
|
+
* "$ref": "#/components/examples/product"
|
|
535
|
+
* }
|
|
408
536
|
*/
|
|
409
|
-
|
|
537
|
+
_product?: {
|
|
538
|
+
[name: string]: any;
|
|
539
|
+
/**
|
|
540
|
+
* The description for the product
|
|
541
|
+
*/
|
|
542
|
+
description?: string;
|
|
543
|
+
/**
|
|
544
|
+
* The product code
|
|
545
|
+
*/
|
|
546
|
+
code?: string;
|
|
547
|
+
/**
|
|
548
|
+
* The type of Product:
|
|
549
|
+
*
|
|
550
|
+
* | type | description |
|
|
551
|
+
* |----| ----|
|
|
552
|
+
* | `product` | Represents a physical good |
|
|
553
|
+
* | `service` | Represents a service or virtual product |
|
|
554
|
+
*
|
|
555
|
+
*/
|
|
556
|
+
type?: "product" | "service";
|
|
557
|
+
/**
|
|
558
|
+
* The product main name
|
|
559
|
+
*/
|
|
560
|
+
name?: string;
|
|
561
|
+
feature?: {
|
|
562
|
+
/**
|
|
563
|
+
* An arbitrary set of tags attached to a feature
|
|
564
|
+
*/
|
|
565
|
+
_tags?: string[];
|
|
566
|
+
feature?: string;
|
|
567
|
+
}[];
|
|
568
|
+
/**
|
|
569
|
+
* Stores references to products that can be cross sold with the current product.
|
|
570
|
+
*/
|
|
571
|
+
cross_sellable_products?: {
|
|
572
|
+
$relation?: EntityRelation[];
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* Stores references to a set of file images of the product
|
|
576
|
+
*/
|
|
577
|
+
product_images?: {
|
|
578
|
+
$relation?: EntityRelation[];
|
|
579
|
+
};
|
|
580
|
+
/**
|
|
581
|
+
* Stores references to a set of files downloadable from the product.
|
|
582
|
+
* e.g: tech specifications, quality control sheets, privacy policy agreements
|
|
583
|
+
*
|
|
584
|
+
*/
|
|
585
|
+
product_downloads?: {
|
|
586
|
+
$relation?: EntityRelation[];
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
|
|
590
|
+
*/
|
|
591
|
+
price_options?: {
|
|
592
|
+
$relation?: EntityRelation[];
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Stores references to the availability files that define where this product is available.
|
|
596
|
+
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
|
|
597
|
+
*
|
|
598
|
+
*/
|
|
599
|
+
_availability_files?: File[];
|
|
600
|
+
/**
|
|
601
|
+
* The product id
|
|
602
|
+
*/
|
|
603
|
+
_id?: string;
|
|
604
|
+
/**
|
|
605
|
+
* The autogenerated product title
|
|
606
|
+
*/
|
|
607
|
+
_title?: string;
|
|
608
|
+
/**
|
|
609
|
+
* The organization id the product belongs to
|
|
610
|
+
*/
|
|
611
|
+
_org_id?: string;
|
|
612
|
+
/**
|
|
613
|
+
* The product creation date
|
|
614
|
+
*/
|
|
615
|
+
_created_at?: string;
|
|
616
|
+
/**
|
|
617
|
+
* The product last update date
|
|
618
|
+
*/
|
|
619
|
+
_updated_at?: string;
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Represents a valid base price item from a client.
|
|
624
|
+
*/
|
|
625
|
+
export interface BasePriceItemDto {
|
|
626
|
+
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
410
627
|
/**
|
|
411
|
-
*
|
|
628
|
+
* The quantity of products being purchased.
|
|
412
629
|
*/
|
|
413
|
-
|
|
630
|
+
quantity?: number;
|
|
414
631
|
/**
|
|
415
632
|
* The id of the product.
|
|
416
633
|
*/
|
|
@@ -420,21 +637,33 @@ declare namespace Components {
|
|
|
420
637
|
*/
|
|
421
638
|
price_id?: string;
|
|
422
639
|
/**
|
|
423
|
-
* The
|
|
640
|
+
* The flag for prices that contain price components.
|
|
424
641
|
*/
|
|
425
|
-
|
|
642
|
+
is_composite_price?: boolean;
|
|
426
643
|
/**
|
|
427
|
-
*
|
|
644
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
428
645
|
*/
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
*
|
|
646
|
+
description?: string;
|
|
647
|
+
price_mappings?: /**
|
|
648
|
+
* example:
|
|
649
|
+
* [
|
|
650
|
+
* {
|
|
651
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
652
|
+
* "frequency_unit": "weekly",
|
|
653
|
+
* "value": 1000.245,
|
|
654
|
+
* "name": "avg consumption",
|
|
655
|
+
* "metadata": {
|
|
656
|
+
* "journey_title": "energy journey",
|
|
657
|
+
* "step_name": "avg consumption picker"
|
|
658
|
+
* }
|
|
659
|
+
* }
|
|
660
|
+
* ]
|
|
432
661
|
*/
|
|
433
|
-
|
|
662
|
+
PriceInputMappings;
|
|
434
663
|
/**
|
|
435
|
-
*
|
|
664
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
436
665
|
*/
|
|
437
|
-
|
|
666
|
+
is_tax_inclusive?: boolean;
|
|
438
667
|
/**
|
|
439
668
|
* The snapshot of the product.
|
|
440
669
|
* example:
|
|
@@ -526,6 +755,31 @@ declare namespace Components {
|
|
|
526
755
|
*/
|
|
527
756
|
_updated_at?: string;
|
|
528
757
|
};
|
|
758
|
+
external_fees_mappings?: /**
|
|
759
|
+
* example:
|
|
760
|
+
* [
|
|
761
|
+
* {
|
|
762
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
763
|
+
* "frequency_unit": "weekly",
|
|
764
|
+
* "amount_total": 1000,
|
|
765
|
+
* "amount_total_decimal": "10.00"
|
|
766
|
+
* }
|
|
767
|
+
* ]
|
|
768
|
+
*/
|
|
769
|
+
ExternalFeeMappings;
|
|
770
|
+
external_fees_metadata?: ExternalFeeMetadata;
|
|
771
|
+
/**
|
|
772
|
+
* The ids of the coupons applicable to the price item
|
|
773
|
+
*/
|
|
774
|
+
coupon_ids?: string[];
|
|
775
|
+
/**
|
|
776
|
+
* The taxes applied to the price item.
|
|
777
|
+
*/
|
|
778
|
+
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
779
|
+
/**
|
|
780
|
+
* The taxes applied to the price item.
|
|
781
|
+
*/
|
|
782
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
529
783
|
/**
|
|
530
784
|
* The coupons applicable to the price item
|
|
531
785
|
*/
|
|
@@ -560,10 +814,6 @@ declare namespace Components {
|
|
|
560
814
|
* }
|
|
561
815
|
*/
|
|
562
816
|
Coupon)[];
|
|
563
|
-
/**
|
|
564
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
565
|
-
*/
|
|
566
|
-
is_tax_inclusive?: boolean;
|
|
567
817
|
}
|
|
568
818
|
/**
|
|
569
819
|
* The basic auth credentials
|
|
@@ -914,40 +1164,187 @@ declare namespace Components {
|
|
|
914
1164
|
/**
|
|
915
1165
|
* Total of all items after (discounts and) taxes are applied.
|
|
916
1166
|
*/
|
|
917
|
-
amount_total?: number;
|
|
1167
|
+
amount_total?: number;
|
|
1168
|
+
/**
|
|
1169
|
+
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
1170
|
+
*/
|
|
1171
|
+
amount_total_decimal?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* The discount amount.
|
|
1174
|
+
*/
|
|
1175
|
+
discount_amount?: number;
|
|
1176
|
+
/**
|
|
1177
|
+
* The discount amount as a string with all the decimal places.
|
|
1178
|
+
*/
|
|
1179
|
+
discount_amount_decimal?: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* The discount percentage, if the applied coupon had a percentage type.
|
|
1182
|
+
*/
|
|
1183
|
+
discount_percentage?: number;
|
|
1184
|
+
/**
|
|
1185
|
+
* Total amount before discount is applied.
|
|
1186
|
+
*/
|
|
1187
|
+
before_discount_amount_total?: number;
|
|
1188
|
+
/**
|
|
1189
|
+
* Total amount before discount is applied as a string with all the decimal places.
|
|
1190
|
+
*/
|
|
1191
|
+
before_discount_amount_total_decimal?: string;
|
|
1192
|
+
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
1193
|
+
/**
|
|
1194
|
+
* The quantity of products being purchased.
|
|
1195
|
+
*/
|
|
1196
|
+
quantity?: number;
|
|
1197
|
+
/**
|
|
1198
|
+
* The id of the product.
|
|
1199
|
+
*/
|
|
1200
|
+
product_id?: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* The id of the price.
|
|
1203
|
+
*/
|
|
1204
|
+
price_id?: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* The flag for prices that contain price components.
|
|
1207
|
+
*/
|
|
1208
|
+
is_composite_price?: boolean;
|
|
1209
|
+
/**
|
|
1210
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
1211
|
+
*/
|
|
1212
|
+
description?: string;
|
|
1213
|
+
price_mappings?: /**
|
|
1214
|
+
* example:
|
|
1215
|
+
* [
|
|
1216
|
+
* {
|
|
1217
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1218
|
+
* "frequency_unit": "weekly",
|
|
1219
|
+
* "value": 1000.245,
|
|
1220
|
+
* "name": "avg consumption",
|
|
1221
|
+
* "metadata": {
|
|
1222
|
+
* "journey_title": "energy journey",
|
|
1223
|
+
* "step_name": "avg consumption picker"
|
|
1224
|
+
* }
|
|
1225
|
+
* }
|
|
1226
|
+
* ]
|
|
1227
|
+
*/
|
|
1228
|
+
PriceInputMappings;
|
|
918
1229
|
/**
|
|
919
|
-
*
|
|
1230
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
920
1231
|
*/
|
|
921
|
-
|
|
1232
|
+
is_tax_inclusive?: boolean;
|
|
922
1233
|
/**
|
|
923
|
-
* The
|
|
1234
|
+
* The snapshot of the product.
|
|
1235
|
+
* example:
|
|
1236
|
+
* {
|
|
1237
|
+
* "$ref": "#/components/examples/product"
|
|
1238
|
+
* }
|
|
924
1239
|
*/
|
|
925
|
-
|
|
1240
|
+
_product?: {
|
|
1241
|
+
[name: string]: any;
|
|
1242
|
+
/**
|
|
1243
|
+
* The description for the product
|
|
1244
|
+
*/
|
|
1245
|
+
description?: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* The product code
|
|
1248
|
+
*/
|
|
1249
|
+
code?: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* The type of Product:
|
|
1252
|
+
*
|
|
1253
|
+
* | type | description |
|
|
1254
|
+
* |----| ----|
|
|
1255
|
+
* | `product` | Represents a physical good |
|
|
1256
|
+
* | `service` | Represents a service or virtual product |
|
|
1257
|
+
*
|
|
1258
|
+
*/
|
|
1259
|
+
type?: "product" | "service";
|
|
1260
|
+
/**
|
|
1261
|
+
* The product main name
|
|
1262
|
+
*/
|
|
1263
|
+
name?: string;
|
|
1264
|
+
feature?: {
|
|
1265
|
+
/**
|
|
1266
|
+
* An arbitrary set of tags attached to a feature
|
|
1267
|
+
*/
|
|
1268
|
+
_tags?: string[];
|
|
1269
|
+
feature?: string;
|
|
1270
|
+
}[];
|
|
1271
|
+
/**
|
|
1272
|
+
* Stores references to products that can be cross sold with the current product.
|
|
1273
|
+
*/
|
|
1274
|
+
cross_sellable_products?: {
|
|
1275
|
+
$relation?: EntityRelation[];
|
|
1276
|
+
};
|
|
1277
|
+
/**
|
|
1278
|
+
* Stores references to a set of file images of the product
|
|
1279
|
+
*/
|
|
1280
|
+
product_images?: {
|
|
1281
|
+
$relation?: EntityRelation[];
|
|
1282
|
+
};
|
|
1283
|
+
/**
|
|
1284
|
+
* Stores references to a set of files downloadable from the product.
|
|
1285
|
+
* e.g: tech specifications, quality control sheets, privacy policy agreements
|
|
1286
|
+
*
|
|
1287
|
+
*/
|
|
1288
|
+
product_downloads?: {
|
|
1289
|
+
$relation?: EntityRelation[];
|
|
1290
|
+
};
|
|
1291
|
+
/**
|
|
1292
|
+
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
|
|
1293
|
+
*/
|
|
1294
|
+
price_options?: {
|
|
1295
|
+
$relation?: EntityRelation[];
|
|
1296
|
+
};
|
|
1297
|
+
/**
|
|
1298
|
+
* Stores references to the availability files that define where this product is available.
|
|
1299
|
+
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
|
|
1300
|
+
*
|
|
1301
|
+
*/
|
|
1302
|
+
_availability_files?: File[];
|
|
1303
|
+
/**
|
|
1304
|
+
* The product id
|
|
1305
|
+
*/
|
|
1306
|
+
_id?: string;
|
|
1307
|
+
/**
|
|
1308
|
+
* The autogenerated product title
|
|
1309
|
+
*/
|
|
1310
|
+
_title?: string;
|
|
1311
|
+
/**
|
|
1312
|
+
* The organization id the product belongs to
|
|
1313
|
+
*/
|
|
1314
|
+
_org_id?: string;
|
|
1315
|
+
/**
|
|
1316
|
+
* The product creation date
|
|
1317
|
+
*/
|
|
1318
|
+
_created_at?: string;
|
|
1319
|
+
/**
|
|
1320
|
+
* The product last update date
|
|
1321
|
+
*/
|
|
1322
|
+
_updated_at?: string;
|
|
1323
|
+
};
|
|
926
1324
|
/**
|
|
927
|
-
*
|
|
1325
|
+
* price item id
|
|
928
1326
|
*/
|
|
929
|
-
|
|
1327
|
+
_id?: string;
|
|
930
1328
|
/**
|
|
931
|
-
* The
|
|
1329
|
+
* The unit amount value
|
|
932
1330
|
*/
|
|
933
|
-
|
|
1331
|
+
unit_amount?: number;
|
|
934
1332
|
/**
|
|
935
|
-
*
|
|
1333
|
+
* The unit amount before any discount is applied
|
|
936
1334
|
*/
|
|
937
|
-
|
|
1335
|
+
before_discount_unit_amount?: number;
|
|
938
1336
|
/**
|
|
939
|
-
*
|
|
1337
|
+
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
940
1338
|
*/
|
|
941
|
-
|
|
1339
|
+
unit_amount_decimal?: string;
|
|
942
1340
|
/**
|
|
943
|
-
*
|
|
1341
|
+
* The discount amount applied for each unit
|
|
944
1342
|
*/
|
|
945
|
-
|
|
946
|
-
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
1343
|
+
unit_discount_amount?: number;
|
|
947
1344
|
/**
|
|
948
|
-
* The
|
|
1345
|
+
* The discount amount applied for each unit represented as a decimal string
|
|
949
1346
|
*/
|
|
950
|
-
|
|
1347
|
+
unit_discount_amount_decimal?: string;
|
|
951
1348
|
/**
|
|
952
1349
|
* The unit gross amount value.
|
|
953
1350
|
*/
|
|
@@ -956,10 +1353,6 @@ declare namespace Components {
|
|
|
956
1353
|
* The unit gross amount value.
|
|
957
1354
|
*/
|
|
958
1355
|
unit_amount_gross_decimal?: string;
|
|
959
|
-
/**
|
|
960
|
-
* Total tax amount for this line item.
|
|
961
|
-
*/
|
|
962
|
-
amount_tax?: number;
|
|
963
1356
|
/**
|
|
964
1357
|
* Net unit amount without taxes or discounts.
|
|
965
1358
|
*/
|
|
@@ -969,37 +1362,41 @@ declare namespace Components {
|
|
|
969
1362
|
*/
|
|
970
1363
|
unit_amount_net_decimal?: string;
|
|
971
1364
|
/**
|
|
972
|
-
* The
|
|
1365
|
+
* The net discount amount applied for each unit
|
|
973
1366
|
*/
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
*
|
|
977
|
-
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
978
|
-
*
|
|
979
|
-
* example:
|
|
980
|
-
* EUR
|
|
1367
|
+
unit_discount_amount_net?: number;
|
|
1368
|
+
/**
|
|
1369
|
+
* The net discount amount applied for each unit represented as a decimal string
|
|
981
1370
|
*/
|
|
982
|
-
|
|
1371
|
+
unit_discount_amount_net_decimal?: string;
|
|
983
1372
|
/**
|
|
984
|
-
*
|
|
1373
|
+
* The discount amount applied to the tax
|
|
985
1374
|
*/
|
|
986
|
-
|
|
1375
|
+
tax_discount_amount?: number;
|
|
987
1376
|
/**
|
|
988
|
-
* The
|
|
1377
|
+
* The discount amount applied to the tax represented as a decimal string
|
|
989
1378
|
*/
|
|
990
|
-
|
|
1379
|
+
tax_discount_amount_decimal?: string;
|
|
991
1380
|
/**
|
|
992
|
-
*
|
|
1381
|
+
* Total tax amount for this line item.
|
|
993
1382
|
*/
|
|
994
|
-
|
|
1383
|
+
amount_tax?: number;
|
|
995
1384
|
/**
|
|
996
|
-
* The
|
|
1385
|
+
* The tax amount before any discount is applied
|
|
997
1386
|
*/
|
|
998
|
-
|
|
1387
|
+
before_discount_tax_amount?: number;
|
|
999
1388
|
/**
|
|
1000
|
-
* The
|
|
1389
|
+
* The tax amount before any discount is applied represented as a decimal string
|
|
1001
1390
|
*/
|
|
1002
|
-
|
|
1391
|
+
before_discount_tax_amount_decimal?: string;
|
|
1392
|
+
currency?: /**
|
|
1393
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
1394
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
1395
|
+
*
|
|
1396
|
+
* example:
|
|
1397
|
+
* EUR
|
|
1398
|
+
*/
|
|
1399
|
+
Currency;
|
|
1003
1400
|
/**
|
|
1004
1401
|
* The price snapshot data.
|
|
1005
1402
|
*/
|
|
@@ -1018,14 +1415,6 @@ declare namespace Components {
|
|
|
1018
1415
|
* }
|
|
1019
1416
|
*/
|
|
1020
1417
|
CompositePrice;
|
|
1021
|
-
_product?: /**
|
|
1022
|
-
* The product entity
|
|
1023
|
-
* example:
|
|
1024
|
-
* {
|
|
1025
|
-
* "$ref": "#/components/examples/product"
|
|
1026
|
-
* }
|
|
1027
|
-
*/
|
|
1028
|
-
Product;
|
|
1029
1418
|
/**
|
|
1030
1419
|
* The taxes applied to the price item.
|
|
1031
1420
|
*/
|
|
@@ -1034,30 +1423,10 @@ declare namespace Components {
|
|
|
1034
1423
|
* The sum of amounts of the price items by recurrence.
|
|
1035
1424
|
*/
|
|
1036
1425
|
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
1426
|
/**
|
|
1054
1427
|
* 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
1428
|
*/
|
|
1056
1429
|
on_request_approved?: boolean;
|
|
1057
|
-
/**
|
|
1058
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1059
|
-
*/
|
|
1060
|
-
is_tax_inclusive?: boolean;
|
|
1061
1430
|
/**
|
|
1062
1431
|
* Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
|
|
1063
1432
|
*/
|
|
@@ -1080,6 +1449,22 @@ declare namespace Components {
|
|
|
1080
1449
|
* The quantity of products being purchased.
|
|
1081
1450
|
*/
|
|
1082
1451
|
quantity?: number;
|
|
1452
|
+
/**
|
|
1453
|
+
* The id of the product.
|
|
1454
|
+
*/
|
|
1455
|
+
product_id?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* The id of the price.
|
|
1458
|
+
*/
|
|
1459
|
+
price_id?: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* The flag for prices that contain price components.
|
|
1462
|
+
*/
|
|
1463
|
+
is_composite_price?: boolean;
|
|
1464
|
+
/**
|
|
1465
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
1466
|
+
*/
|
|
1467
|
+
description?: string;
|
|
1083
1468
|
price_mappings?: /**
|
|
1084
1469
|
* example:
|
|
1085
1470
|
* [
|
|
@@ -1096,47 +1481,10 @@ declare namespace Components {
|
|
|
1096
1481
|
* ]
|
|
1097
1482
|
*/
|
|
1098
1483
|
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
1484
|
/**
|
|
1137
|
-
*
|
|
1485
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1138
1486
|
*/
|
|
1139
|
-
|
|
1487
|
+
is_tax_inclusive?: boolean;
|
|
1140
1488
|
/**
|
|
1141
1489
|
* The snapshot of the product.
|
|
1142
1490
|
* example:
|
|
@@ -1228,6 +1576,31 @@ declare namespace Components {
|
|
|
1228
1576
|
*/
|
|
1229
1577
|
_updated_at?: string;
|
|
1230
1578
|
};
|
|
1579
|
+
external_fees_mappings?: /**
|
|
1580
|
+
* example:
|
|
1581
|
+
* [
|
|
1582
|
+
* {
|
|
1583
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1584
|
+
* "frequency_unit": "weekly",
|
|
1585
|
+
* "amount_total": 1000,
|
|
1586
|
+
* "amount_total_decimal": "10.00"
|
|
1587
|
+
* }
|
|
1588
|
+
* ]
|
|
1589
|
+
*/
|
|
1590
|
+
ExternalFeeMappings;
|
|
1591
|
+
external_fees_metadata?: ExternalFeeMetadata;
|
|
1592
|
+
/**
|
|
1593
|
+
* The ids of the coupons applicable to the price item
|
|
1594
|
+
*/
|
|
1595
|
+
coupon_ids?: string[];
|
|
1596
|
+
/**
|
|
1597
|
+
* The taxes applied to the price item.
|
|
1598
|
+
*/
|
|
1599
|
+
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
1600
|
+
/**
|
|
1601
|
+
* The taxes applied to the price item.
|
|
1602
|
+
*/
|
|
1603
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
1231
1604
|
/**
|
|
1232
1605
|
* The coupons applicable to the price item
|
|
1233
1606
|
*/
|
|
@@ -1262,10 +1635,6 @@ declare namespace Components {
|
|
|
1262
1635
|
* }
|
|
1263
1636
|
*/
|
|
1264
1637
|
Coupon)[];
|
|
1265
|
-
/**
|
|
1266
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
1267
|
-
*/
|
|
1268
|
-
is_tax_inclusive?: boolean;
|
|
1269
1638
|
/**
|
|
1270
1639
|
* Contains price item configurations, per price component, when the main price item is a [composite price](/api/pricing#tag/dynamic_price_schema).
|
|
1271
1640
|
*/
|
|
@@ -2418,147 +2787,314 @@ declare namespace Components {
|
|
|
2418
2787
|
concession_type?: /* The concession type for gas */ GasConcessionType;
|
|
2419
2788
|
meter_type?: /* The meter type for power */ PowerMeterType;
|
|
2420
2789
|
/**
|
|
2421
|
-
* Defines an array of tiers. Each tier has an upper bound, an unit amount and a flat fee.
|
|
2422
|
-
*
|
|
2790
|
+
* Defines an array of tiers. Each tier has an upper bound, an unit amount and a flat fee.
|
|
2791
|
+
*
|
|
2792
|
+
*/
|
|
2793
|
+
markup_tiers?: PriceTier[];
|
|
2794
|
+
markup_amount: number;
|
|
2795
|
+
markup_amount_decimal: string;
|
|
2796
|
+
markup_amount_net?: number;
|
|
2797
|
+
markup_amount_net_decimal?: string;
|
|
2798
|
+
unit_amount_gross: number;
|
|
2799
|
+
unit_amount_gross_decimal?: string;
|
|
2800
|
+
unit_amount_net: number;
|
|
2801
|
+
unit_amount_net_decimal?: string;
|
|
2802
|
+
}
|
|
2803
|
+
/**
|
|
2804
|
+
* example:
|
|
2805
|
+
* {
|
|
2806
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2807
|
+
* "frequency_unit": "weekly",
|
|
2808
|
+
* "value": 1000.245,
|
|
2809
|
+
* "name": "avg consumption",
|
|
2810
|
+
* "metadata": {
|
|
2811
|
+
* "journey_title": "energy journey",
|
|
2812
|
+
* "step_name": "avg consumption picker"
|
|
2813
|
+
* }
|
|
2814
|
+
* }
|
|
2815
|
+
*/
|
|
2816
|
+
export interface PriceInputMapping {
|
|
2817
|
+
price_id?: string;
|
|
2818
|
+
frequency_unit?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
2819
|
+
name?: string;
|
|
2820
|
+
value?: number;
|
|
2821
|
+
metadata?: {
|
|
2822
|
+
[name: string]: string;
|
|
2823
|
+
};
|
|
2824
|
+
}
|
|
2825
|
+
/**
|
|
2826
|
+
* example:
|
|
2827
|
+
* [
|
|
2828
|
+
* {
|
|
2829
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2830
|
+
* "frequency_unit": "weekly",
|
|
2831
|
+
* "value": 1000.245,
|
|
2832
|
+
* "name": "avg consumption",
|
|
2833
|
+
* "metadata": {
|
|
2834
|
+
* "journey_title": "energy journey",
|
|
2835
|
+
* "step_name": "avg consumption picker"
|
|
2836
|
+
* }
|
|
2837
|
+
* }
|
|
2838
|
+
* ]
|
|
2839
|
+
*/
|
|
2840
|
+
export type PriceInputMappings = /**
|
|
2841
|
+
* example:
|
|
2842
|
+
* {
|
|
2843
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2844
|
+
* "frequency_unit": "weekly",
|
|
2845
|
+
* "value": 1000.245,
|
|
2846
|
+
* "name": "avg consumption",
|
|
2847
|
+
* "metadata": {
|
|
2848
|
+
* "journey_title": "energy journey",
|
|
2849
|
+
* "step_name": "avg consumption picker"
|
|
2850
|
+
* }
|
|
2851
|
+
* }
|
|
2852
|
+
*/
|
|
2853
|
+
PriceInputMapping[];
|
|
2854
|
+
/**
|
|
2855
|
+
* Represents a price item
|
|
2856
|
+
* example:
|
|
2857
|
+
* {
|
|
2858
|
+
* "$ref": "#/components/examples/price-item/value"
|
|
2859
|
+
* }
|
|
2860
|
+
*/
|
|
2861
|
+
export interface PriceItem {
|
|
2862
|
+
/**
|
|
2863
|
+
* Total of all items before (discounts or) taxes are applied.
|
|
2864
|
+
*/
|
|
2865
|
+
amount_subtotal?: number;
|
|
2866
|
+
/**
|
|
2867
|
+
* Total of all items before (discounts or) taxes are applied, as a string with all the decimal places.
|
|
2868
|
+
*/
|
|
2869
|
+
amount_subtotal_decimal?: string;
|
|
2870
|
+
/**
|
|
2871
|
+
* Total of all items after (discounts and) taxes are applied.
|
|
2872
|
+
*/
|
|
2873
|
+
amount_total?: number;
|
|
2874
|
+
/**
|
|
2875
|
+
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
2876
|
+
*/
|
|
2877
|
+
amount_total_decimal?: string;
|
|
2878
|
+
/**
|
|
2879
|
+
* The discount amount.
|
|
2880
|
+
*/
|
|
2881
|
+
discount_amount?: number;
|
|
2882
|
+
/**
|
|
2883
|
+
* The discount amount as a string with all the decimal places.
|
|
2884
|
+
*/
|
|
2885
|
+
discount_amount_decimal?: string;
|
|
2886
|
+
/**
|
|
2887
|
+
* The discount percentage, if the applied coupon had a percentage type.
|
|
2888
|
+
*/
|
|
2889
|
+
discount_percentage?: number;
|
|
2890
|
+
/**
|
|
2891
|
+
* Total amount before discount is applied.
|
|
2892
|
+
*/
|
|
2893
|
+
before_discount_amount_total?: number;
|
|
2894
|
+
/**
|
|
2895
|
+
* Total amount before discount is applied as a string with all the decimal places.
|
|
2896
|
+
*/
|
|
2897
|
+
before_discount_amount_total_decimal?: string;
|
|
2898
|
+
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
2899
|
+
/**
|
|
2900
|
+
* The quantity of products being purchased.
|
|
2901
|
+
*/
|
|
2902
|
+
quantity?: number;
|
|
2903
|
+
/**
|
|
2904
|
+
* The id of the product.
|
|
2905
|
+
*/
|
|
2906
|
+
product_id?: string;
|
|
2907
|
+
/**
|
|
2908
|
+
* The id of the price.
|
|
2909
|
+
*/
|
|
2910
|
+
price_id?: string;
|
|
2911
|
+
/**
|
|
2912
|
+
* The flag for prices that contain price components.
|
|
2913
|
+
*/
|
|
2914
|
+
is_composite_price?: boolean;
|
|
2915
|
+
/**
|
|
2916
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
2917
|
+
*/
|
|
2918
|
+
description?: string;
|
|
2919
|
+
price_mappings?: /**
|
|
2920
|
+
* example:
|
|
2921
|
+
* [
|
|
2922
|
+
* {
|
|
2923
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2924
|
+
* "frequency_unit": "weekly",
|
|
2925
|
+
* "value": 1000.245,
|
|
2926
|
+
* "name": "avg consumption",
|
|
2927
|
+
* "metadata": {
|
|
2928
|
+
* "journey_title": "energy journey",
|
|
2929
|
+
* "step_name": "avg consumption picker"
|
|
2930
|
+
* }
|
|
2931
|
+
* }
|
|
2932
|
+
* ]
|
|
2933
|
+
*/
|
|
2934
|
+
PriceInputMappings;
|
|
2935
|
+
/**
|
|
2936
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2937
|
+
*/
|
|
2938
|
+
is_tax_inclusive?: boolean;
|
|
2939
|
+
/**
|
|
2940
|
+
* The snapshot of the product.
|
|
2941
|
+
* example:
|
|
2942
|
+
* {
|
|
2943
|
+
* "$ref": "#/components/examples/product"
|
|
2944
|
+
* }
|
|
2945
|
+
*/
|
|
2946
|
+
_product?: {
|
|
2947
|
+
[name: string]: any;
|
|
2948
|
+
/**
|
|
2949
|
+
* The description for the product
|
|
2950
|
+
*/
|
|
2951
|
+
description?: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* The product code
|
|
2954
|
+
*/
|
|
2955
|
+
code?: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* The type of Product:
|
|
2958
|
+
*
|
|
2959
|
+
* | type | description |
|
|
2960
|
+
* |----| ----|
|
|
2961
|
+
* | `product` | Represents a physical good |
|
|
2962
|
+
* | `service` | Represents a service or virtual product |
|
|
2963
|
+
*
|
|
2964
|
+
*/
|
|
2965
|
+
type?: "product" | "service";
|
|
2966
|
+
/**
|
|
2967
|
+
* The product main name
|
|
2968
|
+
*/
|
|
2969
|
+
name?: string;
|
|
2970
|
+
feature?: {
|
|
2971
|
+
/**
|
|
2972
|
+
* An arbitrary set of tags attached to a feature
|
|
2973
|
+
*/
|
|
2974
|
+
_tags?: string[];
|
|
2975
|
+
feature?: string;
|
|
2976
|
+
}[];
|
|
2977
|
+
/**
|
|
2978
|
+
* Stores references to products that can be cross sold with the current product.
|
|
2979
|
+
*/
|
|
2980
|
+
cross_sellable_products?: {
|
|
2981
|
+
$relation?: EntityRelation[];
|
|
2982
|
+
};
|
|
2983
|
+
/**
|
|
2984
|
+
* Stores references to a set of file images of the product
|
|
2985
|
+
*/
|
|
2986
|
+
product_images?: {
|
|
2987
|
+
$relation?: EntityRelation[];
|
|
2988
|
+
};
|
|
2989
|
+
/**
|
|
2990
|
+
* Stores references to a set of files downloadable from the product.
|
|
2991
|
+
* e.g: tech specifications, quality control sheets, privacy policy agreements
|
|
2992
|
+
*
|
|
2993
|
+
*/
|
|
2994
|
+
product_downloads?: {
|
|
2995
|
+
$relation?: EntityRelation[];
|
|
2996
|
+
};
|
|
2997
|
+
/**
|
|
2998
|
+
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
|
|
2999
|
+
*/
|
|
3000
|
+
price_options?: {
|
|
3001
|
+
$relation?: EntityRelation[];
|
|
3002
|
+
};
|
|
3003
|
+
/**
|
|
3004
|
+
* Stores references to the availability files that define where this product is available.
|
|
3005
|
+
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
|
|
3006
|
+
*
|
|
3007
|
+
*/
|
|
3008
|
+
_availability_files?: File[];
|
|
3009
|
+
/**
|
|
3010
|
+
* The product id
|
|
3011
|
+
*/
|
|
3012
|
+
_id?: string;
|
|
3013
|
+
/**
|
|
3014
|
+
* The autogenerated product title
|
|
3015
|
+
*/
|
|
3016
|
+
_title?: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* The organization id the product belongs to
|
|
3019
|
+
*/
|
|
3020
|
+
_org_id?: string;
|
|
3021
|
+
/**
|
|
3022
|
+
* The product creation date
|
|
3023
|
+
*/
|
|
3024
|
+
_created_at?: string;
|
|
3025
|
+
/**
|
|
3026
|
+
* The product last update date
|
|
3027
|
+
*/
|
|
3028
|
+
_updated_at?: string;
|
|
3029
|
+
};
|
|
3030
|
+
/**
|
|
3031
|
+
* price item id
|
|
2423
3032
|
*/
|
|
2424
|
-
|
|
2425
|
-
markup_amount: number;
|
|
2426
|
-
markup_amount_decimal: string;
|
|
2427
|
-
markup_amount_net?: number;
|
|
2428
|
-
markup_amount_net_decimal?: string;
|
|
2429
|
-
unit_amount_gross: number;
|
|
2430
|
-
unit_amount_gross_decimal?: string;
|
|
2431
|
-
unit_amount_net: number;
|
|
2432
|
-
unit_amount_net_decimal?: string;
|
|
2433
|
-
}
|
|
2434
|
-
/**
|
|
2435
|
-
* example:
|
|
2436
|
-
* {
|
|
2437
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2438
|
-
* "frequency_unit": "weekly",
|
|
2439
|
-
* "value": 1000.245,
|
|
2440
|
-
* "name": "avg consumption",
|
|
2441
|
-
* "metadata": {
|
|
2442
|
-
* "journey_title": "energy journey",
|
|
2443
|
-
* "step_name": "avg consumption picker"
|
|
2444
|
-
* }
|
|
2445
|
-
* }
|
|
2446
|
-
*/
|
|
2447
|
-
export interface PriceInputMapping {
|
|
2448
|
-
price_id?: string;
|
|
2449
|
-
frequency_unit?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
2450
|
-
name?: string;
|
|
2451
|
-
value?: number;
|
|
2452
|
-
metadata?: {
|
|
2453
|
-
[name: string]: string;
|
|
2454
|
-
};
|
|
2455
|
-
}
|
|
2456
|
-
/**
|
|
2457
|
-
* example:
|
|
2458
|
-
* [
|
|
2459
|
-
* {
|
|
2460
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2461
|
-
* "frequency_unit": "weekly",
|
|
2462
|
-
* "value": 1000.245,
|
|
2463
|
-
* "name": "avg consumption",
|
|
2464
|
-
* "metadata": {
|
|
2465
|
-
* "journey_title": "energy journey",
|
|
2466
|
-
* "step_name": "avg consumption picker"
|
|
2467
|
-
* }
|
|
2468
|
-
* }
|
|
2469
|
-
* ]
|
|
2470
|
-
*/
|
|
2471
|
-
export type PriceInputMappings = /**
|
|
2472
|
-
* example:
|
|
2473
|
-
* {
|
|
2474
|
-
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
2475
|
-
* "frequency_unit": "weekly",
|
|
2476
|
-
* "value": 1000.245,
|
|
2477
|
-
* "name": "avg consumption",
|
|
2478
|
-
* "metadata": {
|
|
2479
|
-
* "journey_title": "energy journey",
|
|
2480
|
-
* "step_name": "avg consumption picker"
|
|
2481
|
-
* }
|
|
2482
|
-
* }
|
|
2483
|
-
*/
|
|
2484
|
-
PriceInputMapping[];
|
|
2485
|
-
/**
|
|
2486
|
-
* Represents a price item
|
|
2487
|
-
* example:
|
|
2488
|
-
* {
|
|
2489
|
-
* "$ref": "#/components/examples/price-item/value"
|
|
2490
|
-
* }
|
|
2491
|
-
*/
|
|
2492
|
-
export interface PriceItem {
|
|
3033
|
+
_id?: string;
|
|
2493
3034
|
/**
|
|
2494
|
-
*
|
|
3035
|
+
* The unit amount value
|
|
2495
3036
|
*/
|
|
2496
|
-
|
|
3037
|
+
unit_amount?: number;
|
|
2497
3038
|
/**
|
|
2498
|
-
*
|
|
3039
|
+
* The unit amount before any discount is applied
|
|
2499
3040
|
*/
|
|
2500
|
-
|
|
3041
|
+
before_discount_unit_amount?: number;
|
|
2501
3042
|
/**
|
|
2502
|
-
*
|
|
3043
|
+
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
|
|
2503
3044
|
*/
|
|
2504
|
-
|
|
3045
|
+
unit_amount_decimal?: string;
|
|
2505
3046
|
/**
|
|
2506
|
-
*
|
|
3047
|
+
* The discount amount applied for each unit
|
|
2507
3048
|
*/
|
|
2508
|
-
|
|
3049
|
+
unit_discount_amount?: number;
|
|
2509
3050
|
/**
|
|
2510
|
-
* The discount amount
|
|
3051
|
+
* The discount amount applied for each unit represented as a decimal string
|
|
2511
3052
|
*/
|
|
2512
|
-
|
|
3053
|
+
unit_discount_amount_decimal?: string;
|
|
2513
3054
|
/**
|
|
2514
|
-
* The
|
|
3055
|
+
* The unit gross amount value.
|
|
2515
3056
|
*/
|
|
2516
|
-
|
|
3057
|
+
unit_amount_gross?: number;
|
|
2517
3058
|
/**
|
|
2518
|
-
* The
|
|
3059
|
+
* The unit gross amount value.
|
|
2519
3060
|
*/
|
|
2520
|
-
|
|
3061
|
+
unit_amount_gross_decimal?: string;
|
|
2521
3062
|
/**
|
|
2522
|
-
*
|
|
3063
|
+
* Net unit amount without taxes or discounts.
|
|
2523
3064
|
*/
|
|
2524
|
-
|
|
3065
|
+
unit_amount_net?: number;
|
|
2525
3066
|
/**
|
|
2526
|
-
*
|
|
3067
|
+
* Net unit amount without taxes or discounts.
|
|
2527
3068
|
*/
|
|
2528
|
-
|
|
3069
|
+
unit_amount_net_decimal?: string;
|
|
2529
3070
|
/**
|
|
2530
|
-
*
|
|
3071
|
+
* The net discount amount applied for each unit
|
|
2531
3072
|
*/
|
|
2532
|
-
|
|
2533
|
-
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
3073
|
+
unit_discount_amount_net?: number;
|
|
2534
3074
|
/**
|
|
2535
|
-
* The
|
|
3075
|
+
* The net discount amount applied for each unit represented as a decimal string
|
|
2536
3076
|
*/
|
|
2537
|
-
|
|
3077
|
+
unit_discount_amount_net_decimal?: string;
|
|
2538
3078
|
/**
|
|
2539
|
-
* The
|
|
3079
|
+
* The discount amount applied to the tax
|
|
2540
3080
|
*/
|
|
2541
|
-
|
|
3081
|
+
tax_discount_amount?: number;
|
|
2542
3082
|
/**
|
|
2543
|
-
* The
|
|
3083
|
+
* The discount amount applied to the tax represented as a decimal string
|
|
2544
3084
|
*/
|
|
2545
|
-
|
|
3085
|
+
tax_discount_amount_decimal?: string;
|
|
2546
3086
|
/**
|
|
2547
3087
|
* Total tax amount for this line item.
|
|
2548
3088
|
*/
|
|
2549
3089
|
amount_tax?: number;
|
|
2550
3090
|
/**
|
|
2551
|
-
*
|
|
2552
|
-
*/
|
|
2553
|
-
unit_amount_net?: number;
|
|
2554
|
-
/**
|
|
2555
|
-
* Net unit amount without taxes or discounts.
|
|
3091
|
+
* The tax amount before any discount is applied
|
|
2556
3092
|
*/
|
|
2557
|
-
|
|
3093
|
+
before_discount_tax_amount?: number;
|
|
2558
3094
|
/**
|
|
2559
|
-
* The
|
|
3095
|
+
* The tax amount before any discount is applied represented as a decimal string
|
|
2560
3096
|
*/
|
|
2561
|
-
|
|
3097
|
+
before_discount_tax_amount_decimal?: string;
|
|
2562
3098
|
currency?: /**
|
|
2563
3099
|
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
2564
3100
|
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
@@ -2567,26 +3103,6 @@ declare namespace Components {
|
|
|
2567
3103
|
* EUR
|
|
2568
3104
|
*/
|
|
2569
3105
|
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
3106
|
/**
|
|
2591
3107
|
* The price snapshot data.
|
|
2592
3108
|
*/
|
|
@@ -2605,14 +3121,6 @@ declare namespace Components {
|
|
|
2605
3121
|
* }
|
|
2606
3122
|
*/
|
|
2607
3123
|
CompositePrice;
|
|
2608
|
-
_product?: /**
|
|
2609
|
-
* The product entity
|
|
2610
|
-
* example:
|
|
2611
|
-
* {
|
|
2612
|
-
* "$ref": "#/components/examples/product"
|
|
2613
|
-
* }
|
|
2614
|
-
*/
|
|
2615
|
-
Product;
|
|
2616
3124
|
/**
|
|
2617
3125
|
* The taxes applied to the price item.
|
|
2618
3126
|
*/
|
|
@@ -2621,30 +3129,10 @@ declare namespace Components {
|
|
|
2621
3129
|
* The sum of amounts of the price items by recurrence.
|
|
2622
3130
|
*/
|
|
2623
3131
|
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
3132
|
/**
|
|
2641
3133
|
* 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
3134
|
*/
|
|
2643
3135
|
on_request_approved?: boolean;
|
|
2644
|
-
/**
|
|
2645
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2646
|
-
*/
|
|
2647
|
-
is_tax_inclusive?: boolean;
|
|
2648
3136
|
/**
|
|
2649
3137
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
2650
3138
|
*/
|
|
@@ -2675,6 +3163,22 @@ declare namespace Components {
|
|
|
2675
3163
|
* The quantity of products being purchased.
|
|
2676
3164
|
*/
|
|
2677
3165
|
quantity?: number;
|
|
3166
|
+
/**
|
|
3167
|
+
* The id of the product.
|
|
3168
|
+
*/
|
|
3169
|
+
product_id?: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* The id of the price.
|
|
3172
|
+
*/
|
|
3173
|
+
price_id?: string;
|
|
3174
|
+
/**
|
|
3175
|
+
* The flag for prices that contain price components.
|
|
3176
|
+
*/
|
|
3177
|
+
is_composite_price?: boolean;
|
|
3178
|
+
/**
|
|
3179
|
+
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
|
|
3180
|
+
*/
|
|
3181
|
+
description?: string;
|
|
2678
3182
|
price_mappings?: /**
|
|
2679
3183
|
* example:
|
|
2680
3184
|
* [
|
|
@@ -2691,47 +3195,10 @@ declare namespace Components {
|
|
|
2691
3195
|
* ]
|
|
2692
3196
|
*/
|
|
2693
3197
|
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
3198
|
/**
|
|
2732
|
-
*
|
|
3199
|
+
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2733
3200
|
*/
|
|
2734
|
-
|
|
3201
|
+
is_tax_inclusive?: boolean;
|
|
2735
3202
|
/**
|
|
2736
3203
|
* The snapshot of the product.
|
|
2737
3204
|
* example:
|
|
@@ -2823,6 +3290,31 @@ declare namespace Components {
|
|
|
2823
3290
|
*/
|
|
2824
3291
|
_updated_at?: string;
|
|
2825
3292
|
};
|
|
3293
|
+
external_fees_mappings?: /**
|
|
3294
|
+
* example:
|
|
3295
|
+
* [
|
|
3296
|
+
* {
|
|
3297
|
+
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
3298
|
+
* "frequency_unit": "weekly",
|
|
3299
|
+
* "amount_total": 1000,
|
|
3300
|
+
* "amount_total_decimal": "10.00"
|
|
3301
|
+
* }
|
|
3302
|
+
* ]
|
|
3303
|
+
*/
|
|
3304
|
+
ExternalFeeMappings;
|
|
3305
|
+
external_fees_metadata?: ExternalFeeMetadata;
|
|
3306
|
+
/**
|
|
3307
|
+
* The ids of the coupons applicable to the price item
|
|
3308
|
+
*/
|
|
3309
|
+
coupon_ids?: string[];
|
|
3310
|
+
/**
|
|
3311
|
+
* The taxes applied to the price item.
|
|
3312
|
+
*/
|
|
3313
|
+
taxes?: (/* A valid tax rate from a client. */ TaxAmountDto)[];
|
|
3314
|
+
/**
|
|
3315
|
+
* The taxes applied to the price item.
|
|
3316
|
+
*/
|
|
3317
|
+
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountDto)[];
|
|
2826
3318
|
/**
|
|
2827
3319
|
* The coupons applicable to the price item
|
|
2828
3320
|
*/
|
|
@@ -2857,10 +3349,6 @@ declare namespace Components {
|
|
|
2857
3349
|
* }
|
|
2858
3350
|
*/
|
|
2859
3351
|
Coupon)[];
|
|
2860
|
-
/**
|
|
2861
|
-
* Specifies whether the price is considered `inclusive` of taxes or not.
|
|
2862
|
-
*/
|
|
2863
|
-
is_tax_inclusive?: boolean;
|
|
2864
3352
|
/**
|
|
2865
3353
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
2866
3354
|
*/
|
|
@@ -4427,6 +4915,7 @@ export type AvailabilityFilters = Components.Schemas.AvailabilityFilters;
|
|
|
4427
4915
|
export type AvailabilityLocation = Components.Schemas.AvailabilityLocation;
|
|
4428
4916
|
export type AvailabilityResult = Components.Schemas.AvailabilityResult;
|
|
4429
4917
|
export type BasePriceItem = Components.Schemas.BasePriceItem;
|
|
4918
|
+
export type BasePriceItemCommon = Components.Schemas.BasePriceItemCommon;
|
|
4430
4919
|
export type BasePriceItemDto = Components.Schemas.BasePriceItemDto;
|
|
4431
4920
|
export type BasicAuthCredentials = Components.Schemas.BasicAuthCredentials;
|
|
4432
4921
|
export type BillingPeriod = Components.Schemas.BillingPeriod;
|