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

io.sphere.sdk.payments.commands.updateactions.SetStatusInterfaceCode 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 code, given by the PSP, that describes the current status.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.payments.commands.PaymentUpdateCommandTest#setStatusInterfaceText()}
 *
 * @see Payment
 */
public class SetStatusInterfaceCode extends UpdateActionImpl {

    @Nullable
    private final String interfaceCode;

    private SetStatusInterfaceCode(@Nullable final String interfaceCode) {
        super("setStatusInterfaceCode");
        this.interfaceCode = interfaceCode;
    }

    public static SetStatusInterfaceCode of(@Nullable final String interfaceCode) {
        return new SetStatusInterfaceCode(interfaceCode);
    }

    @Nullable
    public String getInterfaceCode() {
        return interfaceCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy