pub struct OrderReturnLineItemModifier {
pub uid: Option<String>,
pub source_modifier_uid: Option<String>,
pub catalog_object_id: Option<String>,
pub catalog_version: Option<i64>,
pub name: Option<String>,
pub base_price_money: Option<Money>,
pub total_price_money: Option<Money>,
pub quantity: Option<String>,
}Expand description
A line item modifier being returned.
Fields§
§uid: Option<String>A unique ID that identifies the return modifier only within this order.
source_modifier_uid: Option<String>The modifier uid from the order’s line item that contains the original sale of this line
item modifier.
catalog_object_id: Option<String>The catalog object ID referencing [CatalogModifier].
catalog_version: Option<i64>The version of the catalog object that this line item modifier references.
name: Option<String>The name of the item modifier.
base_price_money: Option<Money>The base price for the modifier.
base_price_money is required for ad hoc modifiers. If both catalog_object_id and
base_price_money are set, base_price_money overrides the predefined [CatalogModifier]
price.
total_price_money: Option<Money>Read only The total price of the item modifier for its line item. This is the modifier’s
base_price_money multiplied by the line item’s quantity.
quantity: Option<String>The quantity of the line item modifier. The modifier quantity can be 0 or more. For example, suppose a restaurant offers a cheeseburger on the menu. When a buyer orders this item, the restaurant records the purchase by creating an Order object with a line item for a burger. The line item includes a line item modifier: the name is cheese and the quantity is 1. The buyer has the option to order extra cheese (or no cheese). If the buyer chooses the extra cheese option, the modifier quantity increases to 2. If the buyer does not want any cheese, the modifier quantity is set to 0.
Trait Implementations§
Source§impl Clone for OrderReturnLineItemModifier
impl Clone for OrderReturnLineItemModifier
Source§fn clone(&self) -> OrderReturnLineItemModifier
fn clone(&self) -> OrderReturnLineItemModifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more