public static RemoveLineItem of(final String lineItemId, final Optional<Integer> quantity) { return new RemoveLineItem(lineItemId, quantity); }
public static RemoveLineItem of(final String lineItemId, final Optional<Integer> quantity) { return new RemoveLineItem(lineItemId, quantity); }
public static RemoveLineItem of(final String lineItemId, @Nullable final Long quantity) { return new RemoveLineItem(lineItemId, quantity); }
/** * Creates a new object initialized with the given values. * * @param lineItemId initial value for the property * @param quantity initial value for the property * @param externalPrice initial value for the property * @param externalTotalPrice initial value for the property * @param shippingDetailsToRemove initial value for the property * @return new object initialized with the given values */ public static RemoveLineItem of(final String lineItemId, @Nullable final Long quantity, @Nullable final MonetaryAmount externalPrice, @Nullable final ExternalLineItemTotalPrice externalTotalPrice, @Nullable final ItemShippingDetailsDraft shippingDetailsToRemove) { return new RemoveLineItem(lineItemId, quantity, externalPrice, externalTotalPrice, shippingDetailsToRemove); }
/** * 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); } }