google-api-ruby-client/generated/google/apis/content_v2/classes.rb

8251 lines
304 KiB
Ruby
Raw Normal View History

2015-06-23 23:05:46 +00:00
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ContentV2
# Account data.
class Account
include Google::Apis::Core::Hashable
# Indicates whether the merchant sells adult content.
# Corresponds to the JSON property `adultContent`
# @return [Boolean]
attr_accessor :adult_content
alias_method :adult_content?, :adult_content
2017-01-13 23:04:35 +00:00
# List of linked AdWords accounts that are active or pending approval. To create
# a new link request, add a new link with status active to the list. It will
# remain in a pending state until approved or rejected either in the AdWords
# interface or through the AdWords API. To delete an active link, or to cancel
# a link request, remove it from the list.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `adwordsLinks`
# @return [Array<Google::Apis::ContentV2::AccountAdwordsLink>]
attr_accessor :adwords_links
# The GMB account which is linked or in the process of being linked with the
# Merchant Center accounnt.
# Corresponds to the JSON property `googleMyBusinessLink`
# @return [Google::Apis::ContentV2::AccountGoogleMyBusinessLink]
attr_accessor :google_my_business_link
2015-06-23 23:05:46 +00:00
# Merchant Center account ID.
# Corresponds to the JSON property `id`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "content#
# account".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Display name for the account.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [DEPRECATED] This field is never returned and will be ignored if provided.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `reviewsUrl`
# @return [String]
attr_accessor :reviews_url
# Client-specific, locally-unique, internal ID for the child account.
# Corresponds to the JSON property `sellerId`
# @return [String]
attr_accessor :seller_id
# Users with access to the account. Every account (except for subaccounts) must
# have at least one admin user.
# Corresponds to the JSON property `users`
# @return [Array<Google::Apis::ContentV2::AccountUser>]
attr_accessor :users
# The merchant's website.
# Corresponds to the JSON property `websiteUrl`
# @return [String]
attr_accessor :website_url
# List of linked YouTube channels that are active or pending approval. To create
# a new link request, add a new link with status active to the list. It will
# remain in a pending state until approved or rejected in the YT Creator Studio
# interface. To delete an active link, or to cancel a link request, remove it
# from the list.
# Corresponds to the JSON property `youtubeChannelLinks`
# @return [Array<Google::Apis::ContentV2::AccountYouTubeChannelLink>]
attr_accessor :youtube_channel_links
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@adult_content = args[:adult_content] if args.key?(:adult_content)
@adwords_links = args[:adwords_links] if args.key?(:adwords_links)
@google_my_business_link = args[:google_my_business_link] if args.key?(:google_my_business_link)
2016-01-29 22:32:46 +00:00
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@reviews_url = args[:reviews_url] if args.key?(:reviews_url)
@seller_id = args[:seller_id] if args.key?(:seller_id)
@users = args[:users] if args.key?(:users)
@website_url = args[:website_url] if args.key?(:website_url)
@youtube_channel_links = args[:youtube_channel_links] if args.key?(:youtube_channel_links)
2015-06-23 23:05:46 +00:00
end
end
#
class AccountAdwordsLink
include Google::Apis::Core::Hashable
# Customer ID of the AdWords account.
# Corresponds to the JSON property `adwordsId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :adwords_id
# Status of the link between this Merchant Center account and the AdWords
# account. Upon retrieval, it represents the actual status of the link and can
# be either active if it was approved in Google AdWords or pending if it's
# pending approval. Upon insertion, it represents the intended status of the
# link. Re-uploading a link with status active when it's still pending or with
# status pending when it's already active will have no effect: the status will
# remain unchanged. Re-uploading a link with deprecated status inactive is
# equivalent to not submitting the link at all and will delete the link if it
# was active or cancel the link request if it was pending.
# 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)
2016-01-29 22:32:46 +00:00
@adwords_id = args[:adwords_id] if args.key?(:adwords_id)
@status = args[:status] if args.key?(:status)
2015-06-23 23:05:46 +00:00
end
end
#
class AccountGoogleMyBusinessLink
include Google::Apis::Core::Hashable
# 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.
# 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)
@gmb_email = args[:gmb_email] if args.key?(:gmb_email)
@status = args[:status] if args.key?(:status)
end
end
2015-06-23 23:05:46 +00:00
#
class AccountIdentifier
include Google::Apis::Core::Hashable
# The aggregator ID, set for aggregators and subaccounts (in that case, it
# represents the aggregator of the subaccount).
# Corresponds to the JSON property `aggregatorId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :aggregator_id
# The merchant account ID, set for individual accounts and subaccounts.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@aggregator_id = args[:aggregator_id] if args.key?(:aggregator_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
2015-06-23 23:05:46 +00:00
end
end
# The status of an account, i.e., information about its products, which is
# computed offline and not returned immediately at insertion time.
class AccountStatus
include Google::Apis::Core::Hashable
# The ID of the account for which the status is reported.
# Corresponds to the JSON property `accountId`
# @return [String]
attr_accessor :account_id
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
# A list of account level issues.
# Corresponds to the JSON property `accountLevelIssues`
# @return [Array<Google::Apis::ContentV2::AccountStatusAccountLevelIssue>]
attr_accessor :account_level_issues
2015-06-23 23:05:46 +00:00
# A list of data quality issues.
# Corresponds to the JSON property `dataQualityIssues`
# @return [Array<Google::Apis::ContentV2::AccountStatusDataQualityIssue>]
attr_accessor :data_quality_issues
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountStatus".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
2017-05-26 16:44:32 +00:00
# Whether the account's website is claimed or not.
# Corresponds to the JSON property `websiteClaimed`
# @return [Boolean]
attr_accessor :website_claimed
alias_method :website_claimed?, :website_claimed
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@account_id = args[:account_id] if args.key?(:account_id)
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
@account_level_issues = args[:account_level_issues] if args.key?(:account_level_issues)
2016-01-29 22:32:46 +00:00
@data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
@kind = args[:kind] if args.key?(:kind)
2017-05-26 16:44:32 +00:00
@website_claimed = args[:website_claimed] if args.key?(:website_claimed)
2015-06-23 23:05:46 +00:00
end
end
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
#
class AccountStatusAccountLevelIssue
include Google::Apis::Core::Hashable
# Country for which this issue is reported.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# Additional details about the issue.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail
# Issue identifier.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Severity of the issue.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Short description of the issue.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@detail = args[:detail] if args.key?(:detail)
@id = args[:id] if args.key?(:id)
@severity = args[:severity] if args.key?(:severity)
@title = args[:title] if args.key?(:title)
end
end
2015-06-23 23:05:46 +00:00
#
class AccountStatusDataQualityIssue
include Google::Apis::Core::Hashable
# Country for which this issue is reported.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# A more detailed description of the issue.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail
2015-06-23 23:05:46 +00:00
# Actual value displayed on the landing page.
# Corresponds to the JSON property `displayedValue`
# @return [String]
attr_accessor :displayed_value
# Example items featuring the issue.
# Corresponds to the JSON property `exampleItems`
# @return [Array<Google::Apis::ContentV2::AccountStatusExampleItem>]
attr_accessor :example_items
# Issue identifier.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Last time the account was checked for this issue.
# Corresponds to the JSON property `lastChecked`
# @return [String]
attr_accessor :last_checked
# The attribute name that is relevant for the issue.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
2015-06-23 23:05:46 +00:00
# Number of items in the account found to have the said issue.
# Corresponds to the JSON property `numItems`
# @return [Fixnum]
attr_accessor :num_items
# Severity of the problem.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Submitted value that causes the issue.
# Corresponds to the JSON property `submittedValue`
# @return [String]
attr_accessor :submitted_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@country = args[:country] if args.key?(:country)
@detail = args[:detail] if args.key?(:detail)
2016-01-29 22:32:46 +00:00
@displayed_value = args[:displayed_value] if args.key?(:displayed_value)
@example_items = args[:example_items] if args.key?(:example_items)
@id = args[:id] if args.key?(:id)
@last_checked = args[:last_checked] if args.key?(:last_checked)
@location = args[:location] if args.key?(:location)
2016-01-29 22:32:46 +00:00
@num_items = args[:num_items] if args.key?(:num_items)
@severity = args[:severity] if args.key?(:severity)
@submitted_value = args[:submitted_value] if args.key?(:submitted_value)
2015-06-23 23:05:46 +00:00
end
end
# An example of an item that has poor data quality. An item value on the landing
# page differs from what is submitted, or conflicts with a policy.
class AccountStatusExampleItem
include Google::Apis::Core::Hashable
# Unique item ID as specified in the uploaded product data.
# Corresponds to the JSON property `itemId`
# @return [String]
attr_accessor :item_id
# Landing page of the item.
# Corresponds to the JSON property `link`
# @return [String]
attr_accessor :link
# The item value that was submitted.
# Corresponds to the JSON property `submittedValue`
# @return [String]
attr_accessor :submitted_value
# Title of the item.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The actual value on the landing page.
# Corresponds to the JSON property `valueOnLandingPage`
# @return [String]
attr_accessor :value_on_landing_page
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@item_id = args[:item_id] if args.key?(:item_id)
@link = args[:link] if args.key?(:link)
@submitted_value = args[:submitted_value] if args.key?(:submitted_value)
@title = args[:title] if args.key?(:title)
@value_on_landing_page = args[:value_on_landing_page] if args.key?(:value_on_landing_page)
2015-06-23 23:05:46 +00:00
end
end
# The tax settings of a merchant account.
class AccountTax
include Google::Apis::Core::Hashable
# The ID of the account to which these account tax settings belong.
# Corresponds to the JSON property `accountId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :account_id
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountTax".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Tax rules. Updating the tax rules will enable US taxes (not reversible).
# Defining no rules is equivalent to not charging tax at all.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ContentV2::AccountTaxTaxRule>]
attr_accessor :rules
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@account_id = args[:account_id] if args.key?(:account_id)
@kind = args[:kind] if args.key?(:kind)
@rules = args[:rules] if args.key?(:rules)
2015-06-23 23:05:46 +00:00
end
end
# Tax calculation rule to apply in a state or province (USA only).
class AccountTaxTaxRule
include Google::Apis::Core::Hashable
# Country code in which tax is applicable.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# State (or province) is which the tax is applicable, described by its location
# id (also called criteria id).
# Corresponds to the JSON property `locationId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :location_id
# Explicit tax rate in percent, represented as a floating point number without
# the percentage character. Must not be negative.
# Corresponds to the JSON property `ratePercent`
# @return [String]
attr_accessor :rate_percent
# If true, shipping charges are also taxed.
# Corresponds to the JSON property `shippingTaxed`
# @return [Boolean]
attr_accessor :shipping_taxed
alias_method :shipping_taxed?, :shipping_taxed
# Whether the tax rate is taken from a global tax table or specified explicitly.
# Corresponds to the JSON property `useGlobalRate`
# @return [Boolean]
attr_accessor :use_global_rate
alias_method :use_global_rate?, :use_global_rate
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@country = args[:country] if args.key?(:country)
@location_id = args[:location_id] if args.key?(:location_id)
@rate_percent = args[:rate_percent] if args.key?(:rate_percent)
@shipping_taxed = args[:shipping_taxed] if args.key?(:shipping_taxed)
@use_global_rate = args[:use_global_rate] if args.key?(:use_global_rate)
2015-06-23 23:05:46 +00:00
end
end
#
class AccountUser
include Google::Apis::Core::Hashable
# Whether user is an admin.
# Corresponds to the JSON property `admin`
# @return [Boolean]
attr_accessor :admin
alias_method :admin?, :admin
# User's email address.
# Corresponds to the JSON property `emailAddress`
# @return [String]
attr_accessor :email_address
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@admin = args[:admin] if args.key?(:admin)
@email_address = args[:email_address] if args.key?(:email_address)
2015-06-23 23:05:46 +00:00
end
end
#
class AccountYouTubeChannelLink
include Google::Apis::Core::Hashable
# Channel ID.
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# Status of the link between this Merchant Center account and the YouTube
# channel. Upon retrieval, it represents the actual status of the link and can
# be either active if it was approved in YT Creator Studio or pending if it's
# pending approval. Upon insertion, it represents the intended status of the
# link. Re-uploading a link with status active when it's still pending or with
# status pending when it's already active will have no effect: the status will
# remain unchanged. Re-uploading a link with deprecated status inactive is
# equivalent to not submitting the link at all and will delete the link if it
# was active or cancel the link request if it was pending.
# 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)
@channel_id = args[:channel_id] if args.key?(:channel_id)
@status = args[:status] if args.key?(:status)
end
end
2015-06-23 23:05:46 +00:00
#
class AccountsAuthInfoResponse
include Google::Apis::Core::Hashable
# The account identifiers corresponding to the authenticated user.
# - For an individual account: only the merchant ID is defined
# - For an aggregator: only the aggregator ID is defined
# - For a subaccount of an MCA: both the merchant ID and the aggregator ID are
# defined.
# Corresponds to the JSON property `accountIdentifiers`
# @return [Array<Google::Apis::ContentV2::AccountIdentifier>]
attr_accessor :account_identifiers
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountsAuthInfoResponse".
# 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)
2016-01-29 22:32:46 +00:00
@account_identifiers = args[:account_identifiers] if args.key?(:account_identifiers)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
2017-05-26 16:44:32 +00:00
#
class AccountsClaimWebsiteResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountsClaimWebsiteResponse".
# 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
2015-06-23 23:05:46 +00:00
#
class BatchAccountsRequest
2015-06-23 23:05:46 +00:00
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::AccountsBatchRequestEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch accounts request.
class AccountsBatchRequestEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Account data.
# Corresponds to the JSON property `account`
# @return [Google::Apis::ContentV2::Account]
attr_accessor :account
2017-05-26 16:44:32 +00:00
# The ID of the targeted account. Only defined if the method is get, delete or
# claimwebsite.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `accountId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :account_id
# An entry ID, unique within the batch request.
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
# Whether the account should be deleted if the account has offers. Only
# applicable if the method is delete.
# Corresponds to the JSON property `force`
# @return [Boolean]
attr_accessor :force
alias_method :force?, :force
2015-06-23 23:05:46 +00:00
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :request_method
2015-06-23 23:05:46 +00:00
2017-05-26 16:44:32 +00:00
# Only applicable if the method is claimwebsite. Indicates whether or not to
# take the claim from another account in case there is a conflict.
# Corresponds to the JSON property `overwrite`
# @return [Boolean]
attr_accessor :overwrite
alias_method :overwrite?, :overwrite
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@account = args[:account] if args.key?(:account)
@account_id = args[:account_id] if args.key?(:account_id)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@force = args[:force] if args.key?(:force)
2016-01-29 22:32:46 +00:00
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@request_method = args[:request_method] if args.key?(:request_method)
2017-05-26 16:44:32 +00:00
@overwrite = args[:overwrite] if args.key?(:overwrite)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchAccountsResponse
2015-06-23 23:05:46 +00:00
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::AccountsBatchResponseEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountsCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch accounts response.
class AccountsBatchResponseEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Account data.
# Corresponds to the JSON property `account`
# @return [Google::Apis::ContentV2::Account]
attr_accessor :account
# The ID of the request entry this entry responds to.
# 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
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountsCustomBatchResponseEntry".
# 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)
2016-01-29 22:32:46 +00:00
@account = args[:account] if args.key?(:account)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
#
class ListAccountsResponse
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountsListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of accounts.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ContentV2::Account>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@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)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchAccountStatusesRequest
2015-06-23 23:05:46 +00:00
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::AccountStatusesBatchRequestEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch accountstatuses request.
class AccountStatusesBatchRequestEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The ID of the (sub-)account whose status to get.
# Corresponds to the JSON property `accountId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :account_id
# An entry ID, unique within the batch request.
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
# The method (get).
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :request_method
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@account_id = args[:account_id] if args.key?(:account_id)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@request_method = args[:request_method] if args.key?(:request_method)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchAccountStatusesResponse
2015-06-23 23:05:46 +00:00
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::AccountStatusesBatchResponseEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountstatusesCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch accountstatuses response.
class AccountStatusesBatchResponseEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The status of an account, i.e., information about its products, which is
# computed offline and not returned immediately at insertion time.
# Corresponds to the JSON property `accountStatus`
# @return [Google::Apis::ContentV2::AccountStatus]
attr_accessor :account_status
# The ID of the request entry this entry responds to.
# 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
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@account_status = args[:account_status] if args.key?(:account_status)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
2015-06-23 23:05:46 +00:00
end
end
#
class ListAccountStatusesResponse
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# accountstatusesListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of account statuses.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ContentV2::AccountStatus>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@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)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchAccountTaxRequest
2015-06-23 23:05:46 +00:00
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::AccountTaxBatchRequestEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch accounttax request.
class AccountTaxBatchRequestEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The ID of the account for which to get/update account tax settings.
# Corresponds to the JSON property `accountId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :account_id
# The tax settings of a merchant account.
# Corresponds to the JSON property `accountTax`
# @return [Google::Apis::ContentV2::AccountTax]
attr_accessor :account_tax
# An entry ID, unique within the batch request.
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :request_method
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@account_id = args[:account_id] if args.key?(:account_id)
@account_tax = args[:account_tax] if args.key?(:account_tax)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@request_method = args[:request_method] if args.key?(:request_method)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchAccountTaxResponse
2015-06-23 23:05:46 +00:00
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::AccountTaxBatchResponseEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# accounttaxCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch accounttax response.
class AccountTaxBatchResponseEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The tax settings of a merchant account.
# Corresponds to the JSON property `accountTax`
# @return [Google::Apis::ContentV2::AccountTax]
attr_accessor :account_tax
# The ID of the request entry this entry responds to.
# 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
# Identifies what kind of resource this is. Value: the fixed string "content#
# accounttaxCustomBatchResponseEntry".
# 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)
2016-01-29 22:32:46 +00:00
@account_tax = args[:account_tax] if args.key?(:account_tax)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
#
class ListAccountTaxResponse
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# accounttaxListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of account tax 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::AccountTax>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@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)
2015-06-23 23:05:46 +00:00
end
end
2016-08-15 17:54:44 +00:00
#
class CarrierRate
include Google::Apis::Core::Hashable
# Carrier service, such as "UPS" or "Fedex". The list of supported carriers can
# be retrieved via the getSupportedCarriers method. Required.
# Corresponds to the JSON property `carrierName`
# @return [String]
attr_accessor :carrier_name
# Carrier service, such as "ground" or "2 days". The list of supported services
# for a carrier can be retrieved via the getSupportedCarriers method. Required.
# Corresponds to the JSON property `carrierService`
# @return [String]
attr_accessor :carrier_service
# Additive shipping rate modifier. Can be negative. For example ` "value": "1", "
# currency" : "USD" ` adds $1 to the rate, ` "value": "-3", "currency" : "USD" `
# removes $3 from the rate. Optional.
# Corresponds to the JSON property `flatAdjustment`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :flat_adjustment
# Name of the carrier rate. Must be unique per rate group. Required.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Shipping origin for this carrier rate. Required.
# Corresponds to the JSON property `originPostalCode`
# @return [String]
attr_accessor :origin_postal_code
# Multiplicative shipping rate modifier as a number in decimal notation. Can be
# negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the
# rate by 3%. Optional.
# Corresponds to the JSON property `percentageAdjustment`
# @return [String]
attr_accessor :percentage_adjustment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@carrier_name = args[:carrier_name] if args.key?(:carrier_name)
@carrier_service = args[:carrier_service] if args.key?(:carrier_service)
@flat_adjustment = args[:flat_adjustment] if args.key?(:flat_adjustment)
@name = args[:name] if args.key?(:name)
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
@percentage_adjustment = args[:percentage_adjustment] if args.key?(:percentage_adjustment)
end
end
#
class CarriersCarrier
include Google::Apis::Core::Hashable
# The CLDR country code of the carrier (e.g., "US"). Always present.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# The name of the carrier (e.g., "UPS"). Always present.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A list of supported services (e.g., "ground") for that carrier. Contains at
# least one service.
# Corresponds to the JSON property `services`
# @return [Array<String>]
attr_accessor :services
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@name = args[:name] if args.key?(:name)
@services = args[:services] if args.key?(:services)
end
end
# Datafeed configuration data.
2015-06-23 23:05:46 +00:00
class Datafeed
include Google::Apis::Core::Hashable
# The two-letter ISO 639-1 language in which the attributes are defined in the
# data feed.
# Corresponds to the JSON property `attributeLanguage`
# @return [String]
attr_accessor :attribute_language
# [DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1
# language of the items in the feed. Must be a valid language for targetCountry.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `contentLanguage`
# @return [String]
attr_accessor :content_language
2017-03-10 21:11:09 +00:00
# The type of data feed. For product inventory feeds, only feeds for local
# stores, not online stores, are supported.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `contentType`
# @return [String]
attr_accessor :content_type
# The required fields vary based on the frequency of fetching. For a monthly
# fetch schedule, day_of_month and hour are required. For a weekly fetch
# schedule, weekday and hour are required. For a daily fetch schedule, only hour
# is required.
# Corresponds to the JSON property `fetchSchedule`
# @return [Google::Apis::ContentV2::DatafeedFetchSchedule]
attr_accessor :fetch_schedule
# The filename of the feed. All feeds must have a unique file name.
# Corresponds to the JSON property `fileName`
# @return [String]
attr_accessor :file_name
# Format of the feed file.
# Corresponds to the JSON property `format`
# @return [Google::Apis::ContentV2::DatafeedFormat]
attr_accessor :format
# The ID of the data feed.
# Corresponds to the JSON property `id`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :id
# [DEPRECATED] Please use targets[].includedDestinations instead. The list of
# intended destinations (corresponds to checked check boxes in Merchant Center).
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `intendedDestinations`
# @return [Array<String>]
attr_accessor :intended_destinations
# Identifies what kind of resource this is. Value: the fixed string "content#
# datafeed".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A descriptive name of the data feed.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [DEPRECATED] Please use targets[].country instead. The country where the items
# in the feed will be included in the search index, represented as a CLDR
# territory code.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `targetCountry`
# @return [String]
attr_accessor :target_country
# The targets this feed should apply to (country, language, destinations).
# Corresponds to the JSON property `targets`
# @return [Array<Google::Apis::ContentV2::DatafeedTarget>]
attr_accessor :targets
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@attribute_language = args[:attribute_language] if args.key?(:attribute_language)
@content_language = args[:content_language] if args.key?(:content_language)
@content_type = args[:content_type] if args.key?(:content_type)
@fetch_schedule = args[:fetch_schedule] if args.key?(:fetch_schedule)
@file_name = args[:file_name] if args.key?(:file_name)
@format = args[:format] if args.key?(:format)
@id = args[:id] if args.key?(:id)
@intended_destinations = args[:intended_destinations] if args.key?(:intended_destinations)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@target_country = args[:target_country] if args.key?(:target_country)
@targets = args[:targets] if args.key?(:targets)
2015-06-23 23:05:46 +00:00
end
end
# The required fields vary based on the frequency of fetching. For a monthly
# fetch schedule, day_of_month and hour are required. For a weekly fetch
# schedule, weekday and hour are required. For a daily fetch schedule, only hour
# is required.
class DatafeedFetchSchedule
include Google::Apis::Core::Hashable
# The day of the month the feed file should be fetched (1-31).
# Corresponds to the JSON property `dayOfMonth`
# @return [Fixnum]
attr_accessor :day_of_month
# The URL where the feed file can be fetched. Google Merchant Center will
# support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP
# protocols, so the value will need to be a valid link using one of those four
# protocols.
# Corresponds to the JSON property `fetchUrl`
# @return [String]
attr_accessor :fetch_url
2016-01-20 20:41:43 +00:00
# The hour of the day the feed file should be fetched (0-23).
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `hour`
# @return [Fixnum]
attr_accessor :hour
2016-03-11 22:41:20 +00:00
# The minute of the hour the feed file should be fetched (0-59). Read-only.
# Corresponds to the JSON property `minuteOfHour`
# @return [Fixnum]
attr_accessor :minute_of_hour
2015-06-23 23:05:46 +00:00
# An optional password for fetch_url.
# Corresponds to the JSON property `password`
# @return [String]
attr_accessor :password
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
# Whether the scheduled fetch is paused or not.
# Corresponds to the JSON property `paused`
# @return [Boolean]
attr_accessor :paused
alias_method :paused?, :paused
2015-06-23 23:05:46 +00:00
# Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
# Corresponds to the JSON property `timeZone`
# @return [String]
attr_accessor :time_zone
# An optional user name for fetch_url.
# Corresponds to the JSON property `username`
# @return [String]
attr_accessor :username
# The day of the week the feed file should be fetched.
# Corresponds to the JSON property `weekday`
# @return [String]
attr_accessor :weekday
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@day_of_month = args[:day_of_month] if args.key?(:day_of_month)
@fetch_url = args[:fetch_url] if args.key?(:fetch_url)
@hour = args[:hour] if args.key?(:hour)
2016-03-11 22:41:20 +00:00
@minute_of_hour = args[:minute_of_hour] if args.key?(:minute_of_hour)
2016-01-29 22:32:46 +00:00
@password = args[:password] if args.key?(:password)
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
@paused = args[:paused] if args.key?(:paused)
2016-01-29 22:32:46 +00:00
@time_zone = args[:time_zone] if args.key?(:time_zone)
@username = args[:username] if args.key?(:username)
@weekday = args[:weekday] if args.key?(:weekday)
2015-06-23 23:05:46 +00:00
end
end
#
class DatafeedFormat
include Google::Apis::Core::Hashable
# Delimiter for the separation of values in a delimiter-separated values feed.
# If not specified, the delimiter will be auto-detected. Ignored for non-DSV
# data feeds.
# Corresponds to the JSON property `columnDelimiter`
# @return [String]
attr_accessor :column_delimiter
# Character encoding scheme of the data feed. If not specified, the encoding
# will be auto-detected.
# Corresponds to the JSON property `fileEncoding`
# @return [String]
attr_accessor :file_encoding
# Specifies how double quotes are interpreted. If not specified, the mode will
# be auto-detected. Ignored for non-DSV data feeds.
# Corresponds to the JSON property `quotingMode`
# @return [String]
attr_accessor :quoting_mode
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@column_delimiter = args[:column_delimiter] if args.key?(:column_delimiter)
@file_encoding = args[:file_encoding] if args.key?(:file_encoding)
@quoting_mode = args[:quoting_mode] if args.key?(:quoting_mode)
2015-06-23 23:05:46 +00:00
end
end
# The status of a datafeed, i.e., the result of the last retrieval of the
# datafeed computed asynchronously when the feed processing is finished.
class DatafeedStatus
include Google::Apis::Core::Hashable
# The country for which the status is reported, represented as a CLDR territory
# code.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
2015-06-23 23:05:46 +00:00
# The ID of the feed for which the status is reported.
# Corresponds to the JSON property `datafeedId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :datafeed_id
# The list of errors occurring in the feed.
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::ContentV2::DatafeedStatusError>]
attr_accessor :errors
# The number of items in the feed that were processed.
# Corresponds to the JSON property `itemsTotal`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :items_total
# The number of items in the feed that were valid.
# Corresponds to the JSON property `itemsValid`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :items_valid
# Identifies what kind of resource this is. Value: the fixed string "content#
# datafeedStatus".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The two-letter ISO 639-1 language for which the status is reported.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
2015-06-23 23:05:46 +00:00
# The last date at which the feed was uploaded.
# Corresponds to the JSON property `lastUploadDate`
# @return [String]
attr_accessor :last_upload_date
# The processing status of the feed.
# Corresponds to the JSON property `processingStatus`
# @return [String]
attr_accessor :processing_status
# The list of errors occurring in the feed.
# Corresponds to the JSON property `warnings`
# @return [Array<Google::Apis::ContentV2::DatafeedStatusError>]
attr_accessor :warnings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
2016-01-29 22:32:46 +00:00
@datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
@errors = args[:errors] if args.key?(:errors)
@items_total = args[:items_total] if args.key?(:items_total)
@items_valid = args[:items_valid] if args.key?(:items_valid)
@kind = args[:kind] if args.key?(:kind)
@language = args[:language] if args.key?(:language)
2016-01-29 22:32:46 +00:00
@last_upload_date = args[:last_upload_date] if args.key?(:last_upload_date)
@processing_status = args[:processing_status] if args.key?(:processing_status)
@warnings = args[:warnings] if args.key?(:warnings)
2015-06-23 23:05:46 +00:00
end
end
# An error occurring in the feed, like "invalid price".
class DatafeedStatusError
include Google::Apis::Core::Hashable
# The code of the error, e.g., "validation/invalid_value".
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# The number of occurrences of the error in the feed.
# Corresponds to the JSON property `count`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :count
# A list of example occurrences of the error, grouped by product.
# Corresponds to the JSON property `examples`
# @return [Array<Google::Apis::ContentV2::DatafeedStatusExample>]
attr_accessor :examples
# The error message, e.g., "Invalid price".
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@code = args[:code] if args.key?(:code)
@count = args[:count] if args.key?(:count)
@examples = args[:examples] if args.key?(:examples)
@message = args[:message] if args.key?(:message)
2015-06-23 23:05:46 +00:00
end
end
# An example occurrence for a particular error.
class DatafeedStatusExample
include Google::Apis::Core::Hashable
# The ID of the example item.
# Corresponds to the JSON property `itemId`
# @return [String]
attr_accessor :item_id
# Line number in the data feed where the example is found.
# Corresponds to the JSON property `lineNumber`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :line_number
# The problematic value.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@item_id = args[:item_id] if args.key?(:item_id)
@line_number = args[:line_number] if args.key?(:line_number)
@value = args[:value] if args.key?(:value)
2015-06-23 23:05:46 +00:00
end
end
#
class DatafeedTarget
include Google::Apis::Core::Hashable
# The country where the items in the feed will be included in the search index,
# represented as a CLDR territory code.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# The list of destinations to exclude for this target (corresponds to unchecked
# check boxes in Merchant Center).
# Corresponds to the JSON property `excludedDestinations`
# @return [Array<String>]
attr_accessor :excluded_destinations
# The list of destinations to include for this target (corresponds to checked
# check boxes in Merchant Center). Default destinations are always included
# unless provided in the excluded_destination field.
# Corresponds to the JSON property `includedDestinations`
# @return [Array<String>]
attr_accessor :included_destinations
# The two-letter ISO 639-1 language of the items in the feed. Must be a valid
# language for targets[].country.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@excluded_destinations = args[:excluded_destinations] if args.key?(:excluded_destinations)
@included_destinations = args[:included_destinations] if args.key?(:included_destinations)
@language = args[:language] if args.key?(:language)
end
end
2015-06-23 23:05:46 +00:00
#
class BatchDatafeedsRequest
2015-06-23 23:05:46 +00:00
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::DatafeedsBatchRequestEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch datafeeds request.
class DatafeedsBatchRequestEntry
2015-06-23 23:05:46 +00:00
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
# Datafeed configuration data.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `datafeed`
# @return [Google::Apis::ContentV2::Datafeed]
attr_accessor :datafeed
# The ID of the data feed to get, delete or fetch.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `datafeedId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :datafeed_id
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :request_method
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@datafeed = args[:datafeed] if args.key?(:datafeed)
@datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@request_method = args[:request_method] if args.key?(:request_method)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchDatafeedsResponse
2015-06-23 23:05:46 +00:00
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::DatafeedsBatchResponseEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# datafeedsCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch datafeeds response.
class DatafeedsBatchResponseEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
# Datafeed configuration data.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `datafeed`
# @return [Google::Apis::ContentV2::Datafeed]
attr_accessor :datafeed
# A list of errors returned by a failed batch entry.
# Corresponds to the JSON property `errors`
# @return [Google::Apis::ContentV2::Errors]
attr_accessor :errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@datafeed = args[:datafeed] if args.key?(:datafeed)
@errors = args[:errors] if args.key?(:errors)
2015-06-23 23:05:46 +00:00
end
end
#
class ListDatafeedsResponse
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# datafeedsListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of datafeeds.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ContentV2::Datafeed>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@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)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchDatafeedStatusesRequest
2015-06-23 23:05:46 +00:00
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::DatafeedStatusesBatchRequestEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch datafeedstatuses request.
class DatafeedStatusesBatchRequestEntry
2015-06-23 23:05:46 +00:00
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 country for which to get the datafeed status. If this parameter is
# provided then language must also be provided. Note that for multi-target
# datafeeds this parameter is required.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# The ID of the data feed to get.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `datafeedId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :datafeed_id
# The language for which to get the datafeed status. If this parameter is
# provided then country must also be provided. Note that for multi-target
# datafeeds this parameter is required.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
2015-06-23 23:05:46 +00:00
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :request_method
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@country = args[:country] if args.key?(:country)
2016-01-29 22:32:46 +00:00
@datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
@language = args[:language] if args.key?(:language)
2016-01-29 22:32:46 +00:00
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@request_method = args[:request_method] if args.key?(:request_method)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchDatafeedStatusesResponse
2015-06-23 23:05:46 +00:00
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::DatafeedStatusesBatchResponseEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# datafeedstatusesCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch datafeedstatuses response.
class DatafeedStatusesBatchResponseEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
# The status of a datafeed, i.e., the result of the last retrieval of the
# datafeed computed asynchronously when the feed processing is finished.
# Corresponds to the JSON property `datafeedStatus`
# @return [Google::Apis::ContentV2::DatafeedStatus]
attr_accessor :datafeed_status
# A list of errors returned by a failed batch entry.
# Corresponds to the JSON property `errors`
# @return [Google::Apis::ContentV2::Errors]
attr_accessor :errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@datafeed_status = args[:datafeed_status] if args.key?(:datafeed_status)
@errors = args[:errors] if args.key?(:errors)
2015-06-23 23:05:46 +00:00
end
end
#
class ListDatafeedStatusesResponse
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# datafeedstatusesListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of datafeed statuses.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ContentV2::DatafeedStatus>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@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)
2015-06-23 23:05:46 +00:00
end
end
2016-08-15 17:54:44 +00:00
#
class DeliveryTime
include Google::Apis::Core::Hashable
# Holiday cutoff definitions. If configured, they specify order cutoff times for
# holiday-specific shipping.
# Corresponds to the JSON property `holidayCutoffs`
# @return [Array<Google::Apis::ContentV2::HolidayCutoff>]
attr_accessor :holiday_cutoffs
2016-08-15 17:54:44 +00:00
# Maximum number of business days that is spent in transit. 0 means same day
# delivery, 1 means next day delivery. Must be greater than or equal to
# minTransitTimeInDays. Required.
# Corresponds to the JSON property `maxTransitTimeInDays`
# @return [Fixnum]
attr_accessor :max_transit_time_in_days
# Minimum number of business days that is spent in transit. 0 means same day
# delivery, 1 means next day delivery. Required.
# Corresponds to the JSON property `minTransitTimeInDays`
# @return [Fixnum]
attr_accessor :min_transit_time_in_days
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@holiday_cutoffs = args[:holiday_cutoffs] if args.key?(:holiday_cutoffs)
2016-08-15 17:54:44 +00:00
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
end
end
2015-06-23 23:05:46 +00:00
# An error returned by the API.
class Error
include Google::Apis::Core::Hashable
# The domain of the error.
# Corresponds to the JSON property `domain`
# @return [String]
attr_accessor :domain
# A description of the error.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# The error code.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@domain = args[:domain] if args.key?(:domain)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
2015-06-23 23:05:46 +00:00
end
end
# A list of errors returned by a failed batch entry.
class Errors
include Google::Apis::Core::Hashable
# The HTTP status of the first error in errors.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A list of errors.
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::ContentV2::Error>]
attr_accessor :errors
# The message of the first error in errors.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@code = args[:code] if args.key?(:code)
@errors = args[:errors] if args.key?(:errors)
@message = args[:message] if args.key?(:message)
2015-06-23 23:05:46 +00:00
end
end
2016-08-15 17:54:44 +00:00
# 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
# A list of location ID sets. Must be non-empty. Can only be set if all other
# fields are not set.
# Corresponds to the JSON property `locations`
# @return [Array<Google::Apis::ContentV2::LocationIdSet>]
attr_accessor :locations
# A list of inclusive number of items upper bounds. The last value can be "
# infinity". For example ["10", "50", "infinity"] represents the headers "<= 10
# items", " 50 items". Must be non-empty. Can only be set if all other fields
# are not set.
# Corresponds to the JSON property `numberOfItems`
# @return [Array<String>]
attr_accessor :number_of_items
# A list of postal group names. The last value can be "all other locations".
# Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code
# groups must match the delivery country of the service. Must be non-empty. Can
# only be set if all other fields are not set.
# Corresponds to the JSON property `postalCodeGroupNames`
# @return [Array<String>]
attr_accessor :postal_code_group_names
# A list of inclusive order price upper bounds. The last price's value can be "
# infinity". For example [`"value": "10", "currency": "USD"`, `"value": "500", "
# currency": "USD"`, `"value": "infinity", "currency": "USD"`] represents the
2016-08-15 17:54:44 +00:00
# headers "<= $10", " $500". All prices within a service must have the same
# currency. Must be non-empty. Can only be set if all other fields are not set.
# Corresponds to the JSON property `prices`
# @return [Array<Google::Apis::ContentV2::Price>]
attr_accessor :prices
# A list of inclusive order weight upper bounds. The last weight's value can be "
# infinity". For example [`"value": "10", "unit": "kg"`, `"value": "50", "unit":
# "kg"`, `"value": "infinity", "unit": "kg"`] represents the headers "<= 10kg", "
# 50kg". All weights within a service must have the same unit. Must be non-
# empty. Can only be set if all other fields are not set.
2016-08-15 17:54:44 +00:00
# Corresponds to the JSON property `weights`
# @return [Array<Google::Apis::ContentV2::Weight>]
attr_accessor :weights
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@locations = args[:locations] if args.key?(:locations)
@number_of_items = args[:number_of_items] if args.key?(:number_of_items)
@postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names)
@prices = args[:prices] if args.key?(:prices)
@weights = args[:weights] if args.key?(:weights)
end
end
#
class HolidayCutoff
include Google::Apis::Core::Hashable
# Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th
# November 2016. Required.
# Corresponds to the JSON property `deadlineDate`
# @return [String]
attr_accessor :deadline_date
# Hour of the day on the deadline date until which the order has to be placed to
# qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ...,
# 12 (noon), 13, ..., 23. Required.
# Corresponds to the JSON property `deadlineHour`
# @return [Fixnum]
attr_accessor :deadline_hour
# Timezone identifier for the deadline hour. A list of identifiers can be found
# in the AdWords API documentation. E.g. "Europe/Zurich". Required.
# Corresponds to the JSON property `deadlineTimezone`
# @return [String]
attr_accessor :deadline_timezone
# Unique identifier for the holiday. Required.
# Corresponds to the JSON property `holidayId`
# @return [String]
attr_accessor :holiday_id
# Date on which the deadline will become visible to consumers in ISO 8601 format.
# E.g. "2016-10-31" for 31st October 2016. Required.
# Corresponds to the JSON property `visibleFromDate`
# @return [String]
attr_accessor :visible_from_date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deadline_date = args[:deadline_date] if args.key?(:deadline_date)
@deadline_hour = args[:deadline_hour] if args.key?(:deadline_hour)
@deadline_timezone = args[:deadline_timezone] if args.key?(:deadline_timezone)
@holiday_id = args[:holiday_id] if args.key?(:holiday_id)
@visible_from_date = args[:visible_from_date] if args.key?(:visible_from_date)
end
end
#
class HolidaysHoliday
include Google::Apis::Core::Hashable
# The CLDR territory code of the country in which the holiday is available. E.g.
# "US", "DE", "GB". A holiday cutoff can only be configured in a shipping
# settings service with matching delivery country. Always present.
# Corresponds to the JSON property `countryCode`
# @return [String]
attr_accessor :country_code
# Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for Christmas 2016.
# Always present.
# Corresponds to the JSON property `date`
# @return [String]
attr_accessor :date
# Date on which the order has to arrive at the customer's, in ISO 8601 format. E.
# g. "2016-12-24" for 24th December 2016. Always present.
# Corresponds to the JSON property `deliveryGuaranteeDate`
# @return [String]
attr_accessor :delivery_guarantee_date
# Hour of the day in the delivery location's timezone on the guaranteed delivery
# date by which the order has to arrive at the customer's. Possible values are:
# 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Always present.
# Corresponds to the JSON property `deliveryGuaranteeHour`
# @return [Fixnum]
attr_accessor :delivery_guarantee_hour
# Unique identifier for the holiday to be used when configuring holiday cutoffs.
# Always present.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The holiday type. Always present.
# 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)
@country_code = args[:country_code] if args.key?(:country_code)
@date = args[:date] if args.key?(:date)
@delivery_guarantee_date = args[:delivery_guarantee_date] if args.key?(:delivery_guarantee_date)
@delivery_guarantee_hour = args[:delivery_guarantee_hour] if args.key?(:delivery_guarantee_hour)
@id = args[:id] if args.key?(:id)
@type = args[:type] if args.key?(:type)
end
end
2015-12-03 01:10:07 +00:00
#
class Installment
include Google::Apis::Core::Hashable
# The amount the buyer has to pay per month.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# The number of installments the buyer has to pay.
# Corresponds to the JSON property `months`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-12-03 01:10:07 +00:00
attr_accessor :months
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@amount = args[:amount] if args.key?(:amount)
@months = args[:months] if args.key?(:months)
2015-12-03 01:10:07 +00:00
end
end
2015-06-23 23:05:46 +00:00
#
class Inventory
include Google::Apis::Core::Hashable
# The availability of the product.
# Corresponds to the JSON property `availability`
# @return [String]
attr_accessor :availability
2015-12-03 01:10:07 +00:00
# Number and amount of installments to pay for an item. Brazil only.
# Corresponds to the JSON property `installment`
# @return [Google::Apis::ContentV2::Installment]
attr_accessor :installment
2015-06-23 23:05:46 +00:00
# Identifies what kind of resource this is. Value: the fixed string "content#
# inventory".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
2015-12-03 01:10:07 +00:00
# Loyalty points that users receive after purchasing the item. Japan only.
# Corresponds to the JSON property `loyaltyPoints`
# @return [Google::Apis::ContentV2::LoyaltyPoints]
attr_accessor :loyalty_points
2016-11-08 23:43:14 +00:00
# Store pickup information. Only supported for local inventory. Not setting
# pickup means "don't update" while setting it to the empty value (`` in JSON)
# means "delete". Otherwise, pickupMethod and pickupSla must be set together,
# unless pickupMethod is "not supported".
# Corresponds to the JSON property `pickup`
# @return [Google::Apis::ContentV2::InventoryPickup]
attr_accessor :pickup
2015-06-23 23:05:46 +00:00
# The price of the product.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :price
# The quantity of the product. Must be equal to or greater than zero. Supported
# only for local products.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The sale price of the product. Mandatory if sale_price_effective_date is
# defined.
# Corresponds to the JSON property `salePrice`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :sale_price
# A date range represented by a pair of ISO 8601 dates separated by a space,
# comma, or slash. Both dates might be specified as 'null' if undecided.
# Corresponds to the JSON property `salePriceEffectiveDate`
# @return [String]
attr_accessor :sale_price_effective_date
2015-07-31 00:05:47 +00:00
# The quantity of the product that is reserved for sell-on-google ads. Supported
# only for online products.
# Corresponds to the JSON property `sellOnGoogleQuantity`
# @return [Fixnum]
attr_accessor :sell_on_google_quantity
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@availability = args[:availability] if args.key?(:availability)
@installment = args[:installment] if args.key?(:installment)
@kind = args[:kind] if args.key?(:kind)
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
2016-11-08 23:43:14 +00:00
@pickup = args[:pickup] if args.key?(:pickup)
2016-01-29 22:32:46 +00:00
@price = args[:price] if args.key?(:price)
@quantity = args[:quantity] if args.key?(:quantity)
@sale_price = args[:sale_price] if args.key?(:sale_price)
@sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
@sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchInventoryRequest
2015-06-23 23:05:46 +00:00
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::InventoryBatchRequestEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch inventory request.
class InventoryBatchRequestEntry
2015-06-23 23:05:46 +00:00
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
# Price and availability of the product.
# Corresponds to the JSON property `inventory`
# @return [Google::Apis::ContentV2::Inventory]
attr_accessor :inventory
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
# The ID of the product for which to update price and availability.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The code of the store for which to update price and availability. Use online
# to update price and availability of an online product.
# 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)
2016-01-29 22:32:46 +00:00
@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)
@product_id = args[:product_id] if args.key?(:product_id)
@store_code = args[:store_code] if args.key?(:store_code)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchInventoryResponse
2015-06-23 23:05:46 +00:00
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::InventoryBatchResponseEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# inventoryCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch inventory response.
class InventoryBatchResponseEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
# 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
# Identifies what kind of resource this is. Value: the fixed string "content#
# inventoryCustomBatchResponseEntry".
# 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)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
2016-11-08 23:43:14 +00:00
#
class InventoryPickup
include Google::Apis::Core::Hashable
# Whether store pickup is available for this offer and whether the pickup option
# should be shown as buy, reserve, or not supported. Only supported for local
# inventory. Unless the value is "not supported", must be submitted together
# with pickupSla.
# Corresponds to the JSON property `pickupMethod`
# @return [String]
attr_accessor :pickup_method
# The expected date that an order will be ready for pickup, relative to when the
# order is placed. Only supported for local inventory. Must be submitted
# together with pickupMethod.
# Corresponds to the JSON property `pickupSla`
# @return [String]
attr_accessor :pickup_sla
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@pickup_method = args[:pickup_method] if args.key?(:pickup_method)
@pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
end
end
2015-06-23 23:05:46 +00:00
#
class SetInventoryRequest
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The availability of the product.
# Corresponds to the JSON property `availability`
# @return [String]
attr_accessor :availability
2015-12-03 01:10:07 +00:00
# Number and amount of installments to pay for an item. Brazil only.
# Corresponds to the JSON property `installment`
# @return [Google::Apis::ContentV2::Installment]
attr_accessor :installment
# Loyalty points that users receive after purchasing the item. Japan only.
# Corresponds to the JSON property `loyaltyPoints`
# @return [Google::Apis::ContentV2::LoyaltyPoints]
attr_accessor :loyalty_points
2016-11-08 23:43:14 +00:00
# Store pickup information. Only supported for local inventory. Not setting
# pickup means "don't update" while setting it to the empty value (`` in JSON)
# means "delete". Otherwise, pickupMethod and pickupSla must be set together,
# unless pickupMethod is "not supported".
# Corresponds to the JSON property `pickup`
# @return [Google::Apis::ContentV2::InventoryPickup]
attr_accessor :pickup
2015-06-23 23:05:46 +00:00
# The price of the product.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :price
# The quantity of the product. Must be equal to or greater than zero. Supported
# only for local products.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The sale price of the product. Mandatory if sale_price_effective_date is
# defined.
# Corresponds to the JSON property `salePrice`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :sale_price
# A date range represented by a pair of ISO 8601 dates separated by a space,
# comma, or slash. Both dates might be specified as 'null' if undecided.
# Corresponds to the JSON property `salePriceEffectiveDate`
# @return [String]
attr_accessor :sale_price_effective_date
2015-07-31 00:05:47 +00:00
# The quantity of the product that is reserved for sell-on-google ads. Supported
# only for online products.
# Corresponds to the JSON property `sellOnGoogleQuantity`
# @return [Fixnum]
attr_accessor :sell_on_google_quantity
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@availability = args[:availability] if args.key?(:availability)
@installment = args[:installment] if args.key?(:installment)
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
2016-11-08 23:43:14 +00:00
@pickup = args[:pickup] if args.key?(:pickup)
2016-01-29 22:32:46 +00:00
@price = args[:price] if args.key?(:price)
@quantity = args[:quantity] if args.key?(:quantity)
@sale_price = args[:sale_price] if args.key?(:sale_price)
@sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
@sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
2015-12-03 01:10:07 +00:00
end
end
#
class SetInventoryResponse
2015-12-03 01:10:07 +00:00
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# inventorySetResponse".
# 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)
2016-01-29 22:32:46 +00:00
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
2016-08-15 17:54:44 +00:00
#
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).
# Corresponds to the JSON property `locationIds`
# @return [Array<String>]
attr_accessor :location_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@location_ids = args[:location_ids] if args.key?(:location_ids)
end
end
2015-12-03 01:10:07 +00:00
#
class LoyaltyPoints
include Google::Apis::Core::Hashable
# Name of loyalty points program. It is recommended to limit the name to 12 full-
# width characters or 24 Roman characters.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The retailer's loyalty points in absolute value.
# Corresponds to the JSON property `pointsValue`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-12-03 01:10:07 +00:00
attr_accessor :points_value
# The ratio of a point when converted to currency. Google assumes currency based
# on Merchant Center settings. If ratio is left out, it defaults to 1.0.
# Corresponds to the JSON property `ratio`
# @return [Float]
attr_accessor :ratio
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@name = args[:name] if args.key?(:name)
@points_value = args[:points_value] if args.key?(:points_value)
@ratio = args[:ratio] if args.key?(:ratio)
2015-12-03 01:10:07 +00:00
end
end
#
class Order
include Google::Apis::Core::Hashable
# Whether the order was acknowledged.
# Corresponds to the JSON property `acknowledged`
# @return [Boolean]
attr_accessor :acknowledged
alias_method :acknowledged?, :acknowledged
2016-09-19 21:24:23 +00:00
# The channel type of the order: "purchaseOnGoogle" or "googleExpress".
# Corresponds to the JSON property `channelType`
# @return [String]
attr_accessor :channel_type
2015-12-03 01:10:07 +00:00
# The details of the customer who placed the order.
# Corresponds to the JSON property `customer`
# @return [Google::Apis::ContentV2::OrderCustomer]
attr_accessor :customer
# The details for the delivery.
# Corresponds to the JSON property `deliveryDetails`
# @return [Google::Apis::ContentV2::OrderDeliveryDetails]
attr_accessor :delivery_details
# The REST id of the order. Globally unique.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "content#
# order".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Line items that are ordered.
# Corresponds to the JSON property `lineItems`
# @return [Array<Google::Apis::ContentV2::OrderLineItem>]
attr_accessor :line_items
#
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-12-03 01:10:07 +00:00
attr_accessor :merchant_id
# Merchant-provided id of the order.
# Corresponds to the JSON property `merchantOrderId`
# @return [String]
attr_accessor :merchant_order_id
# The net amount for the order. For example, if an order was originally for a
# grand total of $100 and a refund was issued for $20, the net amount will be $
# 80.
# Corresponds to the JSON property `netAmount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :net_amount
# The details of the payment method.
# Corresponds to the JSON property `paymentMethod`
# @return [Google::Apis::ContentV2::OrderPaymentMethod]
attr_accessor :payment_method
# The status of the payment.
# Corresponds to the JSON property `paymentStatus`
# @return [String]
attr_accessor :payment_status
# The date when the order was placed, in ISO 8601 format.
# Corresponds to the JSON property `placedDate`
# @return [String]
attr_accessor :placed_date
2016-02-10 21:57:13 +00:00
# The details of the merchant provided promotions applied to the order. More
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
# details about the program are here.
2016-02-10 21:57:13 +00:00
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2::OrderPromotion>]
attr_accessor :promotions
2015-12-03 01:10:07 +00:00
# Refunds for the order.
# Corresponds to the JSON property `refunds`
# @return [Array<Google::Apis::ContentV2::OrderRefund>]
attr_accessor :refunds
# Shipments of the order.
# Corresponds to the JSON property `shipments`
# @return [Array<Google::Apis::ContentV2::OrderShipment>]
attr_accessor :shipments
# The total cost of shipping for all items.
# Corresponds to the JSON property `shippingCost`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :shipping_cost
# The tax for the total shipping cost.
# Corresponds to the JSON property `shippingCostTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :shipping_cost_tax
# The requested shipping option.
# Corresponds to the JSON property `shippingOption`
# @return [String]
attr_accessor :shipping_option
# The status of the order.
# 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)
2016-01-29 22:32:46 +00:00
@acknowledged = args[:acknowledged] if args.key?(:acknowledged)
2016-09-19 21:24:23 +00:00
@channel_type = args[:channel_type] if args.key?(:channel_type)
2016-01-29 22:32:46 +00:00
@customer = args[:customer] if args.key?(:customer)
@delivery_details = args[:delivery_details] if args.key?(:delivery_details)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@line_items = args[:line_items] if args.key?(:line_items)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
@net_amount = args[:net_amount] if args.key?(:net_amount)
@payment_method = args[:payment_method] if args.key?(:payment_method)
@payment_status = args[:payment_status] if args.key?(:payment_status)
@placed_date = args[:placed_date] if args.key?(:placed_date)
2016-02-10 21:57:13 +00:00
@promotions = args[:promotions] if args.key?(:promotions)
2016-01-29 22:32:46 +00:00
@refunds = args[:refunds] if args.key?(:refunds)
@shipments = args[:shipments] if args.key?(:shipments)
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
@shipping_option = args[:shipping_option] if args.key?(:shipping_option)
@status = args[:status] if args.key?(:status)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderAddress
include Google::Apis::Core::Hashable
# CLDR country code (e.g. "US").
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# Strings representing the lines of the printed label for mailing the order, for
# example:
# John Smith
# 1600 Amphitheatre Parkway
# Mountain View, CA, 94043
# United States
# Corresponds to the JSON property `fullAddress`
# @return [Array<String>]
attr_accessor :full_address
# Whether the address is a post office box.
# Corresponds to the JSON property `isPostOfficeBox`
# @return [Boolean]
attr_accessor :is_post_office_box
alias_method :is_post_office_box?, :is_post_office_box
# City, town or commune. May also include dependent localities or sublocalities (
# e.g. neighborhoods or suburbs).
# Corresponds to the JSON property `locality`
# @return [String]
attr_accessor :locality
# Postal Code or ZIP (e.g. "94043").
# Corresponds to the JSON property `postalCode`
# @return [String]
attr_accessor :postal_code
# Name of the recipient.
# Corresponds to the JSON property `recipientName`
# @return [String]
attr_accessor :recipient_name
# Top-level administrative subdivision of the country (e.g. "CA").
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# Street-level part of the address.
# Corresponds to the JSON property `streetAddress`
# @return [Array<String>]
attr_accessor :street_address
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@country = args[:country] if args.key?(:country)
@full_address = args[:full_address] if args.key?(:full_address)
@is_post_office_box = args[:is_post_office_box] if args.key?(:is_post_office_box)
@locality = args[:locality] if args.key?(:locality)
@postal_code = args[:postal_code] if args.key?(:postal_code)
@recipient_name = args[:recipient_name] if args.key?(:recipient_name)
@region = args[:region] if args.key?(:region)
@street_address = args[:street_address] if args.key?(:street_address)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderCancellation
include Google::Apis::Core::Hashable
# The actor that created the cancellation.
# Corresponds to the JSON property `actor`
# @return [String]
attr_accessor :actor
# Date on which the cancellation has been created, in ISO 8601 format.
# Corresponds to the JSON property `creationDate`
# @return [String]
attr_accessor :creation_date
# The quantity that was canceled.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
2016-08-08 20:25:38 +00:00
# The reason for the cancellation. Orders that are cancelled with a noInventory
# reason will lead to the removal of the product from POG until you make an
# update to that product. This will not affect your Shopping ads.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@actor = args[:actor] if args.key?(:actor)
@creation_date = args[:creation_date] if args.key?(:creation_date)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderCustomer
include Google::Apis::Core::Hashable
# Email address of the customer.
# 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
2015-12-03 01:10:07 +00:00
# marketing rights to the merchant. If unset, this indicates the user has
# already made this choice in a previous purchase, and was thus not shown the
2017-01-13 23:04:35 +00:00
# marketing right opt in/out checkbox during the checkout flow.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `explicitMarketingPreference`
# @return [Boolean]
attr_accessor :explicit_marketing_preference
alias_method :explicit_marketing_preference?, :explicit_marketing_preference
# Full name of the customer.
# Corresponds to the JSON property `fullName`
# @return [String]
attr_accessor :full_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@email = args[:email] if args.key?(:email)
@explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
@full_name = args[:full_name] if args.key?(:full_name)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderDeliveryDetails
include Google::Apis::Core::Hashable
# The delivery address
# Corresponds to the JSON property `address`
# @return [Google::Apis::ContentV2::OrderAddress]
attr_accessor :address
# The phone number of the person receiving the delivery.
# Corresponds to the JSON property `phoneNumber`
# @return [String]
attr_accessor :phone_number
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@address = args[:address] if args.key?(:address)
@phone_number = args[:phone_number] if args.key?(:phone_number)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderLineItem
include Google::Apis::Core::Hashable
# Annotations that are attached to the line item.
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::ContentV2::OrderMerchantProvidedAnnotation>]
attr_accessor :annotations
2015-12-03 01:10:07 +00:00
# Cancellations of the line item.
# Corresponds to the JSON property `cancellations`
# @return [Array<Google::Apis::ContentV2::OrderCancellation>]
attr_accessor :cancellations
# The id of the line item.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Total price for the line item. For example, if two items for $10 are purchased,
# the total price will be $20.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :price
# Product data from the time of the order placement.
# Corresponds to the JSON property `product`
# @return [Google::Apis::ContentV2::OrderLineItemProduct]
attr_accessor :product
# Number of items canceled.
# Corresponds to the JSON property `quantityCanceled`
# @return [Fixnum]
attr_accessor :quantity_canceled
# Number of items delivered.
# Corresponds to the JSON property `quantityDelivered`
# @return [Fixnum]
attr_accessor :quantity_delivered
# Number of items ordered.
# Corresponds to the JSON property `quantityOrdered`
# @return [Fixnum]
attr_accessor :quantity_ordered
# Number of items pending.
# Corresponds to the JSON property `quantityPending`
# @return [Fixnum]
attr_accessor :quantity_pending
# Number of items returned.
# Corresponds to the JSON property `quantityReturned`
# @return [Fixnum]
attr_accessor :quantity_returned
# Number of items shipped.
# Corresponds to the JSON property `quantityShipped`
# @return [Fixnum]
attr_accessor :quantity_shipped
# Details of the return policy for the line item.
# Corresponds to the JSON property `returnInfo`
# @return [Google::Apis::ContentV2::OrderLineItemReturnInfo]
attr_accessor :return_info
# Returns of the line item.
# Corresponds to the JSON property `returns`
# @return [Array<Google::Apis::ContentV2::OrderReturn>]
attr_accessor :returns
# Details of the requested shipping for the line item.
# Corresponds to the JSON property `shippingDetails`
# @return [Google::Apis::ContentV2::OrderLineItemShippingDetails]
attr_accessor :shipping_details
# Total tax amount for the line item. For example, if two items are purchased,
# and each have a cost tax of $2, the total tax amount will be $4.
# Corresponds to the JSON property `tax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :tax
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
2016-01-29 22:32:46 +00:00
@cancellations = args[:cancellations] if args.key?(:cancellations)
@id = args[:id] if args.key?(:id)
@price = args[:price] if args.key?(:price)
@product = args[:product] if args.key?(:product)
@quantity_canceled = args[:quantity_canceled] if args.key?(:quantity_canceled)
@quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered)
@quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered)
@quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending)
@quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned)
@quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped)
@return_info = args[:return_info] if args.key?(:return_info)
@returns = args[:returns] if args.key?(:returns)
@shipping_details = args[:shipping_details] if args.key?(:shipping_details)
@tax = args[:tax] if args.key?(:tax)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderLineItemProduct
include Google::Apis::Core::Hashable
# Brand of the item.
# Corresponds to the JSON property `brand`
# @return [String]
attr_accessor :brand
# The item's channel (online or local).
# Corresponds to the JSON property `channel`
# @return [String]
attr_accessor :channel
# Condition or state of the item.
# Corresponds to the JSON property `condition`
# @return [String]
attr_accessor :condition
# 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 (GTIN) of the item.
# Corresponds to the JSON property `gtin`
# @return [String]
attr_accessor :gtin
# The REST id of the product.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# URL of an image of the item.
# Corresponds to the JSON property `imageLink`
# @return [String]
attr_accessor :image_link
# Shared identifier for all variants of the same product.
# Corresponds to the JSON property `itemGroupId`
# @return [String]
attr_accessor :item_group_id
# Manufacturer Part Number (MPN) of the item.
# Corresponds to the JSON property `mpn`
# @return [String]
attr_accessor :mpn
# An identifier of the item.
# Corresponds to the JSON property `offerId`
# @return [String]
attr_accessor :offer_id
# Price of the item.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :price
# URL to the cached image shown to the user when order was placed.
# Corresponds to the JSON property `shownImage`
# @return [String]
attr_accessor :shown_image
# The CLDR territory code of the target country of the product.
# Corresponds to the JSON property `targetCountry`
# @return [String]
attr_accessor :target_country
# The title of the product.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# Variant attributes for the item. These are dimensions of the product, such as
# color, gender, material, pattern, and size. You can find a comprehensive list
# of variant attributes here.
# Corresponds to the JSON property `variantAttributes`
# @return [Array<Google::Apis::ContentV2::OrderLineItemProductVariantAttribute>]
attr_accessor :variant_attributes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@brand = args[:brand] if args.key?(:brand)
@channel = args[:channel] if args.key?(:channel)
@condition = args[:condition] if args.key?(:condition)
@content_language = args[:content_language] if args.key?(:content_language)
@gtin = args[:gtin] if args.key?(:gtin)
@id = args[:id] if args.key?(:id)
@image_link = args[:image_link] if args.key?(:image_link)
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
@mpn = args[:mpn] if args.key?(:mpn)
@offer_id = args[:offer_id] if args.key?(:offer_id)
@price = args[:price] if args.key?(:price)
@shown_image = args[:shown_image] if args.key?(:shown_image)
@target_country = args[:target_country] if args.key?(:target_country)
@title = args[:title] if args.key?(:title)
@variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderLineItemProductVariantAttribute
include Google::Apis::Core::Hashable
# The dimension of the variant.
# Corresponds to the JSON property `dimension`
# @return [String]
attr_accessor :dimension
# The value for the dimension.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@dimension = args[:dimension] if args.key?(:dimension)
@value = args[:value] if args.key?(:value)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderLineItemReturnInfo
include Google::Apis::Core::Hashable
# How many days later the item can be returned.
# Corresponds to the JSON property `daysToReturn`
# @return [Fixnum]
attr_accessor :days_to_return
# Whether the item is returnable.
# Corresponds to the JSON property `isReturnable`
# @return [Boolean]
attr_accessor :is_returnable
alias_method :is_returnable?, :is_returnable
# URL of the item return policy.
# Corresponds to the JSON property `policyUrl`
# @return [String]
attr_accessor :policy_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@days_to_return = args[:days_to_return] if args.key?(:days_to_return)
@is_returnable = args[:is_returnable] if args.key?(:is_returnable)
@policy_url = args[:policy_url] if args.key?(:policy_url)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderLineItemShippingDetails
include Google::Apis::Core::Hashable
# The delivery by date, in ISO 8601 format.
# Corresponds to the JSON property `deliverByDate`
# @return [String]
attr_accessor :deliver_by_date
# Details of the shipping method.
# Corresponds to the JSON property `method`
# @return [Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod]
attr_accessor :method_prop
# The ship by date, in ISO 8601 format.
# Corresponds to the JSON property `shipByDate`
# @return [String]
attr_accessor :ship_by_date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderLineItemShippingDetailsMethod
include Google::Apis::Core::Hashable
# The carrier for the shipping. Optional. See shipments[].carrier for a list of
# acceptable values.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
# Maximum transit time.
# Corresponds to the JSON property `maxDaysInTransit`
# @return [Fixnum]
attr_accessor :max_days_in_transit
# The name of the shipping method.
# Corresponds to the JSON property `methodName`
# @return [String]
attr_accessor :method_name
# Minimum transit time.
# Corresponds to the JSON property `minDaysInTransit`
# @return [Fixnum]
attr_accessor :min_days_in_transit
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@carrier = args[:carrier] if args.key?(:carrier)
@max_days_in_transit = args[:max_days_in_transit] if args.key?(:max_days_in_transit)
@method_name = args[:method_name] if args.key?(:method_name)
@min_days_in_transit = args[:min_days_in_transit] if args.key?(:min_days_in_transit)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderMerchantProvidedAnnotation
include Google::Apis::Core::Hashable
# Key for additional merchant provided (as key-value pairs) annotation about the
# line item.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Value for additional merchant provided (as key-value pairs) annotation about
# the line item.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
2015-12-03 01:10:07 +00:00
#
class OrderPaymentMethod
include Google::Apis::Core::Hashable
# The billing address.
# Corresponds to the JSON property `billingAddress`
# @return [Google::Apis::ContentV2::OrderAddress]
attr_accessor :billing_address
# The card expiration month (January = 1, February = 2 etc.).
# Corresponds to the JSON property `expirationMonth`
# @return [Fixnum]
attr_accessor :expiration_month
# The card expiration year (4-digit, e.g. 2015).
# Corresponds to the JSON property `expirationYear`
# @return [Fixnum]
attr_accessor :expiration_year
# The last four digits of the card number.
# Corresponds to the JSON property `lastFourDigits`
# @return [String]
attr_accessor :last_four_digits
# The billing phone number.
# Corresponds to the JSON property `phoneNumber`
# @return [String]
attr_accessor :phone_number
# The type of instrument.
# Acceptable values are:
# - "AMEX"
# - "DISCOVER"
# - "JCB"
# - "MASTERCARD"
# - "UNIONPAY"
# - "VISA"
# - ""
2015-12-03 01:10:07 +00:00
# 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)
2016-01-29 22:32:46 +00:00
@billing_address = args[:billing_address] if args.key?(:billing_address)
@expiration_month = args[:expiration_month] if args.key?(:expiration_month)
@expiration_year = args[:expiration_year] if args.key?(:expiration_year)
@last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits)
@phone_number = args[:phone_number] if args.key?(:phone_number)
@type = args[:type] if args.key?(:type)
2015-12-03 01:10:07 +00:00
end
end
2016-02-10 21:57:13 +00:00
#
class OrderPromotion
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `benefits`
# @return [Array<Google::Apis::ContentV2::OrderPromotionBenefit>]
attr_accessor :benefits
# The date and time frame when the promotion is active and ready for validation
# review. Note that the promotion live time may be delayed for a few hours due
# to the validation review.
# Start date and end date are separated by a forward slash (/). The start date
# is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
# of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
# expression of the time zone for the sale. The end date is in the same format.
# Corresponds to the JSON property `effectiveDates`
# @return [String]
attr_accessor :effective_dates
# Optional. The text code that corresponds to the promotion when applied on the
# retailer?s website.
# Corresponds to the JSON property `genericRedemptionCode`
# @return [String]
attr_accessor :generic_redemption_code
# The unique ID of the promotion.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The full title of the promotion.
# Corresponds to the JSON property `longTitle`
# @return [String]
attr_accessor :long_title
# Whether the promotion is applicable to all products or only specific products.
# Corresponds to the JSON property `productApplicability`
# @return [String]
attr_accessor :product_applicability
# Indicates that the promotion is valid online.
# Corresponds to the JSON property `redemptionChannel`
# @return [String]
attr_accessor :redemption_channel
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@benefits = args[:benefits] if args.key?(:benefits)
@effective_dates = args[:effective_dates] if args.key?(:effective_dates)
@generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
@id = args[:id] if args.key?(:id)
@long_title = args[:long_title] if args.key?(:long_title)
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
end
end
#
class OrderPromotionBenefit
include Google::Apis::Core::Hashable
# The discount in the order price when the promotion is applied.
# Corresponds to the JSON property `discount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :discount
# The OfferId(s) that were purchased in this order and map to this specific
# benefit of the promotion.
# Corresponds to the JSON property `offerIds`
# @return [Array<String>]
attr_accessor :offer_ids
# Further describes the benefit of the promotion. Note that we will expand on
# this enumeration as we support new promotion sub-types.
# Corresponds to the JSON property `subType`
# @return [String]
attr_accessor :sub_type
# The impact on tax when the promotion is applied.
# Corresponds to the JSON property `taxImpact`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :tax_impact
# Describes whether the promotion applies to products (e.g. 20% off) or to
# shipping (e.g. Free Shipping).
# 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)
@discount = args[:discount] if args.key?(:discount)
@offer_ids = args[:offer_ids] if args.key?(:offer_ids)
@sub_type = args[:sub_type] if args.key?(:sub_type)
@tax_impact = args[:tax_impact] if args.key?(:tax_impact)
@type = args[:type] if args.key?(:type)
end
end
2015-12-03 01:10:07 +00:00
#
class OrderRefund
include Google::Apis::Core::Hashable
# The actor that created the refund.
# Corresponds to the JSON property `actor`
# @return [String]
attr_accessor :actor
# The amount that is refunded.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# Date on which the item has been created, in ISO 8601 format.
# Corresponds to the JSON property `creationDate`
# @return [String]
attr_accessor :creation_date
# The reason for the refund.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@actor = args[:actor] if args.key?(:actor)
@amount = args[:amount] if args.key?(:amount)
@creation_date = args[:creation_date] if args.key?(:creation_date)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderReturn
include Google::Apis::Core::Hashable
# The actor that created the refund.
# Corresponds to the JSON property `actor`
# @return [String]
attr_accessor :actor
# Date on which the item has been created, in ISO 8601 format.
# Corresponds to the JSON property `creationDate`
# @return [String]
attr_accessor :creation_date
# Quantity that is returned.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@actor = args[:actor] if args.key?(:actor)
@creation_date = args[:creation_date] if args.key?(:creation_date)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderShipment
include Google::Apis::Core::Hashable
# The carrier handling the shipment.
# Acceptable values are:
# - "gsx"
# - "ups"
# - "usps"
# - "fedex"
# - "dhl"
# - "ecourier"
# - "cxt"
# - "google"
# - "ontrac"
# - "emsy"
# - "ont"
# - "deliv"
# - "dynamex"
# - "lasership"
# - "mpx"
# - "uds"
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
# Date on which the shipment has been created, in ISO 8601 format.
# Corresponds to the JSON property `creationDate`
# @return [String]
attr_accessor :creation_date
# Date on which the shipment has been delivered, in ISO 8601 format. Present
# only if status is delievered
# Corresponds to the JSON property `deliveryDate`
# @return [String]
attr_accessor :delivery_date
# The id of the shipment.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The line items that are shipped.
# Corresponds to the JSON property `lineItems`
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
attr_accessor :line_items
# The status of the shipment.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The tracking id for the shipment.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@carrier = args[:carrier] if args.key?(:carrier)
@creation_date = args[:creation_date] if args.key?(:creation_date)
@delivery_date = args[:delivery_date] if args.key?(:delivery_date)
@id = args[:id] if args.key?(:id)
@line_items = args[:line_items] if args.key?(:line_items)
@status = args[:status] if args.key?(:status)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
2015-12-03 01:10:07 +00:00
end
end
#
class OrderShipmentLineItemShipment
include Google::Apis::Core::Hashable
# The id of the line item that is shipped. Either lineItemId or productId is
# required.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to ship. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
2015-12-03 01:10:07 +00:00
# The quantity that is shipped.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
2016-01-29 22:32:46 +00:00
@quantity = args[:quantity] if args.key?(:quantity)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersAcknowledgeRequest
include Google::Apis::Core::Hashable
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@operation_id = args[:operation_id] if args.key?(:operation_id)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersAcknowledgeResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersAcknowledgeResponse".
# 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)
2016-01-29 22:32:46 +00:00
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersAdvanceTestOrderResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersAdvanceTestOrderResponse".
# 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)
2016-01-29 22:32:46 +00:00
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCancelLineItemRequest
include Google::Apis::Core::Hashable
2015-12-14 22:27:57 +00:00
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to cancellation amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to cancel. Either lineItemId or productId is required.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to cancel. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
2015-12-03 01:10:07 +00:00
# The quantity to cancel.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the cancellation.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@amount = args[:amount] if args.key?(:amount)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
2016-01-29 22:32:46 +00:00
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
2016-01-29 22:32:46 +00:00
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCancelLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersCancelLineItemResponse".
# 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)
2016-01-29 22:32:46 +00:00
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCancelRequest
include Google::Apis::Core::Hashable
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The reason for the cancellation.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@operation_id = args[:operation_id] if args.key?(:operation_id)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCancelResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersCancelResponse".
# 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)
2016-01-29 22:32:46 +00:00
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCreateTestOrderRequest
include Google::Apis::Core::Hashable
# The test order template to use. Specify as an alternative to testOrder as a
# shortcut for retrieving a template and then creating an order using that
# template.
# Corresponds to the JSON property `templateName`
# @return [String]
attr_accessor :template_name
# The test order to create.
# Corresponds to the JSON property `testOrder`
# @return [Google::Apis::ContentV2::TestOrder]
attr_accessor :test_order
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@template_name = args[:template_name] if args.key?(:template_name)
@test_order = args[:test_order] if args.key?(:test_order)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCreateTestOrderResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersCreateTestOrderResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The ID of the newly created test order.
# Corresponds to the JSON property `orderId`
# @return [String]
attr_accessor :order_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@kind = args[:kind] if args.key?(:kind)
@order_id = args[:order_id] if args.key?(:order_id)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchRequest
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::OrdersCustomBatchRequestEntry>]
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchRequestEntry
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
# Required for cancel method.
# Corresponds to the JSON property `cancel`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel]
attr_accessor :cancel
# Required for cancelLineItem method.
# Corresponds to the JSON property `cancelLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem]
attr_accessor :cancel_line_item
# Required for inStoreReturnLineItem method.
# Corresponds to the JSON property `inStoreRefundLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem]
attr_accessor :in_store_refund_line_item
2015-12-03 01:10:07 +00:00
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-12-03 01:10:07 +00:00
attr_accessor :merchant_id
# The merchant order id. Required for updateMerchantOrderId and
# getByMerchantOrderId methods.
# Corresponds to the JSON property `merchantOrderId`
# @return [String]
attr_accessor :merchant_order_id
# The method to apply.
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# The ID of the operation. Unique across all operations for a given order.
# Required for all methods beside get and getByMerchantOrderId.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the order. Required for all methods beside getByMerchantOrderId.
# Corresponds to the JSON property `orderId`
# @return [String]
attr_accessor :order_id
# Required for refund method.
# Corresponds to the JSON property `refund`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund]
attr_accessor :refund
# Required for rejectReturnLineItem method.
# Corresponds to the JSON property `rejectReturnLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem]
attr_accessor :reject_return_line_item
2015-12-03 01:10:07 +00:00
# Required for returnLineItem method.
# Corresponds to the JSON property `returnLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem]
attr_accessor :return_line_item
# Required for returnRefundLineItem method.
# Corresponds to the JSON property `returnRefundLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem]
attr_accessor :return_refund_line_item
# Required for setLineItemMetadata method.
# Corresponds to the JSON property `setLineItemMetadata`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata]
attr_accessor :set_line_item_metadata
2015-12-03 01:10:07 +00:00
# Required for shipLineItems method.
# Corresponds to the JSON property `shipLineItems`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems]
attr_accessor :ship_line_items
# Required for updateLineItemShippingDate method.
# Corresponds to the JSON property `updateLineItemShippingDetails`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails]
attr_accessor :update_line_item_shipping_details
2015-12-03 01:10:07 +00:00
# Required for updateShipment method.
# Corresponds to the JSON property `updateShipment`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment]
attr_accessor :update_shipment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@cancel = args[:cancel] if args.key?(:cancel)
@cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item)
@in_store_refund_line_item = args[:in_store_refund_line_item] if args.key?(:in_store_refund_line_item)
2016-01-29 22:32:46 +00:00
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@order_id = args[:order_id] if args.key?(:order_id)
@refund = args[:refund] if args.key?(:refund)
@reject_return_line_item = args[:reject_return_line_item] if args.key?(:reject_return_line_item)
2016-01-29 22:32:46 +00:00
@return_line_item = args[:return_line_item] if args.key?(:return_line_item)
@return_refund_line_item = args[:return_refund_line_item] if args.key?(:return_refund_line_item)
@set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata)
2016-01-29 22:32:46 +00:00
@ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
@update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
2016-01-29 22:32:46 +00:00
@update_shipment = args[:update_shipment] if args.key?(:update_shipment)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchRequestEntryCancel
include Google::Apis::Core::Hashable
# The reason for the cancellation.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchRequestEntryCancelLineItem
include Google::Apis::Core::Hashable
2015-12-14 22:27:57 +00:00
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to cancellation amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to cancel. Either lineItemId or productId is required.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to cancel. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
2015-12-03 01:10:07 +00:00
# The quantity to cancel.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the cancellation.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@amount = args[:amount] if args.key?(:amount)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
2016-01-29 22:32:46 +00:00
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
2016-01-29 22:32:46 +00:00
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
include Google::Apis::Core::Hashable
# The amount that is refunded. Required.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax. Required.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
2015-12-03 01:10:07 +00:00
#
class OrdersCustomBatchRequestEntryRefund
include Google::Apis::Core::Hashable
# The amount that is refunded.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# The amount that is refunded. Either amount or amountPretax and amountTax
# should be filled.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
2015-12-03 01:10:07 +00:00
# The reason for the refund.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@amount = args[:amount] if args.key?(:amount)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
2016-01-29 22:32:46 +00:00
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchRequestEntryRejectReturnLineItem
include Google::Apis::Core::Hashable
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
2015-12-03 01:10:07 +00:00
#
class OrdersCustomBatchRequestEntryReturnLineItem
include Google::Apis::Core::Hashable
# The ID of the line item to return. Either lineItemId or productId is required.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
2015-12-03 01:10:07 +00:00
# The quantity to return.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
2016-01-29 22:32:46 +00:00
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchRequestEntryReturnRefundLineItem
include Google::Apis::Core::Hashable
# The amount that is refunded. Optional, but if filled then both amountPretax
# and amountTax must be set.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersCustomBatchRequestEntrySetLineItemMetadata
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::ContentV2::OrderMerchantProvidedAnnotation>]
attr_accessor :annotations
# The ID of the line item to set metadata. Either lineItemId or productId is
# required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to set metadata. This is the REST ID used in the
# products service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
2015-12-03 01:10:07 +00:00
#
class OrdersCustomBatchRequestEntryShipLineItems
include Google::Apis::Core::Hashable
# Deprecated. Please use shipmentInfo instead. The carrier handling the shipment.
# See shipments[].carrier in the Orders resource representation for a list of
# acceptable values.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
# Line items to ship.
# Corresponds to the JSON property `lineItems`
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
attr_accessor :line_items
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# Shipment information. This field is repeated because a single line item can be
# shipped in several packages (and have several tracking IDs).
# Corresponds to the JSON property `shipmentInfos`
# @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]
attr_accessor :shipment_infos
# Deprecated. Please use shipmentInfo instead. The tracking id for the shipment.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end
end
#
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
include Google::Apis::Core::Hashable
# The carrier handling the shipment. See shipments[].carrier in the Orders
# resource representation for a list of acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
2015-12-03 01:10:07 +00:00
# The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# The tracking id for the shipment.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@carrier = args[:carrier] if args.key?(:carrier)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
include Google::Apis::Core::Hashable
# Updated delivery by date, in ISO 8601 format. If not specified only ship by
# date is updated.
# Corresponds to the JSON property `deliverByDate`
# @return [String]
attr_accessor :deliver_by_date
# The ID of the line item to set metadata. Either lineItemId or productId is
# required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to set metadata. This is the REST ID used in the
# products service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Updated ship by date, in ISO 8601 format. If not specified only deliver by
# date is updated.
# Corresponds to the JSON property `shipByDate`
# @return [String]
attr_accessor :ship_by_date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
end
end
2015-12-03 01:10:07 +00:00
#
class OrdersCustomBatchRequestEntryUpdateShipment
include Google::Apis::Core::Hashable
# The carrier handling the shipment. Not updated if missing. See shipments[].
# carrier in the Orders resource representation for a list of acceptable values.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
# The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# New status for the shipment. Not updated if missing.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The tracking id for the shipment. Not updated if missing.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@carrier = args[:carrier] if args.key?(:carrier)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@status = args[:status] if args.key?(:status)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchResponse
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::OrdersCustomBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersCustomBatchResponseEntry
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
# 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 status of the execution. Only defined if the method is not get or
# getByMerchantOrderId and if the request was successful.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersCustomBatchResponseEntry".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The retrieved order. Only defined if the method is get and if the request was
# successful.
# Corresponds to the JSON property `order`
# @return [Google::Apis::ContentV2::Order]
attr_accessor :order
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
@order = args[:order] if args.key?(:order)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersGetByMerchantOrderIdResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersGetByMerchantOrderIdResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The requested order.
# Corresponds to the JSON property `order`
# @return [Google::Apis::ContentV2::Order]
attr_accessor :order
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@kind = args[:kind] if args.key?(:kind)
@order = args[:order] if args.key?(:order)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersGetTestOrderTemplateResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersGetTestOrderTemplateResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The requested test order template.
# Corresponds to the JSON property `template`
# @return [Google::Apis::ContentV2::TestOrder]
attr_accessor :template
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@kind = args[:kind] if args.key?(:kind)
@template = args[:template] if args.key?(:template)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersInStoreRefundLineItemRequest
include Google::Apis::Core::Hashable
# The amount that is refunded. Required.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax. Required.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersInStoreRefundLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersInStoreRefundLineItemResponse".
# 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)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
2015-12-03 01:10:07 +00:00
#
class OrdersListResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of orders.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ContentV2::Order>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@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)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersRefundRequest
include Google::Apis::Core::Hashable
# The amount that is refunded.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# The amount that is refunded. Either amount or amountPretax and amountTax
# should be filled.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
2015-12-03 01:10:07 +00:00
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The reason for the refund.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@amount = args[:amount] if args.key?(:amount)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
2016-01-29 22:32:46 +00:00
@operation_id = args[:operation_id] if args.key?(:operation_id)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersRefundResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersRefundResponse".
# 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)
2016-01-29 22:32:46 +00:00
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersRejectReturnLineItemRequest
include Google::Apis::Core::Hashable
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersRejectReturnLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersRejectReturnLineItemResponse".
# 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)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
2015-12-03 01:10:07 +00:00
#
class OrdersReturnLineItemRequest
include Google::Apis::Core::Hashable
# The ID of the line item to return. Either lineItemId or productId is required.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
2015-12-03 01:10:07 +00:00
# The quantity to return.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
2016-01-29 22:32:46 +00:00
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersReturnLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersReturnLineItemResponse".
# 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)
2016-01-29 22:32:46 +00:00
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersReturnRefundLineItemRequest
include Google::Apis::Core::Hashable
# The amount that is refunded. Optional, but if filled then both amountPretax
# and amountTax must be set.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersReturnRefundLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersReturnRefundLineItemResponse".
# 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)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrdersSetLineItemMetadataRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::ContentV2::OrderMerchantProvidedAnnotation>]
attr_accessor :annotations
# The ID of the line item to set metadata. Either lineItemId or productId is
# required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to set metadata. This is the REST ID used in the
# products service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
#
class OrdersSetLineItemMetadataResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersSetLineItemMetadataResponse".
# 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)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
2015-12-03 01:10:07 +00:00
#
class OrdersShipLineItemsRequest
include Google::Apis::Core::Hashable
# Deprecated. Please use shipmentInfo instead. The carrier handling the shipment.
# See shipments[].carrier in the Orders resource representation for a list of
# acceptable values.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
# Line items to ship.
# Corresponds to the JSON property `lineItems`
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
attr_accessor :line_items
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# Shipment information. This field is repeated because a single line item can be
# shipped in several packages (and have several tracking IDs).
# Corresponds to the JSON property `shipmentInfos`
# @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]
attr_accessor :shipment_infos
# Deprecated. Please use shipmentInfo instead. The tracking id for the shipment.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
2016-01-29 22:32:46 +00:00
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersShipLineItemsResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersShipLineItemsResponse".
# 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)
2016-01-29 22:32:46 +00:00
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersUpdateLineItemShippingDetailsRequest
include Google::Apis::Core::Hashable
# Updated delivery by date, in ISO 8601 format. If not specified only ship by
# date is updated.
# Corresponds to the JSON property `deliverByDate`
# @return [String]
attr_accessor :deliver_by_date
# The ID of the line item to set metadata. Either lineItemId or productId is
# required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to set metadata. This is the REST ID used in the
# products service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Updated ship by date, in ISO 8601 format. If not specified only deliver by
# date is updated.
# Corresponds to the JSON property `shipByDate`
# @return [String]
attr_accessor :ship_by_date
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
end
end
#
class OrdersUpdateLineItemShippingDetailsResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersUpdateLineItemShippingDetailsResponse".
# 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)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
2015-12-03 01:10:07 +00:00
#
class OrdersUpdateMerchantOrderIdRequest
include Google::Apis::Core::Hashable
# The merchant order id to be assigned to the order. Must be unique per merchant.
# Corresponds to the JSON property `merchantOrderId`
# @return [String]
attr_accessor :merchant_order_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
2015-12-03 01:10:07 +00:00
end
end
#
class OrdersUpdateMerchantOrderIdResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersUpdateMerchantOrderIdResponse".
# 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)
2016-01-29 22:32:46 +00:00
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
#
2015-12-03 01:10:07 +00:00
class OrdersUpdateShipmentRequest
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The carrier handling the shipment. Not updated if missing. See shipments[].
# carrier in the Orders resource representation for a list of acceptable values.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `carrier`
2015-06-23 23:05:46 +00:00
# @return [String]
2015-12-03 01:10:07 +00:00
attr_accessor :carrier
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# New status for the shipment. Not updated if missing.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The tracking id for the shipment. Not updated if missing.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@carrier = args[:carrier] if args.key?(:carrier)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@status = args[:status] if args.key?(:status)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
2015-06-23 23:05:46 +00:00
end
end
#
2015-12-03 01:10:07 +00:00
class OrdersUpdateShipmentResponse
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
2015-12-03 01:10:07 +00:00
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
2015-06-23 23:05:46 +00:00
# @return [String]
2015-12-03 01:10:07 +00:00
attr_accessor :execution_status
2015-06-23 23:05:46 +00:00
2015-12-03 01:10:07 +00:00
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersUpdateShipmentResponse".
# Corresponds to the JSON property `kind`
2015-06-23 23:05:46 +00:00
# @return [String]
2015-12-03 01:10:07 +00:00
attr_accessor :kind
2015-06-23 23:05:46 +00:00
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
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.
# 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.
# 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.
# 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.
# 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.
# 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.
# 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
2016-08-15 17:54:44 +00:00
#
class PostalCodeGroup
include Google::Apis::Core::Hashable
# The CLDR territory code of the country the postal code group applies to.
# Required.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# The name of the postal code group, referred to in headers. Required.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A range of postal codes. Required.
# Corresponds to the JSON property `postalCodeRanges`
# @return [Array<Google::Apis::ContentV2::PostalCodeRange>]
attr_accessor :postal_code_ranges
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@name = args[:name] if args.key?(:name)
@postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges)
end
end
#
class PostalCodeRange
include Google::Apis::Core::Hashable
# A postal code or a pattern of the form prefix* denoting the inclusive lower
# bound of the range defining the area. Examples values: "94108", "9410*", "9*".
# Required.
# Corresponds to the JSON property `postalCodeRangeBegin`
# @return [String]
attr_accessor :postal_code_range_begin
# A postal code or a pattern of the form prefix* denoting the inclusive upper
# bound of the range defining the area. It must have the same length as
# postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
# postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a
# pattern then postalCodeRangeEnd must be a pattern with the same prefix length.
# Optional: if not set, then the area is defined as being all the postal codes
# matching postalCodeRangeBegin.
# Corresponds to the JSON property `postalCodeRangeEnd`
# @return [String]
attr_accessor :postal_code_range_end
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@postal_code_range_begin = args[:postal_code_range_begin] if args.key?(:postal_code_range_begin)
@postal_code_range_end = args[:postal_code_range_end] if args.key?(:postal_code_range_end)
end
end
2015-06-23 23:05:46 +00:00
#
class Price
include Google::Apis::Core::Hashable
# The currency of the price.
# Corresponds to the JSON property `currency`
# @return [String]
attr_accessor :currency
# The price represented as a number.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@currency = args[:currency] if args.key?(:currency)
@value = args[:value] if args.key?(:value)
2015-06-23 23:05:46 +00:00
end
end
# Product data.
class Product
include Google::Apis::Core::Hashable
# Additional URLs of images of the item.
# Corresponds to the JSON property `additionalImageLinks`
# @return [Array<String>]
attr_accessor :additional_image_links
2016-05-25 16:16:15 +00:00
# Additional categories of the item (formatted as in products feed specification)
# .
# Corresponds to the JSON property `additionalProductTypes`
# @return [Array<String>]
attr_accessor :additional_product_types
2015-06-23 23:05:46 +00:00
# Set to true if the item is targeted towards adults.
# Corresponds to the JSON property `adult`
# @return [Boolean]
attr_accessor :adult
alias_method :adult?, :adult
# Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
# Corresponds to the JSON property `adwordsGrouping`
# @return [String]
attr_accessor :adwords_grouping
# Similar to adwords_grouping, but only works on CPC.
# Corresponds to the JSON property `adwordsLabels`
# @return [Array<String>]
attr_accessor :adwords_labels
# Allows advertisers to override the item URL when the product is shown within
# the context of Product Ads.
# Corresponds to the JSON property `adwordsRedirect`
# @return [String]
attr_accessor :adwords_redirect
# Target age group of the item.
# Corresponds to the JSON property `ageGroup`
# @return [String]
attr_accessor :age_group
# Specifies the intended aspects for the product.
# Corresponds to the JSON property `aspects`
# @return [Array<Google::Apis::ContentV2::ProductAspect>]
attr_accessor :aspects
# Availability status of the item.
# Corresponds to the JSON property `availability`
# @return [String]
attr_accessor :availability
# The day a pre-ordered product becomes available for delivery, in ISO 8601
# format.
# Corresponds to the JSON property `availabilityDate`
# @return [String]
attr_accessor :availability_date
# Brand of the item.
# Corresponds to the JSON property `brand`
# @return [String]
attr_accessor :brand
# The item's channel (online or local).
# Corresponds to the JSON property `channel`
# @return [String]
attr_accessor :channel
# Color of the item.
# Corresponds to the JSON property `color`
# @return [String]
attr_accessor :color
# Condition or state of the item.
# Corresponds to the JSON property `condition`
# @return [String]
attr_accessor :condition
# The two-letter ISO 639-1 language code for the item.
# Corresponds to the JSON property `contentLanguage`
# @return [String]
attr_accessor :content_language
# A list of custom (merchant-provided) attributes. It can also be used for
# submitting any attribute of the feed specification in its generic form (e.g., `
# "name": "size type", "type": "text", "value": "regular" `). This is useful
# for submitting attributes not explicitly exposed by the API.
# Corresponds to the JSON property `customAttributes`
# @return [Array<Google::Apis::ContentV2::ProductCustomAttribute>]
attr_accessor :custom_attributes
# A list of custom (merchant-provided) custom attribute groups.
# Corresponds to the JSON property `customGroups`
# @return [Array<Google::Apis::ContentV2::ProductCustomGroup>]
attr_accessor :custom_groups
# Custom label 0 for custom grouping of items in a Shopping campaign.
# Corresponds to the JSON property `customLabel0`
# @return [String]
attr_accessor :custom_label0
# Custom label 1 for custom grouping of items in a Shopping campaign.
# Corresponds to the JSON property `customLabel1`
# @return [String]
attr_accessor :custom_label1
# Custom label 2 for custom grouping of items in a Shopping campaign.
# Corresponds to the JSON property `customLabel2`
# @return [String]
attr_accessor :custom_label2
# Custom label 3 for custom grouping of items in a Shopping campaign.
# Corresponds to the JSON property `customLabel3`
# @return [String]
attr_accessor :custom_label3
# Custom label 4 for custom grouping of items in a Shopping campaign.
# Corresponds to the JSON property `customLabel4`
# @return [String]
attr_accessor :custom_label4
# Description of the item.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Specifies the intended destinations for the product.
# Corresponds to the JSON property `destinations`
# @return [Array<Google::Apis::ContentV2::ProductDestination>]
attr_accessor :destinations
# An identifier for an item for dynamic remarketing campaigns.
# Corresponds to the JSON property `displayAdsId`
# @return [String]
attr_accessor :display_ads_id
# URL directly to your item's landing page for dynamic remarketing campaigns.
# Corresponds to the JSON property `displayAdsLink`
# @return [String]
attr_accessor :display_ads_link
# Advertiser-specified recommendations.
# Corresponds to the JSON property `displayAdsSimilarIds`
# @return [Array<String>]
attr_accessor :display_ads_similar_ids
# Title of an item for dynamic remarketing campaigns.
# Corresponds to the JSON property `displayAdsTitle`
# @return [String]
attr_accessor :display_ads_title
# Offer margin for dynamic remarketing campaigns.
# Corresponds to the JSON property `displayAdsValue`
# @return [Float]
attr_accessor :display_ads_value
# The energy efficiency class as defined in EU directive 2010/30/EU.
# Corresponds to the JSON property `energyEfficiencyClass`
# @return [String]
attr_accessor :energy_efficiency_class
# Date on which the item should expire, as specified upon insertion, in ISO 8601
# format. The actual expiration date in Google Shopping is exposed in
# productstatuses as googleExpirationDate and might be earlier if expirationDate
# is too far in the future.
# Corresponds to the JSON property `expirationDate`
# @return [String]
attr_accessor :expiration_date
# Target gender of the item.
# Corresponds to the JSON property `gender`
# @return [String]
attr_accessor :gender
# Google's category of the item (see Google product taxonomy).
# Corresponds to the JSON property `googleProductCategory`
# @return [String]
attr_accessor :google_product_category
# Global Trade Item Number (GTIN) of the item.
# Corresponds to the JSON property `gtin`
# @return [String]
attr_accessor :gtin
# The REST id of the product. Content API methods that operate on products take
# this as their productId parameter.
# The REST id for a product is of the form channel:contentLanguage:targetCountry:
# offerId.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# False when the item does not have unique product identifiers appropriate to
# its category, such as GTIN, MPN, and brand. Required according to the Unique
# Product Identifier Rules for all target countries except for Canada.
# Corresponds to the JSON property `identifierExists`
# @return [Boolean]
attr_accessor :identifier_exists
alias_method :identifier_exists?, :identifier_exists
# URL of an image of the item.
# Corresponds to the JSON property `imageLink`
# @return [String]
attr_accessor :image_link
# Number and amount of installments to pay for an item. Brazil only.
# Corresponds to the JSON property `installment`
2015-12-03 01:10:07 +00:00
# @return [Google::Apis::ContentV2::Installment]
2015-06-23 23:05:46 +00:00
attr_accessor :installment
# Whether the item is a merchant-defined bundle. A bundle is a custom grouping
# of different products sold by a merchant for a single price.
# Corresponds to the JSON property `isBundle`
# @return [Boolean]
attr_accessor :is_bundle
alias_method :is_bundle?, :is_bundle
# Shared identifier for all variants of the same product.
# Corresponds to the JSON property `itemGroupId`
# @return [String]
attr_accessor :item_group_id
# Identifies what kind of resource this is. Value: the fixed string "content#
# product".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# URL directly linking to your item's page on your website.
# Corresponds to the JSON property `link`
# @return [String]
attr_accessor :link
# Loyalty points that users receive after purchasing the item. Japan only.
# Corresponds to the JSON property `loyaltyPoints`
# @return [Google::Apis::ContentV2::LoyaltyPoints]
attr_accessor :loyalty_points
# The material of which the item is made.
# Corresponds to the JSON property `material`
# @return [String]
attr_accessor :material
# Maximal product handling time (in business days).
# Corresponds to the JSON property `maxHandlingTime`
# @return [Fixnum]
attr_accessor :max_handling_time
# Minimal product handling time (in business days).
# Corresponds to the JSON property `minHandlingTime`
# @return [Fixnum]
attr_accessor :min_handling_time
2015-06-23 23:05:46 +00:00
# Link to a mobile-optimized version of the landing page.
# Corresponds to the JSON property `mobileLink`
# @return [String]
attr_accessor :mobile_link
# Manufacturer Part Number (MPN) of the item.
# Corresponds to the JSON property `mpn`
# @return [String]
attr_accessor :mpn
# The number of identical products in a merchant-defined multipack.
# Corresponds to the JSON property `multipack`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :multipack
# A unique identifier for the item. Leading and trailing whitespaces are
# stripped and multiple whitespaces are replaced by a single whitespace upon
# submission. Only valid unicode characters are accepted. See the products feed
# specification for details.
# Note: Content API methods that operate on products take the REST id of the
# product, not this identifier.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `offerId`
# @return [String]
attr_accessor :offer_id
# Whether an item is available for purchase only online.
# Corresponds to the JSON property `onlineOnly`
# @return [Boolean]
attr_accessor :online_only
alias_method :online_only?, :online_only
# The item's pattern (e.g. polka dots).
# Corresponds to the JSON property `pattern`
# @return [String]
attr_accessor :pattern
# Price of the item.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :price
# Your category of the item (formatted as in products feed specification).
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `productType`
# @return [String]
attr_accessor :product_type
2016-02-10 21:57:13 +00:00
# The unique ID of a promotion.
# Corresponds to the JSON property `promotionIds`
# @return [Array<String>]
attr_accessor :promotion_ids
2015-06-23 23:05:46 +00:00
# Advertised sale price of the item.
# Corresponds to the JSON property `salePrice`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :sale_price
# Date range during which the item is on sale (see products feed specification).
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `salePriceEffectiveDate`
# @return [String]
attr_accessor :sale_price_effective_date
2015-12-03 01:10:07 +00:00
# The quantity of the product that is reserved for sell-on-google ads.
# Corresponds to the JSON property `sellOnGoogleQuantity`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-12-03 01:10:07 +00:00
attr_accessor :sell_on_google_quantity
2015-06-23 23:05:46 +00:00
# Shipping rules.
# Corresponds to the JSON property `shipping`
# @return [Array<Google::Apis::ContentV2::ProductShipping>]
attr_accessor :shipping
# Height of the item for shipping.
# Corresponds to the JSON property `shippingHeight`
# @return [Google::Apis::ContentV2::ProductShippingDimension]
attr_accessor :shipping_height
# The shipping label of the product, used to group product in account-level
# shipping rules.
# Corresponds to the JSON property `shippingLabel`
# @return [String]
attr_accessor :shipping_label
# Length of the item for shipping.
# Corresponds to the JSON property `shippingLength`
# @return [Google::Apis::ContentV2::ProductShippingDimension]
attr_accessor :shipping_length
# Weight of the item for shipping.
# Corresponds to the JSON property `shippingWeight`
# @return [Google::Apis::ContentV2::ProductShippingWeight]
attr_accessor :shipping_weight
# Width of the item for shipping.
# Corresponds to the JSON property `shippingWidth`
# @return [Google::Apis::ContentV2::ProductShippingDimension]
attr_accessor :shipping_width
# System in which the size is specified. Recommended for apparel items.
# Corresponds to the JSON property `sizeSystem`
# @return [String]
attr_accessor :size_system
# The cut of the item. Recommended for apparel items.
# Corresponds to the JSON property `sizeType`
# @return [String]
attr_accessor :size_type
# Size of the item.
# Corresponds to the JSON property `sizes`
# @return [Array<String>]
attr_accessor :sizes
2015-07-31 00:05:47 +00:00
# The CLDR territory code for the item.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `targetCountry`
# @return [String]
attr_accessor :target_country
# Tax information.
# Corresponds to the JSON property `taxes`
# @return [Array<Google::Apis::ContentV2::ProductTax>]
attr_accessor :taxes
# Title of the item.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The preference of the denominator of the unit price.
# Corresponds to the JSON property `unitPricingBaseMeasure`
# @return [Google::Apis::ContentV2::ProductUnitPricingBaseMeasure]
attr_accessor :unit_pricing_base_measure
# The measure and dimension of an item.
# Corresponds to the JSON property `unitPricingMeasure`
# @return [Google::Apis::ContentV2::ProductUnitPricingMeasure]
attr_accessor :unit_pricing_measure
# The read-only list of intended destinations which passed validation.
# Corresponds to the JSON property `validatedDestinations`
# @return [Array<String>]
attr_accessor :validated_destinations
# Read-only warnings.
# Corresponds to the JSON property `warnings`
# @return [Array<Google::Apis::ContentV2::Error>]
attr_accessor :warnings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links)
2016-05-25 16:16:15 +00:00
@additional_product_types = args[:additional_product_types] if args.key?(:additional_product_types)
2016-01-29 22:32:46 +00:00
@adult = args[:adult] if args.key?(:adult)
@adwords_grouping = args[:adwords_grouping] if args.key?(:adwords_grouping)
@adwords_labels = args[:adwords_labels] if args.key?(:adwords_labels)
@adwords_redirect = args[:adwords_redirect] if args.key?(:adwords_redirect)
@age_group = args[:age_group] if args.key?(:age_group)
@aspects = args[:aspects] if args.key?(:aspects)
@availability = args[:availability] if args.key?(:availability)
@availability_date = args[:availability_date] if args.key?(:availability_date)
@brand = args[:brand] if args.key?(:brand)
@channel = args[:channel] if args.key?(:channel)
@color = args[:color] if args.key?(:color)
@condition = args[:condition] if args.key?(:condition)
@content_language = args[:content_language] if args.key?(:content_language)
@custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
@custom_groups = args[:custom_groups] if args.key?(:custom_groups)
@custom_label0 = args[:custom_label0] if args.key?(:custom_label0)
@custom_label1 = args[:custom_label1] if args.key?(:custom_label1)
@custom_label2 = args[:custom_label2] if args.key?(:custom_label2)
@custom_label3 = args[:custom_label3] if args.key?(:custom_label3)
@custom_label4 = args[:custom_label4] if args.key?(:custom_label4)
@description = args[:description] if args.key?(:description)
@destinations = args[:destinations] if args.key?(:destinations)
@display_ads_id = args[:display_ads_id] if args.key?(:display_ads_id)
@display_ads_link = args[:display_ads_link] if args.key?(:display_ads_link)
@display_ads_similar_ids = args[:display_ads_similar_ids] if args.key?(:display_ads_similar_ids)
@display_ads_title = args[:display_ads_title] if args.key?(:display_ads_title)
@display_ads_value = args[:display_ads_value] if args.key?(:display_ads_value)
@energy_efficiency_class = args[:energy_efficiency_class] if args.key?(:energy_efficiency_class)
@expiration_date = args[:expiration_date] if args.key?(:expiration_date)
@gender = args[:gender] if args.key?(:gender)
@google_product_category = args[:google_product_category] if args.key?(:google_product_category)
@gtin = args[:gtin] if args.key?(:gtin)
@id = args[:id] if args.key?(:id)
@identifier_exists = args[:identifier_exists] if args.key?(:identifier_exists)
@image_link = args[:image_link] if args.key?(:image_link)
@installment = args[:installment] if args.key?(:installment)
@is_bundle = args[:is_bundle] if args.key?(:is_bundle)
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
@kind = args[:kind] if args.key?(:kind)
@link = args[:link] if args.key?(:link)
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
@material = args[:material] if args.key?(:material)
@max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time)
@min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time)
2016-01-29 22:32:46 +00:00
@mobile_link = args[:mobile_link] if args.key?(:mobile_link)
@mpn = args[:mpn] if args.key?(:mpn)
@multipack = args[:multipack] if args.key?(:multipack)
@offer_id = args[:offer_id] if args.key?(:offer_id)
@online_only = args[:online_only] if args.key?(:online_only)
@pattern = args[:pattern] if args.key?(:pattern)
@price = args[:price] if args.key?(:price)
@product_type = args[:product_type] if args.key?(:product_type)
2016-02-10 21:57:13 +00:00
@promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids)
2016-01-29 22:32:46 +00:00
@sale_price = args[:sale_price] if args.key?(:sale_price)
@sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
@sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
@shipping = args[:shipping] if args.key?(:shipping)
@shipping_height = args[:shipping_height] if args.key?(:shipping_height)
@shipping_label = args[:shipping_label] if args.key?(:shipping_label)
@shipping_length = args[:shipping_length] if args.key?(:shipping_length)
@shipping_weight = args[:shipping_weight] if args.key?(:shipping_weight)
@shipping_width = args[:shipping_width] if args.key?(:shipping_width)
@size_system = args[:size_system] if args.key?(:size_system)
@size_type = args[:size_type] if args.key?(:size_type)
@sizes = args[:sizes] if args.key?(:sizes)
@target_country = args[:target_country] if args.key?(:target_country)
@taxes = args[:taxes] if args.key?(:taxes)
@title = args[:title] if args.key?(:title)
@unit_pricing_base_measure = args[:unit_pricing_base_measure] if args.key?(:unit_pricing_base_measure)
@unit_pricing_measure = args[:unit_pricing_measure] if args.key?(:unit_pricing_measure)
@validated_destinations = args[:validated_destinations] if args.key?(:validated_destinations)
@warnings = args[:warnings] if args.key?(:warnings)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductAspect
include Google::Apis::Core::Hashable
# The name of the aspect.
# Corresponds to the JSON property `aspectName`
# @return [String]
attr_accessor :aspect_name
# The name of the destination. Leave out to apply to all destinations.
# Corresponds to the JSON property `destinationName`
# @return [String]
attr_accessor :destination_name
# Whether the aspect is required, excluded or should be validated.
# Corresponds to the JSON property `intention`
# @return [String]
attr_accessor :intention
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@aspect_name = args[:aspect_name] if args.key?(:aspect_name)
@destination_name = args[:destination_name] if args.key?(:destination_name)
@intention = args[:intention] if args.key?(:intention)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductCustomAttribute
include Google::Apis::Core::Hashable
# The name of the attribute. Underscores will be replaced by spaces upon
# insertion.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The type of the attribute.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Free-form unit of the attribute. Unit can only be used for values of type INT
# or FLOAT.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
# The value of the attribute.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@unit = args[:unit] if args.key?(:unit)
@value = args[:value] if args.key?(:value)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductCustomGroup
include Google::Apis::Core::Hashable
# The sub-attributes.
# Corresponds to the JSON property `attributes`
# @return [Array<Google::Apis::ContentV2::ProductCustomAttribute>]
attr_accessor :attributes
# The name of the group. Underscores will be replaced by spaces upon insertion.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@attributes = args[:attributes] if args.key?(:attributes)
@name = args[:name] if args.key?(:name)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductDestination
include Google::Apis::Core::Hashable
# The name of the destination.
# Corresponds to the JSON property `destinationName`
# @return [String]
attr_accessor :destination_name
# Whether the destination is required, excluded or should be validated.
# Corresponds to the JSON property `intention`
# @return [String]
attr_accessor :intention
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@destination_name = args[:destination_name] if args.key?(:destination_name)
@intention = args[:intention] if args.key?(:intention)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductShipping
include Google::Apis::Core::Hashable
2015-07-31 00:05:47 +00:00
# The CLDR territory code of the country to which an item will ship.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# The location where the shipping is applicable, represented by a location group
# name.
# Corresponds to the JSON property `locationGroupName`
# @return [String]
attr_accessor :location_group_name
# The numeric id of a location that the shipping rate applies to as defined in
# the AdWords API.
# Corresponds to the JSON property `locationId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :location_id
# The postal code range that the shipping rate applies to, represented by a
# postal code, a postal code prefix followed by a * wildcard, a range between
# two postal codes or two postal code prefixes of equal length.
# Corresponds to the JSON property `postalCode`
# @return [String]
attr_accessor :postal_code
# Fixed shipping price, represented as a number.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :price
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
# The geographic region to which a shipping rate applies.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# A free-form description of the service class or delivery speed.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@country = args[:country] if args.key?(:country)
@location_group_name = args[:location_group_name] if args.key?(:location_group_name)
@location_id = args[:location_id] if args.key?(:location_id)
@postal_code = args[:postal_code] if args.key?(:postal_code)
@price = args[:price] if args.key?(:price)
@region = args[:region] if args.key?(:region)
@service = args[:service] if args.key?(:service)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductShippingDimension
include Google::Apis::Core::Hashable
# The unit of value.
# Acceptable values are:
# - "cm"
# - "in"
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
# The dimension of the product used to calculate the shipping cost of the item.
# Corresponds to the JSON property `value`
# @return [Float]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@unit = args[:unit] if args.key?(:unit)
@value = args[:value] if args.key?(:value)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductShippingWeight
include Google::Apis::Core::Hashable
# The unit of value.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
# The weight of the product used to calculate the shipping cost of the item.
# Corresponds to the JSON property `value`
# @return [Float]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@unit = args[:unit] if args.key?(:unit)
@value = args[:value] if args.key?(:value)
2015-06-23 23:05:46 +00:00
end
end
# The status of a product, i.e., information about a product computed
# asynchronously by the data quality analysis.
class ProductStatus
include Google::Apis::Core::Hashable
# Date on which the item has been created, in ISO 8601 format.
# Corresponds to the JSON property `creationDate`
# @return [String]
attr_accessor :creation_date
# A list of data quality issues associated with the product.
# Corresponds to the JSON property `dataQualityIssues`
# @return [Array<Google::Apis::ContentV2::ProductStatusDataQualityIssue>]
attr_accessor :data_quality_issues
# The intended destinations for the product.
# Corresponds to the JSON property `destinationStatuses`
# @return [Array<Google::Apis::ContentV2::ProductStatusDestinationStatus>]
attr_accessor :destination_statuses
# Date on which the item expires in Google Shopping, in ISO 8601 format.
# Corresponds to the JSON property `googleExpirationDate`
# @return [String]
attr_accessor :google_expiration_date
# A list of all issues associated with the product.
# Corresponds to the JSON property `itemLevelIssues`
# @return [Array<Google::Apis::ContentV2::ProductStatusItemLevelIssue>]
attr_accessor :item_level_issues
2015-06-23 23:05:46 +00:00
# Identifies what kind of resource this is. Value: the fixed string "content#
# productStatus".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Date on which the item has been last updated, in ISO 8601 format.
# Corresponds to the JSON property `lastUpdateDate`
# @return [String]
attr_accessor :last_update_date
# The link to the product.
# Corresponds to the JSON property `link`
# @return [String]
attr_accessor :link
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
# Product data.
# Corresponds to the JSON property `product`
# @return [Google::Apis::ContentV2::Product]
attr_accessor :product
2015-06-23 23:05:46 +00:00
# The id of the product for which status is reported.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The title of the product.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@creation_date = args[:creation_date] if args.key?(:creation_date)
@data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
@destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses)
@google_expiration_date = args[:google_expiration_date] if args.key?(:google_expiration_date)
@item_level_issues = args[:item_level_issues] if args.key?(:item_level_issues)
2016-01-29 22:32:46 +00:00
@kind = args[:kind] if args.key?(:kind)
@last_update_date = args[:last_update_date] if args.key?(:last_update_date)
@link = args[:link] if args.key?(:link)
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
@product = args[:product] if args.key?(:product)
2016-01-29 22:32:46 +00:00
@product_id = args[:product_id] if args.key?(:product_id)
@title = args[:title] if args.key?(:title)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductStatusDataQualityIssue
include Google::Apis::Core::Hashable
# A more detailed error string.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail
# The fetch status for landing_page_errors.
# Corresponds to the JSON property `fetchStatus`
# @return [String]
attr_accessor :fetch_status
# The id of the data quality issue.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The attribute name that is relevant for the issue.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The severity of the data quality issue.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# The time stamp of the data quality issue.
# Corresponds to the JSON property `timestamp`
# @return [String]
attr_accessor :timestamp
# The value of that attribute that was found on the landing page
# Corresponds to the JSON property `valueOnLandingPage`
# @return [String]
attr_accessor :value_on_landing_page
# The value the attribute had at time of evaluation.
# Corresponds to the JSON property `valueProvided`
# @return [String]
attr_accessor :value_provided
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@detail = args[:detail] if args.key?(:detail)
@fetch_status = args[:fetch_status] if args.key?(:fetch_status)
@id = args[:id] if args.key?(:id)
@location = args[:location] if args.key?(:location)
@severity = args[:severity] if args.key?(:severity)
@timestamp = args[:timestamp] if args.key?(:timestamp)
@value_on_landing_page = args[:value_on_landing_page] if args.key?(:value_on_landing_page)
@value_provided = args[:value_provided] if args.key?(:value_provided)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductStatusDestinationStatus
include Google::Apis::Core::Hashable
# Whether the approval status might change due to further processing.
# Corresponds to the JSON property `approvalPending`
# @return [Boolean]
attr_accessor :approval_pending
alias_method :approval_pending?, :approval_pending
2015-06-23 23:05:46 +00:00
# The destination's approval status.
# Corresponds to the JSON property `approvalStatus`
# @return [String]
attr_accessor :approval_status
# The name of the destination
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination
# Provided for backward compatibility only. Always set to "required".
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `intention`
# @return [String]
attr_accessor :intention
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@approval_pending = args[:approval_pending] if args.key?(:approval_pending)
2016-01-29 22:32:46 +00:00
@approval_status = args[:approval_status] if args.key?(:approval_status)
@destination = args[:destination] if args.key?(:destination)
@intention = args[:intention] if args.key?(:intention)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductStatusItemLevelIssue
include Google::Apis::Core::Hashable
# The attribute's name, if the issue is caused by a single attribute.
# Corresponds to the JSON property `attributeName`
# @return [String]
attr_accessor :attribute_name
# The error code of the issue.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# The destination the issue applies to.
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination
# Whether the issue can be resolved by the merchant.
# Corresponds to the JSON property `resolution`
# @return [String]
attr_accessor :resolution
# How this issue affects serving of the offer.
# Corresponds to the JSON property `servability`
# @return [String]
attr_accessor :servability
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attribute_name = args[:attribute_name] if args.key?(:attribute_name)
@code = args[:code] if args.key?(:code)
@destination = args[:destination] if args.key?(:destination)
@resolution = args[:resolution] if args.key?(:resolution)
@servability = args[:servability] if args.key?(:servability)
end
end
2015-06-23 23:05:46 +00:00
#
class ProductTax
include Google::Apis::Core::Hashable
2015-07-31 00:05:47 +00:00
# The country within which the item is taxed, specified as a CLDR territory code.
2015-06-23 23:05:46 +00:00
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# The numeric id of a location that the tax rate applies to as defined in the
# AdWords API.
# Corresponds to the JSON property `locationId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :location_id
# The postal code range that the tax rate applies to, represented by a ZIP code,
# a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP
# code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.
# Corresponds to the JSON property `postalCode`
# @return [String]
attr_accessor :postal_code
# The percentage of tax rate that applies to the item price.
# Corresponds to the JSON property `rate`
# @return [Float]
attr_accessor :rate
# The geographic region to which the tax rate applies.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# Set to true if tax is charged on shipping.
# Corresponds to the JSON property `taxShip`
# @return [Boolean]
attr_accessor :tax_ship
alias_method :tax_ship?, :tax_ship
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@country = args[:country] if args.key?(:country)
@location_id = args[:location_id] if args.key?(:location_id)
@postal_code = args[:postal_code] if args.key?(:postal_code)
@rate = args[:rate] if args.key?(:rate)
@region = args[:region] if args.key?(:region)
@tax_ship = args[:tax_ship] if args.key?(:tax_ship)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductUnitPricingBaseMeasure
include Google::Apis::Core::Hashable
# The unit of the denominator.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
# The denominator of the unit price.
# Corresponds to the JSON property `value`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@unit = args[:unit] if args.key?(:unit)
@value = args[:value] if args.key?(:value)
2015-06-23 23:05:46 +00:00
end
end
#
class ProductUnitPricingMeasure
include Google::Apis::Core::Hashable
# The unit of the measure.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
# The measure of an item.
# Corresponds to the JSON property `value`
# @return [Float]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@unit = args[:unit] if args.key?(:unit)
@value = args[:value] if args.key?(:value)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchProductsRequest
2015-06-23 23:05:46 +00:00
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::ProductsBatchRequestEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch products request.
class ProductsBatchRequestEntry
2015-06-23 23:05:46 +00:00
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 ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :request_method
2015-06-23 23:05:46 +00:00
# Product data.
# Corresponds to the JSON property `product`
# @return [Google::Apis::ContentV2::Product]
attr_accessor :product
# The ID of the product to get or delete. Only defined if the method is get or
# delete.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@request_method = args[:request_method] if args.key?(:request_method)
2016-01-29 22:32:46 +00:00
@product = args[:product] if args.key?(:product)
@product_id = args[:product_id] if args.key?(:product_id)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchProductsResponse
2015-06-23 23:05:46 +00:00
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::ProductsBatchResponseEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# productsCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch products response.
class ProductsBatchResponseEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
# 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
# Identifies what kind of resource this is. Value: the fixed string "content#
# productsCustomBatchResponseEntry".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Product data.
# Corresponds to the JSON property `product`
# @return [Google::Apis::ContentV2::Product]
attr_accessor :product
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
@kind = args[:kind] if args.key?(:kind)
@product = args[:product] if args.key?(:product)
2015-06-23 23:05:46 +00:00
end
end
#
class ListProductsResponse
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# productsListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of products.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ContentV2::Product>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@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)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchProductStatusesRequest
2015-06-23 23:05:46 +00:00
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::ProductStatusesBatchRequestEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch productstatuses request.
class ProductStatusesBatchRequestEntry
2015-06-23 23:05:46 +00:00
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
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
#
# Corresponds to the JSON property `includeAttributes`
# @return [Boolean]
attr_accessor :include_attributes
alias_method :include_attributes?, :include_attributes
2015-06-23 23:05:46 +00:00
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2015-06-23 23:05:46 +00:00
attr_accessor :merchant_id
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :request_method
2015-06-23 23:05:46 +00:00
# The ID of the product whose status to get.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
@include_attributes = args[:include_attributes] if args.key?(:include_attributes)
2016-01-29 22:32:46 +00:00
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@request_method = args[:request_method] if args.key?(:request_method)
2016-01-29 22:32:46 +00:00
@product_id = args[:product_id] if args.key?(:product_id)
2015-06-23 23:05:46 +00:00
end
end
#
class BatchProductStatusesResponse
2015-06-23 23:05:46 +00:00
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::ProductStatusesBatchResponseEntry>]
2015-06-23 23:05:46 +00:00
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# productstatusesCustomBatchResponse".
# 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)
2016-01-29 22:32:46 +00:00
@entries = args[:entries] if args.key?(:entries)
@kind = args[:kind] if args.key?(:kind)
2015-06-23 23:05:46 +00:00
end
end
# A batch entry encoding a single non-batch productstatuses response.
class ProductStatusesBatchResponseEntry
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# The ID of the request entry this entry responds to.
# 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
# Identifies what kind of resource this is. Value: the fixed string "content#
# productstatusesCustomBatchResponseEntry".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The status of a product, i.e., information about a product computed
# asynchronously by the data quality analysis.
# Corresponds to the JSON property `productStatus`
# @return [Google::Apis::ContentV2::ProductStatus]
attr_accessor :product_status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
@kind = args[:kind] if args.key?(:kind)
@product_status = args[:product_status] if args.key?(:product_status)
2015-06-23 23:05:46 +00:00
end
end
#
class ListProductStatusesResponse
2015-06-23 23:05:46 +00:00
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# productstatusesListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of products statuses.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ContentV2::ProductStatus>]
attr_accessor :resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@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)
2015-06-23 23:05:46 +00:00
end
end
2016-08-15 17:54:44 +00:00
#
class RateGroup
include Google::Apis::Core::Hashable
# A list of shipping labels defining the products to which this rate group
# applies to. This is a disjunction: only one of the labels has to match for the
# rate group to apply. May only be empty for the last rate group of a service.
# Required.
# Corresponds to the JSON property `applicableShippingLabels`
# @return [Array<String>]
attr_accessor :applicable_shipping_labels
# A list of carrier rates that can be referred to by mainTable or singleValue.
# Corresponds to the JSON property `carrierRates`
# @return [Array<Google::Apis::ContentV2::CarrierRate>]
attr_accessor :carrier_rates
# A table defining the rate group, when singleValue is not expressive enough.
# Can only be set if singleValue is not set.
# Corresponds to the JSON property `mainTable`
# @return [Google::Apis::ContentV2::Table]
attr_accessor :main_table
# The single value of a rate group or the value of a rate group table's cell.
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
# subtableName must be set.
# Corresponds to the JSON property `singleValue`
# @return [Google::Apis::ContentV2::Value]
attr_accessor :single_value
# A list of subtables referred to by mainTable. Can only be set if mainTable is
# set.
# Corresponds to the JSON property `subtables`
# @return [Array<Google::Apis::ContentV2::Table>]
attr_accessor :subtables
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@applicable_shipping_labels = args[:applicable_shipping_labels] if args.key?(:applicable_shipping_labels)
@carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates)
@main_table = args[:main_table] if args.key?(:main_table)
@single_value = args[:single_value] if args.key?(:single_value)
@subtables = args[:subtables] if args.key?(:subtables)
end
end
#
class Row
include Google::Apis::Core::Hashable
# The list of cells that constitute the row. Must have the same length as
# columnHeaders for two-dimensional tables, a length of 1 for one-dimensional
# tables. Required.
# Corresponds to the JSON property `cells`
# @return [Array<Google::Apis::ContentV2::Value>]
attr_accessor :cells
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cells = args[:cells] if args.key?(:cells)
end
end
#
class Service
include Google::Apis::Core::Hashable
# A boolean exposing the active status of the shipping service. Required.
# Corresponds to the JSON property `active`
# @return [Boolean]
attr_accessor :active
alias_method :active?, :active
# The CLDR code of the currency to which this service applies. Must match that
# of the prices in rate groups.
# Corresponds to the JSON property `currency`
# @return [String]
attr_accessor :currency
# The CLDR territory code of the country to which the service applies. Required.
# Corresponds to the JSON property `deliveryCountry`
# @return [String]
attr_accessor :delivery_country
# Time spent in various aspects from order to the delivery of the product.
# Required.
# Corresponds to the JSON property `deliveryTime`
# @return [Google::Apis::ContentV2::DeliveryTime]
attr_accessor :delivery_time
# Minimum order value for this service. If set, indicates that customers will
# have to spend at least this amount. All prices within a service must have the
# same currency.
# Corresponds to the JSON property `minimumOrderValue`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :minimum_order_value
2016-08-15 17:54:44 +00:00
# Free-form name of the service. Must be unique within target account. Required.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Shipping rate group definitions. Only the last one is allowed to have an empty
# applicableShippingLabels, which means "everything else". The other
# applicableShippingLabels must not overlap.
# Corresponds to the JSON property `rateGroups`
# @return [Array<Google::Apis::ContentV2::RateGroup>]
attr_accessor :rate_groups
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@active = args[:active] if args.key?(:active)
@currency = args[:currency] if args.key?(:currency)
@delivery_country = args[:delivery_country] if args.key?(:delivery_country)
@delivery_time = args[:delivery_time] if args.key?(:delivery_time)
@minimum_order_value = args[:minimum_order_value] if args.key?(:minimum_order_value)
2016-08-15 17:54:44 +00:00
@name = args[:name] if args.key?(:name)
@rate_groups = args[:rate_groups] if args.key?(:rate_groups)
end
end
# The merchant account's shipping settings.
class ShippingSettings
include Google::Apis::Core::Hashable
# The ID of the account to which these account shipping settings belong. Ignored
# upon update, always present in get request responses.
# Corresponds to the JSON property `accountId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2016-08-15 17:54:44 +00:00
attr_accessor :account_id
# A list of postal code groups that can be referred to in services. Optional.
# Corresponds to the JSON property `postalCodeGroups`
# @return [Array<Google::Apis::ContentV2::PostalCodeGroup>]
attr_accessor :postal_code_groups
# The target account's list of services. Optional.
# Corresponds to the JSON property `services`
# @return [Array<Google::Apis::ContentV2::Service>]
attr_accessor :services
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] if args.key?(:account_id)
@postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
@services = args[:services] if args.key?(:services)
end
end
#
class ShippingsettingsCustomBatchRequest
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::ShippingsettingsCustomBatchRequestEntry>]
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
2017-04-03 20:18:48 +00:00
# A batch entry encoding a single non-batch shippingsettings request.
2016-08-15 17:54:44 +00:00
class ShippingsettingsCustomBatchRequestEntry
include Google::Apis::Core::Hashable
# The ID of the account for which to get/update account shipping settings.
# Corresponds to the JSON property `accountId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2016-08-15 17:54:44 +00:00
attr_accessor :account_id
# An entry ID, unique within the batch request.
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
# The ID of the managing account.
# Corresponds to the JSON property `merchantId`
2017-04-03 20:18:48 +00:00
# @return [Fixnum]
2016-08-15 17:54:44 +00:00
attr_accessor :merchant_id
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# The merchant account's shipping settings.
# Corresponds to the JSON property `shippingSettings`
# @return [Google::Apis::ContentV2::ShippingSettings]
attr_accessor :shipping_settings
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)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
end
end
#
class ShippingsettingsCustomBatchResponse
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::ShippingsettingsCustomBatchResponseEntry>]
attr_accessor :entries
# Identifies what kind of resource this is. Value: the fixed string "content#
# shippingsettingsCustomBatchResponse".
# 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
# A batch entry encoding a single non-batch shipping settings response.
class ShippingsettingsCustomBatchResponseEntry
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
# Identifies what kind of resource this is. Value: the fixed string "content#
# shippingsettingsCustomBatchResponseEntry".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The merchant account's shipping settings.
# Corresponds to the JSON property `shippingSettings`
# @return [Google::Apis::ContentV2::ShippingSettings]
attr_accessor :shipping_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)
@kind = args[:kind] if args.key?(:kind)
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
end
end
#
class ShippingsettingsGetSupportedCarriersResponse
include Google::Apis::Core::Hashable
# A list of supported carriers. May be empty.
# Corresponds to the JSON property `carriers`
# @return [Array<Google::Apis::ContentV2::CarriersCarrier>]
attr_accessor :carriers
# Identifies what kind of resource this is. Value: the fixed string "content#
# shippingsettingsGetSupportedCarriersResponse".
# 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)
@carriers = args[:carriers] if args.key?(:carriers)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class ShippingsettingsGetSupportedHolidaysResponse
include Google::Apis::Core::Hashable
# A list of holidays applicable for delivery guarantees. May be empty.
# Corresponds to the JSON property `holidays`
# @return [Array<Google::Apis::ContentV2::HolidaysHoliday>]
attr_accessor :holidays
# Identifies what kind of resource this is. Value: the fixed string "content#
# shippingsettingsGetSupportedHolidaysResponse".
# 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)
@holidays = args[:holidays] if args.key?(:holidays)
@kind = args[:kind] if args.key?(:kind)
end
end
2016-08-15 17:54:44 +00:00
#
class ShippingsettingsListResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "content#
# shippingsettingsListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token for the retrieval of the next page of shipping 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::ShippingSettings>]
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 Table
include Google::Apis::Core::Hashable
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
# Corresponds to the JSON property `columnHeaders`
# @return [Google::Apis::ContentV2::Headers]
attr_accessor :column_headers
# Name of the table. Required for subtables, ignored for the main table.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A non-empty list of row or column headers for a table. Exactly one of prices,
# weights, numItems, postalCodeGroupNames, or locations must be set.
# Corresponds to the JSON property `rowHeaders`
# @return [Google::Apis::ContentV2::Headers]
attr_accessor :row_headers
# The list of rows that constitute the table. Must have the same length as
# rowHeaders. Required.
# Corresponds to the JSON property `rows`
# @return [Array<Google::Apis::ContentV2::Row>]
attr_accessor :rows
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@column_headers = args[:column_headers] if args.key?(:column_headers)
@name = args[:name] if args.key?(:name)
@row_headers = args[:row_headers] if args.key?(:row_headers)
@rows = args[:rows] if args.key?(:rows)
end
end
2015-12-03 01:10:07 +00:00
#
class TestOrder
include Google::Apis::Core::Hashable
# The details of the customer who placed the order.
# Corresponds to the JSON property `customer`
# @return [Google::Apis::ContentV2::TestOrderCustomer]
attr_accessor :customer
# Identifies what kind of resource this is. Value: the fixed string "content#
# testOrder".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Line items that are ordered. At least one line item must be provided.
# Corresponds to the JSON property `lineItems`
# @return [Array<Google::Apis::ContentV2::TestOrderLineItem>]
attr_accessor :line_items
# Determines if test order must be pulled by merchant or pushed to merchant via
# push integration.
# Corresponds to the JSON property `notificationMode`
# @return [String]
attr_accessor :notification_mode
2015-12-03 01:10:07 +00:00
# The details of the payment method.
# Corresponds to the JSON property `paymentMethod`
# @return [Google::Apis::ContentV2::TestOrderPaymentMethod]
attr_accessor :payment_method
# Identifier of one of the predefined delivery addresses for the delivery.
# Corresponds to the JSON property `predefinedDeliveryAddress`
# @return [String]
attr_accessor :predefined_delivery_address
2016-02-10 21:57:13 +00:00
# The details of the merchant provided promotions applied to the order. More
Autogenerated update (2017-08-25) Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
2017-08-25 19:54:22 +00:00
# details about the program are here.
2016-02-10 21:57:13 +00:00
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2::OrderPromotion>]
attr_accessor :promotions
2015-12-03 01:10:07 +00:00
# The total cost of shipping for all items.
# Corresponds to the JSON property `shippingCost`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :shipping_cost
# The tax for the total shipping cost.
# Corresponds to the JSON property `shippingCostTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :shipping_cost_tax
# The requested shipping option.
# Corresponds to the JSON property `shippingOption`
# @return [String]
attr_accessor :shipping_option
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@customer = args[:customer] if args.key?(:customer)
@kind = args[:kind] if args.key?(:kind)
@line_items = args[:line_items] if args.key?(:line_items)
@notification_mode = args[:notification_mode] if args.key?(:notification_mode)
2016-01-29 22:32:46 +00:00
@payment_method = args[:payment_method] if args.key?(:payment_method)
@predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
2016-02-10 21:57:13 +00:00
@promotions = args[:promotions] if args.key?(:promotions)
2016-01-29 22:32:46 +00:00
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
@shipping_option = args[:shipping_option] if args.key?(:shipping_option)
2015-12-03 01:10:07 +00:00
end
end
#
class TestOrderCustomer
include Google::Apis::Core::Hashable
# Email address of the customer.
# 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
2015-12-03 01:10:07 +00:00
# marketing rights to the merchant. If unset, this indicates the user has
# already made this choice in a previous purchase, and was thus not shown the
2017-01-13 23:04:35 +00:00
# marketing right opt in/out checkbox during the checkout flow. Optional.
2015-12-03 01:10:07 +00:00
# Corresponds to the JSON property `explicitMarketingPreference`
# @return [Boolean]
attr_accessor :explicit_marketing_preference
alias_method :explicit_marketing_preference?, :explicit_marketing_preference
# Full name of the customer.
# Corresponds to the JSON property `fullName`
# @return [String]
attr_accessor :full_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@email = args[:email] if args.key?(:email)
@explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
@full_name = args[:full_name] if args.key?(:full_name)
2015-12-03 01:10:07 +00:00
end
end
#
class TestOrderLineItem
include Google::Apis::Core::Hashable
# Product data from the time of the order placement.
# Corresponds to the JSON property `product`
# @return [Google::Apis::ContentV2::TestOrderLineItemProduct]
attr_accessor :product
# Number of items ordered.
# Corresponds to the JSON property `quantityOrdered`
# @return [Fixnum]
attr_accessor :quantity_ordered
# Details of the return policy for the line item.
# Corresponds to the JSON property `returnInfo`
# @return [Google::Apis::ContentV2::OrderLineItemReturnInfo]
attr_accessor :return_info
# Details of the requested shipping for the line item.
# Corresponds to the JSON property `shippingDetails`
# @return [Google::Apis::ContentV2::OrderLineItemShippingDetails]
attr_accessor :shipping_details
# Unit tax for the line item.
# Corresponds to the JSON property `unitTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :unit_tax
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@product = args[:product] if args.key?(:product)
@quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered)
@return_info = args[:return_info] if args.key?(:return_info)
@shipping_details = args[:shipping_details] if args.key?(:shipping_details)
@unit_tax = args[:unit_tax] if args.key?(:unit_tax)
2015-12-03 01:10:07 +00:00
end
end
#
class TestOrderLineItemProduct
include Google::Apis::Core::Hashable
# Brand of the item.
# Corresponds to the JSON property `brand`
# @return [String]
attr_accessor :brand
# The item's channel.
# Corresponds to the JSON property `channel`
# @return [String]
attr_accessor :channel
# Condition or state of the item.
# Corresponds to the JSON property `condition`
# @return [String]
attr_accessor :condition
# 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 (GTIN) of the item. Optional.
# Corresponds to the JSON property `gtin`
# @return [String]
attr_accessor :gtin
# URL of an image of the item.
# Corresponds to the JSON property `imageLink`
# @return [String]
attr_accessor :image_link
# Shared identifier for all variants of the same product. Optional.
# Corresponds to the JSON property `itemGroupId`
# @return [String]
attr_accessor :item_group_id
# Manufacturer Part Number (MPN) of the item. Optional.
# Corresponds to the JSON property `mpn`
# @return [String]
attr_accessor :mpn
# An identifier of the item.
# Corresponds to the JSON property `offerId`
# @return [String]
attr_accessor :offer_id
# The price for the product.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :price
# The CLDR territory code of the target country of the product.
# Corresponds to the JSON property `targetCountry`
# @return [String]
attr_accessor :target_country
# The title of the product.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# Variant attributes for the item. Optional.
# Corresponds to the JSON property `variantAttributes`
# @return [Array<Google::Apis::ContentV2::OrderLineItemProductVariantAttribute>]
attr_accessor :variant_attributes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@brand = args[:brand] if args.key?(:brand)
@channel = args[:channel] if args.key?(:channel)
@condition = args[:condition] if args.key?(:condition)
@content_language = args[:content_language] if args.key?(:content_language)
@gtin = args[:gtin] if args.key?(:gtin)
@image_link = args[:image_link] if args.key?(:image_link)
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
@mpn = args[:mpn] if args.key?(:mpn)
@offer_id = args[:offer_id] if args.key?(:offer_id)
@price = args[:price] if args.key?(:price)
@target_country = args[:target_country] if args.key?(:target_country)
@title = args[:title] if args.key?(:title)
@variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes)
2015-12-03 01:10:07 +00:00
end
end
#
class TestOrderPaymentMethod
include Google::Apis::Core::Hashable
# The card expiration month (January = 1, February = 2 etc.).
# Corresponds to the JSON property `expirationMonth`
# @return [Fixnum]
attr_accessor :expiration_month
# The card expiration year (4-digit, e.g. 2015).
# Corresponds to the JSON property `expirationYear`
# @return [Fixnum]
attr_accessor :expiration_year
# The last four digits of the card number.
# Corresponds to the JSON property `lastFourDigits`
# @return [String]
attr_accessor :last_four_digits
# The billing address.
# Corresponds to the JSON property `predefinedBillingAddress`
# @return [String]
attr_accessor :predefined_billing_address
# The type of instrument. Note that real orders might have different values than
# the four values accepted by createTestOrder.
# 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)
2016-01-29 22:32:46 +00:00
@expiration_month = args[:expiration_month] if args.key?(:expiration_month)
@expiration_year = args[:expiration_year] if args.key?(:expiration_year)
@last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits)
@predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address)
@type = args[:type] if args.key?(:type)
2015-12-03 01:10:07 +00:00
end
end
2016-08-15 17:54:44 +00:00
# The single value of a rate group or the value of a rate group table's cell.
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
# subtableName must be set.
class Value
include Google::Apis::Core::Hashable
# The name of a carrier rate referring to a carrier rate defined in the same
# rate group. Can only be set if all other fields are not set.
# Corresponds to the JSON property `carrierRateName`
# @return [String]
attr_accessor :carrier_rate_name
# A flat rate. Can only be set if all other fields are not set.
# Corresponds to the JSON property `flatRate`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :flat_rate
# If true, then the product can't ship. Must be true when set, can only be set
# if all other fields are not set.
# Corresponds to the JSON property `noShipping`
# @return [Boolean]
attr_accessor :no_shipping
alias_method :no_shipping?, :no_shipping
# A percentage of the price represented as a number in decimal notation (e.g., "
# 5.4"). Can only be set if all other fields are not set.
# Corresponds to the JSON property `pricePercentage`
# @return [String]
attr_accessor :price_percentage
# The name of a subtable. Can only be set in table cells (i.e., not for single
# values), and only if all other fields are not set.
# Corresponds to the JSON property `subtableName`
# @return [String]
attr_accessor :subtable_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@carrier_rate_name = args[:carrier_rate_name] if args.key?(:carrier_rate_name)
@flat_rate = args[:flat_rate] if args.key?(:flat_rate)
@no_shipping = args[:no_shipping] if args.key?(:no_shipping)
@price_percentage = args[:price_percentage] if args.key?(:price_percentage)
@subtable_name = args[:subtable_name] if args.key?(:subtable_name)
end
end
2015-06-23 23:05:46 +00:00
#
class Weight
include Google::Apis::Core::Hashable
# The weight unit.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
# The weight represented as a number.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
2016-01-29 22:32:46 +00:00
@unit = args[:unit] if args.key?(:unit)
@value = args[:value] if args.key?(:value)
2015-06-23 23:05:46 +00:00
end
end
end
end
end