io.sphere.sdk.productdiscounts.commands.ProductDiscountCreateCommandImpl Maven / Gradle / Ivy
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