Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
205 changes: 23 additions & 182 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down Expand Up @@ -5028,51 +5013,21 @@
}
},
"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"
}
}
}
},
"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"
}
}
}
Expand Down Expand Up @@ -5162,51 +5117,21 @@
}
},
"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"
}
}
}
},
"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"
}
}
}
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
61 changes: 0 additions & 61 deletions src/main/java/com/sumup/sdk/models/BaseError.java

This file was deleted.

39 changes: 0 additions & 39 deletions src/main/java/com/sumup/sdk/models/ErrorCategoryClient.java

This file was deleted.

Loading
Loading