generated/google/apis/content_v2/classes.rb in google-api-client-0.20.1 vs generated/google/apis/content_v2/classes.rb in google-api-client-0.21.0
- old
+ new
@@ -2814,10 +2814,20 @@
#
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
+ # The account ID by which this merchant is known to the POS provider.
+ # Corresponds to the JSON property `posExternalAccountId`
+ # @return [String]
+ attr_accessor :pos_external_account_id
+
+ # The ID of POS provider. Required only for SetPosProvider.
+ # Corresponds to the JSON property `posProviderId`
+ # @return [Fixnum]
+ attr_accessor :pos_provider_id
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
@@ -2829,10 +2839,12 @@
@country = args[:country] if args.key?(:country)
@gmb_email = args[:gmb_email] if args.key?(:gmb_email)
@lia_settings = args[:lia_settings] if args.key?(:lia_settings)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
+ @pos_external_account_id = args[:pos_external_account_id] if args.key?(:pos_external_account_id)
+ @pos_provider_id = args[:pos_provider_id] if args.key?(:pos_provider_id)
end
end
#
class LiasettingsCustomBatchResponse
@@ -2888,10 +2900,15 @@
# The retrieved or updated Lia settings.
# Corresponds to the JSON property `liaSettings`
# @return [Google::Apis::ContentV2::LiaSettings]
attr_accessor :lia_settings
+ # The list of POS providers.
+ # Corresponds to the JSON property `posProviders`
+ # @return [Array<Google::Apis::ContentV2::PosProviders>]
+ attr_accessor :pos_providers
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
@@ -2899,10 +2916,11 @@
@batch_id = args[:batch_id] if args.key?(:batch_id)
@errors = args[:errors] if args.key?(:errors)
@gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts)
@kind = args[:kind] if args.key?(:kind)
@lia_settings = args[:lia_settings] if args.key?(:lia_settings)
+ @pos_providers = args[:pos_providers] if args.key?(:pos_providers)
end
end
#
class LiasettingsGetAccessibleGmbAccountsResponse
@@ -3340,37 +3358,74 @@
# cases this might not be a real users email, but a proxy email.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
- # If set, this indicates the user explicitly chose to opt in or out of providing
- # 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
- # marketing right opt in/out checkbox during the checkout flow.
+ # Deprecated. Please use marketingRightsInfo instead.
# 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
+ # Customer's marketing preferences.
+ # Corresponds to the JSON property `marketingRightsInfo`
+ # @return [Google::Apis::ContentV2::OrderCustomerMarketingRightsInfo]
+ attr_accessor :marketing_rights_info
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@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)
+ @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info)
end
end
#
+ class OrderCustomerMarketingRightsInfo
+ include Google::Apis::Core::Hashable
+
+ # Last known user selection regarding marketing preferences. In certain cases
+ # this selection might not be known, so this field would be empty.
+ # Corresponds to the JSON property `explicitMarketingPreference`
+ # @return [String]
+ attr_accessor :explicit_marketing_preference
+
+ # Timestamp when last time marketing preference was updated. Could be empty, if
+ # user wasn't offered a selection yet.
+ # Corresponds to the JSON property `lastUpdatedTimestamp`
+ # @return [String]
+ attr_accessor :last_updated_timestamp
+
+ # Email address that can be used for marketing purposes. This field is only
+ # filled when explicitMarketingPreference is equal to 'granted'.
+ # Corresponds to the JSON property `marketingEmailAddress`
+ # @return [String]
+ attr_accessor :marketing_email_address
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
+ @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp)
+ @marketing_email_address = args[:marketing_email_address] if args.key?(:marketing_email_address)
+ end
+ end
+
+ #
class OrderDeliveryDetails
include Google::Apis::Core::Hashable
# The delivery address
# Corresponds to the JSON property `address`
@@ -6326,10 +6381,66 @@
@kind = args[:kind] if args.key?(:kind)
@resources = args[:resources] if args.key?(:resources)
end
end
+ #
+ class PosProviders
+ include Google::Apis::Core::Hashable
+
+ # Country code.
+ # Corresponds to the JSON property `country`
+ # @return [String]
+ attr_accessor :country
+
+ # A list of POS providers.
+ # Corresponds to the JSON property `posProviders`
+ # @return [Array<Google::Apis::ContentV2::PosProvidersPosProvider>]
+ attr_accessor :pos_providers
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @country = args[:country] if args.key?(:country)
+ @pos_providers = args[:pos_providers] if args.key?(:pos_providers)
+ end
+ end
+
+ #
+ class PosProvidersPosProvider
+ include Google::Apis::Core::Hashable
+
+ # The display name of Pos Provider.
+ # Corresponds to the JSON property `displayName`
+ # @return [String]
+ attr_accessor :display_name
+
+ # The full name of this POS Provider.
+ # Corresponds to the JSON property `fullName`
+ # @return [String]
+ attr_accessor :full_name
+
+ # The ID of the account.
+ # Corresponds to the JSON property `providerId`
+ # @return [Fixnum]
+ attr_accessor :provider_id
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @display_name = args[:display_name] if args.key?(:display_name)
+ @full_name = args[:full_name] if args.key?(:full_name)
+ @provider_id = args[:provider_id] if args.key?(:provider_id)
+ 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.
@@ -7581,15 +7692,30 @@
# 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
+
# The destination the issue applies to.
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination
+ # 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
+
# Whether the issue can be resolved by the merchant.
# Corresponds to the JSON property `resolution`
# @return [String]
attr_accessor :resolution
@@ -7604,11 +7730,14 @@
# 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)
@destination = args[:destination] if args.key?(:destination)
+ @detail = args[:detail] if args.key?(:detail)
+ @documentation = args[:documentation] if args.key?(:documentation)
@resolution = args[:resolution] if args.key?(:resolution)
@servability = args[:servability] if args.key?(:servability)
end
end
@@ -8137,10 +8266,15 @@
# Required.
# Corresponds to the JSON property `deliveryTime`
# @return [Google::Apis::ContentV2::DeliveryTime]
attr_accessor :delivery_time
+ # Eligibility for this service.
+ # Corresponds to the JSON property `eligibility`
+ # @return [String]
+ attr_accessor :eligibility
+
# 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]
@@ -8166,10 +8300,11 @@
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)
+ @eligibility = args[:eligibility] if args.key?(:eligibility)
@minimum_order_value = args[:minimum_order_value] if args.key?(:minimum_order_value)
@name = args[:name] if args.key?(:name)
@rate_groups = args[:rate_groups] if args.key?(:rate_groups)
end
end
@@ -8539,32 +8674,62 @@
# 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
- # 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
- # marketing right opt in/out checkbox during the checkout flow. Optional.
+ # Deprecated. Please use marketingRightsInfo instead.
# 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
+ # Customer's marketing preferences.
+ # Corresponds to the JSON property `marketingRightsInfo`
+ # @return [Google::Apis::ContentV2::TestOrderCustomerMarketingRightsInfo]
+ attr_accessor :marketing_rights_info
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@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)
+ @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info)
+ end
+ end
+
+ #
+ class TestOrderCustomerMarketingRightsInfo
+ include Google::Apis::Core::Hashable
+
+ # Last know user use selection regards marketing preferences. In certain cases
+ # selection might not be known, so this field would be empty.
+ # Corresponds to the JSON property `explicitMarketingPreference`
+ # @return [String]
+ attr_accessor :explicit_marketing_preference
+
+ # Timestamp when last time marketing preference was updated. Could be empty, if
+ # user wasn't offered a selection yet.
+ # Corresponds to the JSON property `lastUpdatedTimestamp`
+ # @return [String]
+ attr_accessor :last_updated_timestamp
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
+ @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp)
end
end
#
class TestOrderLineItem