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

io.sphere.sdk.orders.commands.updateactions.ChangePaymentState Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.orders.Order;
import io.sphere.sdk.orders.PaymentState;

/**
 Changes the payment state.

 {@doc.gen intro}

 {@include.example io.sphere.sdk.orders.commands.OrderUpdateCommandTest#changePaymentState()}
 */
public class ChangePaymentState extends UpdateActionImpl {
    private final PaymentState paymentState;

    private ChangePaymentState(final PaymentState paymentState) {
        super("changePaymentState");
        this.paymentState = paymentState;
    }

    public static ChangePaymentState of(final PaymentState paymentState) {
        return new ChangePaymentState(paymentState);
    }

    public PaymentState getPaymentState() {
        return paymentState;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy