@epilot/pricing-client 3.17.9 → 3.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.d.ts CHANGED
@@ -91,20 +91,6 @@ 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
- }
108
94
  /**
109
95
  * Availability filters dimensions
110
96
  */
@@ -469,51 +455,6 @@ declare namespace Components {
469
455
  password: string;
470
456
  }
471
457
  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
- }
517
458
  /**
518
459
  * A valid cart payload from a client.
519
460
  */
@@ -1073,6 +1014,22 @@ declare namespace Components {
1073
1014
  * The computed total price as decimal
1074
1015
  */
1075
1016
  amount_total_decimal: string;
1017
+ /**
1018
+ * The computed static price
1019
+ */
1020
+ amount_static?: number;
1021
+ /**
1022
+ * The computed static price as decimal
1023
+ */
1024
+ amount_static_decimal?: any;
1025
+ /**
1026
+ * The computed variable price
1027
+ */
1028
+ amount_variable?: number;
1029
+ /**
1030
+ * The computed variable price as decimal
1031
+ */
1032
+ amount_variable_decimal?: string;
1076
1033
  /**
1077
1034
  * The currency of the computed price (three-letter ISO currency code)
1078
1035
  */
@@ -1107,6 +1064,19 @@ declare namespace Components {
1107
1064
  * Price breakdown
1108
1065
  */
1109
1066
  export interface ComputedPriceBreakdown {
1067
+ /**
1068
+ * The static price breakdown
1069
+ */
1070
+ static?: /* The computed price components */ ComputedPriceComponents;
1071
+ /**
1072
+ * The variable price breakdown
1073
+ */
1074
+ variable?: /* The computed price components */ ComputedPriceComponents;
1075
+ }
1076
+ /**
1077
+ * The computed price components
1078
+ */
1079
+ export interface ComputedPriceComponents {
1110
1080
  [name: string]: /* The computed price */ ComputedBasePrice;
1111
1081
  }
1112
1082
  /**
@@ -1129,35 +1099,6 @@ declare namespace Components {
1129
1099
  phone?: string;
1130
1100
  }
1131
1101
  export type EntityId = string; // uuid
1132
- /**
1133
- * example:
1134
- * {
1135
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1136
- * "_org": "123",
1137
- * "_schema": "contact",
1138
- * "_tags": [
1139
- * "example",
1140
- * "mock"
1141
- * ],
1142
- * "_created_at": "2021-02-09T12:41:43.662Z",
1143
- * "_updated_at": "2021-02-09T12:41:43.662Z"
1144
- * }
1145
- */
1146
- export interface EntityItem {
1147
- _id: EntityId /* uuid */;
1148
- /**
1149
- * Title of entity
1150
- */
1151
- _title: string;
1152
- /**
1153
- * Organization Id the entity belongs to
1154
- */
1155
- _org: string;
1156
- _schema: string;
1157
- _tags?: string[];
1158
- _created_at: string; // date-time
1159
- _updated_at: string; // date-time
1160
- }
1161
1102
  export interface EntityRelation {
1162
1103
  [name: string]: any;
1163
1104
  entity_id?: string;
@@ -2408,51 +2349,6 @@ declare namespace Components {
2408
2349
  display_mode?: PriceTierDisplayMode;
2409
2350
  }
2410
2351
  export type PriceTierDisplayMode = "hidden" | "on_request";
2411
- /**
2412
- * The result from the calculation of a set of price items.
2413
- */
2414
- export interface PricingDetails {
2415
- items?: (/**
2416
- * Represents a price item
2417
- * example:
2418
- * {
2419
- * "$ref": "#/components/examples/price-item"
2420
- * }
2421
- */
2422
- PriceItem | /**
2423
- * Represents a composite price input to the pricing library.
2424
- * example:
2425
- * {
2426
- * "$ref": "#/components/examples/price-item"
2427
- * }
2428
- */
2429
- CompositePriceItem)[];
2430
- /**
2431
- * Total of all items before (discounts or) taxes are applied.
2432
- */
2433
- amount_subtotal?: number;
2434
- /**
2435
- * Total of all items after (discounts and) taxes are applied.
2436
- */
2437
- amount_total?: number;
2438
- /**
2439
- * The unit gross amount value.
2440
- */
2441
- unit_amount_gross?: number;
2442
- /**
2443
- * This is the sum of all the price item tax amounts.
2444
- */
2445
- amount_tax?: number;
2446
- total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
2447
- currency?: /**
2448
- * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2449
- * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2450
- *
2451
- * example:
2452
- * EUR
2453
- */
2454
- Currency;
2455
- }
2456
2352
  /**
2457
2353
  * The product entity
2458
2354
  * example:
@@ -2639,35 +2535,6 @@ declare namespace Components {
2639
2535
  */
2640
2536
  amount_tax?: number;
2641
2537
  }
2642
- /**
2643
- * An amount associated with a specific recurrence and tax.
2644
- */
2645
- export interface RecurrenceAmountWithTax {
2646
- /**
2647
- * The price type.
2648
- */
2649
- type?: string;
2650
- /**
2651
- * The price billing period.
2652
- */
2653
- billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
2654
- /**
2655
- * Total of all items after (discounts and) taxes are applied.
2656
- */
2657
- amount_total: number;
2658
- /**
2659
- * Total of all items before (discounts or) taxes are applied.
2660
- */
2661
- amount_subtotal: number;
2662
- /**
2663
- * Total of all items taxes, with same recurrence.
2664
- */
2665
- amount_tax?: number;
2666
- /**
2667
- * Tax
2668
- */
2669
- tax?: /* A tax amount associated with a specific tax rate. */ TaxAmountBreakdown;
2670
- }
2671
2538
  export type SalesTax = "nontaxable" | "reduced" | "standard";
2672
2539
  export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
2673
2540
  /**
@@ -2723,7 +2590,7 @@ declare namespace Components {
2723
2590
  /**
2724
2591
  * The street name
2725
2592
  */
2726
- name: string;
2593
+ street: string;
2727
2594
  }
2728
2595
  /**
2729
2596
  * the tax configuration
@@ -2891,10 +2758,6 @@ declare namespace Components {
2891
2758
  * The aggregated price items tax amount per rate.
2892
2759
  */
2893
2760
  recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
2894
- /**
2895
- * The aggregated price items recurrences by tax rate.
2896
- */
2897
- recurrencesByTax?: (/* An amount associated with a specific recurrence and tax. */ RecurrenceAmountWithTax)[];
2898
2761
  };
2899
2762
  }
2900
2763
  /**
package/dist/openapi.json CHANGED
@@ -1075,12 +1075,24 @@
1075
1075
  "value": {
1076
1076
  "amount_total": 100,
1077
1077
  "amount_total_decimal": "100.00",
1078
+ "amount_static": 500,
1079
+ "amount_static_decimal": "50.00",
1080
+ "amount_variable": 500,
1081
+ "amount_variable_decimal": "50.00",
1078
1082
  "currency": "EUR",
1079
1083
  "billing_period": "monthly",
1080
1084
  "breakdown": {
1081
- "maintenance_fee": {
1082
- "amount": 10,
1083
- "amount_decimal": "10.00"
1085
+ "static": {
1086
+ "maintenance_fee": {
1087
+ "amount": 50,
1088
+ "amount_decimal": "50.00"
1089
+ }
1090
+ },
1091
+ "variable": {
1092
+ "offshore_liability_fee": {
1093
+ "amount": 50,
1094
+ "amount_decimal": "50.00"
1095
+ }
1084
1096
  }
1085
1097
  }
1086
1098
  }
@@ -2655,6 +2667,20 @@
2655
2667
  "ComputedPriceBreakdown": {
2656
2668
  "type": "object",
2657
2669
  "description": "Price breakdown",
2670
+ "properties": {
2671
+ "static": {
2672
+ "description": "The static price breakdown",
2673
+ "$ref": "#/components/schemas/ComputedPriceComponents"
2674
+ },
2675
+ "variable": {
2676
+ "description": "The variable price breakdown",
2677
+ "$ref": "#/components/schemas/ComputedPriceComponents"
2678
+ }
2679
+ }
2680
+ },
2681
+ "ComputedPriceComponents": {
2682
+ "type": "object",
2683
+ "description": "The computed price components",
2658
2684
  "additionalProperties": {
2659
2685
  "$ref": "#/components/schemas/ComputedBasePrice"
2660
2686
  }
@@ -2670,6 +2696,21 @@
2670
2696
  "description": "The computed total price as decimal",
2671
2697
  "type": "string"
2672
2698
  },
2699
+ "amount_static": {
2700
+ "description": "The computed static price",
2701
+ "type": "number"
2702
+ },
2703
+ "amount_static_decimal": {
2704
+ "description": "The computed static price as decimal"
2705
+ },
2706
+ "amount_variable": {
2707
+ "description": "The computed variable price",
2708
+ "type": "number"
2709
+ },
2710
+ "amount_variable_decimal": {
2711
+ "description": "The computed variable price as decimal",
2712
+ "type": "string"
2713
+ },
2673
2714
  "currency": {
2674
2715
  "description": "The currency of the computed price (three-letter ISO currency code)",
2675
2716
  "oneOf": [
@@ -2758,13 +2799,13 @@
2758
2799
  "description": "The street entity",
2759
2800
  "type": "object",
2760
2801
  "properties": {
2761
- "name": {
2802
+ "street": {
2762
2803
  "description": "The street name",
2763
2804
  "type": "string"
2764
2805
  }
2765
2806
  },
2766
2807
  "required": [
2767
- "name"
2808
+ "street"
2768
2809
  ]
2769
2810
  },
2770
2811
  "ValidateAvailabilityFileResult": {
@@ -3165,63 +3206,6 @@
3165
3206
  "amount_total_decimal"
3166
3207
  ]
3167
3208
  },
3168
- "Cart": {
3169
- "description": "Supports shopping for products and services until ready for checkout.",
3170
- "allOf": [
3171
- {
3172
- "$ref": "#/components/schemas/Amounts"
3173
- }
3174
- ],
3175
- "properties": {
3176
- "id": {
3177
- "type": "string",
3178
- "description": "The cart identifier"
3179
- },
3180
- "org_id": {
3181
- "type": "string",
3182
- "description": "The user's Organization Id the cart belongs to",
3183
- "readOnly": true
3184
- },
3185
- "status": {
3186
- "enum": [
3187
- "open",
3188
- "complete",
3189
- "expired"
3190
- ],
3191
- "type": "string",
3192
- "readOnly": true,
3193
- "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"
3194
- },
3195
- "customer": {
3196
- "$ref": "#/components/schemas/Customer"
3197
- },
3198
- "billing_address": {
3199
- "$ref": "#/components/schemas/Address"
3200
- },
3201
- "delivery_address": {
3202
- "$ref": "#/components/schemas/Address"
3203
- },
3204
- "metadata": {
3205
- "$ref": "#/components/schemas/MetaData"
3206
- },
3207
- "line_items": {
3208
- "$ref": "#/components/schemas/PriceItems"
3209
- },
3210
- "total_details": {
3211
- "$ref": "#/components/schemas/TotalDetails"
3212
- },
3213
- "created_at": {
3214
- "readOnly": true,
3215
- "type": "string",
3216
- "format": "date-time"
3217
- },
3218
- "updated_at": {
3219
- "readOnly": true,
3220
- "type": "string",
3221
- "format": "date-time"
3222
- }
3223
- }
3224
- },
3225
3209
  "Currency": {
3226
3210
  "type": "string",
3227
3211
  "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",
@@ -3616,48 +3600,6 @@
3616
3600
  "amount_total_decimal"
3617
3601
  ]
3618
3602
  },
3619
- "RecurrenceAmountWithTax": {
3620
- "type": "object",
3621
- "description": "An amount associated with a specific recurrence and tax.",
3622
- "readOnly": true,
3623
- "properties": {
3624
- "type": {
3625
- "type": "string",
3626
- "description": "The price type."
3627
- },
3628
- "billing_period": {
3629
- "type": "string",
3630
- "description": "The price billing period.",
3631
- "enum": [
3632
- "weekly",
3633
- "monthly",
3634
- "every_quarter",
3635
- "every_6_months",
3636
- "yearly"
3637
- ]
3638
- },
3639
- "amount_total": {
3640
- "type": "integer",
3641
- "description": "Total of all items after (discounts and) taxes are applied."
3642
- },
3643
- "amount_subtotal": {
3644
- "type": "integer",
3645
- "description": "Total of all items before (discounts or) taxes are applied."
3646
- },
3647
- "amount_tax": {
3648
- "type": "integer",
3649
- "description": "Total of all items taxes, with same recurrence."
3650
- },
3651
- "tax": {
3652
- "$ref": "#/components/schemas/TaxAmountBreakdown",
3653
- "description": "Tax"
3654
- }
3655
- },
3656
- "required": [
3657
- "amount_total",
3658
- "amount_subtotal"
3659
- ]
3660
- },
3661
3603
  "TotalDetails": {
3662
3604
  "type": "object",
3663
3605
  "description": "The total details with tax (and discount) aggregated totals.",
@@ -3696,63 +3638,11 @@
3696
3638
  }
3697
3639
  ]
3698
3640
  }
3699
- },
3700
- "recurrencesByTax": {
3701
- "type": "array",
3702
- "description": "The aggregated price items recurrences by tax rate.",
3703
- "items": {
3704
- "oneOf": [
3705
- {
3706
- "$ref": "#/components/schemas/RecurrenceAmountWithTax"
3707
- }
3708
- ]
3709
- }
3710
3641
  }
3711
3642
  }
3712
3643
  }
3713
3644
  }
3714
3645
  },
3715
- "PricingDetails": {
3716
- "type": "object",
3717
- "description": "The result from the calculation of a set of price items.",
3718
- "properties": {
3719
- "items": {
3720
- "type": "array",
3721
- "items": {
3722
- "oneOf": [
3723
- {
3724
- "$ref": "#/components/schemas/PriceItem"
3725
- },
3726
- {
3727
- "$ref": "#/components/schemas/CompositePriceItem"
3728
- }
3729
- ]
3730
- }
3731
- },
3732
- "amount_subtotal": {
3733
- "type": "integer",
3734
- "description": "Total of all items before (discounts or) taxes are applied."
3735
- },
3736
- "amount_total": {
3737
- "type": "integer",
3738
- "description": "Total of all items after (discounts and) taxes are applied."
3739
- },
3740
- "unit_amount_gross": {
3741
- "type": "integer",
3742
- "description": "The unit gross amount value."
3743
- },
3744
- "amount_tax": {
3745
- "type": "integer",
3746
- "description": "This is the sum of all the price item tax amounts."
3747
- },
3748
- "total_details": {
3749
- "$ref": "#/components/schemas/TotalDetails"
3750
- },
3751
- "currency": {
3752
- "$ref": "#/components/schemas/Currency"
3753
- }
3754
- }
3755
- },
3756
3646
  "BillingPeriod": {
3757
3647
  "type": "string",
3758
3648
  "enum": [
@@ -3796,23 +3686,6 @@
3796
3686
  }
3797
3687
  }
3798
3688
  },
3799
- "AvailabilityDate": {
3800
- "type": "object",
3801
- "properties": {
3802
- "available_start_date": {
3803
- "type": "string",
3804
- "format": "date",
3805
- "description": "The availability interval start date",
3806
- "example": "2017-07-21"
3807
- },
3808
- "available_end_date": {
3809
- "type": "string",
3810
- "format": "date",
3811
- "description": "The availability interval end date",
3812
- "example": "2017-07-21"
3813
- }
3814
- }
3815
- },
3816
3689
  "AvailabilityFilters": {
3817
3690
  "description": "Availability filters dimensions",
3818
3691
  "type": "object",
@@ -4016,58 +3889,6 @@
4016
3889
  "type": "string",
4017
3890
  "format": "uuid"
4018
3891
  },
4019
- "EntityItem": {
4020
- "type": "object",
4021
- "properties": {
4022
- "_id": {
4023
- "$ref": "#/components/schemas/EntityId"
4024
- },
4025
- "_title": {
4026
- "type": "string",
4027
- "description": "Title of entity"
4028
- },
4029
- "_org": {
4030
- "type": "string",
4031
- "description": "Organization Id the entity belongs to"
4032
- },
4033
- "_schema": {
4034
- "type": "string"
4035
- },
4036
- "_tags": {
4037
- "type": "array",
4038
- "items": {
4039
- "type": "string"
4040
- }
4041
- },
4042
- "_created_at": {
4043
- "type": "string",
4044
- "format": "date-time"
4045
- },
4046
- "_updated_at": {
4047
- "type": "string",
4048
- "format": "date-time"
4049
- }
4050
- },
4051
- "required": [
4052
- "_id",
4053
- "_title",
4054
- "_org",
4055
- "_schema",
4056
- "_created_at",
4057
- "_updated_at"
4058
- ],
4059
- "example": {
4060
- "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
4061
- "_org": "123",
4062
- "_schema": "contact",
4063
- "_tags": [
4064
- "example",
4065
- "mock"
4066
- ],
4067
- "_created_at": "2021-02-09T12:41:43.662Z",
4068
- "_updated_at": "2021-02-09T12:41:43.662Z"
4069
- }
4070
- },
4071
3892
  "EntityRelation": {
4072
3893
  "type": "object",
4073
3894
  "additionalProperties": true,
@@ -4219,12 +4040,6 @@
4219
4040
  }
4220
4041
  },
4221
4042
  "examples": {
4222
- "checkout-with-cart-id": {
4223
- "value": {
4224
- "mode": "create_order",
4225
- "cart": "pZ324jnndf"
4226
- }
4227
- },
4228
4043
  "checkout-with-transient-cart": {
4229
4044
  "value": {
4230
4045
  "mode": "create_order",
@@ -4918,448 +4733,6 @@
4918
4733
  "_updated_at": "2022-06-03T16:29:46.303Z"
4919
4734
  }
4920
4735
  },
4921
- "order-with-simple-prices-request": {
4922
- "value": {
4923
- "order_number": "OR 2022/742701",
4924
- "status": "quote",
4925
- "source": {
4926
- "title": "manual",
4927
- "href": null
4928
- },
4929
- "source_type": "manual",
4930
- "_schema": "order",
4931
- "_title": "OR 2022/742701",
4932
- "expires_at": "2022-06-30T16:17:00.000Z",
4933
- "line_items": [
4934
- {
4935
- "price_id": "9c36c23b-1574-4193-beff-b1b5e1124bc7",
4936
- "product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
4937
- "quantity": 16
4938
- },
4939
- {
4940
- "price_id": "146aa2cc-f267-4d5e-bda4-cbe2669b7741",
4941
- "product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
4942
- "quantity": 4
4943
- },
4944
- {
4945
- "price_id": "d88a8763-3e3d-4fc7-a7a5-2bc9117148bf",
4946
- "product_id": "065d6618-cc59-45f4-8e3a-700edf6813c3",
4947
- "quantity": 1
4948
- },
4949
- {
4950
- "price_id": "e1ddf75a-d0d1-40b4-a07e-56e292867c88",
4951
- "product_id": "5b9f05b7-f0f8-49c2-8a8d-0f8f923d6382",
4952
- "quantity": 1
4953
- }
4954
- ],
4955
- "currency": "EUR",
4956
- "payment_method": [
4957
- {
4958
- "type": "IBAN",
4959
- "details": {}
4960
- }
4961
- ],
4962
- "billing_contact": {
4963
- "$relation": [
4964
- {
4965
- "entity_id": "1834a54e-b68f-4f7f-a98a-fe16f11bc2a5",
4966
- "_tags": []
4967
- }
4968
- ]
4969
- },
4970
- "billing_first_name": "Joao",
4971
- "billing_last_name": "Pinho",
4972
- "billing_email": "j.pinho@epilot.cloud",
4973
- "billing_company_name": "epilot cloud",
4974
- "billing_address": [
4975
- {
4976
- "_tags": [],
4977
- "street": "Im Media Park",
4978
- "street_number": "8a",
4979
- "postal_code": "52000",
4980
- "city": "Cologne",
4981
- "country": "DE",
4982
- "additional_info": ""
4983
- }
4984
- ],
4985
- "delivery_address": [],
4986
- "dates": [
4987
- {
4988
- "_tags": [
4989
- "Instalation Date"
4990
- ],
4991
- "dates": "",
4992
- "value": "2022-06-30T16:29:00.000Z"
4993
- }
4994
- ],
4995
- "_id": "4c7c9562-f8f0-4af0-a3a6-6aebc5571a6e",
4996
- "_org": "728",
4997
- "_created_at": "2022-06-03T16:29:46.303Z",
4998
- "_updated_at": "2022-06-03T16:29:46.303Z"
4999
- }
5000
- },
5001
- "order-with-composite-prices": {
5002
- "value": {
5003
- "metadata": [
5004
- {
5005
- "key": "_origin",
5006
- "value": "journey checkout"
5007
- }
5008
- ],
5009
- "_tags": [
5010
- "journey",
5011
- "automation"
5012
- ],
5013
- "status": "quote",
5014
- "order_number": "OREabZxnO",
5015
- "billing_first_name": "Paulo",
5016
- "billing_last_name": "Henriques",
5017
- "billing_email": "ph@ph1.pt",
5018
- "billing_address": [
5019
- {
5020
- "street": "Bernauer Str.",
5021
- "street_number": "1",
5022
- "city": "Berlin",
5023
- "postal_code": "10115",
5024
- "country": "DE",
5025
- "additional_info": "1"
5026
- }
5027
- ],
5028
- "delivery_address": [
5029
- {
5030
- "street": "Bernauer Str.",
5031
- "street_number": "1",
5032
- "city": "Berlin",
5033
- "postal_code": "10115",
5034
- "country": "DE",
5035
- "additional_info": "1"
5036
- }
5037
- ],
5038
- "payment_method": [
5039
- {
5040
- "type": "BankTransfer",
5041
- "details": {
5042
- "label": "Überweisung"
5043
- }
5044
- }
5045
- ],
5046
- "currency": "EUR",
5047
- "line_items": [
5048
- {
5049
- "product_id": "73f857a4-0fbc-4aa6-983f-87c0d6d410a6",
5050
- "price_id": "c2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5051
- "quantity": 3,
5052
- "currency": "EUR",
5053
- "item_components": [
5054
- {
5055
- "price_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5056
- "product_id": "target-price-product-id",
5057
- "quantity": 3,
5058
- "unit_amount": 15000,
5059
- "unit_amount_currency": "EUR",
5060
- "unit_amount_decimal": "150.00",
5061
- "amount_subtotal": 45000,
5062
- "amount_total": 47700,
5063
- "taxes": [
5064
- {
5065
- "tax": {
5066
- "_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
5067
- "type": "VAT",
5068
- "active": true,
5069
- "region": "DE",
5070
- "_schema": "tax",
5071
- "_title": "Tax Without Behaviour",
5072
- "description": "Without Behaviour",
5073
- "rate": "6",
5074
- "_org": "739224",
5075
- "_created_at": "2022-02-07T14:49:08.831Z",
5076
- "_updated_at": "2022-02-07T14:49:08.831Z"
5077
- },
5078
- "amount": 2700
5079
- }
5080
- ]
5081
- },
5082
- {
5083
- "price_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5084
- "product_id": "target-price-product-id",
5085
- "quantity": 3,
5086
- "unit_amount": 15000,
5087
- "unit_amount_currency": "EUR",
5088
- "unit_amount_decimal": "150.00",
5089
- "amount_subtotal": 45000,
5090
- "amount_total": 47700,
5091
- "taxes": [
5092
- {
5093
- "tax": {
5094
- "_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
5095
- "type": "VAT",
5096
- "active": true,
5097
- "region": "DE",
5098
- "_schema": "tax",
5099
- "_title": "Tax Without Behaviour",
5100
- "description": "Without Behaviour",
5101
- "rate": 6,
5102
- "_org": "739224",
5103
- "_created_at": "2022-02-07T14:49:08.831Z",
5104
- "_updated_at": "2022-02-07T14:49:08.831Z"
5105
- },
5106
- "amount": 2700
5107
- }
5108
- ]
5109
- }
5110
- ],
5111
- "_price": {
5112
- "_id": "c2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5113
- "_schema": "price",
5114
- "_title": "Test 1",
5115
- "description": "Test 1",
5116
- "_org": "739224",
5117
- "_created_at": "2022-02-18T10:10:26.439Z",
5118
- "_updated_at": "2022-02-18T11:53:04.191Z",
5119
- "active": true,
5120
- "price_components": {
5121
- "$relation": [
5122
- {
5123
- "entity_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5124
- "_schema": "price",
5125
- "_product_id": "target-price-product-id",
5126
- "quantity": 1,
5127
- "item": {
5128
- "_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5129
- "unit_amount": 10000,
5130
- "unit_amount_currency": "EUR",
5131
- "unit_amount_decimal": "100.00",
5132
- "sales_tax": "standard",
5133
- "price_display_in_journeys": "show_price",
5134
- "type": "one_time",
5135
- "_schema": "price",
5136
- "_title": "Test 1",
5137
- "description": "Test 1",
5138
- "tax": {
5139
- "$relation": [
5140
- {
5141
- "entity_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4"
5142
- }
5143
- ]
5144
- },
5145
- "_org": "739224",
5146
- "_created_at": "2022-02-18T10:10:26.439Z",
5147
- "_updated_at": "2022-02-18T11:53:04.191Z",
5148
- "active": true,
5149
- "billing_period": "weekly",
5150
- "billing_duration_unit": "months",
5151
- "notice_time_unit": "months",
5152
- "termination_time_unit": "months",
5153
- "renewal_duration_unit": "months"
5154
- }
5155
- },
5156
- {
5157
- "entity_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5158
- "_schema": "price",
5159
- "_product_id": "target-price-product-id",
5160
- "quantity": 2,
5161
- "item": {
5162
- "_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5163
- "unit_amount": 10000,
5164
- "unit_amount_currency": "EUR",
5165
- "unit_amount_decimal": "100.00",
5166
- "sales_tax": "standard",
5167
- "is_tax_inclusive": false,
5168
- "price_display_in_journeys": "show_price",
5169
- "type": "one_time",
5170
- "_schema": "price",
5171
- "_title": "Test 1",
5172
- "description": "Test 1",
5173
- "tax": {
5174
- "$relation": [
5175
- {
5176
- "entity_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4"
5177
- }
5178
- ]
5179
- },
5180
- "_org": "739224",
5181
- "_created_at": "2022-02-18T10:10:26.439Z",
5182
- "_updated_at": "2022-02-18T11:53:04.191Z",
5183
- "active": true,
5184
- "billing_period": "weekly",
5185
- "billing_duration_unit": "months",
5186
- "notice_time_unit": "months",
5187
- "termination_time_unit": "months",
5188
- "renewal_duration_unit": "months"
5189
- }
5190
- }
5191
- ]
5192
- }
5193
- },
5194
- "_product": {
5195
- "_id": "73f857a4-0fbc-4aa6-983f-87c0d6d410a6",
5196
- "type": "product",
5197
- "name": "Cool box",
5198
- "_title": "Cool box"
5199
- },
5200
- "description": "Price Component",
5201
- "unit_amount": 90000,
5202
- "amount_subtotal": 270000,
5203
- "amount_total": 286200
5204
- },
5205
- {
5206
- "price_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
5207
- "product_id": "11bd46e5-4c02-425c-bcce-5f5e022a2b45",
5208
- "taxes": [
5209
- {
5210
- "tax": null,
5211
- "amount": 0
5212
- }
5213
- ],
5214
- "_price": {
5215
- "_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
5216
- "unit_amount": 55566677,
5217
- "unit_amount_currency": "EUR",
5218
- "unit_amount_decimal": "555666.77",
5219
- "sales_tax": "standard",
5220
- "is_tax_inclusive": true,
5221
- "price_display_in_journeys": "show_as_starting_price",
5222
- "type": "one_time",
5223
- "_schema": "price",
5224
- "_title": "As Starting Price One Time No Tax",
5225
- "description": "As Starting Price One Time No Tax",
5226
- "tax": null,
5227
- "active": true,
5228
- "_org": "739224",
5229
- "_created_at": "2022-04-14T16:12:34.456Z",
5230
- "_updated_at": "2022-04-14T16:13:47.261Z",
5231
- "billing_period": "weekly",
5232
- "billing_duration_unit": "months",
5233
- "notice_time_unit": "months",
5234
- "termination_time_unit": "months",
5235
- "renewal_duration_unit": "months"
5236
- },
5237
- "_product": {
5238
- "_id": "11bd46e5-4c02-425c-bcce-5f5e022a2b45",
5239
- "type": "product",
5240
- "_schema": "product",
5241
- "_title": "Product With A Lot Of Prices - Do Not Change 🙏",
5242
- "name": "Product With A Lot Of Prices - Do Not Change 🙏",
5243
- "_org": "739224",
5244
- "_created_at": "2022-04-14T16:08:08.595Z",
5245
- "_updated_at": "2022-04-18T16:26:33.089Z",
5246
- "price_options": {
5247
- "$relation": [
5248
- {
5249
- "entity_id": "f850ebff-082e-4924-8631-965cc9c0ab2b",
5250
- "_tags": []
5251
- },
5252
- {
5253
- "entity_id": "d6ecc576-b5d6-44b4-8c95-496ab2ac14d3",
5254
- "_tags": []
5255
- },
5256
- {
5257
- "entity_id": "3c0e47ad-6ca3-4cd8-b6b4-b2a48dab7f16",
5258
- "_tags": []
5259
- },
5260
- {
5261
- "entity_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
5262
- "_tags": []
5263
- },
5264
- {
5265
- "entity_id": "3e97f809-1d4b-47e1-9faf-46386b2b0d21",
5266
- "_tags": []
5267
- },
5268
- {
5269
- "entity_id": "d4061656-71dc-45ec-bf6c-1d90d2419d87",
5270
- "_tags": []
5271
- },
5272
- {
5273
- "entity_id": "4ae4221b-4fd0-4bcc-98a2-f20cda954903",
5274
- "_tags": []
5275
- },
5276
- {
5277
- "entity_id": "b326df19-9d0f-433a-a4d2-a0a65034b5f7",
5278
- "_tags": []
5279
- },
5280
- {
5281
- "entity_id": "0d071551-47be-4a5b-90d7-d425a59607e6",
5282
- "_tags": []
5283
- }
5284
- ]
5285
- },
5286
- "_files": {
5287
- "$relation": [
5288
- {
5289
- "entity_id": "27cc0710-651d-48dc-9624-9d1d3057d025",
5290
- "_tags": []
5291
- },
5292
- {
5293
- "entity_id": "8530678c-d4cb-4e27-b314-16a79d6c0abc",
5294
- "_tags": []
5295
- },
5296
- {
5297
- "entity_id": "714d6253-213f-4e30-8caf-00b0d11032e4",
5298
- "_tags": []
5299
- },
5300
- {
5301
- "entity_id": "2218a8f8-c6e2-4a98-a2fe-030ed78ebfa7",
5302
- "_tags": []
5303
- }
5304
- ]
5305
- }
5306
- },
5307
- "quantity": 7,
5308
- "currency": "EUR",
5309
- "description": "As Starting Price One Time No Tax",
5310
- "unit_amount": 55566677,
5311
- "amount_subtotal": 388966739,
5312
- "amount_total": 388966739
5313
- }
5314
- ],
5315
- "amount_subtotal": 389236739,
5316
- "amount_total": 389252939,
5317
- "total_details": {
5318
- "amount_tax": 5400,
5319
- "breakdown": {
5320
- "taxes": [
5321
- {
5322
- "tax": {
5323
- "_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
5324
- "type": "VAT",
5325
- "active": true,
5326
- "region": "DE",
5327
- "_schema": "tax",
5328
- "_title": "Tax Without Behaviour",
5329
- "description": "Without Behaviour",
5330
- "rate": 6,
5331
- "_org": "739224",
5332
- "_created_at": "2022-02-07T14:49:08.831Z",
5333
- "_updated_at": "2022-02-07T14:49:08.831Z"
5334
- },
5335
- "amount": 5400
5336
- }
5337
- ],
5338
- "recurrences": [
5339
- {
5340
- "type": "one_time",
5341
- "amount_subtotal": 389236739,
5342
- "amount_total": 389252939,
5343
- "amount_tax": 5400
5344
- }
5345
- ]
5346
- }
5347
- },
5348
- "_schema": "order",
5349
- "_id": "78ac88ae-d7df-4a1e-a26b-acaf089abfb2",
5350
- "_org": "739224",
5351
- "_created_at": "2022-04-19T08:19:29.816Z",
5352
- "_updated_at": "2022-04-20T16:15:48.759Z",
5353
- "_title": "OREabZxnO",
5354
- "customer": {
5355
- "$relation": [
5356
- {
5357
- "entity_id": "bb986d50-f403-477c-9d9c-726f8fd6d155"
5358
- }
5359
- ]
5360
- }
5361
- }
5362
- },
5363
4736
  "opportunity": {
5364
4737
  "value": {
5365
4738
  "opportunity_number": "OP 2022/335790",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.17.9",
3
+ "version": "3.18.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",