From 4783612b8c7fac560c9e0212611d0824e62871ae Mon Sep 17 00:00:00 2001 From: appscisumup Date: Thu, 19 Feb 2026 13:44:27 +0000 Subject: [PATCH 1/2] chore: synced local 'openapi.json' with remote 'specs/openapi.json' --- openapi.json | 205 ++++++--------------------------------------------- 1 file changed, 23 insertions(+), 182 deletions(-) diff --git a/openapi.json b/openapi.json index 6b693ad..d3c76e5 100755 --- a/openapi.json +++ b/openapi.json @@ -4933,26 +4933,11 @@ } }, "404": { - "description": "No user with the specified ID exists.\n", + "description": "The requested Merchant does not exist.", "content": { - "application/json": { + "application/problem+json": { "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BaseError" - }, - { - "type": "object", - "properties": { - "category": { - "$ref": "#/components/schemas/ErrorCategoryClient" - }, - "code": { - "$ref": "#/components/schemas/ErrorCodeNotFound" - } - } - } - ] + "$ref": "#/components/schemas/Problem" } } } @@ -5028,26 +5013,11 @@ } }, "404": { - "description": "No user with the specified ID exists.\n", + "description": "The requested Merchant does not exist.", "content": { - "application/json": { + "application/problem+json": { "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BaseError" - }, - { - "type": "object", - "properties": { - "category": { - "$ref": "#/components/schemas/ErrorCategoryClient" - }, - "code": { - "$ref": "#/components/schemas/ErrorCodeNotFound" - } - } - } - ] + "$ref": "#/components/schemas/Problem" } } } @@ -5055,24 +5025,9 @@ "500": { "description": "An internal server error occurred.\n", "content": { - "application/json": { + "application/problem+json": { "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BaseError" - }, - { - "type": "object", - "properties": { - "category": { - "$ref": "#/components/schemas/ErrorCategoryServer" - }, - "code": { - "$ref": "#/components/schemas/ErrorCodeInternalServerError" - } - } - } - ] + "$ref": "#/components/schemas/Problem" } } } @@ -5162,26 +5117,11 @@ } }, "404": { - "description": "No user with the specified ID exists.\n", + "description": "The requested Person does not exist.", "content": { - "application/json": { + "application/problem+json": { "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BaseError" - }, - { - "type": "object", - "properties": { - "category": { - "$ref": "#/components/schemas/ErrorCategoryClient" - }, - "code": { - "$ref": "#/components/schemas/ErrorCodeNotFound" - } - } - } - ] + "$ref": "#/components/schemas/Problem" } } } @@ -5189,24 +5129,9 @@ "500": { "description": "An internal server error occurred.\n", "content": { - "application/json": { + "application/problem+json": { "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BaseError" - }, - { - "type": "object", - "properties": { - "category": { - "$ref": "#/components/schemas/ErrorCategoryServer" - }, - "code": { - "$ref": "#/components/schemas/ErrorCodeInternalServerError" - } - } - } - ] + "$ref": "#/components/schemas/Problem" } } } @@ -9533,25 +9458,26 @@ "name": { "description": "The customer-facing business name.", "type": "string", - "example": "Gin & Dougnuts", + "example": "Example Coffee", "maxLength": 512 }, "dynamic_descriptor": { "description": "The descriptor is the text that your customer sees on their bank account statement.\nThe more recognisable your descriptor is, the less risk you have of receiving disputes (e.g. chargebacks).\n", "type": "string", + "example": "Example Coffee", "maxLength": 30, "pattern": "^[a-zA-Z0-9 \\-+\\'_.]{0,30}$" }, "website": { "description": "The business's publicly available website.", "type": "string", - "example": "https://gindoughnuts.com", + "example": "https://example.com", "maxLength": 512 }, "email": { "description": "A publicly available email address.", "type": "string", - "example": "contact@gindoughnuts.com", + "example": "contact@example.com", "maxLength": 256 }, "phone_number": { @@ -9876,47 +9802,6 @@ "updated_at" ] }, - "BaseError": { - "type": "object", - "properties": { - "instance": { - "description": "A unique identifier for the error instance. This can be used to trace the error back to the server logs.\n", - "type": "string" - }, - "message": { - "description": "A human-readable message describing the error that occurred.\n", - "type": "string" - } - } - }, - "ErrorCategoryClient": { - "description": "The category of the error.\n", - "type": "string", - "enum": [ - "client_error" - ] - }, - "ErrorCodeNotFound": { - "description": "An error code specifying the exact error that occurred.\n", - "type": "string", - "enum": [ - "not_found" - ] - }, - "ErrorCategoryServer": { - "description": "The category of the error.\n", - "type": "string", - "enum": [ - "server_error" - ] - }, - "ErrorCodeInternalServerError": { - "description": "An error code specifying the exact error that occurred.\n", - "type": "string", - "enum": [ - "internal_error" - ] - }, "Reader": { "description": "A physical card reader device that can accept in-person payments.", "type": "object", @@ -9936,6 +9821,12 @@ "metadata": { "$ref": "#/components/schemas/Metadata" }, + "service_account_id": { + "description": "Identifier of the system-managed service account associated with this reader.\nPresent only for readers that are already paired.\nThis field is currently in beta and may change.", + "type": "string", + "format": "uuid", + "x-beta": true + }, "created_at": { "description": "The timestamp of when the reader was created.", "type": "string", @@ -11988,56 +11879,6 @@ } } } - }, - "404NotFound": { - "description": "No user with the specified ID exists.\n", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BaseError" - }, - { - "type": "object", - "properties": { - "category": { - "$ref": "#/components/schemas/ErrorCategoryClient" - }, - "code": { - "$ref": "#/components/schemas/ErrorCodeNotFound" - } - } - } - ] - } - } - } - }, - "500InternalServerError": { - "description": "An internal server error occurred.\n", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/BaseError" - }, - { - "type": "object", - "properties": { - "category": { - "$ref": "#/components/schemas/ErrorCategoryServer" - }, - "code": { - "$ref": "#/components/schemas/ErrorCodeInternalServerError" - } - } - } - ] - } - } - } } }, "securitySchemes": { From 627734dfc061fbfb4eb312a2fbc4c9a1f4545fee Mon Sep 17 00:00:00 2001 From: "sumup-bot[bot]" <241716704+sumup-bot[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 15:09:16 +0000 Subject: [PATCH 2/2] chore: generate code --- src/Types/BaseError.php | 23 ----------------------- src/Types/Reader.php | 9 +++++++++ 2 files changed, 9 insertions(+), 23 deletions(-) delete mode 100644 src/Types/BaseError.php diff --git a/src/Types/BaseError.php b/src/Types/BaseError.php deleted file mode 100644 index 9eab788..0000000 --- a/src/Types/BaseError.php +++ /dev/null @@ -1,23 +0,0 @@ -