Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 40 additions & 35 deletions src/main/java/com/adyen/model/transfers/PlatformPayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ public class PlatformPayment {
* Adyen's commission and markup. * **AdyenMarkup**: The transaction fee due to Adyen under
* [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The amount booked
* to your user after the deduction of the relevant fees. * **Commission**: Your platform's or
* marketplace's commission on a transaction. * **DCCPlatformCommission**: The Dynamic
* Currency Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee
* paid to the issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all
* transaction fees. * **Remainder**: The leftover amount after currency conversion. *
* **SchemeFee**: The scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by
* the customer on a transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An
* incoming transfer to top up your user's balance account. * **VAT**: The value-added tax
* charged on the payment.
* marketplace's commission on a transaction. * **DCCPlatformCommission**: **deprecated** The
* Dynamic Currency Conversion (DCC) fee on a transaction. * **DCCMarkup**: The Dynamic Currency
* Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee paid to the
* issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all transaction
* fees. * **Remainder**: The leftover amount after currency conversion. * **SchemeFee**: The
* scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by the customer on a
* transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An incoming transfer to top
* up your user's balance account. * **VAT**: The value-added tax charged on the payment.
*/
public enum PlatformPaymentTypeEnum {
ACQUIRINGFEES(String.valueOf("AcquiringFees")),
Expand All @@ -90,6 +90,8 @@ public enum PlatformPaymentTypeEnum {

COMMISSION(String.valueOf("Commission")),

DCCMARKUP(String.valueOf("DCCMarkup")),

DCCPLATFORMCOMMISSION(String.valueOf("DCCPlatformCommission")),

DEFAULT(String.valueOf("Default")),
Expand Down Expand Up @@ -332,14 +334,14 @@ public void setPaymentMerchantReference(String paymentMerchantReference) {
* Adyen's commission and markup. * **AdyenMarkup**: The transaction fee due to Adyen under
* [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The amount booked
* to your user after the deduction of the relevant fees. * **Commission**: Your platform's or
* marketplace's commission on a transaction. * **DCCPlatformCommission**: The Dynamic
* Currency Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee
* paid to the issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all
* transaction fees. * **Remainder**: The leftover amount after currency conversion. *
* **SchemeFee**: The scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by
* the customer on a transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An
* incoming transfer to top up your user's balance account. * **VAT**: The value-added tax
* charged on the payment.
* marketplace's commission on a transaction. * **DCCPlatformCommission**: **deprecated** The
* Dynamic Currency Conversion (DCC) fee on a transaction. * **DCCMarkup**: The Dynamic Currency
* Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee paid to the
* issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all transaction
* fees. * **Remainder**: The leftover amount after currency conversion. * **SchemeFee**: The
* scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by the customer on a
* transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An incoming transfer to top
* up your user's balance account. * **VAT**: The value-added tax charged on the payment.
*
* @param platformPaymentType Specifies the nature of the transfer. This parameter helps
* categorize transfers so you can reconcile transactions at a later time, using the Balance
Expand All @@ -356,7 +358,8 @@ public void setPaymentMerchantReference(String paymentMerchantReference) {
* under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The
* amount booked to your user after the deduction of the relevant fees. * **Commission**: Your
* platform's or marketplace's commission on a transaction. *
* **DCCPlatformCommission**: The Dynamic Currency Conversion (DCC) fee on a transaction. *
* **DCCPlatformCommission**: **deprecated** The Dynamic Currency Conversion (DCC) fee on a
* transaction. * **DCCMarkup**: The Dynamic Currency Conversion (DCC) fee on a transaction. *
* **Interchange**: The interchange fee (fee paid to the issuer) incurred on a transaction. *
* **PaymentFee**: The aggregated amount of all transaction fees. * **Remainder**: The
* leftover amount after currency conversion. * **SchemeFee**: The scheme fee incurred on a
Expand Down Expand Up @@ -385,14 +388,14 @@ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPayme
* Adyen's commission and markup. * **AdyenMarkup**: The transaction fee due to Adyen under
* [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The amount booked
* to your user after the deduction of the relevant fees. * **Commission**: Your platform's or
* marketplace's commission on a transaction. * **DCCPlatformCommission**: The Dynamic
* Currency Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee
* paid to the issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all
* transaction fees. * **Remainder**: The leftover amount after currency conversion. *
* **SchemeFee**: The scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by
* the customer on a transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An
* incoming transfer to top up your user's balance account. * **VAT**: The value-added tax
* charged on the payment.
* marketplace's commission on a transaction. * **DCCPlatformCommission**: **deprecated** The
* Dynamic Currency Conversion (DCC) fee on a transaction. * **DCCMarkup**: The Dynamic Currency
* Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee paid to the
* issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all transaction
* fees. * **Remainder**: The leftover amount after currency conversion. * **SchemeFee**: The
* scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by the customer on a
* transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An incoming transfer to top
* up your user's balance account. * **VAT**: The value-added tax charged on the payment.
*
* @return platformPaymentType Specifies the nature of the transfer. This parameter helps
* categorize transfers so you can reconcile transactions at a later time, using the Balance
Expand All @@ -409,7 +412,8 @@ public PlatformPayment platformPaymentType(PlatformPaymentTypeEnum platformPayme
* under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The
* amount booked to your user after the deduction of the relevant fees. * **Commission**: Your
* platform's or marketplace's commission on a transaction. *
* **DCCPlatformCommission**: The Dynamic Currency Conversion (DCC) fee on a transaction. *
* **DCCPlatformCommission**: **deprecated** The Dynamic Currency Conversion (DCC) fee on a
* transaction. * **DCCMarkup**: The Dynamic Currency Conversion (DCC) fee on a transaction. *
* **Interchange**: The interchange fee (fee paid to the issuer) incurred on a transaction. *
* **PaymentFee**: The aggregated amount of all transaction fees. * **Remainder**: The
* leftover amount after currency conversion. * **SchemeFee**: The scheme fee incurred on a
Expand Down Expand Up @@ -437,14 +441,14 @@ public PlatformPaymentTypeEnum getPlatformPaymentType() {
* Adyen's commission and markup. * **AdyenMarkup**: The transaction fee due to Adyen under
* [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The amount booked
* to your user after the deduction of the relevant fees. * **Commission**: Your platform's or
* marketplace's commission on a transaction. * **DCCPlatformCommission**: The Dynamic
* Currency Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee
* paid to the issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all
* transaction fees. * **Remainder**: The leftover amount after currency conversion. *
* **SchemeFee**: The scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by
* the customer on a transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An
* incoming transfer to top up your user's balance account. * **VAT**: The value-added tax
* charged on the payment.
* marketplace's commission on a transaction. * **DCCPlatformCommission**: **deprecated** The
* Dynamic Currency Conversion (DCC) fee on a transaction. * **DCCMarkup**: The Dynamic Currency
* Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee paid to the
* issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all transaction
* fees. * **Remainder**: The leftover amount after currency conversion. * **SchemeFee**: The
* scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by the customer on a
* transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An incoming transfer to top
* up your user's balance account. * **VAT**: The value-added tax charged on the payment.
*
* @param platformPaymentType Specifies the nature of the transfer. This parameter helps
* categorize transfers so you can reconcile transactions at a later time, using the Balance
Expand All @@ -461,7 +465,8 @@ public PlatformPaymentTypeEnum getPlatformPaymentType() {
* under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The
* amount booked to your user after the deduction of the relevant fees. * **Commission**: Your
* platform's or marketplace's commission on a transaction. *
* **DCCPlatformCommission**: The Dynamic Currency Conversion (DCC) fee on a transaction. *
* **DCCPlatformCommission**: **deprecated** The Dynamic Currency Conversion (DCC) fee on a
* transaction. * **DCCMarkup**: The Dynamic Currency Conversion (DCC) fee on a transaction. *
* **Interchange**: The interchange fee (fee paid to the issuer) incurred on a transaction. *
* **PaymentFee**: The aggregated amount of all transaction fees. * **Remainder**: The
* leftover amount after currency conversion. * **SchemeFee**: The scheme fee incurred on a
Expand Down
120 changes: 119 additions & 1 deletion src/main/java/com/adyen/model/transfers/Transfer.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,31 @@ public enum ReasonEnum {

APPROVED(String.valueOf("approved")),

AVSDECLINED(String.valueOf("avsDeclined")),

BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE(
String.valueOf("balanceAccountTemporarilyBlockedByTransactionRule")),

BLOCKCARD(String.valueOf("blockCard")),

CALLREFERRAL(String.valueOf("callReferral")),

CANCELLED(String.valueOf("cancelled")),

CAPTURECARD(String.valueOf("captureCard")),

CARDEXPIRED(String.valueOf("cardExpired")),

CARDHOLDERAUTHENTICATIONREQUIRED(String.valueOf("cardholderAuthenticationRequired")),

CASHBACKAMOUNTEXCEEDSLIMIT(String.valueOf("cashbackAmountExceedsLimit")),

CAVVDECLINED(String.valueOf("cavvDeclined")),

CONTACTLESSFALLBACK(String.valueOf("contactlessFallback")),

CONTACTLESSLIMITREACHED(String.valueOf("contactlessLimitReached")),

COUNTERPARTYACCOUNTBLOCKED(String.valueOf("counterpartyAccountBlocked")),

COUNTERPARTYACCOUNTCLOSED(String.valueOf("counterpartyAccountClosed")),
Expand All @@ -257,35 +279,131 @@ public enum ReasonEnum {

COUNTERPARTYBANKUNAVAILABLE(String.valueOf("counterpartyBankUnavailable")),

CRYPTOGRAPHICFAILURE(String.valueOf("cryptographicFailure")),

CVCDECLINED(String.valueOf("cvcDeclined")),

DECLINED(String.valueOf("declined")),

DECLINEDBYBAPVALIDATION(String.valueOf("declinedByBapValidation")),

DECLINEDBYTRANSACTIONRULE(String.valueOf("declinedByTransactionRule")),

DECLINEDNONGENERIC(String.valueOf("declinedNonGeneric")),

DIRECTDEBITNOTSUPPORTED(String.valueOf("directDebitNotSupported")),

DONOTHONOR(String.valueOf("doNotHonor")),

DOMESTICDEBITTRANSACTIONNOTALLOWED(String.valueOf("domesticDebitTransactionNotAllowed")),

DUPLICATETRANSMISSIONDETECTED(String.valueOf("duplicateTransmissionDetected")),

ERROR(String.valueOf("error")),

FORMATERROR(String.valueOf("formatError")),

FRAUD(String.valueOf("fraud")),

FRAUDCANCELLED(String.valueOf("fraudCancelled")),

HONORWITHID(String.valueOf("honorWithId")),

INTERNALTIMEOUT(String.valueOf("internalTimeout")),

INVALIDACCOUNT(String.valueOf("invalidAccount")),

INVALIDAMOUNT(String.valueOf("invalidAmount")),

INVALIDAUTHORIZATIONLIFECYCLE(String.valueOf("invalidAuthorizationLifeCycle")),

INVALIDCARD(String.valueOf("invalidCard")),

INVALIDEXPIRYDATE(String.valueOf("invalidExpiryDate")),

INVALIDFROMACCOUNT(String.valueOf("invalidFromAccount")),

INVALIDISSUER(String.valueOf("invalidIssuer")),

INVALIDMERCHANT(String.valueOf("invalidMerchant")),

INVALIDPIN(String.valueOf("invalidPin")),

INVALIDTOACCOUNT(String.valueOf("invalidToAccount")),

INVALIDTRANSACTION(String.valueOf("invalidTransaction")),

ISSUERSUSPECTEDFRAUD(String.valueOf("issuerSuspectedFraud")),

LOSTCARD(String.valueOf("lostCard")),

MOBILEPINREQUIRED(String.valueOf("mobilePinRequired")),

NOCHECKINGACCOUNT(String.valueOf("noCheckingAccount")),

NOSAVINGSACCOUNT(String.valueOf("noSavingsAccount")),

NOT3DAUTHENTICATED(String.valueOf("not3dAuthenticated")),

NOTENOUGHBALANCE(String.valueOf("notEnoughBalance")),

NOTSUBMITTED(String.valueOf("notSubmitted")),

NOTSUPPORTED(String.valueOf("notSupported")),

PARTIALLYAPPROVED(String.valueOf("partiallyApproved")),

PENDING(String.valueOf("pending")),

PENDINGAPPROVAL(String.valueOf("pendingApproval")),

PENDINGEXECUTION(String.valueOf("pendingExecution")),

PINNOTCHANGED(String.valueOf("pinNotChanged")),

PINREQUIRED(String.valueOf("pinRequired")),

PINTRIESEXCEEDED(String.valueOf("pinTriesExceeded")),

PINVALIDATIONNOTPOSSIBLE(String.valueOf("pinValidationNotPossible")),

PURCHASEAMOUNTONLYNOCASHBACK(String.valueOf("purchaseAmountOnlyNoCashBack")),

REFUSEDBYCOUNTERPARTYBANK(String.valueOf("refusedByCounterpartyBank")),

REFUSEDBYCUSTOMER(String.valueOf("refusedByCustomer")),

RESTRICTEDCARD(String.valueOf("restrictedCard")),

REVOCATIONOFAUTH(String.valueOf("revocationOfAuth")),

ROUTENOTFOUND(String.valueOf("routeNotFound")),

SCAAUTHENTICATIONREQUIRED(String.valueOf("scaAuthenticationRequired")),

SCAFAILED(String.valueOf("scaFailed")),

SCHEMEADVICE(String.valueOf("schemeAdvice")),

SECURITYVIOLATION(String.valueOf("securityViolation")),

SHOPPERCANCELLED(String.valueOf("shopperCancelled")),

STOLENCARD(String.valueOf("stolenCard")),

THREEDSDYNAMICLINKINGMISMATCH(String.valueOf("threedsDynamicLinkingMismatch")),

TRANSACTIONNOTPERMITTED(String.valueOf("transactionNotPermitted")),

TRANSFERINSTRUMENTDOESNOTEXIST(String.valueOf("transferInstrumentDoesNotExist")),

UNKNOWN(String.valueOf("unknown"));
UNABLETOROUTETRANSACTION(String.valueOf("unableToRouteTransaction")),

UNKNOWN(String.valueOf("unknown")),

WITHDRAWALAMOUNTEXCEEDED(String.valueOf("withdrawalAmountExceeded")),

WITHDRAWALCOUNTEXCEEDED(String.valueOf("withdrawalCountExceeded"));

private static final Logger LOG = Logger.getLogger(ReasonEnum.class.getName());

Expand Down
Loading