google_api_content v0.2.0 GoogleApi.Content.V2.Model.OrdersCustomBatchRequestEntryCancelLineItem View Source

Attributes

  • amount (Price): Deprecated. Please use amountPretax and amountTax instead. Defaults to: null.
  • amountPretax (Price): 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. Defaults to: null.
  • amountTax (Price): Tax amount that correspond to cancellation amount in amountPretax. Defaults to: null.
  • lineItemId (String.t): The ID of the line item to cancel. Either lineItemId or productId is required. Defaults to: null.
  • productId (String.t): The ID of the product to cancel. This is the REST ID used in the products service. Either lineItemId or productId is required. Defaults to: null.
  • quantity (integer()): The quantity to cancel. Defaults to: null.
  • reason (String.t): The reason for the cancellation. Defaults to: null.
  • reasonText (String.t): The explanation of the reason. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type t() View Source
t() :: %GoogleApi.Content.V2.Model.OrdersCustomBatchRequestEntryCancelLineItem{
  amount: GoogleApi.Content.V2.Model.Price.t(),
  amountPretax: GoogleApi.Content.V2.Model.Price.t(),
  amountTax: GoogleApi.Content.V2.Model.Price.t(),
  lineItemId: any(),
  productId: any(),
  quantity: any(),
  reason: any(),
  reasonText: any()
}

Link to this section Functions

Link to this function decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.