Struct google_content2::OrdersCustomBatchRequestEntryCancelLineItem[][src]

pub struct OrdersCustomBatchRequestEntryCancelLineItem {
    pub amount: Option<Price>,
    pub amount_pretax: Option<Price>,
    pub reason_text: Option<String>,
    pub line_item_id: Option<String>,
    pub reason: Option<String>,
    pub amount_tax: Option<Price>,
    pub quantity: Option<u32>,
    pub product_id: Option<String>,
}

There is no detailed description.

This type is not used in any activity, and only used as part of another schema.

Fields

Deprecated. Please use amountPretax and amountTax instead.

Amount to refund for the cancelation. Optional. If not set, Google will calculate the default based on the price and tax of the items involved. The amount must not be larger than the net amount left on the order.

The explanation of the reason.

The ID of the line item to cancel. Either lineItemId or productId is required.

The reason for the cancellation.

Tax amount that correspond to cancellation amount in amountPretax.

The quantity to cancel.

The ID of the product to cancel. This is the REST ID used in the products service. Either lineItemId or productId is required.

Trait Implementations

impl Default for OrdersCustomBatchRequestEntryCancelLineItem
[src]

Returns the "default value" for a type. Read more

impl Clone for OrdersCustomBatchRequestEntryCancelLineItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for OrdersCustomBatchRequestEntryCancelLineItem
[src]

Formats the value using the given formatter. Read more

impl Part for OrdersCustomBatchRequestEntryCancelLineItem
[src]

Auto Trait Implementations