com.checkout.payments.request.source.RequestBankAccountSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkout-sdk-java Show documentation
Show all versions of checkout-sdk-java Show documentation
Checkout SDK for Java https://checkout.com
package com.checkout.payments.request.source;
import com.checkout.common.AccountHolder;
import com.checkout.common.AccountType;
import com.checkout.common.CountryCode;
import com.checkout.common.PaymentSourceType;
import com.google.gson.annotations.SerializedName;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class RequestBankAccountSource extends AbstractRequestSource {
@SerializedName("payment_method")
private String paymentMethod;
@SerializedName("account_type")
private AccountType accountType;
private CountryCode country;
@SerializedName("account_number")
private String accountNumber;
@SerializedName("bank_code")
private String bankCode;
@SerializedName("account_holder")
private AccountHolder accountHolder;
public RequestBankAccountSource() {
super(PaymentSourceType.BANK_ACCOUNT);
}
@Builder
private RequestBankAccountSource(final String paymentMethod,
final AccountType accountType,
final CountryCode country,
final String accountNumber,
final String bankCode,
final AccountHolder accountHolder) {
super(PaymentSourceType.BANK_ACCOUNT);
this.paymentMethod = paymentMethod;
this.accountType = accountType;
this.country = country;
this.accountNumber = accountNumber;
this.bankCode = bankCode;
this.accountHolder = accountHolder;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy