View Source GoogleApi.Content.V2.Model.OrdersCustomBatchRequestEntryRefund (google_api_content v0.66.0)

Attributes

  • amount (type: GoogleApi.Content.V2.Model.Price.t, default: nil) - Deprecated. Please use amountPretax and amountTax instead.
  • amountPretax (type: GoogleApi.Content.V2.Model.Price.t, default: nil) - The amount that is refunded. Either amount or amountPretax should be filled.
  • amountTax (type: GoogleApi.Content.V2.Model.Price.t, default: nil) - Tax amount that corresponds to refund amount in amountPretax. Optional, but if filled, amountPretax must be set. Calculated automatically if not provided.
  • reason (type: String.t, default: nil) - The reason for the refund. Acceptable values are: - "adjustment" - "courtesyAdjustment" - "customerCanceled" - "customerDiscretionaryReturn" - "deliveredLateByCarrier" - "feeAdjustment" - "lateShipmentCredit" - "noInventory" - "other" - "priceError" - "productArrivedDamaged" - "productNotAsDescribed" - "shippingCostAdjustment" - "taxAdjustment" - "undeliverableShippingAddress" - "wrongProductShipped"
  • 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.V2.Model.OrdersCustomBatchRequestEntryRefund{
  amount: GoogleApi.Content.V2.Model.Price.t() | nil,
  amountPretax: GoogleApi.Content.V2.Model.Price.t() | nil,
  amountTax: GoogleApi.Content.V2.Model.Price.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.