generated/google/apis/content_v2/classes.rb in google-api-client-0.19.8 vs generated/google/apis/content_v2/classes.rb in google-api-client-0.20.0
- old
+ new
@@ -61,11 +61,11 @@
# Display name for the account.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
- # URL for individual seller reviews, i.e., reviews for each child account.
+ # [DEPRECATED] This field is never returned and will be ignored if provided.
# Corresponds to the JSON property `reviewsUrl`
# @return [String]
attr_accessor :reviews_url
# Client-specific, locally-unique, internal ID for the child account.
@@ -148,11 +148,13 @@
#
class AccountGoogleMyBusinessLink
include Google::Apis::Core::Hashable
- # The GMB email address.
+ # The GMB email address of which a specific account within a GMB account. A
+ # sample account within a GMB account could be a business account with set of
+ # locations, managed under the GMB account.
# Corresponds to the JSON property `gmbEmail`
# @return [String]
attr_accessor :gmb_email
# Status of the link between this Merchant Center account and the GMB account.
@@ -1579,11 +1581,11 @@
# Datafeed configuration data.
# Corresponds to the JSON property `datafeed`
# @return [Google::Apis::ContentV2::Datafeed]
attr_accessor :datafeed
- # The ID of the data feed to get or delete.
+ # The ID of the data feed to get, delete or fetch.
# Corresponds to the JSON property `datafeedId`
# @return [Fixnum]
attr_accessor :datafeed_id
# The ID of the managing account.
@@ -1956,10 +1958,72 @@
@errors = args[:errors] if args.key?(:errors)
@message = args[:message] if args.key?(:message)
end
end
+ #
+ class GmbAccounts
+ include Google::Apis::Core::Hashable
+
+ # The ID of the account.
+ # Corresponds to the JSON property `accountId`
+ # @return [Fixnum]
+ attr_accessor :account_id
+
+ # A list of GMB accounts which are available to the merchant.
+ # Corresponds to the JSON property `gmbAccounts`
+ # @return [Array<Google::Apis::ContentV2::GmbAccountsGmbAccount>]
+ attr_accessor :gmb_accounts
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @account_id = args[:account_id] if args.key?(:account_id)
+ @gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts)
+ end
+ end
+
+ #
+ class GmbAccountsGmbAccount
+ include Google::Apis::Core::Hashable
+
+ # The email which identifies the GMB account.
+ # Corresponds to the JSON property `email`
+ # @return [String]
+ attr_accessor :email
+
+ # Number of listings under this account.
+ # Corresponds to the JSON property `listingCount`
+ # @return [Fixnum]
+ attr_accessor :listing_count
+
+ # The name of the GMB account.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # The type of the GMB account (User or Business).
+ # Corresponds to the JSON property `type`
+ # @return [String]
+ attr_accessor :type
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @email = args[:email] if args.key?(:email)
+ @listing_count = args[:listing_count] if args.key?(:listing_count)
+ @name = args[:name] if args.key?(:name)
+ @type = args[:type] if args.key?(:type)
+ end
+ end
+
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
class Headers
include Google::Apis::Core::Hashable
@@ -2471,10 +2535,463 @@
@kind = args[:kind] if args.key?(:kind)
end
end
#
+ class LiaAboutPageSettings
+ include Google::Apis::Core::Hashable
+
+ # The status of the verification process for the About page.
+ # Corresponds to the JSON property `status`
+ # @return [String]
+ attr_accessor :status
+
+ # The URL for the About page.
+ # Corresponds to the JSON property `url`
+ # @return [String]
+ attr_accessor :url
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @status = args[:status] if args.key?(:status)
+ @url = args[:url] if args.key?(:url)
+ end
+ end
+
+ #
+ class LiaCountrySettings
+ include Google::Apis::Core::Hashable
+
+ # The settings for the About page.
+ # Corresponds to the JSON property `about`
+ # @return [Google::Apis::ContentV2::LiaAboutPageSettings]
+ attr_accessor :about
+
+ # CLDR country code (e.g. "US").
+ # Corresponds to the JSON property `country`
+ # @return [String]
+ attr_accessor :country
+
+ # The status of the "Merchant hosted local storefront" feature.
+ # Corresponds to the JSON property `hostedLocalStorefrontActive`
+ # @return [Boolean]
+ attr_accessor :hosted_local_storefront_active
+ alias_method :hosted_local_storefront_active?, :hosted_local_storefront_active
+
+ # LIA inventory verification settings.
+ # Corresponds to the JSON property `inventory`
+ # @return [Google::Apis::ContentV2::LiaInventorySettings]
+ attr_accessor :inventory
+
+ # LIA "On Display To Order" settings.
+ # Corresponds to the JSON property `onDisplayToOrder`
+ # @return [Google::Apis::ContentV2::LiaOnDisplayToOrderSettings]
+ attr_accessor :on_display_to_order
+
+ # The status of the "Store pickup" feature.
+ # Corresponds to the JSON property `storePickupActive`
+ # @return [Boolean]
+ attr_accessor :store_pickup_active
+ alias_method :store_pickup_active?, :store_pickup_active
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @about = args[:about] if args.key?(:about)
+ @country = args[:country] if args.key?(:country)
+ @hosted_local_storefront_active = args[:hosted_local_storefront_active] if args.key?(:hosted_local_storefront_active)
+ @inventory = args[:inventory] if args.key?(:inventory)
+ @on_display_to_order = args[:on_display_to_order] if args.key?(:on_display_to_order)
+ @store_pickup_active = args[:store_pickup_active] if args.key?(:store_pickup_active)
+ end
+ end
+
+ #
+ class LiaInventorySettings
+ include Google::Apis::Core::Hashable
+
+ # The email of the contact for the inventory verification process.
+ # Corresponds to the JSON property `inventoryVerificationContactEmail`
+ # @return [String]
+ attr_accessor :inventory_verification_contact_email
+
+ # The name of the contact for the inventory verification process.
+ # Corresponds to the JSON property `inventoryVerificationContactName`
+ # @return [String]
+ attr_accessor :inventory_verification_contact_name
+
+ # The status of the verification contact.
+ # Corresponds to the JSON property `inventoryVerificationContactStatus`
+ # @return [String]
+ attr_accessor :inventory_verification_contact_status
+
+ # The status of the inventory verification process.
+ # Corresponds to the JSON property `status`
+ # @return [String]
+ attr_accessor :status
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @inventory_verification_contact_email = args[:inventory_verification_contact_email] if args.key?(:inventory_verification_contact_email)
+ @inventory_verification_contact_name = args[:inventory_verification_contact_name] if args.key?(:inventory_verification_contact_name)
+ @inventory_verification_contact_status = args[:inventory_verification_contact_status] if args.key?(:inventory_verification_contact_status)
+ @status = args[:status] if args.key?(:status)
+ end
+ end
+
+ #
+ class LiaOnDisplayToOrderSettings
+ include Google::Apis::Core::Hashable
+
+ # Shipping cost and policy URL.
+ # Corresponds to the JSON property `shippingCostPolicyUrl`
+ # @return [String]
+ attr_accessor :shipping_cost_policy_url
+
+ # The status of the ?On display to order? feature.
+ # Corresponds to the JSON property `status`
+ # @return [String]
+ attr_accessor :status
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @shipping_cost_policy_url = args[:shipping_cost_policy_url] if args.key?(:shipping_cost_policy_url)
+ @status = args[:status] if args.key?(:status)
+ end
+ end
+
+ #
+ class LiaSettings
+ include Google::Apis::Core::Hashable
+
+ # The ID of the account to which these LIA settings belong. Ignored upon update,
+ # always present in get request responses.
+ # Corresponds to the JSON property `accountId`
+ # @return [Fixnum]
+ attr_accessor :account_id
+
+ # The LIA settings for each country.
+ # Corresponds to the JSON property `countrySettings`
+ # @return [Array<Google::Apis::ContentV2::LiaCountrySettings>]
+ attr_accessor :country_settings
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # liaSettings".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @account_id = args[:account_id] if args.key?(:account_id)
+ @country_settings = args[:country_settings] if args.key?(:country_settings)
+ @kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ #
+ class LiasettingsCustomBatchRequest
+ include Google::Apis::Core::Hashable
+
+ # The request entries to be processed in the batch.
+ # Corresponds to the JSON property `entries`
+ # @return [Array<Google::Apis::ContentV2::LiasettingsCustomBatchRequestEntry>]
+ attr_accessor :entries
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @entries = args[:entries] if args.key?(:entries)
+ end
+ end
+
+ #
+ class LiasettingsCustomBatchRequestEntry
+ include Google::Apis::Core::Hashable
+
+ # The ID of the account for which to get/update account shipping settings.
+ # Corresponds to the JSON property `accountId`
+ # @return [Fixnum]
+ attr_accessor :account_id
+
+ # An entry ID, unique within the batch request.
+ # Corresponds to the JSON property `batchId`
+ # @return [Fixnum]
+ attr_accessor :batch_id
+
+ # Inventory validation contact email. Required only for
+ # SetInventoryValidationContact.
+ # Corresponds to the JSON property `contactEmail`
+ # @return [String]
+ attr_accessor :contact_email
+
+ # Inventory validation contact name. Required only for
+ # SetInventoryValidationContact.
+ # Corresponds to the JSON property `contactName`
+ # @return [String]
+ attr_accessor :contact_name
+
+ # The country code. Required only for RequestInventoryVerification.
+ # Corresponds to the JSON property `country`
+ # @return [String]
+ attr_accessor :country
+
+ # The GMB account. Required only for RequestGmbAccess.
+ # Corresponds to the JSON property `gmbEmail`
+ # @return [String]
+ attr_accessor :gmb_email
+
+ # The account Lia settings to update. Only defined if the method is update.
+ # Corresponds to the JSON property `liaSettings`
+ # @return [Google::Apis::ContentV2::LiaSettings]
+ attr_accessor :lia_settings
+
+ # The ID of the managing account.
+ # Corresponds to the JSON property `merchantId`
+ # @return [Fixnum]
+ attr_accessor :merchant_id
+
+ #
+ # Corresponds to the JSON property `method`
+ # @return [String]
+ attr_accessor :method_prop
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @account_id = args[:account_id] if args.key?(:account_id)
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
+ @contact_email = args[:contact_email] if args.key?(:contact_email)
+ @contact_name = args[:contact_name] if args.key?(:contact_name)
+ @country = args[:country] if args.key?(:country)
+ @gmb_email = args[:gmb_email] if args.key?(:gmb_email)
+ @lia_settings = args[:lia_settings] if args.key?(:lia_settings)
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
+ end
+ end
+
+ #
+ class LiasettingsCustomBatchResponse
+ include Google::Apis::Core::Hashable
+
+ # The result of the execution of the batch requests.
+ # Corresponds to the JSON property `entries`
+ # @return [Array<Google::Apis::ContentV2::LiasettingsCustomBatchResponseEntry>]
+ attr_accessor :entries
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # liasettingsCustomBatchResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @entries = args[:entries] if args.key?(:entries)
+ @kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ #
+ class LiasettingsCustomBatchResponseEntry
+ include Google::Apis::Core::Hashable
+
+ # The ID of the request entry to which this entry responds.
+ # Corresponds to the JSON property `batchId`
+ # @return [Fixnum]
+ attr_accessor :batch_id
+
+ # A list of errors returned by a failed batch entry.
+ # Corresponds to the JSON property `errors`
+ # @return [Google::Apis::ContentV2::Errors]
+ attr_accessor :errors
+
+ # The the list of accessible GMB accounts.
+ # Corresponds to the JSON property `gmbAccounts`
+ # @return [Google::Apis::ContentV2::GmbAccounts]
+ attr_accessor :gmb_accounts
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # liasettingsCustomBatchResponseEntry".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The retrieved or updated Lia settings.
+ # Corresponds to the JSON property `liaSettings`
+ # @return [Google::Apis::ContentV2::LiaSettings]
+ attr_accessor :lia_settings
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
+ @errors = args[:errors] if args.key?(:errors)
+ @gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts)
+ @kind = args[:kind] if args.key?(:kind)
+ @lia_settings = args[:lia_settings] if args.key?(:lia_settings)
+ end
+ end
+
+ #
+ class LiasettingsGetAccessibleGmbAccountsResponse
+ include Google::Apis::Core::Hashable
+
+ # The ID of the account.
+ # Corresponds to the JSON property `accountId`
+ # @return [Fixnum]
+ attr_accessor :account_id
+
+ # A list of GMB accounts which are available to the merchant.
+ # Corresponds to the JSON property `gmbAccounts`
+ # @return [Array<Google::Apis::ContentV2::GmbAccountsGmbAccount>]
+ attr_accessor :gmb_accounts
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # liasettingsGetAccessibleGmbAccountsResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @account_id = args[:account_id] if args.key?(:account_id)
+ @gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts)
+ @kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ #
+ class LiasettingsListResponse
+ include Google::Apis::Core::Hashable
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # liasettingsListResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The token for the retrieval of the next page of LIA settings.
+ # Corresponds to the JSON property `nextPageToken`
+ # @return [String]
+ attr_accessor :next_page_token
+
+ #
+ # Corresponds to the JSON property `resources`
+ # @return [Array<Google::Apis::ContentV2::LiaSettings>]
+ attr_accessor :resources
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @kind = args[:kind] if args.key?(:kind)
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
+ @resources = args[:resources] if args.key?(:resources)
+ end
+ end
+
+ #
+ class LiasettingsRequestGmbAccessResponse
+ include Google::Apis::Core::Hashable
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # liasettingsRequestGmbAccessResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ #
+ class LiasettingsRequestInventoryVerificationResponse
+ include Google::Apis::Core::Hashable
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # liasettingsRequestInventoryVerificationResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ #
+ class LiasettingsSetInventoryVerificationContactResponse
+ include Google::Apis::Core::Hashable
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # liasettingsSetInventoryVerificationContactResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ #
class LocationIdSet
include Google::Apis::Core::Hashable
# A non-empty list of location IDs. They must all be of the same location type (
# e.g., state).
@@ -2778,11 +3295,12 @@
#
class OrderCustomer
include Google::Apis::Core::Hashable
- # Email address of the customer.
+ # Email address that should be used for order related communications. In certain
+ # cases this might not be a real users email, but a proxy email.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# If set, this indicates the user explicitly chose to opt in or out of providing
@@ -5384,9 +5902,641 @@
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ #
+ class PosCustomBatchRequest
+ include Google::Apis::Core::Hashable
+
+ # The request entries to be processed in the batch.
+ # Corresponds to the JSON property `entries`
+ # @return [Array<Google::Apis::ContentV2::PosCustomBatchRequestEntry>]
+ attr_accessor :entries
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @entries = args[:entries] if args.key?(:entries)
+ end
+ end
+
+ #
+ class PosCustomBatchRequestEntry
+ include Google::Apis::Core::Hashable
+
+ # An entry ID, unique within the batch request.
+ # Corresponds to the JSON property `batchId`
+ # @return [Fixnum]
+ attr_accessor :batch_id
+
+ # The absolute quantity of an item available at the given store.
+ # Corresponds to the JSON property `inventory`
+ # @return [Google::Apis::ContentV2::PosInventory]
+ attr_accessor :inventory
+
+ # The ID of the POS provider.
+ # Corresponds to the JSON property `merchantId`
+ # @return [Fixnum]
+ attr_accessor :merchant_id
+
+ #
+ # Corresponds to the JSON property `method`
+ # @return [String]
+ attr_accessor :method_prop
+
+ # The change of the available quantity of an item at the given store.
+ # Corresponds to the JSON property `sale`
+ # @return [Google::Apis::ContentV2::PosSale]
+ attr_accessor :sale
+
+ # Store resource.
+ # Corresponds to the JSON property `store`
+ # @return [Google::Apis::ContentV2::PosStore]
+ attr_accessor :store
+
+ # The store code. Required only to get/submit store information.
+ # Corresponds to the JSON property `storeCode`
+ # @return [String]
+ attr_accessor :store_code
+
+ # The ID of the account for which to get/submit data.
+ # Corresponds to the JSON property `targetMerchantId`
+ # @return [Fixnum]
+ attr_accessor :target_merchant_id
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
+ @inventory = args[:inventory] if args.key?(:inventory)
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
+ @sale = args[:sale] if args.key?(:sale)
+ @store = args[:store] if args.key?(:store)
+ @store_code = args[:store_code] if args.key?(:store_code)
+ @target_merchant_id = args[:target_merchant_id] if args.key?(:target_merchant_id)
+ end
+ end
+
+ #
+ class PosCustomBatchResponse
+ include Google::Apis::Core::Hashable
+
+ # The result of the execution of the batch requests.
+ # Corresponds to the JSON property `entries`
+ # @return [Array<Google::Apis::ContentV2::PosCustomBatchResponseEntry>]
+ attr_accessor :entries
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # posCustomBatchResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @entries = args[:entries] if args.key?(:entries)
+ @kind = args[:kind] if args.key?(:kind)
+ end
+ end
+
+ #
+ class PosCustomBatchResponseEntry
+ include Google::Apis::Core::Hashable
+
+ # The ID of the request entry to which this entry responds.
+ # Corresponds to the JSON property `batchId`
+ # @return [Fixnum]
+ attr_accessor :batch_id
+
+ # A list of errors returned by a failed batch entry.
+ # Corresponds to the JSON property `errors`
+ # @return [Google::Apis::ContentV2::Errors]
+ attr_accessor :errors
+
+ # The absolute quantity of an item available at the given store.
+ # Corresponds to the JSON property `inventory`
+ # @return [Google::Apis::ContentV2::PosInventory]
+ attr_accessor :inventory
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # posCustomBatchResponseEntry".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The change of the available quantity of an item at the given store.
+ # Corresponds to the JSON property `sale`
+ # @return [Google::Apis::ContentV2::PosSale]
+ attr_accessor :sale
+
+ # Store resource.
+ # Corresponds to the JSON property `store`
+ # @return [Google::Apis::ContentV2::PosStore]
+ attr_accessor :store
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
+ @errors = args[:errors] if args.key?(:errors)
+ @inventory = args[:inventory] if args.key?(:inventory)
+ @kind = args[:kind] if args.key?(:kind)
+ @sale = args[:sale] if args.key?(:sale)
+ @store = args[:store] if args.key?(:store)
+ end
+ end
+
+ # The absolute quantity of an item available at the given store.
+ class PosInventory
+ include Google::Apis::Core::Hashable
+
+ # The two-letter ISO 639-1 language code for the item.
+ # Corresponds to the JSON property `contentLanguage`
+ # @return [String]
+ attr_accessor :content_language
+
+ # Global Trade Item Number.
+ # Corresponds to the JSON property `gtin`
+ # @return [String]
+ attr_accessor :gtin
+
+ # A unique identifier for the item.
+ # Corresponds to the JSON property `itemId`
+ # @return [String]
+ attr_accessor :item_id
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # posInventory".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The current price of the item.
+ # Corresponds to the JSON property `price`
+ # @return [Google::Apis::ContentV2::Price]
+ attr_accessor :price
+
+ # The available quantity of the item.
+ # Corresponds to the JSON property `quantity`
+ # @return [Fixnum]
+ attr_accessor :quantity
+
+ # The identifier of the merchant's store. Either a storeCode inserted via the
+ # API or the code of the store in Google My Business.
+ # Corresponds to the JSON property `storeCode`
+ # @return [String]
+ attr_accessor :store_code
+
+ # The CLDR territory code for the item.
+ # Corresponds to the JSON property `targetCountry`
+ # @return [String]
+ attr_accessor :target_country
+
+ # The inventory timestamp, in ISO 8601 format.
+ # Corresponds to the JSON property `timestamp`
+ # @return [String]
+ attr_accessor :timestamp
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @content_language = args[:content_language] if args.key?(:content_language)
+ @gtin = args[:gtin] if args.key?(:gtin)
+ @item_id = args[:item_id] if args.key?(:item_id)
+ @kind = args[:kind] if args.key?(:kind)
+ @price = args[:price] if args.key?(:price)
+ @quantity = args[:quantity] if args.key?(:quantity)
+ @store_code = args[:store_code] if args.key?(:store_code)
+ @target_country = args[:target_country] if args.key?(:target_country)
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
+ end
+ end
+
+ #
+ class PosInventoryRequest
+ include Google::Apis::Core::Hashable
+
+ # The two-letter ISO 639-1 language code for the item.
+ # Corresponds to the JSON property `contentLanguage`
+ # @return [String]
+ attr_accessor :content_language
+
+ # Global Trade Item Number.
+ # Corresponds to the JSON property `gtin`
+ # @return [String]
+ attr_accessor :gtin
+
+ # A unique identifier for the item.
+ # Corresponds to the JSON property `itemId`
+ # @return [String]
+ attr_accessor :item_id
+
+ # The current price of the item.
+ # Corresponds to the JSON property `price`
+ # @return [Google::Apis::ContentV2::Price]
+ attr_accessor :price
+
+ # The available quantity of the item.
+ # Corresponds to the JSON property `quantity`
+ # @return [Fixnum]
+ attr_accessor :quantity
+
+ # The identifier of the merchant's store. Either a storeCode inserted via the
+ # API or the code of the store in Google My Business.
+ # Corresponds to the JSON property `storeCode`
+ # @return [String]
+ attr_accessor :store_code
+
+ # The CLDR territory code for the item.
+ # Corresponds to the JSON property `targetCountry`
+ # @return [String]
+ attr_accessor :target_country
+
+ # The inventory timestamp, in ISO 8601 format.
+ # Corresponds to the JSON property `timestamp`
+ # @return [String]
+ attr_accessor :timestamp
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @content_language = args[:content_language] if args.key?(:content_language)
+ @gtin = args[:gtin] if args.key?(:gtin)
+ @item_id = args[:item_id] if args.key?(:item_id)
+ @price = args[:price] if args.key?(:price)
+ @quantity = args[:quantity] if args.key?(:quantity)
+ @store_code = args[:store_code] if args.key?(:store_code)
+ @target_country = args[:target_country] if args.key?(:target_country)
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
+ end
+ end
+
+ #
+ class PosInventoryResponse
+ include Google::Apis::Core::Hashable
+
+ # The two-letter ISO 639-1 language code for the item.
+ # Corresponds to the JSON property `contentLanguage`
+ # @return [String]
+ attr_accessor :content_language
+
+ # Global Trade Item Number.
+ # Corresponds to the JSON property `gtin`
+ # @return [String]
+ attr_accessor :gtin
+
+ # A unique identifier for the item.
+ # Corresponds to the JSON property `itemId`
+ # @return [String]
+ attr_accessor :item_id
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # posInventoryResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The current price of the item.
+ # Corresponds to the JSON property `price`
+ # @return [Google::Apis::ContentV2::Price]
+ attr_accessor :price
+
+ # The available quantity of the item.
+ # Corresponds to the JSON property `quantity`
+ # @return [Fixnum]
+ attr_accessor :quantity
+
+ # The identifier of the merchant's store. Either a storeCode inserted via the
+ # API or the code of the store in Google My Business.
+ # Corresponds to the JSON property `storeCode`
+ # @return [String]
+ attr_accessor :store_code
+
+ # The CLDR territory code for the item.
+ # Corresponds to the JSON property `targetCountry`
+ # @return [String]
+ attr_accessor :target_country
+
+ # The inventory timestamp, in ISO 8601 format.
+ # Corresponds to the JSON property `timestamp`
+ # @return [String]
+ attr_accessor :timestamp
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @content_language = args[:content_language] if args.key?(:content_language)
+ @gtin = args[:gtin] if args.key?(:gtin)
+ @item_id = args[:item_id] if args.key?(:item_id)
+ @kind = args[:kind] if args.key?(:kind)
+ @price = args[:price] if args.key?(:price)
+ @quantity = args[:quantity] if args.key?(:quantity)
+ @store_code = args[:store_code] if args.key?(:store_code)
+ @target_country = args[:target_country] if args.key?(:target_country)
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
+ end
+ end
+
+ #
+ class PosListResponse
+ include Google::Apis::Core::Hashable
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # posListResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ #
+ # Corresponds to the JSON property `resources`
+ # @return [Array<Google::Apis::ContentV2::PosStore>]
+ attr_accessor :resources
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @kind = args[:kind] if args.key?(:kind)
+ @resources = args[:resources] if args.key?(:resources)
+ end
+ end
+
+ # The change of the available quantity of an item at the given store.
+ class PosSale
+ include Google::Apis::Core::Hashable
+
+ # The two-letter ISO 639-1 language code for the item.
+ # Corresponds to the JSON property `contentLanguage`
+ # @return [String]
+ attr_accessor :content_language
+
+ # Global Trade Item Number.
+ # Corresponds to the JSON property `gtin`
+ # @return [String]
+ attr_accessor :gtin
+
+ # A unique identifier for the item.
+ # Corresponds to the JSON property `itemId`
+ # @return [String]
+ attr_accessor :item_id
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # posSale".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The price of the item.
+ # Corresponds to the JSON property `price`
+ # @return [Google::Apis::ContentV2::Price]
+ attr_accessor :price
+
+ # The relative change of the available quantity. Negative for items sold.
+ # Corresponds to the JSON property `quantity`
+ # @return [Fixnum]
+ attr_accessor :quantity
+
+ # A unique ID to group items from the same sale event.
+ # Corresponds to the JSON property `saleId`
+ # @return [String]
+ attr_accessor :sale_id
+
+ # The identifier of the merchant's store. Either a storeCode inserted via the
+ # API or the code of the store in Google My Business.
+ # Corresponds to the JSON property `storeCode`
+ # @return [String]
+ attr_accessor :store_code
+
+ # The CLDR territory code for the item.
+ # Corresponds to the JSON property `targetCountry`
+ # @return [String]
+ attr_accessor :target_country
+
+ # The inventory timestamp, in ISO 8601 format.
+ # Corresponds to the JSON property `timestamp`
+ # @return [String]
+ attr_accessor :timestamp
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @content_language = args[:content_language] if args.key?(:content_language)
+ @gtin = args[:gtin] if args.key?(:gtin)
+ @item_id = args[:item_id] if args.key?(:item_id)
+ @kind = args[:kind] if args.key?(:kind)
+ @price = args[:price] if args.key?(:price)
+ @quantity = args[:quantity] if args.key?(:quantity)
+ @sale_id = args[:sale_id] if args.key?(:sale_id)
+ @store_code = args[:store_code] if args.key?(:store_code)
+ @target_country = args[:target_country] if args.key?(:target_country)
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
+ end
+ end
+
+ #
+ class PosSaleRequest
+ include Google::Apis::Core::Hashable
+
+ # The two-letter ISO 639-1 language code for the item.
+ # Corresponds to the JSON property `contentLanguage`
+ # @return [String]
+ attr_accessor :content_language
+
+ # Global Trade Item Number.
+ # Corresponds to the JSON property `gtin`
+ # @return [String]
+ attr_accessor :gtin
+
+ # A unique identifier for the item.
+ # Corresponds to the JSON property `itemId`
+ # @return [String]
+ attr_accessor :item_id
+
+ # The price of the item.
+ # Corresponds to the JSON property `price`
+ # @return [Google::Apis::ContentV2::Price]
+ attr_accessor :price
+
+ # The relative change of the available quantity. Negative for items sold.
+ # Corresponds to the JSON property `quantity`
+ # @return [Fixnum]
+ attr_accessor :quantity
+
+ # A unique ID to group items from the same sale event.
+ # Corresponds to the JSON property `saleId`
+ # @return [String]
+ attr_accessor :sale_id
+
+ # The identifier of the merchant's store. Either a storeCode inserted via the
+ # API or the code of the store in Google My Business.
+ # Corresponds to the JSON property `storeCode`
+ # @return [String]
+ attr_accessor :store_code
+
+ # The CLDR territory code for the item.
+ # Corresponds to the JSON property `targetCountry`
+ # @return [String]
+ attr_accessor :target_country
+
+ # The inventory timestamp, in ISO 8601 format.
+ # Corresponds to the JSON property `timestamp`
+ # @return [String]
+ attr_accessor :timestamp
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @content_language = args[:content_language] if args.key?(:content_language)
+ @gtin = args[:gtin] if args.key?(:gtin)
+ @item_id = args[:item_id] if args.key?(:item_id)
+ @price = args[:price] if args.key?(:price)
+ @quantity = args[:quantity] if args.key?(:quantity)
+ @sale_id = args[:sale_id] if args.key?(:sale_id)
+ @store_code = args[:store_code] if args.key?(:store_code)
+ @target_country = args[:target_country] if args.key?(:target_country)
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
+ end
+ end
+
+ #
+ class PosSaleResponse
+ include Google::Apis::Core::Hashable
+
+ # The two-letter ISO 639-1 language code for the item.
+ # Corresponds to the JSON property `contentLanguage`
+ # @return [String]
+ attr_accessor :content_language
+
+ # Global Trade Item Number.
+ # Corresponds to the JSON property `gtin`
+ # @return [String]
+ attr_accessor :gtin
+
+ # A unique identifier for the item.
+ # Corresponds to the JSON property `itemId`
+ # @return [String]
+ attr_accessor :item_id
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # posSaleResponse".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The price of the item.
+ # Corresponds to the JSON property `price`
+ # @return [Google::Apis::ContentV2::Price]
+ attr_accessor :price
+
+ # The relative change of the available quantity. Negative for items sold.
+ # Corresponds to the JSON property `quantity`
+ # @return [Fixnum]
+ attr_accessor :quantity
+
+ # A unique ID to group items from the same sale event.
+ # Corresponds to the JSON property `saleId`
+ # @return [String]
+ attr_accessor :sale_id
+
+ # The identifier of the merchant's store. Either a storeCode inserted via the
+ # API or the code of the store in Google My Business.
+ # Corresponds to the JSON property `storeCode`
+ # @return [String]
+ attr_accessor :store_code
+
+ # The CLDR territory code for the item.
+ # Corresponds to the JSON property `targetCountry`
+ # @return [String]
+ attr_accessor :target_country
+
+ # The inventory timestamp, in ISO 8601 format.
+ # Corresponds to the JSON property `timestamp`
+ # @return [String]
+ attr_accessor :timestamp
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @content_language = args[:content_language] if args.key?(:content_language)
+ @gtin = args[:gtin] if args.key?(:gtin)
+ @item_id = args[:item_id] if args.key?(:item_id)
+ @kind = args[:kind] if args.key?(:kind)
+ @price = args[:price] if args.key?(:price)
+ @quantity = args[:quantity] if args.key?(:quantity)
+ @sale_id = args[:sale_id] if args.key?(:sale_id)
+ @store_code = args[:store_code] if args.key?(:store_code)
+ @target_country = args[:target_country] if args.key?(:target_country)
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
+ end
+ end
+
+ # Store resource.
+ class PosStore
+ include Google::Apis::Core::Hashable
+
+ # Identifies what kind of resource this is. Value: the fixed string "content#
+ # posStore".
+ # Corresponds to the JSON property `kind`
+ # @return [String]
+ attr_accessor :kind
+
+ # The street address of the store.
+ # Corresponds to the JSON property `storeAddress`
+ # @return [String]
+ attr_accessor :store_address
+
+ # A store identifier that is unique for the given merchant.
+ # Corresponds to the JSON property `storeCode`
+ # @return [String]
+ attr_accessor :store_code
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @kind = args[:kind] if args.key?(:kind)
+ @store_address = args[:store_address] if args.key?(:store_address)
+ @store_code = args[:store_code] if args.key?(:store_code)
end
end
#
class PostalCodeGroup