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

io.sphere.sdk.productdiscounts.commands.ProductDiscountCreateCommandImpl Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.MetaModelCreateCommandBuilder;
import io.sphere.sdk.commands.MetaModelCreateCommandImpl;
import io.sphere.sdk.productdiscounts.ProductDiscount;
import io.sphere.sdk.productdiscounts.ProductDiscountDraft;
import io.sphere.sdk.productdiscounts.expansion.ProductDiscountExpansionModel;

/**
 * {@include.example io.sphere.sdk.productdiscounts.commands.ProductDiscountCreateCommandTest#execution()}
 */
final class ProductDiscountCreateCommandImpl extends MetaModelCreateCommandImpl> implements ProductDiscountCreateCommand {
    ProductDiscountCreateCommandImpl(final MetaModelCreateCommandBuilder> builder) {
        super(builder);
    }

    ProductDiscountCreateCommandImpl(final ProductDiscountDraft draft) {
        super(draft, ProductDiscountEndpoint.ENDPOINT, ProductDiscountExpansionModel.of(), ProductDiscountCreateCommandImpl::new);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy