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

io.sphere.sdk.payments.PaymentMethodInfoBuilder Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.payments;

import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Builder;
import io.sphere.sdk.models.LocalizedString;

import javax.annotation.Nullable;

public class PaymentMethodInfoBuilder extends Base implements Builder {
    @Nullable
    private String paymentInterface;
    @Nullable
    private String method;
    @Nullable
    private LocalizedString name;

    private PaymentMethodInfoBuilder() {
    }
    
    public static PaymentMethodInfoBuilder of() {
        return new PaymentMethodInfoBuilder();
    }

    public PaymentMethodInfoBuilder paymentInterface(@Nullable final String paymentInterface) {
        this.paymentInterface = paymentInterface;
        return this;
    }
    
    public PaymentMethodInfoBuilder method(@Nullable final String method) {
        this.method = method;
        return this;
    }
    
    public PaymentMethodInfoBuilder name(@Nullable final LocalizedString name) {
        this.name = name;
        return this;
    }

    @Override
    public PaymentMethodInfo build() {
        return new PaymentMethodInfo(paymentInterface, method, name);
    }

    @Nullable
    public String getPaymentInterface() {
        return paymentInterface;
    }

    @Nullable
    public String getMethod() {
        return method;
    }

    @Nullable
    public LocalizedString getName() {
        return name;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy