io.sphere.sdk.shippingmethods.commands.updateactions.AddZone Maven / Gradle / Ivy
package io.sphere.sdk.shippingmethods.commands.updateactions;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.models.Referenceable;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.zones.Zone;
/**
*
* {@include.example io.sphere.sdk.shippingmethods.commands.ShippingMethodUpdateCommandTest#workingWithZones()}
*/
public class AddZone extends UpdateAction {
private final Reference zone;
private AddZone(final Reference zone) {
super("addZone");
this.zone = zone;
}
public Reference getZone() {
return zone;
}
public static AddZone of(final Referenceable zone) {
return new AddZone(zone.toReference());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy