@epilot/pricing-client 3.15.1 → 3.16.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/definition.js +1 -1
- package/dist/index.js +5 -1
- package/dist/openapi-runtime.json +0 -17
- package/dist/openapi.d.ts +69 -492
- package/dist/openapi.json +87 -549
- package/package.json +6 -6
package/dist/openapi.json
CHANGED
|
@@ -105,6 +105,9 @@
|
|
|
105
105
|
{
|
|
106
106
|
"url": "https://pricing-api.sls.epilot.io"
|
|
107
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"url": "https://pricing-api.sls.epilot.io"
|
|
110
|
+
},
|
|
108
111
|
{
|
|
109
112
|
"url": "https://pricing-api.sls.epilot.io"
|
|
110
113
|
}
|
|
@@ -191,147 +194,6 @@
|
|
|
191
194
|
}
|
|
192
195
|
]
|
|
193
196
|
}
|
|
194
|
-
},
|
|
195
|
-
"Order with Simple Prices and Dynamic Pricing": {
|
|
196
|
-
"value": {
|
|
197
|
-
"status": "quote",
|
|
198
|
-
"source_type": "manual",
|
|
199
|
-
"expires_at": "2022-06-30T16:17:00.000Z",
|
|
200
|
-
"line_items": [
|
|
201
|
-
{
|
|
202
|
-
"price_id": "632b18b5-3f50-4231-b8d5-f8c33a392ed0",
|
|
203
|
-
"product_id": "3d1c9987-a7ae-4c1c-a7ef-e12caccab4e0",
|
|
204
|
-
"price_mappings": [
|
|
205
|
-
{
|
|
206
|
-
"price_id": "632b18b5-3f50-4231-b8d5-f8c33a392ed0",
|
|
207
|
-
"frequency_unit": "yearly",
|
|
208
|
-
"value": 12000,
|
|
209
|
-
"name": "Estimated consumption",
|
|
210
|
-
"metadata": {
|
|
211
|
-
"journey_title": "P&G",
|
|
212
|
-
"step_name": "Number Inputs"
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
"quantity": 16
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
"currency": "EUR",
|
|
220
|
-
"payment_method": [
|
|
221
|
-
{
|
|
222
|
-
"type": "IBAN",
|
|
223
|
-
"details": {}
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"billing_contact": {
|
|
227
|
-
"$relation": [
|
|
228
|
-
{
|
|
229
|
-
"entity_id": "1834a54e-b68f-4f7f-a98a-fe16f11bc2a5",
|
|
230
|
-
"_tags": []
|
|
231
|
-
}
|
|
232
|
-
]
|
|
233
|
-
},
|
|
234
|
-
"billing_first_name": "Joao",
|
|
235
|
-
"billing_last_name": "Pinho",
|
|
236
|
-
"billing_email": "j.pinho@epilot.cloud",
|
|
237
|
-
"billing_company_name": "epilot cloud",
|
|
238
|
-
"billing_address": [
|
|
239
|
-
{
|
|
240
|
-
"_tags": [],
|
|
241
|
-
"street": "Im Media Park",
|
|
242
|
-
"street_number": "8a",
|
|
243
|
-
"postal_code": "52000",
|
|
244
|
-
"city": "Cologne",
|
|
245
|
-
"country": "DE",
|
|
246
|
-
"additional_info": ""
|
|
247
|
-
}
|
|
248
|
-
],
|
|
249
|
-
"delivery_address": [],
|
|
250
|
-
"dates": [
|
|
251
|
-
{
|
|
252
|
-
"_tags": [
|
|
253
|
-
"Instalation Date"
|
|
254
|
-
],
|
|
255
|
-
"dates": "",
|
|
256
|
-
"value": "2022-06-30T16:29:00.000Z"
|
|
257
|
-
}
|
|
258
|
-
]
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"Order with Composite Prices and Dynamic Pricing": {
|
|
262
|
-
"value": {
|
|
263
|
-
"status": "quote",
|
|
264
|
-
"source_type": "manual",
|
|
265
|
-
"expires_at": "2022-06-30T16:17:00.000Z",
|
|
266
|
-
"line_items": [
|
|
267
|
-
{
|
|
268
|
-
"price_id": "b3900bf3-020c-4c58-8af9-32f2682929e3",
|
|
269
|
-
"product_id": "924f6881-7ae3-4e2e-a1dd-2d81b8fa2e32",
|
|
270
|
-
"price_mappings": [
|
|
271
|
-
{
|
|
272
|
-
"price_id": "6dc88d6f-ba33-45ee-b5d0-62641344a0d9",
|
|
273
|
-
"frequency_unit": "yearly",
|
|
274
|
-
"value": 12000,
|
|
275
|
-
"name": "Estimated consumption",
|
|
276
|
-
"metadata": {
|
|
277
|
-
"journey_title": "P&G",
|
|
278
|
-
"step_name": "Number Inputs"
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"price_id": "60eb12cd-703d-4d41-9265-577ff657bfc9",
|
|
283
|
-
"value": 10,
|
|
284
|
-
"name": "Distance to power meter",
|
|
285
|
-
"metadata": {
|
|
286
|
-
"journey_title": "P&G",
|
|
287
|
-
"step_name": "Number Inputs"
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
"quantity": 1
|
|
292
|
-
}
|
|
293
|
-
],
|
|
294
|
-
"currency": "EUR",
|
|
295
|
-
"payment_method": [
|
|
296
|
-
{
|
|
297
|
-
"type": "IBAN",
|
|
298
|
-
"details": {}
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
"billing_contact": {
|
|
302
|
-
"$relation": [
|
|
303
|
-
{
|
|
304
|
-
"entity_id": "1834a54e-b68f-4f7f-a98a-fe16f11bc2a5",
|
|
305
|
-
"_tags": []
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
},
|
|
309
|
-
"billing_first_name": "Joao",
|
|
310
|
-
"billing_last_name": "Pinho",
|
|
311
|
-
"billing_email": "j.pinho@epilot.cloud",
|
|
312
|
-
"billing_company_name": "epilot cloud",
|
|
313
|
-
"billing_address": [
|
|
314
|
-
{
|
|
315
|
-
"_tags": [],
|
|
316
|
-
"street": "Im Media Park",
|
|
317
|
-
"street_number": "8a",
|
|
318
|
-
"postal_code": "52000",
|
|
319
|
-
"city": "Cologne",
|
|
320
|
-
"country": "DE",
|
|
321
|
-
"additional_info": ""
|
|
322
|
-
}
|
|
323
|
-
],
|
|
324
|
-
"delivery_address": [],
|
|
325
|
-
"dates": [
|
|
326
|
-
{
|
|
327
|
-
"_tags": [
|
|
328
|
-
"Instalation Date"
|
|
329
|
-
],
|
|
330
|
-
"dates": "",
|
|
331
|
-
"value": "2022-06-30T16:29:00.000Z"
|
|
332
|
-
}
|
|
333
|
-
]
|
|
334
|
-
}
|
|
335
197
|
}
|
|
336
198
|
},
|
|
337
199
|
"schema": {
|
|
@@ -733,77 +595,6 @@
|
|
|
733
595
|
}
|
|
734
596
|
}
|
|
735
597
|
},
|
|
736
|
-
"/v1/validate-availability/{id}": {
|
|
737
|
-
"get": {
|
|
738
|
-
"description": "Validates an availability file, it returns an array of errors if the file is invalid",
|
|
739
|
-
"operationId": "$validateAvailabilityFile",
|
|
740
|
-
"summary": "validateAvailabilityFile",
|
|
741
|
-
"tags": [
|
|
742
|
-
"Availability API"
|
|
743
|
-
],
|
|
744
|
-
"parameters": [
|
|
745
|
-
{
|
|
746
|
-
"in": "path",
|
|
747
|
-
"name": "id",
|
|
748
|
-
"description": "Product ID that the Availability File is attached to",
|
|
749
|
-
"schema": {
|
|
750
|
-
"type": "string"
|
|
751
|
-
},
|
|
752
|
-
"required": true,
|
|
753
|
-
"example": "72c803b2-2e5d-4bd6-bffc-fad998bbbe36"
|
|
754
|
-
},
|
|
755
|
-
{
|
|
756
|
-
"in": "header",
|
|
757
|
-
"name": "X-Epilot-Org-ID",
|
|
758
|
-
"description": "The target Organization Id represented by the caller",
|
|
759
|
-
"schema": {
|
|
760
|
-
"type": "string"
|
|
761
|
-
},
|
|
762
|
-
"required": true,
|
|
763
|
-
"example": 739224
|
|
764
|
-
}
|
|
765
|
-
],
|
|
766
|
-
"responses": {
|
|
767
|
-
"200": {
|
|
768
|
-
"description": "The availability get result",
|
|
769
|
-
"content": {
|
|
770
|
-
"application/json": {
|
|
771
|
-
"schema": {
|
|
772
|
-
"$ref": "#/components/schemas/ValidateAvailabilityFileResult"
|
|
773
|
-
},
|
|
774
|
-
"examples": {
|
|
775
|
-
"Response when file has no errors": {
|
|
776
|
-
"value": {
|
|
777
|
-
"number_of_rules_parsed": 10,
|
|
778
|
-
"errors": []
|
|
779
|
-
}
|
|
780
|
-
},
|
|
781
|
-
"Response when file has errors": {
|
|
782
|
-
"value": {
|
|
783
|
-
"number_of_rules_parsed": 8,
|
|
784
|
-
"errors": [
|
|
785
|
-
"File must be UTF-8 encoded",
|
|
786
|
-
"Line 3 - Postal code is missing or invalid"
|
|
787
|
-
]
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
},
|
|
794
|
-
"400": {
|
|
795
|
-
"description": "Invalid payload",
|
|
796
|
-
"content": {
|
|
797
|
-
"application/json": {
|
|
798
|
-
"schema": {
|
|
799
|
-
"$ref": "#/components/schemas/Error"
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
},
|
|
807
598
|
"/v1/public/opportunity": {
|
|
808
599
|
"post": {
|
|
809
600
|
"deprecated": true,
|
|
@@ -933,10 +724,6 @@
|
|
|
933
724
|
"$ref": "#/components/examples/product"
|
|
934
725
|
},
|
|
935
726
|
"properties": {
|
|
936
|
-
"description": {
|
|
937
|
-
"type": "string",
|
|
938
|
-
"description": "The description for the product"
|
|
939
|
-
},
|
|
940
727
|
"code": {
|
|
941
728
|
"type": "string",
|
|
942
729
|
"description": "The product code"
|
|
@@ -1481,31 +1268,17 @@
|
|
|
1481
1268
|
"description": "The flag for prices that contain price components.",
|
|
1482
1269
|
"type": "boolean"
|
|
1483
1270
|
},
|
|
1484
|
-
"
|
|
1271
|
+
"billing_scheme": {
|
|
1485
1272
|
"type": "string",
|
|
1486
|
-
"description": "Describes how to compute the price per period. Either `per_unit
|
|
1273
|
+
"description": "Describes how to compute the price per period. Either `per_unit` or `tiered`.\n- `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity\n- `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the tiers and tiers_mode attributes.\n\n⚠️ Tiered pricing is **not supported** yet.\n",
|
|
1487
1274
|
"enum": [
|
|
1488
|
-
"per_unit"
|
|
1489
|
-
"tiered_graduated",
|
|
1490
|
-
"tiered_volume",
|
|
1491
|
-
"tiered_flatfee"
|
|
1275
|
+
"per_unit"
|
|
1492
1276
|
]
|
|
1493
1277
|
},
|
|
1494
|
-
"tiers": {
|
|
1495
|
-
"description": "Defines an array of tiers. Each tier has an upper bound, an unit amount and a flat fee.\n",
|
|
1496
|
-
"type": "array",
|
|
1497
|
-
"items": {
|
|
1498
|
-
"$ref": "#/components/schemas/PriceTier"
|
|
1499
|
-
}
|
|
1500
|
-
},
|
|
1501
1278
|
"description": {
|
|
1502
1279
|
"type": "string",
|
|
1503
1280
|
"description": "A brief description of the price."
|
|
1504
1281
|
},
|
|
1505
|
-
"long_description": {
|
|
1506
|
-
"type": "string",
|
|
1507
|
-
"description": "A detailed description of the price. This is shown on the order document and order table."
|
|
1508
|
-
},
|
|
1509
1282
|
"sales_tax": {
|
|
1510
1283
|
"deprecated": true,
|
|
1511
1284
|
"description": "The default tax rate applicable to the product.\nThis field is deprecated, use the new `tax` attribute.\n",
|
|
@@ -1537,9 +1310,20 @@
|
|
|
1537
1310
|
}
|
|
1538
1311
|
]
|
|
1539
1312
|
},
|
|
1540
|
-
"
|
|
1541
|
-
"type": "
|
|
1542
|
-
"description": "Specifies whether the price is considered `inclusive` of taxes or
|
|
1313
|
+
"tax_behavior": {
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"description": "Specifies whether the price is considered `inclusive` of taxes or `exclusive` of taxes.\nOne of `inclusive`, `exclusive`, or `unspecified`.\n",
|
|
1316
|
+
"enum": [
|
|
1317
|
+
"inclusive",
|
|
1318
|
+
"exclusive"
|
|
1319
|
+
]
|
|
1320
|
+
},
|
|
1321
|
+
"tiers_mode": {
|
|
1322
|
+
"description": "Defines the tiered pricing type of the price.",
|
|
1323
|
+
"type": "string",
|
|
1324
|
+
"enum": [
|
|
1325
|
+
"standard"
|
|
1326
|
+
]
|
|
1543
1327
|
},
|
|
1544
1328
|
"type": {
|
|
1545
1329
|
"type": "string",
|
|
@@ -1649,15 +1433,7 @@
|
|
|
1649
1433
|
"kwh",
|
|
1650
1434
|
"m",
|
|
1651
1435
|
"m2",
|
|
1652
|
-
"l"
|
|
1653
|
-
"cubic-meter",
|
|
1654
|
-
"cubic-meter-h",
|
|
1655
|
-
"ls",
|
|
1656
|
-
"a",
|
|
1657
|
-
"kva",
|
|
1658
|
-
"w",
|
|
1659
|
-
"wp",
|
|
1660
|
-
"kwp"
|
|
1436
|
+
"l"
|
|
1661
1437
|
]
|
|
1662
1438
|
},
|
|
1663
1439
|
{
|
|
@@ -1693,10 +1469,7 @@
|
|
|
1693
1469
|
"type": "string"
|
|
1694
1470
|
}
|
|
1695
1471
|
}
|
|
1696
|
-
}
|
|
1697
|
-
"required": [
|
|
1698
|
-
"pricing_model"
|
|
1699
|
-
]
|
|
1472
|
+
}
|
|
1700
1473
|
},
|
|
1701
1474
|
"CompositePrice": {
|
|
1702
1475
|
"type": "object",
|
|
@@ -1820,65 +1593,6 @@
|
|
|
1820
1593
|
]
|
|
1821
1594
|
}
|
|
1822
1595
|
},
|
|
1823
|
-
"PriceInputMappings": {
|
|
1824
|
-
"type": "array",
|
|
1825
|
-
"items": {
|
|
1826
|
-
"$ref": "#/components/schemas/PriceInputMapping"
|
|
1827
|
-
},
|
|
1828
|
-
"example": [
|
|
1829
|
-
{
|
|
1830
|
-
"price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1831
|
-
"frequency_unit": "weekly",
|
|
1832
|
-
"value": 1000.245,
|
|
1833
|
-
"name": "avg consumption",
|
|
1834
|
-
"metadata": {
|
|
1835
|
-
"journey_title": "energy journey",
|
|
1836
|
-
"step_name": "avg consumption picker"
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
]
|
|
1840
|
-
},
|
|
1841
|
-
"PriceInputMapping": {
|
|
1842
|
-
"type": "object",
|
|
1843
|
-
"properties": {
|
|
1844
|
-
"price_id": {
|
|
1845
|
-
"type": "string"
|
|
1846
|
-
},
|
|
1847
|
-
"frequency_unit": {
|
|
1848
|
-
"type": "string",
|
|
1849
|
-
"enum": [
|
|
1850
|
-
"weekly",
|
|
1851
|
-
"monthly",
|
|
1852
|
-
"every_quarter",
|
|
1853
|
-
"every_6_months",
|
|
1854
|
-
"yearly",
|
|
1855
|
-
"one_time"
|
|
1856
|
-
]
|
|
1857
|
-
},
|
|
1858
|
-
"name": {
|
|
1859
|
-
"type": "string"
|
|
1860
|
-
},
|
|
1861
|
-
"value": {
|
|
1862
|
-
"type": "number"
|
|
1863
|
-
},
|
|
1864
|
-
"metadata": {
|
|
1865
|
-
"type": "object",
|
|
1866
|
-
"additionalProperties": {
|
|
1867
|
-
"type": "string"
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
},
|
|
1871
|
-
"example": {
|
|
1872
|
-
"price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
|
|
1873
|
-
"frequency_unit": "weekly",
|
|
1874
|
-
"value": 1000.245,
|
|
1875
|
-
"name": "avg consumption",
|
|
1876
|
-
"metadata": {
|
|
1877
|
-
"journey_title": "energy journey",
|
|
1878
|
-
"step_name": "avg consumption picker"
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
},
|
|
1882
1596
|
"CatalogSearch": {
|
|
1883
1597
|
"description": "A catalog search payload",
|
|
1884
1598
|
"type": "object",
|
|
@@ -2039,65 +1753,6 @@
|
|
|
2039
1753
|
]
|
|
2040
1754
|
}
|
|
2041
1755
|
},
|
|
2042
|
-
"ValidateAvailabilityFileError": {
|
|
2043
|
-
"description": "The availability rule error",
|
|
2044
|
-
"type": "object",
|
|
2045
|
-
"properties": {
|
|
2046
|
-
"line": {
|
|
2047
|
-
"description": "The line number where the error was found",
|
|
2048
|
-
"type": "number"
|
|
2049
|
-
},
|
|
2050
|
-
"msg": {
|
|
2051
|
-
"description": "The error message",
|
|
2052
|
-
"type": "string"
|
|
2053
|
-
},
|
|
2054
|
-
"data": {
|
|
2055
|
-
"description": "Data related to the error",
|
|
2056
|
-
"type": "string"
|
|
2057
|
-
}
|
|
2058
|
-
},
|
|
2059
|
-
"required": [
|
|
2060
|
-
"msg"
|
|
2061
|
-
]
|
|
2062
|
-
},
|
|
2063
|
-
"ValidateAvailabilityFileResult": {
|
|
2064
|
-
"description": "The availability map file result payload",
|
|
2065
|
-
"type": "object",
|
|
2066
|
-
"properties": {
|
|
2067
|
-
"status": {
|
|
2068
|
-
"description": "The status of the validation",
|
|
2069
|
-
"type": "string",
|
|
2070
|
-
"enum": [
|
|
2071
|
-
"success",
|
|
2072
|
-
"error"
|
|
2073
|
-
]
|
|
2074
|
-
},
|
|
2075
|
-
"rules_parsed_count": {
|
|
2076
|
-
"description": "The number of rules successfully parsed",
|
|
2077
|
-
"type": "number"
|
|
2078
|
-
},
|
|
2079
|
-
"errors": {
|
|
2080
|
-
"description": "The errors found on the file",
|
|
2081
|
-
"type": "array",
|
|
2082
|
-
"items": {
|
|
2083
|
-
"$ref": "#/components/schemas/ValidateAvailabilityFileError"
|
|
2084
|
-
}
|
|
2085
|
-
}
|
|
2086
|
-
},
|
|
2087
|
-
"required": [
|
|
2088
|
-
"status",
|
|
2089
|
-
"rules_parsed_count",
|
|
2090
|
-
"errors"
|
|
2091
|
-
],
|
|
2092
|
-
"example": {
|
|
2093
|
-
"rules_parsed_count": 8,
|
|
2094
|
-
"errors": [
|
|
2095
|
-
"File must be UTF-8 encoded",
|
|
2096
|
-
"Error on line 3 - street_number must be of type number",
|
|
2097
|
-
"Error on line 6 - start_date cant be greater than end_date"
|
|
2098
|
-
]
|
|
2099
|
-
}
|
|
2100
|
-
},
|
|
2101
1756
|
"CartDto": {
|
|
2102
1757
|
"description": "A valid cart payload from a client.",
|
|
2103
1758
|
"properties": {
|
|
@@ -2221,12 +1876,9 @@
|
|
|
2221
1876
|
"description": "A valid set of product prices, quantities, (discounts) and taxes from a client.",
|
|
2222
1877
|
"type": "array",
|
|
2223
1878
|
"items": {
|
|
2224
|
-
"
|
|
1879
|
+
"oneOf": [
|
|
2225
1880
|
{
|
|
2226
1881
|
"$ref": "#/components/schemas/PriceItemDto"
|
|
2227
|
-
},
|
|
2228
|
-
{
|
|
2229
|
-
"$ref": "#/components/schemas/CompositePriceItemDto"
|
|
2230
1882
|
}
|
|
2231
1883
|
]
|
|
2232
1884
|
}
|
|
@@ -2242,10 +1894,6 @@
|
|
|
2242
1894
|
"type": "integer",
|
|
2243
1895
|
"description": "The quantity of products being purchased."
|
|
2244
1896
|
},
|
|
2245
|
-
"price_mappings": {
|
|
2246
|
-
"description": "Price mapping information required to compute totals",
|
|
2247
|
-
"$ref": "#/components/schemas/PriceInputMappings"
|
|
2248
|
-
},
|
|
2249
1897
|
"description": {
|
|
2250
1898
|
"type": "string",
|
|
2251
1899
|
"description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
|
|
@@ -2317,27 +1965,10 @@
|
|
|
2317
1965
|
"type": "integer",
|
|
2318
1966
|
"description": "The unit amount value"
|
|
2319
1967
|
},
|
|
2320
|
-
"unit_amount_gross": {
|
|
2321
|
-
"type": "integer",
|
|
2322
|
-
"description": "The unit gross amount value."
|
|
2323
|
-
},
|
|
2324
|
-
"unit_amount_currency": {
|
|
2325
|
-
"$ref": "#/components/schemas/Currency"
|
|
2326
|
-
},
|
|
2327
1968
|
"unit_amount_decimal": {
|
|
2328
1969
|
"description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
2329
1970
|
"type": "string"
|
|
2330
1971
|
},
|
|
2331
|
-
"pricing_model": {
|
|
2332
|
-
"type": "string",
|
|
2333
|
-
"description": "Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.\n- `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity\n- `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.\n- `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n- `tiered_flatfee` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n",
|
|
2334
|
-
"enum": [
|
|
2335
|
-
"per_unit",
|
|
2336
|
-
"tiered_graduated",
|
|
2337
|
-
"tiered_volume",
|
|
2338
|
-
"tiered_flatfee"
|
|
2339
|
-
]
|
|
2340
|
-
},
|
|
2341
1972
|
"_price": {
|
|
2342
1973
|
"description": "The snapshot of the price linked to the price item.",
|
|
2343
1974
|
"allOf": [
|
|
@@ -2346,10 +1977,7 @@
|
|
|
2346
1977
|
}
|
|
2347
1978
|
]
|
|
2348
1979
|
}
|
|
2349
|
-
}
|
|
2350
|
-
"required": [
|
|
2351
|
-
"pricing_model"
|
|
2352
|
-
]
|
|
1980
|
+
}
|
|
2353
1981
|
},
|
|
2354
1982
|
"CompositePriceItemDto": {
|
|
2355
1983
|
"allOf": [
|
|
@@ -2428,14 +2056,7 @@
|
|
|
2428
2056
|
},
|
|
2429
2057
|
"billing_period": {
|
|
2430
2058
|
"type": "string",
|
|
2431
|
-
"description": "The price billing period."
|
|
2432
|
-
"enum": [
|
|
2433
|
-
"weekly",
|
|
2434
|
-
"monthly",
|
|
2435
|
-
"every_quarter",
|
|
2436
|
-
"every_6_months",
|
|
2437
|
-
"yearly"
|
|
2438
|
-
]
|
|
2059
|
+
"description": "The price billing period."
|
|
2439
2060
|
},
|
|
2440
2061
|
"amount_subtotal": {
|
|
2441
2062
|
"type": "integer",
|
|
@@ -2445,10 +2066,6 @@
|
|
|
2445
2066
|
"type": "integer",
|
|
2446
2067
|
"description": "Total of all items, with same recurrence, after (discounts and) taxes are applied."
|
|
2447
2068
|
},
|
|
2448
|
-
"unit_amount_gross": {
|
|
2449
|
-
"type": "integer",
|
|
2450
|
-
"description": "The unit gross amount value."
|
|
2451
|
-
},
|
|
2452
2069
|
"amount_tax": {
|
|
2453
2070
|
"type": "integer",
|
|
2454
2071
|
"description": "Total of all items taxes, with same recurrence."
|
|
@@ -2461,11 +2078,6 @@
|
|
|
2461
2078
|
},
|
|
2462
2079
|
"Cart": {
|
|
2463
2080
|
"description": "Supports shopping for products and services until ready for checkout.",
|
|
2464
|
-
"allOf": [
|
|
2465
|
-
{
|
|
2466
|
-
"$ref": "#/components/schemas/Amounts"
|
|
2467
|
-
}
|
|
2468
|
-
],
|
|
2469
2081
|
"properties": {
|
|
2470
2082
|
"id": {
|
|
2471
2083
|
"type": "string",
|
|
@@ -2501,6 +2113,16 @@
|
|
|
2501
2113
|
"line_items": {
|
|
2502
2114
|
"$ref": "#/components/schemas/PriceItems"
|
|
2503
2115
|
},
|
|
2116
|
+
"amount_subtotal": {
|
|
2117
|
+
"readOnly": true,
|
|
2118
|
+
"type": "integer",
|
|
2119
|
+
"description": "Total of all items before (discounts or) taxes are applied."
|
|
2120
|
+
},
|
|
2121
|
+
"amount_total": {
|
|
2122
|
+
"readOnly": true,
|
|
2123
|
+
"type": "integer",
|
|
2124
|
+
"description": "Total of all items after (discounts and) taxes are applied."
|
|
2125
|
+
},
|
|
2504
2126
|
"total_details": {
|
|
2505
2127
|
"$ref": "#/components/schemas/TotalDetails"
|
|
2506
2128
|
},
|
|
@@ -2547,7 +2169,7 @@
|
|
|
2547
2169
|
"$ref": "#/components/schemas/OrderStatus"
|
|
2548
2170
|
},
|
|
2549
2171
|
"line_items": {
|
|
2550
|
-
"$ref": "#/components/schemas/
|
|
2172
|
+
"$ref": "#/components/schemas/PriceItems"
|
|
2551
2173
|
},
|
|
2552
2174
|
"source_type": {
|
|
2553
2175
|
"type": "string",
|
|
@@ -2635,9 +2257,6 @@
|
|
|
2635
2257
|
"items": {
|
|
2636
2258
|
"$ref": "#/components/schemas/PriceItem"
|
|
2637
2259
|
}
|
|
2638
|
-
},
|
|
2639
|
-
"total_details": {
|
|
2640
|
-
"$ref": "#/components/schemas/TotalDetails"
|
|
2641
2260
|
}
|
|
2642
2261
|
}
|
|
2643
2262
|
},
|
|
@@ -2647,13 +2266,8 @@
|
|
|
2647
2266
|
"example": {
|
|
2648
2267
|
"$ref": "#/components/examples/price-item"
|
|
2649
2268
|
},
|
|
2650
|
-
"allOf": [
|
|
2651
|
-
{
|
|
2652
|
-
"$ref": "#/components/schemas/Amounts"
|
|
2653
|
-
}
|
|
2654
|
-
],
|
|
2655
2269
|
"properties": {
|
|
2656
|
-
"
|
|
2270
|
+
"id": {
|
|
2657
2271
|
"type": "string",
|
|
2658
2272
|
"description": "price item id",
|
|
2659
2273
|
"readOnly": true
|
|
@@ -2666,15 +2280,11 @@
|
|
|
2666
2280
|
"description": "The unit amount value",
|
|
2667
2281
|
"readOnly": true
|
|
2668
2282
|
},
|
|
2669
|
-
"
|
|
2283
|
+
"amount_subtotal": {
|
|
2670
2284
|
"type": "integer",
|
|
2671
|
-
"description": "
|
|
2285
|
+
"description": "Total before any (discounts or) taxes are applied.",
|
|
2672
2286
|
"readOnly": true
|
|
2673
2287
|
},
|
|
2674
|
-
"amount_tax": {
|
|
2675
|
-
"type": "integer",
|
|
2676
|
-
"description": "Total tax amount for this line item."
|
|
2677
|
-
},
|
|
2678
2288
|
"unit_amount_net": {
|
|
2679
2289
|
"type": "integer",
|
|
2680
2290
|
"description": "Net unit amount without taxes or discounts.",
|
|
@@ -2684,6 +2294,11 @@
|
|
|
2684
2294
|
"description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
2685
2295
|
"type": "string"
|
|
2686
2296
|
},
|
|
2297
|
+
"amount_total": {
|
|
2298
|
+
"type": "integer",
|
|
2299
|
+
"description": "Total after (discounts and) taxes.",
|
|
2300
|
+
"readOnly": true
|
|
2301
|
+
},
|
|
2687
2302
|
"currency": {
|
|
2688
2303
|
"$ref": "#/components/schemas/Currency"
|
|
2689
2304
|
},
|
|
@@ -2744,35 +2359,6 @@
|
|
|
2744
2359
|
}
|
|
2745
2360
|
]
|
|
2746
2361
|
}
|
|
2747
|
-
},
|
|
2748
|
-
"price_mappings": {
|
|
2749
|
-
"description": "Price mapping information required to compute totals",
|
|
2750
|
-
"$ref": "#/components/schemas/PriceInputMappings"
|
|
2751
|
-
},
|
|
2752
|
-
"on_request_approved": {
|
|
2753
|
-
"type": "boolean",
|
|
2754
|
-
"description": "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'."
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
},
|
|
2758
|
-
"Amounts": {
|
|
2759
|
-
"type": "object",
|
|
2760
|
-
"properties": {
|
|
2761
|
-
"amount_subtotal": {
|
|
2762
|
-
"type": "integer",
|
|
2763
|
-
"description": "Total of all items before (discounts or) taxes are applied."
|
|
2764
|
-
},
|
|
2765
|
-
"amount_subtotal_decimal": {
|
|
2766
|
-
"type": "string",
|
|
2767
|
-
"description": "Total of all items before (discounts or) taxes are applied, as a string with all the decimal places."
|
|
2768
|
-
},
|
|
2769
|
-
"amount_total": {
|
|
2770
|
-
"type": "integer",
|
|
2771
|
-
"description": "Total of all items after (discounts and) taxes are applied."
|
|
2772
|
-
},
|
|
2773
|
-
"amount_total_decimal": {
|
|
2774
|
-
"type": "string",
|
|
2775
|
-
"description": "Total of all items after (discounts and) taxes are applied, as a string with all the decimal places."
|
|
2776
2362
|
}
|
|
2777
2363
|
}
|
|
2778
2364
|
},
|
|
@@ -2796,20 +2382,11 @@
|
|
|
2796
2382
|
"recurring"
|
|
2797
2383
|
]
|
|
2798
2384
|
},
|
|
2799
|
-
"
|
|
2800
|
-
"type": "
|
|
2801
|
-
"description": "
|
|
2802
|
-
"enum": [
|
|
2803
|
-
"per_unit",
|
|
2804
|
-
"tiered_graduated",
|
|
2805
|
-
"tiered_volume",
|
|
2806
|
-
"tiered_flatfee"
|
|
2807
|
-
]
|
|
2385
|
+
"on_request_approved": {
|
|
2386
|
+
"type": "boolean",
|
|
2387
|
+
"description": "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'."
|
|
2808
2388
|
}
|
|
2809
|
-
}
|
|
2810
|
-
"required": [
|
|
2811
|
-
"pricing_model"
|
|
2812
|
-
]
|
|
2389
|
+
}
|
|
2813
2390
|
},
|
|
2814
2391
|
"TaxAmount": {
|
|
2815
2392
|
"type": "object",
|
|
@@ -2876,14 +2453,7 @@
|
|
|
2876
2453
|
},
|
|
2877
2454
|
"billing_period": {
|
|
2878
2455
|
"type": "string",
|
|
2879
|
-
"description": "The price billing period."
|
|
2880
|
-
"enum": [
|
|
2881
|
-
"weekly",
|
|
2882
|
-
"monthly",
|
|
2883
|
-
"every_quarter",
|
|
2884
|
-
"every_6_months",
|
|
2885
|
-
"yearly"
|
|
2886
|
-
]
|
|
2456
|
+
"description": "The price billing period."
|
|
2887
2457
|
},
|
|
2888
2458
|
"amount_subtotal": {
|
|
2889
2459
|
"type": "integer",
|
|
@@ -2893,17 +2463,9 @@
|
|
|
2893
2463
|
"type": "integer",
|
|
2894
2464
|
"description": "Total of all items, with same recurrence, after (discounts and) taxes are applied."
|
|
2895
2465
|
},
|
|
2896
|
-
"unit_amount_gross": {
|
|
2897
|
-
"type": "integer",
|
|
2898
|
-
"description": "The unit gross amount value."
|
|
2899
|
-
},
|
|
2900
2466
|
"amount_tax": {
|
|
2901
2467
|
"type": "integer",
|
|
2902
2468
|
"description": "Total of all items taxes, with same recurrence."
|
|
2903
|
-
},
|
|
2904
|
-
"currency": {
|
|
2905
|
-
"$ref": "#/components/schemas/Currency",
|
|
2906
|
-
"description": "Currency"
|
|
2907
2469
|
}
|
|
2908
2470
|
},
|
|
2909
2471
|
"required": [
|
|
@@ -2964,9 +2526,6 @@
|
|
|
2964
2526
|
"oneOf": [
|
|
2965
2527
|
{
|
|
2966
2528
|
"$ref": "#/components/schemas/PriceItem"
|
|
2967
|
-
},
|
|
2968
|
-
{
|
|
2969
|
-
"$ref": "#/components/schemas/CompositePriceItem"
|
|
2970
2529
|
}
|
|
2971
2530
|
]
|
|
2972
2531
|
}
|
|
@@ -2979,19 +2538,8 @@
|
|
|
2979
2538
|
"type": "integer",
|
|
2980
2539
|
"description": "Total of all items after (discounts and) taxes are applied."
|
|
2981
2540
|
},
|
|
2982
|
-
"unit_amount_gross": {
|
|
2983
|
-
"type": "integer",
|
|
2984
|
-
"description": "The unit gross amount value."
|
|
2985
|
-
},
|
|
2986
|
-
"amount_tax": {
|
|
2987
|
-
"type": "integer",
|
|
2988
|
-
"description": "This is the sum of all the price item tax amounts."
|
|
2989
|
-
},
|
|
2990
2541
|
"total_details": {
|
|
2991
2542
|
"$ref": "#/components/schemas/TotalDetails"
|
|
2992
|
-
},
|
|
2993
|
-
"currency": {
|
|
2994
|
-
"$ref": "#/components/schemas/Currency"
|
|
2995
2543
|
}
|
|
2996
2544
|
}
|
|
2997
2545
|
},
|
|
@@ -3002,7 +2550,8 @@
|
|
|
3002
2550
|
"monthly",
|
|
3003
2551
|
"every_quarter",
|
|
3004
2552
|
"every_6_months",
|
|
3005
|
-
"yearly"
|
|
2553
|
+
"yearly",
|
|
2554
|
+
"one_time"
|
|
3006
2555
|
]
|
|
3007
2556
|
},
|
|
3008
2557
|
"SalesTax": {
|
|
@@ -3332,6 +2881,7 @@
|
|
|
3332
2881
|
"required": [
|
|
3333
2882
|
"type",
|
|
3334
2883
|
"rate",
|
|
2884
|
+
"behavior",
|
|
3335
2885
|
"_id",
|
|
3336
2886
|
"_title",
|
|
3337
2887
|
"_org",
|
|
@@ -3382,6 +2932,15 @@
|
|
|
3382
2932
|
"rate": {
|
|
3383
2933
|
"type": "number"
|
|
3384
2934
|
},
|
|
2935
|
+
"behavior": {
|
|
2936
|
+
"type": "string",
|
|
2937
|
+
"enum": [
|
|
2938
|
+
"Exclusive",
|
|
2939
|
+
"Inclusive",
|
|
2940
|
+
"exclusive",
|
|
2941
|
+
"inclusive"
|
|
2942
|
+
]
|
|
2943
|
+
},
|
|
3385
2944
|
"active": {
|
|
3386
2945
|
"type": "boolean"
|
|
3387
2946
|
},
|
|
@@ -3396,6 +2955,7 @@
|
|
|
3396
2955
|
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
3397
2956
|
"type": "VAT",
|
|
3398
2957
|
"description": "Tax description",
|
|
2958
|
+
"behavior": "Exclusive",
|
|
3399
2959
|
"active": "true",
|
|
3400
2960
|
"region": "DE",
|
|
3401
2961
|
"region_label": "Germany",
|
|
@@ -3427,37 +2987,6 @@
|
|
|
3427
2987
|
"type": "string"
|
|
3428
2988
|
}
|
|
3429
2989
|
}
|
|
3430
|
-
},
|
|
3431
|
-
"PriceTier": {
|
|
3432
|
-
"type": "object",
|
|
3433
|
-
"properties": {
|
|
3434
|
-
"up_to": {
|
|
3435
|
-
"type": "number",
|
|
3436
|
-
"nullable": true
|
|
3437
|
-
},
|
|
3438
|
-
"flat_fee_amount": {
|
|
3439
|
-
"type": "number"
|
|
3440
|
-
},
|
|
3441
|
-
"flat_fee_amount_decimal": {
|
|
3442
|
-
"type": "string"
|
|
3443
|
-
},
|
|
3444
|
-
"unit_amount": {
|
|
3445
|
-
"type": "number"
|
|
3446
|
-
},
|
|
3447
|
-
"unit_amount_decimal": {
|
|
3448
|
-
"type": "string"
|
|
3449
|
-
},
|
|
3450
|
-
"display_mode": {
|
|
3451
|
-
"$ref": "#/components/schemas/PriceTierDisplayMode"
|
|
3452
|
-
}
|
|
3453
|
-
}
|
|
3454
|
-
},
|
|
3455
|
-
"PriceTierDisplayMode": {
|
|
3456
|
-
"type": "string",
|
|
3457
|
-
"enum": [
|
|
3458
|
-
"hidden",
|
|
3459
|
-
"on_request"
|
|
3460
|
-
]
|
|
3461
2990
|
}
|
|
3462
2991
|
},
|
|
3463
2992
|
"examples": {
|
|
@@ -3561,9 +3090,10 @@
|
|
|
3561
3090
|
"type": "one_time",
|
|
3562
3091
|
"active": true,
|
|
3563
3092
|
"sales_tax": "standard",
|
|
3564
|
-
"
|
|
3093
|
+
"tax_behavior": "inclusive",
|
|
3565
3094
|
"description": "Winter Sale",
|
|
3566
3095
|
"billing_scheme": "per_unit",
|
|
3096
|
+
"tiers_mode": "Standard",
|
|
3567
3097
|
"_created_at": "2021-11-10T18:02:58.318Z",
|
|
3568
3098
|
"_updated_at": "2021-11-10T18:02:58.318Z",
|
|
3569
3099
|
"_title": "Winter Sale"
|
|
@@ -3596,9 +3126,10 @@
|
|
|
3596
3126
|
"type": "one_time",
|
|
3597
3127
|
"active": true,
|
|
3598
3128
|
"sales_tax": "standard",
|
|
3599
|
-
"
|
|
3129
|
+
"tax_behavior": "inclusive",
|
|
3600
3130
|
"description": "Winter Sale",
|
|
3601
3131
|
"billing_scheme": "per_unit",
|
|
3132
|
+
"tiers_mode": "Standard",
|
|
3602
3133
|
"_created_at": "2021-11-10T18:02:58.318Z",
|
|
3603
3134
|
"_updated_at": "2021-11-10T18:02:58.318Z",
|
|
3604
3135
|
"_title": "Winter Sale"
|
|
@@ -3647,6 +3178,7 @@
|
|
|
3647
3178
|
"tax": {
|
|
3648
3179
|
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
3649
3180
|
"rate": "19",
|
|
3181
|
+
"behavior": "Inclusive",
|
|
3650
3182
|
"_schema": "tax",
|
|
3651
3183
|
"_org": "728",
|
|
3652
3184
|
"_created_at": "2021-09-24T15:06:13.859Z",
|
|
@@ -3666,7 +3198,7 @@
|
|
|
3666
3198
|
"unit_amount_currency": "EUR",
|
|
3667
3199
|
"unit_amount_decimal": "1000",
|
|
3668
3200
|
"sales_tax": "standard",
|
|
3669
|
-
"
|
|
3201
|
+
"tax_behavior": "inclusive",
|
|
3670
3202
|
"price_display_in_journeys": "show_price",
|
|
3671
3203
|
"type": "one_time",
|
|
3672
3204
|
"billing_period": "weekly",
|
|
@@ -3778,6 +3310,7 @@
|
|
|
3778
3310
|
"tax": {
|
|
3779
3311
|
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
3780
3312
|
"rate": "19",
|
|
3313
|
+
"behavior": "Inclusive",
|
|
3781
3314
|
"_schema": "tax",
|
|
3782
3315
|
"_org": "728",
|
|
3783
3316
|
"_created_at": "2021-09-24T15:06:13.859Z",
|
|
@@ -3797,7 +3330,7 @@
|
|
|
3797
3330
|
"unit_amount_currency": "EUR",
|
|
3798
3331
|
"unit_amount_decimal": "500",
|
|
3799
3332
|
"sales_tax": "standard",
|
|
3800
|
-
"
|
|
3333
|
+
"tax_behavior": "inclusive",
|
|
3801
3334
|
"price_display_in_journeys": "show_price",
|
|
3802
3335
|
"type": "one_time",
|
|
3803
3336
|
"billing_period": "weekly",
|
|
@@ -3919,9 +3452,10 @@
|
|
|
3919
3452
|
"renewal_duration_unit": "years",
|
|
3920
3453
|
"active": true,
|
|
3921
3454
|
"sales_tax": "reduced",
|
|
3922
|
-
"
|
|
3455
|
+
"tax_behavior": "inclusive",
|
|
3923
3456
|
"description": "Monthly",
|
|
3924
3457
|
"billing_scheme": "per_unit",
|
|
3458
|
+
"tiers_mode": "Standard",
|
|
3925
3459
|
"_schema": "price",
|
|
3926
3460
|
"_org": "728",
|
|
3927
3461
|
"_created_at": "2021-11-10T14:40:27.695Z",
|
|
@@ -4016,7 +3550,7 @@
|
|
|
4016
3550
|
"unit_amount_currency": "EUR",
|
|
4017
3551
|
"unit_amount_decimal": "99",
|
|
4018
3552
|
"sales_tax": "standard",
|
|
4019
|
-
"
|
|
3553
|
+
"tax_behavior": "inclusive",
|
|
4020
3554
|
"price_display_in_journeys": "show_price",
|
|
4021
3555
|
"type": "recurring",
|
|
4022
3556
|
"billing_period": "yearly",
|
|
@@ -4077,6 +3611,7 @@
|
|
|
4077
3611
|
"tax": {
|
|
4078
3612
|
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
4079
3613
|
"rate": "19",
|
|
3614
|
+
"behavior": "Inclusive",
|
|
4080
3615
|
"_schema": "tax",
|
|
4081
3616
|
"_org": "728",
|
|
4082
3617
|
"_created_at": "2021-09-24T15:06:13.859Z",
|
|
@@ -4307,6 +3842,7 @@
|
|
|
4307
3842
|
"tax": {
|
|
4308
3843
|
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
4309
3844
|
"type": "VAT",
|
|
3845
|
+
"behavior": "Exclusive",
|
|
4310
3846
|
"active": true,
|
|
4311
3847
|
"region": "DE",
|
|
4312
3848
|
"_schema": "tax",
|
|
@@ -4335,6 +3871,7 @@
|
|
|
4335
3871
|
"tax": {
|
|
4336
3872
|
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
4337
3873
|
"type": "VAT",
|
|
3874
|
+
"behavior": "Exclusive",
|
|
4338
3875
|
"active": true,
|
|
4339
3876
|
"region": "DE",
|
|
4340
3877
|
"_schema": "tax",
|
|
@@ -4372,6 +3909,7 @@
|
|
|
4372
3909
|
"unit_amount_currency": "EUR",
|
|
4373
3910
|
"unit_amount_decimal": "100.00",
|
|
4374
3911
|
"sales_tax": "standard",
|
|
3912
|
+
"tax_behavior": "exclusive",
|
|
4375
3913
|
"price_display_in_journeys": "show_price",
|
|
4376
3914
|
"type": "one_time",
|
|
4377
3915
|
"_schema": "price",
|
|
@@ -4406,7 +3944,7 @@
|
|
|
4406
3944
|
"unit_amount_currency": "EUR",
|
|
4407
3945
|
"unit_amount_decimal": "100.00",
|
|
4408
3946
|
"sales_tax": "standard",
|
|
4409
|
-
"
|
|
3947
|
+
"tax_behavior": "exclusive",
|
|
4410
3948
|
"price_display_in_journeys": "show_price",
|
|
4411
3949
|
"type": "one_time",
|
|
4412
3950
|
"_schema": "price",
|
|
@@ -4459,7 +3997,7 @@
|
|
|
4459
3997
|
"unit_amount_currency": "EUR",
|
|
4460
3998
|
"unit_amount_decimal": "555666.77",
|
|
4461
3999
|
"sales_tax": "standard",
|
|
4462
|
-
"
|
|
4000
|
+
"tax_behavior": "inclusive",
|
|
4463
4001
|
"price_display_in_journeys": "show_as_starting_price",
|
|
4464
4002
|
"type": "one_time",
|
|
4465
4003
|
"_schema": "price",
|
|
@@ -4564,6 +4102,7 @@
|
|
|
4564
4102
|
"tax": {
|
|
4565
4103
|
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
4566
4104
|
"type": "VAT",
|
|
4105
|
+
"behavior": "Exclusive",
|
|
4567
4106
|
"active": true,
|
|
4568
4107
|
"region": "DE",
|
|
4569
4108
|
"_schema": "tax",
|
|
@@ -4789,7 +4328,7 @@
|
|
|
4789
4328
|
"unit_amount_currency": "EUR",
|
|
4790
4329
|
"unit_amount_decimal": "1000",
|
|
4791
4330
|
"sales_tax": "standard",
|
|
4792
|
-
"
|
|
4331
|
+
"tax_behavior": "inclusive",
|
|
4793
4332
|
"price_display_in_journeys": "show_price",
|
|
4794
4333
|
"type": "one_time",
|
|
4795
4334
|
"billing_period": "weekly",
|
|
@@ -4811,8 +4350,7 @@
|
|
|
4811
4350
|
"_id": "9c36c23b-1574-4193-beff-b1b5e1124bc7",
|
|
4812
4351
|
"_org": "728",
|
|
4813
4352
|
"_created_at": "2022-06-03T16:04:10.369Z",
|
|
4814
|
-
"_updated_at": "2022-06-03T16:04:10.369Z"
|
|
4815
|
-
"pricing_model": "per_unit"
|
|
4353
|
+
"_updated_at": "2022-06-03T16:04:10.369Z"
|
|
4816
4354
|
}
|
|
4817
4355
|
},
|
|
4818
4356
|
"composite-price": {
|
|
@@ -4838,7 +4376,7 @@
|
|
|
4838
4376
|
"unit_amount_currency": "EUR",
|
|
4839
4377
|
"unit_amount_decimal": "100.00",
|
|
4840
4378
|
"sales_tax": "standard",
|
|
4841
|
-
"
|
|
4379
|
+
"tax_behavior": "exclusive",
|
|
4842
4380
|
"price_display_in_journeys": "show_price",
|
|
4843
4381
|
"type": "one_time",
|
|
4844
4382
|
"_schema": "price",
|
|
@@ -4873,7 +4411,7 @@
|
|
|
4873
4411
|
"unit_amount_currency": "EUR",
|
|
4874
4412
|
"unit_amount_decimal": "100.00",
|
|
4875
4413
|
"sales_tax": "standard",
|
|
4876
|
-
"
|
|
4414
|
+
"tax_behavior": "exclusive",
|
|
4877
4415
|
"price_display_in_journeys": "show_price",
|
|
4878
4416
|
"type": "one_time",
|
|
4879
4417
|
"_schema": "price",
|
|
@@ -4914,6 +4452,7 @@
|
|
|
4914
4452
|
"amount": 600,
|
|
4915
4453
|
"tax": {
|
|
4916
4454
|
"active": true,
|
|
4455
|
+
"behavior": "Exclusive",
|
|
4917
4456
|
"description": "Without Behaviour",
|
|
4918
4457
|
"rate": 6,
|
|
4919
4458
|
"region": "DE",
|
|
@@ -4934,7 +4473,7 @@
|
|
|
4934
4473
|
"unit_amount_currency": "EUR",
|
|
4935
4474
|
"unit_amount_decimal": "100.00",
|
|
4936
4475
|
"sales_tax": "standard",
|
|
4937
|
-
"
|
|
4476
|
+
"tax_behavior": "exclusive",
|
|
4938
4477
|
"price_display_in_journeys": "show_price",
|
|
4939
4478
|
"type": "one_time",
|
|
4940
4479
|
"billing_period": "weekly",
|
|
@@ -4956,8 +4495,7 @@
|
|
|
4956
4495
|
"_id": "7e24ff5d-d580-4136-a32f-19191eed039a",
|
|
4957
4496
|
"_org": "728",
|
|
4958
4497
|
"_created_at": "2022-06-03T16:04:10.369Z",
|
|
4959
|
-
"_updated_at": "2022-06-03T16:04:10.369Z"
|
|
4960
|
-
"pricing_model": "per_unit"
|
|
4498
|
+
"_updated_at": "2022-06-03T16:04:10.369Z"
|
|
4961
4499
|
},
|
|
4962
4500
|
"_product": {
|
|
4963
4501
|
"name": "Cool box",
|