Skip to content

Commit 5a5e457

Browse files
chore: generate code
1 parent 01007fa commit 5a5e457

4 files changed

Lines changed: 1 addition & 74 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ public record Card(
1414
/** Year from the expiration time of the payment card. Accepted formats are `YY` and `YYYY`. */
1515
String expiryYear,
1616

17-
/** Last 4 digits of the payment card number. */
18-
String last4Digits,
19-
2017
/** Name of the cardholder as it appears on the payment card. */
2118
String name,
2219

@@ -138,7 +135,6 @@ public Card build() {
138135
Objects.requireNonNull(cvv, "cvv"),
139136
Objects.requireNonNull(expiryMonth, "expiryMonth"),
140137
Objects.requireNonNull(expiryYear, "expiryYear"),
141-
null,
142138
Objects.requireNonNull(name, "name"),
143139
Objects.requireNonNull(number, "number"),
144140
Objects.requireNonNull(type, "type"),

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,12 @@ public record CheckoutCreateRequest(
2626
*/
2727
String customerId,
2828

29-
/**
30-
* Date and time of the creation of the payment checkout. Response format expressed according to
31-
* [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) code.
32-
*/
33-
java.time.OffsetDateTime date,
34-
3529
/**
3630
* Short description of the checkout visible in the SumUp dashboard. The description can
3731
* contribute to reporting, allowing easier identification of a checkout.
3832
*/
3933
String description,
4034

41-
/** Unique ID of the checkout resource. */
42-
String id,
43-
4435
/** Unique identifying code of the merchant profile. */
4536
String merchantCode,
4637

@@ -60,12 +51,6 @@ public record CheckoutCreateRequest(
6051
/** URL to which the SumUp platform sends the processing status of the payment checkout. */
6152
String returnUrl,
6253

63-
/** Current status of the checkout. */
64-
com.sumup.sdk.models.CheckoutCreateRequestStatus status,
65-
66-
/** List of transactions related to the payment. */
67-
java.util.List<com.sumup.sdk.models.TransactionBase> transactions,
68-
6954
/**
7055
* Date and time of the checkout expiration before which the client application needs to send a
7156
* processing request. If no value is present, the checkout does not have an expiration time.
@@ -229,15 +214,11 @@ public CheckoutCreateRequest build() {
229214
Objects.requireNonNull(checkoutReference, "checkoutReference"),
230215
Objects.requireNonNull(currency, "currency"),
231216
customerId,
232-
null,
233217
description,
234-
null,
235218
Objects.requireNonNull(merchantCode, "merchantCode"),
236219
purpose,
237220
redirectUrl,
238221
returnUrl,
239-
null,
240-
null,
241222
validUntil);
242223
}
243224
}

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

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

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,9 @@
55

66
/** Details of the payment card that is saved as a payment instrument. */
77
public record PaymentInstrumentCard(
8-
/**
9-
* Indicates whether the payment instrument is active and can be used for payments. To
10-
* deactivate it, send a `DELETE` request to the resource endpoint.
11-
*/
12-
Boolean active,
13-
148
/** __Required when payment type is `card`.__ Details of the payment card. */
159
com.sumup.sdk.models.Card card,
1610

17-
/** Unique token identifying the saved payment card for a customer. */
18-
String token,
19-
2011
/** Type of the payment instrument. */
2112
com.sumup.sdk.models.PaymentInstrumentCardType type) {
2213
/**
@@ -64,7 +55,7 @@ public Builder type(com.sumup.sdk.models.PaymentInstrumentCardType type) {
6455
*/
6556
public PaymentInstrumentCard build() {
6657
return new PaymentInstrumentCard(
67-
null, Objects.requireNonNull(card, "card"), null, Objects.requireNonNull(type, "type"));
58+
Objects.requireNonNull(card, "card"), Objects.requireNonNull(type, "type"));
6859
}
6960
}
7061
}

0 commit comments

Comments
 (0)