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

Attributes

  • contentLanguage (type: String.t, default: nil) - Required. The two-letter ISO 639-1 language code for the item.
  • gtin (type: String.t, default: nil) - Global Trade Item Number.
  • itemId (type: String.t, default: nil) - Required. A unique identifier for the item.
  • kind (type: String.t, default: nil) - Identifies what kind of resource this is. Value: the fixed string "content#posSaleResponse".
  • price (type: GoogleApi.Content.V2.Model.Price.t, default: nil) - Required. The price of the item.
  • quantity (type: String.t, default: nil) - Required. The relative change of the available quantity. Negative for items returned.
  • saleId (type: String.t, default: nil) - A unique ID to group items from the same sale event.
  • storeCode (type: String.t, default: nil) - Required. The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the store in Google My Business.
  • targetCountry (type: String.t, default: nil) - Required. The CLDR territory code for the item.
  • timestamp (type: String.t, default: nil) - Required. The inventory timestamp, in ISO 8601 format.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V2.Model.PosSaleResponse{
  contentLanguage: String.t() | nil,
  gtin: String.t() | nil,
  itemId: String.t() | nil,
  kind: String.t() | nil,
  price: GoogleApi.Content.V2.Model.Price.t() | nil,
  quantity: String.t() | nil,
  saleId: String.t() | nil,
  storeCode: String.t() | nil,
  targetCountry: String.t() | nil,
  timestamp: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.