View Source GoogleApi.Content.V21.Model.OrdersRefundOrderRequest (google_api_content v0.67.1)

Attributes

  • amount (type: GoogleApi.Content.V21.Model.MonetaryAmount.t, default: nil) - The amount that is refunded. If this is not the first refund for the order, this should be the newly refunded amount.
  • fullRefund (type: boolean(), default: nil) - If true, the full order will be refunded, including shipping. If this is true, amount shouldn't be provided and will be ignored.
  • operationId (type: String.t, default: nil) - The ID of the operation. Unique across all operations for a given order.
  • reason (type: String.t, default: nil) - The reason for the refund. Acceptable values are: - "courtesyAdjustment" - "other"
  • reasonText (type: String.t, default: nil) - The explanation of the reason.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.OrdersRefundOrderRequest{
  amount: GoogleApi.Content.V21.Model.MonetaryAmount.t() | nil,
  fullRefund: boolean() | nil,
  operationId: String.t() | nil,
  reason: String.t() | nil,
  reasonText: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.