fix: merge
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"customer": {
|
||||
"user": {
|
||||
"$ref": "#/components/schemas/user"
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"customer": {
|
||||
"user": {
|
||||
"$ref": "#/components/schemas/user"
|
||||
}
|
||||
}
|
||||
@@ -1904,7 +1904,7 @@
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"required": true,
|
||||
"description": "The id of the Swap.",
|
||||
"description": "The id of the Order.",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -2194,7 +2194,7 @@
|
||||
"get": {
|
||||
"operationId": "GetOrders",
|
||||
"summary": "List Orders",
|
||||
"description": "Retrieves an list of Orders",
|
||||
"description": "Retrieves a list of Orders",
|
||||
"tags": [
|
||||
"Order"
|
||||
],
|
||||
@@ -2205,8 +2205,11 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"order": {
|
||||
"$ref": "#/components/schemas/order"
|
||||
"orders": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/order"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2503,6 +2506,14 @@
|
||||
"description": "The id of the Line Item.",
|
||||
"type": "string"
|
||||
},
|
||||
"reason_id": {
|
||||
"description": "The id of the Return Reason to use.",
|
||||
"type": "string"
|
||||
},
|
||||
"note": {
|
||||
"description": "An optional note with information about the Return.",
|
||||
"type": "string"
|
||||
},
|
||||
"quantity": {
|
||||
"description": "The quantity of the Line Item.",
|
||||
"type": "integer"
|
||||
@@ -4554,6 +4565,183 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/return-reasons": {
|
||||
"post": {
|
||||
"operationId": "PostReturnReasons",
|
||||
"summary": "Create a Return Reason",
|
||||
"description": "Creates a Return Reason",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"label": {
|
||||
"description": "The label to display to the Customer.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "The value that the Return Reason will be identified by. Must be unique.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "An optional description to for the Reason.",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "An optional set of key-value pairs with additional information.",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Return Reason"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"return_reason": {
|
||||
"$ref": "#/components/schemas/return_reason"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"get": {
|
||||
"operationId": "GetReturnReasons",
|
||||
"summary": "List Return Reasons",
|
||||
"description": "Retrieves a list of Return Reasons.",
|
||||
"tags": [
|
||||
"Return Reason"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"return_reasons": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/return_reason"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/return-reasons/{id}": {
|
||||
"get": {
|
||||
"operationId": "GetReturnReasonsReason",
|
||||
"summary": "Retrieve a Return Reason",
|
||||
"description": "Retrieves a Return Reason.",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"required": true,
|
||||
"description": "The id of the Return Reason.",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Return Reason"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"return_reason": {
|
||||
"$ref": "#/components/schemas/return_reason"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"operationId": "PostReturnReasonsReason",
|
||||
"summary": "Update a Return Reason",
|
||||
"description": "Updates a Return Reason",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "id",
|
||||
"required": true,
|
||||
"description": "The id of the Return Reason.",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"label": {
|
||||
"description": "The label to display to the Customer.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "The value that the Return Reason will be identified by. Must be unique.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "An optional description to for the Reason.",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "An optional set of key-value pairs with additional information.",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Return Reason"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"return_reason": {
|
||||
"$ref": "#/components/schemas/return_reason"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/returns": {
|
||||
"get": {
|
||||
"operationId": "GetReturns",
|
||||
@@ -5051,35 +5239,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/swaps": {
|
||||
"get": {
|
||||
"operationId": "GetSwaps",
|
||||
"summary": "List Swaps",
|
||||
"description": "Retrieves a list of Swaps.",
|
||||
"tags": [
|
||||
"Swap"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"swaps": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/swap"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/store/currencies/{code}": {
|
||||
"post": {
|
||||
"operationId": "PostStoreCurrenciesCode",
|
||||
@@ -5253,6 +5412,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/swaps": {
|
||||
"get": {
|
||||
"operationId": "GetSwaps",
|
||||
"summary": "List Swaps",
|
||||
"description": "Retrieves a list of Swaps.",
|
||||
"tags": [
|
||||
"Swap"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"properties": {
|
||||
"swaps": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/swap"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/variants": {
|
||||
"get": {
|
||||
"operationId": "GetVariants",
|
||||
@@ -7412,6 +7600,60 @@
|
||||
"description": "The quantity that was received in the warehouse.",
|
||||
"type": "integer"
|
||||
},
|
||||
"reason": {
|
||||
"description": "The reason for returning the item.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/return_reason"
|
||||
}
|
||||
]
|
||||
},
|
||||
"note": {
|
||||
"description": "An optional note with additional details about the Return.",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "An optional key-value map with additional information.",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"return_reason": {
|
||||
"title": "Return Reason",
|
||||
"description": "A Reason for why a given product is returned. A Return Reason can be used on Return Items in order to indicate why a Line Item was returned.",
|
||||
"x-resourceId": "return_reason",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "The id of the Return Reason will start with `rr_`.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"description": "A description of the Reason.",
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"description": "A text that can be displayed to the Customer as a reason.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "The value to identify the reason by.",
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"description": "The date with timezone at which the resource was created.",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"updated_at": {
|
||||
"description": "The date with timezone at which the resource was last updated.",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"deleted_at": {
|
||||
"description": "The date with timezone at which the resource was deleted.",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "An optional key-value map with additional information.",
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user