/** * Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object. * * @return new object initialized with the copied values from the original object */ public RemoveLineItem withExternalPrice(final MonetaryAmount externalPrice) { return new RemoveLineItem(getLineItemId(), getQuantity(), externalPrice, getExternalTotalPrice(), getShippingDetailsToRemove()); }
/** * Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object. * * @return new object initialized with the copied values from the original object */ public RemoveLineItem withExternalTotalPrice(final ExternalLineItemTotalPrice externalTotalPrice) { return new RemoveLineItem(getLineItemId(), getQuantity(), getExternalPrice(), externalTotalPrice, getShippingDetailsToRemove()); }
/** * Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object. * * @return new object initialized with the copied values from the original object */ public RemoveLineItem withQuantity(final Long quantity) { return new RemoveLineItem(getLineItemId(), quantity, getExternalPrice(), getExternalTotalPrice(), getShippingDetailsToRemove()); }
/** * Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object. * * @return new object initialized with the copied values from the original object */ public RemoveLineItem withShippingDetailsToRemove(final ItemShippingDetailsDraft shippingDetailsToRemove) { return new RemoveLineItem(getLineItemId(), getQuantity(), getExternalPrice(), getExternalTotalPrice(), shippingDetailsToRemove); } }
public static AddCustomLineItem of(final LocalizedString name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final long quantity) { return of(name, slug, money, taxCategory, quantity, null); }
public static AddCustomLineItem of(final LocalizedStrings name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final long quantity) { return new AddCustomLineItem(name, slug, money, taxCategory, quantity); }
/** * Creates a new object initialized with the given values. * * @return new object initialized with the given values */ public static SetShippingRateInput ofUnset() { return new SetShippingRateInput(null); } }
/** * Creates a new object initialized with the given values. * * @param address initial value for the property * @return new object initialized with the given values */ public static UpdateItemShippingAddress of(final Address address) { return new UpdateItemShippingAddress(address); } }
/** * Creates a new object initialized with the given values. * * @param customLineItemId initial value for the property * @param targetsDelta initial value for the property * @return new object initialized with the given values */ public static ApplyDeltaToCustomLineItemShippingDetailsTargets of(final String customLineItemId, final List<ItemShippingTarget> targetsDelta) { return new ApplyDeltaToCustomLineItemShippingDetailsTargets(customLineItemId, targetsDelta); } }
/** * Creates a new object initialized with the given values. * * @return new object initialized with the given values */ public static SetAnonymousId ofUnset() { return new SetAnonymousId(null); } }
/** * Creates a new object initialized with the given values. * * @param lineItemId initial value for the property * @param shippingDetails initial value for the property * @return new object initialized with the given values */ public static SetLineItemShippingDetails of(final String lineItemId, final ItemShippingDetailsDraft shippingDetails) { return new SetLineItemShippingDetails(lineItemId, shippingDetails); } }
/** * Creates a new object initialized with the given values. * * @param lineItemId initial value for the property * @param targetsDelta initial value for the property * @return new object initialized with the given values */ public static ApplyDeltaToLineItemShippingDetailsTargets of(final String lineItemId, final List<ItemShippingTarget> targetsDelta) { return new ApplyDeltaToLineItemShippingDetailsTargets(lineItemId, targetsDelta); } }
/** * Creates a new object initialized with the given values. * * @param taxCalculationMode initial value for the {@link Cart#getTaxCalculationMode()} property * @return new object initialized with the given values */ public static ChangeTaxCalculationMode of(final TaxCalculationMode taxCalculationMode) { return new ChangeTaxCalculationMode(taxCalculationMode); } }
/** * Creates a new object initialized with the given values. * * @param address initial value for the property * @return new object initialized with the given values */ public static AddItemShippingAddress of(final Address address) { return new AddItemShippingAddress(address); } }
/** * Creates a new object initialized with the given values. * * @param addressKey initial value for the property * @return new object initialized with the given values */ public static RemoveItemShippingAddress of(final String addressKey) { return new RemoveItemShippingAddress(addressKey); } }
/** * Creates a new object initialized with the given values. * * @param customLineItemId initial value for the property * @param shippingDetails initial value for the property * @return new object initialized with the given values */ public static SetCustomLineItemShippingDetails of(final String customLineItemId, final ItemShippingDetailsDraft shippingDetails) { return new SetCustomLineItemShippingDetails(customLineItemId, shippingDetails); } }
public static AddCustomLineItem of(final LocalizedString name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final long quantity) { return of(name, slug, money, taxCategory, quantity, null); }
public static AddCustomLineItem of(final LocalizedStrings name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final int quantity) { return new AddCustomLineItem(name, slug, money, taxCategory, quantity); }
/** * Creates a new object initialized with the given values. * * @return new object initialized with the given values */ public static SetShippingRateInput ofUnset() { return new SetShippingRateInput(null); } }
public static AddCustomLineItem of(final LocalizedString name, final String slug, final MonetaryAmount money, final Referenceable<TaxCategory> taxCategory, final long quantity) { return of(name, slug, money, taxCategory, quantity, null); }