diff --git a/pom.xml b/pom.xml
index d4af38b..2612599 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.worldline-solutions.acquiring
acquiring-sdk-java
- 0.1.0
+ 1.0.0
jar
acquiring-sdk-java
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/MerchantClient.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/MerchantClient.java
index 52416f6..90b2967 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/MerchantClient.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/MerchantClient.java
@@ -8,6 +8,7 @@
import com.worldline.acquiring.sdk.java.ApiResource;
import com.worldline.acquiring.sdk.java.v1.acquirer.merchant.accountverifications.AccountVerificationsClient;
+import com.worldline.acquiring.sdk.java.v1.acquirer.merchant.balanceinquiries.BalanceInquiriesClient;
import com.worldline.acquiring.sdk.java.v1.acquirer.merchant.dynamiccurrencyconversion.DynamicCurrencyConversionClient;
import com.worldline.acquiring.sdk.java.v1.acquirer.merchant.payments.PaymentsClient;
import com.worldline.acquiring.sdk.java.v1.acquirer.merchant.refunds.RefundsClient;
@@ -49,6 +50,15 @@ public AccountVerificationsClient accountVerifications() {
return new AccountVerificationsClient(this, null);
}
+ /**
+ * Resource /processing/v1/{acquirerId}/{merchantId}/balance-inquiries
+ *
+ * @return BalanceInquiriesClient
+ */
+ public BalanceInquiriesClient balanceInquiries() {
+ return new BalanceInquiriesClient(this, null);
+ }
+
/**
* Resource /processing/v1/{acquirerId}/{merchantId}/operations/{operationId}/reverse
*
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/balanceinquiries/BalanceInquiriesClient.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/balanceinquiries/BalanceInquiriesClient.java
new file mode 100644
index 0000000..72632f5
--- /dev/null
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/balanceinquiries/BalanceInquiriesClient.java
@@ -0,0 +1,84 @@
+/*
+ * This file was automatically generated.
+ */
+
+package com.worldline.acquiring.sdk.java.v1.acquirer.merchant.balanceinquiries;
+
+import java.util.Map;
+
+import com.worldline.acquiring.sdk.java.ApiResource;
+import com.worldline.acquiring.sdk.java.CallContext;
+import com.worldline.acquiring.sdk.java.communication.ResponseException;
+import com.worldline.acquiring.sdk.java.v1.ApiException;
+import com.worldline.acquiring.sdk.java.v1.AuthorizationException;
+import com.worldline.acquiring.sdk.java.v1.ExceptionFactory;
+import com.worldline.acquiring.sdk.java.v1.PlatformException;
+import com.worldline.acquiring.sdk.java.v1.ReferenceException;
+import com.worldline.acquiring.sdk.java.v1.ValidationException;
+import com.worldline.acquiring.sdk.java.v1.domain.ApiBalanceInquiryRequest;
+import com.worldline.acquiring.sdk.java.v1.domain.ApiBalanceInquiryResponse;
+import com.worldline.acquiring.sdk.java.v1.domain.ApiPaymentErrorResponse;
+
+/**
+ * BalanceInquiries client. Thread-safe.
+ */
+public class BalanceInquiriesClient extends ApiResource {
+
+ private static final ExceptionFactory EXCEPTION_FACTORY = new ExceptionFactory();
+
+ public BalanceInquiriesClient(ApiResource parent, Map pathContext) {
+ super(parent, pathContext);
+ }
+
+ /**
+ * Resource /processing/v1/{acquirerId}/{merchantId}/balance-inquiries
+ * - Balance inquiry
+ *
+ * @param body ApiBalanceInquiryRequest
+ * @return ApiBalanceInquiryResponse
+ * @throws ValidationException if the request was not correct and couldn't be processed (HTTP status code 400)
+ * @throws AuthorizationException if the request was not allowed (HTTP status code 403)
+ * @throws ReferenceException if an object was attempted to be referenced that doesn't exist or has been removed,
+ * or there was a conflict (HTTP status code 404, 409 or 410)
+ * @throws PlatformException if something went wrong at the Worldline Acquiring platform,
+ * the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer,
+ * or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
+ * @throws ApiException if the Worldline Acquiring platform returned any other error
+ */
+ public ApiBalanceInquiryResponse processBalanceInquiry(ApiBalanceInquiryRequest body) {
+ return processBalanceInquiry(body, null);
+ }
+
+ /**
+ * Resource /processing/v1/{acquirerId}/{merchantId}/balance-inquiries
+ * - Balance inquiry
+ *
+ * @param body ApiBalanceInquiryRequest
+ * @param context CallContext
+ * @return ApiBalanceInquiryResponse
+ * @throws ValidationException if the request was not correct and couldn't be processed (HTTP status code 400)
+ * @throws AuthorizationException if the request was not allowed (HTTP status code 403)
+ * @throws ReferenceException if an object was attempted to be referenced that doesn't exist or has been removed,
+ * or there was a conflict (HTTP status code 404, 409 or 410)
+ * @throws PlatformException if something went wrong at the Worldline Acquiring platform,
+ * the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer,
+ * or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
+ * @throws ApiException if the Worldline Acquiring platform returned any other error
+ */
+ public ApiBalanceInquiryResponse processBalanceInquiry(ApiBalanceInquiryRequest body, CallContext context) {
+ String uri = instantiateUri("/processing/v1/{acquirerId}/{merchantId}/balance-inquiries", null);
+ try {
+ return communicator.post(
+ uri,
+ null,
+ null,
+ body,
+ ApiBalanceInquiryResponse.class,
+ context);
+ } catch (ResponseException e) {
+ final Class> errorType = ApiPaymentErrorResponse.class;
+ final Object errorObject = communicator.getMarshaller().unmarshal(e.getBody(), errorType);
+ throw EXCEPTION_FACTORY.createException(e.getStatusCode(), e.getBody(), errorObject, context);
+ }
+ }
+}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/payments/GetPaymentStatusParams.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/payments/GetPaymentStatusParams.java
index dc0b615..cd6e01e 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/payments/GetPaymentStatusParams.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/payments/GetPaymentStatusParams.java
@@ -34,6 +34,15 @@ public void setReturnOperations(Boolean value) {
this.returnOperations = value;
}
+ /**
+ * If true, the response will contain the operations of the payment.
+ * False by default.
+ */
+ public GetPaymentStatusParams withReturnOperations(Boolean value) {
+ this.returnOperations = value;
+ return this;
+ }
+
@Override
public List toRequestParameters() {
List result = new ArrayList<>();
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/refunds/GetRefundParams.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/refunds/GetRefundParams.java
index 1d4e8c8..048d290 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/refunds/GetRefundParams.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/acquirer/merchant/refunds/GetRefundParams.java
@@ -34,6 +34,15 @@ public void setReturnOperations(Boolean value) {
this.returnOperations = value;
}
+ /**
+ * If true, the response will contain the operations of the payment.
+ * False by default.
+ */
+ public GetRefundParams withReturnOperations(Boolean value) {
+ this.returnOperations = value;
+ return this;
+ }
+
@Override
public List toRequestParameters() {
List result = new ArrayList<>();
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/AddressVerificationData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/AddressVerificationData.java
index ae69f26..4159c4a 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/AddressVerificationData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/AddressVerificationData.java
@@ -24,6 +24,14 @@ public void setCardholderAddress(String value) {
this.cardholderAddress = value;
}
+ /**
+ * Cardholder street address
+ */
+ public AddressVerificationData withCardholderAddress(String value) {
+ this.cardholderAddress = value;
+ return this;
+ }
+
/**
* Cardholder postal code, should be provided without spaces
*/
@@ -37,4 +45,12 @@ public String getCardholderPostalCode() {
public void setCardholderPostalCode(String value) {
this.cardholderPostalCode = value;
}
+
+ /**
+ * Cardholder postal code, should be provided without spaces
+ */
+ public AddressVerificationData withCardholderPostalCode(String value) {
+ this.cardholderPostalCode = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/AmountData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/AmountData.java
index 5735a3c..aecc753 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/AmountData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/AmountData.java
@@ -15,7 +15,7 @@ public class AmountData {
/**
* Amount of transaction formatted according to card scheme
* specifications.
- * E.g. 100 for 1.00 EUR. Either this or amount must be present.
+ * E.g. 100 for 1.00 EUR.
*/
public Long getAmount() {
return amount;
@@ -24,12 +24,22 @@ public Long getAmount() {
/**
* Amount of transaction formatted according to card scheme
* specifications.
- * E.g. 100 for 1.00 EUR. Either this or amount must be present.
+ * E.g. 100 for 1.00 EUR.
*/
public void setAmount(Long value) {
this.amount = value;
}
+ /**
+ * Amount of transaction formatted according to card scheme
+ * specifications.
+ * E.g. 100 for 1.00 EUR.
+ */
+ public AmountData withAmount(Long value) {
+ this.amount = value;
+ return this;
+ }
+
/**
* Alpha-numeric ISO 4217 currency code for transaction, e.g. EUR
*/
@@ -44,6 +54,14 @@ public void setCurrencyCode(String value) {
this.currencyCode = value;
}
+ /**
+ * Alpha-numeric ISO 4217 currency code for transaction, e.g. EUR
+ */
+ public AmountData withCurrencyCode(String value) {
+ this.currencyCode = value;
+ return this;
+ }
+
/**
* Number of decimals in the amount
*/
@@ -57,4 +75,12 @@ public Integer getNumberOfDecimals() {
public void setNumberOfDecimals(Integer value) {
this.numberOfDecimals = value;
}
+
+ /**
+ * Number of decimals in the amount
+ */
+ public AmountData withNumberOfDecimals(Integer value) {
+ this.numberOfDecimals = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiAccountVerificationRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiAccountVerificationRequest.java
index 8aa7f48..f7b5e57 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiAccountVerificationRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiAccountVerificationRequest.java
@@ -16,6 +16,8 @@ public class ApiAccountVerificationRequest {
private PaymentReferences references;
+ private TerminalData terminalData;
+
private ZonedDateTime transactionTimestamp;
/**
@@ -32,6 +34,14 @@ public void setCardPaymentData(CardPaymentDataForVerification value) {
this.cardPaymentData = value;
}
+ /**
+ * Card data
+ */
+ public ApiAccountVerificationRequest withCardPaymentData(CardPaymentDataForVerification value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
/**
* Merchant Data
*/
@@ -46,6 +56,14 @@ public void setMerchant(MerchantData value) {
this.merchant = value;
}
+ /**
+ * Merchant Data
+ */
+ public ApiAccountVerificationRequest withMerchant(MerchantData value) {
+ this.merchant = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -68,6 +86,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiAccountVerificationRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* Payment References
*/
@@ -82,6 +112,27 @@ public void setReferences(PaymentReferences value) {
this.references = value;
}
+ /**
+ * Payment References
+ */
+ public ApiAccountVerificationRequest withReferences(PaymentReferences value) {
+ this.references = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiAccountVerificationRequest withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -99,4 +150,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiAccountVerificationRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiAccountVerificationResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiAccountVerificationResponse.java
index 49353d1..8573b4d 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiAccountVerificationResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiAccountVerificationResponse.java
@@ -36,6 +36,14 @@ public void setAuthorizationCode(String value) {
this.authorizationCode = value;
}
+ /**
+ * Authorization approval code
+ */
+ public ApiAccountVerificationResponse withAuthorizationCode(String value) {
+ this.authorizationCode = value;
+ return this;
+ }
+
public CardPaymentDataForResponse getCardPaymentData() {
return cardPaymentData;
}
@@ -44,6 +52,11 @@ public void setCardPaymentData(CardPaymentDataForResponse value) {
this.cardPaymentData = value;
}
+ public ApiAccountVerificationResponse withCardPaymentData(CardPaymentDataForResponse value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -66,6 +79,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiAccountVerificationResponse withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* A set of references returned in responses
*/
@@ -80,8 +105,23 @@ public void setReferences(ApiReferencesForResponses value) {
this.references = value;
}
+ /**
+ * A set of references returned in responses
+ */
+ public ApiAccountVerificationResponse withReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ return this;
+ }
+
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public String getResponder() {
return responder;
@@ -89,11 +129,33 @@ public String getResponder() {
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public void setResponder(String value) {
this.responder = value;
}
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public ApiAccountVerificationResponse withResponder(String value) {
+ this.responder = value;
+ return this;
+ }
+
/**
* Numeric response code, e.g. 0000, 0005
*/
@@ -109,19 +171,53 @@ public void setResponseCode(String value) {
}
/**
- * Category of response code.
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public ApiAccountVerificationResponse withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public String getResponseCodeCategory() {
return responseCodeCategory;
}
/**
- * Category of response code.
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public void setResponseCodeCategory(String value) {
this.responseCodeCategory = value;
}
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public ApiAccountVerificationResponse withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
/**
* Description of the response code
*/
@@ -135,4 +231,12 @@ public String getResponseCodeDescription() {
public void setResponseCodeDescription(String value) {
this.responseCodeDescription = value;
}
+
+ /**
+ * Description of the response code
+ */
+ public ApiAccountVerificationResponse withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiActionResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiActionResponse.java
index 31048ed..3e75078 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiActionResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiActionResponse.java
@@ -40,6 +40,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiActionResponse withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* A summary of the payment used for responses
*/
@@ -54,8 +66,23 @@ public void setPayment(ApiPaymentSummaryForResponse value) {
this.payment = value;
}
+ /**
+ * A summary of the payment used for responses
+ */
+ public ApiActionResponse withPayment(ApiPaymentSummaryForResponse value) {
+ this.payment = value;
+ return this;
+ }
+
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public String getResponder() {
return responder;
@@ -63,11 +90,33 @@ public String getResponder() {
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public void setResponder(String value) {
this.responder = value;
}
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public ApiActionResponse withResponder(String value) {
+ this.responder = value;
+ return this;
+ }
+
/**
* Numeric response code, e.g. 0000, 0005
*/
@@ -83,19 +132,53 @@ public void setResponseCode(String value) {
}
/**
- * Category of response code.
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public ApiActionResponse withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public String getResponseCodeCategory() {
return responseCodeCategory;
}
/**
- * Category of response code.
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public void setResponseCodeCategory(String value) {
this.responseCodeCategory = value;
}
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public ApiActionResponse withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
/**
* Description of the response code
*/
@@ -109,4 +192,12 @@ public String getResponseCodeDescription() {
public void setResponseCodeDescription(String value) {
this.responseCodeDescription = value;
}
+
+ /**
+ * Description of the response code
+ */
+ public ApiActionResponse withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiActionResponseForRefund.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiActionResponseForRefund.java
index 70e997c..e023335 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiActionResponseForRefund.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiActionResponseForRefund.java
@@ -40,6 +40,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiActionResponseForRefund withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* A summary of the refund used for responses
*/
@@ -54,8 +66,23 @@ public void setRefund(ApiRefundSummaryForResponse value) {
this.refund = value;
}
+ /**
+ * A summary of the refund used for responses
+ */
+ public ApiActionResponseForRefund withRefund(ApiRefundSummaryForResponse value) {
+ this.refund = value;
+ return this;
+ }
+
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public String getResponder() {
return responder;
@@ -63,11 +90,33 @@ public String getResponder() {
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public void setResponder(String value) {
this.responder = value;
}
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public ApiActionResponseForRefund withResponder(String value) {
+ this.responder = value;
+ return this;
+ }
+
/**
* Numeric response code, e.g. 0000, 0005
*/
@@ -83,19 +132,53 @@ public void setResponseCode(String value) {
}
/**
- * Category of response code.
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public ApiActionResponseForRefund withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public String getResponseCodeCategory() {
return responseCodeCategory;
}
/**
- * Category of response code.
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public void setResponseCodeCategory(String value) {
this.responseCodeCategory = value;
}
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public ApiActionResponseForRefund withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
/**
* Description of the response code
*/
@@ -109,4 +192,12 @@ public String getResponseCodeDescription() {
public void setResponseCodeDescription(String value) {
this.responseCodeDescription = value;
}
+
+ /**
+ * Description of the response code
+ */
+ public ApiActionResponseForRefund withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiBalanceInquiryRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiBalanceInquiryRequest.java
new file mode 100644
index 0000000..d225eb2
--- /dev/null
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiBalanceInquiryRequest.java
@@ -0,0 +1,163 @@
+/*
+ * This file was automatically generated.
+ */
+
+package com.worldline.acquiring.sdk.java.v1.domain;
+
+import java.time.ZonedDateTime;
+
+public class ApiBalanceInquiryRequest {
+
+ private CardPaymentDataForBalanceInquiry cardPaymentData;
+
+ private MerchantData merchant;
+
+ private String operationId;
+
+ private PaymentReferences references;
+
+ private TerminalData terminalData;
+
+ private ZonedDateTime transactionTimestamp;
+
+ /**
+ * Card data
+ */
+ public CardPaymentDataForBalanceInquiry getCardPaymentData() {
+ return cardPaymentData;
+ }
+
+ /**
+ * Card data
+ */
+ public void setCardPaymentData(CardPaymentDataForBalanceInquiry value) {
+ this.cardPaymentData = value;
+ }
+
+ /**
+ * Card data
+ */
+ public ApiBalanceInquiryRequest withCardPaymentData(CardPaymentDataForBalanceInquiry value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
+ /**
+ * Merchant Data
+ */
+ public MerchantData getMerchant() {
+ return merchant;
+ }
+
+ /**
+ * Merchant Data
+ */
+ public void setMerchant(MerchantData value) {
+ this.merchant = value;
+ }
+
+ /**
+ * Merchant Data
+ */
+ public ApiBalanceInquiryRequest withMerchant(MerchantData value) {
+ this.merchant = value;
+ return this;
+ }
+
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public String getOperationId() {
+ return operationId;
+ }
+
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public void setOperationId(String value) {
+ this.operationId = value;
+ }
+
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiBalanceInquiryRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
+ /**
+ * Payment References
+ */
+ public PaymentReferences getReferences() {
+ return references;
+ }
+
+ /**
+ * Payment References
+ */
+ public void setReferences(PaymentReferences value) {
+ this.references = value;
+ }
+
+ /**
+ * Payment References
+ */
+ public ApiBalanceInquiryRequest withReferences(PaymentReferences value) {
+ this.references = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiBalanceInquiryRequest withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ZonedDateTime getTransactionTimestamp() {
+ return transactionTimestamp;
+ }
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public void setTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ }
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiBalanceInquiryRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
+}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiBalanceInquiryResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiBalanceInquiryResponse.java
new file mode 100644
index 0000000..8e1a018
--- /dev/null
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiBalanceInquiryResponse.java
@@ -0,0 +1,251 @@
+/*
+ * This file was automatically generated.
+ */
+
+package com.worldline.acquiring.sdk.java.v1.domain;
+
+public class ApiBalanceInquiryResponse {
+
+ private String authorizationCode;
+
+ private AmountData availableAmount;
+
+ private String operationId;
+
+ private ApiReferencesForResponses references;
+
+ private String responder;
+
+ private String responseCode;
+
+ private String responseCodeCategory;
+
+ private String responseCodeDescription;
+
+ /**
+ * Authorization approval code
+ */
+ public String getAuthorizationCode() {
+ return authorizationCode;
+ }
+
+ /**
+ * Authorization approval code
+ */
+ public void setAuthorizationCode(String value) {
+ this.authorizationCode = value;
+ }
+
+ /**
+ * Authorization approval code
+ */
+ public ApiBalanceInquiryResponse withAuthorizationCode(String value) {
+ this.authorizationCode = value;
+ return this;
+ }
+
+ /**
+ * Amount for the operation.
+ */
+ public AmountData getAvailableAmount() {
+ return availableAmount;
+ }
+
+ /**
+ * Amount for the operation.
+ */
+ public void setAvailableAmount(AmountData value) {
+ this.availableAmount = value;
+ }
+
+ /**
+ * Amount for the operation.
+ */
+ public ApiBalanceInquiryResponse withAvailableAmount(AmountData value) {
+ this.availableAmount = value;
+ return this;
+ }
+
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public String getOperationId() {
+ return operationId;
+ }
+
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public void setOperationId(String value) {
+ this.operationId = value;
+ }
+
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiBalanceInquiryResponse withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
+ /**
+ * A set of references returned in responses
+ */
+ public ApiReferencesForResponses getReferences() {
+ return references;
+ }
+
+ /**
+ * A set of references returned in responses
+ */
+ public void setReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ }
+
+ /**
+ * A set of references returned in responses
+ */
+ public ApiBalanceInquiryResponse withReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ return this;
+ }
+
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public String getResponder() {
+ return responder;
+ }
+
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public void setResponder(String value) {
+ this.responder = value;
+ }
+
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public ApiBalanceInquiryResponse withResponder(String value) {
+ this.responder = value;
+ return this;
+ }
+
+ /**
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public String getResponseCode() {
+ return responseCode;
+ }
+
+ /**
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public void setResponseCode(String value) {
+ this.responseCode = value;
+ }
+
+ /**
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public ApiBalanceInquiryResponse withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public String getResponseCodeCategory() {
+ return responseCodeCategory;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public void setResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public ApiBalanceInquiryResponse withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
+ /**
+ * Description of the response code
+ */
+ public String getResponseCodeDescription() {
+ return responseCodeDescription;
+ }
+
+ /**
+ * Description of the response code
+ */
+ public void setResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ }
+
+ /**
+ * Description of the response code
+ */
+ public ApiBalanceInquiryResponse withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
+}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiCaptureRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiCaptureRequest.java
index 93e93a2..839d346 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiCaptureRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiCaptureRequest.java
@@ -18,6 +18,10 @@ public class ApiCaptureRequest {
private String operationId;
+ private PaymentReferences references;
+
+ private TerminalData terminalData;
+
private ZonedDateTime transactionTimestamp;
/**
@@ -34,6 +38,14 @@ public void setAmount(AmountData value) {
this.amount = value;
}
+ /**
+ * Amount to capture. If not provided, the full amount will be captured.
+ */
+ public ApiCaptureRequest withAmount(AmountData value) {
+ this.amount = value;
+ return this;
+ }
+
/**
* The index of the partial capture. Not needed for full capture.
*/
@@ -48,6 +60,14 @@ public void setCaptureSequenceNumber(Integer value) {
this.captureSequenceNumber = value;
}
+ /**
+ * The index of the partial capture. Not needed for full capture.
+ */
+ public ApiCaptureRequest withCaptureSequenceNumber(Integer value) {
+ this.captureSequenceNumber = value;
+ return this;
+ }
+
/**
* Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
* Mandatory for DCC transactions.
@@ -64,6 +84,15 @@ public void setDynamicCurrencyConversion(DccData value) {
this.dynamicCurrencyConversion = value;
}
+ /**
+ * Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
+ * Mandatory for DCC transactions.
+ */
+ public ApiCaptureRequest withDynamicCurrencyConversion(DccData value) {
+ this.dynamicCurrencyConversion = value;
+ return this;
+ }
+
/**
* Indicates whether this partial capture is the final one.
* Not needed for full capture.
@@ -80,6 +109,15 @@ public void setIsFinal(Boolean value) {
this.isFinal = value;
}
+ /**
+ * Indicates whether this partial capture is the final one.
+ * Not needed for full capture.
+ */
+ public ApiCaptureRequest withIsFinal(Boolean value) {
+ this.isFinal = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -102,6 +140,53 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiCaptureRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
+ /**
+ * Payment References
+ */
+ public PaymentReferences getReferences() {
+ return references;
+ }
+
+ /**
+ * Payment References
+ */
+ public void setReferences(PaymentReferences value) {
+ this.references = value;
+ }
+
+ /**
+ * Payment References
+ */
+ public ApiCaptureRequest withReferences(PaymentReferences value) {
+ this.references = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiCaptureRequest withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -119,4 +204,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiCaptureRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiCaptureRequestForRefund.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiCaptureRequestForRefund.java
index a0e5786..6a4d3a9 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiCaptureRequestForRefund.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiCaptureRequestForRefund.java
@@ -10,6 +10,10 @@ public class ApiCaptureRequestForRefund {
private String operationId;
+ private PaymentReferences references;
+
+ private TerminalData terminalData;
+
private ZonedDateTime transactionTimestamp;
/**
@@ -34,6 +38,53 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiCaptureRequestForRefund withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
+ /**
+ * Payment References
+ */
+ public PaymentReferences getReferences() {
+ return references;
+ }
+
+ /**
+ * Payment References
+ */
+ public void setReferences(PaymentReferences value) {
+ this.references = value;
+ }
+
+ /**
+ * Payment References
+ */
+ public ApiCaptureRequestForRefund withReferences(PaymentReferences value) {
+ this.references = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiCaptureRequestForRefund withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -51,4 +102,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiCaptureRequestForRefund withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiIncrementRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiIncrementRequest.java
index bbab19e..c8681e8 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiIncrementRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiIncrementRequest.java
@@ -14,6 +14,8 @@ public class ApiIncrementRequest {
private String operationId;
+ private TerminalData terminalData;
+
private ZonedDateTime transactionTimestamp;
/**
@@ -32,6 +34,15 @@ public void setDynamicCurrencyConversion(DccData value) {
this.dynamicCurrencyConversion = value;
}
+ /**
+ * Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
+ * Mandatory for DCC transactions.
+ */
+ public ApiIncrementRequest withDynamicCurrencyConversion(DccData value) {
+ this.dynamicCurrencyConversion = value;
+ return this;
+ }
+
/**
* Amount for the operation.
*/
@@ -46,6 +57,14 @@ public void setIncrementAmount(AmountData value) {
this.incrementAmount = value;
}
+ /**
+ * Amount for the operation.
+ */
+ public ApiIncrementRequest withIncrementAmount(AmountData value) {
+ this.incrementAmount = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -68,6 +87,31 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiIncrementRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiIncrementRequest withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -85,4 +129,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiIncrementRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiIncrementResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiIncrementResponse.java
index 4f1b02f..c23c85f 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiIncrementResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiIncrementResponse.java
@@ -24,6 +24,14 @@ public void setAuthorizationCode(String value) {
this.authorizationCode = value;
}
+ /**
+ * Authorization approval code
+ */
+ public ApiIncrementResponse withAuthorizationCode(String value) {
+ this.authorizationCode = value;
+ return this;
+ }
+
/**
* Amount for the operation.
*/
@@ -37,4 +45,83 @@ public AmountData getTotalAuthorizedAmount() {
public void setTotalAuthorizedAmount(AmountData value) {
this.totalAuthorizedAmount = value;
}
+
+ /**
+ * Amount for the operation.
+ */
+ public ApiIncrementResponse withTotalAuthorizedAmount(AmountData value) {
+ this.totalAuthorizedAmount = value;
+ return this;
+ }
+
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ @Override
+ public ApiIncrementResponse withOperationId(String value) {
+ super.withOperationId(value);
+ return this;
+ }
+
+ /**
+ * A summary of the payment used for responses
+ */
+ @Override
+ public ApiIncrementResponse withPayment(ApiPaymentSummaryForResponse value) {
+ super.withPayment(value);
+ return this;
+ }
+
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ @Override
+ public ApiIncrementResponse withResponder(String value) {
+ super.withResponder(value);
+ return this;
+ }
+
+ /**
+ * Numeric response code, e.g. 0000, 0005
+ */
+ @Override
+ public ApiIncrementResponse withResponseCode(String value) {
+ super.withResponseCode(value);
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ @Override
+ public ApiIncrementResponse withResponseCodeCategory(String value) {
+ super.withResponseCodeCategory(value);
+ return this;
+ }
+
+ /**
+ * Description of the response code
+ */
+ @Override
+ public ApiIncrementResponse withResponseCodeDescription(String value) {
+ super.withResponseCodeDescription(value);
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentErrorResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentErrorResponse.java
index da1b460..250a06d 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentErrorResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentErrorResponse.java
@@ -34,6 +34,16 @@ public void setDetail(String value) {
this.detail = value;
}
+ /**
+ * Any relevant details about the error.
+ * May include suggestions for handling it. Can be an empty string if no extra details are
+ * available.
+ */
+ public ApiPaymentErrorResponse withDetail(String value) {
+ this.detail = value;
+ return this;
+ }
+
/**
* A URI reference that identifies the specific occurrence of the error.
* It may or may not yield further information if dereferenced.
@@ -50,6 +60,15 @@ public void setInstance(String value) {
this.instance = value;
}
+ /**
+ * A URI reference that identifies the specific occurrence of the error.
+ * It may or may not yield further information if dereferenced.
+ */
+ public ApiPaymentErrorResponse withInstance(String value) {
+ this.instance = value;
+ return this;
+ }
+
/**
* The HTTP status code of this error response.
* Included to aid those frameworks that have a hard time working with anything other than
@@ -68,6 +87,16 @@ public void setStatus(Integer value) {
this.status = value;
}
+ /**
+ * The HTTP status code of this error response.
+ * Included to aid those frameworks that have a hard time working with anything other than
+ * the body of an HTTP response.
+ */
+ public ApiPaymentErrorResponse withStatus(Integer value) {
+ this.status = value;
+ return this;
+ }
+
/**
* The human-readable version of the error.
*/
@@ -82,6 +111,14 @@ public void setTitle(String value) {
this.title = value;
}
+ /**
+ * The human-readable version of the error.
+ */
+ public ApiPaymentErrorResponse withTitle(String value) {
+ this.title = value;
+ return this;
+ }
+
/**
* The type of the error.
* This is what you should match against when implementing error handling.
@@ -99,4 +136,14 @@ public String getType() {
public void setType(String value) {
this.type = value;
}
+
+ /**
+ * The type of the error.
+ * This is what you should match against when implementing error handling.
+ * It is in the form of a URL that identifies the error type.
+ */
+ public ApiPaymentErrorResponse withType(String value) {
+ this.type = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentRefundRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentRefundRequest.java
index dd51b06..d2adfed 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentRefundRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentRefundRequest.java
@@ -18,6 +18,8 @@ public class ApiPaymentRefundRequest {
private PaymentReferences references;
+ private TerminalData terminalData;
+
private ZonedDateTime transactionTimestamp;
/**
@@ -34,6 +36,14 @@ public void setAmount(AmountData value) {
this.amount = value;
}
+ /**
+ * Amount to refund. If not provided, the full amount will be refunded.
+ */
+ public ApiPaymentRefundRequest withAmount(AmountData value) {
+ this.amount = value;
+ return this;
+ }
+
/**
* If true the transaction will be authorized and captured immediately
*/
@@ -48,6 +58,14 @@ public void setCaptureImmediately(Boolean value) {
this.captureImmediately = value;
}
+ /**
+ * If true the transaction will be authorized and captured immediately
+ */
+ public ApiPaymentRefundRequest withCaptureImmediately(Boolean value) {
+ this.captureImmediately = value;
+ return this;
+ }
+
/**
* Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
* Mandatory for DCC transactions.
@@ -64,6 +82,15 @@ public void setDynamicCurrencyConversion(DccData value) {
this.dynamicCurrencyConversion = value;
}
+ /**
+ * Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
+ * Mandatory for DCC transactions.
+ */
+ public ApiPaymentRefundRequest withDynamicCurrencyConversion(DccData value) {
+ this.dynamicCurrencyConversion = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -86,6 +113,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiPaymentRefundRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* Payment References
*/
@@ -100,6 +139,27 @@ public void setReferences(PaymentReferences value) {
this.references = value;
}
+ /**
+ * Payment References
+ */
+ public ApiPaymentRefundRequest withReferences(PaymentReferences value) {
+ this.references = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiPaymentRefundRequest withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -117,4 +177,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiPaymentRefundRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentRequest.java
index 234566f..6ae8e66 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentRequest.java
@@ -22,6 +22,8 @@ public class ApiPaymentRequest {
private PaymentReferences references;
+ private TerminalData terminalData;
+
private ZonedDateTime transactionTimestamp;
/**
@@ -38,6 +40,14 @@ public void setAmount(AmountData value) {
this.amount = value;
}
+ /**
+ * Amount for the operation.
+ */
+ public ApiPaymentRequest withAmount(AmountData value) {
+ this.amount = value;
+ return this;
+ }
+
/**
* The type of authorization
*/
@@ -52,6 +62,14 @@ public void setAuthorizationType(String value) {
this.authorizationType = value;
}
+ /**
+ * The type of authorization
+ */
+ public ApiPaymentRequest withAuthorizationType(String value) {
+ this.authorizationType = value;
+ return this;
+ }
+
/**
* Card data
*/
@@ -66,6 +84,14 @@ public void setCardPaymentData(CardPaymentData value) {
this.cardPaymentData = value;
}
+ /**
+ * Card data
+ */
+ public ApiPaymentRequest withCardPaymentData(CardPaymentData value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
/**
* Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
* Mandatory for DCC transactions.
@@ -82,6 +108,15 @@ public void setDynamicCurrencyConversion(DccData value) {
this.dynamicCurrencyConversion = value;
}
+ /**
+ * Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
+ * Mandatory for DCC transactions.
+ */
+ public ApiPaymentRequest withDynamicCurrencyConversion(DccData value) {
+ this.dynamicCurrencyConversion = value;
+ return this;
+ }
+
/**
* Merchant Data
*/
@@ -96,6 +131,14 @@ public void setMerchant(MerchantData value) {
this.merchant = value;
}
+ /**
+ * Merchant Data
+ */
+ public ApiPaymentRequest withMerchant(MerchantData value) {
+ this.merchant = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -118,6 +161,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiPaymentRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* Payment References
*/
@@ -132,6 +187,27 @@ public void setReferences(PaymentReferences value) {
this.references = value;
}
+ /**
+ * Payment References
+ */
+ public ApiPaymentRequest withReferences(PaymentReferences value) {
+ this.references = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiPaymentRequest withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -149,4 +225,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiPaymentRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentResource.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentResource.java
index d89dd9a..0d25eaa 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentResource.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentResource.java
@@ -35,6 +35,11 @@ public void setCardPaymentData(CardPaymentDataForResource value) {
this.cardPaymentData = value;
}
+ public ApiPaymentResource withCardPaymentData(CardPaymentDataForResource value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
/**
* Authorization approval code
*/
@@ -49,6 +54,14 @@ public void setInitialAuthorizationCode(String value) {
this.initialAuthorizationCode = value;
}
+ /**
+ * Authorization approval code
+ */
+ public ApiPaymentResource withInitialAuthorizationCode(String value) {
+ this.initialAuthorizationCode = value;
+ return this;
+ }
+
public List getOperations() {
return operations;
}
@@ -57,6 +70,11 @@ public void setOperations(List value) {
this.operations = value;
}
+ public ApiPaymentResource withOperations(List value) {
+ this.operations = value;
+ return this;
+ }
+
/**
* the ID of the payment
*/
@@ -71,6 +89,14 @@ public void setPaymentId(String value) {
this.paymentId = value;
}
+ /**
+ * the ID of the payment
+ */
+ public ApiPaymentResource withPaymentId(String value) {
+ this.paymentId = value;
+ return this;
+ }
+
/**
* A set of references returned in responses
*/
@@ -85,6 +111,14 @@ public void setReferences(ApiReferencesForResponses value) {
this.references = value;
}
+ /**
+ * A set of references returned in responses
+ */
+ public ApiPaymentResource withReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ return this;
+ }
+
/**
* The duration to wait after the initial submission before retrying the payment.
* Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
@@ -106,19 +140,68 @@ public void setRetryAfter(String value) {
}
/**
- * The status of the payment, refund or credit transfer
+ * The duration to wait after the initial submission before retrying the payment.
+ * Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
+ * This field is only present when the payment can be retried later.
+ * PT0 means that the payment can be retried immediately.
+ */
+ public ApiPaymentResource withRetryAfter(String value) {
+ this.retryAfter = value;
+ return this;
+ }
+
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public String getStatus() {
return status;
}
/**
- * The status of the payment, refund or credit transfer
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public void setStatus(String value) {
this.status = value;
}
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
+ */
+ public ApiPaymentResource withStatus(String value) {
+ this.status = value;
+ return this;
+ }
+
/**
* Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
*/
@@ -133,6 +216,14 @@ public void setStatusTimestamp(ZonedDateTime value) {
this.statusTimestamp = value;
}
+ /**
+ * Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
+ */
+ public ApiPaymentResource withStatusTimestamp(ZonedDateTime value) {
+ this.statusTimestamp = value;
+ return this;
+ }
+
/**
* Amount for the operation.
*/
@@ -146,4 +237,12 @@ public AmountData getTotalAuthorizedAmount() {
public void setTotalAuthorizedAmount(AmountData value) {
this.totalAuthorizedAmount = value;
}
+
+ /**
+ * Amount for the operation.
+ */
+ public ApiPaymentResource withTotalAuthorizedAmount(AmountData value) {
+ this.totalAuthorizedAmount = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentResponse.java
index 4916bcd..e1f634b 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentResponse.java
@@ -5,11 +5,14 @@
package com.worldline.acquiring.sdk.java.v1.domain;
import java.time.ZonedDateTime;
+import java.util.List;
public class ApiPaymentResponse {
private CardPaymentDataForResponse cardPaymentData;
+ private List emvData;
+
private String initialAuthorizationCode;
private String operationId;
@@ -42,6 +45,33 @@ public void setCardPaymentData(CardPaymentDataForResponse value) {
this.cardPaymentData = value;
}
+ public ApiPaymentResponse withCardPaymentData(CardPaymentDataForResponse value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ */
+ public List getEmvData() {
+ return emvData;
+ }
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ */
+ public void setEmvData(List value) {
+ this.emvData = value;
+ }
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ */
+ public ApiPaymentResponse withEmvData(List value) {
+ this.emvData = value;
+ return this;
+ }
+
/**
* Authorization approval code
*/
@@ -56,6 +86,14 @@ public void setInitialAuthorizationCode(String value) {
this.initialAuthorizationCode = value;
}
+ /**
+ * Authorization approval code
+ */
+ public ApiPaymentResponse withInitialAuthorizationCode(String value) {
+ this.initialAuthorizationCode = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -78,6 +116,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiPaymentResponse withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* the ID of the payment
*/
@@ -92,6 +142,14 @@ public void setPaymentId(String value) {
this.paymentId = value;
}
+ /**
+ * the ID of the payment
+ */
+ public ApiPaymentResponse withPaymentId(String value) {
+ this.paymentId = value;
+ return this;
+ }
+
/**
* A set of references returned in responses
*/
@@ -106,8 +164,23 @@ public void setReferences(ApiReferencesForResponses value) {
this.references = value;
}
+ /**
+ * A set of references returned in responses
+ */
+ public ApiPaymentResponse withReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ return this;
+ }
+
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public String getResponder() {
return responder;
@@ -115,11 +188,33 @@ public String getResponder() {
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public void setResponder(String value) {
this.responder = value;
}
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public ApiPaymentResponse withResponder(String value) {
+ this.responder = value;
+ return this;
+ }
+
/**
* Numeric response code, e.g. 0000, 0005
*/
@@ -135,19 +230,53 @@ public void setResponseCode(String value) {
}
/**
- * Category of response code.
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public ApiPaymentResponse withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public String getResponseCodeCategory() {
return responseCodeCategory;
}
/**
- * Category of response code.
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public void setResponseCodeCategory(String value) {
this.responseCodeCategory = value;
}
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public ApiPaymentResponse withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
/**
* Description of the response code
*/
@@ -162,6 +291,14 @@ public void setResponseCodeDescription(String value) {
this.responseCodeDescription = value;
}
+ /**
+ * Description of the response code
+ */
+ public ApiPaymentResponse withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
+
/**
* The duration to wait after the initial submission before retrying the payment.
* Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
@@ -183,19 +320,68 @@ public void setRetryAfter(String value) {
}
/**
- * The status of the payment, refund or credit transfer
+ * The duration to wait after the initial submission before retrying the payment.
+ * Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
+ * This field is only present when the payment can be retried later.
+ * PT0 means that the payment can be retried immediately.
+ */
+ public ApiPaymentResponse withRetryAfter(String value) {
+ this.retryAfter = value;
+ return this;
+ }
+
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public String getStatus() {
return status;
}
/**
- * The status of the payment, refund or credit transfer
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public void setStatus(String value) {
this.status = value;
}
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
+ */
+ public ApiPaymentResponse withStatus(String value) {
+ this.status = value;
+ return this;
+ }
+
/**
* Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
*/
@@ -210,6 +396,14 @@ public void setStatusTimestamp(ZonedDateTime value) {
this.statusTimestamp = value;
}
+ /**
+ * Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
+ */
+ public ApiPaymentResponse withStatusTimestamp(ZonedDateTime value) {
+ this.statusTimestamp = value;
+ return this;
+ }
+
/**
* Amount for the operation.
*/
@@ -223,4 +417,12 @@ public AmountData getTotalAuthorizedAmount() {
public void setTotalAuthorizedAmount(AmountData value) {
this.totalAuthorizedAmount = value;
}
+
+ /**
+ * Amount for the operation.
+ */
+ public ApiPaymentResponse withTotalAuthorizedAmount(AmountData value) {
+ this.totalAuthorizedAmount = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentReversalRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentReversalRequest.java
index b05c9c1..067377a 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentReversalRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentReversalRequest.java
@@ -14,6 +14,8 @@ public class ApiPaymentReversalRequest {
private AmountData reversalAmount;
+ private TerminalData terminalData;
+
private ZonedDateTime transactionTimestamp;
/**
@@ -32,6 +34,15 @@ public void setDynamicCurrencyConversion(DccData value) {
this.dynamicCurrencyConversion = value;
}
+ /**
+ * Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
+ * Mandatory for DCC transactions.
+ */
+ public ApiPaymentReversalRequest withDynamicCurrencyConversion(DccData value) {
+ this.dynamicCurrencyConversion = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -54,6 +65,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiPaymentReversalRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* Amount to reverse. If not provided, the full amount will be reversed.
*/
@@ -68,6 +91,27 @@ public void setReversalAmount(AmountData value) {
this.reversalAmount = value;
}
+ /**
+ * Amount to reverse. If not provided, the full amount will be reversed.
+ */
+ public ApiPaymentReversalRequest withReversalAmount(AmountData value) {
+ this.reversalAmount = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiPaymentReversalRequest withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -85,4 +129,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiPaymentReversalRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentSummaryForResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentSummaryForResponse.java
index 0e8586d..bc6cf17 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentSummaryForResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiPaymentSummaryForResponse.java
@@ -32,6 +32,14 @@ public void setPaymentId(String value) {
this.paymentId = value;
}
+ /**
+ * the ID of the payment
+ */
+ public ApiPaymentSummaryForResponse withPaymentId(String value) {
+ this.paymentId = value;
+ return this;
+ }
+
/**
* A set of references returned in responses
*/
@@ -46,6 +54,14 @@ public void setReferences(ApiReferencesForResponses value) {
this.references = value;
}
+ /**
+ * A set of references returned in responses
+ */
+ public ApiPaymentSummaryForResponse withReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ return this;
+ }
+
/**
* The duration to wait after the initial submission before retrying the payment.
* Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
@@ -67,19 +83,68 @@ public void setRetryAfter(String value) {
}
/**
- * The status of the payment, refund or credit transfer
+ * The duration to wait after the initial submission before retrying the payment.
+ * Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
+ * This field is only present when the payment can be retried later.
+ * PT0 means that the payment can be retried immediately.
+ */
+ public ApiPaymentSummaryForResponse withRetryAfter(String value) {
+ this.retryAfter = value;
+ return this;
+ }
+
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public String getStatus() {
return status;
}
/**
- * The status of the payment, refund or credit transfer
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public void setStatus(String value) {
this.status = value;
}
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
+ */
+ public ApiPaymentSummaryForResponse withStatus(String value) {
+ this.status = value;
+ return this;
+ }
+
/**
* Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
*/
@@ -93,4 +158,12 @@ public ZonedDateTime getStatusTimestamp() {
public void setStatusTimestamp(ZonedDateTime value) {
this.statusTimestamp = value;
}
+
+ /**
+ * Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
+ */
+ public ApiPaymentSummaryForResponse withStatusTimestamp(ZonedDateTime value) {
+ this.statusTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiReferencesForResponses.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiReferencesForResponses.java
index cdfc0ea..41fcb54 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiReferencesForResponses.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiReferencesForResponses.java
@@ -26,6 +26,14 @@ public void setPaymentAccountReference(String value) {
this.paymentAccountReference = value;
}
+ /**
+ * (PAR) Unique identifier associated with a specific cardholder PAN
+ */
+ public ApiReferencesForResponses withPaymentAccountReference(String value) {
+ this.paymentAccountReference = value;
+ return this;
+ }
+
/**
* Retrieval reference number for transaction, must be AN(12) if provided
*/
@@ -40,6 +48,14 @@ public void setRetrievalReferenceNumber(String value) {
this.retrievalReferenceNumber = value;
}
+ /**
+ * Retrieval reference number for transaction, must be AN(12) if provided
+ */
+ public ApiReferencesForResponses withRetrievalReferenceNumber(String value) {
+ this.retrievalReferenceNumber = value;
+ return this;
+ }
+
/**
* ID assigned by the scheme to identify a transaction through
* its whole lifecycle.
@@ -55,4 +71,13 @@ public String getSchemeTransactionId() {
public void setSchemeTransactionId(String value) {
this.schemeTransactionId = value;
}
+
+ /**
+ * ID assigned by the scheme to identify a transaction through
+ * its whole lifecycle.
+ */
+ public ApiReferencesForResponses withSchemeTransactionId(String value) {
+ this.schemeTransactionId = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundRequest.java
index a61b753..fb39f47 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundRequest.java
@@ -36,6 +36,14 @@ public void setAmount(AmountData value) {
this.amount = value;
}
+ /**
+ * Amount for the operation.
+ */
+ public ApiRefundRequest withAmount(AmountData value) {
+ this.amount = value;
+ return this;
+ }
+
/**
* Card data for refund
*/
@@ -50,6 +58,14 @@ public void setCardPaymentData(CardPaymentDataForRefund value) {
this.cardPaymentData = value;
}
+ /**
+ * Card data for refund
+ */
+ public ApiRefundRequest withCardPaymentData(CardPaymentDataForRefund value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
/**
* Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
* Mandatory for DCC transactions.
@@ -66,6 +82,15 @@ public void setDynamicCurrencyConversion(DccData value) {
this.dynamicCurrencyConversion = value;
}
+ /**
+ * Dynamic Currency Conversion (DCC) rate data from DCC lookup response.
+ * Mandatory for DCC transactions.
+ */
+ public ApiRefundRequest withDynamicCurrencyConversion(DccData value) {
+ this.dynamicCurrencyConversion = value;
+ return this;
+ }
+
/**
* Merchant Data
*/
@@ -80,6 +105,14 @@ public void setMerchant(MerchantData value) {
this.merchant = value;
}
+ /**
+ * Merchant Data
+ */
+ public ApiRefundRequest withMerchant(MerchantData value) {
+ this.merchant = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -102,6 +135,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiRefundRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* Payment References
*/
@@ -116,6 +161,14 @@ public void setReferences(PaymentReferences value) {
this.references = value;
}
+ /**
+ * Payment References
+ */
+ public ApiRefundRequest withReferences(PaymentReferences value) {
+ this.references = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -133,4 +186,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiRefundRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundResource.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundResource.java
index 159e654..f6b14d2 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundResource.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundResource.java
@@ -37,6 +37,11 @@ public void setCardPaymentData(CardPaymentDataForResource value) {
this.cardPaymentData = value;
}
+ public ApiRefundResource withCardPaymentData(CardPaymentDataForResource value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
/**
* Authorization approval code
*/
@@ -51,6 +56,14 @@ public void setInitialAuthorizationCode(String value) {
this.initialAuthorizationCode = value;
}
+ /**
+ * Authorization approval code
+ */
+ public ApiRefundResource withInitialAuthorizationCode(String value) {
+ this.initialAuthorizationCode = value;
+ return this;
+ }
+
public List getOperations() {
return operations;
}
@@ -59,6 +72,11 @@ public void setOperations(List value) {
this.operations = value;
}
+ public ApiRefundResource withOperations(List value) {
+ this.operations = value;
+ return this;
+ }
+
/**
* The identifier of the payment referenced by this refund.
*/
@@ -73,6 +91,14 @@ public void setReferencedPaymentId(String value) {
this.referencedPaymentId = value;
}
+ /**
+ * The identifier of the payment referenced by this refund.
+ */
+ public ApiRefundResource withReferencedPaymentId(String value) {
+ this.referencedPaymentId = value;
+ return this;
+ }
+
/**
* A set of references returned in responses
*/
@@ -87,6 +113,14 @@ public void setReferences(ApiReferencesForResponses value) {
this.references = value;
}
+ /**
+ * A set of references returned in responses
+ */
+ public ApiRefundResource withReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ return this;
+ }
+
/**
* the ID of the refund
*/
@@ -101,6 +135,14 @@ public void setRefundId(String value) {
this.refundId = value;
}
+ /**
+ * the ID of the refund
+ */
+ public ApiRefundResource withRefundId(String value) {
+ this.refundId = value;
+ return this;
+ }
+
/**
* The duration to wait after the initial submission before retrying the payment.
* Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
@@ -122,19 +164,68 @@ public void setRetryAfter(String value) {
}
/**
- * The status of the payment, refund or credit transfer
+ * The duration to wait after the initial submission before retrying the payment.
+ * Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
+ * This field is only present when the payment can be retried later.
+ * PT0 means that the payment can be retried immediately.
+ */
+ public ApiRefundResource withRetryAfter(String value) {
+ this.retryAfter = value;
+ return this;
+ }
+
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public String getStatus() {
return status;
}
/**
- * The status of the payment, refund or credit transfer
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public void setStatus(String value) {
this.status = value;
}
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
+ */
+ public ApiRefundResource withStatus(String value) {
+ this.status = value;
+ return this;
+ }
+
/**
* Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
*/
@@ -149,6 +240,14 @@ public void setStatusTimestamp(ZonedDateTime value) {
this.statusTimestamp = value;
}
+ /**
+ * Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
+ */
+ public ApiRefundResource withStatusTimestamp(ZonedDateTime value) {
+ this.statusTimestamp = value;
+ return this;
+ }
+
/**
* Amount for the operation.
*/
@@ -162,4 +261,12 @@ public AmountData getTotalAuthorizedAmount() {
public void setTotalAuthorizedAmount(AmountData value) {
this.totalAuthorizedAmount = value;
}
+
+ /**
+ * Amount for the operation.
+ */
+ public ApiRefundResource withTotalAuthorizedAmount(AmountData value) {
+ this.totalAuthorizedAmount = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundResponse.java
index da81c67..eb0811d 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundResponse.java
@@ -5,6 +5,7 @@
package com.worldline.acquiring.sdk.java.v1.domain;
import java.time.ZonedDateTime;
+import java.util.List;
public class ApiRefundResponse {
@@ -12,6 +13,8 @@ public class ApiRefundResponse {
private CardPaymentDataForResource cardPaymentData;
+ private List emvData;
+
private String operationId;
private String referencedPaymentId;
@@ -50,6 +53,14 @@ public void setAuthorizationCode(String value) {
this.authorizationCode = value;
}
+ /**
+ * Authorization approval code
+ */
+ public ApiRefundResponse withAuthorizationCode(String value) {
+ this.authorizationCode = value;
+ return this;
+ }
+
public CardPaymentDataForResource getCardPaymentData() {
return cardPaymentData;
}
@@ -58,6 +69,36 @@ public void setCardPaymentData(CardPaymentDataForResource value) {
this.cardPaymentData = value;
}
+ public ApiRefundResponse withCardPaymentData(CardPaymentDataForResource value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ * It is needed when cardEntryMode is CHIP or CONTACTLESS.
+ */
+ public List getEmvData() {
+ return emvData;
+ }
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ * It is needed when cardEntryMode is CHIP or CONTACTLESS.
+ */
+ public void setEmvData(List value) {
+ this.emvData = value;
+ }
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ * It is needed when cardEntryMode is CHIP or CONTACTLESS.
+ */
+ public ApiRefundResponse withEmvData(List value) {
+ this.emvData = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -80,6 +121,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiRefundResponse withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* The identifier of the payment referenced by this refund.
*/
@@ -94,6 +147,14 @@ public void setReferencedPaymentId(String value) {
this.referencedPaymentId = value;
}
+ /**
+ * The identifier of the payment referenced by this refund.
+ */
+ public ApiRefundResponse withReferencedPaymentId(String value) {
+ this.referencedPaymentId = value;
+ return this;
+ }
+
/**
* A set of references returned in responses
*/
@@ -108,6 +169,14 @@ public void setReferences(ApiReferencesForResponses value) {
this.references = value;
}
+ /**
+ * A set of references returned in responses
+ */
+ public ApiRefundResponse withReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ return this;
+ }
+
/**
* the ID of the refund
*/
@@ -122,8 +191,23 @@ public void setRefundId(String value) {
this.refundId = value;
}
+ /**
+ * the ID of the refund
+ */
+ public ApiRefundResponse withRefundId(String value) {
+ this.refundId = value;
+ return this;
+ }
+
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public String getResponder() {
return responder;
@@ -131,11 +215,33 @@ public String getResponder() {
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public void setResponder(String value) {
this.responder = value;
}
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public ApiRefundResponse withResponder(String value) {
+ this.responder = value;
+ return this;
+ }
+
/**
* Numeric response code, e.g. 0000, 0005
*/
@@ -151,19 +257,53 @@ public void setResponseCode(String value) {
}
/**
- * Category of response code.
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public ApiRefundResponse withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public String getResponseCodeCategory() {
return responseCodeCategory;
}
/**
- * Category of response code.
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public void setResponseCodeCategory(String value) {
this.responseCodeCategory = value;
}
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public ApiRefundResponse withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
/**
* Description of the response code
*/
@@ -178,6 +318,14 @@ public void setResponseCodeDescription(String value) {
this.responseCodeDescription = value;
}
+ /**
+ * Description of the response code
+ */
+ public ApiRefundResponse withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
+
/**
* The duration to wait after the initial submission before retrying the payment.
* Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
@@ -199,19 +347,68 @@ public void setRetryAfter(String value) {
}
/**
- * The status of the payment, refund or credit transfer
+ * The duration to wait after the initial submission before retrying the payment.
+ * Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
+ * This field is only present when the payment can be retried later.
+ * PT0 means that the payment can be retried immediately.
+ */
+ public ApiRefundResponse withRetryAfter(String value) {
+ this.retryAfter = value;
+ return this;
+ }
+
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public String getStatus() {
return status;
}
/**
- * The status of the payment, refund or credit transfer
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public void setStatus(String value) {
this.status = value;
}
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
+ */
+ public ApiRefundResponse withStatus(String value) {
+ this.status = value;
+ return this;
+ }
+
/**
* Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
*/
@@ -226,6 +423,14 @@ public void setStatusTimestamp(ZonedDateTime value) {
this.statusTimestamp = value;
}
+ /**
+ * Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
+ */
+ public ApiRefundResponse withStatusTimestamp(ZonedDateTime value) {
+ this.statusTimestamp = value;
+ return this;
+ }
+
/**
* Amount for the operation.
*/
@@ -239,4 +444,12 @@ public AmountData getTotalAuthorizedAmount() {
public void setTotalAuthorizedAmount(AmountData value) {
this.totalAuthorizedAmount = value;
}
+
+ /**
+ * Amount for the operation.
+ */
+ public ApiRefundResponse withTotalAuthorizedAmount(AmountData value) {
+ this.totalAuthorizedAmount = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundSummaryForResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundSummaryForResponse.java
index 7aeb219..3bc8eda 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundSummaryForResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiRefundSummaryForResponse.java
@@ -32,6 +32,14 @@ public void setReferences(ApiReferencesForResponses value) {
this.references = value;
}
+ /**
+ * A set of references returned in responses
+ */
+ public ApiRefundSummaryForResponse withReferences(ApiReferencesForResponses value) {
+ this.references = value;
+ return this;
+ }
+
/**
* the ID of the refund
*/
@@ -46,6 +54,14 @@ public void setRefundId(String value) {
this.refundId = value;
}
+ /**
+ * the ID of the refund
+ */
+ public ApiRefundSummaryForResponse withRefundId(String value) {
+ this.refundId = value;
+ return this;
+ }
+
/**
* The duration to wait after the initial submission before retrying the payment.
* Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
@@ -67,19 +83,68 @@ public void setRetryAfter(String value) {
}
/**
- * The status of the payment, refund or credit transfer
+ * The duration to wait after the initial submission before retrying the payment.
+ * Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
+ * This field is only present when the payment can be retried later.
+ * PT0 means that the payment can be retried immediately.
+ */
+ public ApiRefundSummaryForResponse withRetryAfter(String value) {
+ this.retryAfter = value;
+ return this;
+ }
+
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public String getStatus() {
return status;
}
/**
- * The status of the payment, refund or credit transfer
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
*/
public void setStatus(String value) {
this.status = value;
}
+ /**
+ * The status of the payment, refund or credit transfer
+ * Possible values are:
+ *
+ * - AUTHORIZED
+ * - NOT_AUTHORIZED
+ * - PENDING
+ * - PENDING_CAPTURE
+ * - CONFIRMED
+ * - REVERSED
+ * - CANCELLED
+ *
+ */
+ public ApiRefundSummaryForResponse withStatus(String value) {
+ this.status = value;
+ return this;
+ }
+
/**
* Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
*/
@@ -93,4 +158,12 @@ public ZonedDateTime getStatusTimestamp() {
public void setStatusTimestamp(ZonedDateTime value) {
this.statusTimestamp = value;
}
+
+ /**
+ * Timestamp of the status in format yyyy-MM-ddTHH:mm:ssZ
+ */
+ public ApiRefundSummaryForResponse withStatusTimestamp(ZonedDateTime value) {
+ this.statusTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiReversalResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiReversalResponse.java
index ceff238..16ec290 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiReversalResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiReversalResponse.java
@@ -21,4 +21,83 @@ public AmountData getTotalAuthorizedAmount() {
public void setTotalAuthorizedAmount(AmountData value) {
this.totalAuthorizedAmount = value;
}
+
+ /**
+ * Amount for the operation.
+ */
+ public ApiReversalResponse withTotalAuthorizedAmount(AmountData value) {
+ this.totalAuthorizedAmount = value;
+ return this;
+ }
+
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ @Override
+ public ApiReversalResponse withOperationId(String value) {
+ super.withOperationId(value);
+ return this;
+ }
+
+ /**
+ * A summary of the payment used for responses
+ */
+ @Override
+ public ApiReversalResponse withPayment(ApiPaymentSummaryForResponse value) {
+ super.withPayment(value);
+ return this;
+ }
+
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ @Override
+ public ApiReversalResponse withResponder(String value) {
+ super.withResponder(value);
+ return this;
+ }
+
+ /**
+ * Numeric response code, e.g. 0000, 0005
+ */
+ @Override
+ public ApiReversalResponse withResponseCode(String value) {
+ super.withResponseCode(value);
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ @Override
+ public ApiReversalResponse withResponseCodeCategory(String value) {
+ super.withResponseCodeCategory(value);
+ return this;
+ }
+
+ /**
+ * Description of the response code
+ */
+ @Override
+ public ApiReversalResponse withResponseCodeDescription(String value) {
+ super.withResponseCodeDescription(value);
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiTechnicalReversalRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiTechnicalReversalRequest.java
index 7049e8b..7deb821 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiTechnicalReversalRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiTechnicalReversalRequest.java
@@ -12,6 +12,8 @@ public class ApiTechnicalReversalRequest {
private String reason;
+ private TerminalData terminalData;
+
private ZonedDateTime transactionTimestamp;
/**
@@ -36,6 +38,18 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiTechnicalReversalRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* Reason for reversal
*/
@@ -50,6 +64,27 @@ public void setReason(String value) {
this.reason = value;
}
+ /**
+ * Reason for reversal
+ */
+ public ApiTechnicalReversalRequest withReason(String value) {
+ this.reason = value;
+ return this;
+ }
+
+ public TerminalData getTerminalData() {
+ return terminalData;
+ }
+
+ public void setTerminalData(TerminalData value) {
+ this.terminalData = value;
+ }
+
+ public ApiTechnicalReversalRequest withTerminalData(TerminalData value) {
+ this.terminalData = value;
+ return this;
+ }
+
/**
* Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
* It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
@@ -67,4 +102,14 @@ public ZonedDateTime getTransactionTimestamp() {
public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+
+ /**
+ * Timestamp of transaction in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ */
+ public ApiTechnicalReversalRequest withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiTechnicalReversalResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiTechnicalReversalResponse.java
index d036b67..5c5e55d 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiTechnicalReversalResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ApiTechnicalReversalResponse.java
@@ -38,8 +38,27 @@ public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public ApiTechnicalReversalResponse withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public String getResponder() {
return responder;
@@ -47,11 +66,33 @@ public String getResponder() {
/**
* The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
*/
public void setResponder(String value) {
this.responder = value;
}
+ /**
+ * The party that originated the response
+ * Possible values are:
+ *
+ * - WORLDLINE
+ * - ISSUER
+ * - SCHEME
+ * - PARTNER
+ *
+ */
+ public ApiTechnicalReversalResponse withResponder(String value) {
+ this.responder = value;
+ return this;
+ }
+
/**
* Numeric response code, e.g. 0000, 0005
*/
@@ -67,19 +108,53 @@ public void setResponseCode(String value) {
}
/**
- * Category of response code.
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public ApiTechnicalReversalResponse withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public String getResponseCodeCategory() {
return responseCodeCategory;
}
/**
- * Category of response code.
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public void setResponseCodeCategory(String value) {
this.responseCodeCategory = value;
}
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public ApiTechnicalReversalResponse withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
/**
* Description of the response code
*/
@@ -93,4 +168,12 @@ public String getResponseCodeDescription() {
public void setResponseCodeDescription(String value) {
this.responseCodeDescription = value;
}
+
+ /**
+ * Description of the response code
+ */
+ public ApiTechnicalReversalResponse withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardDataForDcc.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardDataForDcc.java
index 87afbd7..b42b262 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardDataForDcc.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardDataForDcc.java
@@ -12,6 +12,8 @@ public class CardDataForDcc {
private String cardCountryCode;
+ private String cardEntryMode;
+
/**
* Used to determine the currency of the card.
* The first 12 digits of the card number.
@@ -34,6 +36,18 @@ public void setBin(String value) {
this.bin = value;
}
+ /**
+ * Used to determine the currency of the card.
+ * The first 12 digits of the card number.
+ * The BIN number is on the first 6 or 8 digits.
+ * Some issuers are using subranges for different countries on digits
+ * 9-12.
+ */
+ public CardDataForDcc withBin(String value) {
+ this.bin = value;
+ return this;
+ }
+
/**
* The card brand
*/
@@ -49,16 +63,54 @@ public void setBrand(String value) {
}
/**
- * The country code of the card
+ * The card brand
+ */
+ public CardDataForDcc withBrand(String value) {
+ this.brand = value;
+ return this;
+ }
+
+ /**
+ * The ISO 3166 country code of the card
*/
public String getCardCountryCode() {
return cardCountryCode;
}
/**
- * The country code of the card
+ * The ISO 3166 country code of the card
*/
public void setCardCountryCode(String value) {
this.cardCountryCode = value;
}
+
+ /**
+ * The ISO 3166 country code of the card
+ */
+ public CardDataForDcc withCardCountryCode(String value) {
+ this.cardCountryCode = value;
+ return this;
+ }
+
+ /**
+ * Card entry mode used in the transaction
+ */
+ public String getCardEntryMode() {
+ return cardEntryMode;
+ }
+
+ /**
+ * Card entry mode used in the transaction
+ */
+ public void setCardEntryMode(String value) {
+ this.cardEntryMode = value;
+ }
+
+ /**
+ * Card entry mode used in the transaction
+ */
+ public CardDataForDcc withCardEntryMode(String value) {
+ this.cardEntryMode = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardOnFileData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardOnFileData.java
index d411d7d..fbd218c 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardOnFileData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardOnFileData.java
@@ -20,20 +20,33 @@ public void setInitialCardOnFileData(InitialCardOnFileData value) {
this.initialCardOnFileData = value;
}
+ public CardOnFileData withInitialCardOnFileData(InitialCardOnFileData value) {
+ this.initialCardOnFileData = value;
+ return this;
+ }
+
/**
- * Indicate wether this is the initial Card on File transaction or not
+ * Indicate whether this is the initial Card on File transaction or not
*/
public Boolean getIsInitialTransaction() {
return isInitialTransaction;
}
/**
- * Indicate wether this is the initial Card on File transaction or not
+ * Indicate whether this is the initial Card on File transaction or not
*/
public void setIsInitialTransaction(Boolean value) {
this.isInitialTransaction = value;
}
+ /**
+ * Indicate whether this is the initial Card on File transaction or not
+ */
+ public CardOnFileData withIsInitialTransaction(Boolean value) {
+ this.isInitialTransaction = value;
+ return this;
+ }
+
public SubsequentCardOnFileData getSubsequentCardOnFileData() {
return subsequentCardOnFileData;
}
@@ -41,4 +54,9 @@ public SubsequentCardOnFileData getSubsequentCardOnFileData() {
public void setSubsequentCardOnFileData(SubsequentCardOnFileData value) {
this.subsequentCardOnFileData = value;
}
+
+ public CardOnFileData withSubsequentCardOnFileData(SubsequentCardOnFileData value) {
+ this.subsequentCardOnFileData = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentData.java
index ba15f6a..f6ffe79 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentData.java
@@ -10,6 +10,8 @@ public class CardPaymentData {
private String brand;
+ private String brandSelector;
+
private Boolean captureImmediately;
private PlainCardData cardData;
@@ -29,19 +31,27 @@ public class CardPaymentData {
private String walletId;
/**
- * Indicate wether you allow partial approval or not
+ * Indicate whether you allow partial approval or not
*/
public Boolean getAllowPartialApproval() {
return allowPartialApproval;
}
/**
- * Indicate wether you allow partial approval or not
+ * Indicate whether you allow partial approval or not
*/
public void setAllowPartialApproval(Boolean value) {
this.allowPartialApproval = value;
}
+ /**
+ * Indicate whether you allow partial approval or not
+ */
+ public CardPaymentData withAllowPartialApproval(Boolean value) {
+ this.allowPartialApproval = value;
+ return this;
+ }
+
/**
* The card brand
*/
@@ -56,6 +66,36 @@ public void setBrand(String value) {
this.brand = value;
}
+ /**
+ * The card brand
+ */
+ public CardPaymentData withBrand(String value) {
+ this.brand = value;
+ return this;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public String getBrandSelector() {
+ return brandSelector;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public void setBrandSelector(String value) {
+ this.brandSelector = value;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public CardPaymentData withBrandSelector(String value) {
+ this.brandSelector = value;
+ return this;
+ }
+
/**
* If true the transaction will be authorized and captured immediately
*/
@@ -70,6 +110,14 @@ public void setCaptureImmediately(Boolean value) {
this.captureImmediately = value;
}
+ /**
+ * If true the transaction will be authorized and captured immediately
+ */
+ public CardPaymentData withCaptureImmediately(Boolean value) {
+ this.captureImmediately = value;
+ return this;
+ }
+
/**
* Card data in plain text
*/
@@ -85,19 +133,35 @@ public void setCardData(PlainCardData value) {
}
/**
- * Card entry mode used in the transaction, defaults to ECOMMERCE
+ * Card data in plain text
+ */
+ public CardPaymentData withCardData(PlainCardData value) {
+ this.cardData = value;
+ return this;
+ }
+
+ /**
+ * Card entry mode used in the transaction
*/
public String getCardEntryMode() {
return cardEntryMode;
}
/**
- * Card entry mode used in the transaction, defaults to ECOMMERCE
+ * Card entry mode used in the transaction
*/
public void setCardEntryMode(String value) {
this.cardEntryMode = value;
}
+ /**
+ * Card entry mode used in the transaction
+ */
+ public CardPaymentData withCardEntryMode(String value) {
+ this.cardEntryMode = value;
+ return this;
+ }
+
public CardOnFileData getCardOnFileData() {
return cardOnFileData;
}
@@ -106,6 +170,11 @@ public void setCardOnFileData(CardOnFileData value) {
this.cardOnFileData = value;
}
+ public CardPaymentData withCardOnFileData(CardOnFileData value) {
+ this.cardOnFileData = value;
+ return this;
+ }
+
/**
* Cardholder verification method used in the transaction
*/
@@ -121,19 +190,35 @@ public void setCardholderVerificationMethod(String value) {
}
/**
- * Request data for eCommerce and MOTO transactions
+ * Cardholder verification method used in the transaction
+ */
+ public CardPaymentData withCardholderVerificationMethod(String value) {
+ this.cardholderVerificationMethod = value;
+ return this;
+ }
+
+ /**
+ * Request data for eCommerce transactions
*/
public ECommerceData getEcommerceData() {
return ecommerceData;
}
/**
- * Request data for eCommerce and MOTO transactions
+ * Request data for eCommerce transactions
*/
public void setEcommerceData(ECommerceData value) {
this.ecommerceData = value;
}
+ /**
+ * Request data for eCommerce transactions
+ */
+ public CardPaymentData withEcommerceData(ECommerceData value) {
+ this.ecommerceData = value;
+ return this;
+ }
+
public NetworkTokenData getNetworkTokenData() {
return networkTokenData;
}
@@ -142,20 +227,33 @@ public void setNetworkTokenData(NetworkTokenData value) {
this.networkTokenData = value;
}
+ public CardPaymentData withNetworkTokenData(NetworkTokenData value) {
+ this.networkTokenData = value;
+ return this;
+ }
+
/**
- * Payment terminal request data
+ * Request data for Point Of Sale (POS) or "in person" Transaction
*/
public PointOfSaleData getPointOfSaleData() {
return pointOfSaleData;
}
/**
- * Payment terminal request data
+ * Request data for Point Of Sale (POS) or "in person" Transaction
*/
public void setPointOfSaleData(PointOfSaleData value) {
this.pointOfSaleData = value;
}
+ /**
+ * Request data for Point Of Sale (POS) or "in person" Transaction
+ */
+ public CardPaymentData withPointOfSaleData(PointOfSaleData value) {
+ this.pointOfSaleData = value;
+ return this;
+ }
+
/**
* Type of wallet, values are assigned by card schemes, e.g. 101
* for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay,
@@ -173,4 +271,14 @@ public String getWalletId() {
public void setWalletId(String value) {
this.walletId = value;
}
+
+ /**
+ * Type of wallet, values are assigned by card schemes, e.g. 101
+ * for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay,
+ * 216 for Google Pay and 217 for Samsung Pay
+ */
+ public CardPaymentData withWalletId(String value) {
+ this.walletId = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForBalanceInquiry.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForBalanceInquiry.java
new file mode 100644
index 0000000..3435c45
--- /dev/null
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForBalanceInquiry.java
@@ -0,0 +1,206 @@
+/*
+ * This file was automatically generated.
+ */
+
+package com.worldline.acquiring.sdk.java.v1.domain;
+
+public class CardPaymentDataForBalanceInquiry {
+
+ private String brand;
+
+ private String brandSelector;
+
+ private PlainCardData cardData;
+
+ private String cardEntryMode;
+
+ private String cardholderVerificationMethod;
+
+ private ECommerceData ecommerceData;
+
+ private PointOfSaleData pointOfSaleData;
+
+ private String walletId;
+
+ /**
+ * The card brand
+ */
+ public String getBrand() {
+ return brand;
+ }
+
+ /**
+ * The card brand
+ */
+ public void setBrand(String value) {
+ this.brand = value;
+ }
+
+ /**
+ * The card brand
+ */
+ public CardPaymentDataForBalanceInquiry withBrand(String value) {
+ this.brand = value;
+ return this;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public String getBrandSelector() {
+ return brandSelector;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public void setBrandSelector(String value) {
+ this.brandSelector = value;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public CardPaymentDataForBalanceInquiry withBrandSelector(String value) {
+ this.brandSelector = value;
+ return this;
+ }
+
+ /**
+ * Card data in plain text
+ */
+ public PlainCardData getCardData() {
+ return cardData;
+ }
+
+ /**
+ * Card data in plain text
+ */
+ public void setCardData(PlainCardData value) {
+ this.cardData = value;
+ }
+
+ /**
+ * Card data in plain text
+ */
+ public CardPaymentDataForBalanceInquiry withCardData(PlainCardData value) {
+ this.cardData = value;
+ return this;
+ }
+
+ /**
+ * Card entry mode used in the transaction
+ */
+ public String getCardEntryMode() {
+ return cardEntryMode;
+ }
+
+ /**
+ * Card entry mode used in the transaction
+ */
+ public void setCardEntryMode(String value) {
+ this.cardEntryMode = value;
+ }
+
+ /**
+ * Card entry mode used in the transaction
+ */
+ public CardPaymentDataForBalanceInquiry withCardEntryMode(String value) {
+ this.cardEntryMode = value;
+ return this;
+ }
+
+ /**
+ * Cardholder verification method used in the transaction
+ */
+ public String getCardholderVerificationMethod() {
+ return cardholderVerificationMethod;
+ }
+
+ /**
+ * Cardholder verification method used in the transaction
+ */
+ public void setCardholderVerificationMethod(String value) {
+ this.cardholderVerificationMethod = value;
+ }
+
+ /**
+ * Cardholder verification method used in the transaction
+ */
+ public CardPaymentDataForBalanceInquiry withCardholderVerificationMethod(String value) {
+ this.cardholderVerificationMethod = value;
+ return this;
+ }
+
+ /**
+ * Request data for eCommerce transactions
+ */
+ public ECommerceData getEcommerceData() {
+ return ecommerceData;
+ }
+
+ /**
+ * Request data for eCommerce transactions
+ */
+ public void setEcommerceData(ECommerceData value) {
+ this.ecommerceData = value;
+ }
+
+ /**
+ * Request data for eCommerce transactions
+ */
+ public CardPaymentDataForBalanceInquiry withEcommerceData(ECommerceData value) {
+ this.ecommerceData = value;
+ return this;
+ }
+
+ /**
+ * Request data for Point Of Sale (POS) or "in person" Transaction
+ */
+ public PointOfSaleData getPointOfSaleData() {
+ return pointOfSaleData;
+ }
+
+ /**
+ * Request data for Point Of Sale (POS) or "in person" Transaction
+ */
+ public void setPointOfSaleData(PointOfSaleData value) {
+ this.pointOfSaleData = value;
+ }
+
+ /**
+ * Request data for Point Of Sale (POS) or "in person" Transaction
+ */
+ public CardPaymentDataForBalanceInquiry withPointOfSaleData(PointOfSaleData value) {
+ this.pointOfSaleData = value;
+ return this;
+ }
+
+ /**
+ * Type of wallet, values are assigned by card schemes, e.g. 101
+ * for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay,
+ * 216 for Google Pay and 217 for Samsung Pay
+ */
+ public String getWalletId() {
+ return walletId;
+ }
+
+ /**
+ * Type of wallet, values are assigned by card schemes, e.g. 101
+ * for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay,
+ * 216 for Google Pay and 217 for Samsung Pay
+ */
+ public void setWalletId(String value) {
+ this.walletId = value;
+ }
+
+ /**
+ * Type of wallet, values are assigned by card schemes, e.g. 101
+ * for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay,
+ * 216 for Google Pay and 217 for Samsung Pay
+ */
+ public CardPaymentDataForBalanceInquiry withWalletId(String value) {
+ this.walletId = value;
+ return this;
+ }
+}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForRefund.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForRefund.java
index a30c157..5d474fd 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForRefund.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForRefund.java
@@ -8,15 +8,17 @@ public class CardPaymentDataForRefund {
private String brand;
+ private String brandSelector;
+
private Boolean captureImmediately;
private PlainCardData cardData;
private String cardEntryMode;
- private NetworkTokenData networkTokenData;
+ private String cardholderVerificationMethod;
- private PointOfSaleData pointOfSaleData;
+ private NetworkTokenData networkTokenData;
private String walletId;
@@ -34,6 +36,36 @@ public void setBrand(String value) {
this.brand = value;
}
+ /**
+ * The card brand
+ */
+ public CardPaymentDataForRefund withBrand(String value) {
+ this.brand = value;
+ return this;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public String getBrandSelector() {
+ return brandSelector;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public void setBrandSelector(String value) {
+ this.brandSelector = value;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public CardPaymentDataForRefund withBrandSelector(String value) {
+ this.brandSelector = value;
+ return this;
+ }
+
/**
* If true the transaction will be authorized and captured immediately
*/
@@ -48,6 +80,14 @@ public void setCaptureImmediately(Boolean value) {
this.captureImmediately = value;
}
+ /**
+ * If true the transaction will be authorized and captured immediately
+ */
+ public CardPaymentDataForRefund withCaptureImmediately(Boolean value) {
+ this.captureImmediately = value;
+ return this;
+ }
+
/**
* Card data in plain text
*/
@@ -63,39 +103,68 @@ public void setCardData(PlainCardData value) {
}
/**
- * Card entry mode used in the transaction, defaults to ECOMMERCE
+ * Card data in plain text
+ */
+ public CardPaymentDataForRefund withCardData(PlainCardData value) {
+ this.cardData = value;
+ return this;
+ }
+
+ /**
+ * Card entry mode used in the transaction
*/
public String getCardEntryMode() {
return cardEntryMode;
}
/**
- * Card entry mode used in the transaction, defaults to ECOMMERCE
+ * Card entry mode used in the transaction
*/
public void setCardEntryMode(String value) {
this.cardEntryMode = value;
}
- public NetworkTokenData getNetworkTokenData() {
- return networkTokenData;
+ /**
+ * Card entry mode used in the transaction
+ */
+ public CardPaymentDataForRefund withCardEntryMode(String value) {
+ this.cardEntryMode = value;
+ return this;
}
- public void setNetworkTokenData(NetworkTokenData value) {
- this.networkTokenData = value;
+ /**
+ * Cardholder verification method used in the transaction
+ */
+ public String getCardholderVerificationMethod() {
+ return cardholderVerificationMethod;
}
/**
- * Payment terminal request data
+ * Cardholder verification method used in the transaction
*/
- public PointOfSaleData getPointOfSaleData() {
- return pointOfSaleData;
+ public void setCardholderVerificationMethod(String value) {
+ this.cardholderVerificationMethod = value;
}
/**
- * Payment terminal request data
+ * Cardholder verification method used in the transaction
*/
- public void setPointOfSaleData(PointOfSaleData value) {
- this.pointOfSaleData = value;
+ public CardPaymentDataForRefund withCardholderVerificationMethod(String value) {
+ this.cardholderVerificationMethod = value;
+ return this;
+ }
+
+ public NetworkTokenData getNetworkTokenData() {
+ return networkTokenData;
+ }
+
+ public void setNetworkTokenData(NetworkTokenData value) {
+ this.networkTokenData = value;
+ }
+
+ public CardPaymentDataForRefund withNetworkTokenData(NetworkTokenData value) {
+ this.networkTokenData = value;
+ return this;
}
/**
@@ -115,4 +184,14 @@ public String getWalletId() {
public void setWalletId(String value) {
this.walletId = value;
}
+
+ /**
+ * Type of wallet, values are assigned by card schemes, e.g. 101
+ * for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay,
+ * 216 for Google Pay and 217 for Samsung Pay
+ */
+ public CardPaymentDataForRefund withWalletId(String value) {
+ this.walletId = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForResource.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForResource.java
index c7d3d24..b3e858d 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForResource.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForResource.java
@@ -8,8 +8,6 @@ public class CardPaymentDataForResource {
private String brand;
- private PointOfSaleData pointOfSaleData;
-
/**
* The card brand
*/
@@ -25,16 +23,10 @@ public void setBrand(String value) {
}
/**
- * Payment terminal request data
- */
- public PointOfSaleData getPointOfSaleData() {
- return pointOfSaleData;
- }
-
- /**
- * Payment terminal request data
+ * The card brand
*/
- public void setPointOfSaleData(PointOfSaleData value) {
- this.pointOfSaleData = value;
+ public CardPaymentDataForResource withBrand(String value) {
+ this.brand = value;
+ return this;
}
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForResponse.java
index cac9252..744273c 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForResponse.java
@@ -10,7 +10,7 @@ public class CardPaymentDataForResponse {
private ECommerceDataForResponse ecommerceData;
- private PointOfSaleData pointOfSaleData;
+ private PointOfSaleDataForResponse pointOfSaleData;
/**
* The card brand
@@ -26,6 +26,14 @@ public void setBrand(String value) {
this.brand = value;
}
+ /**
+ * The card brand
+ */
+ public CardPaymentDataForResponse withBrand(String value) {
+ this.brand = value;
+ return this;
+ }
+
public ECommerceDataForResponse getEcommerceData() {
return ecommerceData;
}
@@ -34,17 +42,21 @@ public void setEcommerceData(ECommerceDataForResponse value) {
this.ecommerceData = value;
}
- /**
- * Payment terminal request data
- */
- public PointOfSaleData getPointOfSaleData() {
+ public CardPaymentDataForResponse withEcommerceData(ECommerceDataForResponse value) {
+ this.ecommerceData = value;
+ return this;
+ }
+
+ public PointOfSaleDataForResponse getPointOfSaleData() {
return pointOfSaleData;
}
- /**
- * Payment terminal request data
- */
- public void setPointOfSaleData(PointOfSaleData value) {
+ public void setPointOfSaleData(PointOfSaleDataForResponse value) {
+ this.pointOfSaleData = value;
+ }
+
+ public CardPaymentDataForResponse withPointOfSaleData(PointOfSaleDataForResponse value) {
this.pointOfSaleData = value;
+ return this;
}
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForVerification.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForVerification.java
index 381521f..0c0171f 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForVerification.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/CardPaymentDataForVerification.java
@@ -8,6 +8,8 @@ public class CardPaymentDataForVerification {
private String brand;
+ private String brandSelector;
+
private PlainCardData cardData;
private String cardEntryMode;
@@ -20,6 +22,8 @@ public class CardPaymentDataForVerification {
private NetworkTokenData networkTokenData;
+ private PointOfSaleData pointOfSaleData;
+
private String walletId;
/**
@@ -36,6 +40,36 @@ public void setBrand(String value) {
this.brand = value;
}
+ /**
+ * The card brand
+ */
+ public CardPaymentDataForVerification withBrand(String value) {
+ this.brand = value;
+ return this;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public String getBrandSelector() {
+ return brandSelector;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public void setBrandSelector(String value) {
+ this.brandSelector = value;
+ }
+
+ /**
+ * The party responsible for the brand selection.
+ */
+ public CardPaymentDataForVerification withBrandSelector(String value) {
+ this.brandSelector = value;
+ return this;
+ }
+
/**
* Card data in plain text
*/
@@ -51,19 +85,35 @@ public void setCardData(PlainCardData value) {
}
/**
- * Card entry mode used in the transaction, defaults to ECOMMERCE
+ * Card data in plain text
+ */
+ public CardPaymentDataForVerification withCardData(PlainCardData value) {
+ this.cardData = value;
+ return this;
+ }
+
+ /**
+ * Card entry mode used in the transaction
*/
public String getCardEntryMode() {
return cardEntryMode;
}
/**
- * Card entry mode used in the transaction, defaults to ECOMMERCE
+ * Card entry mode used in the transaction
*/
public void setCardEntryMode(String value) {
this.cardEntryMode = value;
}
+ /**
+ * Card entry mode used in the transaction
+ */
+ public CardPaymentDataForVerification withCardEntryMode(String value) {
+ this.cardEntryMode = value;
+ return this;
+ }
+
public CardOnFileData getCardOnFileData() {
return cardOnFileData;
}
@@ -72,6 +122,11 @@ public void setCardOnFileData(CardOnFileData value) {
this.cardOnFileData = value;
}
+ public CardPaymentDataForVerification withCardOnFileData(CardOnFileData value) {
+ this.cardOnFileData = value;
+ return this;
+ }
+
/**
* Cardholder verification method used in the transaction
*/
@@ -87,19 +142,35 @@ public void setCardholderVerificationMethod(String value) {
}
/**
- * Request data for eCommerce and MOTO transactions
+ * Cardholder verification method used in the transaction
+ */
+ public CardPaymentDataForVerification withCardholderVerificationMethod(String value) {
+ this.cardholderVerificationMethod = value;
+ return this;
+ }
+
+ /**
+ * Request data for eCommerce transactions
*/
public ECommerceDataForAccountVerification getEcommerceData() {
return ecommerceData;
}
/**
- * Request data for eCommerce and MOTO transactions
+ * Request data for eCommerce transactions
*/
public void setEcommerceData(ECommerceDataForAccountVerification value) {
this.ecommerceData = value;
}
+ /**
+ * Request data for eCommerce transactions
+ */
+ public CardPaymentDataForVerification withEcommerceData(ECommerceDataForAccountVerification value) {
+ this.ecommerceData = value;
+ return this;
+ }
+
public NetworkTokenData getNetworkTokenData() {
return networkTokenData;
}
@@ -108,6 +179,33 @@ public void setNetworkTokenData(NetworkTokenData value) {
this.networkTokenData = value;
}
+ public CardPaymentDataForVerification withNetworkTokenData(NetworkTokenData value) {
+ this.networkTokenData = value;
+ return this;
+ }
+
+ /**
+ * Request data for Point Of Sale (POS) or "in person" Transaction
+ */
+ public PointOfSaleData getPointOfSaleData() {
+ return pointOfSaleData;
+ }
+
+ /**
+ * Request data for Point Of Sale (POS) or "in person" Transaction
+ */
+ public void setPointOfSaleData(PointOfSaleData value) {
+ this.pointOfSaleData = value;
+ }
+
+ /**
+ * Request data for Point Of Sale (POS) or "in person" Transaction
+ */
+ public CardPaymentDataForVerification withPointOfSaleData(PointOfSaleData value) {
+ this.pointOfSaleData = value;
+ return this;
+ }
+
/**
* Type of wallet, values are assigned by card schemes, e.g. 101
* for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay,
@@ -125,4 +223,14 @@ public String getWalletId() {
public void setWalletId(String value) {
this.walletId = value;
}
+
+ /**
+ * Type of wallet, values are assigned by card schemes, e.g. 101
+ * for MasterPass in eCommerce, 102 for MasterPass NFC, 103 for Apple Pay,
+ * 216 for Google Pay and 217 for Samsung Pay
+ */
+ public CardPaymentDataForVerification withWalletId(String value) {
+ this.walletId = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/DccData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/DccData.java
index cd31db6..9f4cae5 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/DccData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/DccData.java
@@ -19,7 +19,7 @@ public class DccData {
/**
* Amount of transaction formatted according to card scheme
* specifications.
- * E.g. 100 for 1.00 EUR. Either this or amount must be present.
+ * E.g. 100 for 1.00 EUR.
*/
public Long getAmount() {
return amount;
@@ -28,28 +28,44 @@ public Long getAmount() {
/**
* Amount of transaction formatted according to card scheme
* specifications.
- * E.g. 100 for 1.00 EUR. Either this or amount must be present.
+ * E.g. 100 for 1.00 EUR.
*/
public void setAmount(Long value) {
this.amount = value;
}
/**
- * Currency conversion rate in decimal notation.
- * Either this or isoConversionRate must be present
+ * Amount of transaction formatted according to card scheme
+ * specifications.
+ * E.g. 100 for 1.00 EUR.
+ */
+ public DccData withAmount(Long value) {
+ this.amount = value;
+ return this;
+ }
+
+ /**
+ * Currency conversion rate in decimal notation.
*/
public BigDecimal getConversionRate() {
return conversionRate;
}
/**
- * Currency conversion rate in decimal notation.
- * Either this or isoConversionRate must be present
+ * Currency conversion rate in decimal notation.
*/
public void setConversionRate(BigDecimal value) {
this.conversionRate = value;
}
+ /**
+ * Currency conversion rate in decimal notation.
+ */
+ public DccData withConversionRate(BigDecimal value) {
+ this.conversionRate = value;
+ return this;
+ }
+
/**
* Alpha-numeric ISO 4217 currency code for transaction, e.g. EUR
*/
@@ -64,6 +80,14 @@ public void setCurrencyCode(String value) {
this.currencyCode = value;
}
+ /**
+ * Alpha-numeric ISO 4217 currency code for transaction, e.g. EUR
+ */
+ public DccData withCurrencyCode(String value) {
+ this.currencyCode = value;
+ return this;
+ }
+
/**
* Number of decimals in the amount
*/
@@ -77,4 +101,12 @@ public Integer getNumberOfDecimals() {
public void setNumberOfDecimals(Integer value) {
this.numberOfDecimals = value;
}
+
+ /**
+ * Number of decimals in the amount
+ */
+ public DccData withNumberOfDecimals(Integer value) {
+ this.numberOfDecimals = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/DccProposal.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/DccProposal.java
index d0c926d..cc7851d 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/DccProposal.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/DccProposal.java
@@ -28,6 +28,14 @@ public void setOriginalAmount(AmountData value) {
this.originalAmount = value;
}
+ /**
+ * Amount for the operation.
+ */
+ public DccProposal withOriginalAmount(AmountData value) {
+ this.originalAmount = value;
+ return this;
+ }
+
public RateData getRate() {
return rate;
}
@@ -36,6 +44,11 @@ public void setRate(RateData value) {
this.rate = value;
}
+ public DccProposal withRate(RateData value) {
+ this.rate = value;
+ return this;
+ }
+
/**
* The rate reference ID
*/
@@ -50,6 +63,14 @@ public void setRateReferenceId(String value) {
this.rateReferenceId = value;
}
+ /**
+ * The rate reference ID
+ */
+ public DccProposal withRateReferenceId(String value) {
+ this.rateReferenceId = value;
+ return this;
+ }
+
/**
* Amount for the operation.
*/
@@ -63,4 +84,12 @@ public AmountData getResultingAmount() {
public void setResultingAmount(AmountData value) {
this.resultingAmount = value;
}
+
+ /**
+ * Amount for the operation.
+ */
+ public DccProposal withResultingAmount(AmountData value) {
+ this.resultingAmount = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceData.java
index 2b6969f..8804ed8 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceData.java
@@ -26,6 +26,14 @@ public void setAddressVerificationData(AddressVerificationData value) {
this.addressVerificationData = value;
}
+ /**
+ * Address Verification System data
+ */
+ public ECommerceData withAddressVerificationData(AddressVerificationData value) {
+ this.addressVerificationData = value;
+ return this;
+ }
+
/**
* Strong customer authentication exemption request
*/
@@ -40,6 +48,14 @@ public void setScaExemptionRequest(String value) {
this.scaExemptionRequest = value;
}
+ /**
+ * Strong customer authentication exemption request
+ */
+ public ECommerceData withScaExemptionRequest(String value) {
+ this.scaExemptionRequest = value;
+ return this;
+ }
+
/**
* 3D Secure data.
* Please note that if AAV or CAVV or equivalent is
@@ -57,4 +73,14 @@ public ThreeDSecure getThreeDSecure() {
public void setThreeDSecure(ThreeDSecure value) {
this.threeDSecure = value;
}
+
+ /**
+ * 3D Secure data.
+ * Please note that if AAV or CAVV or equivalent is
+ * missing, transaction should not be flagged as 3D Secure.
+ */
+ public ECommerceData withThreeDSecure(ThreeDSecure value) {
+ this.threeDSecure = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceDataForAccountVerification.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceDataForAccountVerification.java
index 3ca8e14..ecd04ae 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceDataForAccountVerification.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceDataForAccountVerification.java
@@ -24,6 +24,14 @@ public void setAddressVerificationData(AddressVerificationData value) {
this.addressVerificationData = value;
}
+ /**
+ * Address Verification System data
+ */
+ public ECommerceDataForAccountVerification withAddressVerificationData(AddressVerificationData value) {
+ this.addressVerificationData = value;
+ return this;
+ }
+
/**
* 3D Secure data.
* Please note that if AAV or CAVV or equivalent is
@@ -41,4 +49,14 @@ public ThreeDSecure getThreeDSecure() {
public void setThreeDSecure(ThreeDSecure value) {
this.threeDSecure = value;
}
+
+ /**
+ * 3D Secure data.
+ * Please note that if AAV or CAVV or equivalent is
+ * missing, transaction should not be flagged as 3D Secure.
+ */
+ public ECommerceDataForAccountVerification withThreeDSecure(ThreeDSecure value) {
+ this.threeDSecure = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceDataForResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceDataForResponse.java
index b5085d5..1b20792 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceDataForResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ECommerceDataForResponse.java
@@ -11,30 +11,103 @@ public class ECommerceDataForResponse {
private String cardSecurityCodeResult;
/**
- * Result of Address Verification Result
+ * Result of Address Verification Result
+ * Possible values:
+ *
+ * - MATCH
+ * - ADDRESS_MATCH_POSTAL_CODE_MISMATCH
+ * - ADDRESS_MISMATCH_POSTAL_CODE_MATCH
+ * - ADDRESS_MATCH_POSTAL_CODE_NOT_VERIFIED
+ * - ADDRESS_NOT_VERIFIED_POSTAL_CODE_MATCH
+ * - MISMATCH
+ * - ERROR
+ * - NOT_VERIFIED
+ *
*/
public String getAddressVerificationResult() {
return addressVerificationResult;
}
/**
- * Result of Address Verification Result
+ * Result of Address Verification Result
+ * Possible values:
+ *
+ * - MATCH
+ * - ADDRESS_MATCH_POSTAL_CODE_MISMATCH
+ * - ADDRESS_MISMATCH_POSTAL_CODE_MATCH
+ * - ADDRESS_MATCH_POSTAL_CODE_NOT_VERIFIED
+ * - ADDRESS_NOT_VERIFIED_POSTAL_CODE_MATCH
+ * - MISMATCH
+ * - ERROR
+ * - NOT_VERIFIED
+ *
*/
public void setAddressVerificationResult(String value) {
this.addressVerificationResult = value;
}
/**
- * Result of card security code check
+ * Result of Address Verification Result
+ * Possible values:
+ *
+ * - MATCH
+ * - ADDRESS_MATCH_POSTAL_CODE_MISMATCH
+ * - ADDRESS_MISMATCH_POSTAL_CODE_MATCH
+ * - ADDRESS_MATCH_POSTAL_CODE_NOT_VERIFIED
+ * - ADDRESS_NOT_VERIFIED_POSTAL_CODE_MATCH
+ * - MISMATCH
+ * - ERROR
+ * - NOT_VERIFIED
+ *
+ */
+ public ECommerceDataForResponse withAddressVerificationResult(String value) {
+ this.addressVerificationResult = value;
+ return this;
+ }
+
+ /**
+ * Result of card security code check
+ * Possible values:
+ *
+ * - MATCH
+ * - MISMATCH
+ * - NOT_VERIFIED
+ * - OMITTED
+ * - MISSING
+ *
*/
public String getCardSecurityCodeResult() {
return cardSecurityCodeResult;
}
/**
- * Result of card security code check
+ * Result of card security code check
+ * Possible values:
+ *
+ * - MATCH
+ * - MISMATCH
+ * - NOT_VERIFIED
+ * - OMITTED
+ * - MISSING
+ *
*/
public void setCardSecurityCodeResult(String value) {
this.cardSecurityCodeResult = value;
}
+
+ /**
+ * Result of card security code check
+ * Possible values:
+ *
+ * - MATCH
+ * - MISMATCH
+ * - NOT_VERIFIED
+ * - OMITTED
+ * - MISSING
+ *
+ */
+ public ECommerceDataForResponse withCardSecurityCodeResult(String value) {
+ this.cardSecurityCodeResult = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/EmvDataItem.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/EmvDataItem.java
new file mode 100644
index 0000000..337267a
--- /dev/null
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/EmvDataItem.java
@@ -0,0 +1,56 @@
+/*
+ * This file was automatically generated.
+ */
+
+package com.worldline.acquiring.sdk.java.v1.domain;
+
+public class EmvDataItem {
+
+ private String tag;
+
+ private String value;
+
+ /**
+ * EMV tag
+ */
+ public String getTag() {
+ return tag;
+ }
+
+ /**
+ * EMV tag
+ */
+ public void setTag(String value) {
+ this.tag = value;
+ }
+
+ /**
+ * EMV tag
+ */
+ public EmvDataItem withTag(String value) {
+ this.tag = value;
+ return this;
+ }
+
+ /**
+ * EMV value encoded in base64
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * EMV value encoded in base64
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * EMV value encoded in base64
+ */
+ public EmvDataItem withValue(String value) {
+ this.value = value;
+ return this;
+ }
+}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/GetDCCRateRequest.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/GetDCCRateRequest.java
index 50d4a10..bd247de 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/GetDCCRateRequest.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/GetDCCRateRequest.java
@@ -26,20 +26,45 @@ public void setCardPaymentData(CardDataForDcc value) {
this.cardPaymentData = value;
}
+ public GetDCCRateRequest withCardPaymentData(CardDataForDcc value) {
+ this.cardPaymentData = value;
+ return this;
+ }
+
/**
- * A unique identifier of the operation, generated by the client.
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
*/
public String getOperationId() {
return operationId;
}
/**
- * A unique identifier of the operation, generated by the client.
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
*/
public void setOperationId(String value) {
this.operationId = value;
}
+ /**
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public GetDCCRateRequest withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
public PointOfSaleDataForDcc getPointOfSaleData() {
return pointOfSaleData;
}
@@ -48,6 +73,11 @@ public void setPointOfSaleData(PointOfSaleDataForDcc value) {
this.pointOfSaleData = value;
}
+ public GetDCCRateRequest withPointOfSaleData(PointOfSaleDataForDcc value) {
+ this.pointOfSaleData = value;
+ return this;
+ }
+
/**
* The reference of a previously used rate
* This can be used in case of refund if you want to use the same rate
@@ -66,6 +96,16 @@ public void setRateReferenceId(String value) {
this.rateReferenceId = value;
}
+ /**
+ * The reference of a previously used rate
+ * This can be used in case of refund if you want to use the same rate
+ * as the original transaction.
+ */
+ public GetDCCRateRequest withRateReferenceId(String value) {
+ this.rateReferenceId = value;
+ return this;
+ }
+
/**
* The currency to convert to
*/
@@ -80,6 +120,14 @@ public void setTargetCurrency(String value) {
this.targetCurrency = value;
}
+ /**
+ * The currency to convert to
+ */
+ public GetDCCRateRequest withTargetCurrency(String value) {
+ this.targetCurrency = value;
+ return this;
+ }
+
public TransactionDataForDcc getTransaction() {
return transaction;
}
@@ -87,4 +135,9 @@ public TransactionDataForDcc getTransaction() {
public void setTransaction(TransactionDataForDcc value) {
this.transaction = value;
}
+
+ public GetDCCRateRequest withTransaction(TransactionDataForDcc value) {
+ this.transaction = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/GetDccRateResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/GetDccRateResponse.java
index 130f29d..b6d6ebf 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/GetDccRateResponse.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/GetDccRateResponse.java
@@ -28,6 +28,14 @@ public void setDisclaimerDisplay(String value) {
this.disclaimerDisplay = value;
}
+ /**
+ * The disclaimer display
+ */
+ public GetDccRateResponse withDisclaimerDisplay(String value) {
+ this.disclaimerDisplay = value;
+ return this;
+ }
+
/**
* The disclaimer receipt
*/
@@ -42,6 +50,14 @@ public void setDisclaimerReceipt(String value) {
this.disclaimerReceipt = value;
}
+ /**
+ * The disclaimer receipt
+ */
+ public GetDccRateResponse withDisclaimerReceipt(String value) {
+ this.disclaimerReceipt = value;
+ return this;
+ }
+
public DccProposal getProposal() {
return proposal;
}
@@ -50,6 +66,11 @@ public void setProposal(DccProposal value) {
this.proposal = value;
}
+ public GetDccRateResponse withProposal(DccProposal value) {
+ this.proposal = value;
+ return this;
+ }
+
/**
* The result of the operation
*/
@@ -63,4 +84,12 @@ public String getResult() {
public void setResult(String value) {
this.result = value;
}
+
+ /**
+ * The result of the operation
+ */
+ public GetDccRateResponse withResult(String value) {
+ this.result = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/InitialCardOnFileData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/InitialCardOnFileData.java
index 4c6f7a3..d903b13 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/InitialCardOnFileData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/InitialCardOnFileData.java
@@ -24,6 +24,14 @@ public void setFutureUse(String value) {
this.futureUse = value;
}
+ /**
+ * Future use
+ */
+ public InitialCardOnFileData withFutureUse(String value) {
+ this.futureUse = value;
+ return this;
+ }
+
/**
* Transaction type
*/
@@ -37,4 +45,12 @@ public String getTransactionType() {
public void setTransactionType(String value) {
this.transactionType = value;
}
+
+ /**
+ * Transaction type
+ */
+ public InitialCardOnFileData withTransactionType(String value) {
+ this.transactionType = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/MerchantData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/MerchantData.java
index cc71eb9..e06baae 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/MerchantData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/MerchantData.java
@@ -34,6 +34,14 @@ public void setAddress(String value) {
this.address = value;
}
+ /**
+ * Street address
+ */
+ public MerchantData withAddress(String value) {
+ this.address = value;
+ return this;
+ }
+
/**
* Address city
*/
@@ -48,6 +56,14 @@ public void setCity(String value) {
this.city = value;
}
+ /**
+ * Address city
+ */
+ public MerchantData withCity(String value) {
+ this.city = value;
+ return this;
+ }
+
/**
* Address country code, ISO 3166 international standard
*/
@@ -62,6 +78,14 @@ public void setCountryCode(String value) {
this.countryCode = value;
}
+ /**
+ * Address country code, ISO 3166 international standard
+ */
+ public MerchantData withCountryCode(String value) {
+ this.countryCode = value;
+ return this;
+ }
+
/**
* Merchant category code (MCC)
*/
@@ -76,6 +100,14 @@ public void setMerchantCategoryCode(Integer value) {
this.merchantCategoryCode = value;
}
+ /**
+ * Merchant category code (MCC)
+ */
+ public MerchantData withMerchantCategoryCode(Integer value) {
+ this.merchantCategoryCode = value;
+ return this;
+ }
+
/**
* Merchant name
*/
@@ -90,6 +122,14 @@ public void setName(String value) {
this.name = value;
}
+ /**
+ * Merchant name
+ */
+ public MerchantData withName(String value) {
+ this.name = value;
+ return this;
+ }
+
/**
* Address postal code
*/
@@ -104,6 +144,14 @@ public void setPostalCode(String value) {
this.postalCode = value;
}
+ /**
+ * Address postal code
+ */
+ public MerchantData withPostalCode(String value) {
+ this.postalCode = value;
+ return this;
+ }
+
/**
* Address state code, only supplied if country is US or CA
*/
@@ -117,4 +165,12 @@ public String getStateCode() {
public void setStateCode(String value) {
this.stateCode = value;
}
+
+ /**
+ * Address state code, only supplied if country is US or CA
+ */
+ public MerchantData withStateCode(String value) {
+ this.stateCode = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/NetworkTokenData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/NetworkTokenData.java
index 4b9a3da..eacb764 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/NetworkTokenData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/NetworkTokenData.java
@@ -24,10 +24,17 @@ public void setCryptogram(String value) {
this.cryptogram = value;
}
+ /**
+ * Network token cryptogram
+ */
+ public NetworkTokenData withCryptogram(String value) {
+ this.cryptogram = value;
+ return this;
+ }
+
/**
* Electronic Commerce Indicator
- * Value returned by the 3D Secure process that indicates the level of
- * authentication.
+ * Value that indicates the level of authentication.
* Contains different values depending on the brand.
*/
public String getEci() {
@@ -36,11 +43,20 @@ public String getEci() {
/**
* Electronic Commerce Indicator
- * Value returned by the 3D Secure process that indicates the level of
- * authentication.
+ * Value that indicates the level of authentication.
* Contains different values depending on the brand.
*/
public void setEci(String value) {
this.eci = value;
}
+
+ /**
+ * Electronic Commerce Indicator
+ * Value that indicates the level of authentication.
+ * Contains different values depending on the brand.
+ */
+ public NetworkTokenData withEci(String value) {
+ this.eci = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PaymentReferences.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PaymentReferences.java
index f59d8a8..23ea8d0 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PaymentReferences.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PaymentReferences.java
@@ -10,8 +10,6 @@ public class PaymentReferences {
private String merchantReference;
- private String retrievalReferenceNumber;
-
/**
* Dynamic descriptor gives you the ability to control the descriptor
* on the credit card statement of the customer.
@@ -28,6 +26,15 @@ public void setDynamicDescriptor(String value) {
this.dynamicDescriptor = value;
}
+ /**
+ * Dynamic descriptor gives you the ability to control the descriptor
+ * on the credit card statement of the customer.
+ */
+ public PaymentReferences withDynamicDescriptor(String value) {
+ this.dynamicDescriptor = value;
+ return this;
+ }
+
/**
* Reference for the transaction to allow the merchant to reconcile their payments in our report files.
* It is advised to submit a unique value per transaction.
@@ -47,16 +54,12 @@ public void setMerchantReference(String value) {
}
/**
- * Retrieval reference number for transaction, must be AN(12) if provided
- */
- public String getRetrievalReferenceNumber() {
- return retrievalReferenceNumber;
- }
-
- /**
- * Retrieval reference number for transaction, must be AN(12) if provided
+ * Reference for the transaction to allow the merchant to reconcile their payments in our report files.
+ * It is advised to submit a unique value per transaction.
+ * The value provided here is returned in the baseTrxType/addlMercData element of the MRX file.
*/
- public void setRetrievalReferenceNumber(String value) {
- this.retrievalReferenceNumber = value;
+ public PaymentReferences withMerchantReference(String value) {
+ this.merchantReference = value;
+ return this;
}
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PlainCardData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PlainCardData.java
index 4c09d84..4b62fdf 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PlainCardData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PlainCardData.java
@@ -26,6 +26,14 @@ public void setCardNumber(String value) {
this.cardNumber = value;
}
+ /**
+ * Card number (PAN, network token or DPAN).
+ */
+ public PlainCardData withCardNumber(String value) {
+ this.cardNumber = value;
+ return this;
+ }
+
/**
* The security code indicated on the card
* Based on the card brand, it can be 3 or 4 digits long
@@ -44,6 +52,16 @@ public void setCardSecurityCode(String value) {
this.cardSecurityCode = value;
}
+ /**
+ * The security code indicated on the card
+ * Based on the card brand, it can be 3 or 4 digits long
+ * and have different names: CVV2, CVC2, CVN2, CID, CVC, CAV2, etc.
+ */
+ public PlainCardData withCardSecurityCode(String value) {
+ this.cardSecurityCode = value;
+ return this;
+ }
+
/**
* Card or token expiry date in format MMYYYY
*/
@@ -57,4 +75,12 @@ public String getExpiryDate() {
public void setExpiryDate(String value) {
this.expiryDate = value;
}
+
+ /**
+ * Card or token expiry date in format MMYYYY
+ */
+ public PlainCardData withExpiryDate(String value) {
+ this.expiryDate = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleData.java
index fc1c5a0..4f9f627 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleData.java
@@ -4,21 +4,157 @@
package com.worldline.acquiring.sdk.java.v1.domain;
+import java.util.List;
+
public class PointOfSaleData {
- private String terminalId;
+ private List emvData;
+
+ private String encryptedPinBlock;
+
+ private Boolean isResponseToPinRequest;
+
+ private Boolean isRetryWithTheSameOperationId;
+
+ private String pinMasterKeyReference;
+
+ private String track2Data;
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ * It is needed when cardEntryMode is CHIP or CONTACTLESS.
+ */
+ public List getEmvData() {
+ return emvData;
+ }
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ * It is needed when cardEntryMode is CHIP or CONTACTLESS.
+ */
+ public void setEmvData(List value) {
+ this.emvData = value;
+ }
+
+ /**
+ * EMV data of the card as tag/value pairs.
+ * It is needed when cardEntryMode is CHIP or CONTACTLESS.
+ */
+ public PointOfSaleData withEmvData(List value) {
+ this.emvData = value;
+ return this;
+ }
+
+ /**
+ * Encrypted data containing a PIN
+ */
+ public String getEncryptedPinBlock() {
+ return encryptedPinBlock;
+ }
+
+ /**
+ * Encrypted data containing a PIN
+ */
+ public void setEncryptedPinBlock(String value) {
+ this.encryptedPinBlock = value;
+ }
+
+ /**
+ * Encrypted data containing a PIN
+ */
+ public PointOfSaleData withEncryptedPinBlock(String value) {
+ this.encryptedPinBlock = value;
+ return this;
+ }
+
+ /**
+ * Indicate whether the request is made after a first one that resulted in a PIN request
+ */
+ public Boolean getIsResponseToPinRequest() {
+ return isResponseToPinRequest;
+ }
+
+ /**
+ * Indicate whether the request is made after a first one that resulted in a PIN request
+ */
+ public void setIsResponseToPinRequest(Boolean value) {
+ this.isResponseToPinRequest = value;
+ }
+
+ /**
+ * Indicate whether the request is made after a first one that resulted in a PIN request
+ */
+ public PointOfSaleData withIsResponseToPinRequest(Boolean value) {
+ this.isResponseToPinRequest = value;
+ return this;
+ }
+
+ /**
+ * Indicate whether the request is a retry with the same operation ID after a first request that resulted in a PIN request
+ */
+ public Boolean getIsRetryWithTheSameOperationId() {
+ return isRetryWithTheSameOperationId;
+ }
+
+ /**
+ * Indicate whether the request is a retry with the same operation ID after a first request that resulted in a PIN request
+ */
+ public void setIsRetryWithTheSameOperationId(Boolean value) {
+ this.isRetryWithTheSameOperationId = value;
+ }
+
+ /**
+ * Indicate whether the request is a retry with the same operation ID after a first request that resulted in a PIN request
+ */
+ public PointOfSaleData withIsRetryWithTheSameOperationId(Boolean value) {
+ this.isRetryWithTheSameOperationId = value;
+ return this;
+ }
+
+ /**
+ * Reference to the master key used to encrypt the PIN
+ */
+ public String getPinMasterKeyReference() {
+ return pinMasterKeyReference;
+ }
+
+ /**
+ * Reference to the master key used to encrypt the PIN
+ */
+ public void setPinMasterKeyReference(String value) {
+ this.pinMasterKeyReference = value;
+ }
+
+ /**
+ * Reference to the master key used to encrypt the PIN
+ */
+ public PointOfSaleData withPinMasterKeyReference(String value) {
+ this.pinMasterKeyReference = value;
+ return this;
+ }
+
+ /**
+ * Track 2 data from the card
+ * It is needed when cardEntryMode is MAGNETIC_STRIPE.
+ */
+ public String getTrack2Data() {
+ return track2Data;
+ }
/**
- * Terminal ID ANS(8)
+ * Track 2 data from the card
+ * It is needed when cardEntryMode is MAGNETIC_STRIPE.
*/
- public String getTerminalId() {
- return terminalId;
+ public void setTrack2Data(String value) {
+ this.track2Data = value;
}
/**
- * Terminal ID ANS(8)
+ * Track 2 data from the card
+ * It is needed when cardEntryMode is MAGNETIC_STRIPE.
*/
- public void setTerminalId(String value) {
- this.terminalId = value;
+ public PointOfSaleData withTrack2Data(String value) {
+ this.track2Data = value;
+ return this;
}
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleDataForDcc.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleDataForDcc.java
index 7211f31..283b893 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleDataForDcc.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleDataForDcc.java
@@ -11,19 +11,27 @@ public class PointOfSaleDataForDcc {
private String terminalId;
/**
- * Country code of the terminal
+ * ISO 3166 Country code of the terminal
*/
public String getTerminalCountryCode() {
return terminalCountryCode;
}
/**
- * Country code of the terminal
+ * ISO 3166 Country code of the terminal
*/
public void setTerminalCountryCode(String value) {
this.terminalCountryCode = value;
}
+ /**
+ * ISO 3166 Country code of the terminal
+ */
+ public PointOfSaleDataForDcc withTerminalCountryCode(String value) {
+ this.terminalCountryCode = value;
+ return this;
+ }
+
/**
* The terminal ID
*/
@@ -37,4 +45,12 @@ public String getTerminalId() {
public void setTerminalId(String value) {
this.terminalId = value;
}
+
+ /**
+ * The terminal ID
+ */
+ public PointOfSaleDataForDcc withTerminalId(String value) {
+ this.terminalId = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleDataForResponse.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleDataForResponse.java
new file mode 100644
index 0000000..e6b14ac
--- /dev/null
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/PointOfSaleDataForResponse.java
@@ -0,0 +1,56 @@
+/*
+ * This file was automatically generated.
+ */
+
+package com.worldline.acquiring.sdk.java.v1.domain;
+
+public class PointOfSaleDataForResponse {
+
+ private String panLast4Digits;
+
+ private Integer pinRetryCounter;
+
+ /**
+ * Last 4 digits of the PAN
+ */
+ public String getPanLast4Digits() {
+ return panLast4Digits;
+ }
+
+ /**
+ * Last 4 digits of the PAN
+ */
+ public void setPanLast4Digits(String value) {
+ this.panLast4Digits = value;
+ }
+
+ /**
+ * Last 4 digits of the PAN
+ */
+ public PointOfSaleDataForResponse withPanLast4Digits(String value) {
+ this.panLast4Digits = value;
+ return this;
+ }
+
+ /**
+ * Number of PIN retries
+ */
+ public Integer getPinRetryCounter() {
+ return pinRetryCounter;
+ }
+
+ /**
+ * Number of PIN retries
+ */
+ public void setPinRetryCounter(Integer value) {
+ this.pinRetryCounter = value;
+ }
+
+ /**
+ * Number of PIN retries
+ */
+ public PointOfSaleDataForResponse withPinRetryCounter(Integer value) {
+ this.pinRetryCounter = value;
+ return this;
+ }
+}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/RateData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/RateData.java
index 6a0b6ab..e527c29 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/RateData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/RateData.java
@@ -33,6 +33,14 @@ public void setExchangeRate(BigDecimal value) {
this.exchangeRate = value;
}
+ /**
+ * The exchange rate
+ */
+ public RateData withExchangeRate(BigDecimal value) {
+ this.exchangeRate = value;
+ return this;
+ }
+
/**
* The inverted exchange rate
*/
@@ -47,6 +55,14 @@ public void setInvertedExchangeRate(BigDecimal value) {
this.invertedExchangeRate = value;
}
+ /**
+ * The inverted exchange rate
+ */
+ public RateData withInvertedExchangeRate(BigDecimal value) {
+ this.invertedExchangeRate = value;
+ return this;
+ }
+
/**
* The mark up applied on the rate (in percentage).
*/
@@ -61,6 +77,14 @@ public void setMarkUp(BigDecimal value) {
this.markUp = value;
}
+ /**
+ * The mark up applied on the rate (in percentage).
+ */
+ public RateData withMarkUp(BigDecimal value) {
+ this.markUp = value;
+ return this;
+ }
+
/**
* The source of the rate the markup is based upon.
* If the cardholder and the merchant are based in Europe, the
@@ -81,6 +105,17 @@ public void setMarkUpBasis(String value) {
this.markUpBasis = value;
}
+ /**
+ * The source of the rate the markup is based upon.
+ * If the cardholder and the merchant are based in Europe, the
+ * mark up is calculated based on the
+ * rates provided by the European Central Bank.
+ */
+ public RateData withMarkUpBasis(String value) {
+ this.markUpBasis = value;
+ return this;
+ }
+
/**
* The date and time of the quotation
*/
@@ -94,4 +129,12 @@ public ZonedDateTime getQuotationDateTime() {
public void setQuotationDateTime(ZonedDateTime value) {
this.quotationDateTime = value;
}
+
+ /**
+ * The date and time of the quotation
+ */
+ public RateData withQuotationDateTime(ZonedDateTime value) {
+ this.quotationDateTime = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubOperation.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubOperation.java
index 067d44c..9622ec8 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubOperation.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubOperation.java
@@ -40,6 +40,14 @@ public void setAmount(AmountData value) {
this.amount = value;
}
+ /**
+ * Amount for the operation.
+ */
+ public SubOperation withAmount(AmountData value) {
+ this.amount = value;
+ return this;
+ }
+
/**
* Authorization approval code
*/
@@ -54,6 +62,14 @@ public void setAuthorizationCode(String value) {
this.authorizationCode = value;
}
+ /**
+ * Authorization approval code
+ */
+ public SubOperation withAuthorizationCode(String value) {
+ this.authorizationCode = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -77,7 +93,21 @@ public void setOperationId(String value) {
}
/**
- * Timestamp of the operation in merchant time zone in format
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public SubOperation withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
+ /**
+ * Timestamp of the operation in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
* yyyy-MM-ddTHH:mm:ssZ
*/
public ZonedDateTime getOperationTimestamp() {
@@ -85,7 +115,9 @@ public ZonedDateTime getOperationTimestamp() {
}
/**
- * Timestamp of the operation in merchant time zone in format
+ * Timestamp of the operation in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
* yyyy-MM-ddTHH:mm:ssZ
*/
public void setOperationTimestamp(ZonedDateTime value) {
@@ -93,19 +125,62 @@ public void setOperationTimestamp(ZonedDateTime value) {
}
/**
- * The kind of operation
+ * Timestamp of the operation in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ * yyyy-MM-ddTHH:mm:ssZ
+ */
+ public SubOperation withOperationTimestamp(ZonedDateTime value) {
+ this.operationTimestamp = value;
+ return this;
+ }
+
+ /**
+ * The kind of operation.
+ * Possible values are:
+ *
+ * - AUTHORIZATION
+ * - CAPTURE
+ * - REFUND
+ * - INCREMENT
+ * - AUTHORIZATION_REVERSAL
+ *
*/
public String getOperationType() {
return operationType;
}
/**
- * The kind of operation
+ * The kind of operation.
+ * Possible values are:
+ *
+ * - AUTHORIZATION
+ * - CAPTURE
+ * - REFUND
+ * - INCREMENT
+ * - AUTHORIZATION_REVERSAL
+ *
*/
public void setOperationType(String value) {
this.operationType = value;
}
+ /**
+ * The kind of operation.
+ * Possible values are:
+ *
+ * - AUTHORIZATION
+ * - CAPTURE
+ * - REFUND
+ * - INCREMENT
+ * - AUTHORIZATION_REVERSAL
+ *
+ */
+ public SubOperation withOperationType(String value) {
+ this.operationType = value;
+ return this;
+ }
+
/**
* Numeric response code, e.g. 0000, 0005
*/
@@ -121,19 +196,53 @@ public void setResponseCode(String value) {
}
/**
- * Category of response code.
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public SubOperation withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public String getResponseCodeCategory() {
return responseCodeCategory;
}
/**
- * Category of response code.
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public void setResponseCodeCategory(String value) {
this.responseCodeCategory = value;
}
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public SubOperation withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
/**
* Description of the response code
*/
@@ -148,6 +257,14 @@ public void setResponseCodeDescription(String value) {
this.responseCodeDescription = value;
}
+ /**
+ * Description of the response code
+ */
+ public SubOperation withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
+
/**
* The duration to wait after the initial submission before retrying the operation.
* Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
@@ -167,4 +284,15 @@ public String getRetryAfter() {
public void setRetryAfter(String value) {
this.retryAfter = value;
}
+
+ /**
+ * The duration to wait after the initial submission before retrying the operation.
+ * Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
+ * This field is only present when the operation can be retried later.
+ * PT0 means that the operation can be retried immediately.
+ */
+ public SubOperation withRetryAfter(String value) {
+ this.retryAfter = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubOperationForRefund.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubOperationForRefund.java
index 3f8d71c..a9fd1d1 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubOperationForRefund.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubOperationForRefund.java
@@ -38,6 +38,14 @@ public void setAmount(AmountData value) {
this.amount = value;
}
+ /**
+ * Amount for the operation.
+ */
+ public SubOperationForRefund withAmount(AmountData value) {
+ this.amount = value;
+ return this;
+ }
+
/**
* A globally unique identifier of the operation, generated by you.
* We advise you to submit a UUID or an identifier composed of an arbitrary string
@@ -61,7 +69,21 @@ public void setOperationId(String value) {
}
/**
- * Timestamp of the operation in merchant time zone in format
+ * A globally unique identifier of the operation, generated by you.
+ * We advise you to submit a UUID or an identifier composed of an arbitrary string
+ * and a UUID/URL-safe Base64 UUID (RFC 4648 §5).
+ * It's used to detect duplicate requests or to reference an operation in
+ * technical reversals.
+ */
+ public SubOperationForRefund withOperationId(String value) {
+ this.operationId = value;
+ return this;
+ }
+
+ /**
+ * Timestamp of the operation in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
* yyyy-MM-ddTHH:mm:ssZ
*/
public ZonedDateTime getOperationTimestamp() {
@@ -69,7 +91,9 @@ public ZonedDateTime getOperationTimestamp() {
}
/**
- * Timestamp of the operation in merchant time zone in format
+ * Timestamp of the operation in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
* yyyy-MM-ddTHH:mm:ssZ
*/
public void setOperationTimestamp(ZonedDateTime value) {
@@ -77,19 +101,56 @@ public void setOperationTimestamp(ZonedDateTime value) {
}
/**
- * The kind of operation
+ * Timestamp of the operation in ISO 8601 format (YYYY-MM-DDThh:mm:ss+TZD)
+ * It can be expressed in merchant time zone (ex: 2023-10-10T08:00+02:00)
+ * or in UTC (ex: 2023-10-10T08:00Z)
+ * yyyy-MM-ddTHH:mm:ssZ
+ */
+ public SubOperationForRefund withOperationTimestamp(ZonedDateTime value) {
+ this.operationTimestamp = value;
+ return this;
+ }
+
+ /**
+ * The kind of operation
+ * Possible values are:
+ *
+ * - AUTHORIZATION
+ * - CAPTURE
+ * - AUTHORIZATION_REVERSAL
+ *
*/
public String getOperationType() {
return operationType;
}
/**
- * The kind of operation
+ * The kind of operation
+ * Possible values are:
+ *
+ * - AUTHORIZATION
+ * - CAPTURE
+ * - AUTHORIZATION_REVERSAL
+ *
*/
public void setOperationType(String value) {
this.operationType = value;
}
+ /**
+ * The kind of operation
+ * Possible values are:
+ *
+ * - AUTHORIZATION
+ * - CAPTURE
+ * - AUTHORIZATION_REVERSAL
+ *
+ */
+ public SubOperationForRefund withOperationType(String value) {
+ this.operationType = value;
+ return this;
+ }
+
/**
* Numeric response code, e.g. 0000, 0005
*/
@@ -105,19 +166,53 @@ public void setResponseCode(String value) {
}
/**
- * Category of response code.
+ * Numeric response code, e.g. 0000, 0005
+ */
+ public SubOperationForRefund withResponseCode(String value) {
+ this.responseCode = value;
+ return this;
+ }
+
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public String getResponseCodeCategory() {
return responseCodeCategory;
}
/**
- * Category of response code.
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
*/
public void setResponseCodeCategory(String value) {
this.responseCodeCategory = value;
}
+ /**
+ * Category of response code.
+ * Possible values are:
+ *
+ * - APPROVED
+ * - PARTIALLY_APPROVED
+ * - DECLINED
+ *
+ */
+ public SubOperationForRefund withResponseCodeCategory(String value) {
+ this.responseCodeCategory = value;
+ return this;
+ }
+
/**
* Description of the response code
*/
@@ -132,6 +227,14 @@ public void setResponseCodeDescription(String value) {
this.responseCodeDescription = value;
}
+ /**
+ * Description of the response code
+ */
+ public SubOperationForRefund withResponseCodeDescription(String value) {
+ this.responseCodeDescription = value;
+ return this;
+ }
+
/**
* The duration to wait after the initial submission before retrying the operation.
* Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
@@ -151,4 +254,15 @@ public String getRetryAfter() {
public void setRetryAfter(String value) {
this.retryAfter = value;
}
+
+ /**
+ * The duration to wait after the initial submission before retrying the operation.
+ * Expressed using ISO 8601 duration format, ex: PT2H for 2 hours.
+ * This field is only present when the operation can be retried later.
+ * PT0 means that the operation can be retried immediately.
+ */
+ public SubOperationForRefund withRetryAfter(String value) {
+ this.retryAfter = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubsequentCardOnFileData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubsequentCardOnFileData.java
index be3d5ed..cbe3bea 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubsequentCardOnFileData.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/SubsequentCardOnFileData.java
@@ -27,19 +27,38 @@ public void setCardOnFileInitiator(String value) {
}
/**
- * Scheme transaction ID of initial transaction
+ * Card on file initiator
+ */
+ public SubsequentCardOnFileData withCardOnFileInitiator(String value) {
+ this.cardOnFileInitiator = value;
+ return this;
+ }
+
+ /**
+ * ID assigned by the scheme to identify a transaction through
+ * its whole lifecycle.
*/
public String getInitialSchemeTransactionId() {
return initialSchemeTransactionId;
}
/**
- * Scheme transaction ID of initial transaction
+ * ID assigned by the scheme to identify a transaction through
+ * its whole lifecycle.
*/
public void setInitialSchemeTransactionId(String value) {
this.initialSchemeTransactionId = value;
}
+ /**
+ * ID assigned by the scheme to identify a transaction through
+ * its whole lifecycle.
+ */
+ public SubsequentCardOnFileData withInitialSchemeTransactionId(String value) {
+ this.initialSchemeTransactionId = value;
+ return this;
+ }
+
/**
* Transaction type
*/
@@ -53,4 +72,12 @@ public String getTransactionType() {
public void setTransactionType(String value) {
this.transactionType = value;
}
+
+ /**
+ * Transaction type
+ */
+ public SubsequentCardOnFileData withTransactionType(String value) {
+ this.transactionType = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/TerminalData.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/TerminalData.java
new file mode 100644
index 0000000..8fa6bfe
--- /dev/null
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/TerminalData.java
@@ -0,0 +1,202 @@
+/*
+ * This file was automatically generated.
+ */
+
+package com.worldline.acquiring.sdk.java.v1.domain;
+
+import java.util.List;
+
+public class TerminalData {
+
+ private Boolean allowSingleTap;
+
+ private List cardReadingCapabilities;
+
+ private String cardholderActivatedTerminalLevel;
+
+ private Boolean isAttendedTerminal;
+
+ private String pinEntryCapability;
+
+ private String terminalId;
+
+ private String terminalLocation;
+
+ /**
+ * Indicate whether the terminal allow one single tap for a contactless transaction
+ * followed by a PIN entry if the contactless transaction is refused
+ */
+ public Boolean getAllowSingleTap() {
+ return allowSingleTap;
+ }
+
+ /**
+ * Indicate whether the terminal allow one single tap for a contactless transaction
+ * followed by a PIN entry if the contactless transaction is refused
+ */
+ public void setAllowSingleTap(Boolean value) {
+ this.allowSingleTap = value;
+ }
+
+ /**
+ * Indicate whether the terminal allow one single tap for a contactless transaction
+ * followed by a PIN entry if the contactless transaction is refused
+ */
+ public TerminalData withAllowSingleTap(Boolean value) {
+ this.allowSingleTap = value;
+ return this;
+ }
+
+ /**
+ * Card reading capabilities of the terminal.
+ */
+ public List getCardReadingCapabilities() {
+ return cardReadingCapabilities;
+ }
+
+ /**
+ * Card reading capabilities of the terminal.
+ */
+ public void setCardReadingCapabilities(List value) {
+ this.cardReadingCapabilities = value;
+ }
+
+ /**
+ * Card reading capabilities of the terminal.
+ */
+ public TerminalData withCardReadingCapabilities(List value) {
+ this.cardReadingCapabilities = value;
+ return this;
+ }
+
+ /**
+ * Level of security for a terminal activated with the use of a card (Cardholder Activated Terminal)
+ */
+ public String getCardholderActivatedTerminalLevel() {
+ return cardholderActivatedTerminalLevel;
+ }
+
+ /**
+ * Level of security for a terminal activated with the use of a card (Cardholder Activated Terminal)
+ */
+ public void setCardholderActivatedTerminalLevel(String value) {
+ this.cardholderActivatedTerminalLevel = value;
+ }
+
+ /**
+ * Level of security for a terminal activated with the use of a card (Cardholder Activated Terminal)
+ */
+ public TerminalData withCardholderActivatedTerminalLevel(String value) {
+ this.cardholderActivatedTerminalLevel = value;
+ return this;
+ }
+
+ /**
+ * Indicate whether the terminal is attended or not
+ */
+ public Boolean getIsAttendedTerminal() {
+ return isAttendedTerminal;
+ }
+
+ /**
+ * Indicate whether the terminal is attended or not
+ */
+ public void setIsAttendedTerminal(Boolean value) {
+ this.isAttendedTerminal = value;
+ }
+
+ /**
+ * Indicate whether the terminal is attended or not
+ */
+ public TerminalData withIsAttendedTerminal(Boolean value) {
+ this.isAttendedTerminal = value;
+ return this;
+ }
+
+ /**
+ * The capabilities of the terminal to enter the PIN
+ *
+ * - UNKNOWN : Unspecified or unknown
+ * - PRESENT : Terminal has PIN entry capability
+ * - ABSENT : Terminal does not have PIN entry capability
+ * - MPOS_SOFTWARE_BASED_PIN : Mobile POS with PIN entry capability
+ * - NOT_OPERATIVE : Terminal has PIN entry capability but PIN pad is not currently operative
+ *
+ */
+ public String getPinEntryCapability() {
+ return pinEntryCapability;
+ }
+
+ /**
+ * The capabilities of the terminal to enter the PIN
+ *
+ * - UNKNOWN : Unspecified or unknown
+ * - PRESENT : Terminal has PIN entry capability
+ * - ABSENT : Terminal does not have PIN entry capability
+ * - MPOS_SOFTWARE_BASED_PIN : Mobile POS with PIN entry capability
+ * - NOT_OPERATIVE : Terminal has PIN entry capability but PIN pad is not currently operative
+ *
+ */
+ public void setPinEntryCapability(String value) {
+ this.pinEntryCapability = value;
+ }
+
+ /**
+ * The capabilities of the terminal to enter the PIN
+ *
+ * - UNKNOWN : Unspecified or unknown
+ * - PRESENT : Terminal has PIN entry capability
+ * - ABSENT : Terminal does not have PIN entry capability
+ * - MPOS_SOFTWARE_BASED_PIN : Mobile POS with PIN entry capability
+ * - NOT_OPERATIVE : Terminal has PIN entry capability but PIN pad is not currently operative
+ *
+ */
+ public TerminalData withPinEntryCapability(String value) {
+ this.pinEntryCapability = value;
+ return this;
+ }
+
+ /**
+ * The identifier of the terminal
+ */
+ public String getTerminalId() {
+ return terminalId;
+ }
+
+ /**
+ * The identifier of the terminal
+ */
+ public void setTerminalId(String value) {
+ this.terminalId = value;
+ }
+
+ /**
+ * The identifier of the terminal
+ */
+ public TerminalData withTerminalId(String value) {
+ this.terminalId = value;
+ return this;
+ }
+
+ /**
+ * The location of the terminal
+ */
+ public String getTerminalLocation() {
+ return terminalLocation;
+ }
+
+ /**
+ * The location of the terminal
+ */
+ public void setTerminalLocation(String value) {
+ this.terminalLocation = value;
+ }
+
+ /**
+ * The location of the terminal
+ */
+ public TerminalData withTerminalLocation(String value) {
+ this.terminalLocation = value;
+ return this;
+ }
+}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ThreeDSecure.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ThreeDSecure.java
index a6ea195..d0acf0a 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ThreeDSecure.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/ThreeDSecure.java
@@ -32,6 +32,15 @@ public void setAuthenticationValue(String value) {
this.authenticationValue = value;
}
+ /**
+ * MasterCard AAV in original base64 encoding or Visa, DinersClub,
+ * UnionPay or JCB CAVV in either hexadecimal or base64 encoding
+ */
+ public ThreeDSecure withAuthenticationValue(String value) {
+ this.authenticationValue = value;
+ return this;
+ }
+
/**
* 3D Secure 2.x directory server transaction ID
*/
@@ -46,10 +55,17 @@ public void setDirectoryServerTransactionId(String value) {
this.directoryServerTransactionId = value;
}
+ /**
+ * 3D Secure 2.x directory server transaction ID
+ */
+ public ThreeDSecure withDirectoryServerTransactionId(String value) {
+ this.directoryServerTransactionId = value;
+ return this;
+ }
+
/**
* Electronic Commerce Indicator
- * Value returned by the 3D Secure process that indicates the level of
- * authentication.
+ * Value that indicates the level of authentication.
* Contains different values depending on the brand.
*/
public String getEci() {
@@ -58,14 +74,23 @@ public String getEci() {
/**
* Electronic Commerce Indicator
- * Value returned by the 3D Secure process that indicates the level of
- * authentication.
+ * Value that indicates the level of authentication.
* Contains different values depending on the brand.
*/
public void setEci(String value) {
this.eci = value;
}
+ /**
+ * Electronic Commerce Indicator
+ * Value that indicates the level of authentication.
+ * Contains different values depending on the brand.
+ */
+ public ThreeDSecure withEci(String value) {
+ this.eci = value;
+ return this;
+ }
+
/**
* 3D Secure type used in the transaction
*/
@@ -80,6 +105,14 @@ public void setThreeDSecureType(String value) {
this.threeDSecureType = value;
}
+ /**
+ * 3D Secure type used in the transaction
+ */
+ public ThreeDSecure withThreeDSecureType(String value) {
+ this.threeDSecureType = value;
+ return this;
+ }
+
/**
* 3D Secure version
*/
@@ -93,4 +126,12 @@ public String getVersion() {
public void setVersion(String value) {
this.version = value;
}
+
+ /**
+ * 3D Secure version
+ */
+ public ThreeDSecure withVersion(String value) {
+ this.version = value;
+ return this;
+ }
}
diff --git a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/TransactionDataForDcc.java b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/TransactionDataForDcc.java
index 91a4e14..2d30730 100644
--- a/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/TransactionDataForDcc.java
+++ b/src/main/generated/com/worldline/acquiring/sdk/java/v1/domain/TransactionDataForDcc.java
@@ -28,6 +28,14 @@ public void setAmount(AmountData value) {
this.amount = value;
}
+ /**
+ * Amount for the operation.
+ */
+ public TransactionDataForDcc withAmount(AmountData value) {
+ this.amount = value;
+ return this;
+ }
+
/**
* The date and time of the transaction
*/
@@ -42,6 +50,14 @@ public void setTransactionTimestamp(ZonedDateTime value) {
this.transactionTimestamp = value;
}
+ /**
+ * The date and time of the transaction
+ */
+ public TransactionDataForDcc withTransactionTimestamp(ZonedDateTime value) {
+ this.transactionTimestamp = value;
+ return this;
+ }
+
/**
* The transaction type
*/
@@ -55,4 +71,12 @@ public String getTransactionType() {
public void setTransactionType(String value) {
this.transactionType = value;
}
+
+ /**
+ * The transaction type
+ */
+ public TransactionDataForDcc withTransactionType(String value) {
+ this.transactionType = value;
+ return this;
+ }
}
diff --git a/src/main/java/com/worldline/acquiring/sdk/java/communication/MetadataProvider.java b/src/main/java/com/worldline/acquiring/sdk/java/communication/MetadataProvider.java
index e0982c8..806b12b 100644
--- a/src/main/java/com/worldline/acquiring/sdk/java/communication/MetadataProvider.java
+++ b/src/main/java/com/worldline/acquiring/sdk/java/communication/MetadataProvider.java
@@ -19,7 +19,7 @@
*/
public class MetadataProvider {
- private static final String SDK_VERSION = "0.1.0";
+ private static final String SDK_VERSION = "1.0.0";
private static final String SERVER_META_INFO_HEADER = "X-WL-ServerMetaInfo";
static final Set PROHIBITED_HEADERS;