io.sphere.sdk.payments.commands.updateactions.SetMethodInfoMethod Maven / Gradle / Ivy
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