All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.checkout.payments.sender.PaymentCorporateSender Maven / Gradle / Ivy

There is a newer version: 6.4.2
Show newest version
package com.checkout.payments.sender;

import com.checkout.common.AccountHolderIdentification;
import com.checkout.common.Address;
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 PaymentCorporateSender extends PaymentSender {

    @SerializedName("company_name")
    private String companyName;

    private Address address;

    @SerializedName("reference_type")
    private String referenceType;

    @SerializedName("source_of_funds")
    private SourceOfFunds sourceOfFunds;

    private AccountHolderIdentification identification;

    @Builder
    private PaymentCorporateSender(final String reference,
                                  final String companyName,
                                  final Address address,
                                  final String referenceType,
                                  final SourceOfFunds sourceOfFunds,
                                  final AccountHolderIdentification identification) {
        super(SenderType.CORPORATE, reference);
        this.companyName = companyName;
        this.address = address;
        this.referenceType = referenceType;
        this.sourceOfFunds = sourceOfFunds;
        this.identification = identification;
    }

    public PaymentCorporateSender() {
        super(SenderType.CORPORATE);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy