@epilot/pricing-client 3.17.9 → 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 CHANGED
@@ -1073,6 +1073,22 @@ declare namespace Components {
1073
1073
  * The computed total price as decimal
1074
1074
  */
1075
1075
  amount_total_decimal: string;
1076
+ /**
1077
+ * The computed static price
1078
+ */
1079
+ amount_static?: number;
1080
+ /**
1081
+ * The computed static price as decimal
1082
+ */
1083
+ amount_static_decimal?: any;
1084
+ /**
1085
+ * The computed variable price
1086
+ */
1087
+ amount_variable?: number;
1088
+ /**
1089
+ * The computed variable price as decimal
1090
+ */
1091
+ amount_variable_decimal?: string;
1076
1092
  /**
1077
1093
  * The currency of the computed price (three-letter ISO currency code)
1078
1094
  */
@@ -1107,6 +1123,19 @@ declare namespace Components {
1107
1123
  * Price breakdown
1108
1124
  */
1109
1125
  export interface ComputedPriceBreakdown {
1126
+ /**
1127
+ * The static price breakdown
1128
+ */
1129
+ static?: /* The computed price components */ ComputedPriceComponents;
1130
+ /**
1131
+ * The variable price breakdown
1132
+ */
1133
+ variable?: /* The computed price components */ ComputedPriceComponents;
1134
+ }
1135
+ /**
1136
+ * The computed price components
1137
+ */
1138
+ export interface ComputedPriceComponents {
1110
1139
  [name: string]: /* The computed price */ ComputedBasePrice;
1111
1140
  }
1112
1141
  /**
@@ -2639,35 +2668,6 @@ declare namespace Components {
2639
2668
  */
2640
2669
  amount_tax?: number;
2641
2670
  }
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
2671
  export type SalesTax = "nontaxable" | "reduced" | "standard";
2672
2672
  export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
2673
2673
  /**
@@ -2723,7 +2723,7 @@ declare namespace Components {
2723
2723
  /**
2724
2724
  * The street name
2725
2725
  */
2726
- name: string;
2726
+ street: string;
2727
2727
  }
2728
2728
  /**
2729
2729
  * the tax configuration
@@ -2891,10 +2891,6 @@ declare namespace Components {
2891
2891
  * The aggregated price items tax amount per rate.
2892
2892
  */
2893
2893
  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
2894
  };
2899
2895
  }
2900
2896
  /**
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
  }
@@ -1075,12 +1072,24 @@
1075
1072
  "value": {
1076
1073
  "amount_total": 100,
1077
1074
  "amount_total_decimal": "100.00",
1075
+ "amount_static": 500,
1076
+ "amount_static_decimal": "50.00",
1077
+ "amount_variable": 500,
1078
+ "amount_variable_decimal": "50.00",
1078
1079
  "currency": "EUR",
1079
1080
  "billing_period": "monthly",
1080
1081
  "breakdown": {
1081
- "maintenance_fee": {
1082
- "amount": 10,
1083
- "amount_decimal": "10.00"
1082
+ "static": {
1083
+ "maintenance_fee": {
1084
+ "amount": 50,
1085
+ "amount_decimal": "50.00"
1086
+ }
1087
+ },
1088
+ "variable": {
1089
+ "offshore_liability_fee": {
1090
+ "amount": 50,
1091
+ "amount_decimal": "50.00"
1092
+ }
1084
1093
  }
1085
1094
  }
1086
1095
  }
@@ -2655,6 +2664,20 @@
2655
2664
  "ComputedPriceBreakdown": {
2656
2665
  "type": "object",
2657
2666
  "description": "Price breakdown",
2667
+ "properties": {
2668
+ "static": {
2669
+ "description": "The static price breakdown",
2670
+ "$ref": "#/components/schemas/ComputedPriceComponents"
2671
+ },
2672
+ "variable": {
2673
+ "description": "The variable price breakdown",
2674
+ "$ref": "#/components/schemas/ComputedPriceComponents"
2675
+ }
2676
+ }
2677
+ },
2678
+ "ComputedPriceComponents": {
2679
+ "type": "object",
2680
+ "description": "The computed price components",
2658
2681
  "additionalProperties": {
2659
2682
  "$ref": "#/components/schemas/ComputedBasePrice"
2660
2683
  }
@@ -2670,6 +2693,21 @@
2670
2693
  "description": "The computed total price as decimal",
2671
2694
  "type": "string"
2672
2695
  },
2696
+ "amount_static": {
2697
+ "description": "The computed static price",
2698
+ "type": "number"
2699
+ },
2700
+ "amount_static_decimal": {
2701
+ "description": "The computed static price as decimal"
2702
+ },
2703
+ "amount_variable": {
2704
+ "description": "The computed variable price",
2705
+ "type": "number"
2706
+ },
2707
+ "amount_variable_decimal": {
2708
+ "description": "The computed variable price as decimal",
2709
+ "type": "string"
2710
+ },
2673
2711
  "currency": {
2674
2712
  "description": "The currency of the computed price (three-letter ISO currency code)",
2675
2713
  "oneOf": [
@@ -2758,13 +2796,13 @@
2758
2796
  "description": "The street entity",
2759
2797
  "type": "object",
2760
2798
  "properties": {
2761
- "name": {
2799
+ "street": {
2762
2800
  "description": "The street name",
2763
2801
  "type": "string"
2764
2802
  }
2765
2803
  },
2766
2804
  "required": [
2767
- "name"
2805
+ "street"
2768
2806
  ]
2769
2807
  },
2770
2808
  "ValidateAvailabilityFileResult": {
@@ -3616,48 +3654,6 @@
3616
3654
  "amount_total_decimal"
3617
3655
  ]
3618
3656
  },
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
3657
  "TotalDetails": {
3662
3658
  "type": "object",
3663
3659
  "description": "The total details with tax (and discount) aggregated totals.",
@@ -3696,17 +3692,6 @@
3696
3692
  }
3697
3693
  ]
3698
3694
  }
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
3695
  }
3711
3696
  }
3712
3697
  }
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.1",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",