Skip to content
Open
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
21 changes: 13 additions & 8 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7180,14 +7180,7 @@
"example": "2020-02-29T10:56:56.876Z"
},
"status": {
"description": "Current status of the transaction.",
"type": "string",
"enum": [
"SUCCESSFUL",
"CANCELLED",
"FAILED",
"PENDING"
]
"$ref": "#/components/schemas/TransactionStatus"
},
"payment_type": {
"$ref": "#/components/schemas/PaymentType"
Expand Down Expand Up @@ -7650,6 +7643,18 @@
],
"title": "Currency"
},
"TransactionStatus": {
"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.",
"type": "string",
"enum": [
"SUCCESSFUL",
"CANCELLED",
"FAILED",
"PENDING",
"REFUNDED"
],
"title": "Transaction Status"
},
"EventType": {
"description": "Type of the transaction event.",
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ public record CheckoutSuccessTransactionsItem(
/** Payment type used for the transaction. */
com.sumup.sdk.models.PaymentType paymentType,

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

/**
* Date and time of the creation of the transaction. Response format expressed according to
Expand Down Expand Up @@ -70,7 +76,7 @@ public static final class Builder {
private Long installmentsCount;
private String merchantCode;
private com.sumup.sdk.models.PaymentType paymentType;
private com.sumup.sdk.models.TransactionFullStatus status;
private com.sumup.sdk.models.TransactionStatus status;
private java.time.OffsetDateTime timestamp;
private Float tipAmount;
private String transactionCode;
Expand Down Expand Up @@ -171,10 +177,14 @@ public Builder paymentType(com.sumup.sdk.models.PaymentType paymentType) {
/**
* Sets the value for {@code status}.
*
* @param status Current status of the transaction.
* @param status Current status of the transaction. - `PENDING`: The transaction has been
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
* `REFUNDED`: The transaction was refunded in full or in part.
* @return This builder instance.
*/
public Builder status(com.sumup.sdk.models.TransactionFullStatus status) {
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
this.status = status;
return this;
}
Expand Down
20 changes: 15 additions & 5 deletions src/main/java/com/sumup/sdk/models/CheckoutTransactionsItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ public record CheckoutTransactionsItem(
/** Payment type used for the transaction. */
com.sumup.sdk.models.PaymentType paymentType,

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

/**
* Date and time of the creation of the transaction. Response format expressed according to
Expand Down Expand Up @@ -70,7 +76,7 @@ public static final class Builder {
private Long installmentsCount;
private String merchantCode;
private com.sumup.sdk.models.PaymentType paymentType;
private com.sumup.sdk.models.TransactionFullStatus status;
private com.sumup.sdk.models.TransactionStatus status;
private java.time.OffsetDateTime timestamp;
private Float tipAmount;
private String transactionCode;
Expand Down Expand Up @@ -171,10 +177,14 @@ public Builder paymentType(com.sumup.sdk.models.PaymentType paymentType) {
/**
* Sets the value for {@code status}.
*
* @param status Current status of the transaction.
* @param status Current status of the transaction. - `PENDING`: The transaction has been
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
* `REFUNDED`: The transaction was refunded in full or in part.
* @return This builder instance.
*/
public Builder status(com.sumup.sdk.models.TransactionFullStatus status) {
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
this.status = status;
return this;
}
Expand Down
20 changes: 15 additions & 5 deletions src/main/java/com/sumup/sdk/models/TransactionBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ public record TransactionBase(
/** Payment type used for the transaction. */
com.sumup.sdk.models.PaymentType paymentType,

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

/**
* Date and time of the creation of the transaction. Response format expressed according to
Expand Down Expand Up @@ -50,7 +56,7 @@ public static final class Builder {
private String id;
private Long installmentsCount;
private com.sumup.sdk.models.PaymentType paymentType;
private com.sumup.sdk.models.TransactionBaseStatus status;
private com.sumup.sdk.models.TransactionStatus status;
private java.time.OffsetDateTime timestamp;
private String transactionCode;

Expand Down Expand Up @@ -115,10 +121,14 @@ public Builder paymentType(com.sumup.sdk.models.PaymentType paymentType) {
/**
* Sets the value for {@code status}.
*
* @param status Current status of the transaction.
* @param status Current status of the transaction. - `PENDING`: The transaction has been
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
* `REFUNDED`: The transaction was refunded in full or in part.
* @return This builder instance.
*/
public Builder status(com.sumup.sdk.models.TransactionBaseStatus status) {
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
this.status = status;
return this;
}
Expand Down
56 changes: 0 additions & 56 deletions src/main/java/com/sumup/sdk/models/TransactionBaseStatus.java

This file was deleted.

20 changes: 15 additions & 5 deletions src/main/java/com/sumup/sdk/models/TransactionFull.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,14 @@ public record TransactionFull(
*/
com.sumup.sdk.models.TransactionFullSimpleStatus simpleStatus,

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

/** Indicates whether tax deduction is enabled for the transaction. */
Boolean taxEnabled,
Expand Down Expand Up @@ -207,7 +213,7 @@ public static final class Builder {
private java.util.List<com.sumup.sdk.models.Product> products;
private com.sumup.sdk.models.TransactionFullSimplePaymentType simplePaymentType;
private com.sumup.sdk.models.TransactionFullSimpleStatus simpleStatus;
private com.sumup.sdk.models.TransactionFullStatus status;
private com.sumup.sdk.models.TransactionStatus status;
private Boolean taxEnabled;
private java.time.OffsetDateTime timestamp;
private Float tipAmount;
Expand Down Expand Up @@ -597,10 +603,14 @@ public Builder simpleStatus(com.sumup.sdk.models.TransactionFullSimpleStatus sim
/**
* Sets the value for {@code status}.
*
* @param status Current status of the transaction.
* @param status Current status of the transaction. - `PENDING`: The transaction has been
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
* `REFUNDED`: The transaction was refunded in full or in part.
* @return This builder instance.
*/
public Builder status(com.sumup.sdk.models.TransactionFullStatus status) {
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
this.status = status;
return this;
}
Expand Down
56 changes: 0 additions & 56 deletions src/main/java/com/sumup/sdk/models/TransactionFullStatus.java

This file was deleted.

20 changes: 15 additions & 5 deletions src/main/java/com/sumup/sdk/models/TransactionHistory.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@ public record TransactionHistory(
/** Total refunded amount. */
Double refundedAmount,

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

/**
* Date and time of the creation of the transaction. Response format expressed according to
Expand Down Expand Up @@ -98,7 +104,7 @@ public static final class Builder {
private Long payoutsTotal;
private String productSummary;
private Double refundedAmount;
private com.sumup.sdk.models.TransactionFullStatus status;
private com.sumup.sdk.models.TransactionStatus status;
private java.time.OffsetDateTime timestamp;
private String transactionCode;
private com.sumup.sdk.models.TransactionId transactionId;
Expand Down Expand Up @@ -269,10 +275,14 @@ public Builder refundedAmount(Double refundedAmount) {
/**
* Sets the value for {@code status}.
*
* @param status Current status of the transaction.
* @param status Current status of the transaction. - `PENDING`: The transaction has been
* created but its final outcome is not known yet. - `SUCCESSFUL`: The transaction completed
* successfully. - `CANCELLED`: The transaction was cancelled or otherwise reversed before
* completion. - `FAILED`: The transaction attempt did not complete successfully. -
* `REFUNDED`: The transaction was refunded in full or in part.
* @return This builder instance.
*/
public Builder status(com.sumup.sdk.models.TransactionFullStatus status) {
public Builder status(com.sumup.sdk.models.TransactionStatus status) {
this.status = status;
return this;
}
Expand Down
Loading
Loading