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

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

/**
 * Sets the interface that handles the payment (usually a PSP). Can not be changed once it has been set. The combination of interfaceId and paymentMethodInfo.paymentInterface must be unique.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.payments.commands.PaymentUpdateCommandTest#setMethodInfoInterface()}
 *
 *
 * @see Payment
 *
 *
 */
public class SetMethodInfoInterface extends UpdateActionImpl {

    private final String _interface;//sic! interface is keyword in Java

    private SetMethodInfoInterface(final String _interface) {
        super("setMethodInfoInterface");
        this._interface = _interface;
    }

    public static SetMethodInfoInterface of(final String _interface) {
        return new SetMethodInfoInterface(_interface);
    }

    public String getInterface() {
        return _interface;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy