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

Attributes

  • customerReturnReason (type: GoogleApi.Content.V21.Model.CustomerReturnReason.t, default: nil) - The reason that the customer chooses to return an item.
  • itemId (type: String.t, default: nil) - Product level item ID. If the returned items are of the same product, they will have the same ID.
  • merchantRejectionReason (type: GoogleApi.Content.V21.Model.MerchantRejectionReason.t, default: nil) - The reason that the merchant chose to reject an item return.
  • merchantReturnReason (type: GoogleApi.Content.V21.Model.RefundReason.t, default: nil) - The reason that merchant chooses to accept a return item.
  • product (type: GoogleApi.Content.V21.Model.OrderLineItemProduct.t, default: nil) - Product data from the time of the order placement.
  • refundableAmount (type: GoogleApi.Content.V21.Model.MonetaryAmount.t, default: nil) - Maximum amount that can be refunded for this return item.
  • returnItemId (type: String.t, default: nil) - Unit level ID for the return item. Different units of the same product will have different IDs.
  • returnShipmentIds (type: list(String.t), default: nil) - IDs of the return shipments that this return item belongs to.
  • shipmentGroupId (type: String.t, default: nil) - ID of the original shipment group. Provided for shipments with invoice support.
  • shipmentUnitId (type: String.t, default: nil) - ID of the shipment unit assigned by the merchant. Provided for shipments with invoice support.
  • state (type: String.t, default: nil) - State of the item. Acceptable values are: - "canceled" - "new" - "received" - "refunded" - "rejected"

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.MerchantOrderReturnItem{
  customerReturnReason:
    GoogleApi.Content.V21.Model.CustomerReturnReason.t() | nil,
  itemId: String.t() | nil,
  merchantRejectionReason:
    GoogleApi.Content.V21.Model.MerchantRejectionReason.t() | nil,
  merchantReturnReason: GoogleApi.Content.V21.Model.RefundReason.t() | nil,
  product: GoogleApi.Content.V21.Model.OrderLineItemProduct.t() | nil,
  refundableAmount: GoogleApi.Content.V21.Model.MonetaryAmount.t() | nil,
  returnItemId: String.t() | nil,
  returnShipmentIds: [String.t()] | nil,
  shipmentGroupId: String.t() | nil,
  shipmentUnitId: String.t() | nil,
  state: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.