Skip to content

Commit

Permalink
feat: update resources to schema 4.23.0 (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti authored Jan 9, 2024
1 parent 03f364f commit cd72bac
Show file tree
Hide file tree
Showing 131 changed files with 714 additions and 753 deletions.
87 changes: 83 additions & 4 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": "4.22.0",
"version": "4.23.0",
"contact": {
"name": "API Support",
"url": "https://commercelayer.io",
Expand Down Expand Up @@ -67197,6 +67197,12 @@
"example": "EU Market",
"nullable": false
},
"code": {
"type": "string",
"description": "A string that you can use to identify the market (must be unique within the environment).",
"example": "europe1",
"nullable": true
},
"facebook_pixel_id": {
"type": "string",
"description": "The Facebook Pixed ID",
Expand Down Expand Up @@ -67486,6 +67492,11 @@
"description": "The market's internal name",
"example": "EU Market"
},
"code": {
"type": "string",
"description": "A string that you can use to identify the market (must be unique within the environment).",
"example": "europe1"
},
"facebook_pixel_id": {
"type": "string",
"description": "The Facebook Pixed ID",
Expand Down Expand Up @@ -67737,6 +67748,12 @@
"example": "EU Market",
"nullable": false
},
"code": {
"type": "string",
"description": "A string that you can use to identify the market (must be unique within the environment).",
"example": "europe1",
"nullable": true
},
"facebook_pixel_id": {
"type": "string",
"description": "The Facebook Pixed ID",
Expand Down Expand Up @@ -72434,7 +72451,7 @@
},
"shipping_country_code_lock": {
"type": "string",
"description": "The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page.",
"description": "The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products.",
"example": "IT",
"nullable": true
},
Expand Down Expand Up @@ -73814,7 +73831,7 @@
},
"shipping_country_code_lock": {
"type": "string",
"description": "The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page.",
"description": "The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products.",
"example": "IT"
},
"coupon_code": {
Expand Down Expand Up @@ -74181,7 +74198,7 @@
},
"shipping_country_code_lock": {
"type": "string",
"description": "The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page.",
"description": "The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products.",
"example": "IT",
"nullable": true
},
Expand Down Expand Up @@ -82761,6 +82778,12 @@
"example": "EU Price list",
"nullable": false
},
"code": {
"type": "string",
"description": "A string that you can use to identify the price list (must be unique within the environment).",
"example": "europe1",
"nullable": true
},
"currency_code": {
"type": "string",
"description": "The international 3-letter currency code as defined by the ISO 4217 standard.",
Expand Down Expand Up @@ -82910,6 +82933,11 @@
"description": "The price list's internal name",
"example": "EU Price list"
},
"code": {
"type": "string",
"description": "A string that you can use to identify the price list (must be unique within the environment).",
"example": "europe1"
},
"currency_code": {
"type": "string",
"description": "The international 3-letter currency code as defined by the ISO 4217 standard.",
Expand Down Expand Up @@ -82986,6 +83014,12 @@
"example": "EU Price list",
"nullable": false
},
"code": {
"type": "string",
"description": "A string that you can use to identify the price list (must be unique within the environment).",
"example": "europe1",
"nullable": true
},
"currency_code": {
"type": "string",
"description": "The international 3-letter currency code as defined by the ISO 4217 standard.",
Expand Down Expand Up @@ -91554,6 +91588,12 @@
"example": "Merchandise",
"nullable": false
},
"code": {
"type": "string",
"description": "A string that you can use to identify the shipping category (must be unique within the environment).",
"example": "europe1",
"nullable": true
},
"created_at": {
"type": "string",
"description": "Time at which the resource was created.",
Expand Down Expand Up @@ -91691,6 +91731,11 @@
"description": "The shipping category name.",
"example": "Merchandise"
},
"code": {
"type": "string",
"description": "A string that you can use to identify the shipping category (must be unique within the environment).",
"example": "europe1"
},
"reference": {
"type": "string",
"description": "A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever.",
Expand Down Expand Up @@ -91756,6 +91801,12 @@
"example": "Merchandise",
"nullable": false
},
"code": {
"type": "string",
"description": "A string that you can use to identify the shipping category (must be unique within the environment).",
"example": "europe1",
"nullable": true
},
"reference": {
"type": "string",
"description": "A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever.",
Expand Down Expand Up @@ -99686,6 +99737,12 @@
"example": "Primary warehouse",
"nullable": false
},
"code": {
"type": "string",
"description": "A string that you can use to identify the stock location (must be unique within the environment).",
"example": "europe1",
"nullable": true
},
"label_format": {
"type": "string",
"description": "The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'",
Expand Down Expand Up @@ -99923,6 +99980,11 @@
"description": "The stock location's internal name.",
"example": "Primary warehouse"
},
"code": {
"type": "string",
"description": "A string that you can use to identify the stock location (must be unique within the environment).",
"example": "europe1"
},
"label_format": {
"type": "string",
"description": "The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'",
Expand Down Expand Up @@ -100027,6 +100089,12 @@
"example": "Primary warehouse",
"nullable": false
},
"code": {
"type": "string",
"description": "A string that you can use to identify the stock location (must be unique within the environment).",
"example": "europe1",
"nullable": true
},
"label_format": {
"type": "string",
"description": "The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'",
Expand Down Expand Up @@ -102438,6 +102506,12 @@
"example": "https://yourdomain.com/thankyou",
"nullable": true
},
"receipt_email": {
"type": "string",
"description": "The email address to send the receipt to.",
"example": "[email protected]",
"nullable": true
},
"payment_instrument": {
"type": "object",
"description": "Information about the payment instrument used in the transaction",
Expand Down Expand Up @@ -102592,6 +102666,11 @@
"description": "The URL where the payer is redirected after they authenticate the payment.",
"example": "https://yourdomain.com/thankyou"
},
"receipt_email": {
"type": "string",
"description": "The email address to send the receipt to.",
"example": "[email protected]"
},
"reference": {
"type": "string",
"description": "A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever.",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"axios": "1.6.1"
},
"devDependencies": {
"@babel/preset-env": "^7.23.6",
"@babel/preset-env": "^7.23.8",
"@babel/preset-typescript": "^7.23.3",
"@commercelayer/eslint-config-ts": "1.2.0",
"@commercelayer/js-auth": "^4.2.0",
Expand All @@ -45,7 +45,7 @@
"@types/debug": "^4.1.12",
"@types/jest": "^29.5.11",
"@types/lodash": "^4.14.202",
"@types/node": "^20.10.5",
"@types/node": "^20.10.7",
"dotenv": "^16.3.1",
"eslint": "^8.56.0",
"inflector-js": "^1.0.1",
Expand Down
Loading

0 comments on commit cd72bac

Please sign in to comment.