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

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

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.productdiscounts.ProductDiscount;
import io.sphere.sdk.productdiscounts.ProductDiscountValue;

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

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

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

    public ProductDiscountValue getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy