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

com.checkout.payments.previous.request.source.apm.RequestGiropaySource Maven / Gradle / Ivy

There is a newer version: 6.4.2
Show newest version
package com.checkout.payments.previous.request.source.apm;

import com.checkout.common.PaymentSourceType;
import com.checkout.payments.previous.request.source.AbstractRequestSource;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class RequestGiropaySource extends AbstractRequestSource {

    private String purpose;

    private String bic;

    @SerializedName("info_fields")
    private List infoFields;

    @Builder
    private RequestGiropaySource(final String purpose,
                                 final String bic,
                                 final List infoFields) {
        super(PaymentSourceType.GIROPAY);
        this.purpose = purpose;
        this.bic = bic;
        this.infoFields = infoFields;
    }

    public RequestGiropaySource() {
        super(PaymentSourceType.GIROPAY);
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class InfoFields {
        private String label;
        private String text;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy