Skip to content

Commit

Permalink
feat: update resources to schema v5.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed May 24, 2024
1 parent bb9f93a commit 8ec6100
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 12 additions & 1 deletion 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.1",
"version": "5.3.2",
"contact": {
"name": "API Support",
"url": "https://commercelayer.io",
Expand Down Expand Up @@ -104146,6 +104146,11 @@
"attributes": {
"type": "object",
"properties": {
"number": {
"type": "string",
"description": "Unique identifier for the stock transfer (numeric).",
"example": "1234"
},
"sku_code": {
"type": "string",
"description": "The code of the associated SKU.",
Expand Down Expand Up @@ -104346,6 +104351,12 @@
"attributes": {
"type": "object",
"properties": {
"number": {
"type": "string",
"description": "Unique identifier for the stock transfer (numeric).",
"example": "1234",
"nullable": true
},
"sku_code": {
"type": "string",
"description": "The code of the associated SKU.",
Expand Down
2 changes: 1 addition & 1 deletion src/commercelayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Debug from './debug'
const debug = Debug('commercelayer')

// Autogenerated schema version number, do not remove this line
const OPEN_API_SCHEMA_VERSION = '5.3.1'
const OPEN_API_SCHEMA_VERSION = '5.3.2'
export { OPEN_API_SCHEMA_VERSION }


Expand Down
2 changes: 2 additions & 0 deletions src/resources/stock_transfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ interface StockTransfer extends Resource {

interface StockTransferCreate extends ResourceCreate {

number?: string
sku_code?: string
quantity: number

Expand All @@ -52,6 +53,7 @@ interface StockTransferCreate extends ResourceCreate {

interface StockTransferUpdate extends ResourceUpdate {

number?: string
sku_code?: string
_upcoming?: boolean
_on_hold?: boolean
Expand Down

0 comments on commit 8ec6100

Please sign in to comment.