@epilot/pricing-client 3.18.0 → 3.18.2

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,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:
@@ -2535,6 +2668,35 @@ declare namespace Components {
2535
2668
  */
2536
2669
  amount_tax?: number;
2537
2670
  }
2671
+ /**
2672
+ * An amount associated with a specific recurrence.
2673
+ */
2674
+ export interface RecurrenceAmountWithTax {
2675
+ /**
2676
+ * The price type.
2677
+ */
2678
+ type?: string;
2679
+ /**
2680
+ * The price billing period.
2681
+ */
2682
+ billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
2683
+ /**
2684
+ * Total amount of items with same recurrence.
2685
+ */
2686
+ amount_total?: number;
2687
+ /**
2688
+ * Total amount of items with same recurrence, excluding taxes.
2689
+ */
2690
+ amount_subtotal?: number;
2691
+ /**
2692
+ * Total tax amount of items with same recurrence.
2693
+ */
2694
+ amount_tax?: number;
2695
+ /**
2696
+ * The taxes applied to the price item.
2697
+ */
2698
+ tax?: (/* A tax amount associated with a specific tax rate. */ TaxAmount)[];
2699
+ }
2538
2700
  export type SalesTax = "nontaxable" | "reduced" | "standard";
2539
2701
  export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
2540
2702
  /**
@@ -2759,6 +2921,10 @@ declare namespace Components {
2759
2921
  */
2760
2922
  recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
2761
2923
  };
2924
+ /**
2925
+ * The aggregated price items recurrences by tax rate
2926
+ */
2927
+ recurrencesByTax?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountWithTax)[];
2762
2928
  }
2763
2929
  /**
2764
2930
  * The availability rule error
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",
@@ -3600,6 +3654,51 @@
3600
3654
  "amount_total_decimal"
3601
3655
  ]
3602
3656
  },
3657
+ "RecurrenceAmountWithTax": {
3658
+ "type": "object",
3659
+ "description": "An amount associated with a specific recurrence.",
3660
+ "properties": {
3661
+ "type": {
3662
+ "type": "string",
3663
+ "description": "The price type."
3664
+ },
3665
+ "billing_period": {
3666
+ "type": "string",
3667
+ "description": "The price billing period.",
3668
+ "enum": [
3669
+ "weekly",
3670
+ "monthly",
3671
+ "every_quarter",
3672
+ "every_6_months",
3673
+ "yearly"
3674
+ ]
3675
+ },
3676
+ "amount_total": {
3677
+ "type": "integer",
3678
+ "description": "Total amount of items with same recurrence."
3679
+ },
3680
+ "amount_subtotal": {
3681
+ "type": "integer",
3682
+ "description": "Total amount of items with same recurrence, excluding taxes."
3683
+ },
3684
+ "amount_tax": {
3685
+ "type": "integer",
3686
+ "description": "Total tax amount of items with same recurrence."
3687
+ },
3688
+ "tax": {
3689
+ "type": "array",
3690
+ "description": "The taxes applied to the price item.",
3691
+ "readOnly": true,
3692
+ "items": {
3693
+ "oneOf": [
3694
+ {
3695
+ "$ref": "#/components/schemas/TaxAmount"
3696
+ }
3697
+ ]
3698
+ }
3699
+ }
3700
+ }
3701
+ },
3603
3702
  "TotalDetails": {
3604
3703
  "type": "object",
3605
3704
  "description": "The total details with tax (and discount) aggregated totals.",
@@ -3640,6 +3739,58 @@
3640
3739
  }
3641
3740
  }
3642
3741
  }
3742
+ },
3743
+ "recurrencesByTax": {
3744
+ "type": "array",
3745
+ "description": "The aggregated price items recurrences by tax rate",
3746
+ "items": {
3747
+ "oneOf": [
3748
+ {
3749
+ "$ref": "#/components/schemas/RecurrenceAmountWithTax"
3750
+ }
3751
+ ]
3752
+ }
3753
+ }
3754
+ }
3755
+ },
3756
+ "PricingDetails": {
3757
+ "type": "object",
3758
+ "description": "The result from the calculation of a set of price items.",
3759
+ "properties": {
3760
+ "items": {
3761
+ "type": "array",
3762
+ "items": {
3763
+ "oneOf": [
3764
+ {
3765
+ "$ref": "#/components/schemas/PriceItem"
3766
+ },
3767
+ {
3768
+ "$ref": "#/components/schemas/CompositePriceItem"
3769
+ }
3770
+ ]
3771
+ }
3772
+ },
3773
+ "amount_subtotal": {
3774
+ "type": "integer",
3775
+ "description": "Total of all items before (discounts or) taxes are applied."
3776
+ },
3777
+ "amount_total": {
3778
+ "type": "integer",
3779
+ "description": "Total of all items after (discounts and) taxes are applied."
3780
+ },
3781
+ "unit_amount_gross": {
3782
+ "type": "integer",
3783
+ "description": "The unit gross amount value."
3784
+ },
3785
+ "amount_tax": {
3786
+ "type": "integer",
3787
+ "description": "This is the sum of all the price item tax amounts."
3788
+ },
3789
+ "total_details": {
3790
+ "$ref": "#/components/schemas/TotalDetails"
3791
+ },
3792
+ "currency": {
3793
+ "$ref": "#/components/schemas/Currency"
3643
3794
  }
3644
3795
  }
3645
3796
  },
@@ -3686,6 +3837,23 @@
3686
3837
  }
3687
3838
  }
3688
3839
  },
3840
+ "AvailabilityDate": {
3841
+ "type": "object",
3842
+ "properties": {
3843
+ "available_start_date": {
3844
+ "type": "string",
3845
+ "format": "date",
3846
+ "description": "The availability interval start date",
3847
+ "example": "2017-07-21"
3848
+ },
3849
+ "available_end_date": {
3850
+ "type": "string",
3851
+ "format": "date",
3852
+ "description": "The availability interval end date",
3853
+ "example": "2017-07-21"
3854
+ }
3855
+ }
3856
+ },
3689
3857
  "AvailabilityFilters": {
3690
3858
  "description": "Availability filters dimensions",
3691
3859
  "type": "object",
@@ -3889,6 +4057,58 @@
3889
4057
  "type": "string",
3890
4058
  "format": "uuid"
3891
4059
  },
4060
+ "EntityItem": {
4061
+ "type": "object",
4062
+ "properties": {
4063
+ "_id": {
4064
+ "$ref": "#/components/schemas/EntityId"
4065
+ },
4066
+ "_title": {
4067
+ "type": "string",
4068
+ "description": "Title of entity"
4069
+ },
4070
+ "_org": {
4071
+ "type": "string",
4072
+ "description": "Organization Id the entity belongs to"
4073
+ },
4074
+ "_schema": {
4075
+ "type": "string"
4076
+ },
4077
+ "_tags": {
4078
+ "type": "array",
4079
+ "items": {
4080
+ "type": "string"
4081
+ }
4082
+ },
4083
+ "_created_at": {
4084
+ "type": "string",
4085
+ "format": "date-time"
4086
+ },
4087
+ "_updated_at": {
4088
+ "type": "string",
4089
+ "format": "date-time"
4090
+ }
4091
+ },
4092
+ "required": [
4093
+ "_id",
4094
+ "_title",
4095
+ "_org",
4096
+ "_schema",
4097
+ "_created_at",
4098
+ "_updated_at"
4099
+ ],
4100
+ "example": {
4101
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
4102
+ "_org": "123",
4103
+ "_schema": "contact",
4104
+ "_tags": [
4105
+ "example",
4106
+ "mock"
4107
+ ],
4108
+ "_created_at": "2021-02-09T12:41:43.662Z",
4109
+ "_updated_at": "2021-02-09T12:41:43.662Z"
4110
+ }
4111
+ },
3892
4112
  "EntityRelation": {
3893
4113
  "type": "object",
3894
4114
  "additionalProperties": true,
@@ -4040,6 +4260,12 @@
4040
4260
  }
4041
4261
  },
4042
4262
  "examples": {
4263
+ "checkout-with-cart-id": {
4264
+ "value": {
4265
+ "mode": "create_order",
4266
+ "cart": "pZ324jnndf"
4267
+ }
4268
+ },
4043
4269
  "checkout-with-transient-cart": {
4044
4270
  "value": {
4045
4271
  "mode": "create_order",
@@ -4733,6 +4959,448 @@
4733
4959
  "_updated_at": "2022-06-03T16:29:46.303Z"
4734
4960
  }
4735
4961
  },
4962
+ "order-with-simple-prices-request": {
4963
+ "value": {
4964
+ "order_number": "OR 2022/742701",
4965
+ "status": "quote",
4966
+ "source": {
4967
+ "title": "manual",
4968
+ "href": null
4969
+ },
4970
+ "source_type": "manual",
4971
+ "_schema": "order",
4972
+ "_title": "OR 2022/742701",
4973
+ "expires_at": "2022-06-30T16:17:00.000Z",
4974
+ "line_items": [
4975
+ {
4976
+ "price_id": "9c36c23b-1574-4193-beff-b1b5e1124bc7",
4977
+ "product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
4978
+ "quantity": 16
4979
+ },
4980
+ {
4981
+ "price_id": "146aa2cc-f267-4d5e-bda4-cbe2669b7741",
4982
+ "product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
4983
+ "quantity": 4
4984
+ },
4985
+ {
4986
+ "price_id": "d88a8763-3e3d-4fc7-a7a5-2bc9117148bf",
4987
+ "product_id": "065d6618-cc59-45f4-8e3a-700edf6813c3",
4988
+ "quantity": 1
4989
+ },
4990
+ {
4991
+ "price_id": "e1ddf75a-d0d1-40b4-a07e-56e292867c88",
4992
+ "product_id": "5b9f05b7-f0f8-49c2-8a8d-0f8f923d6382",
4993
+ "quantity": 1
4994
+ }
4995
+ ],
4996
+ "currency": "EUR",
4997
+ "payment_method": [
4998
+ {
4999
+ "type": "IBAN",
5000
+ "details": {}
5001
+ }
5002
+ ],
5003
+ "billing_contact": {
5004
+ "$relation": [
5005
+ {
5006
+ "entity_id": "1834a54e-b68f-4f7f-a98a-fe16f11bc2a5",
5007
+ "_tags": []
5008
+ }
5009
+ ]
5010
+ },
5011
+ "billing_first_name": "Joao",
5012
+ "billing_last_name": "Pinho",
5013
+ "billing_email": "j.pinho@epilot.cloud",
5014
+ "billing_company_name": "epilot cloud",
5015
+ "billing_address": [
5016
+ {
5017
+ "_tags": [],
5018
+ "street": "Im Media Park",
5019
+ "street_number": "8a",
5020
+ "postal_code": "52000",
5021
+ "city": "Cologne",
5022
+ "country": "DE",
5023
+ "additional_info": ""
5024
+ }
5025
+ ],
5026
+ "delivery_address": [],
5027
+ "dates": [
5028
+ {
5029
+ "_tags": [
5030
+ "Instalation Date"
5031
+ ],
5032
+ "dates": "",
5033
+ "value": "2022-06-30T16:29:00.000Z"
5034
+ }
5035
+ ],
5036
+ "_id": "4c7c9562-f8f0-4af0-a3a6-6aebc5571a6e",
5037
+ "_org": "728",
5038
+ "_created_at": "2022-06-03T16:29:46.303Z",
5039
+ "_updated_at": "2022-06-03T16:29:46.303Z"
5040
+ }
5041
+ },
5042
+ "order-with-composite-prices": {
5043
+ "value": {
5044
+ "metadata": [
5045
+ {
5046
+ "key": "_origin",
5047
+ "value": "journey checkout"
5048
+ }
5049
+ ],
5050
+ "_tags": [
5051
+ "journey",
5052
+ "automation"
5053
+ ],
5054
+ "status": "quote",
5055
+ "order_number": "OREabZxnO",
5056
+ "billing_first_name": "Paulo",
5057
+ "billing_last_name": "Henriques",
5058
+ "billing_email": "ph@ph1.pt",
5059
+ "billing_address": [
5060
+ {
5061
+ "street": "Bernauer Str.",
5062
+ "street_number": "1",
5063
+ "city": "Berlin",
5064
+ "postal_code": "10115",
5065
+ "country": "DE",
5066
+ "additional_info": "1"
5067
+ }
5068
+ ],
5069
+ "delivery_address": [
5070
+ {
5071
+ "street": "Bernauer Str.",
5072
+ "street_number": "1",
5073
+ "city": "Berlin",
5074
+ "postal_code": "10115",
5075
+ "country": "DE",
5076
+ "additional_info": "1"
5077
+ }
5078
+ ],
5079
+ "payment_method": [
5080
+ {
5081
+ "type": "BankTransfer",
5082
+ "details": {
5083
+ "label": "Überweisung"
5084
+ }
5085
+ }
5086
+ ],
5087
+ "currency": "EUR",
5088
+ "line_items": [
5089
+ {
5090
+ "product_id": "73f857a4-0fbc-4aa6-983f-87c0d6d410a6",
5091
+ "price_id": "c2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5092
+ "quantity": 3,
5093
+ "currency": "EUR",
5094
+ "item_components": [
5095
+ {
5096
+ "price_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5097
+ "product_id": "target-price-product-id",
5098
+ "quantity": 3,
5099
+ "unit_amount": 15000,
5100
+ "unit_amount_currency": "EUR",
5101
+ "unit_amount_decimal": "150.00",
5102
+ "amount_subtotal": 45000,
5103
+ "amount_total": 47700,
5104
+ "taxes": [
5105
+ {
5106
+ "tax": {
5107
+ "_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
5108
+ "type": "VAT",
5109
+ "active": true,
5110
+ "region": "DE",
5111
+ "_schema": "tax",
5112
+ "_title": "Tax Without Behaviour",
5113
+ "description": "Without Behaviour",
5114
+ "rate": "6",
5115
+ "_org": "739224",
5116
+ "_created_at": "2022-02-07T14:49:08.831Z",
5117
+ "_updated_at": "2022-02-07T14:49:08.831Z"
5118
+ },
5119
+ "amount": 2700
5120
+ }
5121
+ ]
5122
+ },
5123
+ {
5124
+ "price_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5125
+ "product_id": "target-price-product-id",
5126
+ "quantity": 3,
5127
+ "unit_amount": 15000,
5128
+ "unit_amount_currency": "EUR",
5129
+ "unit_amount_decimal": "150.00",
5130
+ "amount_subtotal": 45000,
5131
+ "amount_total": 47700,
5132
+ "taxes": [
5133
+ {
5134
+ "tax": {
5135
+ "_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
5136
+ "type": "VAT",
5137
+ "active": true,
5138
+ "region": "DE",
5139
+ "_schema": "tax",
5140
+ "_title": "Tax Without Behaviour",
5141
+ "description": "Without Behaviour",
5142
+ "rate": 6,
5143
+ "_org": "739224",
5144
+ "_created_at": "2022-02-07T14:49:08.831Z",
5145
+ "_updated_at": "2022-02-07T14:49:08.831Z"
5146
+ },
5147
+ "amount": 2700
5148
+ }
5149
+ ]
5150
+ }
5151
+ ],
5152
+ "_price": {
5153
+ "_id": "c2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5154
+ "_schema": "price",
5155
+ "_title": "Test 1",
5156
+ "description": "Test 1",
5157
+ "_org": "739224",
5158
+ "_created_at": "2022-02-18T10:10:26.439Z",
5159
+ "_updated_at": "2022-02-18T11:53:04.191Z",
5160
+ "active": true,
5161
+ "price_components": {
5162
+ "$relation": [
5163
+ {
5164
+ "entity_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5165
+ "_schema": "price",
5166
+ "_product_id": "target-price-product-id",
5167
+ "quantity": 1,
5168
+ "item": {
5169
+ "_id": "comp1-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5170
+ "unit_amount": 10000,
5171
+ "unit_amount_currency": "EUR",
5172
+ "unit_amount_decimal": "100.00",
5173
+ "sales_tax": "standard",
5174
+ "price_display_in_journeys": "show_price",
5175
+ "type": "one_time",
5176
+ "_schema": "price",
5177
+ "_title": "Test 1",
5178
+ "description": "Test 1",
5179
+ "tax": {
5180
+ "$relation": [
5181
+ {
5182
+ "entity_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4"
5183
+ }
5184
+ ]
5185
+ },
5186
+ "_org": "739224",
5187
+ "_created_at": "2022-02-18T10:10:26.439Z",
5188
+ "_updated_at": "2022-02-18T11:53:04.191Z",
5189
+ "active": true,
5190
+ "billing_period": "weekly",
5191
+ "billing_duration_unit": "months",
5192
+ "notice_time_unit": "months",
5193
+ "termination_time_unit": "months",
5194
+ "renewal_duration_unit": "months"
5195
+ }
5196
+ },
5197
+ {
5198
+ "entity_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5199
+ "_schema": "price",
5200
+ "_product_id": "target-price-product-id",
5201
+ "quantity": 2,
5202
+ "item": {
5203
+ "_id": "comp2-2a95ca9-7a50-41a4-a73c-b5fb1a57d40f",
5204
+ "unit_amount": 10000,
5205
+ "unit_amount_currency": "EUR",
5206
+ "unit_amount_decimal": "100.00",
5207
+ "sales_tax": "standard",
5208
+ "is_tax_inclusive": false,
5209
+ "price_display_in_journeys": "show_price",
5210
+ "type": "one_time",
5211
+ "_schema": "price",
5212
+ "_title": "Test 1",
5213
+ "description": "Test 1",
5214
+ "tax": {
5215
+ "$relation": [
5216
+ {
5217
+ "entity_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4"
5218
+ }
5219
+ ]
5220
+ },
5221
+ "_org": "739224",
5222
+ "_created_at": "2022-02-18T10:10:26.439Z",
5223
+ "_updated_at": "2022-02-18T11:53:04.191Z",
5224
+ "active": true,
5225
+ "billing_period": "weekly",
5226
+ "billing_duration_unit": "months",
5227
+ "notice_time_unit": "months",
5228
+ "termination_time_unit": "months",
5229
+ "renewal_duration_unit": "months"
5230
+ }
5231
+ }
5232
+ ]
5233
+ }
5234
+ },
5235
+ "_product": {
5236
+ "_id": "73f857a4-0fbc-4aa6-983f-87c0d6d410a6",
5237
+ "type": "product",
5238
+ "name": "Cool box",
5239
+ "_title": "Cool box"
5240
+ },
5241
+ "description": "Price Component",
5242
+ "unit_amount": 90000,
5243
+ "amount_subtotal": 270000,
5244
+ "amount_total": 286200
5245
+ },
5246
+ {
5247
+ "price_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
5248
+ "product_id": "11bd46e5-4c02-425c-bcce-5f5e022a2b45",
5249
+ "taxes": [
5250
+ {
5251
+ "tax": null,
5252
+ "amount": 0
5253
+ }
5254
+ ],
5255
+ "_price": {
5256
+ "_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
5257
+ "unit_amount": 55566677,
5258
+ "unit_amount_currency": "EUR",
5259
+ "unit_amount_decimal": "555666.77",
5260
+ "sales_tax": "standard",
5261
+ "is_tax_inclusive": true,
5262
+ "price_display_in_journeys": "show_as_starting_price",
5263
+ "type": "one_time",
5264
+ "_schema": "price",
5265
+ "_title": "As Starting Price One Time No Tax",
5266
+ "description": "As Starting Price One Time No Tax",
5267
+ "tax": null,
5268
+ "active": true,
5269
+ "_org": "739224",
5270
+ "_created_at": "2022-04-14T16:12:34.456Z",
5271
+ "_updated_at": "2022-04-14T16:13:47.261Z",
5272
+ "billing_period": "weekly",
5273
+ "billing_duration_unit": "months",
5274
+ "notice_time_unit": "months",
5275
+ "termination_time_unit": "months",
5276
+ "renewal_duration_unit": "months"
5277
+ },
5278
+ "_product": {
5279
+ "_id": "11bd46e5-4c02-425c-bcce-5f5e022a2b45",
5280
+ "type": "product",
5281
+ "_schema": "product",
5282
+ "_title": "Product With A Lot Of Prices - Do Not Change 🙏",
5283
+ "name": "Product With A Lot Of Prices - Do Not Change 🙏",
5284
+ "_org": "739224",
5285
+ "_created_at": "2022-04-14T16:08:08.595Z",
5286
+ "_updated_at": "2022-04-18T16:26:33.089Z",
5287
+ "price_options": {
5288
+ "$relation": [
5289
+ {
5290
+ "entity_id": "f850ebff-082e-4924-8631-965cc9c0ab2b",
5291
+ "_tags": []
5292
+ },
5293
+ {
5294
+ "entity_id": "d6ecc576-b5d6-44b4-8c95-496ab2ac14d3",
5295
+ "_tags": []
5296
+ },
5297
+ {
5298
+ "entity_id": "3c0e47ad-6ca3-4cd8-b6b4-b2a48dab7f16",
5299
+ "_tags": []
5300
+ },
5301
+ {
5302
+ "entity_id": "adbd8cee-0db2-41dd-b93b-2d0ed57c77da",
5303
+ "_tags": []
5304
+ },
5305
+ {
5306
+ "entity_id": "3e97f809-1d4b-47e1-9faf-46386b2b0d21",
5307
+ "_tags": []
5308
+ },
5309
+ {
5310
+ "entity_id": "d4061656-71dc-45ec-bf6c-1d90d2419d87",
5311
+ "_tags": []
5312
+ },
5313
+ {
5314
+ "entity_id": "4ae4221b-4fd0-4bcc-98a2-f20cda954903",
5315
+ "_tags": []
5316
+ },
5317
+ {
5318
+ "entity_id": "b326df19-9d0f-433a-a4d2-a0a65034b5f7",
5319
+ "_tags": []
5320
+ },
5321
+ {
5322
+ "entity_id": "0d071551-47be-4a5b-90d7-d425a59607e6",
5323
+ "_tags": []
5324
+ }
5325
+ ]
5326
+ },
5327
+ "_files": {
5328
+ "$relation": [
5329
+ {
5330
+ "entity_id": "27cc0710-651d-48dc-9624-9d1d3057d025",
5331
+ "_tags": []
5332
+ },
5333
+ {
5334
+ "entity_id": "8530678c-d4cb-4e27-b314-16a79d6c0abc",
5335
+ "_tags": []
5336
+ },
5337
+ {
5338
+ "entity_id": "714d6253-213f-4e30-8caf-00b0d11032e4",
5339
+ "_tags": []
5340
+ },
5341
+ {
5342
+ "entity_id": "2218a8f8-c6e2-4a98-a2fe-030ed78ebfa7",
5343
+ "_tags": []
5344
+ }
5345
+ ]
5346
+ }
5347
+ },
5348
+ "quantity": 7,
5349
+ "currency": "EUR",
5350
+ "description": "As Starting Price One Time No Tax",
5351
+ "unit_amount": 55566677,
5352
+ "amount_subtotal": 388966739,
5353
+ "amount_total": 388966739
5354
+ }
5355
+ ],
5356
+ "amount_subtotal": 389236739,
5357
+ "amount_total": 389252939,
5358
+ "total_details": {
5359
+ "amount_tax": 5400,
5360
+ "breakdown": {
5361
+ "taxes": [
5362
+ {
5363
+ "tax": {
5364
+ "_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
5365
+ "type": "VAT",
5366
+ "active": true,
5367
+ "region": "DE",
5368
+ "_schema": "tax",
5369
+ "_title": "Tax Without Behaviour",
5370
+ "description": "Without Behaviour",
5371
+ "rate": 6,
5372
+ "_org": "739224",
5373
+ "_created_at": "2022-02-07T14:49:08.831Z",
5374
+ "_updated_at": "2022-02-07T14:49:08.831Z"
5375
+ },
5376
+ "amount": 5400
5377
+ }
5378
+ ],
5379
+ "recurrences": [
5380
+ {
5381
+ "type": "one_time",
5382
+ "amount_subtotal": 389236739,
5383
+ "amount_total": 389252939,
5384
+ "amount_tax": 5400
5385
+ }
5386
+ ]
5387
+ }
5388
+ },
5389
+ "_schema": "order",
5390
+ "_id": "78ac88ae-d7df-4a1e-a26b-acaf089abfb2",
5391
+ "_org": "739224",
5392
+ "_created_at": "2022-04-19T08:19:29.816Z",
5393
+ "_updated_at": "2022-04-20T16:15:48.759Z",
5394
+ "_title": "OREabZxnO",
5395
+ "customer": {
5396
+ "$relation": [
5397
+ {
5398
+ "entity_id": "bb986d50-f403-477c-9d9c-726f8fd6d155"
5399
+ }
5400
+ ]
5401
+ }
5402
+ }
5403
+ },
4736
5404
  "opportunity": {
4737
5405
  "value": {
4738
5406
  "opportunity_number": "OP 2022/335790",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.18.0",
3
+ "version": "3.18.2",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",