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

io.sphere.sdk.cartdiscounts.commands.updateactions.ChangeValue Maven / Gradle / Ivy

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

import io.sphere.sdk.cartdiscounts.CartDiscount;
import io.sphere.sdk.cartdiscounts.CartDiscountValue;
import io.sphere.sdk.commands.UpdateActionImpl;

/**
 * Changes the value of the discount.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.cartdiscounts.commands.CartDiscountUpdateCommandTest#changeValue()}
 */
public class ChangeValue extends UpdateActionImpl {
    private final CartDiscountValue value;

    private ChangeValue(final CartDiscountValue value) {
        super("changeValue");
        this.value = value;
    }

    public CartDiscountValue getValue() {
        return value;
    }

    public static ChangeValue of(final CartDiscountValue value) {
        return new ChangeValue(value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy