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

io.sphere.sdk.shippingmethods.commands.ShippingMethodCreateCommand Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.CreateCommandImpl;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.shippingmethods.ShippingMethodDraft;

/**
 * Creates a {@link io.sphere.sdk.shippingmethods.ShippingMethod} in SPHERE.IO.
 *
 * {@include.example io.sphere.sdk.shippingmethods.commands.ShippingMethodCreateCommandTest#execution()}
 */
public class ShippingMethodCreateCommand extends CreateCommandImpl {
    private ShippingMethodCreateCommand(final ShippingMethodDraft draft) {
        super(draft, ShippingMethodEndpoint.ENDPOINT);
    }

    public static ShippingMethodCreateCommand of(final ShippingMethodDraft draft) {
        return new ShippingMethodCreateCommand(draft);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy