View Source GoogleApi.Content.V21.Model.OrdersCancelLineItemRequest (google_api_content v0.66.0)

Attributes

  • lineItemId (type: String.t, default: nil) - The ID of the line item to cancel. Either lineItemId or productId is required.
  • operationId (type: String.t, default: nil) - The ID of the operation. Unique across all operations for a given order.
  • productId (type: String.t, default: nil) - The ID of the product to cancel. This is the REST ID used in the products service. Either lineItemId or productId is required.
  • quantity (type: integer(), default: nil) - The quantity to cancel.
  • reason (type: String.t, default: nil) - The reason for the cancellation. Acceptable values are: - "customerInitiatedCancel" - "invalidCoupon" - "malformedShippingAddress" - "noInventory" - "other" - "priceError" - "shippingPriceError" - "taxError" - "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - "failedToCaptureFunds"
  • 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.OrdersCancelLineItemRequest{
  lineItemId: String.t() | nil,
  operationId: String.t() | nil,
  productId: String.t() | nil,
  quantity: integer() | nil,
  reason: String.t() | nil,
  reasonText: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.