io.sphere.sdk.shippingmethods.commands.ShippingMethodCreateCommandImpl Maven / Gradle / Ivy
package io.sphere.sdk.shippingmethods.commands;
import io.sphere.sdk.commands.MetaModelCreateCommandBuilder;
import io.sphere.sdk.commands.MetaModelCreateCommandImpl;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.shippingmethods.ShippingMethodDraft;
import io.sphere.sdk.shippingmethods.expansion.ShippingMethodExpansionModel;
/**
* Creates a {@link ShippingMethod} in SPHERE.IO.
*
* {@include.example io.sphere.sdk.shippingmethods.commands.ShippingMethodCreateCommandTest#execution()}
*/
final class ShippingMethodCreateCommandImpl extends MetaModelCreateCommandImpl> implements ShippingMethodCreateCommand {
ShippingMethodCreateCommandImpl(final MetaModelCreateCommandBuilder> builder) {
super(builder);
}
ShippingMethodCreateCommandImpl(final ShippingMethodDraft draft) {
super(draft, ShippingMethodEndpoint.ENDPOINT, ShippingMethodExpansionModel.of(), ShippingMethodCreateCommandImpl::new);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy