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

io.sphere.sdk.shippingmethods.commands.updateactions.RemoveZone Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.models.Referenceable;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.zones.Zone;

/**
 * Removes a zone.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.shippingmethods.commands.ShippingMethodUpdateCommandTest#workingWithZones()}
 */
public class RemoveZone extends UpdateActionImpl {
    private final Reference zone;

    private RemoveZone(final Reference zone) {
        super("removeZone");
        this.zone = zone;
    }

    public Reference getZone() {
        return zone;
    }

    public static RemoveZone of(final Referenceable zone) {
        return new RemoveZone(zone.toReference());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy