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

com.checkout.instruments.create.CreateInstrumentTokenRequest Maven / Gradle / Ivy

There is a newer version: 6.4.2
Show newest version
package com.checkout.instruments.create;

import com.checkout.common.AccountHolder;
import com.checkout.common.InstrumentType;
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 CreateInstrumentTokenRequest extends CreateInstrumentRequest {

    private String token;

    @SerializedName("account_holder")
    private AccountHolder accountHolder;

    private CreateCustomerInstrumentRequest customer;

    @Builder
    private CreateInstrumentTokenRequest(final String token,
                                         final AccountHolder accountHolder,
                                         final CreateCustomerInstrumentRequest customer) {
        super(InstrumentType.TOKEN);
        this.token = token;
        this.accountHolder = accountHolder;
        this.customer = customer;
    }

    public CreateInstrumentTokenRequest() {
        super(InstrumentType.TOKEN);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy