@epilot/pricing-client 3.21.2 → 3.21.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
@@ -335,6 +335,21 @@ declare namespace Components {
335
335
  * ]
336
336
  */
337
337
  PriceInputMappings;
338
+ /**
339
+ * External fees mapping information required to compute totals, for some pricing models
340
+ */
341
+ external_fees_mappings?: /**
342
+ * example:
343
+ * [
344
+ * {
345
+ * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
346
+ * "frequency_unit": "weekly",
347
+ * "amount_total": 1000,
348
+ * "amount_total_decimal": "10.00"
349
+ * }
350
+ * ]
351
+ */
352
+ ExternalFeeMappings;
338
353
  /**
339
354
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
340
355
  */
@@ -911,6 +926,18 @@ declare namespace Components {
911
926
  * ]
912
927
  */
913
928
  PriceInputMappings;
929
+ external_fees_mappings?: /**
930
+ * example:
931
+ * [
932
+ * {
933
+ * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
934
+ * "frequency_unit": "weekly",
935
+ * "amount_total": 1000,
936
+ * "amount_total_decimal": "10.00"
937
+ * }
938
+ * ]
939
+ */
940
+ ExternalFeeMappings;
914
941
  /**
915
942
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
916
943
  */
@@ -1206,6 +1233,42 @@ declare namespace Components {
1206
1233
  */
1207
1234
  cause?: string;
1208
1235
  }
1236
+ /**
1237
+ * example:
1238
+ * {
1239
+ * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
1240
+ * "frequency_unit": "weekly",
1241
+ * "amount_total": 1000,
1242
+ * "amount_total_decimal": "10.00"
1243
+ * }
1244
+ */
1245
+ export interface ExternalFeeMapping {
1246
+ price_id?: string;
1247
+ frequency_unit?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
1248
+ amount_total?: number;
1249
+ amount_total_decimal?: string;
1250
+ }
1251
+ /**
1252
+ * example:
1253
+ * [
1254
+ * {
1255
+ * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
1256
+ * "frequency_unit": "weekly",
1257
+ * "amount_total": 1000,
1258
+ * "amount_total_decimal": "10.00"
1259
+ * }
1260
+ * ]
1261
+ */
1262
+ export type ExternalFeeMappings = /**
1263
+ * example:
1264
+ * {
1265
+ * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
1266
+ * "frequency_unit": "weekly",
1267
+ * "amount_total": 1000,
1268
+ * "amount_total_decimal": "10.00"
1269
+ * }
1270
+ */
1271
+ ExternalFeeMapping[];
1209
1272
  export interface File {
1210
1273
  [name: string]: any;
1211
1274
  _id: string;
@@ -2087,6 +2150,18 @@ declare namespace Components {
2087
2150
  * ]
2088
2151
  */
2089
2152
  PriceInputMappings;
2153
+ external_fees_mappings?: /**
2154
+ * example:
2155
+ * [
2156
+ * {
2157
+ * "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2158
+ * "frequency_unit": "weekly",
2159
+ * "amount_total": 1000,
2160
+ * "amount_total_decimal": "10.00"
2161
+ * }
2162
+ * ]
2163
+ */
2164
+ ExternalFeeMappings;
2090
2165
  /**
2091
2166
  * An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name.
2092
2167
  */
@@ -2480,6 +2555,10 @@ declare namespace Components {
2480
2555
  * The unit gross amount value.
2481
2556
  */
2482
2557
  unit_amount_gross?: number;
2558
+ /**
2559
+ * The unit net amount value.
2560
+ */
2561
+ unit_amount_net?: number;
2483
2562
  /**
2484
2563
  * This is the sum of all the price item tax amounts.
2485
2564
  */
@@ -2630,6 +2709,10 @@ declare namespace Components {
2630
2709
  * The unit gross amount value.
2631
2710
  */
2632
2711
  unit_amount_gross?: number;
2712
+ /**
2713
+ * The unit net amount value.
2714
+ */
2715
+ unit_amount_net?: number;
2633
2716
  /**
2634
2717
  * Total of all items taxes, with same recurrence.
2635
2718
  */
@@ -2675,6 +2758,10 @@ declare namespace Components {
2675
2758
  * The unit gross amount value.
2676
2759
  */
2677
2760
  unit_amount_gross?: number;
2761
+ /**
2762
+ * The unit net amount value.
2763
+ */
2764
+ unit_amount_net?: number;
2678
2765
  /**
2679
2766
  * Total of all items taxes, with same recurrence.
2680
2767
  */
package/dist/openapi.json CHANGED
@@ -2399,6 +2399,51 @@
2399
2399
  }
2400
2400
  }
2401
2401
  },
2402
+ "ExternalFeeMappings": {
2403
+ "type": "array",
2404
+ "items": {
2405
+ "$ref": "#/components/schemas/ExternalFeeMapping"
2406
+ },
2407
+ "example": [
2408
+ {
2409
+ "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2410
+ "frequency_unit": "weekly",
2411
+ "amount_total": 1000,
2412
+ "amount_total_decimal": "10.00"
2413
+ }
2414
+ ]
2415
+ },
2416
+ "ExternalFeeMapping": {
2417
+ "type": "object",
2418
+ "properties": {
2419
+ "price_id": {
2420
+ "type": "string"
2421
+ },
2422
+ "frequency_unit": {
2423
+ "type": "string",
2424
+ "enum": [
2425
+ "weekly",
2426
+ "monthly",
2427
+ "every_quarter",
2428
+ "every_6_months",
2429
+ "yearly",
2430
+ "one_time"
2431
+ ]
2432
+ },
2433
+ "amount_total": {
2434
+ "type": "number"
2435
+ },
2436
+ "amount_total_decimal": {
2437
+ "type": "string"
2438
+ }
2439
+ },
2440
+ "example": {
2441
+ "price_id": "589B011B-F8D9-4F8E-AD71-BACE4B543C0F",
2442
+ "frequency_unit": "weekly",
2443
+ "amount_total": 1000,
2444
+ "amount_total_decimal": "10.00"
2445
+ }
2446
+ },
2402
2447
  "CatalogSearch": {
2403
2448
  "description": "A catalog search payload",
2404
2449
  "type": "object",
@@ -3034,6 +3079,10 @@
3034
3079
  "description": "Price mapping information required to compute totals",
3035
3080
  "$ref": "#/components/schemas/PriceInputMappings"
3036
3081
  },
3082
+ "external_fees_mappings": {
3083
+ "description": "External fees mapping information required to compute totals, for some pricing models",
3084
+ "$ref": "#/components/schemas/ExternalFeeMappings"
3085
+ },
3037
3086
  "description": {
3038
3087
  "type": "string",
3039
3088
  "description": "An arbitrary string attached to the price item. Often useful for displaying to users. Defaults to product name."
@@ -3246,6 +3295,10 @@
3246
3295
  "type": "integer",
3247
3296
  "description": "The unit gross amount value."
3248
3297
  },
3298
+ "unit_amount_net": {
3299
+ "type": "integer",
3300
+ "description": "The unit net amount value."
3301
+ },
3249
3302
  "amount_tax": {
3250
3303
  "type": "integer",
3251
3304
  "description": "Total of all items taxes, with same recurrence."
@@ -3705,6 +3758,10 @@
3705
3758
  "type": "integer",
3706
3759
  "description": "The unit gross amount value."
3707
3760
  },
3761
+ "unit_amount_net": {
3762
+ "type": "integer",
3763
+ "description": "The unit net amount value."
3764
+ },
3708
3765
  "amount_tax": {
3709
3766
  "type": "integer",
3710
3767
  "description": "Total of all items taxes, with same recurrence."
@@ -3852,6 +3909,10 @@
3852
3909
  "type": "integer",
3853
3910
  "description": "The unit gross amount value."
3854
3911
  },
3912
+ "unit_amount_net": {
3913
+ "type": "integer",
3914
+ "description": "The unit net amount value."
3915
+ },
3855
3916
  "amount_tax": {
3856
3917
  "type": "integer",
3857
3918
  "description": "This is the sum of all the price item tax amounts."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.21.2",
3
+ "version": "3.21.4",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",