generated/google/apis/content_v2/classes.rb in google-api-client-0.24.3 vs generated/google/apis/content_v2/classes.rb in google-api-client-0.25.0
- old
+ new
@@ -20,11 +20,12 @@
module Google
module Apis
module ContentV2
- # Account data.
+ # Account data. After the creation of a new account it may take a few minutes
+ # before it is fully operational.
class Account
include Google::Apis::Core::Hashable
# Indicates whether the merchant sells adult content.
# Corresponds to the JSON property `adultContent`
@@ -382,10 +383,15 @@
# Additional details about the issue.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail
+ # The URL of a web page to help resolving this issue.
+ # Corresponds to the JSON property `documentation`
+ # @return [String]
+ attr_accessor :documentation
+
# Issue identifier.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
@@ -406,10 +412,11 @@
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@destination = args[:destination] if args.key?(:destination)
@detail = args[:detail] if args.key?(:detail)
+ @documentation = args[:documentation] if args.key?(:documentation)
@id = args[:id] if args.key?(:id)
@severity = args[:severity] if args.key?(:severity)
@title = args[:title] if args.key?(:title)
end
end
@@ -888,11 +895,12 @@
# A batch entry encoding a single non-batch accounts request.
class AccountsBatchRequestEntry
include Google::Apis::Core::Hashable
- # Account data.
+ # Account data. After the creation of a new account it may take a few minutes
+ # before it is fully operational.
# Corresponds to the JSON property `account`
# @return [Google::Apis::ContentV2::Account]
attr_accessor :account
# The ID of the targeted account. Only defined if the method is not insert.
@@ -1011,11 +1019,12 @@
# A batch entry encoding a single non-batch accounts response.
class AccountsBatchResponseEntry
include Google::Apis::Core::Hashable
- # Account data.
+ # Account data. After the creation of a new account it may take a few minutes
+ # before it is fully operational.
# Corresponds to the JSON property `account`
# @return [Google::Apis::ContentV2::Account]
attr_accessor :account
# The ID of the request entry this entry responds to.
@@ -1559,10 +1568,74 @@
@services = args[:services] if args.key?(:services)
end
end
#
+ class CustomAttribute
+ 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,
+ # float, or price.
+ # 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)
+ @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)
+ end
+ end
+
+ #
+ class CustomGroup
+ include Google::Apis::Core::Hashable
+
+ # The sub-attributes.
+ # Corresponds to the JSON property `attributes`
+ # @return [Array<Google::Apis::ContentV2::CustomAttribute>]
+ 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)
+ @attributes = args[:attributes] if args.key?(:attributes)
+ @name = args[:name] if args.key?(:name)
+ end
+ end
+
+ #
class CustomerReturnReason
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `description`
@@ -2718,15 +2791,50 @@
# The availability of the product.
# Corresponds to the JSON property `availability`
# @return [String]
attr_accessor :availability
+ # Custom label 0 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel0`
+ # @return [String]
+ attr_accessor :custom_label0
+
+ # Custom label 1 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel1`
+ # @return [String]
+ attr_accessor :custom_label1
+
+ # Custom label 2 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel2`
+ # @return [String]
+ attr_accessor :custom_label2
+
+ # Custom label 3 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel3`
+ # @return [String]
+ attr_accessor :custom_label3
+
+ # Custom label 3 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel4`
+ # @return [String]
+ attr_accessor :custom_label4
+
# 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
+ # The instore product location. Supported only for local products.
+ # Corresponds to the JSON property `instoreProductLocation`
+ # @return [String]
+ attr_accessor :instore_product_location
+
# Identifies what kind of resource this is. Value: the fixed string "content#
# inventory".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@@ -2778,11 +2886,17 @@
end
# Update properties of this object
def update!(**args)
@availability = args[:availability] if args.key?(:availability)
+ @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)
@installment = args[:installment] if args.key?(:installment)
+ @instore_product_location = args[:instore_product_location] if args.key?(:instore_product_location)
@kind = args[:kind] if args.key?(:kind)
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
@pickup = args[:pickup] if args.key?(:pickup)
@price = args[:price] if args.key?(:price)
@quantity = args[:quantity] if args.key?(:quantity)
@@ -2950,15 +3064,50 @@
# The availability of the product.
# Corresponds to the JSON property `availability`
# @return [String]
attr_accessor :availability
+ # Custom label 0 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel0`
+ # @return [String]
+ attr_accessor :custom_label0
+
+ # Custom label 1 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel1`
+ # @return [String]
+ attr_accessor :custom_label1
+
+ # Custom label 2 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel2`
+ # @return [String]
+ attr_accessor :custom_label2
+
+ # Custom label 3 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel3`
+ # @return [String]
+ attr_accessor :custom_label3
+
+ # Custom label 3 for custom grouping of items in a Shopping campaign. Only
+ # supported for online products.
+ # Corresponds to the JSON property `customLabel4`
+ # @return [String]
+ attr_accessor :custom_label4
+
# 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
+ # The instore product location. Supported only for local products.
+ # Corresponds to the JSON property `instoreProductLocation`
+ # @return [String]
+ attr_accessor :instore_product_location
+
# 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
@@ -3004,11 +3153,17 @@
end
# Update properties of this object
def update!(**args)
@availability = args[:availability] if args.key?(:availability)
+ @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)
@installment = args[:installment] if args.key?(:installment)
+ @instore_product_location = args[:instore_product_location] if args.key?(:instore_product_location)
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
@pickup = args[:pickup] if args.key?(:pickup)
@price = args[:price] if args.key?(:price)
@quantity = args[:quantity] if args.key?(:quantity)
@sale_price = args[:sale_price] if args.key?(:sale_price)
@@ -4404,10 +4559,15 @@
# The two-letter ISO 639-1 language code for the item.
# Corresponds to the JSON property `contentLanguage`
# @return [String]
attr_accessor :content_language
+ # Associated fees at order creation time.
+ # Corresponds to the JSON property `fees`
+ # @return [Array<Google::Apis::ContentV2::OrderLineItemProductFee>]
+ attr_accessor :fees
+
# Global Trade Item Number (GTIN) of the item.
# Corresponds to the JSON property `gtin`
# @return [String]
attr_accessor :gtin
@@ -4471,10 +4631,11 @@
def update!(**args)
@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)
+ @fees = args[:fees] if args.key?(:fees)
@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)
@@ -4486,10 +4647,41 @@
@variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes)
end
end
#
+ class OrderLineItemProductFee
+ include Google::Apis::Core::Hashable
+
+ # Amount of the fee.
+ # Corresponds to the JSON property `amount`
+ # @return [Google::Apis::ContentV2::Price]
+ attr_accessor :amount
+
+ # Case-insensitive fee ID.
+ # Corresponds to the JSON property `id`
+ # @return [String]
+ attr_accessor :id
+
+ # Name of the fee.
+ # 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)
+ @amount = args[:amount] if args.key?(:amount)
+ @id = args[:id] if args.key?(:id)
+ @name = args[:name] if args.key?(:name)
+ end
+ end
+
+ #
class OrderLineItemProductVariantAttribute
include Google::Apis::Core::Hashable
# The dimension of the variant.
# Corresponds to the JSON property `dimension`
@@ -8346,16 +8538,16 @@
# 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>]
+ # @return [Array<Google::Apis::ContentV2::CustomAttribute>]
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>]
+ # @return [Array<Google::Apis::ContentV2::CustomGroup>]
attr_accessor :custom_groups
# Custom label 0 for custom grouping of items in a Shopping campaign.
# Corresponds to the JSON property `customLabel0`
# @return [String]
@@ -8790,73 +8982,9 @@
# Update properties of this object
def update!(**args)
@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)
- 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,
- # float, or price.
- # 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)
- @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)
- 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)
- @attributes = args[:attributes] if args.key?(:attributes)
- @name = args[:name] if args.key?(:name)
end
end
#
class ProductDestination