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 4d2cb43 commit 7800fed
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 22 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
5 changes: 3 additions & 2 deletions gen/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -31016,8 +31016,9 @@
"number": {
"type": "string",
"desc": "Unique identifier for the stock transfer (numeric).",
"creatable": false,
"updatable": false,
"required": "optional, default to numeric ID",
"creatable": true,
"updatable": true,
"fetchable": true,
"filterable": true,
"sortable": true,
Expand Down
36 changes: 18 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/commercelayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ 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
10 changes: 10 additions & 0 deletions src/resources/stock_transfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ interface StockTransfer extends Resource {

interface StockTransferCreate extends ResourceCreate {

/**
* Unique identifier for the stock transfer (numeric)..
* @example ```"1234"```
*/
number?: string | null
/**
* The code of the associated SKU..
* @example ```"TSHIRTMM000000FFFFFFXLXX"```
Expand All @@ -92,6 +97,11 @@ interface StockTransferCreate extends ResourceCreate {

interface StockTransferUpdate extends ResourceUpdate {

/**
* Unique identifier for the stock transfer (numeric)..
* @example ```"1234"```
*/
number?: string | null
/**
* The code of the associated SKU..
* @example ```"TSHIRTMM000000FFFFFFXLXX"```
Expand Down

0 comments on commit 7800fed

Please sign in to comment.