@epilot/pricing-client 3.18.0 → 3.18.1
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 +133 -0
- package/dist/openapi.json +615 -3
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -91,6 +91,20 @@ declare namespace Components {
|
|
|
91
91
|
products: string[];
|
|
92
92
|
filters: /* Availability filters dimensions */ AvailabilityFilters;
|
|
93
93
|
}
|
|
94
|
+
export interface AvailabilityDate {
|
|
95
|
+
/**
|
|
96
|
+
* The availability interval start date
|
|
97
|
+
* example:
|
|
98
|
+
* 2017-07-21
|
|
99
|
+
*/
|
|
100
|
+
available_start_date?: string; // date
|
|
101
|
+
/**
|
|
102
|
+
* The availability interval end date
|
|
103
|
+
* example:
|
|
104
|
+
* 2017-07-21
|
|
105
|
+
*/
|
|
106
|
+
available_end_date?: string; // date
|
|
107
|
+
}
|
|
94
108
|
/**
|
|
95
109
|
* Availability filters dimensions
|
|
96
110
|
*/
|
|
@@ -455,6 +469,51 @@ declare namespace Components {
|
|
|
455
469
|
password: string;
|
|
456
470
|
}
|
|
457
471
|
export type BillingPeriod = "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
|
|
472
|
+
/**
|
|
473
|
+
* Supports shopping for products and services until ready for checkout.
|
|
474
|
+
*/
|
|
475
|
+
export interface Cart {
|
|
476
|
+
/**
|
|
477
|
+
* Total of all items before (discounts or) taxes are applied.
|
|
478
|
+
*/
|
|
479
|
+
amount_subtotal?: number;
|
|
480
|
+
/**
|
|
481
|
+
* Total of all items before (discounts or) taxes are applied, as a string with all the decimal places.
|
|
482
|
+
*/
|
|
483
|
+
amount_subtotal_decimal?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Total of all items after (discounts and) taxes are applied.
|
|
486
|
+
*/
|
|
487
|
+
amount_total?: number;
|
|
488
|
+
/**
|
|
489
|
+
* Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
|
|
490
|
+
*/
|
|
491
|
+
amount_total_decimal?: string;
|
|
492
|
+
/**
|
|
493
|
+
* The cart identifier
|
|
494
|
+
*/
|
|
495
|
+
id?: string;
|
|
496
|
+
/**
|
|
497
|
+
* The user's Organization Id the cart belongs to
|
|
498
|
+
*/
|
|
499
|
+
org_id?: string;
|
|
500
|
+
/**
|
|
501
|
+
* The status of the Cart:
|
|
502
|
+
* - open - the cart checkout is still in progress. Payment processing has not started
|
|
503
|
+
* - complete - the cart checkout is complete. Payment processing may still be in progress
|
|
504
|
+
* - expired - the cart checkout has expired. No further processing will occur
|
|
505
|
+
*
|
|
506
|
+
*/
|
|
507
|
+
status?: "open" | "complete" | "expired";
|
|
508
|
+
customer?: Customer;
|
|
509
|
+
billing_address?: Address;
|
|
510
|
+
delivery_address?: Address;
|
|
511
|
+
metadata?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData;
|
|
512
|
+
line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
|
|
513
|
+
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
514
|
+
created_at?: string; // date-time
|
|
515
|
+
updated_at?: string; // date-time
|
|
516
|
+
}
|
|
458
517
|
/**
|
|
459
518
|
* A valid cart payload from a client.
|
|
460
519
|
*/
|
|
@@ -1099,6 +1158,35 @@ declare namespace Components {
|
|
|
1099
1158
|
phone?: string;
|
|
1100
1159
|
}
|
|
1101
1160
|
export type EntityId = string; // uuid
|
|
1161
|
+
/**
|
|
1162
|
+
* example:
|
|
1163
|
+
* {
|
|
1164
|
+
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1165
|
+
* "_org": "123",
|
|
1166
|
+
* "_schema": "contact",
|
|
1167
|
+
* "_tags": [
|
|
1168
|
+
* "example",
|
|
1169
|
+
* "mock"
|
|
1170
|
+
* ],
|
|
1171
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
1172
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
1173
|
+
* }
|
|
1174
|
+
*/
|
|
1175
|
+
export interface EntityItem {
|
|
1176
|
+
_id: EntityId /* uuid */;
|
|
1177
|
+
/**
|
|
1178
|
+
* Title of entity
|
|
1179
|
+
*/
|
|
1180
|
+
_title: string;
|
|
1181
|
+
/**
|
|
1182
|
+
* Organization Id the entity belongs to
|
|
1183
|
+
*/
|
|
1184
|
+
_org: string;
|
|
1185
|
+
_schema: string;
|
|
1186
|
+
_tags?: string[];
|
|
1187
|
+
_created_at: string; // date-time
|
|
1188
|
+
_updated_at: string; // date-time
|
|
1189
|
+
}
|
|
1102
1190
|
export interface EntityRelation {
|
|
1103
1191
|
[name: string]: any;
|
|
1104
1192
|
entity_id?: string;
|
|
@@ -2349,6 +2437,51 @@ declare namespace Components {
|
|
|
2349
2437
|
display_mode?: PriceTierDisplayMode;
|
|
2350
2438
|
}
|
|
2351
2439
|
export type PriceTierDisplayMode = "hidden" | "on_request";
|
|
2440
|
+
/**
|
|
2441
|
+
* The result from the calculation of a set of price items.
|
|
2442
|
+
*/
|
|
2443
|
+
export interface PricingDetails {
|
|
2444
|
+
items?: (/**
|
|
2445
|
+
* Represents a price item
|
|
2446
|
+
* example:
|
|
2447
|
+
* {
|
|
2448
|
+
* "$ref": "#/components/examples/price-item"
|
|
2449
|
+
* }
|
|
2450
|
+
*/
|
|
2451
|
+
PriceItem | /**
|
|
2452
|
+
* Represents a composite price input to the pricing library.
|
|
2453
|
+
* example:
|
|
2454
|
+
* {
|
|
2455
|
+
* "$ref": "#/components/examples/price-item"
|
|
2456
|
+
* }
|
|
2457
|
+
*/
|
|
2458
|
+
CompositePriceItem)[];
|
|
2459
|
+
/**
|
|
2460
|
+
* Total of all items before (discounts or) taxes are applied.
|
|
2461
|
+
*/
|
|
2462
|
+
amount_subtotal?: number;
|
|
2463
|
+
/**
|
|
2464
|
+
* Total of all items after (discounts and) taxes are applied.
|
|
2465
|
+
*/
|
|
2466
|
+
amount_total?: number;
|
|
2467
|
+
/**
|
|
2468
|
+
* The unit gross amount value.
|
|
2469
|
+
*/
|
|
2470
|
+
unit_amount_gross?: number;
|
|
2471
|
+
/**
|
|
2472
|
+
* This is the sum of all the price item tax amounts.
|
|
2473
|
+
*/
|
|
2474
|
+
amount_tax?: number;
|
|
2475
|
+
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
2476
|
+
currency?: /**
|
|
2477
|
+
* Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
2478
|
+
* ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
|
|
2479
|
+
*
|
|
2480
|
+
* example:
|
|
2481
|
+
* EUR
|
|
2482
|
+
*/
|
|
2483
|
+
Currency;
|
|
2484
|
+
}
|
|
2352
2485
|
/**
|
|
2353
2486
|
* The product entity
|
|
2354
2487
|
* example:
|
package/dist/openapi.json
CHANGED
|
@@ -106,9 +106,6 @@
|
|
|
106
106
|
}
|
|
107
107
|
],
|
|
108
108
|
"servers": [
|
|
109
|
-
{
|
|
110
|
-
"url": "https://pricing-api.sls.epilot.io"
|
|
111
|
-
},
|
|
112
109
|
{
|
|
113
110
|
"url": "https://pricing-api.sls.epilot.io"
|
|
114
111
|
}
|
|
@@ -3206,6 +3203,63 @@
|
|
|
3206
3203
|
"amount_total_decimal"
|
|
3207
3204
|
]
|
|
3208
3205
|
},
|
|
3206
|
+
"Cart": {
|
|
3207
|
+
"description": "Supports shopping for products and services until ready for checkout.",
|
|
3208
|
+
"allOf": [
|
|
3209
|
+
{
|
|
3210
|
+
"$ref": "#/components/schemas/Amounts"
|
|
3211
|
+
}
|
|
3212
|
+
],
|
|
3213
|
+
"properties": {
|
|
3214
|
+
"id": {
|
|
3215
|
+
"type": "string",
|
|
3216
|
+
"description": "The cart identifier"
|
|
3217
|
+
},
|
|
3218
|
+
"org_id": {
|
|
3219
|
+
"type": "string",
|
|
3220
|
+
"description": "The user's Organization Id the cart belongs to",
|
|
3221
|
+
"readOnly": true
|
|
3222
|
+
},
|
|
3223
|
+
"status": {
|
|
3224
|
+
"enum": [
|
|
3225
|
+
"open",
|
|
3226
|
+
"complete",
|
|
3227
|
+
"expired"
|
|
3228
|
+
],
|
|
3229
|
+
"type": "string",
|
|
3230
|
+
"readOnly": true,
|
|
3231
|
+
"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"
|
|
3232
|
+
},
|
|
3233
|
+
"customer": {
|
|
3234
|
+
"$ref": "#/components/schemas/Customer"
|
|
3235
|
+
},
|
|
3236
|
+
"billing_address": {
|
|
3237
|
+
"$ref": "#/components/schemas/Address"
|
|
3238
|
+
},
|
|
3239
|
+
"delivery_address": {
|
|
3240
|
+
"$ref": "#/components/schemas/Address"
|
|
3241
|
+
},
|
|
3242
|
+
"metadata": {
|
|
3243
|
+
"$ref": "#/components/schemas/MetaData"
|
|
3244
|
+
},
|
|
3245
|
+
"line_items": {
|
|
3246
|
+
"$ref": "#/components/schemas/PriceItems"
|
|
3247
|
+
},
|
|
3248
|
+
"total_details": {
|
|
3249
|
+
"$ref": "#/components/schemas/TotalDetails"
|
|
3250
|
+
},
|
|
3251
|
+
"created_at": {
|
|
3252
|
+
"readOnly": true,
|
|
3253
|
+
"type": "string",
|
|
3254
|
+
"format": "date-time"
|
|
3255
|
+
},
|
|
3256
|
+
"updated_at": {
|
|
3257
|
+
"readOnly": true,
|
|
3258
|
+
"type": "string",
|
|
3259
|
+
"format": "date-time"
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
},
|
|
3209
3263
|
"Currency": {
|
|
3210
3264
|
"type": "string",
|
|
3211
3265
|
"description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.\nISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html\n",
|
|
@@ -3643,6 +3697,47 @@
|
|
|
3643
3697
|
}
|
|
3644
3698
|
}
|
|
3645
3699
|
},
|
|
3700
|
+
"PricingDetails": {
|
|
3701
|
+
"type": "object",
|
|
3702
|
+
"description": "The result from the calculation of a set of price items.",
|
|
3703
|
+
"properties": {
|
|
3704
|
+
"items": {
|
|
3705
|
+
"type": "array",
|
|
3706
|
+
"items": {
|
|
3707
|
+
"oneOf": [
|
|
3708
|
+
{
|
|
3709
|
+
"$ref": "#/components/schemas/PriceItem"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"$ref": "#/components/schemas/CompositePriceItem"
|
|
3713
|
+
}
|
|
3714
|
+
]
|
|
3715
|
+
}
|
|
3716
|
+
},
|
|
3717
|
+
"amount_subtotal": {
|
|
3718
|
+
"type": "integer",
|
|
3719
|
+
"description": "Total of all items before (discounts or) taxes are applied."
|
|
3720
|
+
},
|
|
3721
|
+
"amount_total": {
|
|
3722
|
+
"type": "integer",
|
|
3723
|
+
"description": "Total of all items after (discounts and) taxes are applied."
|
|
3724
|
+
},
|
|
3725
|
+
"unit_amount_gross": {
|
|
3726
|
+
"type": "integer",
|
|
3727
|
+
"description": "The unit gross amount value."
|
|
3728
|
+
},
|
|
3729
|
+
"amount_tax": {
|
|
3730
|
+
"type": "integer",
|
|
3731
|
+
"description": "This is the sum of all the price item tax amounts."
|
|
3732
|
+
},
|
|
3733
|
+
"total_details": {
|
|
3734
|
+
"$ref": "#/components/schemas/TotalDetails"
|
|
3735
|
+
},
|
|
3736
|
+
"currency": {
|
|
3737
|
+
"$ref": "#/components/schemas/Currency"
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
},
|
|
3646
3741
|
"BillingPeriod": {
|
|
3647
3742
|
"type": "string",
|
|
3648
3743
|
"enum": [
|
|
@@ -3686,6 +3781,23 @@
|
|
|
3686
3781
|
}
|
|
3687
3782
|
}
|
|
3688
3783
|
},
|
|
3784
|
+
"AvailabilityDate": {
|
|
3785
|
+
"type": "object",
|
|
3786
|
+
"properties": {
|
|
3787
|
+
"available_start_date": {
|
|
3788
|
+
"type": "string",
|
|
3789
|
+
"format": "date",
|
|
3790
|
+
"description": "The availability interval start date",
|
|
3791
|
+
"example": "2017-07-21"
|
|
3792
|
+
},
|
|
3793
|
+
"available_end_date": {
|
|
3794
|
+
"type": "string",
|
|
3795
|
+
"format": "date",
|
|
3796
|
+
"description": "The availability interval end date",
|
|
3797
|
+
"example": "2017-07-21"
|
|
3798
|
+
}
|
|
3799
|
+
}
|
|
3800
|
+
},
|
|
3689
3801
|
"AvailabilityFilters": {
|
|
3690
3802
|
"description": "Availability filters dimensions",
|
|
3691
3803
|
"type": "object",
|
|
@@ -3889,6 +4001,58 @@
|
|
|
3889
4001
|
"type": "string",
|
|
3890
4002
|
"format": "uuid"
|
|
3891
4003
|
},
|
|
4004
|
+
"EntityItem": {
|
|
4005
|
+
"type": "object",
|
|
4006
|
+
"properties": {
|
|
4007
|
+
"_id": {
|
|
4008
|
+
"$ref": "#/components/schemas/EntityId"
|
|
4009
|
+
},
|
|
4010
|
+
"_title": {
|
|
4011
|
+
"type": "string",
|
|
4012
|
+
"description": "Title of entity"
|
|
4013
|
+
},
|
|
4014
|
+
"_org": {
|
|
4015
|
+
"type": "string",
|
|
4016
|
+
"description": "Organization Id the entity belongs to"
|
|
4017
|
+
},
|
|
4018
|
+
"_schema": {
|
|
4019
|
+
"type": "string"
|
|
4020
|
+
},
|
|
4021
|
+
"_tags": {
|
|
4022
|
+
"type": "array",
|
|
4023
|
+
"items": {
|
|
4024
|
+
"type": "string"
|
|
4025
|
+
}
|
|
4026
|
+
},
|
|
4027
|
+
"_created_at": {
|
|
4028
|
+
"type": "string",
|
|
4029
|
+
"format": "date-time"
|
|
4030
|
+
},
|
|
4031
|
+
"_updated_at": {
|
|
4032
|
+
"type": "string",
|
|
4033
|
+
"format": "date-time"
|
|
4034
|
+
}
|
|
4035
|
+
},
|
|
4036
|
+
"required": [
|
|
4037
|
+
"_id",
|
|
4038
|
+
"_title",
|
|
4039
|
+
"_org",
|
|
4040
|
+
"_schema",
|
|
4041
|
+
"_created_at",
|
|
4042
|
+
"_updated_at"
|
|
4043
|
+
],
|
|
4044
|
+
"example": {
|
|
4045
|
+
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
4046
|
+
"_org": "123",
|
|
4047
|
+
"_schema": "contact",
|
|
4048
|
+
"_tags": [
|
|
4049
|
+
"example",
|
|
4050
|
+
"mock"
|
|
4051
|
+
],
|
|
4052
|
+
"_created_at": "2021-02-09T12:41:43.662Z",
|
|
4053
|
+
"_updated_at": "2021-02-09T12:41:43.662Z"
|
|
4054
|
+
}
|
|
4055
|
+
},
|
|
3892
4056
|
"EntityRelation": {
|
|
3893
4057
|
"type": "object",
|
|
3894
4058
|
"additionalProperties": true,
|
|
@@ -4040,6 +4204,12 @@
|
|
|
4040
4204
|
}
|
|
4041
4205
|
},
|
|
4042
4206
|
"examples": {
|
|
4207
|
+
"checkout-with-cart-id": {
|
|
4208
|
+
"value": {
|
|
4209
|
+
"mode": "create_order",
|
|
4210
|
+
"cart": "pZ324jnndf"
|
|
4211
|
+
}
|
|
4212
|
+
},
|
|
4043
4213
|
"checkout-with-transient-cart": {
|
|
4044
4214
|
"value": {
|
|
4045
4215
|
"mode": "create_order",
|
|
@@ -4733,6 +4903,448 @@
|
|
|
4733
4903
|
"_updated_at": "2022-06-03T16:29:46.303Z"
|
|
4734
4904
|
}
|
|
4735
4905
|
},
|
|
4906
|
+
"order-with-simple-prices-request": {
|
|
4907
|
+
"value": {
|
|
4908
|
+
"order_number": "OR 2022/742701",
|
|
4909
|
+
"status": "quote",
|
|
4910
|
+
"source": {
|
|
4911
|
+
"title": "manual",
|
|
4912
|
+
"href": null
|
|
4913
|
+
},
|
|
4914
|
+
"source_type": "manual",
|
|
4915
|
+
"_schema": "order",
|
|
4916
|
+
"_title": "OR 2022/742701",
|
|
4917
|
+
"expires_at": "2022-06-30T16:17:00.000Z",
|
|
4918
|
+
"line_items": [
|
|
4919
|
+
{
|
|
4920
|
+
"price_id": "9c36c23b-1574-4193-beff-b1b5e1124bc7",
|
|
4921
|
+
"product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
|
|
4922
|
+
"quantity": 16
|
|
4923
|
+
},
|
|
4924
|
+
{
|
|
4925
|
+
"price_id": "146aa2cc-f267-4d5e-bda4-cbe2669b7741",
|
|
4926
|
+
"product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
|
|
4927
|
+
"quantity": 4
|
|
4928
|
+
},
|
|
4929
|
+
{
|
|
4930
|
+
"price_id": "d88a8763-3e3d-4fc7-a7a5-2bc9117148bf",
|
|
4931
|
+
"product_id": "065d6618-cc59-45f4-8e3a-700edf6813c3",
|
|
4932
|
+
"quantity": 1
|
|
4933
|
+
},
|
|
4934
|
+
{
|
|
4935
|
+
"price_id": "e1ddf75a-d0d1-40b4-a07e-56e292867c88",
|
|
4936
|
+
"product_id": "5b9f05b7-f0f8-49c2-8a8d-0f8f923d6382",
|
|
4937
|
+
"quantity": 1
|
|
4938
|
+
}
|
|
4939
|
+
],
|
|
4940
|
+
"currency": "EUR",
|
|
4941
|
+
"payment_method": [
|
|
4942
|
+
{
|
|
4943
|
+
"type": "IBAN",
|
|
4944
|
+
"details": {}
|
|
4945
|
+
}
|
|
4946
|
+
],
|
|
4947
|
+
"billing_contact": {
|
|
4948
|
+
"$relation": [
|
|
4949
|
+
{
|
|
4950
|
+
"entity_id": "1834a54e-b68f-4f7f-a98a-fe16f11bc2a5",
|
|
4951
|
+
"_tags": []
|
|
4952
|
+
}
|
|
4953
|
+
]
|
|
4954
|
+
},
|
|
4955
|
+
"billing_first_name": "Joao",
|
|
4956
|
+
"billing_last_name": "Pinho",
|
|
4957
|
+
"billing_email": "j.pinho@epilot.cloud",
|
|
4958
|
+
"billing_company_name": "epilot cloud",
|
|
4959
|
+
"billing_address": [
|
|
4960
|
+
{
|
|
4961
|
+
"_tags": [],
|
|
4962
|
+
"street": "Im Media Park",
|
|
4963
|
+
"street_number": "8a",
|
|
4964
|
+
"postal_code": "52000",
|
|
4965
|
+
"city": "Cologne",
|
|
4966
|
+
"country": "DE",
|
|
4967
|
+
"additional_info": ""
|
|
4968
|
+
}
|
|
4969
|
+
],
|
|
4970
|
+
"delivery_address": [],
|
|
4971
|
+
"dates": [
|
|
4972
|
+
{
|
|
4973
|
+
"_tags": [
|
|
4974
|
+
"Instalation Date"
|
|
4975
|
+
],
|
|
4976
|
+
"dates": "",
|
|
4977
|
+
"value": "2022-06-30T16:29:00.000Z"
|
|
4978
|
+
}
|
|
4979
|
+
],
|
|
4980
|
+
"_id": "4c7c9562-f8f0-4af0-a3a6-6aebc5571a6e",
|
|
4981
|
+
"_org": "728",
|
|
4982
|
+
"_created_at": "2022-06-03T16:29:46.303Z",
|
|
4983
|
+
"_updated_at": "2022-06-03T16:29:46.303Z"
|
|
4984
|
+
}
|
|
4985
|
+
},
|
|
4986
|
+
"order-with-composite-prices": {
|
|
4987
|
+
"value": {
|
|
4988
|
+
"metadata": [
|
|
4989
|
+
{
|
|
4990
|
+
"key": "_origin",
|
|
4991
|
+
"value": "journey checkout"
|
|
4992
|
+
}
|
|
4993
|
+
],
|
|
4994
|
+
"_tags": [
|
|
4995
|
+
"journey",
|
|
4996
|
+
"automation"
|
|
4997
|
+
],
|
|
4998
|
+
"status": "quote",
|
|
4999
|
+
"order_number": "OREabZxnO",
|
|
5000
|
+
"billing_first_name": "Paulo",
|
|
5001
|
+
"billing_last_name": "Henriques",
|
|
5002
|
+
"billing_email": "ph@ph1.pt",
|
|
5003
|
+
"billing_address": [
|
|
5004
|
+
{
|
|
5005
|
+
"street": "Bernauer Str.",
|
|
5006
|
+
"street_number": "1",
|
|
5007
|
+
"city": "Berlin",
|
|
5008
|
+
"postal_code": "10115",
|
|
5009
|
+
"country": "DE",
|
|
5010
|
+
"additional_info": "1"
|
|
5011
|
+
}
|
|
5012
|
+
],
|
|
5013
|
+
"delivery_address": [
|
|
5014
|
+
{
|
|
5015
|
+
"street": "Bernauer Str.",
|
|
5016
|
+
"street_number": "1",
|
|
5017
|
+
"city": "Berlin",
|
|
5018
|
+
"postal_code": "10115",
|
|
5019
|
+
"country": "DE",
|
|
5020
|
+
"additional_info": "1"
|
|
5021
|
+
}
|
|
5022
|
+
],
|
|
5023
|
+
"payment_method": [
|
|
5024
|
+
{
|
|
5025
|
+
"type": "BankTransfer",
|
|
5026
|
+
"details": {
|
|
5027
|
+
"label": "Überweisung"
|
|
5028
|
+
}
|
|
5029
|
+
}
|
|
5030
|
+
],
|
|
5031
|
+
"currency": "EUR",
|
|
5032
|
+
"line_items": [
|
|
5033
|
+
{
|
|
5034
|
+
"product_id": "73f857a4-0fbc-4aa6-983f-87c0d6d410a6",
|
|
5035
|
+
"price_id": "c2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
|
|
5036
|
+
"quantity": 3,
|
|
5037
|
+
"currency": "EUR",
|
|
5038
|
+
"item_components": [
|
|
5039
|
+
{
|
|
5040
|
+
"price_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
|
|
5041
|
+
"product_id": "target-price-product-id",
|
|
5042
|
+
"quantity": 3,
|
|
5043
|
+
"unit_amount": 15000,
|
|
5044
|
+
"unit_amount_currency": "EUR",
|
|
5045
|
+
"unit_amount_decimal": "150.00",
|
|
5046
|
+
"amount_subtotal": 45000,
|
|
5047
|
+
"amount_total": 47700,
|
|
5048
|
+
"taxes": [
|
|
5049
|
+
{
|
|
5050
|
+
"tax": {
|
|
5051
|
+
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
5052
|
+
"type": "VAT",
|
|
5053
|
+
"active": true,
|
|
5054
|
+
"region": "DE",
|
|
5055
|
+
"_schema": "tax",
|
|
5056
|
+
"_title": "Tax Without Behaviour",
|
|
5057
|
+
"description": "Without Behaviour",
|
|
5058
|
+
"rate": "6",
|
|
5059
|
+
"_org": "739224",
|
|
5060
|
+
"_created_at": "2022-02-07T14:49:08.831Z",
|
|
5061
|
+
"_updated_at": "2022-02-07T14:49:08.831Z"
|
|
5062
|
+
},
|
|
5063
|
+
"amount": 2700
|
|
5064
|
+
}
|
|
5065
|
+
]
|
|
5066
|
+
},
|
|
5067
|
+
{
|
|
5068
|
+
"price_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
|
|
5069
|
+
"product_id": "target-price-product-id",
|
|
5070
|
+
"quantity": 3,
|
|
5071
|
+
"unit_amount": 15000,
|
|
5072
|
+
"unit_amount_currency": "EUR",
|
|
5073
|
+
"unit_amount_decimal": "150.00",
|
|
5074
|
+
"amount_subtotal": 45000,
|
|
5075
|
+
"amount_total": 47700,
|
|
5076
|
+
"taxes": [
|
|
5077
|
+
{
|
|
5078
|
+
"tax": {
|
|
5079
|
+
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
5080
|
+
"type": "VAT",
|
|
5081
|
+
"active": true,
|
|
5082
|
+
"region": "DE",
|
|
5083
|
+
"_schema": "tax",
|
|
5084
|
+
"_title": "Tax Without Behaviour",
|
|
5085
|
+
"description": "Without Behaviour",
|
|
5086
|
+
"rate": 6,
|
|
5087
|
+
"_org": "739224",
|
|
5088
|
+
"_created_at": "2022-02-07T14:49:08.831Z",
|
|
5089
|
+
"_updated_at": "2022-02-07T14:49:08.831Z"
|
|
5090
|
+
},
|
|
5091
|
+
"amount": 2700
|
|
5092
|
+
}
|
|
5093
|
+
]
|
|
5094
|
+
}
|
|
5095
|
+
],
|
|
5096
|
+
"_price": {
|
|
5097
|
+
"_id": "c2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
|
|
5098
|
+
"_schema": "price",
|
|
5099
|
+
"_title": "Test 1",
|
|
5100
|
+
"description": "Test 1",
|
|
5101
|
+
"_org": "739224",
|
|
5102
|
+
"_created_at": "2022-02-18T10:10:26.439Z",
|
|
5103
|
+
"_updated_at": "2022-02-18T11:53:04.191Z",
|
|
5104
|
+
"active": true,
|
|
5105
|
+
"price_components": {
|
|
5106
|
+
"$relation": [
|
|
5107
|
+
{
|
|
5108
|
+
"entity_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
|
|
5109
|
+
"_schema": "price",
|
|
5110
|
+
"_product_id": "target-price-product-id",
|
|
5111
|
+
"quantity": 1,
|
|
5112
|
+
"item": {
|
|
5113
|
+
"_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
|
|
5114
|
+
"unit_amount": 10000,
|
|
5115
|
+
"unit_amount_currency": "EUR",
|
|
5116
|
+
"unit_amount_decimal": "100.00",
|
|
5117
|
+
"sales_tax": "standard",
|
|
5118
|
+
"price_display_in_journeys": "show_price",
|
|
5119
|
+
"type": "one_time",
|
|
5120
|
+
"_schema": "price",
|
|
5121
|
+
"_title": "Test 1",
|
|
5122
|
+
"description": "Test 1",
|
|
5123
|
+
"tax": {
|
|
5124
|
+
"$relation": [
|
|
5125
|
+
{
|
|
5126
|
+
"entity_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4"
|
|
5127
|
+
}
|
|
5128
|
+
]
|
|
5129
|
+
},
|
|
5130
|
+
"_org": "739224",
|
|
5131
|
+
"_created_at": "2022-02-18T10:10:26.439Z",
|
|
5132
|
+
"_updated_at": "2022-02-18T11:53:04.191Z",
|
|
5133
|
+
"active": true,
|
|
5134
|
+
"billing_period": "weekly",
|
|
5135
|
+
"billing_duration_unit": "months",
|
|
5136
|
+
"notice_time_unit": "months",
|
|
5137
|
+
"termination_time_unit": "months",
|
|
5138
|
+
"renewal_duration_unit": "months"
|
|
5139
|
+
}
|
|
5140
|
+
},
|
|
5141
|
+
{
|
|
5142
|
+
"entity_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
|
|
5143
|
+
"_schema": "price",
|
|
5144
|
+
"_product_id": "target-price-product-id",
|
|
5145
|
+
"quantity": 2,
|
|
5146
|
+
"item": {
|
|
5147
|
+
"_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
|
|
5148
|
+
"unit_amount": 10000,
|
|
5149
|
+
"unit_amount_currency": "EUR",
|
|
5150
|
+
"unit_amount_decimal": "100.00",
|
|
5151
|
+
"sales_tax": "standard",
|
|
5152
|
+
"is_tax_inclusive": false,
|
|
5153
|
+
"price_display_in_journeys": "show_price",
|
|
5154
|
+
"type": "one_time",
|
|
5155
|
+
"_schema": "price",
|
|
5156
|
+
"_title": "Test 1",
|
|
5157
|
+
"description": "Test 1",
|
|
5158
|
+
"tax": {
|
|
5159
|
+
"$relation": [
|
|
5160
|
+
{
|
|
5161
|
+
"entity_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4"
|
|
5162
|
+
}
|
|
5163
|
+
]
|
|
5164
|
+
},
|
|
5165
|
+
"_org": "739224",
|
|
5166
|
+
"_created_at": "2022-02-18T10:10:26.439Z",
|
|
5167
|
+
"_updated_at": "2022-02-18T11:53:04.191Z",
|
|
5168
|
+
"active": true,
|
|
5169
|
+
"billing_period": "weekly",
|
|
5170
|
+
"billing_duration_unit": "months",
|
|
5171
|
+
"notice_time_unit": "months",
|
|
5172
|
+
"termination_time_unit": "months",
|
|
5173
|
+
"renewal_duration_unit": "months"
|
|
5174
|
+
}
|
|
5175
|
+
}
|
|
5176
|
+
]
|
|
5177
|
+
}
|
|
5178
|
+
},
|
|
5179
|
+
"_product": {
|
|
5180
|
+
"_id": "73f857a4-0fbc-4aa6-983f-87c0d6d410a6",
|
|
5181
|
+
"type": "product",
|
|
5182
|
+
"name": "Cool box",
|
|
5183
|
+
"_title": "Cool box"
|
|
5184
|
+
},
|
|
5185
|
+
"description": "Price Component",
|
|
5186
|
+
"unit_amount": 90000,
|
|
5187
|
+
"amount_subtotal": 270000,
|
|
5188
|
+
"amount_total": 286200
|
|
5189
|
+
},
|
|
5190
|
+
{
|
|
5191
|
+
"price_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
|
|
5192
|
+
"product_id": "11bd46e5-4c02-425c-bcce-5f5e022a2b45",
|
|
5193
|
+
"taxes": [
|
|
5194
|
+
{
|
|
5195
|
+
"tax": null,
|
|
5196
|
+
"amount": 0
|
|
5197
|
+
}
|
|
5198
|
+
],
|
|
5199
|
+
"_price": {
|
|
5200
|
+
"_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
|
|
5201
|
+
"unit_amount": 55566677,
|
|
5202
|
+
"unit_amount_currency": "EUR",
|
|
5203
|
+
"unit_amount_decimal": "555666.77",
|
|
5204
|
+
"sales_tax": "standard",
|
|
5205
|
+
"is_tax_inclusive": true,
|
|
5206
|
+
"price_display_in_journeys": "show_as_starting_price",
|
|
5207
|
+
"type": "one_time",
|
|
5208
|
+
"_schema": "price",
|
|
5209
|
+
"_title": "As Starting Price One Time No Tax",
|
|
5210
|
+
"description": "As Starting Price One Time No Tax",
|
|
5211
|
+
"tax": null,
|
|
5212
|
+
"active": true,
|
|
5213
|
+
"_org": "739224",
|
|
5214
|
+
"_created_at": "2022-04-14T16:12:34.456Z",
|
|
5215
|
+
"_updated_at": "2022-04-14T16:13:47.261Z",
|
|
5216
|
+
"billing_period": "weekly",
|
|
5217
|
+
"billing_duration_unit": "months",
|
|
5218
|
+
"notice_time_unit": "months",
|
|
5219
|
+
"termination_time_unit": "months",
|
|
5220
|
+
"renewal_duration_unit": "months"
|
|
5221
|
+
},
|
|
5222
|
+
"_product": {
|
|
5223
|
+
"_id": "11bd46e5-4c02-425c-bcce-5f5e022a2b45",
|
|
5224
|
+
"type": "product",
|
|
5225
|
+
"_schema": "product",
|
|
5226
|
+
"_title": "Product With A Lot Of Prices - Do Not Change 🙏",
|
|
5227
|
+
"name": "Product With A Lot Of Prices - Do Not Change 🙏",
|
|
5228
|
+
"_org": "739224",
|
|
5229
|
+
"_created_at": "2022-04-14T16:08:08.595Z",
|
|
5230
|
+
"_updated_at": "2022-04-18T16:26:33.089Z",
|
|
5231
|
+
"price_options": {
|
|
5232
|
+
"$relation": [
|
|
5233
|
+
{
|
|
5234
|
+
"entity_id": "f850ebff-082e-4924-8631-965cc9c0ab2b",
|
|
5235
|
+
"_tags": []
|
|
5236
|
+
},
|
|
5237
|
+
{
|
|
5238
|
+
"entity_id": "d6ecc576-b5d6-44b4-8c95-496ab2ac14d3",
|
|
5239
|
+
"_tags": []
|
|
5240
|
+
},
|
|
5241
|
+
{
|
|
5242
|
+
"entity_id": "3c0e47ad-6ca3-4cd8-b6b4-b2a48dab7f16",
|
|
5243
|
+
"_tags": []
|
|
5244
|
+
},
|
|
5245
|
+
{
|
|
5246
|
+
"entity_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
|
|
5247
|
+
"_tags": []
|
|
5248
|
+
},
|
|
5249
|
+
{
|
|
5250
|
+
"entity_id": "3e97f809-1d4b-47e1-9faf-46386b2b0d21",
|
|
5251
|
+
"_tags": []
|
|
5252
|
+
},
|
|
5253
|
+
{
|
|
5254
|
+
"entity_id": "d4061656-71dc-45ec-bf6c-1d90d2419d87",
|
|
5255
|
+
"_tags": []
|
|
5256
|
+
},
|
|
5257
|
+
{
|
|
5258
|
+
"entity_id": "4ae4221b-4fd0-4bcc-98a2-f20cda954903",
|
|
5259
|
+
"_tags": []
|
|
5260
|
+
},
|
|
5261
|
+
{
|
|
5262
|
+
"entity_id": "b326df19-9d0f-433a-a4d2-a0a65034b5f7",
|
|
5263
|
+
"_tags": []
|
|
5264
|
+
},
|
|
5265
|
+
{
|
|
5266
|
+
"entity_id": "0d071551-47be-4a5b-90d7-d425a59607e6",
|
|
5267
|
+
"_tags": []
|
|
5268
|
+
}
|
|
5269
|
+
]
|
|
5270
|
+
},
|
|
5271
|
+
"_files": {
|
|
5272
|
+
"$relation": [
|
|
5273
|
+
{
|
|
5274
|
+
"entity_id": "27cc0710-651d-48dc-9624-9d1d3057d025",
|
|
5275
|
+
"_tags": []
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
"entity_id": "8530678c-d4cb-4e27-b314-16a79d6c0abc",
|
|
5279
|
+
"_tags": []
|
|
5280
|
+
},
|
|
5281
|
+
{
|
|
5282
|
+
"entity_id": "714d6253-213f-4e30-8caf-00b0d11032e4",
|
|
5283
|
+
"_tags": []
|
|
5284
|
+
},
|
|
5285
|
+
{
|
|
5286
|
+
"entity_id": "2218a8f8-c6e2-4a98-a2fe-030ed78ebfa7",
|
|
5287
|
+
"_tags": []
|
|
5288
|
+
}
|
|
5289
|
+
]
|
|
5290
|
+
}
|
|
5291
|
+
},
|
|
5292
|
+
"quantity": 7,
|
|
5293
|
+
"currency": "EUR",
|
|
5294
|
+
"description": "As Starting Price One Time No Tax",
|
|
5295
|
+
"unit_amount": 55566677,
|
|
5296
|
+
"amount_subtotal": 388966739,
|
|
5297
|
+
"amount_total": 388966739
|
|
5298
|
+
}
|
|
5299
|
+
],
|
|
5300
|
+
"amount_subtotal": 389236739,
|
|
5301
|
+
"amount_total": 389252939,
|
|
5302
|
+
"total_details": {
|
|
5303
|
+
"amount_tax": 5400,
|
|
5304
|
+
"breakdown": {
|
|
5305
|
+
"taxes": [
|
|
5306
|
+
{
|
|
5307
|
+
"tax": {
|
|
5308
|
+
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
|
|
5309
|
+
"type": "VAT",
|
|
5310
|
+
"active": true,
|
|
5311
|
+
"region": "DE",
|
|
5312
|
+
"_schema": "tax",
|
|
5313
|
+
"_title": "Tax Without Behaviour",
|
|
5314
|
+
"description": "Without Behaviour",
|
|
5315
|
+
"rate": 6,
|
|
5316
|
+
"_org": "739224",
|
|
5317
|
+
"_created_at": "2022-02-07T14:49:08.831Z",
|
|
5318
|
+
"_updated_at": "2022-02-07T14:49:08.831Z"
|
|
5319
|
+
},
|
|
5320
|
+
"amount": 5400
|
|
5321
|
+
}
|
|
5322
|
+
],
|
|
5323
|
+
"recurrences": [
|
|
5324
|
+
{
|
|
5325
|
+
"type": "one_time",
|
|
5326
|
+
"amount_subtotal": 389236739,
|
|
5327
|
+
"amount_total": 389252939,
|
|
5328
|
+
"amount_tax": 5400
|
|
5329
|
+
}
|
|
5330
|
+
]
|
|
5331
|
+
}
|
|
5332
|
+
},
|
|
5333
|
+
"_schema": "order",
|
|
5334
|
+
"_id": "78ac88ae-d7df-4a1e-a26b-acaf089abfb2",
|
|
5335
|
+
"_org": "739224",
|
|
5336
|
+
"_created_at": "2022-04-19T08:19:29.816Z",
|
|
5337
|
+
"_updated_at": "2022-04-20T16:15:48.759Z",
|
|
5338
|
+
"_title": "OREabZxnO",
|
|
5339
|
+
"customer": {
|
|
5340
|
+
"$relation": [
|
|
5341
|
+
{
|
|
5342
|
+
"entity_id": "bb986d50-f403-477c-9d9c-726f8fd6d155"
|
|
5343
|
+
}
|
|
5344
|
+
]
|
|
5345
|
+
}
|
|
5346
|
+
}
|
|
5347
|
+
},
|
|
4736
5348
|
"opportunity": {
|
|
4737
5349
|
"value": {
|
|
4738
5350
|
"opportunity_number": "OP 2022/335790",
|