generated/google/apis/content_v2/classes.rb in google-api-client-0.23.4 vs generated/google/apis/content_v2/classes.rb in google-api-client-0.23.5
- old
+ new
@@ -40,11 +40,11 @@
# 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.
+ # Merchant Center account.
# Corresponds to the JSON property `googleMyBusinessLink`
# @return [Google::Apis::ContentV2::AccountGoogleMyBusinessLink]
attr_accessor :google_my_business_link
# Merchant Center account ID.
@@ -223,10 +223,16 @@
# accountStatus".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
+ # List of product-related data by channel, destination, and country. Data in
+ # this field may be delayed by up to 30 minutes.
+ # Corresponds to the JSON property `products`
+ # @return [Array<Google::Apis::ContentV2::AccountStatusProducts>]
+ attr_accessor :products
+
# 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
@@ -239,10 +245,11 @@
def update!(**args)
@account_id = args[:account_id] if args.key?(:account_id)
@account_level_issues = args[:account_level_issues] if args.key?(:account_level_issues)
@data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
@kind = args[:kind] if args.key?(:kind)
+ @products = args[:products] if args.key?(:products)
@website_claimed = args[:website_claimed] if args.key?(:website_claimed)
end
end
#
@@ -415,10 +422,151 @@
@title = args[:title] if args.key?(:title)
@value_on_landing_page = args[:value_on_landing_page] if args.key?(:value_on_landing_page)
end
end
+ #
+ class AccountStatusItemLevelIssue
+ 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
+
+ # A short issue description in English.
+ # Corresponds to the JSON property `description`
+ # @return [String]
+ attr_accessor :description
+
+ # A detailed issue description in English.
+ # Corresponds to the JSON property `detail`
+ # @return [String]
+ attr_accessor :detail
+
+ # The URL of a web page to help with resolving this issue.
+ # Corresponds to the JSON property `documentation`
+ # @return [String]
+ attr_accessor :documentation
+
+ # Number of items with this issue.
+ # Corresponds to the JSON property `numItems`
+ # @return [Fixnum]
+ attr_accessor :num_items
+
+ # 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)
+ @description = args[:description] if args.key?(:description)
+ @detail = args[:detail] if args.key?(:detail)
+ @documentation = args[:documentation] if args.key?(:documentation)
+ @num_items = args[:num_items] if args.key?(:num_items)
+ @resolution = args[:resolution] if args.key?(:resolution)
+ @servability = args[:servability] if args.key?(:servability)
+ end
+ end
+
+ #
+ class AccountStatusProducts
+ include Google::Apis::Core::Hashable
+
+ # The channel the data applies to.
+ # Corresponds to the JSON property `channel`
+ # @return [String]
+ attr_accessor :channel
+
+ # The country the data applies to.
+ # Corresponds to the JSON property `country`
+ # @return [String]
+ attr_accessor :country
+
+ # The destination the data applies to.
+ # Corresponds to the JSON property `destination`
+ # @return [String]
+ attr_accessor :destination
+
+ # List of item-level issues.
+ # Corresponds to the JSON property `itemLevelIssues`
+ # @return [Array<Google::Apis::ContentV2::AccountStatusItemLevelIssue>]
+ attr_accessor :item_level_issues
+
+ # Aggregated product statistics.
+ # Corresponds to the JSON property `statistics`
+ # @return [Google::Apis::ContentV2::AccountStatusStatistics]
+ attr_accessor :statistics
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @channel = args[:channel] if args.key?(:channel)
+ @country = args[:country] if args.key?(:country)
+ @destination = args[:destination] if args.key?(:destination)
+ @item_level_issues = args[:item_level_issues] if args.key?(:item_level_issues)
+ @statistics = args[:statistics] if args.key?(:statistics)
+ end
+ end
+
+ #
+ class AccountStatusStatistics
+ include Google::Apis::Core::Hashable
+
+ # Number of active offers.
+ # Corresponds to the JSON property `active`
+ # @return [Fixnum]
+ attr_accessor :active
+
+ # Number of disapproved offers.
+ # Corresponds to the JSON property `disapproved`
+ # @return [Fixnum]
+ attr_accessor :disapproved
+
+ # Number of expiring offers.
+ # Corresponds to the JSON property `expiring`
+ # @return [Fixnum]
+ attr_accessor :expiring
+
+ # Number of pending offers.
+ # Corresponds to the JSON property `pending`
+ # @return [Fixnum]
+ attr_accessor :pending
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @active = args[:active] if args.key?(:active)
+ @disapproved = args[:disapproved] if args.key?(:disapproved)
+ @expiring = args[:expiring] if args.key?(:expiring)
+ @pending = args[:pending] if args.key?(:pending)
+ 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.
@@ -692,11 +840,12 @@
#
class AccountsCustomBatchRequestEntryLinkRequest
include Google::Apis::Core::Hashable
- # Action to perform for this link.
+ # Action to perform for this link. The "request" action is only available to
+ # select merchants.
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# Type of the link between the two accounts.
@@ -793,11 +942,12 @@
#
class AccountsLinkRequest
include Google::Apis::Core::Hashable
- # Action to perform for this link.
+ # Action to perform for this link. The "request" action is only available to
+ # select merchants.
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# Type of the link between the two accounts.
@@ -2477,11 +2627,11 @@
# 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
- # The quantity of the product that is reserved for sell-on-google ads. Supported
+ # The quantity of the product that is available for selling on Google. Supported
# only for online products.
# Corresponds to the JSON property `sellOnGoogleQuantity`
# @return [Fixnum]
attr_accessor :sell_on_google_quantity
@@ -2703,11 +2853,11 @@
# 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
- # The quantity of the product that is reserved for sell-on-google ads. Supported
+ # The quantity of the product that is available for selling on Google. Supported
# only for online products.
# Corresponds to the JSON property `sellOnGoogleQuantity`
# @return [Fixnum]
attr_accessor :sell_on_google_quantity
@@ -2756,27 +2906,29 @@
# Summary of the total amounts of the additional charges.
# Corresponds to the JSON property `additionalChargeSummaries`
# @return [Array<Google::Apis::ContentV2::InvoiceSummaryAdditionalChargeSummary>]
attr_accessor :additional_charge_summaries
- # [required] Customer balance on this invoice. A positive amount means the
- # customer is paying, a negative one means the customer is receiving money. Note:
+ # [required] Customer balance on this invoice. A negative amount means the
+ # customer is paying, a positive one means the customer is receiving money. Note:
# the sum of merchant_balance, customer_balance and google_balance must always
# be zero.
+ # Furthermore the absolute value of this amount is expected to be equal to the
+ # sum of product amount and additional charges, minus promotions.
# Corresponds to the JSON property `customerBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :customer_balance
- # [required] Google balance on this invoice. A positive amount means Google is
- # paying, a negative one means Google is receiving money. Note: the sum of
+ # [required] Google balance on this invoice. A negative amount means Google is
+ # paying, a positive one means Google is receiving money. Note: the sum of
# merchant_balance, customer_balance and google_balance must always be zero.
# Corresponds to the JSON property `googleBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :google_balance
- # [required] Merchant balance on this invoice. A positive amount means the
- # merchant is paying, a negative one means the merchant is receiving money. Note:
+ # [required] Merchant balance on this invoice. A negative amount means the
+ # merchant is paying, a positive one means the merchant is receiving money. Note:
# the sum of merchant_balance, customer_balance and google_balance must always
# be zero.
# Corresponds to the JSON property `merchantBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :merchant_balance
@@ -3609,11 +3761,12 @@
# 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").
+ # Top-level administrative subdivision of the country. For example, a state like
+ # California ("CA") or a province like Quebec ("QC").
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# Street-level part of the address.
@@ -4958,13 +5111,11 @@
#
class OrdersCancelLineItemRequest
include Google::Apis::Core::Hashable
- # 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.
+ # Deprecated. Please use amountPretax and amountTax instead.
# 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
@@ -5113,10 +5264,20 @@
#
class OrdersCreateTestOrderRequest
include Google::Apis::Core::Hashable
+ # The CLDR territory code of the country of the test order to create. Affects
+ # the currency and addresses of orders created via template_name, or the
+ # addresses of orders created via test_order.
+ # Acceptable values are:
+ # - "US"
+ # - "FR" Defaults to US.
+ # Corresponds to the JSON property `country`
+ # @return [String]
+ attr_accessor :country
+
# 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]
@@ -5131,10 +5292,11 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @country = args[:country] if args.key?(:country)
@template_name = args[:template_name] if args.key?(:template_name)
@test_order = args[:test_order] if args.key?(:test_order)
end
end
@@ -5327,13 +5489,11 @@
#
class OrdersCustomBatchRequestEntryCancelLineItem
include Google::Apis::Core::Hashable
- # 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.
+ # Deprecated. Please use amountPretax and amountTax instead.
# 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
@@ -5449,11 +5609,11 @@
#
class OrdersCustomBatchRequestEntryRefund
include Google::Apis::Core::Hashable
- # The amount that is refunded.
+ # Deprecated. Please use amountPretax and amountTax instead.
# 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
@@ -5581,11 +5741,12 @@
#
class OrdersCustomBatchRequestEntryReturnRefundLineItem
include Google::Apis::Core::Hashable
- # The amount that is refunded. Optional, but if filled then both amountPretax
+ # The amount that is refunded. If omitted, refundless return is assumed (same as
+ # calling returnLineItem method). 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
@@ -5878,12 +6039,13 @@
# 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.
+ # The status of the execution. Only defined if
+ # - the request was successful; and
+ # - the method is not get, getByMerchantOrderId, or one of the test methods.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
@@ -6086,11 +6248,11 @@
#
class OrdersRefundRequest
include Google::Apis::Core::Hashable
- # The amount that is refunded.
+ # Deprecated. Please use amountPretax and amountTax instead.
# 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
@@ -6314,11 +6476,12 @@
#
class OrdersReturnRefundLineItemRequest
include Google::Apis::Core::Hashable
- # The amount that is refunded. Optional, but if filled then both amountPretax
+ # The amount that is refunded. If omitted, refundless return is assumed (same as
+ # calling returnLineItem method). 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
@@ -7218,11 +7381,11 @@
# 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.
+ # The relative change of the available quantity. Negative for items returned.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# A unique ID to group items from the same sale event.
@@ -7287,11 +7450,11 @@
# 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.
+ # The relative change of the available quantity. Negative for items returned.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# A unique ID to group items from the same sale event.
@@ -7361,11 +7524,11 @@
# 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.
+ # The relative change of the available quantity. Negative for items returned.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# A unique ID to group items from the same sale event.
@@ -7570,11 +7733,11 @@
# 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.
+ # Deprecated. Do not use.
# Corresponds to the JSON property `aspects`
# @return [Array<Google::Apis::ContentV2::ProductAspect>]
attr_accessor :aspects
# Availability status of the item.
@@ -7857,11 +8020,12 @@
# Date range during which the item is on sale (see products feed specification).
# Corresponds to the JSON property `salePriceEffectiveDate`
# @return [String]
attr_accessor :sale_price_effective_date
- # The quantity of the product that is reserved for sell-on-google ads.
+ # The quantity of the product that is available for selling on Google. Supported
+ # only for online products.
# Corresponds to the JSON property `sellOnGoogleQuantity`
# @return [Fixnum]
attr_accessor :sell_on_google_quantity
# Shipping rules.
@@ -7908,10 +8072,15 @@
# Size of the item.
# Corresponds to the JSON property `sizes`
# @return [Array<String>]
attr_accessor :sizes
+ # The source of the offer, i.e., how the offer was created.
+ # Corresponds to the JSON property `source`
+ # @return [String]
+ attr_accessor :source
+
# The CLDR territory code for the item.
# Corresponds to the JSON property `targetCountry`
# @return [String]
attr_accessor :target_country
@@ -8019,9 +8188,10 @@
@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)
+ @source = args[:source] if args.key?(:source)
@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)