@epilot/pricing-client 3.17.0 → 3.17.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.
@@ -1 +1 @@
1
- !function(e,r){for(var t in r)e[t]=r[t];r.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,r,t){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=a(t(946));r.default=i.default},946:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://pricing-api.sls.epilot.io"}],"paths":{"/v1/order":{"post":{"operationId":"createOrder","requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/order/{id}":{"put":{"operationId":"putOrder","parameters":[{"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/cart:checkout":{"post":{"operationId":"$checkoutCart","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/catalog":{"post":{"operationId":"$searchCatalog","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/availability:check":{"post":{"operationId":"$availabilityCheck","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/validate-availability/{id}":{"get":{"operationId":"$validateAvailabilityFile","parameters":[{"in":"path","name":"id","required":true},{"in":"header","name":"X-Epilot-Org-ID","required":true}]}},"/v1/public/opportunity":{"post":{"deprecated":true,"operationId":"$createOpportunity","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}}},"components":{}}')}},r={};return function t(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return e[a].call(i.exports,i,i.exports,t),i.exports}(914)})());
1
+ (()=>{"use strict";var e={914:function(e,r,t){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=a(t(240));r.default=i.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://pricing-api.sls.epilot.io"}],"paths":{"/v1/order":{"post":{"operationId":"createOrder","requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/order/{id}":{"put":{"operationId":"putOrder","parameters":[{"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/cart:checkout":{"post":{"operationId":"$checkoutCart","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/catalog":{"post":{"operationId":"$searchCatalog","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/availability:check":{"post":{"operationId":"$availabilityCheck","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/validate-availability/{id}":{"get":{"operationId":"$validateAvailabilityFile","parameters":[{"in":"path","name":"id","required":true},{"in":"header","name":"X-Epilot-Org-ID","required":true}]}},"/v1/public/opportunity":{"post":{"deprecated":true,"operationId":"$createOpportunity","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}}},"components":{}}')}},r={},t=function t(a){var i=r[a];if(void 0!==i)return i.exports;var o=r[a]={exports:{}};return e[a].call(o.exports,o,o.exports,t),o.exports}(914),a=exports;for(var i in t)a[i]=t[i];t.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/openapi.d.ts CHANGED
@@ -2537,6 +2537,52 @@ declare namespace Components {
2537
2537
  */
2538
2538
  amount_tax?: number;
2539
2539
  }
2540
+ /**
2541
+ * An amount associated with a specific recurrence and tax.
2542
+ */
2543
+ export interface RecurrenceAmountWithTax {
2544
+ /**
2545
+ * Total of all items before (discounts or) taxes are applied.
2546
+ */
2547
+ amount_subtotal: number;
2548
+ /**
2549
+ * Total of all items before (discounts or) taxes are applied, as a string with all the decimal places.
2550
+ */
2551
+ amount_subtotal_decimal: string;
2552
+ /**
2553
+ * Total of all items after (discounts and) taxes are applied.
2554
+ */
2555
+ amount_total: number;
2556
+ /**
2557
+ * Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
2558
+ */
2559
+ amount_total_decimal: string;
2560
+ /**
2561
+ * The price type.
2562
+ */
2563
+ type?: string;
2564
+ /**
2565
+ * The price billing period.
2566
+ */
2567
+ billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
2568
+ /**
2569
+ * The unit gross amount value.
2570
+ */
2571
+ unit_amount_gross?: number;
2572
+ /**
2573
+ * Total of all items taxes, with same recurrence.
2574
+ */
2575
+ amount_tax?: number;
2576
+ currency?: /**
2577
+ * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2578
+ * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2579
+ *
2580
+ * example:
2581
+ * EUR
2582
+ */
2583
+ Currency;
2584
+ tax?: /* A tax amount associated with a specific tax rate. */ TaxAmountBreakdown;
2585
+ }
2540
2586
  export type SalesTax = "nontaxable" | "reduced" | "standard";
2541
2587
  /**
2542
2588
  * the tax configuration
@@ -2701,9 +2747,13 @@ declare namespace Components {
2701
2747
  */
2702
2748
  taxes?: (/* A tax amount associated with a specific tax rate. */ TaxAmountBreakdown)[];
2703
2749
  /**
2704
- * The aggregated price items tax amount per rate.
2750
+ * The aggregated price items recurrences.
2705
2751
  */
2706
2752
  recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
2753
+ /**
2754
+ * The aggregated price items recurrences by tax rate.
2755
+ */
2756
+ recurrencesByTax?: (/* An amount associated with a specific recurrence and tax. */ RecurrenceAmountWithTax)[];
2707
2757
  };
2708
2758
  }
2709
2759
  /**
package/dist/openapi.json CHANGED
@@ -2909,6 +2909,55 @@
2909
2909
  "amount_total_decimal"
2910
2910
  ]
2911
2911
  },
2912
+ "RecurrenceAmountWithTax": {
2913
+ "type": "object",
2914
+ "description": "An amount associated with a specific recurrence and tax.",
2915
+ "readOnly": true,
2916
+ "allOf": [
2917
+ {
2918
+ "$ref": "#/components/schemas/Amounts"
2919
+ }
2920
+ ],
2921
+ "properties": {
2922
+ "type": {
2923
+ "type": "string",
2924
+ "description": "The price type."
2925
+ },
2926
+ "billing_period": {
2927
+ "type": "string",
2928
+ "description": "The price billing period.",
2929
+ "enum": [
2930
+ "weekly",
2931
+ "monthly",
2932
+ "every_quarter",
2933
+ "every_6_months",
2934
+ "yearly"
2935
+ ]
2936
+ },
2937
+ "unit_amount_gross": {
2938
+ "type": "integer",
2939
+ "description": "The unit gross amount value."
2940
+ },
2941
+ "amount_tax": {
2942
+ "type": "integer",
2943
+ "description": "Total of all items taxes, with same recurrence."
2944
+ },
2945
+ "currency": {
2946
+ "$ref": "#/components/schemas/Currency",
2947
+ "description": "Currency"
2948
+ },
2949
+ "tax": {
2950
+ "$ref": "#/components/schemas/TaxAmountBreakdown",
2951
+ "description": "Tax"
2952
+ }
2953
+ },
2954
+ "required": [
2955
+ "amount_subtotal",
2956
+ "amount_total",
2957
+ "amount_subtotal_decimal",
2958
+ "amount_total_decimal"
2959
+ ]
2960
+ },
2912
2961
  "TotalDetails": {
2913
2962
  "type": "object",
2914
2963
  "description": "The total details with tax (and discount) aggregated totals.",
@@ -2939,7 +2988,7 @@
2939
2988
  },
2940
2989
  "recurrences": {
2941
2990
  "type": "array",
2942
- "description": "The aggregated price items tax amount per rate.",
2991
+ "description": "The aggregated price items recurrences.",
2943
2992
  "items": {
2944
2993
  "oneOf": [
2945
2994
  {
@@ -2947,6 +2996,17 @@
2947
2996
  }
2948
2997
  ]
2949
2998
  }
2999
+ },
3000
+ "recurrencesByTax": {
3001
+ "type": "array",
3002
+ "description": "The aggregated price items recurrences by tax rate.",
3003
+ "items": {
3004
+ "oneOf": [
3005
+ {
3006
+ "$ref": "#/components/schemas/RecurrenceAmountWithTax"
3007
+ }
3008
+ ]
3009
+ }
2950
3010
  }
2951
3011
  }
2952
3012
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.17.0",
3
+ "version": "3.17.2",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -72,4 +72,4 @@
72
72
  "webpack-cli": "^4.4.0"
73
73
  },
74
74
  "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
75
- }
75
+ }