public static RemoveZone of(final Referenceable<Zone> zone) { return new RemoveZone(zone.toResourceIdentifier()); } }
public static AddCustomLineItem of(final LocalizedString name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final long quantity, @Nullable final CustomFieldsDraft custom) { return new AddCustomLineItem(name, slug, money, taxCategory != null ? taxCategory.toResourceIdentifier() : null, quantity, custom, null); }
public static AddCustomLineItem of(final LocalizedString name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final long quantity, @Nullable final CustomFieldsDraft custom) { return new AddCustomLineItem(name, slug, money, taxCategory != null ? taxCategory.toResourceIdentifier() : null, quantity, custom, null); }
public static SetCustomShippingMethod of(final String shippingMethodName, final ShippingRate shippingRate, final Referenceable<TaxCategory> taxCategory) { return new SetCustomShippingMethod(shippingMethodName, shippingRate, taxCategory !=null? taxCategory.toResourceIdentifier() : null, null); }
public static RemoveZone of(final Referenceable<Zone> zone) { return new RemoveZone(zone.toResourceIdentifier()); } }
public static ChangeParent of(final Referenceable<Category> parent) { return new ChangeParent(parent.toResourceIdentifier()); }
public static UpdateSyncInfo of(final Referenceable<Channel> channel) { return of(channel.toResourceIdentifier(), null, null); }
public static SetCustomShippingMethod of(final String shippingMethodName, final ShippingRate shippingRate, final Referenceable<TaxCategory> taxCategory) { return new SetCustomShippingMethod(shippingMethodName, shippingRate, taxCategory !=null? taxCategory.toResourceIdentifier() : null, null); }
public static ChangeParent of(final Referenceable<Category> parent) { return new ChangeParent(parent.toResourceIdentifier()); }
/** * Creates a draft having a standard tax category and custom fields. * @param name the display name of the custom line item (corresponds to a product name) * @param slug unique field in the cart which is intended to identify the custom line item (not translated) * @param money the amount of the custom line item * @param taxCategory the tax category of the custom line item * @param quantity the count of items of this line item in the cart * @param custom custom fields for the custom line item * @return draft */ static CustomLineItemDraft of(final LocalizedString name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final long quantity, @Nullable final CustomFieldsDraft custom) { return new CustomLineItemDraftImpl(name, slug, money, taxCategory.toResourceIdentifier(), quantity, custom, null,null); }
public static UpdateSyncInfo of(final Referenceable<Channel> channel) { return of(channel.toResourceIdentifier(), null, null); }
/** * Creates a draft having a standard tax category and custom fields. * @param name the display name of the custom line item (corresponds to a product name) * @param slug unique field in the cart which is intended to identify the custom line item (not translated) * @param money the amount of the custom line item * @param taxCategory the tax category of the custom line item * @param quantity the count of items of this line item in the cart * @param custom custom fields for the custom line item * @return draft */ static CustomLineItemDraft of(final LocalizedString name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final long quantity, @Nullable final CustomFieldsDraft custom) { return new CustomLineItemDraftImpl(name, slug, money, taxCategory.toResourceIdentifier(), quantity, custom, null,null); }