Skip to content

Commit

Permalink
fix for sdk generator
Browse files Browse the repository at this point in the history
  • Loading branch information
p-zielinski committed Nov 20, 2023
1 parent 872508a commit dc9bff1
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 63 deletions.
1 change: 0 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

**Added schemas**
- ExportOrderRequest
- ExportResponseBase

- POST `/v1/orders/import`
- Request body schema was replaced with new one: `OrdersImportRequestBody` (old one: `10_req_orders_import`)
Expand Down
165 changes: 103 additions & 62 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -27048,14 +27048,6 @@
"metadata"
]
},
"CustomersUpdateInBulkRequestBody": {
"type": "array",
"title": "Update Customers in bulk Request Body",
"description": "Request body schema for `/customers/bulk/async`.",
"items": {
"$ref": "#/components/schemas/CustomersUpdateInBulkItemRequestBody"
}
},
"CustomersUpdateInBulkItemRequestBody": {
"title": "Update Customers in bulk Request Body",
"description": "Request body schema for `/customers/bulk/async`.",
Expand Down Expand Up @@ -29403,7 +29395,53 @@
],
"allOf": [
{
"$ref": "#/components/schemas/ExportResponseBase"
"title": "Export Response Base",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique export ID."
},
"object": {
"type": "string",
"enum": [
"export"
],
"description": "The type of object being represented. This object stores information about the export."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp representing the date and time when the export was scheduled in ISO 8601 format."
},
"status": {
"type": "string",
"description": "Status of the export. Informs you whether the export has already been completed, i.e. indicates whether the file containing the exported data has been generated.",
"enum": [
"SCHEDULED"
]
},
"channel": {
"type": "string",
"description": "The channel through which the export was triggered."
},
"result": {
"type": "null",
"description": "Contains the URL of the CSV file."
},
"user_id": {
"type": "string",
"description": "Identifies the specific user who initiated the export through the Voucherify Dashboard; returned when the channel value is WEBSITE."
}
},
"required": [
"id",
"object",
"created_at",
"status",
"result",
"user_id"
]
},
{
"$ref": "#/components/schemas/ExportPublication"
Expand Down Expand Up @@ -36379,59 +36417,58 @@
}
]
},
"ExportResponseBase": {
"title": "Export Response Base",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique export ID."
},
"object": {
"type": "string",
"enum": [
"export"
],
"description": "The type of object being represented. This object stores information about the export."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp representing the date and time when the export was scheduled in ISO 8601 format."
},
"status": {
"type": "string",
"description": "Status of the export. Informs you whether the export has already been completed, i.e. indicates whether the file containing the exported data has been generated.",
"enum": [
"SCHEDULED"
]
},
"channel": {
"type": "string",
"description": "The channel through which the export was triggered."
},
"result": {
"type": "null",
"description": "Contains the URL of the CSV file."
},
"user_id": {
"type": "string",
"description": "Identifies the specific user who initiated the export through the Voucherify Dashboard; returned when the channel value is WEBSITE."
}
},
"required": [
"id",
"object",
"created_at",
"status",
"result",
"user_id"
]
},
"ExportsCreateResponseBody": {
"title": "Exports Create Response Body",
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/ExportResponseBase"
"title": "Export Response Base",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique export ID."
},
"object": {
"type": "string",
"enum": [
"export"
],
"description": "The type of object being represented. This object stores information about the export."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp representing the date and time when the export was scheduled in ISO 8601 format."
},
"status": {
"type": "string",
"description": "Status of the export. Informs you whether the export has already been completed, i.e. indicates whether the file containing the exported data has been generated.",
"enum": [
"SCHEDULED"
]
},
"channel": {
"type": "string",
"description": "The channel through which the export was triggered."
},
"result": {
"type": "null",
"description": "Contains the URL of the CSV file."
},
"user_id": {
"type": "string",
"description": "Identifies the specific user who initiated the export through the Voucherify Dashboard; returned when the channel value is WEBSITE."
}
},
"required": [
"id",
"object",
"created_at",
"status",
"result",
"user_id"
]
},
{
"anyOf": [
Expand All @@ -36458,8 +36495,7 @@
}
]
}
],
"title": "Exports Create Response Body"
]
},
"ExportVoucher": {
"title": "Export Vouchers",
Expand Down Expand Up @@ -71170,7 +71206,12 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomersUpdateInBulkRequestBody"
"type": "array",
"title": "Update Customers in bulk Request Body",
"description": "Request body schema for `/customers/bulk/async`.",
"items": {
"$ref": "#/components/schemas/CustomersUpdateInBulkItemRequestBody"
}
},
"examples": {
"Example": {
Expand Down

0 comments on commit dc9bff1

Please sign in to comment.