GoogleApi.Content.V21.Model.OrdersCustomBatchRequestEntryRefundItemItem (google_api_content v0.52.0) View Source

Attributes

  • amount (type: GoogleApi.Content.V21.Model.MonetaryAmount.t, default: nil) - The total amount that is refunded. (e.g. refunding $5 each for 2 products should be done by setting quantity to 2 and amount to 10$) In case of multiple refunds, this should be the amount you currently want to refund to the customer.
  • fullRefund (type: boolean(), default: nil) - If true, the full item will be refunded. If this is true, amount should not be provided and will be ignored.
  • lineItemId (type: String.t, default: nil) - The ID of the line item. Either lineItemId or productId is required.
  • productId (type: String.t, default: nil) - The ID of the product. This is the REST ID used in the products service. Either lineItemId or productId is required.
  • quantity (type: integer(), default: nil) - The number of products that are refunded.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Content.V21.Model.OrdersCustomBatchRequestEntryRefundItemItem{
  amount: GoogleApi.Content.V21.Model.MonetaryAmount.t(),
  fullRefund: boolean(),
  lineItemId: String.t(),
  productId: String.t(),
  quantity: integer()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.