@epilot/pricing-client 3.21.2 → 3.21.3
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 +75 -0
- package/dist/openapi.json +49 -0
- package/package.json +1 -1
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
|
*/
|
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."
|