Skip to content

Commit ffe8d46

Browse files
authored
chore: synced file(s) with sumup/apis (#91)
1 parent b544b04 commit ffe8d46

9 files changed

Lines changed: 151 additions & 145 deletions

openapi.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7180,14 +7180,7 @@
71807180
"example": "2020-02-29T10:56:56.876Z"
71817181
},
71827182
"status": {
7183-
"description": "Current status of the transaction.",
7184-
"type": "string",
7185-
"enum": [
7186-
"SUCCESSFUL",
7187-
"CANCELLED",
7188-
"FAILED",
7189-
"PENDING"
7190-
]
7183+
"$ref": "#/components/schemas/TransactionStatus"
71917184
},
71927185
"payment_type": {
71937186
"$ref": "#/components/schemas/PaymentType"
@@ -7650,6 +7643,18 @@
76507643
],
76517644
"title": "Currency"
76527645
},
7646+
"TransactionStatus": {
7647+
"description": "Current status of the transaction.\n\n- `PENDING`: The transaction has been created but its final outcome is not known yet.\n- `SUCCESSFUL`: The transaction completed successfully.\n- `CANCELLED`: The transaction was cancelled or otherwise reversed before completion.\n- `FAILED`: The transaction attempt did not complete successfully.\n- `REFUNDED`: The transaction was refunded in full or in part.",
7648+
"type": "string",
7649+
"enum": [
7650+
"SUCCESSFUL",
7651+
"CANCELLED",
7652+
"FAILED",
7653+
"PENDING",
7654+
"REFUNDED"
7655+
],
7656+
"title": "Transaction Status"
7657+
},
76537658
"EventType": {
76547659
"description": "Type of the transaction event.",
76557660
"type": "string",

src/main/java/com/sumup/sdk/models/CheckoutSuccessTransactionsItem.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ public record CheckoutSuccessTransactionsItem(
3232
/** Payment type used for the transaction. */
3333
com.sumup.sdk.models.PaymentType paymentType,
3434

35-
/** Current status of the transaction. */
36-
com.sumup.sdk.models.TransactionFullStatus status,
35+
/**
36+
* Current status of the transaction. - `PENDING`: The transaction has been created but its
37+
* final outcome is not known yet. - `SUCCESSFUL`: The transaction completed successfully. -
38+
* `CANCELLED`: The transaction was cancelled or otherwise reversed before completion. -
39+
* `FAILED`: The transaction attempt did not complete successfully. - `REFUNDED`: The
40+
* transaction was refunded in full or in part.
41+
*/
42+
com.sumup.sdk.models.TransactionStatus status,
3743

3844
/**
3945
* Date and time of the creation of the transaction. Response format expressed according to
@@ -70,7 +76,7 @@ public static final class Builder {
7076
private Long installmentsCount;
7177
private String merchantCode;
7278
private com.sumup.sdk.models.PaymentType paymentType;
73-
private com.sumup.sdk.models.TransactionFullStatus status;
79+
private com.sumup.sdk.models.TransactionStatus status;
7480
private java.time.OffsetDateTime timestamp;
7581
private Float tipAmount;
7682
private String transactionCode;
@@ -171,10 +177,14 @@ public Builder paymentType(com.sumup.sdk.models.PaymentType paymentType) {
171177
/**
172178
* Sets the value for {@code status}.
173179
*
174-
* @param status Current status of the transaction.
180+
* @param status Current status of the transaction. - `PENDING`: The transaction has been
181+
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
182+
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
183+
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
184+
* `REFUNDED`: The transaction was refunded in full or in part.
175185
* @return This builder instance.
176186
*/
177-
public Builder status(com.sumup.sdk.models.TransactionFullStatus status) {
187+
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
178188
this.status = status;
179189
return this;
180190
}

src/main/java/com/sumup/sdk/models/CheckoutTransactionsItem.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ public record CheckoutTransactionsItem(
3232
/** Payment type used for the transaction. */
3333
com.sumup.sdk.models.PaymentType paymentType,
3434

35-
/** Current status of the transaction. */
36-
com.sumup.sdk.models.TransactionFullStatus status,
35+
/**
36+
* Current status of the transaction. - `PENDING`: The transaction has been created but its
37+
* final outcome is not known yet. - `SUCCESSFUL`: The transaction completed successfully. -
38+
* `CANCELLED`: The transaction was cancelled or otherwise reversed before completion. -
39+
* `FAILED`: The transaction attempt did not complete successfully. - `REFUNDED`: The
40+
* transaction was refunded in full or in part.
41+
*/
42+
com.sumup.sdk.models.TransactionStatus status,
3743

3844
/**
3945
* Date and time of the creation of the transaction. Response format expressed according to
@@ -70,7 +76,7 @@ public static final class Builder {
7076
private Long installmentsCount;
7177
private String merchantCode;
7278
private com.sumup.sdk.models.PaymentType paymentType;
73-
private com.sumup.sdk.models.TransactionFullStatus status;
79+
private com.sumup.sdk.models.TransactionStatus status;
7480
private java.time.OffsetDateTime timestamp;
7581
private Float tipAmount;
7682
private String transactionCode;
@@ -171,10 +177,14 @@ public Builder paymentType(com.sumup.sdk.models.PaymentType paymentType) {
171177
/**
172178
* Sets the value for {@code status}.
173179
*
174-
* @param status Current status of the transaction.
180+
* @param status Current status of the transaction. - `PENDING`: The transaction has been
181+
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
182+
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
183+
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
184+
* `REFUNDED`: The transaction was refunded in full or in part.
175185
* @return This builder instance.
176186
*/
177-
public Builder status(com.sumup.sdk.models.TransactionFullStatus status) {
187+
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
178188
this.status = status;
179189
return this;
180190
}

src/main/java/com/sumup/sdk/models/TransactionBase.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ public record TransactionBase(
2121
/** Payment type used for the transaction. */
2222
com.sumup.sdk.models.PaymentType paymentType,
2323

24-
/** Current status of the transaction. */
25-
com.sumup.sdk.models.TransactionBaseStatus status,
24+
/**
25+
* Current status of the transaction. - `PENDING`: The transaction has been created but its
26+
* final outcome is not known yet. - `SUCCESSFUL`: The transaction completed successfully. -
27+
* `CANCELLED`: The transaction was cancelled or otherwise reversed before completion. -
28+
* `FAILED`: The transaction attempt did not complete successfully. - `REFUNDED`: The
29+
* transaction was refunded in full or in part.
30+
*/
31+
com.sumup.sdk.models.TransactionStatus status,
2632

2733
/**
2834
* Date and time of the creation of the transaction. Response format expressed according to
@@ -50,7 +56,7 @@ public static final class Builder {
5056
private String id;
5157
private Long installmentsCount;
5258
private com.sumup.sdk.models.PaymentType paymentType;
53-
private com.sumup.sdk.models.TransactionBaseStatus status;
59+
private com.sumup.sdk.models.TransactionStatus status;
5460
private java.time.OffsetDateTime timestamp;
5561
private String transactionCode;
5662

@@ -115,10 +121,14 @@ public Builder paymentType(com.sumup.sdk.models.PaymentType paymentType) {
115121
/**
116122
* Sets the value for {@code status}.
117123
*
118-
* @param status Current status of the transaction.
124+
* @param status Current status of the transaction. - `PENDING`: The transaction has been
125+
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
126+
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
127+
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
128+
* `REFUNDED`: The transaction was refunded in full or in part.
119129
* @return This builder instance.
120130
*/
121-
public Builder status(com.sumup.sdk.models.TransactionBaseStatus status) {
131+
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
122132
this.status = status;
123133
return this;
124134
}

src/main/java/com/sumup/sdk/models/TransactionBaseStatus.java

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/TransactionFull.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,14 @@ public record TransactionFull(
130130
*/
131131
com.sumup.sdk.models.TransactionFullSimpleStatus simpleStatus,
132132

133-
/** Current status of the transaction. */
134-
com.sumup.sdk.models.TransactionFullStatus status,
133+
/**
134+
* Current status of the transaction. - `PENDING`: The transaction has been created but its
135+
* final outcome is not known yet. - `SUCCESSFUL`: The transaction completed successfully. -
136+
* `CANCELLED`: The transaction was cancelled or otherwise reversed before completion. -
137+
* `FAILED`: The transaction attempt did not complete successfully. - `REFUNDED`: The
138+
* transaction was refunded in full or in part.
139+
*/
140+
com.sumup.sdk.models.TransactionStatus status,
135141

136142
/** Indicates whether tax deduction is enabled for the transaction. */
137143
Boolean taxEnabled,
@@ -207,7 +213,7 @@ public static final class Builder {
207213
private java.util.List<com.sumup.sdk.models.Product> products;
208214
private com.sumup.sdk.models.TransactionFullSimplePaymentType simplePaymentType;
209215
private com.sumup.sdk.models.TransactionFullSimpleStatus simpleStatus;
210-
private com.sumup.sdk.models.TransactionFullStatus status;
216+
private com.sumup.sdk.models.TransactionStatus status;
211217
private Boolean taxEnabled;
212218
private java.time.OffsetDateTime timestamp;
213219
private Float tipAmount;
@@ -597,10 +603,14 @@ public Builder simpleStatus(com.sumup.sdk.models.TransactionFullSimpleStatus sim
597603
/**
598604
* Sets the value for {@code status}.
599605
*
600-
* @param status Current status of the transaction.
606+
* @param status Current status of the transaction. - `PENDING`: The transaction has been
607+
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
608+
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
609+
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
610+
* `REFUNDED`: The transaction was refunded in full or in part.
601611
* @return This builder instance.
602612
*/
603-
public Builder status(com.sumup.sdk.models.TransactionFullStatus status) {
613+
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
604614
this.status = status;
605615
return this;
606616
}

src/main/java/com/sumup/sdk/models/TransactionFullStatus.java

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/TransactionHistory.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ public record TransactionHistory(
5151
/** Total refunded amount. */
5252
Double refundedAmount,
5353

54-
/** Current status of the transaction. */
55-
com.sumup.sdk.models.TransactionFullStatus status,
54+
/**
55+
* Current status of the transaction. - `PENDING`: The transaction has been created but its
56+
* final outcome is not known yet. - `SUCCESSFUL`: The transaction completed successfully. -
57+
* `CANCELLED`: The transaction was cancelled or otherwise reversed before completion. -
58+
* `FAILED`: The transaction attempt did not complete successfully. - `REFUNDED`: The
59+
* transaction was refunded in full or in part.
60+
*/
61+
com.sumup.sdk.models.TransactionStatus status,
5662

5763
/**
5864
* Date and time of the creation of the transaction. Response format expressed according to
@@ -98,7 +104,7 @@ public static final class Builder {
98104
private Long payoutsTotal;
99105
private String productSummary;
100106
private Double refundedAmount;
101-
private com.sumup.sdk.models.TransactionFullStatus status;
107+
private com.sumup.sdk.models.TransactionStatus status;
102108
private java.time.OffsetDateTime timestamp;
103109
private String transactionCode;
104110
private com.sumup.sdk.models.TransactionId transactionId;
@@ -269,10 +275,14 @@ public Builder refundedAmount(Double refundedAmount) {
269275
/**
270276
* Sets the value for {@code status}.
271277
*
272-
* @param status Current status of the transaction.
278+
* @param status Current status of the transaction. - `PENDING`: The transaction has been
279+
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
280+
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
281+
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
282+
* `REFUNDED`: The transaction was refunded in full or in part.
273283
* @return This builder instance.
274284
*/
275-
public Builder status(com.sumup.sdk.models.TransactionFullStatus status) {
285+
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
276286
this.status = status;
277287
return this;
278288
}

0 commit comments

Comments
 (0)