@epilot/pricing-client 2.1.5 → 2.1.7
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/CHANGELOG.md +253 -0
- package/dist/definition.js +1 -1
- package/dist/index.js +5 -1
- package/dist/openapi.d.ts +17 -0
- package/dist/openapi.json +29 -0
- package/package-lock.json +19184 -0
- package/package.json +2 -2
- package/LICENSE +0 -21
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.
|
|
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
|
@@ -1260,6 +1260,18 @@ declare namespace Components {
|
|
|
1260
1260
|
*/
|
|
1261
1261
|
PaymentMethod[];
|
|
1262
1262
|
line_items?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems;
|
|
1263
|
+
/**
|
|
1264
|
+
* The product entities referenced from within `line_items`
|
|
1265
|
+
*/
|
|
1266
|
+
products?: {
|
|
1267
|
+
$relation?: EntityRelation[];
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* The price entities referenced from within `line_items`
|
|
1271
|
+
*/
|
|
1272
|
+
prices?: {
|
|
1273
|
+
$relation?: EntityRelation[];
|
|
1274
|
+
};
|
|
1263
1275
|
/**
|
|
1264
1276
|
* Total of all items before (discounts or) taxes are applied.
|
|
1265
1277
|
*/
|
|
@@ -1294,6 +1306,7 @@ declare namespace Components {
|
|
|
1294
1306
|
* Order Entity Payload
|
|
1295
1307
|
*/
|
|
1296
1308
|
export interface OrderPayload {
|
|
1309
|
+
[name: string]: any;
|
|
1297
1310
|
status?: /**
|
|
1298
1311
|
*
|
|
1299
1312
|
* | status | description |
|
|
@@ -1676,6 +1689,10 @@ declare namespace Components {
|
|
|
1676
1689
|
* One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
1677
1690
|
*/
|
|
1678
1691
|
type?: "one_time" | "recurring";
|
|
1692
|
+
/**
|
|
1693
|
+
* When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'.
|
|
1694
|
+
*/
|
|
1695
|
+
on_request_approved?: boolean;
|
|
1679
1696
|
}
|
|
1680
1697
|
/**
|
|
1681
1698
|
* Represents a price input to the pricing library.
|
package/dist/openapi.json
CHANGED
|
@@ -1183,6 +1183,30 @@
|
|
|
1183
1183
|
"line_items": {
|
|
1184
1184
|
"$ref": "#/components/schemas/PriceItems"
|
|
1185
1185
|
},
|
|
1186
|
+
"products": {
|
|
1187
|
+
"type": "object",
|
|
1188
|
+
"description": "The product entities referenced from within `line_items`",
|
|
1189
|
+
"properties": {
|
|
1190
|
+
"$relation": {
|
|
1191
|
+
"type": "array",
|
|
1192
|
+
"items": {
|
|
1193
|
+
"$ref": "#/components/schemas/EntityRelation"
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"prices": {
|
|
1199
|
+
"type": "object",
|
|
1200
|
+
"description": "The price entities referenced from within `line_items`",
|
|
1201
|
+
"properties": {
|
|
1202
|
+
"$relation": {
|
|
1203
|
+
"type": "array",
|
|
1204
|
+
"items": {
|
|
1205
|
+
"$ref": "#/components/schemas/EntityRelation"
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1186
1210
|
"amount_subtotal": {
|
|
1187
1211
|
"readOnly": true,
|
|
1188
1212
|
"type": "integer",
|
|
@@ -2112,6 +2136,7 @@
|
|
|
2112
2136
|
"OrderPayload": {
|
|
2113
2137
|
"type": "object",
|
|
2114
2138
|
"description": "Order Entity Payload",
|
|
2139
|
+
"additionalProperties": true,
|
|
2115
2140
|
"properties": {
|
|
2116
2141
|
"status": {
|
|
2117
2142
|
"$ref": "#/components/schemas/OrderStatus"
|
|
@@ -2329,6 +2354,10 @@
|
|
|
2329
2354
|
"one_time",
|
|
2330
2355
|
"recurring"
|
|
2331
2356
|
]
|
|
2357
|
+
},
|
|
2358
|
+
"on_request_approved": {
|
|
2359
|
+
"type": "boolean",
|
|
2360
|
+
"description": "When set to true on a `_price` displayed as OnRequest (`show_as_on_request: 'on_request'`) this flag means the price has been approved and can now be displayed to the customer. This flag is only valid for prices shown as 'on_request'."
|
|
2332
2361
|
}
|
|
2333
2362
|
}
|
|
2334
2363
|
},
|