/** * Creates a new update action to unset the {@code predicate} property. * @return the {@code SetPredicate} update action. */ public static SetPredicate ofUnset() { return new SetPredicate(null); } }
/** * Creates a new update action from the given parameters. * * @param name the {@code name} property {@link ShippingMethod#getName()}. * @return the {@code ChangeName} update action. */ public static ChangeName of(final String name) { return new ChangeName(name); } }
/** * Creates a new update action to unset the {@code key} property. * @return the {@code SetKey} update action. */ public static SetKey ofUnset() { return new SetKey(null); } }
public static ChangeIsDefault toFalse() { return of(false); } }
public static ChangeIsDefault of(final boolean isDefault) { return new ChangeIsDefault(isDefault); }
public static ChangeTaxCategory of(final ResourceIdentifier<TaxCategory> taxCategory) { return new ChangeTaxCategory(taxCategory); } }
/** * Creates a new update action to unset the {@code description} property. * @return the {@code SetDescription} update action. */ public static SetDescription ofUnset() { return new SetDescription(null); } }
public static ChangeIsDefault toFalse() { return of(false); } }
public static ChangeIsDefault of(final boolean isDefault) { return new ChangeIsDefault(isDefault); }
public static ChangeName of(final String name) { return new ChangeName(name); }
public static ChangeTaxCategory of(final ResourceIdentifier<TaxCategory> taxCategory) { return new ChangeTaxCategory(taxCategory); } }
public static SetDescription of(final Optional<String> description) { return new SetDescription(description); }
public static ChangeIsDefault toFalse() { return of(false); } }
public static ChangeIsDefault of(final boolean isDefault) { return new ChangeIsDefault(isDefault); }
public static ChangeName of(final String name) { return new ChangeName(name); }
public static ChangeIsDefault toFalse() { return of(false); } }
public static ChangeIsDefault of(final boolean isDefault) { return new ChangeIsDefault(isDefault); }
public static ChangeIsDefault toTrue() { return of(true); }
public static ChangeIsDefault toTrue() { return of(true); }
public static ChangeIsDefault toTrue() { return of(true); }