|
4933 | 4933 | } |
4934 | 4934 | }, |
4935 | 4935 | "404": { |
4936 | | - "description": "No user with the specified ID exists.\n", |
| 4936 | + "description": "The requested Merchant does not exist.", |
4937 | 4937 | "content": { |
4938 | | - "application/json": { |
| 4938 | + "application/problem+json": { |
4939 | 4939 | "schema": { |
4940 | | - "allOf": [ |
4941 | | - { |
4942 | | - "$ref": "#/components/schemas/BaseError" |
4943 | | - }, |
4944 | | - { |
4945 | | - "type": "object", |
4946 | | - "properties": { |
4947 | | - "category": { |
4948 | | - "$ref": "#/components/schemas/ErrorCategoryClient" |
4949 | | - }, |
4950 | | - "code": { |
4951 | | - "$ref": "#/components/schemas/ErrorCodeNotFound" |
4952 | | - } |
4953 | | - } |
4954 | | - } |
4955 | | - ] |
| 4940 | + "$ref": "#/components/schemas/Problem" |
4956 | 4941 | } |
4957 | 4942 | } |
4958 | 4943 | } |
|
5028 | 5013 | } |
5029 | 5014 | }, |
5030 | 5015 | "404": { |
5031 | | - "description": "No user with the specified ID exists.\n", |
| 5016 | + "description": "The requested Merchant does not exist.", |
5032 | 5017 | "content": { |
5033 | | - "application/json": { |
| 5018 | + "application/problem+json": { |
5034 | 5019 | "schema": { |
5035 | | - "allOf": [ |
5036 | | - { |
5037 | | - "$ref": "#/components/schemas/BaseError" |
5038 | | - }, |
5039 | | - { |
5040 | | - "type": "object", |
5041 | | - "properties": { |
5042 | | - "category": { |
5043 | | - "$ref": "#/components/schemas/ErrorCategoryClient" |
5044 | | - }, |
5045 | | - "code": { |
5046 | | - "$ref": "#/components/schemas/ErrorCodeNotFound" |
5047 | | - } |
5048 | | - } |
5049 | | - } |
5050 | | - ] |
| 5020 | + "$ref": "#/components/schemas/Problem" |
5051 | 5021 | } |
5052 | 5022 | } |
5053 | 5023 | } |
5054 | 5024 | }, |
5055 | 5025 | "500": { |
5056 | 5026 | "description": "An internal server error occurred.\n", |
5057 | 5027 | "content": { |
5058 | | - "application/json": { |
| 5028 | + "application/problem+json": { |
5059 | 5029 | "schema": { |
5060 | | - "allOf": [ |
5061 | | - { |
5062 | | - "$ref": "#/components/schemas/BaseError" |
5063 | | - }, |
5064 | | - { |
5065 | | - "type": "object", |
5066 | | - "properties": { |
5067 | | - "category": { |
5068 | | - "$ref": "#/components/schemas/ErrorCategoryServer" |
5069 | | - }, |
5070 | | - "code": { |
5071 | | - "$ref": "#/components/schemas/ErrorCodeInternalServerError" |
5072 | | - } |
5073 | | - } |
5074 | | - } |
5075 | | - ] |
| 5030 | + "$ref": "#/components/schemas/Problem" |
5076 | 5031 | } |
5077 | 5032 | } |
5078 | 5033 | } |
|
5162 | 5117 | } |
5163 | 5118 | }, |
5164 | 5119 | "404": { |
5165 | | - "description": "No user with the specified ID exists.\n", |
| 5120 | + "description": "The requested Person does not exist.", |
5166 | 5121 | "content": { |
5167 | | - "application/json": { |
| 5122 | + "application/problem+json": { |
5168 | 5123 | "schema": { |
5169 | | - "allOf": [ |
5170 | | - { |
5171 | | - "$ref": "#/components/schemas/BaseError" |
5172 | | - }, |
5173 | | - { |
5174 | | - "type": "object", |
5175 | | - "properties": { |
5176 | | - "category": { |
5177 | | - "$ref": "#/components/schemas/ErrorCategoryClient" |
5178 | | - }, |
5179 | | - "code": { |
5180 | | - "$ref": "#/components/schemas/ErrorCodeNotFound" |
5181 | | - } |
5182 | | - } |
5183 | | - } |
5184 | | - ] |
| 5124 | + "$ref": "#/components/schemas/Problem" |
5185 | 5125 | } |
5186 | 5126 | } |
5187 | 5127 | } |
5188 | 5128 | }, |
5189 | 5129 | "500": { |
5190 | 5130 | "description": "An internal server error occurred.\n", |
5191 | 5131 | "content": { |
5192 | | - "application/json": { |
| 5132 | + "application/problem+json": { |
5193 | 5133 | "schema": { |
5194 | | - "allOf": [ |
5195 | | - { |
5196 | | - "$ref": "#/components/schemas/BaseError" |
5197 | | - }, |
5198 | | - { |
5199 | | - "type": "object", |
5200 | | - "properties": { |
5201 | | - "category": { |
5202 | | - "$ref": "#/components/schemas/ErrorCategoryServer" |
5203 | | - }, |
5204 | | - "code": { |
5205 | | - "$ref": "#/components/schemas/ErrorCodeInternalServerError" |
5206 | | - } |
5207 | | - } |
5208 | | - } |
5209 | | - ] |
| 5134 | + "$ref": "#/components/schemas/Problem" |
5210 | 5135 | } |
5211 | 5136 | } |
5212 | 5137 | } |
|
9533 | 9458 | "name": { |
9534 | 9459 | "description": "The customer-facing business name.", |
9535 | 9460 | "type": "string", |
9536 | | - "example": "Gin & Dougnuts", |
| 9461 | + "example": "Example Coffee", |
9537 | 9462 | "maxLength": 512 |
9538 | 9463 | }, |
9539 | 9464 | "dynamic_descriptor": { |
9540 | 9465 | "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", |
9541 | 9466 | "type": "string", |
| 9467 | + "example": "Example Coffee", |
9542 | 9468 | "maxLength": 30, |
9543 | 9469 | "pattern": "^[a-zA-Z0-9 \\-+\\'_.]{0,30}$" |
9544 | 9470 | }, |
9545 | 9471 | "website": { |
9546 | 9472 | "description": "The business's publicly available website.", |
9547 | 9473 | "type": "string", |
9548 | | - "example": "https://gindoughnuts.com", |
| 9474 | + "example": "https://example.com", |
9549 | 9475 | "maxLength": 512 |
9550 | 9476 | }, |
9551 | 9477 | "email": { |
9552 | 9478 | "description": "A publicly available email address.", |
9553 | 9479 | "type": "string", |
9554 | | - "example": "contact@gindoughnuts.com", |
| 9480 | + "example": "contact@example.com", |
9555 | 9481 | "maxLength": 256 |
9556 | 9482 | }, |
9557 | 9483 | "phone_number": { |
|
9876 | 9802 | "updated_at" |
9877 | 9803 | ] |
9878 | 9804 | }, |
9879 | | - "BaseError": { |
9880 | | - "type": "object", |
9881 | | - "properties": { |
9882 | | - "instance": { |
9883 | | - "description": "A unique identifier for the error instance. This can be used to trace the error back to the server logs.\n", |
9884 | | - "type": "string" |
9885 | | - }, |
9886 | | - "message": { |
9887 | | - "description": "A human-readable message describing the error that occurred.\n", |
9888 | | - "type": "string" |
9889 | | - } |
9890 | | - } |
9891 | | - }, |
9892 | | - "ErrorCategoryClient": { |
9893 | | - "description": "The category of the error.\n", |
9894 | | - "type": "string", |
9895 | | - "enum": [ |
9896 | | - "client_error" |
9897 | | - ] |
9898 | | - }, |
9899 | | - "ErrorCodeNotFound": { |
9900 | | - "description": "An error code specifying the exact error that occurred.\n", |
9901 | | - "type": "string", |
9902 | | - "enum": [ |
9903 | | - "not_found" |
9904 | | - ] |
9905 | | - }, |
9906 | | - "ErrorCategoryServer": { |
9907 | | - "description": "The category of the error.\n", |
9908 | | - "type": "string", |
9909 | | - "enum": [ |
9910 | | - "server_error" |
9911 | | - ] |
9912 | | - }, |
9913 | | - "ErrorCodeInternalServerError": { |
9914 | | - "description": "An error code specifying the exact error that occurred.\n", |
9915 | | - "type": "string", |
9916 | | - "enum": [ |
9917 | | - "internal_error" |
9918 | | - ] |
9919 | | - }, |
9920 | 9805 | "Reader": { |
9921 | 9806 | "description": "A physical card reader device that can accept in-person payments.", |
9922 | 9807 | "type": "object", |
|
9936 | 9821 | "metadata": { |
9937 | 9822 | "$ref": "#/components/schemas/Metadata" |
9938 | 9823 | }, |
| 9824 | + "service_account_id": { |
| 9825 | + "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.", |
| 9826 | + "type": "string", |
| 9827 | + "format": "uuid", |
| 9828 | + "x-beta": true |
| 9829 | + }, |
9939 | 9830 | "created_at": { |
9940 | 9831 | "description": "The timestamp of when the reader was created.", |
9941 | 9832 | "type": "string", |
|
11988 | 11879 | } |
11989 | 11880 | } |
11990 | 11881 | } |
11991 | | - }, |
11992 | | - "404NotFound": { |
11993 | | - "description": "No user with the specified ID exists.\n", |
11994 | | - "content": { |
11995 | | - "application/json": { |
11996 | | - "schema": { |
11997 | | - "allOf": [ |
11998 | | - { |
11999 | | - "$ref": "#/components/schemas/BaseError" |
12000 | | - }, |
12001 | | - { |
12002 | | - "type": "object", |
12003 | | - "properties": { |
12004 | | - "category": { |
12005 | | - "$ref": "#/components/schemas/ErrorCategoryClient" |
12006 | | - }, |
12007 | | - "code": { |
12008 | | - "$ref": "#/components/schemas/ErrorCodeNotFound" |
12009 | | - } |
12010 | | - } |
12011 | | - } |
12012 | | - ] |
12013 | | - } |
12014 | | - } |
12015 | | - } |
12016 | | - }, |
12017 | | - "500InternalServerError": { |
12018 | | - "description": "An internal server error occurred.\n", |
12019 | | - "content": { |
12020 | | - "application/json": { |
12021 | | - "schema": { |
12022 | | - "allOf": [ |
12023 | | - { |
12024 | | - "$ref": "#/components/schemas/BaseError" |
12025 | | - }, |
12026 | | - { |
12027 | | - "type": "object", |
12028 | | - "properties": { |
12029 | | - "category": { |
12030 | | - "$ref": "#/components/schemas/ErrorCategoryServer" |
12031 | | - }, |
12032 | | - "code": { |
12033 | | - "$ref": "#/components/schemas/ErrorCodeInternalServerError" |
12034 | | - } |
12035 | | - } |
12036 | | - } |
12037 | | - ] |
12038 | | - } |
12039 | | - } |
12040 | | - } |
12041 | 11882 | } |
12042 | 11883 | }, |
12043 | 11884 | "securitySchemes": { |
|
0 commit comments