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

io.sphere.sdk.payments.commands.updateactions.SetMethodInfoMethod 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.payments.Payment;

import javax.annotation.Nullable;

/**
 * Sets the method used, e.g. 'CreditCard' or 'Cash'. If no method is provided, the method is unset.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.payments.commands.PaymentUpdateCommandTest#setMethodInfoMethod()}
 *
 *
 * @see Payment
 *
 *
 */
public class SetMethodInfoMethod extends UpdateActionImpl {

    @Nullable
    private final String method;

    private SetMethodInfoMethod(@Nullable final String method) {
        super("setMethodInfoMethod");
        this.method = method;
    }

    public static SetMethodInfoMethod of(@Nullable final String method) {
        return new SetMethodInfoMethod(method);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy