From dc9bff1b719e2b9f56cde61ac2a061039f8917c0 Mon Sep 17 00:00:00 2001 From: p-zielinski <82354717+p-zielinski@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:24:54 +0100 Subject: [PATCH] fix for sdk generator --- Changelog.md | 1 - reference/OpenAPI.json | 165 +++++++++++++++++++++++++---------------- 2 files changed, 103 insertions(+), 63 deletions(-) diff --git a/Changelog.md b/Changelog.md index 410dc6a27..5e229ed97 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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`) diff --git a/reference/OpenAPI.json b/reference/OpenAPI.json index 5e3efdf88..8e6fcd46a 100644 --- a/reference/OpenAPI.json +++ b/reference/OpenAPI.json @@ -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`.", @@ -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" @@ -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": [ @@ -36458,8 +36495,7 @@ } ] } - ], - "title": "Exports Create Response Body" + ] }, "ExportVoucher": { "title": "Export Vouchers", @@ -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": {