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

jp.gopay.sdk.models.common.KonbiniPayment Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
package jp.gopay.sdk.models.common;

import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.request.transactiontoken.PaymentData;
import jp.gopay.sdk.models.response.transactiontoken.PhoneNumber;
import jp.gopay.sdk.types.Konbini;
import jp.gopay.sdk.types.PaymentTypeName;
import org.joda.time.Period;

public class KonbiniPayment implements PaymentData {
    @SerializedName("customer_name")
    private String customerName;

    @SerializedName("convenience_store")
    private Konbini convenienceStore;

    @SerializedName("expiration_period")
    private Period expirationPeriod;

    @SerializedName("phone_number")
    private PhoneNumber phoneNumber;

    public String getCustomerName() {
        return customerName;
    }

    public Konbini getConvenienceStore() {
        return convenienceStore;
    }

    public Period getExpirationPeriod() {
        return expirationPeriod;
    }

    public PhoneNumber getPhoneNumber() {
        return phoneNumber;
    }

    public KonbiniPayment(String customerName, Konbini convenienceStore, Period expirationPeriod, PhoneNumber phoneNumber) {
        this.customerName = customerName;
        this.convenienceStore = convenienceStore;
        this.expirationPeriod = expirationPeriod;
        this.phoneNumber = phoneNumber;
    }

    public KonbiniPayment(String customerName, Konbini convenienceStore, PhoneNumber phoneNumber) {
        this.customerName = customerName;
        this.convenienceStore = convenienceStore;
        this.phoneNumber = phoneNumber;
    }

    @Override
    public PaymentTypeName getPaymentType() {
        return PaymentTypeName.KONBINI;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy