GoogleApi.Content.V2.Model.OrderCancellation (google_api_content v0.73.0)

View Source

Attributes

  • actor (type: String.t, default: nil) - The actor that created the cancellation. Acceptable values are: - "customer" - "googleBot" - "googleCustomerService" - "googlePayments" - "googleSabre" - "merchant"
  • creationDate (type: String.t, default: nil) - Date on which the cancellation has been created, in ISO 8601 format.
  • quantity (type: integer(), default: nil) - The quantity that was canceled.
  • reason (type: String.t, default: nil) - The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Buy on Google until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - "autoPostInternal" - "autoPostInvalidBillingAddress" - "autoPostNoInventory" - "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - "couponAbuse" - "customerCanceled" - "customerInitiatedCancel" - "customerSupportRequested" - "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant" - "failToPushOrderToMerchantOutOfStock" - "invalidCoupon" - "malformedShippingAddress" - "merchantDidNotShipOnTime" - "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - "paymentDeclined" - "priceError" - "returnRefundAbuse" - "shippingPriceError" - "taxError" - "undeliverableShippingAddress" - "unsupportedPoBoxAddress"
  • reasonText (type: String.t, default: nil) - The explanation of the reason.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Content.V2.Model.OrderCancellation{
  actor: String.t() | nil,
  creationDate: String.t() | nil,
  quantity: integer() | nil,
  reason: String.t() | nil,
  reasonText: String.t() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.