Skip to content

Commit 57234f7

Browse files
authored
chore: synced file(s) with sumup/apis (#61)
1 parent 0e74a3e commit 57234f7

3 files changed

Lines changed: 71 additions & 5 deletions

File tree

openapi.json

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5455,7 +5455,7 @@
54555455
"post": {
54565456
"operationId": "CreateReaderCheckout",
54575457
"summary": "Create a Reader Checkout",
5458-
"description": "Creates a Checkout for a Reader.\n\nThis process is asynchronous and the actual transaction may take some time to be stared on the device.\n\n\nThere are some caveats when using this endpoint:\n* The target device must be online, otherwise checkout won't be accepted\n* After the checkout is accepted, the system has 60 seconds to start the payment on the target device. During this time, any other checkout for the same device will be rejected.\n\n\n**Note**: If the target device is a Solo, it must be in version 3.3.24.3 or higher.\n",
5458+
"description": "Creates a Checkout for a Reader.\n\nThis process is asynchronous and the actual transaction may take some time to be started on the device.\n\n\nThere are some caveats when using this endpoint:\n* The target device must be online, otherwise checkout won't be accepted\n* After the checkout is accepted, the system has 60 seconds to start the payment on the target device. During this time, any other checkout for the same device will be rejected.\n\n\n**Note**: If the target device is a Solo, it must be in version 3.3.24.3 or higher.\n",
54595459
"parameters": [
54605460
{
54615461
"name": "merchant_code",
@@ -5509,6 +5509,12 @@
55095509
}
55105510
},
55115511
"application/problem+json": {
5512+
"example": {
5513+
"detail": "Bad Request",
5514+
"status": 400,
5515+
"title": "Bad Request",
5516+
"type": "https://developer.sumup.com/problem/bad-request"
5517+
},
55125518
"schema": {
55135519
"$ref": "#/components/schemas/Problem"
55145520
}
@@ -5524,6 +5530,12 @@
55245530
}
55255531
},
55265532
"application/problem+json": {
5533+
"example": {
5534+
"detail": "Unauthorized",
5535+
"status": 401,
5536+
"title": "Unauthorized",
5537+
"type": "https://developer.sumup.com/problem/unauthorized"
5538+
},
55275539
"schema": {
55285540
"$ref": "#/components/schemas/Problem"
55295541
}
@@ -5539,6 +5551,12 @@
55395551
}
55405552
},
55415553
"application/problem+json": {
5554+
"example": {
5555+
"detail": "The requested resource doesn't exist or does not belong to you.",
5556+
"status": 404,
5557+
"title": "Requested resource couldn't be found.",
5558+
"type": "https://developer.sumup.com/problem/not-found"
5559+
},
55425560
"schema": {
55435561
"$ref": "#/components/schemas/Problem"
55445562
}
@@ -5554,6 +5572,12 @@
55545572
}
55555573
},
55565574
"application/problem+json": {
5575+
"example": {
5576+
"detail": "Validation failed",
5577+
"status": 422,
5578+
"title": "Unprocessable Entity",
5579+
"type": "https://developer.sumup.com/problem/validation-error"
5580+
},
55575581
"schema": {
55585582
"$ref": "#/components/schemas/Problem"
55595583
}
@@ -5656,6 +5680,12 @@
56565680
}
56575681
},
56585682
"application/problem+json": {
5683+
"example": {
5684+
"detail": "Bad Request",
5685+
"status": 400,
5686+
"title": "Bad Request",
5687+
"type": "https://developer.sumup.com/problem/bad-request"
5688+
},
56595689
"schema": {
56605690
"$ref": "#/components/schemas/Problem"
56615691
}
@@ -5671,6 +5701,12 @@
56715701
}
56725702
},
56735703
"application/problem+json": {
5704+
"example": {
5705+
"detail": "Unauthorized",
5706+
"status": 401,
5707+
"title": "Unauthorized",
5708+
"type": "https://developer.sumup.com/problem/unauthorized"
5709+
},
56745710
"schema": {
56755711
"$ref": "#/components/schemas/Problem"
56765712
}
@@ -5686,6 +5722,12 @@
56865722
}
56875723
},
56885724
"application/problem+json": {
5725+
"example": {
5726+
"detail": "The requested resource doesn't exist or does not belong to you.",
5727+
"status": 404,
5728+
"title": "Requested resource couldn't be found.",
5729+
"type": "https://developer.sumup.com/problem/not-found"
5730+
},
56895731
"schema": {
56905732
"$ref": "#/components/schemas/Problem"
56915733
}
@@ -5768,6 +5810,12 @@
57685810
}
57695811
},
57705812
"application/problem+json": {
5813+
"example": {
5814+
"detail": "Bad Request",
5815+
"status": 400,
5816+
"title": "Bad Request",
5817+
"type": "https://developer.sumup.com/problem/bad-request"
5818+
},
57715819
"schema": {
57725820
"$ref": "#/components/schemas/Problem"
57735821
}
@@ -5783,6 +5831,12 @@
57835831
}
57845832
},
57855833
"application/problem+json": {
5834+
"example": {
5835+
"detail": "Unauthorized",
5836+
"status": 401,
5837+
"title": "Unauthorized",
5838+
"type": "https://developer.sumup.com/problem/unauthorized"
5839+
},
57865840
"schema": {
57875841
"$ref": "#/components/schemas/Problem"
57885842
}
@@ -5798,6 +5852,12 @@
57985852
}
57995853
},
58005854
"application/problem+json": {
5855+
"example": {
5856+
"detail": "The requested resource doesn't exist or does not belong to you.",
5857+
"status": 404,
5858+
"title": "Requested resource couldn't be found.",
5859+
"type": "https://developer.sumup.com/problem/not-found"
5860+
},
58015861
"schema": {
58025862
"$ref": "#/components/schemas/Problem"
58035863
}
@@ -5813,6 +5873,12 @@
58135873
}
58145874
},
58155875
"application/problem+json": {
5876+
"example": {
5877+
"detail": "The device is offline.",
5878+
"status": 422,
5879+
"title": "Reader Offline",
5880+
"type": "https://developer.sumup.com/problem/reader-offline"
5881+
},
58165882
"schema": {
58175883
"$ref": "#/components/schemas/Problem"
58185884
}

src/main/java/com/sumup/sdk/clients/ReadersAsyncClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public CompletableFuture<com.sumup.sdk.models.Reader> createReader(
8181
* Create a Reader Checkout
8282
*
8383
* <p>Creates a Checkout for a Reader. This process is asynchronous and the actual transaction may
84-
* take some time to be stared on the device. There are some caveats when using this endpoint: *
84+
* take some time to be started on the device. There are some caveats when using this endpoint: *
8585
* The target device must be online, otherwise checkout won't be accepted * After the checkout is
8686
* accepted, the system has 60 seconds to start the payment on the target device. During this
8787
* time, any other checkout for the same device will be rejected. **Note**: If the target device
@@ -110,7 +110,7 @@ public CompletableFuture<com.sumup.sdk.models.CreateReaderCheckoutResponse> crea
110110
* Create a Reader Checkout
111111
*
112112
* <p>Creates a Checkout for a Reader. This process is asynchronous and the actual transaction may
113-
* take some time to be stared on the device. There are some caveats when using this endpoint: *
113+
* take some time to be started on the device. There are some caveats when using this endpoint: *
114114
* The target device must be online, otherwise checkout won't be accepted * After the checkout is
115115
* accepted, the system has 60 seconds to start the payment on the target device. During this
116116
* time, any other checkout for the same device will be rejected. **Note**: If the target device

src/main/java/com/sumup/sdk/clients/ReadersClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public com.sumup.sdk.models.Reader createReader(
8080
* Create a Reader Checkout
8181
*
8282
* <p>Creates a Checkout for a Reader. This process is asynchronous and the actual transaction may
83-
* take some time to be stared on the device. There are some caveats when using this endpoint: *
83+
* take some time to be started on the device. There are some caveats when using this endpoint: *
8484
* The target device must be online, otherwise checkout won't be accepted * After the checkout is
8585
* accepted, the system has 60 seconds to start the payment on the target device. During this
8686
* time, any other checkout for the same device will be rejected. **Note**: If the target device
@@ -108,7 +108,7 @@ public com.sumup.sdk.models.CreateReaderCheckoutResponse createReaderCheckout(
108108
* Create a Reader Checkout
109109
*
110110
* <p>Creates a Checkout for a Reader. This process is asynchronous and the actual transaction may
111-
* take some time to be stared on the device. There are some caveats when using this endpoint: *
111+
* take some time to be started on the device. There are some caveats when using this endpoint: *
112112
* The target device must be online, otherwise checkout won't be accepted * After the checkout is
113113
* accepted, the system has 60 seconds to start the payment on the target device. During this
114114
* time, any other checkout for the same device will be rejected. **Note**: If the target device

0 commit comments

Comments
 (0)