Skip to content

Commit

Permalink
feat: update resources to schema v6.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Aug 23, 2024
1 parent d702423 commit 841887e
Show file tree
Hide file tree
Showing 9 changed files with 497 additions and 202 deletions.
158 changes: 147 additions & 11 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": "6.2.1",
"version": "6.3.0",
"contact": {
"name": "API Support",
"url": "https://commercelayer.io",
Expand Down Expand Up @@ -1611,6 +1611,33 @@
}
}
},
"/avalara_accounts/{avalaraAccountId}/events": {
"get": {
"operationId": "GET/avalaraAccountId/events",
"summary": "Retrieve the events associated to the avalara account",
"description": "Retrieve the events associated to the avalara account",
"tags": [
"has_many",
"events"
],
"parameters": [
{
"name": "avalaraAccountId",
"in": "path",
"schema": {
"type": "string"
},
"required": true,
"description": "The resource's id"
}
],
"responses": {
"200": {
"description": "The events associated to the avalara account"
}
}
}
},
"/axerve_gateways": {
"get": {
"operationId": "GET/axerve_gateways",
Expand Down Expand Up @@ -35723,6 +35750,28 @@
}
}
}
},
"events": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The resource's type",
"enum": [
"events"
]
},
"id": {
"type": "string",
"description": "The resource's id",
"example": "XGZwpOSrWL"
}
}
}
}
}
}
}
Expand Down Expand Up @@ -36130,6 +36179,40 @@
}
}
}
},
"events": {
"type": "object",
"properties": {
"links": {
"type": "object",
"properties": {
"self": {
"type": "string",
"description": "URL"
},
"related": {
"type": "string",
"description": "URL"
}
}
},
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The resource's type",
"enum": [
"events"
]
},
"id": {
"type": "string",
"description": "The resource ID"
}
}
}
}
}
}
}
Expand Down Expand Up @@ -70575,6 +70658,12 @@
"example": true,
"nullable": true
},
"shipping_cost_cutoff": {
"type": "integer",
"description": "When specified indicates the maximum number of shipping line items with cost that will be added to an order.",
"example": 3,
"nullable": true
},
"disabled_at": {
"type": "string",
"description": "Time at which this resource was disabled.",
Expand Down Expand Up @@ -70920,6 +71009,11 @@
"description": "The URL used to validate orders by an external source.",
"example": "https://external_validation.yourbrand.com"
},
"shipping_cost_cutoff": {
"type": "integer",
"description": "When specified indicates the maximum number of shipping line items with cost that will be added to an order.",
"example": 3
},
"_disable": {
"type": "boolean",
"description": "Send this attribute if you want to mark this resource as disabled.",
Expand Down Expand Up @@ -71223,6 +71317,12 @@
"example": "https://external_validation.yourbrand.com",
"nullable": true
},
"shipping_cost_cutoff": {
"type": "integer",
"description": "When specified indicates the maximum number of shipping line items with cost that will be added to an order.",
"example": 3,
"nullable": true
},
"_disable": {
"type": "boolean",
"description": "Send this attribute if you want to mark this resource as disabled.",
Expand Down Expand Up @@ -79530,42 +79630,78 @@
"example": "GTM-5FJXX7",
"nullable": true
},
"max_concurrent_promotions": {
"addresses_phone_required": {
"type": "boolean",
"description": "Indicates if the phone attribute is required for addresses, default is true.",
"example": true,
"nullable": true
},
"bundles_max_items_count": {
"type": "integer",
"description": "The maximum number of SKUs allowed for bundles, default is 10.",
"example": 10,
"nullable": true
},
"coupons_min_code_length": {
"type": "integer",
"description": "The minimum length for coupon code, default is 8.",
"example": 8,
"nullable": true
},
"coupons_max_code_length": {
"type": "integer",
"description": "The maximum number of active concurrent promotions allowed for your organization.",
"description": "The maximum length for coupon code, default is 40.",
"example": 40,
"nullable": true
},
"promotions_max_concurrent_count": {
"type": "integer",
"description": "The maximum number of active concurrent promotions allowed for your organization, default is 10.",
"example": 10,
"nullable": true
},
"max_concurrent_imports": {
"imports_max_concurrent_count": {
"type": "integer",
"description": "The maximum number of concurrent imports allowed for your organization.",
"description": "The maximum number of concurrent imports allowed for your organization, default is 10.",
"example": 10,
"nullable": true
},
"max_concurrent_exports": {
"exports_max_concurrent_count": {
"type": "integer",
"description": "The maximum number of concurrent exports allowed for your organization.",
"description": "The maximum number of concurrent exports allowed for your organization, default is 10.",
"example": 10,
"nullable": true
},
"max_concurrent_cleanups": {
"cleanups_max_concurrent_count": {
"type": "integer",
"description": "The maximum number of concurrent cleanups allowed for your organization.",
"description": "The maximum number of concurrent cleanups allowed for your organization, default is 10.",
"example": 10,
"nullable": true
},
"order_number_editable_test": {
"orders_number_editable_test": {
"type": "boolean",
"description": "Enables orders number editing as a string in test (for enterprise plans only).",
"example": false,
"nullable": true
},
"order_number_editable_live": {
"orders_number_editable_live": {
"type": "boolean",
"description": "Enables orders number editing as a string in live (for enterprise plans only).",
"example": false,
"nullable": true
},
"tax_calculators_errors": {
"type": "boolean",
"description": "Enables raising of API errors in case of tax calculation failure, default is false.",
"example": true,
"nullable": true
},
"external_promotions_errors": {
"type": "boolean",
"description": "Enables raising of API errors in case of external promotion failure, default is false.",
"example": true,
"nullable": true
},
"config": {
"type": "object",
"description": "The organization's configuration.",
Expand Down
Loading

0 comments on commit 841887e

Please sign in to comment.