@epilot/pricing-client 3.16.1 → 3.17.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 +1 -5
- package/dist/openapi-runtime.json +17 -0
- package/dist/openapi.d.ts +517 -81
- package/dist/openapi.json +561 -101
- package/package.json +5 -5
package/dist/openapi.json
CHANGED
|
@@ -105,9 +105,6 @@
|
|
|
105
105
|
{
|
|
106
106
|
"url": "https://pricing-api.sls.epilot.io"
|
|
107
107
|
},
|
|
108
|
-
{
|
|
109
|
-
"url": "https://pricing-api.sls.epilot.io"
|
|
110
|
-
},
|
|
111
108
|
{
|
|
112
109
|
"url": "https://pricing-api.sls.epilot.io"
|
|
113
110
|
}
|
|
@@ -194,6 +191,147 @@
|
|
|
194
191
|
}
|
|
195
192
|
]
|
|
196
193
|
}
|
|
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
|
+
}
|
|
197
335
|
}
|
|
198
336
|
},
|
|
199
337
|
"schema": {
|
|
@@ -595,6 +733,77 @@
|
|
|
595
733
|
}
|
|
596
734
|
}
|
|
597
735
|
},
|
|
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
|
+
},
|
|
598
807
|
"/v1/public/opportunity": {
|
|
599
808
|
"post": {
|
|
600
809
|
"deprecated": true,
|
|
@@ -724,6 +933,10 @@
|
|
|
724
933
|
"$ref": "#/components/examples/product"
|
|
725
934
|
},
|
|
726
935
|
"properties": {
|
|
936
|
+
"description": {
|
|
937
|
+
"type": "string",
|
|
938
|
+
"description": "The description for the product"
|
|
939
|
+
},
|
|
727
940
|
"code": {
|
|
728
941
|
"type": "string",
|
|
729
942
|
"description": "The product code"
|
|
@@ -1268,17 +1481,31 @@
|
|
|
1268
1481
|
"description": "The flag for prices that contain price components.",
|
|
1269
1482
|
"type": "boolean"
|
|
1270
1483
|
},
|
|
1271
|
-
"
|
|
1484
|
+
"pricing_model": {
|
|
1272
1485
|
"type": "string",
|
|
1273
|
-
"description": "Describes how to compute the price per period. Either `per_unit` or `
|
|
1486
|
+
"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` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.\n",
|
|
1274
1487
|
"enum": [
|
|
1275
|
-
"per_unit"
|
|
1488
|
+
"per_unit",
|
|
1489
|
+
"tiered_graduated",
|
|
1490
|
+
"tiered_volume",
|
|
1491
|
+
"tiered_flatfee"
|
|
1276
1492
|
]
|
|
1277
1493
|
},
|
|
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
|
+
},
|
|
1278
1501
|
"description": {
|
|
1279
1502
|
"type": "string",
|
|
1280
1503
|
"description": "A brief description of the price."
|
|
1281
1504
|
},
|
|
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
|
+
},
|
|
1282
1509
|
"sales_tax": {
|
|
1283
1510
|
"deprecated": true,
|
|
1284
1511
|
"description": "The default tax rate applicable to the product.\nThis field is deprecated, use the new `tax` attribute.\n",
|
|
@@ -1310,20 +1537,9 @@
|
|
|
1310
1537
|
}
|
|
1311
1538
|
]
|
|
1312
1539
|
},
|
|
1313
|
-
"
|
|
1314
|
-
"type": "
|
|
1315
|
-
"description": "Specifies whether the price is considered `inclusive` of taxes or
|
|
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
|
-
]
|
|
1540
|
+
"is_tax_inclusive": {
|
|
1541
|
+
"type": "boolean",
|
|
1542
|
+
"description": "Specifies whether the price is considered `inclusive` of taxes or not."
|
|
1327
1543
|
},
|
|
1328
1544
|
"type": {
|
|
1329
1545
|
"type": "string",
|
|
@@ -1433,7 +1649,15 @@
|
|
|
1433
1649
|
"kwh",
|
|
1434
1650
|
"m",
|
|
1435
1651
|
"m2",
|
|
1436
|
-
"l"
|
|
1652
|
+
"l",
|
|
1653
|
+
"cubic-meter",
|
|
1654
|
+
"cubic-meter-h",
|
|
1655
|
+
"ls",
|
|
1656
|
+
"a",
|
|
1657
|
+
"kva",
|
|
1658
|
+
"w",
|
|
1659
|
+
"wp",
|
|
1660
|
+
"kwp"
|
|
1437
1661
|
]
|
|
1438
1662
|
},
|
|
1439
1663
|
{
|
|
@@ -1469,7 +1693,10 @@
|
|
|
1469
1693
|
"type": "string"
|
|
1470
1694
|
}
|
|
1471
1695
|
}
|
|
1472
|
-
}
|
|
1696
|
+
},
|
|
1697
|
+
"required": [
|
|
1698
|
+
"pricing_model"
|
|
1699
|
+
]
|
|
1473
1700
|
},
|
|
1474
1701
|
"CompositePrice": {
|
|
1475
1702
|
"type": "object",
|
|
@@ -1593,6 +1820,65 @@
|
|
|
1593
1820
|
]
|
|
1594
1821
|
}
|
|
1595
1822
|
},
|
|
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
|
+
},
|
|
1596
1882
|
"CatalogSearch": {
|
|
1597
1883
|
"description": "A catalog search payload",
|
|
1598
1884
|
"type": "object",
|
|
@@ -1753,6 +2039,65 @@
|
|
|
1753
2039
|
]
|
|
1754
2040
|
}
|
|
1755
2041
|
},
|
|
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
|
+
},
|
|
1756
2101
|
"CartDto": {
|
|
1757
2102
|
"description": "A valid cart payload from a client.",
|
|
1758
2103
|
"properties": {
|
|
@@ -1876,9 +2221,12 @@
|
|
|
1876
2221
|
"description": "A valid set of product prices, quantities, (discounts) and taxes from a client.",
|
|
1877
2222
|
"type": "array",
|
|
1878
2223
|
"items": {
|
|
1879
|
-
"
|
|
2224
|
+
"anyOf": [
|
|
1880
2225
|
{
|
|
1881
2226
|
"$ref": "#/components/schemas/PriceItemDto"
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
"$ref": "#/components/schemas/CompositePriceItemDto"
|
|
1882
2230
|
}
|
|
1883
2231
|
]
|
|
1884
2232
|
}
|
|
@@ -1894,6 +2242,10 @@
|
|
|
1894
2242
|
"type": "integer",
|
|
1895
2243
|
"description": "The quantity of products being purchased."
|
|
1896
2244
|
},
|
|
2245
|
+
"price_mappings": {
|
|
2246
|
+
"description": "Price mapping information required to compute totals",
|
|
2247
|
+
"$ref": "#/components/schemas/PriceInputMappings"
|
|
2248
|
+
},
|
|
1897
2249
|
"description": {
|
|
1898
2250
|
"type": "string",
|
|
1899
2251
|
"description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
|
|
@@ -1965,10 +2317,27 @@
|
|
|
1965
2317
|
"type": "integer",
|
|
1966
2318
|
"description": "The unit amount value"
|
|
1967
2319
|
},
|
|
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
|
+
},
|
|
1968
2327
|
"unit_amount_decimal": {
|
|
1969
2328
|
"description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
1970
2329
|
"type": "string"
|
|
1971
2330
|
},
|
|
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
|
+
},
|
|
1972
2341
|
"_price": {
|
|
1973
2342
|
"description": "The snapshot of the price linked to the price item.",
|
|
1974
2343
|
"allOf": [
|
|
@@ -1977,7 +2346,10 @@
|
|
|
1977
2346
|
}
|
|
1978
2347
|
]
|
|
1979
2348
|
}
|
|
1980
|
-
}
|
|
2349
|
+
},
|
|
2350
|
+
"required": [
|
|
2351
|
+
"pricing_model"
|
|
2352
|
+
]
|
|
1981
2353
|
},
|
|
1982
2354
|
"CompositePriceItemDto": {
|
|
1983
2355
|
"allOf": [
|
|
@@ -2049,6 +2421,11 @@
|
|
|
2049
2421
|
"RecurrenceAmountDto": {
|
|
2050
2422
|
"type": "object",
|
|
2051
2423
|
"description": "An amount associated with a specific recurrence.",
|
|
2424
|
+
"allOf": [
|
|
2425
|
+
{
|
|
2426
|
+
"$ref": "#/components/schemas/Amounts"
|
|
2427
|
+
}
|
|
2428
|
+
],
|
|
2052
2429
|
"properties": {
|
|
2053
2430
|
"type": {
|
|
2054
2431
|
"type": "string",
|
|
@@ -2056,15 +2433,18 @@
|
|
|
2056
2433
|
},
|
|
2057
2434
|
"billing_period": {
|
|
2058
2435
|
"type": "string",
|
|
2059
|
-
"description": "The price billing period."
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2436
|
+
"description": "The price billing period.",
|
|
2437
|
+
"enum": [
|
|
2438
|
+
"weekly",
|
|
2439
|
+
"monthly",
|
|
2440
|
+
"every_quarter",
|
|
2441
|
+
"every_6_months",
|
|
2442
|
+
"yearly"
|
|
2443
|
+
]
|
|
2064
2444
|
},
|
|
2065
|
-
"
|
|
2445
|
+
"unit_amount_gross": {
|
|
2066
2446
|
"type": "integer",
|
|
2067
|
-
"description": "
|
|
2447
|
+
"description": "The unit gross amount value."
|
|
2068
2448
|
},
|
|
2069
2449
|
"amount_tax": {
|
|
2070
2450
|
"type": "integer",
|
|
@@ -2073,11 +2453,18 @@
|
|
|
2073
2453
|
},
|
|
2074
2454
|
"required": [
|
|
2075
2455
|
"amount_subtotal",
|
|
2076
|
-
"amount_total"
|
|
2456
|
+
"amount_total",
|
|
2457
|
+
"amount_subtotal_decimal",
|
|
2458
|
+
"amount_total_decimal"
|
|
2077
2459
|
]
|
|
2078
2460
|
},
|
|
2079
2461
|
"Cart": {
|
|
2080
2462
|
"description": "Supports shopping for products and services until ready for checkout.",
|
|
2463
|
+
"allOf": [
|
|
2464
|
+
{
|
|
2465
|
+
"$ref": "#/components/schemas/Amounts"
|
|
2466
|
+
}
|
|
2467
|
+
],
|
|
2081
2468
|
"properties": {
|
|
2082
2469
|
"id": {
|
|
2083
2470
|
"type": "string",
|
|
@@ -2113,16 +2500,6 @@
|
|
|
2113
2500
|
"line_items": {
|
|
2114
2501
|
"$ref": "#/components/schemas/PriceItems"
|
|
2115
2502
|
},
|
|
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
|
-
},
|
|
2126
2503
|
"total_details": {
|
|
2127
2504
|
"$ref": "#/components/schemas/TotalDetails"
|
|
2128
2505
|
},
|
|
@@ -2169,7 +2546,7 @@
|
|
|
2169
2546
|
"$ref": "#/components/schemas/OrderStatus"
|
|
2170
2547
|
},
|
|
2171
2548
|
"line_items": {
|
|
2172
|
-
"$ref": "#/components/schemas/
|
|
2549
|
+
"$ref": "#/components/schemas/PriceItemsDto"
|
|
2173
2550
|
},
|
|
2174
2551
|
"source_type": {
|
|
2175
2552
|
"type": "string",
|
|
@@ -2257,6 +2634,9 @@
|
|
|
2257
2634
|
"items": {
|
|
2258
2635
|
"$ref": "#/components/schemas/PriceItem"
|
|
2259
2636
|
}
|
|
2637
|
+
},
|
|
2638
|
+
"total_details": {
|
|
2639
|
+
"$ref": "#/components/schemas/TotalDetails"
|
|
2260
2640
|
}
|
|
2261
2641
|
}
|
|
2262
2642
|
},
|
|
@@ -2266,8 +2646,13 @@
|
|
|
2266
2646
|
"example": {
|
|
2267
2647
|
"$ref": "#/components/examples/price-item"
|
|
2268
2648
|
},
|
|
2649
|
+
"allOf": [
|
|
2650
|
+
{
|
|
2651
|
+
"$ref": "#/components/schemas/Amounts"
|
|
2652
|
+
}
|
|
2653
|
+
],
|
|
2269
2654
|
"properties": {
|
|
2270
|
-
"
|
|
2655
|
+
"_id": {
|
|
2271
2656
|
"type": "string",
|
|
2272
2657
|
"description": "price item id",
|
|
2273
2658
|
"readOnly": true
|
|
@@ -2280,11 +2665,15 @@
|
|
|
2280
2665
|
"description": "The unit amount value",
|
|
2281
2666
|
"readOnly": true
|
|
2282
2667
|
},
|
|
2283
|
-
"
|
|
2668
|
+
"unit_amount_gross": {
|
|
2284
2669
|
"type": "integer",
|
|
2285
|
-
"description": "
|
|
2670
|
+
"description": "The unit gross amount value.",
|
|
2286
2671
|
"readOnly": true
|
|
2287
2672
|
},
|
|
2673
|
+
"amount_tax": {
|
|
2674
|
+
"type": "integer",
|
|
2675
|
+
"description": "Total tax amount for this line item."
|
|
2676
|
+
},
|
|
2288
2677
|
"unit_amount_net": {
|
|
2289
2678
|
"type": "integer",
|
|
2290
2679
|
"description": "Net unit amount without taxes or discounts.",
|
|
@@ -2294,11 +2683,6 @@
|
|
|
2294
2683
|
"description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
2295
2684
|
"type": "string"
|
|
2296
2685
|
},
|
|
2297
|
-
"amount_total": {
|
|
2298
|
-
"type": "integer",
|
|
2299
|
-
"description": "Total after (discounts and) taxes.",
|
|
2300
|
-
"readOnly": true
|
|
2301
|
-
},
|
|
2302
2686
|
"currency": {
|
|
2303
2687
|
"$ref": "#/components/schemas/Currency"
|
|
2304
2688
|
},
|
|
@@ -2359,6 +2743,35 @@
|
|
|
2359
2743
|
}
|
|
2360
2744
|
]
|
|
2361
2745
|
}
|
|
2746
|
+
},
|
|
2747
|
+
"price_mappings": {
|
|
2748
|
+
"description": "Price mapping information required to compute totals",
|
|
2749
|
+
"$ref": "#/components/schemas/PriceInputMappings"
|
|
2750
|
+
},
|
|
2751
|
+
"on_request_approved": {
|
|
2752
|
+
"type": "boolean",
|
|
2753
|
+
"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'."
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
},
|
|
2757
|
+
"Amounts": {
|
|
2758
|
+
"type": "object",
|
|
2759
|
+
"properties": {
|
|
2760
|
+
"amount_subtotal": {
|
|
2761
|
+
"type": "integer",
|
|
2762
|
+
"description": "Total of all items before (discounts or) taxes are applied."
|
|
2763
|
+
},
|
|
2764
|
+
"amount_subtotal_decimal": {
|
|
2765
|
+
"type": "string",
|
|
2766
|
+
"description": "Total of all items before (discounts or) taxes are applied, as a string with all the decimal places."
|
|
2767
|
+
},
|
|
2768
|
+
"amount_total": {
|
|
2769
|
+
"type": "integer",
|
|
2770
|
+
"description": "Total of all items after (discounts and) taxes are applied."
|
|
2771
|
+
},
|
|
2772
|
+
"amount_total_decimal": {
|
|
2773
|
+
"type": "string",
|
|
2774
|
+
"description": "Total of all items after (discounts and) taxes are applied, as a string with all the decimal places."
|
|
2362
2775
|
}
|
|
2363
2776
|
}
|
|
2364
2777
|
},
|
|
@@ -2382,11 +2795,20 @@
|
|
|
2382
2795
|
"recurring"
|
|
2383
2796
|
]
|
|
2384
2797
|
},
|
|
2385
|
-
"
|
|
2386
|
-
"type": "
|
|
2387
|
-
"description": "
|
|
2798
|
+
"pricing_model": {
|
|
2799
|
+
"type": "string",
|
|
2800
|
+
"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` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.\n",
|
|
2801
|
+
"enum": [
|
|
2802
|
+
"per_unit",
|
|
2803
|
+
"tiered_graduated",
|
|
2804
|
+
"tiered_volume",
|
|
2805
|
+
"tiered_flatfee"
|
|
2806
|
+
]
|
|
2388
2807
|
}
|
|
2389
|
-
}
|
|
2808
|
+
},
|
|
2809
|
+
"required": [
|
|
2810
|
+
"pricing_model"
|
|
2811
|
+
]
|
|
2390
2812
|
},
|
|
2391
2813
|
"TaxAmount": {
|
|
2392
2814
|
"type": "object",
|
|
@@ -2446,6 +2868,11 @@
|
|
|
2446
2868
|
"type": "object",
|
|
2447
2869
|
"description": "An amount associated with a specific recurrence.",
|
|
2448
2870
|
"readOnly": true,
|
|
2871
|
+
"allOf": [
|
|
2872
|
+
{
|
|
2873
|
+
"$ref": "#/components/schemas/Amounts"
|
|
2874
|
+
}
|
|
2875
|
+
],
|
|
2449
2876
|
"properties": {
|
|
2450
2877
|
"type": {
|
|
2451
2878
|
"type": "string",
|
|
@@ -2453,24 +2880,33 @@
|
|
|
2453
2880
|
},
|
|
2454
2881
|
"billing_period": {
|
|
2455
2882
|
"type": "string",
|
|
2456
|
-
"description": "The price billing period."
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2883
|
+
"description": "The price billing period.",
|
|
2884
|
+
"enum": [
|
|
2885
|
+
"weekly",
|
|
2886
|
+
"monthly",
|
|
2887
|
+
"every_quarter",
|
|
2888
|
+
"every_6_months",
|
|
2889
|
+
"yearly"
|
|
2890
|
+
]
|
|
2461
2891
|
},
|
|
2462
|
-
"
|
|
2892
|
+
"unit_amount_gross": {
|
|
2463
2893
|
"type": "integer",
|
|
2464
|
-
"description": "
|
|
2894
|
+
"description": "The unit gross amount value."
|
|
2465
2895
|
},
|
|
2466
2896
|
"amount_tax": {
|
|
2467
2897
|
"type": "integer",
|
|
2468
2898
|
"description": "Total of all items taxes, with same recurrence."
|
|
2899
|
+
},
|
|
2900
|
+
"currency": {
|
|
2901
|
+
"$ref": "#/components/schemas/Currency",
|
|
2902
|
+
"description": "Currency"
|
|
2469
2903
|
}
|
|
2470
2904
|
},
|
|
2471
2905
|
"required": [
|
|
2472
2906
|
"amount_subtotal",
|
|
2473
|
-
"amount_total"
|
|
2907
|
+
"amount_total",
|
|
2908
|
+
"amount_subtotal_decimal",
|
|
2909
|
+
"amount_total_decimal"
|
|
2474
2910
|
]
|
|
2475
2911
|
},
|
|
2476
2912
|
"TotalDetails": {
|
|
@@ -2526,6 +2962,9 @@
|
|
|
2526
2962
|
"oneOf": [
|
|
2527
2963
|
{
|
|
2528
2964
|
"$ref": "#/components/schemas/PriceItem"
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"$ref": "#/components/schemas/CompositePriceItem"
|
|
2529
2968
|
}
|
|
2530
2969
|
]
|
|
2531
2970
|
}
|
|
@@ -2538,8 +2977,19 @@
|
|
|
2538
2977
|
"type": "integer",
|
|
2539
2978
|
"description": "Total of all items after (discounts and) taxes are applied."
|
|
2540
2979
|
},
|
|
2980
|
+
"unit_amount_gross": {
|
|
2981
|
+
"type": "integer",
|
|
2982
|
+
"description": "The unit gross amount value."
|
|
2983
|
+
},
|
|
2984
|
+
"amount_tax": {
|
|
2985
|
+
"type": "integer",
|
|
2986
|
+
"description": "This is the sum of all the price item tax amounts."
|
|
2987
|
+
},
|
|
2541
2988
|
"total_details": {
|
|
2542
2989
|
"$ref": "#/components/schemas/TotalDetails"
|
|
2990
|
+
},
|
|
2991
|
+
"currency": {
|
|
2992
|
+
"$ref": "#/components/schemas/Currency"
|
|
2543
2993
|
}
|
|
2544
2994
|
}
|
|
2545
2995
|
},
|
|
@@ -2550,8 +3000,7 @@
|
|
|
2550
3000
|
"monthly",
|
|
2551
3001
|
"every_quarter",
|
|
2552
3002
|
"every_6_months",
|
|
2553
|
-
"yearly"
|
|
2554
|
-
"one_time"
|
|
3003
|
+
"yearly"
|
|
2555
3004
|
]
|
|
2556
3005
|
},
|
|
2557
3006
|
"SalesTax": {
|
|
@@ -2881,7 +3330,6 @@
|
|
|
2881
3330
|
"required": [
|
|
2882
3331
|
"type",
|
|
2883
3332
|
"rate",
|
|
2884
|
-
"behavior",
|
|
2885
3333
|
"_id",
|
|
2886
3334
|
"_title",
|
|
2887
3335
|
"_org",
|
|
@@ -2932,15 +3380,6 @@
|
|
|
2932
3380
|
"rate": {
|
|
2933
3381
|
"type": "number"
|
|
2934
3382
|
},
|
|
2935
|
-
"behavior": {
|
|
2936
|
-
"type": "string",
|
|
2937
|
-
"enum": [
|
|
2938
|
-
"Exclusive",
|
|
2939
|
-
"Inclusive",
|
|
2940
|
-
"exclusive",
|
|
2941
|
-
"inclusive"
|
|
2942
|
-
]
|
|
2943
|
-
},
|
|
2944
3383
|
"active": {
|
|
2945
3384
|
"type": "boolean"
|
|
2946
3385
|
},
|
|
@@ -2955,7 +3394,6 @@
|
|
|
2955
3394
|
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2956
3395
|
"type": "VAT",
|
|
2957
3396
|
"description": "Tax description",
|
|
2958
|
-
"behavior": "Exclusive",
|
|
2959
3397
|
"active": "true",
|
|
2960
3398
|
"region": "DE",
|
|
2961
3399
|
"region_label": "Germany",
|
|
@@ -2987,6 +3425,37 @@
|
|
|
2987
3425
|
"type": "string"
|
|
2988
3426
|
}
|
|
2989
3427
|
}
|
|
3428
|
+
},
|
|
3429
|
+
"PriceTier": {
|
|
3430
|
+
"type": "object",
|
|
3431
|
+
"properties": {
|
|
3432
|
+
"up_to": {
|
|
3433
|
+
"type": "number",
|
|
3434
|
+
"nullable": true
|
|
3435
|
+
},
|
|
3436
|
+
"flat_fee_amount": {
|
|
3437
|
+
"type": "number"
|
|
3438
|
+
},
|
|
3439
|
+
"flat_fee_amount_decimal": {
|
|
3440
|
+
"type": "string"
|
|
3441
|
+
},
|
|
3442
|
+
"unit_amount": {
|
|
3443
|
+
"type": "number"
|
|
3444
|
+
},
|
|
3445
|
+
"unit_amount_decimal": {
|
|
3446
|
+
"type": "string"
|
|
3447
|
+
},
|
|
3448
|
+
"display_mode": {
|
|
3449
|
+
"$ref": "#/components/schemas/PriceTierDisplayMode"
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3452
|
+
},
|
|
3453
|
+
"PriceTierDisplayMode": {
|
|
3454
|
+
"type": "string",
|
|
3455
|
+
"enum": [
|
|
3456
|
+
"hidden",
|
|
3457
|
+
"on_request"
|
|
3458
|
+
]
|
|
2990
3459
|
}
|
|
2991
3460
|
},
|
|
2992
3461
|
"examples": {
|
|
@@ -3090,10 +3559,9 @@
|
|
|
3090
3559
|
"type": "one_time",
|
|
3091
3560
|
"active": true,
|
|
3092
3561
|
"sales_tax": "standard",
|
|
3093
|
-
"
|
|
3562
|
+
"is_tax_inclusive": true,
|
|
3094
3563
|
"description": "Winter Sale",
|
|
3095
3564
|
"billing_scheme": "per_unit",
|
|
3096
|
-
"tiers_mode": "Standard",
|
|
3097
3565
|
"_created_at": "2021-11-10T18:02:58.318Z",
|
|
3098
3566
|
"_updated_at": "2021-11-10T18:02:58.318Z",
|
|
3099
3567
|
"_title": "Winter Sale"
|
|
@@ -3126,10 +3594,9 @@
|
|
|
3126
3594
|
"type": "one_time",
|
|
3127
3595
|
"active": true,
|
|
3128
3596
|
"sales_tax": "standard",
|
|
3129
|
-
"
|
|
3597
|
+
"is_tax_inclusive": true,
|
|
3130
3598
|
"description": "Winter Sale",
|
|
3131
3599
|
"billing_scheme": "per_unit",
|
|
3132
|
-
"tiers_mode": "Standard",
|
|
3133
3600
|
"_created_at": "2021-11-10T18:02:58.318Z",
|
|
3134
3601
|
"_updated_at": "2021-11-10T18:02:58.318Z",
|
|
3135
3602
|
"_title": "Winter Sale"
|
|
@@ -3178,7 +3645,6 @@
|
|
|
3178
3645
|
"tax": {
|
|
3179
3646
|
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
3180
3647
|
"rate": "19",
|
|
3181
|
-
"behavior": "Inclusive",
|
|
3182
3648
|
"_schema": "tax",
|
|
3183
3649
|
"_org": "728",
|
|
3184
3650
|
"_created_at": "2021-09-24T15:06:13.859Z",
|
|
@@ -3198,7 +3664,7 @@
|
|
|
3198
3664
|
"unit_amount_currency": "EUR",
|
|
3199
3665
|
"unit_amount_decimal": "1000",
|
|
3200
3666
|
"sales_tax": "standard",
|
|
3201
|
-
"
|
|
3667
|
+
"is_tax_inclusive": true,
|
|
3202
3668
|
"price_display_in_journeys": "show_price",
|
|
3203
3669
|
"type": "one_time",
|
|
3204
3670
|
"billing_period": "weekly",
|
|
@@ -3310,7 +3776,6 @@
|
|
|
3310
3776
|
"tax": {
|
|
3311
3777
|
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
3312
3778
|
"rate": "19",
|
|
3313
|
-
"behavior": "Inclusive",
|
|
3314
3779
|
"_schema": "tax",
|
|
3315
3780
|
"_org": "728",
|
|
3316
3781
|
"_created_at": "2021-09-24T15:06:13.859Z",
|
|
@@ -3330,7 +3795,7 @@
|
|
|
3330
3795
|
"unit_amount_currency": "EUR",
|
|
3331
3796
|
"unit_amount_decimal": "500",
|
|
3332
3797
|
"sales_tax": "standard",
|
|
3333
|
-
"
|
|
3798
|
+
"is_tax_inclusive": true,
|
|
3334
3799
|
"price_display_in_journeys": "show_price",
|
|
3335
3800
|
"type": "one_time",
|
|
3336
3801
|
"billing_period": "weekly",
|
|
@@ -3452,10 +3917,9 @@
|
|
|
3452
3917
|
"renewal_duration_unit": "years",
|
|
3453
3918
|
"active": true,
|
|
3454
3919
|
"sales_tax": "reduced",
|
|
3455
|
-
"
|
|
3920
|
+
"is_tax_inclusive": true,
|
|
3456
3921
|
"description": "Monthly",
|
|
3457
3922
|
"billing_scheme": "per_unit",
|
|
3458
|
-
"tiers_mode": "Standard",
|
|
3459
3923
|
"_schema": "price",
|
|
3460
3924
|
"_org": "728",
|
|
3461
3925
|
"_created_at": "2021-11-10T14:40:27.695Z",
|
|
@@ -3550,7 +4014,7 @@
|
|
|
3550
4014
|
"unit_amount_currency": "EUR",
|
|
3551
4015
|
"unit_amount_decimal": "99",
|
|
3552
4016
|
"sales_tax": "standard",
|
|
3553
|
-
"
|
|
4017
|
+
"is_tax_inclusive": true,
|
|
3554
4018
|
"price_display_in_journeys": "show_price",
|
|
3555
4019
|
"type": "recurring",
|
|
3556
4020
|
"billing_period": "yearly",
|
|
@@ -3611,7 +4075,6 @@
|
|
|
3611
4075
|
"tax": {
|
|
3612
4076
|
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
3613
4077
|
"rate": "19",
|
|
3614
|
-
"behavior": "Inclusive",
|
|
3615
4078
|
"_schema": "tax",
|
|
3616
4079
|
"_org": "728",
|
|
3617
4080
|
"_created_at": "2021-09-24T15:06:13.859Z",
|
|
@@ -3842,7 +4305,6 @@
|
|
|
3842
4305
|
"tax": {
|
|
3843
4306
|
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
3844
4307
|
"type": "VAT",
|
|
3845
|
-
"behavior": "Exclusive",
|
|
3846
4308
|
"active": true,
|
|
3847
4309
|
"region": "DE",
|
|
3848
4310
|
"_schema": "tax",
|
|
@@ -3871,7 +4333,6 @@
|
|
|
3871
4333
|
"tax": {
|
|
3872
4334
|
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
3873
4335
|
"type": "VAT",
|
|
3874
|
-
"behavior": "Exclusive",
|
|
3875
4336
|
"active": true,
|
|
3876
4337
|
"region": "DE",
|
|
3877
4338
|
"_schema": "tax",
|
|
@@ -3909,7 +4370,6 @@
|
|
|
3909
4370
|
"unit_amount_currency": "EUR",
|
|
3910
4371
|
"unit_amount_decimal": "100.00",
|
|
3911
4372
|
"sales_tax": "standard",
|
|
3912
|
-
"tax_behavior": "exclusive",
|
|
3913
4373
|
"price_display_in_journeys": "show_price",
|
|
3914
4374
|
"type": "one_time",
|
|
3915
4375
|
"_schema": "price",
|
|
@@ -3944,7 +4404,7 @@
|
|
|
3944
4404
|
"unit_amount_currency": "EUR",
|
|
3945
4405
|
"unit_amount_decimal": "100.00",
|
|
3946
4406
|
"sales_tax": "standard",
|
|
3947
|
-
"
|
|
4407
|
+
"is_tax_inclusive": false,
|
|
3948
4408
|
"price_display_in_journeys": "show_price",
|
|
3949
4409
|
"type": "one_time",
|
|
3950
4410
|
"_schema": "price",
|
|
@@ -3997,7 +4457,7 @@
|
|
|
3997
4457
|
"unit_amount_currency": "EUR",
|
|
3998
4458
|
"unit_amount_decimal": "555666.77",
|
|
3999
4459
|
"sales_tax": "standard",
|
|
4000
|
-
"
|
|
4460
|
+
"is_tax_inclusive": true,
|
|
4001
4461
|
"price_display_in_journeys": "show_as_starting_price",
|
|
4002
4462
|
"type": "one_time",
|
|
4003
4463
|
"_schema": "price",
|
|
@@ -4102,7 +4562,6 @@
|
|
|
4102
4562
|
"tax": {
|
|
4103
4563
|
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
4104
4564
|
"type": "VAT",
|
|
4105
|
-
"behavior": "Exclusive",
|
|
4106
4565
|
"active": true,
|
|
4107
4566
|
"region": "DE",
|
|
4108
4567
|
"_schema": "tax",
|
|
@@ -4328,7 +4787,7 @@
|
|
|
4328
4787
|
"unit_amount_currency": "EUR",
|
|
4329
4788
|
"unit_amount_decimal": "1000",
|
|
4330
4789
|
"sales_tax": "standard",
|
|
4331
|
-
"
|
|
4790
|
+
"is_tax_inclusive": true,
|
|
4332
4791
|
"price_display_in_journeys": "show_price",
|
|
4333
4792
|
"type": "one_time",
|
|
4334
4793
|
"billing_period": "weekly",
|
|
@@ -4350,7 +4809,8 @@
|
|
|
4350
4809
|
"_id": "9c36c23b-1574-4193-beff-b1b5e1124bc7",
|
|
4351
4810
|
"_org": "728",
|
|
4352
4811
|
"_created_at": "2022-06-03T16:04:10.369Z",
|
|
4353
|
-
"_updated_at": "2022-06-03T16:04:10.369Z"
|
|
4812
|
+
"_updated_at": "2022-06-03T16:04:10.369Z",
|
|
4813
|
+
"pricing_model": "per_unit"
|
|
4354
4814
|
}
|
|
4355
4815
|
},
|
|
4356
4816
|
"composite-price": {
|
|
@@ -4376,7 +4836,7 @@
|
|
|
4376
4836
|
"unit_amount_currency": "EUR",
|
|
4377
4837
|
"unit_amount_decimal": "100.00",
|
|
4378
4838
|
"sales_tax": "standard",
|
|
4379
|
-
"
|
|
4839
|
+
"is_tax_inclusive": false,
|
|
4380
4840
|
"price_display_in_journeys": "show_price",
|
|
4381
4841
|
"type": "one_time",
|
|
4382
4842
|
"_schema": "price",
|
|
@@ -4411,7 +4871,7 @@
|
|
|
4411
4871
|
"unit_amount_currency": "EUR",
|
|
4412
4872
|
"unit_amount_decimal": "100.00",
|
|
4413
4873
|
"sales_tax": "standard",
|
|
4414
|
-
"
|
|
4874
|
+
"is_tax_inclusive": false,
|
|
4415
4875
|
"price_display_in_journeys": "show_price",
|
|
4416
4876
|
"type": "one_time",
|
|
4417
4877
|
"_schema": "price",
|
|
@@ -4452,7 +4912,6 @@
|
|
|
4452
4912
|
"amount": 600,
|
|
4453
4913
|
"tax": {
|
|
4454
4914
|
"active": true,
|
|
4455
|
-
"behavior": "Exclusive",
|
|
4456
4915
|
"description": "Without Behaviour",
|
|
4457
4916
|
"rate": 6,
|
|
4458
4917
|
"region": "DE",
|
|
@@ -4473,7 +4932,7 @@
|
|
|
4473
4932
|
"unit_amount_currency": "EUR",
|
|
4474
4933
|
"unit_amount_decimal": "100.00",
|
|
4475
4934
|
"sales_tax": "standard",
|
|
4476
|
-
"
|
|
4935
|
+
"is_tax_inclusive": false,
|
|
4477
4936
|
"price_display_in_journeys": "show_price",
|
|
4478
4937
|
"type": "one_time",
|
|
4479
4938
|
"billing_period": "weekly",
|
|
@@ -4495,7 +4954,8 @@
|
|
|
4495
4954
|
"_id": "7e24ff5d-d580-4136-a32f-19191eed039a",
|
|
4496
4955
|
"_org": "728",
|
|
4497
4956
|
"_created_at": "2022-06-03T16:04:10.369Z",
|
|
4498
|
-
"_updated_at": "2022-06-03T16:04:10.369Z"
|
|
4957
|
+
"_updated_at": "2022-06-03T16:04:10.369Z",
|
|
4958
|
+
"pricing_model": "per_unit"
|
|
4499
4959
|
},
|
|
4500
4960
|
"_product": {
|
|
4501
4961
|
"name": "Cool box",
|