Skip to content

Commit

Permalink
feat: update resources to schema v5.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed May 31, 2024
1 parent 4ae8248 commit ea0ecd6
Show file tree
Hide file tree
Showing 9 changed files with 955 additions and 860 deletions.
52 changes: 43 additions & 9 deletions gen/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.1.0",
"info": {
"title": "Commerce Layer API",
"version": "5.3.2",
"version": "5.3.3",
"contact": {
"name": "API Support",
"url": "https://commercelayer.io",
Expand Down Expand Up @@ -60350,19 +60350,34 @@
"description": "The gift card balance log. Tracks all the gift card transactions.",
"example": [
{
"date": "2019-12-23T12:00:00.000Z",
"amount_cents": -10000
"datetime": "2019-12-23T12:00:00.000Z",
"balance_change_cents": -10000
},
{
"date": "2020-02-01T12:00:00.000Z",
"amount_cents": 5000
"datetime": "2020-02-01T12:00:00.000Z",
"balance_change_cents": 5000
}
],
"nullable": false,
"items": {
"type": "object"
}
},
"usage_log": {
"type": "object",
"description": "The gift card usage log. Tracks all the gift card usage actions by orders.",
"example": {
"eNoKkhmbNp": [
{
"action": "use",
"amount_cents": -1000,
"balance_cents": 4000,
"datetime": "2020-02-01T12:00:00.000Z"
}
]
},
"nullable": false
},
"single_use": {
"type": "boolean",
"description": "Indicates if the gift card can be used only one.",
Expand Down Expand Up @@ -75823,6 +75838,12 @@
"example": true,
"nullable": false
},
"_fulfill": {
"type": "boolean",
"description": "Send this attribute if you want to mark as fulfilled a shipped/delivered order.",
"example": true,
"nullable": false
},
"_update_taxes": {
"type": "boolean",
"description": "Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market).",
Expand Down Expand Up @@ -92635,13 +92656,13 @@
"properties": {
"number": {
"type": "string",
"description": "Unique identifier for the shipment",
"description": "Unique identifier for the shipment.",
"example": "#1234/S/001",
"nullable": true
"nullable": false
},
"status": {
"type": "string",
"description": "The shipment status, one of 'draft', 'upcoming', 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', or 'shipped'.",
"description": "The shipment status, one of 'draft', 'upcoming', 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', 'shipped', or 'delivered'.",
"example": "draft",
"nullable": false,
"enum": [
Expand All @@ -92652,7 +92673,8 @@
"picking",
"packing",
"ready_to_ship",
"shipped"
"shipped",
"delivered"
]
},
"currency_code": {
Expand Down Expand Up @@ -93467,6 +93489,12 @@
"attributes": {
"type": "object",
"properties": {
"number": {
"type": "string",
"description": "Unique identifier for the shipment.",
"example": "#1234/S/001",
"nullable": false
},
"_upcoming": {
"type": "boolean",
"description": "Send this attribute if you want to mark this shipment as upcoming.",
Expand Down Expand Up @@ -93503,6 +93531,12 @@
"example": true,
"nullable": false
},
"_deliver": {
"type": "boolean",
"description": "Send this attribute if you want to mark this shipment as delivered.",
"example": true,
"nullable": false
},
"_reserve_stock": {
"type": "boolean",
"description": "Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
"axios": "1.6.7"
},
"devDependencies": {
"@babel/preset-env": "^7.24.5",
"@babel/preset-typescript": "^7.24.1",
"@babel/preset-env": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@commercelayer/eslint-config-ts": "1.3.0",
"@commercelayer/js-auth": "^4.3.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/debug": "^4.1.12",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.4",
"@types/node": "^20.12.12",
"@types/node": "^20.12.13",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"inflector-js": "^1.0.1",
Expand Down
Loading

0 comments on commit ea0ecd6

Please sign in to comment.