@epilot/pricing-client 3.9.2 → 3.11.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 +1 -1
- package/dist/openapi.json +224 -61
- package/package.json +2 -2
package/dist/openapi.d.ts
CHANGED
package/dist/openapi.json
CHANGED
|
@@ -66,15 +66,24 @@
|
|
|
66
66
|
"x-tagGroups": [
|
|
67
67
|
{
|
|
68
68
|
"name": "Commerce Schemas",
|
|
69
|
-
"tags": [
|
|
69
|
+
"tags": [
|
|
70
|
+
"order_schema",
|
|
71
|
+
"opportunity_schema"
|
|
72
|
+
]
|
|
70
73
|
},
|
|
71
74
|
{
|
|
72
75
|
"name": "Pricing Schemas",
|
|
73
|
-
"tags": [
|
|
76
|
+
"tags": [
|
|
77
|
+
"product_schema",
|
|
78
|
+
"simple_price_schema",
|
|
79
|
+
"dynamic_price_schema"
|
|
80
|
+
]
|
|
74
81
|
},
|
|
75
82
|
{
|
|
76
83
|
"name": "Examples",
|
|
77
|
-
"tags": [
|
|
84
|
+
"tags": [
|
|
85
|
+
"order_composite_prices"
|
|
86
|
+
]
|
|
78
87
|
},
|
|
79
88
|
{
|
|
80
89
|
"name": "APIs",
|
|
@@ -106,7 +115,9 @@
|
|
|
106
115
|
"description": "Create an order",
|
|
107
116
|
"operationId": "createOrder",
|
|
108
117
|
"summary": "createOrder",
|
|
109
|
-
"tags": [
|
|
118
|
+
"tags": [
|
|
119
|
+
"Order API"
|
|
120
|
+
],
|
|
110
121
|
"requestBody": {
|
|
111
122
|
"required": true,
|
|
112
123
|
"content": {
|
|
@@ -172,7 +183,9 @@
|
|
|
172
183
|
"delivery_address": [],
|
|
173
184
|
"dates": [
|
|
174
185
|
{
|
|
175
|
-
"_tags": [
|
|
186
|
+
"_tags": [
|
|
187
|
+
"Instalation Date"
|
|
188
|
+
],
|
|
176
189
|
"dates": "",
|
|
177
190
|
"value": "2022-06-30T16:29:00.000Z"
|
|
178
191
|
}
|
|
@@ -236,7 +249,9 @@
|
|
|
236
249
|
"delivery_address": [],
|
|
237
250
|
"dates": [
|
|
238
251
|
{
|
|
239
|
-
"_tags": [
|
|
252
|
+
"_tags": [
|
|
253
|
+
"Instalation Date"
|
|
254
|
+
],
|
|
240
255
|
"dates": "",
|
|
241
256
|
"value": "2022-06-30T16:29:00.000Z"
|
|
242
257
|
}
|
|
@@ -309,7 +324,9 @@
|
|
|
309
324
|
"delivery_address": [],
|
|
310
325
|
"dates": [
|
|
311
326
|
{
|
|
312
|
-
"_tags": [
|
|
327
|
+
"_tags": [
|
|
328
|
+
"Instalation Date"
|
|
329
|
+
],
|
|
313
330
|
"dates": "",
|
|
314
331
|
"value": "2022-06-30T16:29:00.000Z"
|
|
315
332
|
}
|
|
@@ -352,7 +369,9 @@
|
|
|
352
369
|
"description": "Update an existing Order",
|
|
353
370
|
"operationId": "putOrder",
|
|
354
371
|
"summary": "putOrder",
|
|
355
|
-
"tags": [
|
|
372
|
+
"tags": [
|
|
373
|
+
"Order API"
|
|
374
|
+
],
|
|
356
375
|
"parameters": [
|
|
357
376
|
{
|
|
358
377
|
"in": "path",
|
|
@@ -433,7 +452,9 @@
|
|
|
433
452
|
"delivery_address": [],
|
|
434
453
|
"dates": [
|
|
435
454
|
{
|
|
436
|
-
"_tags": [
|
|
455
|
+
"_tags": [
|
|
456
|
+
"Instalation Date"
|
|
457
|
+
],
|
|
437
458
|
"dates": "",
|
|
438
459
|
"value": "2022-06-30T16:29:00.000Z"
|
|
439
460
|
}
|
|
@@ -474,7 +495,9 @@
|
|
|
474
495
|
"operationId": "$checkoutCart",
|
|
475
496
|
"summary": "checkoutCart",
|
|
476
497
|
"security": [],
|
|
477
|
-
"tags": [
|
|
498
|
+
"tags": [
|
|
499
|
+
"Cart API"
|
|
500
|
+
],
|
|
478
501
|
"parameters": [
|
|
479
502
|
{
|
|
480
503
|
"in": "header",
|
|
@@ -536,7 +559,9 @@
|
|
|
536
559
|
"operationId": "$searchCatalog",
|
|
537
560
|
"summary": "searchCatalog",
|
|
538
561
|
"security": [],
|
|
539
|
-
"tags": [
|
|
562
|
+
"tags": [
|
|
563
|
+
"Catalog API"
|
|
564
|
+
],
|
|
540
565
|
"parameters": [
|
|
541
566
|
{
|
|
542
567
|
"in": "header",
|
|
@@ -588,7 +613,9 @@
|
|
|
588
613
|
"operationId": "$availabilityCheck",
|
|
589
614
|
"summary": "availabilityCheck",
|
|
590
615
|
"security": [],
|
|
591
|
-
"tags": [
|
|
616
|
+
"tags": [
|
|
617
|
+
"Availability API"
|
|
618
|
+
],
|
|
592
619
|
"parameters": [
|
|
593
620
|
{
|
|
594
621
|
"in": "header",
|
|
@@ -610,7 +637,9 @@
|
|
|
610
637
|
"examples": {
|
|
611
638
|
"Check availability with location dimension": {
|
|
612
639
|
"value": {
|
|
613
|
-
"products": [
|
|
640
|
+
"products": [
|
|
641
|
+
"cd75456a-30e4-4912-95be-e743d5ea175b"
|
|
642
|
+
],
|
|
614
643
|
"filters": {
|
|
615
644
|
"location": {
|
|
616
645
|
"postal_code": "57008",
|
|
@@ -623,7 +652,9 @@
|
|
|
623
652
|
},
|
|
624
653
|
"Check availability with location & available date dimension": {
|
|
625
654
|
"value": {
|
|
626
|
-
"products": [
|
|
655
|
+
"products": [
|
|
656
|
+
"cd75456a-30e4-4912-95be-e743d5ea175b"
|
|
657
|
+
],
|
|
627
658
|
"filters": {
|
|
628
659
|
"location": {
|
|
629
660
|
"postal_code": "57008",
|
|
@@ -668,7 +699,9 @@
|
|
|
668
699
|
},
|
|
669
700
|
"Response with available and unavailable products": {
|
|
670
701
|
"value": {
|
|
671
|
-
"availableProducts": [
|
|
702
|
+
"availableProducts": [
|
|
703
|
+
"my-product-id-123-2"
|
|
704
|
+
],
|
|
672
705
|
"checkResults": [
|
|
673
706
|
{
|
|
674
707
|
"productId": "my-product-id-123-1",
|
|
@@ -705,7 +738,9 @@
|
|
|
705
738
|
"description": "Validates an availability file, it returns an array of errors if the file is invalid",
|
|
706
739
|
"operationId": "$validateAvailabilityFile",
|
|
707
740
|
"summary": "validateAvailabilityFile",
|
|
708
|
-
"tags": [
|
|
741
|
+
"tags": [
|
|
742
|
+
"Availability API"
|
|
743
|
+
],
|
|
709
744
|
"parameters": [
|
|
710
745
|
{
|
|
711
746
|
"in": "path",
|
|
@@ -776,7 +811,9 @@
|
|
|
776
811
|
"operationId": "$createOpportunity",
|
|
777
812
|
"summary": "createOpportunity",
|
|
778
813
|
"security": [],
|
|
779
|
-
"tags": [
|
|
814
|
+
"tags": [
|
|
815
|
+
"Deprecated"
|
|
816
|
+
],
|
|
780
817
|
"parameters": [
|
|
781
818
|
{
|
|
782
819
|
"in": "header",
|
|
@@ -818,11 +855,16 @@
|
|
|
818
855
|
"$relation": [
|
|
819
856
|
{
|
|
820
857
|
"entity_id": "c8dbe8f3-28b6-4d77-aae8-47bc24a2532f",
|
|
821
|
-
"_tags": [
|
|
858
|
+
"_tags": [
|
|
859
|
+
"journey"
|
|
860
|
+
]
|
|
822
861
|
}
|
|
823
862
|
]
|
|
824
863
|
},
|
|
825
|
-
"_tags": [
|
|
864
|
+
"_tags": [
|
|
865
|
+
"journey",
|
|
866
|
+
"ORWNr4iCN"
|
|
867
|
+
]
|
|
826
868
|
}
|
|
827
869
|
}
|
|
828
870
|
}
|
|
@@ -864,7 +906,9 @@
|
|
|
864
906
|
},
|
|
865
907
|
"schemas": {
|
|
866
908
|
"Error": {
|
|
867
|
-
"required": [
|
|
909
|
+
"required": [
|
|
910
|
+
"message"
|
|
911
|
+
],
|
|
868
912
|
"properties": {
|
|
869
913
|
"message": {
|
|
870
914
|
"type": "string",
|
|
@@ -900,7 +944,10 @@
|
|
|
900
944
|
"type": {
|
|
901
945
|
"type": "string",
|
|
902
946
|
"description": "The type of Product:\n\n| type | description |\n|----| ----|\n| `product` | Represents a physical good |\n| `service` | Represents a service or virtual product |\n",
|
|
903
|
-
"enum": [
|
|
947
|
+
"enum": [
|
|
948
|
+
"product",
|
|
949
|
+
"service"
|
|
950
|
+
]
|
|
904
951
|
},
|
|
905
952
|
"name": {
|
|
906
953
|
"type": "string",
|
|
@@ -1497,7 +1544,10 @@
|
|
|
1497
1544
|
"type": {
|
|
1498
1545
|
"type": "string",
|
|
1499
1546
|
"description": "One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.",
|
|
1500
|
-
"enum": [
|
|
1547
|
+
"enum": [
|
|
1548
|
+
"one_time",
|
|
1549
|
+
"recurring"
|
|
1550
|
+
]
|
|
1501
1551
|
},
|
|
1502
1552
|
"billing_period": {
|
|
1503
1553
|
"description": "For recurring prices `billing_period` defines the default extent of the recurrence.",
|
|
@@ -1539,7 +1589,11 @@
|
|
|
1539
1589
|
"billing_duration_unit": {
|
|
1540
1590
|
"description": "The billing period duration unit",
|
|
1541
1591
|
"type": "string",
|
|
1542
|
-
"enum": [
|
|
1592
|
+
"enum": [
|
|
1593
|
+
"weeks",
|
|
1594
|
+
"months",
|
|
1595
|
+
"years"
|
|
1596
|
+
]
|
|
1543
1597
|
},
|
|
1544
1598
|
"notice_time_amount": {
|
|
1545
1599
|
"description": "The notice period duration",
|
|
@@ -1548,7 +1602,11 @@
|
|
|
1548
1602
|
"notice_time_unit": {
|
|
1549
1603
|
"description": "The notice period duration unit",
|
|
1550
1604
|
"type": "string",
|
|
1551
|
-
"enum": [
|
|
1605
|
+
"enum": [
|
|
1606
|
+
"weeks",
|
|
1607
|
+
"months",
|
|
1608
|
+
"years"
|
|
1609
|
+
]
|
|
1552
1610
|
},
|
|
1553
1611
|
"termination_time_amount": {
|
|
1554
1612
|
"description": "The termination period duration",
|
|
@@ -1557,7 +1615,11 @@
|
|
|
1557
1615
|
"termination_time_unit": {
|
|
1558
1616
|
"description": "The termination period duration unit",
|
|
1559
1617
|
"type": "string",
|
|
1560
|
-
"enum": [
|
|
1618
|
+
"enum": [
|
|
1619
|
+
"weeks",
|
|
1620
|
+
"months",
|
|
1621
|
+
"years"
|
|
1622
|
+
]
|
|
1561
1623
|
},
|
|
1562
1624
|
"renewal_duration_amount": {
|
|
1563
1625
|
"description": "The renewal period duration",
|
|
@@ -1566,7 +1628,11 @@
|
|
|
1566
1628
|
"renewal_duration_unit": {
|
|
1567
1629
|
"description": "The renewal period duration unit",
|
|
1568
1630
|
"type": "string",
|
|
1569
|
-
"enum": [
|
|
1631
|
+
"enum": [
|
|
1632
|
+
"weeks",
|
|
1633
|
+
"months",
|
|
1634
|
+
"years"
|
|
1635
|
+
]
|
|
1570
1636
|
},
|
|
1571
1637
|
"variable_price": {
|
|
1572
1638
|
"description": "The flag for prices that can be influenced by external variables such as user input.",
|
|
@@ -1628,7 +1694,9 @@
|
|
|
1628
1694
|
}
|
|
1629
1695
|
}
|
|
1630
1696
|
},
|
|
1631
|
-
"required": [
|
|
1697
|
+
"required": [
|
|
1698
|
+
"pricing_model"
|
|
1699
|
+
]
|
|
1632
1700
|
},
|
|
1633
1701
|
"CompositePrice": {
|
|
1634
1702
|
"type": "object",
|
|
@@ -1857,7 +1925,9 @@
|
|
|
1857
1925
|
}
|
|
1858
1926
|
}
|
|
1859
1927
|
},
|
|
1860
|
-
"required": [
|
|
1928
|
+
"required": [
|
|
1929
|
+
"q"
|
|
1930
|
+
]
|
|
1861
1931
|
},
|
|
1862
1932
|
"CatalogSearchResult": {
|
|
1863
1933
|
"description": "The query result payload",
|
|
@@ -1911,7 +1981,10 @@
|
|
|
1911
1981
|
"$ref": "#/components/schemas/AvailabilityFilters"
|
|
1912
1982
|
}
|
|
1913
1983
|
},
|
|
1914
|
-
"required": [
|
|
1984
|
+
"required": [
|
|
1985
|
+
"products",
|
|
1986
|
+
"filters"
|
|
1987
|
+
]
|
|
1915
1988
|
},
|
|
1916
1989
|
"AvailabilityResult": {
|
|
1917
1990
|
"description": "The availability check result payload",
|
|
@@ -1943,11 +2016,15 @@
|
|
|
1943
2016
|
"additionalProperties": true
|
|
1944
2017
|
}
|
|
1945
2018
|
},
|
|
1946
|
-
"required": [
|
|
2019
|
+
"required": [
|
|
2020
|
+
"product_id"
|
|
2021
|
+
]
|
|
1947
2022
|
}
|
|
1948
2023
|
}
|
|
1949
2024
|
},
|
|
1950
|
-
"required": [
|
|
2025
|
+
"required": [
|
|
2026
|
+
"available_products"
|
|
2027
|
+
],
|
|
1951
2028
|
"example": {
|
|
1952
2029
|
"available_products": [],
|
|
1953
2030
|
"check_results": [
|
|
@@ -1975,11 +2052,13 @@
|
|
|
1975
2052
|
"type": "string"
|
|
1976
2053
|
},
|
|
1977
2054
|
"data": {
|
|
1978
|
-
"description": "Data related
|
|
2055
|
+
"description": "Data related to the error",
|
|
1979
2056
|
"type": "string"
|
|
1980
2057
|
}
|
|
1981
2058
|
},
|
|
1982
|
-
"required": [
|
|
2059
|
+
"required": [
|
|
2060
|
+
"msg"
|
|
2061
|
+
]
|
|
1983
2062
|
},
|
|
1984
2063
|
"ValidateAvailabilityFileResult": {
|
|
1985
2064
|
"description": "The availability map file result payload",
|
|
@@ -1988,7 +2067,10 @@
|
|
|
1988
2067
|
"status": {
|
|
1989
2068
|
"description": "The status of the validation",
|
|
1990
2069
|
"type": "string",
|
|
1991
|
-
"enum": [
|
|
2070
|
+
"enum": [
|
|
2071
|
+
"success",
|
|
2072
|
+
"error"
|
|
2073
|
+
]
|
|
1992
2074
|
},
|
|
1993
2075
|
"rules_parsed_count": {
|
|
1994
2076
|
"description": "The number of rules successfully parsed",
|
|
@@ -2002,7 +2084,11 @@
|
|
|
2002
2084
|
}
|
|
2003
2085
|
}
|
|
2004
2086
|
},
|
|
2005
|
-
"required": [
|
|
2087
|
+
"required": [
|
|
2088
|
+
"status",
|
|
2089
|
+
"rules_parsed_count",
|
|
2090
|
+
"errors"
|
|
2091
|
+
],
|
|
2006
2092
|
"example": {
|
|
2007
2093
|
"rules_parsed_count": 8,
|
|
2008
2094
|
"errors": [
|
|
@@ -2078,7 +2164,9 @@
|
|
|
2078
2164
|
"additionalProperties": true
|
|
2079
2165
|
}
|
|
2080
2166
|
},
|
|
2081
|
-
"required": [
|
|
2167
|
+
"required": [
|
|
2168
|
+
"line_items"
|
|
2169
|
+
]
|
|
2082
2170
|
},
|
|
2083
2171
|
"CheckoutCart": {
|
|
2084
2172
|
"type": "object",
|
|
@@ -2112,11 +2200,21 @@
|
|
|
2112
2200
|
"CheckoutMode": {
|
|
2113
2201
|
"type": "string",
|
|
2114
2202
|
"description": "The checkout mode for the cart checkout.",
|
|
2115
|
-
"enum": [
|
|
2203
|
+
"enum": [
|
|
2204
|
+
"create_order",
|
|
2205
|
+
"create_invoice",
|
|
2206
|
+
"create_quote"
|
|
2207
|
+
]
|
|
2116
2208
|
},
|
|
2117
2209
|
"OrderStatus": {
|
|
2118
2210
|
"type": "string",
|
|
2119
|
-
"enum": [
|
|
2211
|
+
"enum": [
|
|
2212
|
+
"draft",
|
|
2213
|
+
"quote",
|
|
2214
|
+
"placed",
|
|
2215
|
+
"cancelled",
|
|
2216
|
+
"completed"
|
|
2217
|
+
],
|
|
2120
2218
|
"description": "\n| status | description |\n|-------------|-------|\n| `draft` | Starting state for all orders, at this point we can still edit the order |\n| `quote` | The order is in a quoting phase, bound to an expiration date |\n| `placed` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |\n| `cancelled` | The order has been cancelled |\n| `completed` | The order is now closed and finalized |\n"
|
|
2121
2219
|
},
|
|
2122
2220
|
"PriceItemsDto": {
|
|
@@ -2210,7 +2308,10 @@
|
|
|
2210
2308
|
"type": {
|
|
2211
2309
|
"type": "string",
|
|
2212
2310
|
"description": "One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.",
|
|
2213
|
-
"enum": [
|
|
2311
|
+
"enum": [
|
|
2312
|
+
"one_time",
|
|
2313
|
+
"recurring"
|
|
2314
|
+
]
|
|
2214
2315
|
},
|
|
2215
2316
|
"unit_amount": {
|
|
2216
2317
|
"type": "integer",
|
|
@@ -2246,7 +2347,9 @@
|
|
|
2246
2347
|
]
|
|
2247
2348
|
}
|
|
2248
2349
|
},
|
|
2249
|
-
"required": [
|
|
2350
|
+
"required": [
|
|
2351
|
+
"pricing_model"
|
|
2352
|
+
]
|
|
2250
2353
|
},
|
|
2251
2354
|
"CompositePriceItemDto": {
|
|
2252
2355
|
"allOf": [
|
|
@@ -2344,7 +2447,10 @@
|
|
|
2344
2447
|
"description": "Total of all items taxes, with same recurrence."
|
|
2345
2448
|
}
|
|
2346
2449
|
},
|
|
2347
|
-
"required": [
|
|
2450
|
+
"required": [
|
|
2451
|
+
"amount_subtotal",
|
|
2452
|
+
"amount_total"
|
|
2453
|
+
]
|
|
2348
2454
|
},
|
|
2349
2455
|
"Cart": {
|
|
2350
2456
|
"description": "Supports shopping for products and services until ready for checkout.",
|
|
@@ -2359,7 +2465,11 @@
|
|
|
2359
2465
|
"readOnly": true
|
|
2360
2466
|
},
|
|
2361
2467
|
"status": {
|
|
2362
|
-
"enum": [
|
|
2468
|
+
"enum": [
|
|
2469
|
+
"open",
|
|
2470
|
+
"complete",
|
|
2471
|
+
"expired"
|
|
2472
|
+
],
|
|
2363
2473
|
"type": "string",
|
|
2364
2474
|
"readOnly": true,
|
|
2365
2475
|
"description": "The status of the Cart:\n- open - the cart checkout is still in progress. Payment processing has not started\n- complete - the cart checkout is complete. Payment processing may still be in progress\n- expired - the cart checkout has expired. No further processing will occur\n"
|
|
@@ -2659,7 +2769,10 @@
|
|
|
2659
2769
|
"type": {
|
|
2660
2770
|
"type": "string",
|
|
2661
2771
|
"description": "One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.",
|
|
2662
|
-
"enum": [
|
|
2772
|
+
"enum": [
|
|
2773
|
+
"one_time",
|
|
2774
|
+
"recurring"
|
|
2775
|
+
]
|
|
2663
2776
|
},
|
|
2664
2777
|
"pricing_model": {
|
|
2665
2778
|
"type": "string",
|
|
@@ -2672,7 +2785,9 @@
|
|
|
2672
2785
|
]
|
|
2673
2786
|
}
|
|
2674
2787
|
},
|
|
2675
|
-
"required": [
|
|
2788
|
+
"required": [
|
|
2789
|
+
"pricing_model"
|
|
2790
|
+
]
|
|
2676
2791
|
},
|
|
2677
2792
|
"TaxAmount": {
|
|
2678
2793
|
"type": "object",
|
|
@@ -2758,7 +2873,10 @@
|
|
|
2758
2873
|
"description": "Total of all items taxes, with same recurrence."
|
|
2759
2874
|
}
|
|
2760
2875
|
},
|
|
2761
|
-
"required": [
|
|
2876
|
+
"required": [
|
|
2877
|
+
"amount_subtotal",
|
|
2878
|
+
"amount_total"
|
|
2879
|
+
]
|
|
2762
2880
|
},
|
|
2763
2881
|
"TotalDetails": {
|
|
2764
2882
|
"type": "object",
|
|
@@ -2850,7 +2968,11 @@
|
|
|
2850
2968
|
},
|
|
2851
2969
|
"SalesTax": {
|
|
2852
2970
|
"type": "string",
|
|
2853
|
-
"enum": [
|
|
2971
|
+
"enum": [
|
|
2972
|
+
"nontaxable",
|
|
2973
|
+
"reduced",
|
|
2974
|
+
"standard"
|
|
2975
|
+
]
|
|
2854
2976
|
},
|
|
2855
2977
|
"AvailabilityLocation": {
|
|
2856
2978
|
"type": "object",
|
|
@@ -2908,7 +3030,9 @@
|
|
|
2908
3030
|
"description": "A value to be matched against the availability window (start & end date)"
|
|
2909
3031
|
}
|
|
2910
3032
|
},
|
|
2911
|
-
"required": [
|
|
3033
|
+
"required": [
|
|
3034
|
+
"location"
|
|
3035
|
+
]
|
|
2912
3036
|
},
|
|
2913
3037
|
"Address": {
|
|
2914
3038
|
"type": "object",
|
|
@@ -2919,7 +3043,9 @@
|
|
|
2919
3043
|
"items": {
|
|
2920
3044
|
"type": "string"
|
|
2921
3045
|
},
|
|
2922
|
-
"example": [
|
|
3046
|
+
"example": [
|
|
3047
|
+
"billing"
|
|
3048
|
+
]
|
|
2923
3049
|
},
|
|
2924
3050
|
"street": {
|
|
2925
3051
|
"type": "string",
|
|
@@ -3046,10 +3172,15 @@
|
|
|
3046
3172
|
"type": "string"
|
|
3047
3173
|
}
|
|
3048
3174
|
},
|
|
3049
|
-
"required": [
|
|
3175
|
+
"required": [
|
|
3176
|
+
"bucket",
|
|
3177
|
+
"key"
|
|
3178
|
+
]
|
|
3050
3179
|
}
|
|
3051
3180
|
},
|
|
3052
|
-
"required": [
|
|
3181
|
+
"required": [
|
|
3182
|
+
"s3ref"
|
|
3183
|
+
]
|
|
3053
3184
|
}
|
|
3054
3185
|
},
|
|
3055
3186
|
"_schema": {
|
|
@@ -3132,7 +3263,10 @@
|
|
|
3132
3263
|
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
3133
3264
|
"_org": "123",
|
|
3134
3265
|
"_schema": "contact",
|
|
3135
|
-
"_tags": [
|
|
3266
|
+
"_tags": [
|
|
3267
|
+
"example",
|
|
3268
|
+
"mock"
|
|
3269
|
+
],
|
|
3136
3270
|
"_created_at": "2021-02-09T12:41:43.662Z",
|
|
3137
3271
|
"_updated_at": "2021-02-09T12:41:43.662Z"
|
|
3138
3272
|
}
|
|
@@ -3197,7 +3331,11 @@
|
|
|
3197
3331
|
},
|
|
3198
3332
|
"type": {
|
|
3199
3333
|
"type": "string",
|
|
3200
|
-
"enum": [
|
|
3334
|
+
"enum": [
|
|
3335
|
+
"VAT",
|
|
3336
|
+
"GST",
|
|
3337
|
+
"Custom"
|
|
3338
|
+
]
|
|
3201
3339
|
},
|
|
3202
3340
|
"description": {
|
|
3203
3341
|
"type": "string"
|
|
@@ -3224,7 +3362,10 @@
|
|
|
3224
3362
|
"region_label": "Germany",
|
|
3225
3363
|
"_org": "123",
|
|
3226
3364
|
"_schema": "tax",
|
|
3227
|
-
"_tags": [
|
|
3365
|
+
"_tags": [
|
|
3366
|
+
"example",
|
|
3367
|
+
"mock"
|
|
3368
|
+
],
|
|
3228
3369
|
"_created_at": "2021-02-09T12:41:43.662Z",
|
|
3229
3370
|
"_updated_at": "2021-02-09T12:41:43.662Z"
|
|
3230
3371
|
}
|
|
@@ -3237,7 +3378,11 @@
|
|
|
3237
3378
|
},
|
|
3238
3379
|
"type": {
|
|
3239
3380
|
"type": "string",
|
|
3240
|
-
"enum": [
|
|
3381
|
+
"enum": [
|
|
3382
|
+
"VAT",
|
|
3383
|
+
"GST",
|
|
3384
|
+
"Custom"
|
|
3385
|
+
]
|
|
3241
3386
|
},
|
|
3242
3387
|
"_id": {
|
|
3243
3388
|
"type": "string"
|
|
@@ -3270,7 +3415,10 @@
|
|
|
3270
3415
|
},
|
|
3271
3416
|
"PriceTierDisplayMode": {
|
|
3272
3417
|
"type": "string",
|
|
3273
|
-
"enum": [
|
|
3418
|
+
"enum": [
|
|
3419
|
+
"hidden",
|
|
3420
|
+
"on_request"
|
|
3421
|
+
]
|
|
3274
3422
|
}
|
|
3275
3423
|
},
|
|
3276
3424
|
"examples": {
|
|
@@ -3747,8 +3895,14 @@
|
|
|
3747
3895
|
"_id": "065d6618-cc59-45f4-8e3a-700edf6813c3",
|
|
3748
3896
|
"name": "Smartmeter: Schneider Electric PM5000 LCD Energiemessgerät / 3-phasig",
|
|
3749
3897
|
"code": "1312378123",
|
|
3750
|
-
"_tags": [
|
|
3751
|
-
|
|
3898
|
+
"_tags": [
|
|
3899
|
+
"wallbox",
|
|
3900
|
+
"review demo",
|
|
3901
|
+
"1"
|
|
3902
|
+
],
|
|
3903
|
+
"categories": [
|
|
3904
|
+
"Power"
|
|
3905
|
+
],
|
|
3752
3906
|
"type": "product",
|
|
3753
3907
|
"active": true,
|
|
3754
3908
|
"feature": [
|
|
@@ -3954,7 +4108,9 @@
|
|
|
3954
4108
|
"delivery_address": [],
|
|
3955
4109
|
"dates": [
|
|
3956
4110
|
{
|
|
3957
|
-
"_tags": [
|
|
4111
|
+
"_tags": [
|
|
4112
|
+
"Instalation Date"
|
|
4113
|
+
],
|
|
3958
4114
|
"dates": "",
|
|
3959
4115
|
"value": "2022-06-30T16:29:00.000Z"
|
|
3960
4116
|
}
|
|
@@ -4032,7 +4188,9 @@
|
|
|
4032
4188
|
"delivery_address": [],
|
|
4033
4189
|
"dates": [
|
|
4034
4190
|
{
|
|
4035
|
-
"_tags": [
|
|
4191
|
+
"_tags": [
|
|
4192
|
+
"Instalation Date"
|
|
4193
|
+
],
|
|
4036
4194
|
"dates": "",
|
|
4037
4195
|
"value": "2022-06-30T16:29:00.000Z"
|
|
4038
4196
|
}
|
|
@@ -4051,7 +4209,10 @@
|
|
|
4051
4209
|
"value": "journey checkout"
|
|
4052
4210
|
}
|
|
4053
4211
|
],
|
|
4054
|
-
"_tags": [
|
|
4212
|
+
"_tags": [
|
|
4213
|
+
"journey",
|
|
4214
|
+
"automation"
|
|
4215
|
+
],
|
|
4055
4216
|
"status": "quote",
|
|
4056
4217
|
"order_number": "OREabZxnO",
|
|
4057
4218
|
"billing_first_name": "Paulo",
|
|
@@ -4458,7 +4619,9 @@
|
|
|
4458
4619
|
},
|
|
4459
4620
|
"dates": [
|
|
4460
4621
|
{
|
|
4461
|
-
"_tags": [
|
|
4622
|
+
"_tags": [
|
|
4623
|
+
"Installation Date"
|
|
4624
|
+
],
|
|
4462
4625
|
"dates": "",
|
|
4463
4626
|
"value": "2022-06-30T15:21:00.000Z"
|
|
4464
4627
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "Client for epilot Pricing APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"test": "jest",
|
|
25
25
|
"bundle-definition": "webpack",
|
|
26
|
-
"openapi": "node ../../scripts/update-openapi.js
|
|
26
|
+
"openapi": "node ../../scripts/update-openapi.js /Users/paulohenriques/Documents/pricing-api/lambda/ApiHandlerFunction/openapi.yml",
|
|
27
27
|
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
|
|
28
28
|
"build": "tsc && npm run bundle-definition",
|
|
29
29
|
"build:watch": "npm run build && tsc -w",
|