@epilot/pricing-client 3.10.0 → 3.11.1
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 +30 -54
- package/dist/openapi.json +10 -9
- package/package.json +2 -2
package/dist/openapi.d.ts
CHANGED
|
@@ -496,19 +496,13 @@ declare namespace Components {
|
|
|
496
496
|
files?: string[];
|
|
497
497
|
status?: /**
|
|
498
498
|
*
|
|
499
|
-
* | status
|
|
500
|
-
*
|
|
501
|
-
* | `
|
|
502
|
-
* | `
|
|
503
|
-
* | `
|
|
504
|
-
* | `
|
|
505
|
-
* | `
|
|
506
|
-
* | `quote` | old value of offer |
|
|
507
|
-
* | `order_accepted` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |
|
|
508
|
-
* | `placed` | old value of order_accepted |
|
|
509
|
-
* | `lost ` | The order has been cancelled |
|
|
510
|
-
* | `cancelled` | old value of lost |
|
|
511
|
-
* | `complete` | The order is now closed and finalized |
|
|
499
|
+
* | status | description |
|
|
500
|
+
* |-------------|-------|
|
|
501
|
+
* | `draft` | Starting state for all orders, at this point we can still edit the order |
|
|
502
|
+
* | `quote` | The order is in a quoting phase, bound to an expiration date |
|
|
503
|
+
* | `placed` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |
|
|
504
|
+
* | `cancelled` | The order has been cancelled |
|
|
505
|
+
* | `completed` | The order is now closed and finalized |
|
|
512
506
|
*
|
|
513
507
|
*/
|
|
514
508
|
OrderStatus;
|
|
@@ -1279,19 +1273,13 @@ declare namespace Components {
|
|
|
1279
1273
|
cart_id?: string;
|
|
1280
1274
|
status?: /**
|
|
1281
1275
|
*
|
|
1282
|
-
* | status
|
|
1283
|
-
*
|
|
1284
|
-
* | `
|
|
1285
|
-
* | `
|
|
1286
|
-
* | `
|
|
1287
|
-
* | `
|
|
1288
|
-
* | `
|
|
1289
|
-
* | `quote` | old value of offer |
|
|
1290
|
-
* | `order_accepted` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |
|
|
1291
|
-
* | `placed` | old value of order_accepted |
|
|
1292
|
-
* | `lost ` | The order has been cancelled |
|
|
1293
|
-
* | `cancelled` | old value of lost |
|
|
1294
|
-
* | `complete` | The order is now closed and finalized |
|
|
1276
|
+
* | status | description |
|
|
1277
|
+
* |-------------|-------|
|
|
1278
|
+
* | `draft` | Starting state for all orders, at this point we can still edit the order |
|
|
1279
|
+
* | `quote` | The order is in a quoting phase, bound to an expiration date |
|
|
1280
|
+
* | `placed` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |
|
|
1281
|
+
* | `cancelled` | The order has been cancelled |
|
|
1282
|
+
* | `completed` | The order is now closed and finalized |
|
|
1295
1283
|
*
|
|
1296
1284
|
*/
|
|
1297
1285
|
OrderStatus;
|
|
@@ -1416,19 +1404,13 @@ declare namespace Components {
|
|
|
1416
1404
|
[name: string]: any;
|
|
1417
1405
|
status?: /**
|
|
1418
1406
|
*
|
|
1419
|
-
* | status
|
|
1420
|
-
*
|
|
1421
|
-
* | `
|
|
1422
|
-
* | `
|
|
1423
|
-
* | `
|
|
1424
|
-
* | `
|
|
1425
|
-
* | `
|
|
1426
|
-
* | `quote` | old value of offer |
|
|
1427
|
-
* | `order_accepted` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |
|
|
1428
|
-
* | `placed` | old value of order_accepted |
|
|
1429
|
-
* | `lost ` | The order has been cancelled |
|
|
1430
|
-
* | `cancelled` | old value of lost |
|
|
1431
|
-
* | `complete` | The order is now closed and finalized |
|
|
1407
|
+
* | status | description |
|
|
1408
|
+
* |-------------|-------|
|
|
1409
|
+
* | `draft` | Starting state for all orders, at this point we can still edit the order |
|
|
1410
|
+
* | `quote` | The order is in a quoting phase, bound to an expiration date |
|
|
1411
|
+
* | `placed` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |
|
|
1412
|
+
* | `cancelled` | The order has been cancelled |
|
|
1413
|
+
* | `completed` | The order is now closed and finalized |
|
|
1432
1414
|
*
|
|
1433
1415
|
*/
|
|
1434
1416
|
OrderStatus;
|
|
@@ -1495,22 +1477,16 @@ declare namespace Components {
|
|
|
1495
1477
|
}
|
|
1496
1478
|
/**
|
|
1497
1479
|
*
|
|
1498
|
-
* | status
|
|
1499
|
-
*
|
|
1500
|
-
* | `
|
|
1501
|
-
* | `
|
|
1502
|
-
* | `
|
|
1503
|
-
* | `
|
|
1504
|
-
* | `
|
|
1505
|
-
* | `quote` | old value of offer |
|
|
1506
|
-
* | `order_accepted` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |
|
|
1507
|
-
* | `placed` | old value of order_accepted |
|
|
1508
|
-
* | `lost ` | The order has been cancelled |
|
|
1509
|
-
* | `cancelled` | old value of lost |
|
|
1510
|
-
* | `complete` | The order is now closed and finalized |
|
|
1480
|
+
* | status | description |
|
|
1481
|
+
* |-------------|-------|
|
|
1482
|
+
* | `draft` | Starting state for all orders, at this point we can still edit the order |
|
|
1483
|
+
* | `quote` | The order is in a quoting phase, bound to an expiration date |
|
|
1484
|
+
* | `placed` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |
|
|
1485
|
+
* | `cancelled` | The order has been cancelled |
|
|
1486
|
+
* | `completed` | The order is now closed and finalized |
|
|
1511
1487
|
*
|
|
1512
1488
|
*/
|
|
1513
|
-
export type OrderStatus = "draft" | "
|
|
1489
|
+
export type OrderStatus = "draft" | "quote" | "placed" | "cancelled" | "completed";
|
|
1514
1490
|
/**
|
|
1515
1491
|
* A PaymentMethod represent your customer's payment instruments.
|
|
1516
1492
|
*
|
|
@@ -2419,7 +2395,7 @@ declare namespace Components {
|
|
|
2419
2395
|
/**
|
|
2420
2396
|
* The price billing period.
|
|
2421
2397
|
*/
|
|
2422
|
-
billing_period?:
|
|
2398
|
+
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
|
|
2423
2399
|
/**
|
|
2424
2400
|
* Total of all items, with same recurrence, before (discounts or) taxes are applied.
|
|
2425
2401
|
*/
|
package/dist/openapi.json
CHANGED
|
@@ -2210,18 +2210,12 @@
|
|
|
2210
2210
|
"type": "string",
|
|
2211
2211
|
"enum": [
|
|
2212
2212
|
"draft",
|
|
2213
|
-
"new",
|
|
2214
|
-
"open_for_acceptance",
|
|
2215
|
-
"in_progress",
|
|
2216
2213
|
"quote",
|
|
2217
|
-
"offer",
|
|
2218
2214
|
"placed",
|
|
2219
|
-
"order_accepted",
|
|
2220
2215
|
"cancelled",
|
|
2221
|
-
"
|
|
2222
|
-
"complete"
|
|
2216
|
+
"completed"
|
|
2223
2217
|
],
|
|
2224
|
-
"description": "\n| status
|
|
2218
|
+
"description": "\n| status | description |\n|-------------|-------|\n| `draft` | Starting state for all orders, at this point we can still edit the order |\n| `quote` | The order is in a quoting phase, bound to an expiration date |\n| `placed` | The order has been paid and can now be fulfilled (shipped, delivered, complete) or canceled |\n| `cancelled` | The order has been cancelled |\n| `completed` | The order is now closed and finalized |\n"
|
|
2225
2219
|
},
|
|
2226
2220
|
"PriceItemsDto": {
|
|
2227
2221
|
"description": "A valid set of product prices, quantities, (discounts) and taxes from a client.",
|
|
@@ -2860,7 +2854,14 @@
|
|
|
2860
2854
|
},
|
|
2861
2855
|
"billing_period": {
|
|
2862
2856
|
"type": "string",
|
|
2863
|
-
"description": "The price billing period."
|
|
2857
|
+
"description": "The price billing period.",
|
|
2858
|
+
"enum": [
|
|
2859
|
+
"weekly",
|
|
2860
|
+
"monthly",
|
|
2861
|
+
"every_quarter",
|
|
2862
|
+
"every_6_months",
|
|
2863
|
+
"yearly"
|
|
2864
|
+
]
|
|
2864
2865
|
},
|
|
2865
2866
|
"amount_subtotal": {
|
|
2866
2867
|
"type": "integer",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"description": "Client for epilot Pricing APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"test": "jest",
|
|
25
25
|
"bundle-definition": "webpack",
|
|
26
|
-
"openapi": "node ../../scripts/update-openapi.js
|
|
26
|
+
"openapi": "node ../../scripts/update-openapi.js /Users/juanjoseguevara/Desktop/code/pricing-api/lambda/ApiHandlerFunction/openapi.yml",
|
|
27
27
|
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
|
|
28
28
|
"build": "tsc && npm run bundle-definition",
|
|
29
29
|
"build:watch": "npm run build && tsc -w",
|