/** * 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 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 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); } }