@epilot/pricing-client 3.22.3 → 3.22.4

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
@@ -350,6 +350,10 @@ declare namespace Components {
350
350
  * ]
351
351
  */
352
352
  ExternalFeeMappings;
353
+ /**
354
+ * External fees metadata information required to compute totals, for some pricing models
355
+ */
356
+ external_fees_metadata?: ExternalFeeMetadata;
353
357
  /**
354
358
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
355
359
  */
@@ -938,6 +942,7 @@ declare namespace Components {
938
942
  * ]
939
943
  */
940
944
  ExternalFeeMappings;
945
+ external_fees_metadata?: ExternalFeeMetadata;
941
946
  /**
942
947
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
943
948
  */
@@ -1132,6 +1137,7 @@ declare namespace Components {
1132
1137
  */
1133
1138
  billing_period: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
1134
1139
  breakdown: /* Price breakdown */ ComputedPriceBreakdown;
1140
+ _meta?: /* Signature meta data payload */ SignatureMeta;
1135
1141
  }
1136
1142
  /**
1137
1143
  * The computed price
@@ -1269,6 +1275,52 @@ declare namespace Components {
1269
1275
  * }
1270
1276
  */
1271
1277
  ExternalFeeMapping[];
1278
+ export interface ExternalFeeMetadata {
1279
+ /**
1280
+ * The computed total price
1281
+ */
1282
+ amount_total: number;
1283
+ /**
1284
+ * The computed total price as decimal
1285
+ */
1286
+ amount_total_decimal: string;
1287
+ /**
1288
+ * The computed static price
1289
+ */
1290
+ amount_static?: number;
1291
+ /**
1292
+ * The computed static price as decimal
1293
+ */
1294
+ amount_static_decimal?: any;
1295
+ /**
1296
+ * The computed variable price
1297
+ */
1298
+ amount_variable?: number;
1299
+ /**
1300
+ * The computed variable price as decimal
1301
+ */
1302
+ amount_variable_decimal?: string;
1303
+ /**
1304
+ * The currency of the computed price (three-letter ISO currency code)
1305
+ */
1306
+ currency: /* The currency of the computed price (three-letter ISO currency code) */ /**
1307
+ * Three-letter ISO currency code, in lowercase. Must be a supported currency.
1308
+ * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
1309
+ *
1310
+ * example:
1311
+ * EUR
1312
+ */
1313
+ Currency;
1314
+ /**
1315
+ * The billing period
1316
+ */
1317
+ billing_period: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
1318
+ breakdown: /* Price breakdown */ ComputedPriceBreakdown;
1319
+ _meta?: /* Signature meta data payload */ SignatureMeta;
1320
+ inputs?: {
1321
+ [name: string]: any;
1322
+ };
1323
+ }
1272
1324
  export interface File {
1273
1325
  [name: string]: any;
1274
1326
  _id: string;
@@ -2173,6 +2225,7 @@ declare namespace Components {
2173
2225
  * ]
2174
2226
  */
2175
2227
  ExternalFeeMappings;
2228
+ external_fees_metadata?: ExternalFeeMetadata;
2176
2229
  /**
2177
2230
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
2178
2231
  */
@@ -2857,6 +2910,19 @@ declare namespace Components {
2857
2910
  * The search providers payload
2858
2911
  */
2859
2912
  export type SearchStreetsResult = /* The street entity */ Street[];
2913
+ /**
2914
+ * Signature meta data payload
2915
+ */
2916
+ export interface SignatureMeta {
2917
+ /**
2918
+ * The signature hash of the payload
2919
+ */
2920
+ signature: string;
2921
+ /**
2922
+ * Timestamp of the signature
2923
+ */
2924
+ timestamp: number;
2925
+ }
2860
2926
  /**
2861
2927
  * The street entity
2862
2928
  */
package/dist/openapi.json CHANGED
@@ -2399,6 +2399,20 @@
2399
2399
  }
2400
2400
  }
2401
2401
  },
2402
+ "ExternalFeeMetadata": {
2403
+ "allOf": [
2404
+ {
2405
+ "$ref": "#/components/schemas/ComputePriceResult"
2406
+ }
2407
+ ],
2408
+ "type": "object",
2409
+ "properties": {
2410
+ "inputs": {
2411
+ "type": "object",
2412
+ "additionalProperties": true
2413
+ }
2414
+ }
2415
+ },
2402
2416
  "ExternalFeeMappings": {
2403
2417
  "type": "array",
2404
2418
  "items": {
@@ -2731,6 +2745,24 @@
2731
2745
  "consumption"
2732
2746
  ]
2733
2747
  },
2748
+ "SignatureMeta": {
2749
+ "type": "object",
2750
+ "description": "Signature meta data payload",
2751
+ "properties": {
2752
+ "signature": {
2753
+ "description": "The signature hash of the payload",
2754
+ "type": "string"
2755
+ },
2756
+ "timestamp": {
2757
+ "description": "Timestamp of the signature",
2758
+ "type": "number"
2759
+ }
2760
+ },
2761
+ "required": [
2762
+ "timestamp",
2763
+ "signature"
2764
+ ]
2765
+ },
2734
2766
  "ComputedBasePrice": {
2735
2767
  "type": "object",
2736
2768
  "description": "The computed price",
@@ -2818,6 +2850,9 @@
2818
2850
  },
2819
2851
  "breakdown": {
2820
2852
  "$ref": "#/components/schemas/ComputedPriceBreakdown"
2853
+ },
2854
+ "_meta": {
2855
+ "$ref": "#/components/schemas/SignatureMeta"
2821
2856
  }
2822
2857
  },
2823
2858
  "required": [
@@ -3083,6 +3118,10 @@
3083
3118
  "description": "External fees mapping information required to compute totals, for some pricing models",
3084
3119
  "$ref": "#/components/schemas/ExternalFeeMappings"
3085
3120
  },
3121
+ "external_fees_metadata": {
3122
+ "description": "External fees metadata information required to compute totals, for some pricing models",
3123
+ "$ref": "#/components/schemas/ExternalFeeMetadata"
3124
+ },
3086
3125
  "description": {
3087
3126
  "type": "string",
3088
3127
  "description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.22.3",
3
+ "version": "3.22.4",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",