-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathopenapi.d.ts
6214 lines (6208 loc) · 230 KB
/
openapi.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* eslint-disable */
import type {
OpenAPIClient,
Parameters,
UnknownParamsObject,
OperationResponse,
AxiosRequestConfig,
} from 'openapi-client-axios';
declare namespace Components {
namespace Schemas {
export interface Address {
[name: string]: any;
/**
* example:
* [
* "billing"
* ]
*/
_tags?: string[];
/**
* The first line of the address. Typically the street address or PO Box number.
*/
street?: string | null;
/**
* The second line of the address. Typically the number of the apartment, suite, or unit.
*/
street_number?: string | null;
/**
* The postal code for the address.
*/
postal_code?: string | null;
/**
* The name of the city, district, village, or town.
*/
city?: string | null;
/**
* The two-letter code for the country of the address.
*/
country?: string | null;
/**
* An additional description for the address
*/
additional_info?: string | null;
/**
* the company name, usually used as extra delivery instructions
*/
company_name?: string | null;
/**
* the first name of the recipient, usually used as extra delivery instructions
*/
first_name?: string | null;
/**
* the last name of the recipient, usually used as extra delivery instructions
*/
last_name?: string | null;
/**
* the salutation of the recipient, usually used as extra delivery instructions
*/
salutation?: string | null;
/**
* the title of the recipient, usually used as extra delivery instructions
*/
title?: string | null;
}
export interface Amounts {
/**
* Total of all items before (discounts or) taxes are applied.
*/
amount_subtotal?: number;
/**
* Total of all items before (discounts or) taxes are applied, as a string with all the decimal places.
*/
amount_subtotal_decimal?: string;
/**
* Total of all items after (discounts and) taxes are applied.
*/
amount_total?: number;
/**
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
*/
amount_total_decimal?: string;
/**
* The discount amount.
*/
discount_amount?: number;
/**
* The discount amount as a string with all the decimal places.
*/
discount_amount_decimal?: string;
/**
* The cashback amount.
*/
cashback_amount?: number;
/**
* The cashback amount as a string with all the decimal places.
*/
cashback_amount_decimal?: string;
/**
* The cashback period, for now it's limited to either 0 months or 12 months
*/
cashback_period?: "0" | "12";
/**
* Total amount after cashback is applied.
*/
after_cashback_amount_total?: number;
/**
* Total amount after cashback is applied as a string with all the decimal places.
*/
after_cashback_amount_total_decimal?: string;
/**
* The discount percentage, if the applied coupon had a percentage type.
*/
discount_percentage?: number;
/**
* Total amount before discount is applied.
*/
before_discount_amount_total?: number;
/**
* Total amount before discount is applied as a string with all the decimal places.
*/
before_discount_amount_total_decimal?: string;
}
/**
* Availability check request payload
*/
export interface AvailabilityCheckParams {
/**
* Products to check availability
*/
products: string[];
filters: /* Availability filters dimensions */ AvailabilityFilters;
}
export interface AvailabilityDate {
/**
* The availability interval start date
* example:
* 2017-07-21
*/
available_start_date?: string; // date
/**
* The availability interval end date
* example:
* 2017-07-21
*/
available_end_date?: string; // date
}
/**
* Availability filters dimensions
*/
export interface AvailabilityFilters {
location: AvailabilityLocation;
/**
* A value to be matched against the availability window (start & end date)
* example:
* 2017-07-21
*/
available_date?: string; // date
}
export interface AvailabilityLocation {
/**
* The first line of the address. Typically the street address or PO Box number.
*/
street?: string;
/**
* The second line of the address. Typically the number of the apartment, suite, or unit.
*/
street_number?: string;
/**
* The postal code for the address.
*/
postal_code?: string;
/**
* The name of the city, district, village, or town.
*/
city?: string;
/**
* The name of the country.
*/
country?: string;
}
/**
* The availability check result payload
* example:
* {
* "available_products": [],
* "check_results": [
* {
* "product_id": "my-product-id-123-1",
* "matching_hits": 0
* },
* {
* "product_id": "my-product-id-123-2",
* "matching_hits": 0
* }
* ]
* }
*/
export interface AvailabilityResult {
available_products: string[];
/**
* The check result details
*/
check_results?: {
product_id: string;
/**
* The number of rules matched
*/
matching_hits?: number;
/**
* A set of matching errors when checking availability
*/
matching_error?: {
[name: string]: any;
};
}[];
}
export interface AverageMarketPriceResult {
market: /* The market for a spot market price. */ SpotMarketType;
bidding_zone: /* The bidding zone for a spot market price. */ SpotMarketBiddingZone;
price: /* A market price at a given point in time. */ MarketPriceRecord;
_meta?: /* Signature meta data payload */ SignatureMeta;
}
/**
* The coupon configuration
* example:
* {
* "_id": "123e4567-e89b-12d3-a456-426614174000",
* "_schema": "coupon",
* "_org": "org_12345",
* "_created_at": "2024-01-15T10:00:00.000Z",
* "_updated_at": "2024-01-20T12:00:00.000Z",
* "_title": "Sample Coupon",
* "name": "Sample Coupon",
* "type": "fixed",
* "fixed_value": 555,
* "fixed_value_currency": "USD",
* "fixed_value_decimal": "5.55",
* "active": true,
* "prices": {
* "$relation": [
* {
* "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
* "_tags": [
* "discount",
* "special"
* ],
* "_schema": "price"
* }
* ]
* }
* }
*/
export interface BaseCoupon {
[name: string]: any;
_id: EntityId /* uuid */;
/**
* The auto-generated title for the title
*/
_title: string;
/**
* Organization Id the entity belongs to
*/
_org: string;
/**
* The schema of the entity, for coupons it is always `coupon`
*/
_schema: "coupon";
_tags?: string[];
/**
* The creation date for the opportunity
*/
_created_at: string; // date-time
/**
* The date the coupon was last updated
*/
_updated_at: string; // date-time
name: string | null;
description?: string | null;
type?: "fixed" | "percentage";
category?: "discount" | "cashback";
/**
* Use if type is set to percentage. The percentage to be discounted, represented as a whole integer.
*/
percentage_value?: string | null;
/**
* Use if type is set to fixed. The fixed amount in cents to be discounted, represented as a whole integer.
*/
fixed_value?: number;
/**
* Use if type is set to fixed. The unit amount in cents to be discounted, represented as a decimal string with at most 12 decimal places.
*/
fixed_value_decimal?: string;
/**
* Use if type is set to fixed. Three-letter ISO currency code, in lowercase.
*/
fixed_value_currency?: /* Use if type is set to fixed. Three-letter ISO currency code, in lowercase. */ /**
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
*
* example:
* EUR
*/
Currency;
/**
* The cashback period, for now it's limited to either 0 months or 12 months
*/
cashback_period?: "0" | "12";
active?: boolean;
/**
* Whether the coupon requires a promo code to be applied
*/
requires_promo_code?: boolean;
/**
* The prices associated with the coupon. Will hold price entities if hydrated, relations otherwise.
*/
prices?: /* The prices associated with the coupon. Will hold price entities if hydrated, relations otherwise. */ {
$relation?: EntityRelation[];
} | /**
* The price entity schema for simple pricing
* example:
* {
* "$ref": "#/components/examples/price"
* }
*/
Price[];
}
/**
* Represents a price item
* example:
* {
* "$ref": "#/components/examples/price-item/value"
* }
*/
export interface BasePriceItem {
/**
* Total of all items before (discounts or) taxes are applied.
*/
amount_subtotal?: number;
/**
* Total of all items before (discounts or) taxes are applied, as a string with all the decimal places.
*/
amount_subtotal_decimal?: string;
/**
* Total of all items after (discounts and) taxes are applied.
*/
amount_total?: number;
/**
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
*/
amount_total_decimal?: string;
/**
* The discount amount.
*/
discount_amount?: number;
/**
* The discount amount as a string with all the decimal places.
*/
discount_amount_decimal?: string;
/**
* The cashback amount.
*/
cashback_amount?: number;
/**
* The cashback amount as a string with all the decimal places.
*/
cashback_amount_decimal?: string;
/**
* The cashback period, for now it's limited to either 0 months or 12 months
*/
cashback_period?: "0" | "12";
/**
* Total amount after cashback is applied.
*/
after_cashback_amount_total?: number;
/**
* Total amount after cashback is applied as a string with all the decimal places.
*/
after_cashback_amount_total_decimal?: string;
/**
* The discount percentage, if the applied coupon had a percentage type.
*/
discount_percentage?: number;
/**
* Total amount before discount is applied.
*/
before_discount_amount_total?: number;
/**
* Total amount before discount is applied as a string with all the decimal places.
*/
before_discount_amount_total_decimal?: string;
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
/**
* The quantity of products being purchased.
*/
quantity?: number;
/**
* The id of the product.
*/
product_id?: string;
/**
* The id of the price.
*/
price_id?: string;
/**
* The flag for prices that contain price components.
*/
is_composite_price?: boolean;
/**
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
*/
description?: string;
price_mappings?: /**
* example:
* [
* {
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
* "frequency_unit": "weekly",
* "value": 1000.245,
* "name": "avg consumption",
* "metadata": {
* "journey_title": "energy journey",
* "step_name": "avg consumption picker"
* }
* }
* ]
*/
PriceInputMappings;
/**
* Specifies whether the price is considered `inclusive` of taxes or not.
*/
is_tax_inclusive?: boolean;
/**
* The snapshot of the product.
* example:
* {
* "$ref": "#/components/examples/product"
* }
*/
_product?: {
[name: string]: any;
/**
* The description for the product
*/
description?: string;
/**
* The product code
*/
code?: string;
/**
* The type of Product:
*
* | type | description |
* |----| ----|
* | `product` | Represents a physical good |
* | `service` | Represents a service or virtual product |
*
*/
type?: "product" | "service";
/**
* The product main name
*/
name?: string;
/**
* The product categories
*/
categories?: string[];
feature?: {
/**
* An arbitrary set of tags attached to a feature
*/
_tags?: string[];
feature?: string;
}[];
/**
* Stores references to products that can be cross sold with the current product.
*/
cross_sellable_products?: {
$relation?: EntityRelation[];
};
/**
* Stores references to a set of file images of the product
*/
product_images?: /* Stores references to a set of file images of the product */ {
$relation?: EntityRelation[];
} | File[];
/**
* Stores references to a set of files downloadable from the product.
* e.g: tech specifications, quality control sheets, privacy policy agreements
*
*/
product_downloads?: /**
* Stores references to a set of files downloadable from the product.
* e.g: tech specifications, quality control sheets, privacy policy agreements
*
*/
{
$relation?: EntityRelation[];
} | File[];
/**
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
*/
price_options?: {
$relation?: EntityRelation[];
};
/**
* Stores references to the availability files that define where this product is available.
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
*
*/
_availability_files?: File[];
/**
* The product id
*/
_id?: string;
/**
* The autogenerated product title
*/
_title?: string;
/**
* The organization id the product belongs to
*/
_org_id?: string;
/**
* The product creation date
*/
_created_at?: string;
/**
* The product last update date
*/
_updated_at?: string;
};
/**
* price item id
*/
_id?: string;
/**
* The unit amount value
*/
unit_amount?: number;
/**
* The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
*/
unit_amount_decimal?: string;
/**
* The unit amount before any discount is applied
*/
before_discount_unit_amount?: number;
/**
* The unit amount before any discount is applied, represented as a decimal string with at most 12 decimal places.
*/
before_discount_unit_amount_decimal?: string;
/**
* The unit gross amount before any discount is applied
*/
before_discount_unit_amount_gross?: number;
/**
* The unit gross amount before any discount is applied, represented as a decimal string with at most 12 decimal places.
*/
before_discount_unit_amount_gross_decimal?: string;
/**
* The unit net amount before any discount is applied
*/
before_discount_unit_amount_net?: number;
/**
* The unit net amount before any discount is applied, represented as a decimal string with at most 12 decimal places.
*/
before_discount_unit_amount_net_decimal?: string;
/**
* The discount amount applied for each unit
*/
unit_discount_amount?: number;
/**
* The discount amount applied for each unit represented as a decimal string
*/
unit_discount_amount_decimal?: string;
/**
* The unit gross amount value.
*/
unit_amount_gross?: number;
/**
* The unit gross amount value.
*/
unit_amount_gross_decimal?: string;
/**
* Net unit amount without taxes or discounts.
*/
unit_amount_net?: number;
/**
* Net unit amount without taxes or discounts.
*/
unit_amount_net_decimal?: string;
/**
* The net discount amount applied for each unit
*/
unit_discount_amount_net?: number;
/**
* The net discount amount applied for each unit represented as a decimal string
*/
unit_discount_amount_net_decimal?: string;
/**
* The discount amount applied to the tax
*/
tax_discount_amount?: number;
/**
* The discount amount applied to the tax represented as a decimal string
*/
tax_discount_amount_decimal?: string;
/**
* The net discount amount applied
*/
discount_amount_net?: number;
/**
* The net discount amount applied represented as a decimal string
*/
discount_amount_net_decimal?: string;
/**
* Total tax amount for this line item.
*/
amount_tax?: number;
/**
* The tax amount before any discount is applied
*/
before_discount_tax_amount?: number;
/**
* The tax amount before any discount is applied represented as a decimal string
*/
before_discount_tax_amount_decimal?: string;
currency?: /**
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
*
* example:
* EUR
*/
Currency;
/**
* The price snapshot data.
*/
_price?: /* The price snapshot data. */ /**
* The price entity schema for simple pricing
* example:
* {
* "$ref": "#/components/examples/price"
* }
*/
Price | /**
* The price entity schema for dynamic pricing
* example:
* {
* "$ref": "#/components/examples/composite-price"
* }
*/
CompositePrice;
/**
* The taxes applied to the price item.
*/
taxes?: (/* A tax amount associated with a specific tax rate. */ TaxAmount)[];
/**
* The sum of amounts of the price items by recurrence.
*/
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
/**
* The coupons applicable to the price item
*/
_coupons?: (/**
* The coupon configuration
* example:
* {
* "_id": "123e4567-e89b-12d3-a456-426614174000",
* "_schema": "coupon",
* "_org": "org_12345",
* "_created_at": "2024-01-15T10:00:00.000Z",
* "_updated_at": "2024-01-20T12:00:00.000Z",
* "_title": "Sample Coupon",
* "name": "Sample Coupon",
* "type": "fixed",
* "fixed_value": 555,
* "fixed_value_currency": "USD",
* "fixed_value_decimal": "5.55",
* "active": true,
* "prices": {
* "$relation": [
* {
* "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
* "_tags": [
* "discount",
* "special"
* ],
* "_schema": "price"
* }
* ]
* }
* }
*/
Coupon)[];
/**
* 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'.
*/
on_request_approved?: boolean;
}
/**
* Represents the common keys in BasePriceItem and BasePriceItemDto
*/
export interface BasePriceItemCommon {
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
/**
* The quantity of products being purchased.
*/
quantity?: number;
/**
* The id of the product.
*/
product_id?: string;
/**
* The id of the price.
*/
price_id?: string;
/**
* The flag for prices that contain price components.
*/
is_composite_price?: boolean;
/**
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
*/
description?: string;
/**
* Price mapping information required to compute totals
*/
price_mappings?: /**
* example:
* [
* {
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
* "frequency_unit": "weekly",
* "value": 1000.245,
* "name": "avg consumption",
* "metadata": {
* "journey_title": "energy journey",
* "step_name": "avg consumption picker"
* }
* }
* ]
*/
PriceInputMappings;
/**
* Specifies whether the price is considered `inclusive` of taxes or not.
*/
is_tax_inclusive?: boolean;
/**
* The snapshot of the product.
* example:
* {
* "$ref": "#/components/examples/product"
* }
*/
_product?: {
[name: string]: any;
/**
* The description for the product
*/
description?: string;
/**
* The product code
*/
code?: string;
/**
* The type of Product:
*
* | type | description |
* |----| ----|
* | `product` | Represents a physical good |
* | `service` | Represents a service or virtual product |
*
*/
type?: "product" | "service";
/**
* The product main name
*/
name?: string;
/**
* The product categories
*/
categories?: string[];
feature?: {
/**
* An arbitrary set of tags attached to a feature
*/
_tags?: string[];
feature?: string;
}[];
/**
* Stores references to products that can be cross sold with the current product.
*/
cross_sellable_products?: {
$relation?: EntityRelation[];
};
/**
* Stores references to a set of file images of the product
*/
product_images?: /* Stores references to a set of file images of the product */ {
$relation?: EntityRelation[];
} | File[];
/**
* Stores references to a set of files downloadable from the product.
* e.g: tech specifications, quality control sheets, privacy policy agreements
*
*/
product_downloads?: /**
* Stores references to a set of files downloadable from the product.
* e.g: tech specifications, quality control sheets, privacy policy agreements
*
*/
{
$relation?: EntityRelation[];
} | File[];
/**
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
*/
price_options?: {
$relation?: EntityRelation[];
};
/**
* Stores references to the availability files that define where this product is available.
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
*
*/
_availability_files?: File[];
/**
* The product id
*/
_id?: string;
/**
* The autogenerated product title
*/
_title?: string;
/**
* The organization id the product belongs to
*/
_org_id?: string;
/**
* The product creation date
*/
_created_at?: string;
/**
* The product last update date
*/
_updated_at?: string;
};
}
/**
* Represents a valid base price item from a client.
*/
export interface BasePriceItemDto {
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
/**
* The quantity of products being purchased.
*/
quantity?: number;
/**
* The id of the product.
*/
product_id?: string;
/**
* The id of the price.
*/
price_id?: string;
/**
* The flag for prices that contain price components.
*/
is_composite_price?: boolean;
/**
* An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
*/
description?: string;
price_mappings?: /**
* example:
* [
* {
* "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
* "frequency_unit": "weekly",
* "value": 1000.245,
* "name": "avg consumption",
* "metadata": {
* "journey_title": "energy journey",
* "step_name": "avg consumption picker"
* }
* }
* ]
*/
PriceInputMappings;
/**
* Specifies whether the price is considered `inclusive` of taxes or not.
*/
is_tax_inclusive?: boolean;
/**
* The snapshot of the product.
* example:
* {
* "$ref": "#/components/examples/product"
* }
*/
_product?: {
[name: string]: any;
/**
* The description for the product
*/
description?: string;
/**
* The product code
*/
code?: string;
/**
* The type of Product:
*
* | type | description |
* |----| ----|
* | `product` | Represents a physical good |
* | `service` | Represents a service or virtual product |
*
*/
type?: "product" | "service";
/**
* The product main name
*/
name?: string;
/**
* The product categories
*/
categories?: string[];
feature?: {
/**
* An arbitrary set of tags attached to a feature
*/
_tags?: string[];
feature?: string;
}[];
/**
* Stores references to products that can be cross sold with the current product.
*/
cross_sellable_products?: {
$relation?: EntityRelation[];
};
/**
* Stores references to a set of file images of the product
*/
product_images?: /* Stores references to a set of file images of the product */ {
$relation?: EntityRelation[];
} | File[];
/**
* Stores references to a set of files downloadable from the product.
* e.g: tech specifications, quality control sheets, privacy policy agreements
*
*/
product_downloads?: /**
* Stores references to a set of files downloadable from the product.
* e.g: tech specifications, quality control sheets, privacy policy agreements
*
*/
{
$relation?: EntityRelation[];
} | File[];
/**
* A set of [prices](/api/pricing#tag/simple_price_schema) or [composite prices](/api/pricing#tag/dynamic_price_schema) for the current product.
*/
price_options?: {
$relation?: EntityRelation[];
};
/**
* Stores references to the availability files that define where this product is available.
* These files are used when interacting with products via epilot Journeys, thought the AvailabilityCheck block.
*
*/
_availability_files?: File[];
/**
* The product id
*/
_id?: string;
/**
* The autogenerated product title
*/
_title?: string;
/**
* The organization id the product belongs to
*/
_org_id?: string;
/**
* The product creation date
*/
_created_at?: string;
/**
* The product last update date
*/
_updated_at?: string;
};
external_fees_mappings?: /**
* example:
* [
* {