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

io.sphere.sdk.payments.commands.updateactions.SetMethodInfoName Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.payments.Payment;

import javax.annotation.Nullable;

/**
 * Sets a human-readable, localizable name for the payment method, e.g. 'Credit Card'. If no name is provided, the name is unset.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.payments.commands.PaymentUpdateCommandTest#setMethodInfoName()}
 *
 *
 * @see Payment
 *
 *
 */
public class SetMethodInfoName extends UpdateActionImpl {

    @Nullable
    private final LocalizedString name;

    private SetMethodInfoName(final LocalizedString name) {
        super("setMethodInfoName");
        this.name = name;
    }

    public static SetMethodInfoName of(final LocalizedString name) {
        return new SetMethodInfoName(name);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy