diff --git a/api_names_out.yaml b/api_names_out.yaml index a8320b66d..979a3206d 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -55364,6 +55364,11 @@ "/content:v2.1/AccountIdentifier": account_identifier "/content:v2.1/AccountIdentifier/aggregatorId": aggregator_id "/content:v2.1/AccountIdentifier/merchantId": merchant_id +"/content:v2.1/AccountLabel": account_label +"/content:v2.1/AccountLabel/accountId": account_id +"/content:v2.1/AccountLabel/description": description +"/content:v2.1/AccountLabel/labelId": label_id +"/content:v2.1/AccountLabel/name": name "/content:v2.1/AccountStatus": account_status "/content:v2.1/AccountStatus/accountId": account_id "/content:v2.1/AccountStatus/accountLevelIssues": account_level_issues @@ -55546,6 +55551,14 @@ "/content:v2.1/CarriersCarrier/name": name "/content:v2.1/CarriersCarrier/services": services "/content:v2.1/CarriersCarrier/services/service": service +"/content:v2.1/Css": css +"/content:v2.1/Css/cssDomainId": css_domain_id +"/content:v2.1/Css/cssGroupId": css_group_id +"/content:v2.1/Css/displayName": display_name +"/content:v2.1/Css/fullName": full_name +"/content:v2.1/Css/homepageUri": homepage_uri +"/content:v2.1/Css/labelIds": label_ids +"/content:v2.1/Css/labelIds/label_id": label_id "/content:v2.1/CustomAttribute": custom_attribute "/content:v2.1/CustomAttribute/groupValues": group_values "/content:v2.1/CustomAttribute/groupValues/group_value": group_value @@ -55728,6 +55741,9 @@ "/content:v2.1/InvoiceSummaryAdditionalChargeSummary": invoice_summary_additional_charge_summary "/content:v2.1/InvoiceSummaryAdditionalChargeSummary/totalAmount": total_amount "/content:v2.1/InvoiceSummaryAdditionalChargeSummary/type": type +"/content:v2.1/LabelIds": label_ids +"/content:v2.1/LabelIds/labelIds": label_ids +"/content:v2.1/LabelIds/labelIds/label_id": label_id "/content:v2.1/LiaAboutPageSettings": lia_about_page_settings "/content:v2.1/LiaAboutPageSettings/status": status "/content:v2.1/LiaAboutPageSettings/url": url @@ -55811,6 +55827,18 @@ "/content:v2.1/LinkedAccount/linkedAccountId": linked_account_id "/content:v2.1/LinkedAccount/services": services "/content:v2.1/LinkedAccount/services/service": service +"/content:v2.1/ListAccountLabelsResponse": list_account_labels_response +"/content:v2.1/ListAccountLabelsResponse/accountLabels": account_labels +"/content:v2.1/ListAccountLabelsResponse/accountLabels/account_label": account_label +"/content:v2.1/ListAccountLabelsResponse/nextPageToken": next_page_token +"/content:v2.1/ListCssesResponse": list_csses_response +"/content:v2.1/ListCssesResponse/csses": csses +"/content:v2.1/ListCssesResponse/csses/css": css +"/content:v2.1/ListCssesResponse/nextPageToken": next_page_token +"/content:v2.1/ListRepricingRulesResponse": list_repricing_rules_response +"/content:v2.1/ListRepricingRulesResponse/nextPageToken": next_page_token +"/content:v2.1/ListRepricingRulesResponse/repricingRules": repricing_rules +"/content:v2.1/ListRepricingRulesResponse/repricingRules/repricing_rule": repricing_rule "/content:v2.1/LocalInventory": local_inventory "/content:v2.1/LocalInventory/availability": availability "/content:v2.1/LocalInventory/instoreProductLocation": instore_product_location @@ -56761,6 +56789,37 @@ "/content:v2.1/RegionalinventoryCustomBatchResponseEntry/errors": errors "/content:v2.1/RegionalinventoryCustomBatchResponseEntry/kind": kind "/content:v2.1/RegionalinventoryCustomBatchResponseEntry/regionalInventory": regional_inventory +"/content:v2.1/RepricingRule": repricing_rule +"/content:v2.1/RepricingRule/countryCode": country_code +"/content:v2.1/RepricingRule/effectiveTimePeriod": effective_time_period +"/content:v2.1/RepricingRule/eligibleOfferMatcher": eligible_offer_matcher +"/content:v2.1/RepricingRule/languageCode": language_code +"/content:v2.1/RepricingRule/merchantId": merchant_id +"/content:v2.1/RepricingRule/paused": paused +"/content:v2.1/RepricingRule/restriction": restriction +"/content:v2.1/RepricingRule/ruleId": rule_id +"/content:v2.1/RepricingRule/title": title +"/content:v2.1/RepricingRule/type": type +"/content:v2.1/RepricingRuleEffectiveTime": repricing_rule_effective_time +"/content:v2.1/RepricingRuleEffectiveTime/fixedTimePeriods": fixed_time_periods +"/content:v2.1/RepricingRuleEffectiveTime/fixedTimePeriods/fixed_time_period": fixed_time_period +"/content:v2.1/RepricingRuleEffectiveTimeFixedTimePeriod": repricing_rule_effective_time_fixed_time_period +"/content:v2.1/RepricingRuleEffectiveTimeFixedTimePeriod/endTime": end_time +"/content:v2.1/RepricingRuleEffectiveTimeFixedTimePeriod/startTime": start_time +"/content:v2.1/RepricingRuleEligibleOfferMatcher": repricing_rule_eligible_offer_matcher +"/content:v2.1/RepricingRuleEligibleOfferMatcher/brandMatcher": brand_matcher +"/content:v2.1/RepricingRuleEligibleOfferMatcher/itemGroupIdMatcher": item_group_id_matcher +"/content:v2.1/RepricingRuleEligibleOfferMatcher/matcherOption": matcher_option +"/content:v2.1/RepricingRuleEligibleOfferMatcher/offerIdMatcher": offer_id_matcher +"/content:v2.1/RepricingRuleEligibleOfferMatcherStringMatcher": repricing_rule_eligible_offer_matcher_string_matcher +"/content:v2.1/RepricingRuleEligibleOfferMatcherStringMatcher/strAttributes": str_attributes +"/content:v2.1/RepricingRuleEligibleOfferMatcherStringMatcher/strAttributes/str_attribute": str_attribute +"/content:v2.1/RepricingRuleRestriction": repricing_rule_restriction +"/content:v2.1/RepricingRuleRestriction/floor": floor +"/content:v2.1/RepricingRuleRestriction/useAutoPricingMinPrice": use_auto_pricing_min_price +"/content:v2.1/RepricingRuleRestrictionBoundary": repricing_rule_restriction_boundary +"/content:v2.1/RepricingRuleRestrictionBoundary/percentageDelta": percentage_delta +"/content:v2.1/RepricingRuleRestrictionBoundary/priceDelta": price_delta "/content:v2.1/ReturnAddress": return_address "/content:v2.1/ReturnAddress/address": address "/content:v2.1/ReturnAddress/country": country @@ -57104,6 +57163,18 @@ "/content:v2.1/content.accounts.get/view": view "/content:v2.1/content.accounts.insert": insert_account "/content:v2.1/content.accounts.insert/merchantId": merchant_id +"/content:v2.1/content.accounts.labels.create": create_account_label +"/content:v2.1/content.accounts.labels.create/accountId": account_id +"/content:v2.1/content.accounts.labels.delete": delete_account_label +"/content:v2.1/content.accounts.labels.delete/accountId": account_id +"/content:v2.1/content.accounts.labels.delete/labelId": label_id +"/content:v2.1/content.accounts.labels.list": list_account_labels +"/content:v2.1/content.accounts.labels.list/accountId": account_id +"/content:v2.1/content.accounts.labels.list/pageSize": page_size +"/content:v2.1/content.accounts.labels.list/pageToken": page_token +"/content:v2.1/content.accounts.labels.patch": patch_account_label +"/content:v2.1/content.accounts.labels.patch/accountId": account_id +"/content:v2.1/content.accounts.labels.patch/labelId": label_id "/content:v2.1/content.accounts.link": link_account "/content:v2.1/content.accounts.link/accountId": account_id "/content:v2.1/content.accounts.link/merchantId": merchant_id @@ -57145,6 +57216,16 @@ "/content:v2.1/content.accounttax.update": update_accounttax "/content:v2.1/content.accounttax.update/accountId": account_id "/content:v2.1/content.accounttax.update/merchantId": merchant_id +"/content:v2.1/content.csses.get": get_css +"/content:v2.1/content.csses.get/cssDomainId": css_domain_id +"/content:v2.1/content.csses.get/cssGroupId": css_group_id +"/content:v2.1/content.csses.list": list_csses +"/content:v2.1/content.csses.list/cssGroupId": css_group_id +"/content:v2.1/content.csses.list/pageSize": page_size +"/content:v2.1/content.csses.list/pageToken": page_token +"/content:v2.1/content.csses.updatelabels": updatelabels_css +"/content:v2.1/content.csses.updatelabels/cssDomainId": css_domain_id +"/content:v2.1/content.csses.updatelabels/cssGroupId": css_group_id "/content:v2.1/content.datafeeds.custombatch": custombatch_datafeed "/content:v2.1/content.datafeeds.delete": delete_datafeed "/content:v2.1/content.datafeeds.delete/datafeedId": datafeed_id @@ -57392,6 +57473,24 @@ "/content:v2.1/content.regionalinventory.insert": insert_regionalinventory "/content:v2.1/content.regionalinventory.insert/merchantId": merchant_id "/content:v2.1/content.regionalinventory.insert/productId": product_id +"/content:v2.1/content.repricingrules.create": create_repricingrule +"/content:v2.1/content.repricingrules.create/merchantId": merchant_id +"/content:v2.1/content.repricingrules.create/ruleId": rule_id +"/content:v2.1/content.repricingrules.delete": delete_repricingrule +"/content:v2.1/content.repricingrules.delete/merchantId": merchant_id +"/content:v2.1/content.repricingrules.delete/ruleId": rule_id +"/content:v2.1/content.repricingrules.get": get_repricingrule +"/content:v2.1/content.repricingrules.get/merchantId": merchant_id +"/content:v2.1/content.repricingrules.get/ruleId": rule_id +"/content:v2.1/content.repricingrules.list": list_repricingrules +"/content:v2.1/content.repricingrules.list/countryCode": country_code +"/content:v2.1/content.repricingrules.list/languageCode": language_code +"/content:v2.1/content.repricingrules.list/merchantId": merchant_id +"/content:v2.1/content.repricingrules.list/pageSize": page_size +"/content:v2.1/content.repricingrules.list/pageToken": page_token +"/content:v2.1/content.repricingrules.patch": patch_repricingrule +"/content:v2.1/content.repricingrules.patch/merchantId": merchant_id +"/content:v2.1/content.repricingrules.patch/ruleId": rule_id "/content:v2.1/content.returnaddress.custombatch": custombatch_returnaddress "/content:v2.1/content.returnaddress.delete": delete_returnaddress "/content:v2.1/content.returnaddress.delete/merchantId": merchant_id diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 1e8d5d09f..f03ff83da 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -20,13 +20,12 @@ module Google module Apis # Content API for Shopping # - # Manages product items, inventory, and Merchant Center accounts for Google - # Shopping. + # Manage your product listings and accounts for Google Shopping # - # @see https://developers.google.com/shopping-content + # @see https://developers.google.com/shopping-content/v2/ module ContentV2_1 VERSION = 'V2_1' - REVISION = '20201015' + REVISION = '20201026' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index b7a5ffcf6..12e547a06 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -185,15 +185,13 @@ module Google # Status of the link between this Merchant Center account and the Ads account. # Upon retrieval, it represents the actual status of the link and can be either ` # active` if it was approved in Google Ads 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` + # 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. - # Acceptable values are: - # - "`active`" - # - "`pending`" + # the link request if it was pending. Acceptable values are: - "`active`" - "` + # pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -289,9 +287,7 @@ module Google attr_accessor :gmb_email # Status of the link between this Merchant Center account and the GMB account. - # Acceptable values are: - # - "`active`" - # - "`pending`" + # Acceptable values are: - "`active`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -334,6 +330,43 @@ module Google end end + # Label assigned by CSS domain or CSS group to one of its sub-accounts. + class AccountLabel + include Google::Apis::Core::Hashable + + # Output only. Immutable. The ID of account this label belongs to. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Description for this label. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. Immutable. The ID of the label. + # Corresponds to the JSON property `labelId` + # @return [Fixnum] + attr_accessor :label_id + + # The display name of this label. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @description = args[:description] if args.key?(:description) + @label_id = args[:label_id] if args.key?(:label_id) + @name = args[:name] if args.key?(:name) + 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 @@ -411,11 +444,8 @@ module Google # @return [String] attr_accessor :id - # Severity of the issue. - # Acceptable values are: - # - "`critical`" - # - "`error`" - # - "`suggestion`" + # Severity of the issue. Acceptable values are: - "`critical`" - "`error`" - "` + # suggestion`" # Corresponds to the JSON property `severity` # @return [String] attr_accessor :severity @@ -506,10 +536,8 @@ module Google class AccountStatusProducts include Google::Apis::Core::Hashable - # The channel the data applies to. - # Acceptable values are: - # - "`local`" - # - "`online`" + # The channel the data applies to. Acceptable values are: - "`local`" - "`online` + # " # Corresponds to the JSON property `channel` # @return [String] attr_accessor :channel @@ -724,7 +752,7 @@ module Google # 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 + # 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 @@ -749,11 +777,10 @@ module Google 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. + # 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] attr_accessor :account_identifiers @@ -857,14 +884,8 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`claimWebsite`" - # - "`delete`" - # - "`get`" - # - "`insert`" - # - "`link`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`claimWebsite`" - "` + # delete`" - "`get`" - "`insert`" - "`link`" - "`update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -905,19 +926,14 @@ module Google include Google::Apis::Core::Hashable # Action to perform for this link. The `"request"` action is only available to - # select merchants. - # Acceptable values are: - # - "`approve`" - # - "`remove`" - # - "`request`" + # select merchants. Acceptable values are: - "`approve`" - "`remove`" - "` + # request`" # Corresponds to the JSON property `action` # @return [String] attr_accessor :action - # Type of the link between the two accounts. - # Acceptable values are: - # - "`channelPartner`" - # - "`eCommercePlatform`" + # Type of the link between the two accounts. Acceptable values are: - "` + # channelPartner`" - "`eCommercePlatform`" # Corresponds to the JSON property `linkType` # @return [String] attr_accessor :link_type @@ -1016,19 +1032,14 @@ module Google include Google::Apis::Core::Hashable # Action to perform for this link. The `"request"` action is only available to - # select merchants. - # Acceptable values are: - # - "`approve`" - # - "`remove`" - # - "`request`" + # select merchants. Acceptable values are: - "`approve`" - "`remove`" - "` + # request`" # Corresponds to the JSON property `action` # @return [String] attr_accessor :action - # Type of the link between the two accounts. - # Acceptable values are: - # - "`channelPartner`" - # - "`eCommercePlatform`" + # Type of the link between the two accounts. Acceptable values are: - "` + # channelPartner`" - "`eCommercePlatform`" # Corresponds to the JSON property `linkType` # @return [String] attr_accessor :link_type @@ -1223,9 +1234,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" + # The method of the batch entry. Acceptable values are: - "`get`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -1377,10 +1386,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`get`" - "`update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -1628,6 +1634,58 @@ module Google end end + # Information about CSS domain. + class Css + include Google::Apis::Core::Hashable + + # Output only. Immutable. The CSS domain ID. + # Corresponds to the JSON property `cssDomainId` + # @return [Fixnum] + attr_accessor :css_domain_id + + # Output only. Immutable. The ID of the CSS group this CSS domain is affiliated + # with. Only populated for CSS group users. + # Corresponds to the JSON property `cssGroupId` + # @return [Fixnum] + attr_accessor :css_group_id + + # Output only. Immutable. The CSS domain's display name, used when space is + # constrained. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. Immutable. The CSS domain's full name. + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + # Output only. Immutable. The CSS domain's homepage. + # Corresponds to the JSON property `homepageUri` + # @return [String] + attr_accessor :homepage_uri + + # A list of label IDs that are assigned to this CSS domain by its CSS group. + # Only populated for CSS group users. + # Corresponds to the JSON property `labelIds` + # @return [Array] + attr_accessor :label_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @css_domain_id = args[:css_domain_id] if args.key?(:css_domain_id) + @css_group_id = args[:css_group_id] if args.key?(:css_group_id) + @display_name = args[:display_name] if args.key?(:display_name) + @full_name = args[:full_name] if args.key?(:full_name) + @homepage_uri = args[:homepage_uri] if args.key?(:homepage_uri) + @label_ids = args[:label_ids] if args.key?(:label_ids) + end + end + # class CustomAttribute include Google::Apis::Core::Hashable @@ -1670,22 +1728,11 @@ module Google # @return [String] attr_accessor :description - # Code of the return reason. - # Acceptable values are: - # - "`betterPriceFound`" - # - "`changedMind`" - # - "`damagedOrDefectiveItem`" - # - "`didNotMatchDescription`" - # - "`doesNotFit`" - # - "`expiredItem`" - # - "`incorrectItemReceived`" - # - "`noLongerNeeded`" - # - "`notSpecified`" - # - "`orderedWrongItem`" - # - "`other`" - # - "`qualityNotExpected`" - # - "`receivedTooLate`" - # - "`undeliverable`" + # Code of the return reason. Acceptable values are: - "`betterPriceFound`" - "` + # changedMind`" - "`damagedOrDefectiveItem`" - "`didNotMatchDescription`" - "` + # doesNotFit`" - "`expiredItem`" - "`incorrectItemReceived`" - "`noLongerNeeded`" + # - "`notSpecified`" - "`orderedWrongItem`" - "`other`" - "`qualityNotExpected`" + # - "`receivedTooLate`" - "`undeliverable`" # Corresponds to the JSON property `reasonCode` # @return [String] attr_accessor :reason_code @@ -1746,11 +1793,8 @@ module Google attr_accessor :attribute_language # Required. The type of data feed. For product inventory feeds, only feeds for - # local stores, not online stores, are supported. - # Acceptable values are: - # - "`local products`" - # - "`product inventory`" - # - "`products`" + # local stores, not online stores, are supported. Acceptable values are: - "` + # local products`" - "`product inventory`" - "`products`" # Corresponds to the JSON property `contentType` # @return [String] attr_accessor :content_type @@ -1863,15 +1907,9 @@ module Google # @return [String] attr_accessor :username - # The day of the week the feed file should be fetched. - # Acceptable values are: - # - "`monday`" - # - "`tuesday`" - # - "`wednesday`" - # - "`thursday`" - # - "`friday`" - # - "`saturday`" - # - "`sunday`" + # The day of the week the feed file should be fetched. Acceptable values are: - " + # `monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "` + # saturday`" - "`sunday`" # Corresponds to the JSON property `weekday` # @return [String] attr_accessor :weekday @@ -1900,32 +1938,21 @@ module Google # 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. - # Acceptable values are: - # - "`pipe`" - # - "`tab`" - # - "`tilde`" + # data feeds. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" # 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. - # Acceptable values are: - # - "`latin-1`" - # - "`utf-16be`" - # - "`utf-16le`" - # - "`utf-8`" - # - "`windows-1252`" + # will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "` + # utf-16le`" - "`utf-8`" - "`windows-1252`" # 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. - # Acceptable values are: - # - "`normal character`" - # - "`value quoting`" + # be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "` + # normal character`" - "`value quoting`" # Corresponds to the JSON property `quotingMode` # @return [String] attr_accessor :quoting_mode @@ -1947,7 +1974,7 @@ module Google class DatafeedStatus include Google::Apis::Core::Hashable - # The country for which the status is reported, represented as a CLDR territory + # The country for which the status is reported, represented as a CLDR territory # code. # Corresponds to the JSON property `country` # @return [String] @@ -1989,12 +2016,10 @@ module Google # @return [String] attr_accessor :last_upload_date - # The processing status of the feed. - # Acceptable values are: - # - "`"`failure`": The feed could not be processed or all items had errors.`" - # - "`in progress`": The feed is being processed. - # - "`none`": The feed has not yet been processed. For example, a feed that has - # never been uploaded will have this processing status. + # The processing status of the feed. Acceptable values are: - "`"`failure`": The + # feed could not be processed or all items had errors.`" - "`in progress`": The + # feed is being processed. - "`none`": The feed has not yet been processed. For + # example, a feed that has never been uploaded will have this processing status. # - "`success`": The feed was processed successfully, though some items might # have had errors. # Corresponds to the JSON property `processingStatus` @@ -2098,7 +2123,7 @@ module Google 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. + # represented as a CLDR territory code. # Corresponds to the JSON property `country` # @return [String] attr_accessor :country @@ -2111,12 +2136,9 @@ module Google # 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 `excludedDestinations`. - # List of supported destinations (if available to the account): - # - DisplayAds - # - Shopping - # - ShoppingActions - # - SurfacesAcrossGoogle + # unless provided in `excludedDestinations`. List of supported destinations (if + # available to the account): - DisplayAds - Shopping - ShoppingActions - + # SurfacesAcrossGoogle # Corresponds to the JSON property `includedDestinations` # @return [Array] attr_accessor :included_destinations @@ -2183,13 +2205,8 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`delete`" - # - "`fetchNow`" - # - "`get`" - # - "`insert`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`delete`" - "` + # fetchNow`" - "`get`" - "`insert`" - "`update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -2369,9 +2386,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" + # The method of the batch entry. Acceptable values are: - "`get`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -2698,8 +2713,8 @@ module Google # 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. + # 10 items", "<= 50 items", and "> 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] attr_accessor :number_of_items @@ -2715,8 +2730,9 @@ module Google # 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 - # 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. + # headers "<= $10", "<= $500", and "> $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] attr_accessor :prices @@ -2724,8 +2740,8 @@ module Google # 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. + # 10kg", "<= 50kg", and "> 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. # Corresponds to the JSON property `weights` # @return [Array] attr_accessor :weights @@ -2762,7 +2778,7 @@ module Google 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. + # in the AdWords API documentation. E.g. "Europe/Zurich". Required. # Corresponds to the JSON property `deadlineTimezone` # @return [String] attr_accessor :deadline_timezone @@ -2828,16 +2844,9 @@ module Google # @return [String] attr_accessor :id - # The holiday type. Always present. - # Acceptable values are: - # - "`Christmas`" - # - "`Easter`" - # - "`Father's Day`" - # - "`Halloween`" - # - "`Independence Day (USA)`" - # - "`Mother's Day`" - # - "`Thanksgiving`" - # - "`Valentine's Day`" + # The holiday type. Always present. Acceptable values are: - "`Christmas`" - "` + # Easter`" - "`Father's Day`" - "`Halloween`" - "`Independence Day (USA)`" - "` + # Mother's Day`" - "`Thanksgiving`" - "`Valentine's Day`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2916,9 +2925,8 @@ module Google # @return [Google::Apis::ContentV2_1::Amount] attr_accessor :total_amount - # [required] Type of the additional charge. - # Acceptable values are: - # - "`shipping`" + # [required] Type of the additional charge. Acceptable values are: - "`shipping`" + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2934,15 +2942,31 @@ module Google end end + # The IDs of labels that should be assigned to the CSS domain. + class LabelIds + include Google::Apis::Core::Hashable + + # The list of label IDs. + # Corresponds to the JSON property `labelIds` + # @return [Array] + attr_accessor :label_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label_ids = args[:label_ids] if args.key?(:label_ids) + end + end + # class LiaAboutPageSettings include Google::Apis::Core::Hashable - # The status of the verification process for the About page. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # The status of the verification process for the About page. Acceptable values + # are: - "`active`" - "`inactive`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -3034,20 +3058,14 @@ module Google # @return [String] attr_accessor :inventory_verification_contact_name - # The status of the verification contact. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # The status of the verification contact. Acceptable values are: - "`active`" - " + # `inactive`" - "`pending`" # Corresponds to the JSON property `inventoryVerificationContactStatus` # @return [String] attr_accessor :inventory_verification_contact_status - # The status of the inventory verification process. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # The status of the inventory verification process. Acceptable values are: - "` + # active`" - "`inactive`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -3074,11 +3092,8 @@ module Google # @return [String] attr_accessor :shipping_cost_policy_url - # The status of the ?On display to order? feature. - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # The status of the ?On display to order? feature. Acceptable values are: - "` + # active`" - "`inactive`" - "`pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -3219,14 +3234,10 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" - # - "`getAccessibleGmbAccounts`" - # - "`requestGmbAccess`" - # - "`requestInventoryVerification`" - # - "`setInventoryVerificationContact`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`get`" - "` + # getAccessibleGmbAccounts`" - "`requestGmbAccess`" - "` + # requestInventoryVerification`" - "`setInventoryVerificationContact`" - "` + # update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -3512,20 +3523,15 @@ module Google class LinkService include Google::Apis::Core::Hashable - # Service provided to or by the linked account. - # Acceptable values are: - # - "`shoppingActionsOrderManagement`" - # - "`shoppingActionsProductManagement`" - # - "`shoppingAdsProductManagement`" + # Service provided to or by the linked account. Acceptable values are: - "` + # shoppingActionsOrderManagement`" - "`shoppingActionsProductManagement`" - "` + # shoppingAdsProductManagement`" # Corresponds to the JSON property `service` # @return [String] attr_accessor :service - # Status of the link - # Acceptable values are: - # - "`active`" - # - "`inactive`" - # - "`pending`" + # Status of the link Acceptable values are: - "`active`" - "`inactive`" - "` + # pending`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -3566,6 +3572,84 @@ module Google end end + # Response message for the `ListAccountLabels` method. + class ListAccountLabelsResponse + include Google::Apis::Core::Hashable + + # The labels from the specified account. + # Corresponds to the JSON property `accountLabels` + # @return [Array] + attr_accessor :account_labels + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_labels = args[:account_labels] if args.key?(:account_labels) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The response message for the `ListCsses` method + class ListCssesResponse + include Google::Apis::Core::Hashable + + # The CSS domains affiliated with the specified CSS group. + # Corresponds to the JSON property `csses` + # @return [Array] + attr_accessor :csses + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @csses = args[:csses] if args.key?(:csses) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for the `ListRepricingRules` method. + class ListRepricingRulesResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The rules from the specified merchant. + # Corresponds to the JSON property `repricingRules` + # @return [Array] + attr_accessor :repricing_rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @repricing_rules = args[:repricing_rules] if args.key?(:repricing_rules) + end + end + # Local inventory resource. For accepted attribute values, see the local product # inventory feed specification. class LocalInventory @@ -3590,7 +3674,7 @@ module Google # Supported pickup method for this offer. Unless the value is "not supported", # this field must be submitted together with `pickupSla`. For accepted attribute - # values, see the local product inventory feed specification. + # values, see the local product inventory feed // specification. # Corresponds to the JSON property `pickupMethod` # @return [String] attr_accessor :pickup_method @@ -3686,9 +3770,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # Method of the batch request entry. - # Acceptable values are: - # - "`insert`" + # Method of the batch request entry. Acceptable values are: - "`insert`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -3936,13 +4018,8 @@ module Google # @return [String] attr_accessor :shipment_unit_id - # State of the item. - # Acceptable values are: - # - "`canceled`" - # - "`new`" - # - "`received`" - # - "`refunded`" - # - "`rejected`" + # State of the item. Acceptable values are: - "`canceled`" - "`new`" - "` + # received`" - "`refunded`" - "`rejected`" # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -4069,8 +4146,7 @@ module Google end # Order. Production access (all methods) requires the order manager role. - # Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1. - # orders ==) + # Sandbox access does not. class Order include Google::Apis::Core::Hashable @@ -4140,12 +4216,8 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :net_tax_amount - # The status of the payment. - # Acceptable values are: - # - "`paymentCaptured`" - # - "`paymentRejected`" - # - "`paymentSecured`" - # - "`pendingAuthorization`" + # The status of the payment. Acceptable values are: - "`paymentCaptured`" - "` + # paymentRejected`" - "`paymentSecured`" - "`pendingAuthorization`" # Corresponds to the JSON property `paymentStatus` # @return [String] attr_accessor :payment_status @@ -4160,25 +4232,22 @@ module Google # @return [String] attr_accessor :placed_date - # Promotions associated with the order. - # To determine which promotions apply to which products, check the `Promotions[]. - # appliedItems[].lineItemId` field against the `LineItems[].id` field for each - # promotion. If a promotion is applied to more than 1 offerId, divide the - # discount value by the number of affected offers to determine how much discount - # to apply to each offerId. - # Examples: - # - To calculate price paid by the customer for a single line item including the - # discount: For each promotion, subtract the `LineItems[].adjustments[]. - # priceAdjustment.value` amount from the `LineItems[].Price.value`. - # - To calculate price paid by the customer for a single line item including the - # discount in case of multiple quantity: For each promotion, divide the ` + # Promotions associated with the order. To determine which promotions apply to + # which products, check the `Promotions[].appliedItems[].lineItemId` field + # against the `LineItems[].id` field for each promotion. If a promotion is + # applied to more than 1 offerId, divide the discount value by the number of + # affected offers to determine how much discount to apply to each offerId. + # Examples: 1. To calculate price paid by the customer for a single line item + # including the discount: For each promotion, subtract the `LineItems[]. + # adjustments[].priceAdjustment.value` amount from the `LineItems[].Price.value`. + # 2. To calculate price paid by the customer for a single line item including + # the discount in case of multiple quantity: For each promotion, divide the ` # LineItems[].adjustments[].priceAdjustment.value` by the quantity of products # then subtract the resulting value from the `LineItems[].Product.Price.value` - # for each quantity item. - # Only 1 promotion can be applied to an offerId in a given order. To refund an - # item which had a promotion applied to it, make sure to refund the amount after - # first subtracting the promotion discount from the item price. - # More details about the program are here. + # for each quantity item. Only 1 promotion can be applied to an offerId in a + # given order. To refund an item which had a promotion applied to it, make sure + # to refund the amount after first subtracting the promotion discount from the + # item price. More details about the program are here. # Corresponds to the JSON property `promotions` # @return [Array] attr_accessor :promotions @@ -4203,25 +4272,15 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :shipping_cost_tax - # The status of the order. - # Acceptable values are: - # - "`canceled`" - # - "`delivered`" - # - "`inProgress`" - # - "`partiallyDelivered`" - # - "`partiallyReturned`" - # - "`partiallyShipped`" - # - "`pendingShipment`" - # - "`returned`" - # - "`shipped`" + # The status of the order. Acceptable values are: - "`canceled`" - "`delivered`" + # - "`inProgress`" - "`partiallyDelivered`" - "`partiallyReturned`" - "` + # partiallyShipped`" - "`pendingShipment`" - "`returned`" - "`shipped`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # The party responsible for collecting and remitting taxes. - # Acceptable values are: - # - "`marketplaceFacilitator`" - # - "`merchant`" + # The party responsible for collecting and remitting taxes. Acceptable values + # are: - "`marketplaceFacilitator`" - "`merchant`" # Corresponds to the JSON property `taxCollector` # @return [String] attr_accessor :tax_collector @@ -4267,11 +4326,8 @@ module Google 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 + # example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United + # States # Corresponds to the JSON property `fullAddress` # @return [Array] attr_accessor :full_address @@ -4330,14 +4386,9 @@ module Google class OrderCancellation include Google::Apis::Core::Hashable - # The actor that created the cancellation. - # Acceptable values are: - # - "`customer`" - # - "`googleBot`" - # - "`googleCustomerService`" - # - "`googlePayments`" - # - "`googleSabre`" - # - "`merchant`" + # The actor that created the cancellation. Acceptable values are: - "`customer`" + # - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "` + # googleSabre`" - "`merchant`" # Corresponds to the JSON property `actor` # @return [String] attr_accessor :actor @@ -4355,35 +4406,18 @@ module Google # The reason for the cancellation. Orders that are canceled with a noInventory # reason will lead to the removal of the product from Shopping Actions until you # make an update to that product. This will not affect your Shopping ads. - # Acceptable values are: - # - "`autoPostInternal`" - # - "`autoPostInvalidBillingAddress`" - # - "`autoPostNoInventory`" - # - "`autoPostPriceError`" - # - "`autoPostUndeliverableShippingAddress`" - # - "`couponAbuse`" - # - "`customerCanceled`" - # - "`customerInitiatedCancel`" - # - "`customerSupportRequested`" - # - "`failToPushOrderGoogleError`" - # - "`failToPushOrderMerchantError`" - # - "`failToPushOrderMerchantFulfillmentError`" - # - "`failToPushOrderToMerchant`" - # - "`failToPushOrderToMerchantOutOfStock`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`merchantDidNotShipOnTime`" - # - "`noInventory`" - # - "`orderTimeout`" - # - "`other`" - # - "`paymentAbuse`" - # - "`paymentDeclined`" - # - "`priceError`" - # - "`returnRefundAbuse`" - # - "`shippingPriceError`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" + # Acceptable values are: - "`autoPostInternal`" - "` + # autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "` + # autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "` + # couponAbuse`" - "`customerCanceled`" - "`customerInitiatedCancel`" - "` + # customerSupportRequested`" - "`failToPushOrderGoogleError`" - "` + # failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - + # "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "` + # invalidCoupon`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - + # "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "` + # paymentDeclined`" - "`priceError`" - "`returnRefundAbuse`" - "` + # shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "` + # unsupportedPoBoxAddress`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -4418,7 +4452,7 @@ module Google # Email address for the merchant to send value-added tax or invoice # documentation of the order. Only the last document sent is made available to - # the customer. For more information, see About automated VAT invoicing for + # the customer. For more information, see About automated VAT invoicing for # Shopping Actions. # Corresponds to the JSON property `invoiceReceivingEmail` # @return [String] @@ -4483,10 +4517,8 @@ module Google # cases this selection might not be known, so this field would be empty. If a # customer selected `granted` in their most recent order, they can be subscribed # to marketing emails. Customers who have chosen `denied` must not be subscribed, - # or must be unsubscribed if already opted-in. - # Acceptable values are: - # - "`denied`" - # - "`granted`" + # or must be unsubscribed if already opted-in. Acceptable values are: - "` + # denied`" - "`granted`" # Corresponds to the JSON property `explicitMarketingPreference` # @return [String] attr_accessor :explicit_marketing_preference @@ -4680,9 +4712,7 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :tax_adjustment - # Type of this adjustment. - # Acceptable values are: - # - "`promotion`" + # Type of this adjustment. Acceptable values are: - "`promotion`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -4708,11 +4738,8 @@ module Google # @return [String] attr_accessor :brand - # Condition or state of the item. - # Acceptable values are: - # - "`new`" - # - "`refurbished`" - # - "`used`" + # Condition or state of the item. Acceptable values are: - "`new`" - "` + # refurbished`" - "`used`" # Corresponds to the JSON property `condition` # @return [String] attr_accessor :condition @@ -4767,7 +4794,7 @@ module Google # @return [String] attr_accessor :shown_image - # The CLDR territory code of the target country of the product. + # The CLDR territory // code of the target country of the product. # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country @@ -4916,10 +4943,8 @@ module Google attr_accessor :ship_by_date # Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is - # applicable for this shipment. - # Acceptable values are: - # - "`delivery`" - # - "`pickup`" + # applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup` + # " # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -5049,13 +5074,9 @@ module Google # @return [String] attr_accessor :location_id - # The pickup type of this order. - # Acceptable values are: - # - "`merchantStore`" - # - "`merchantStoreCurbside`" - # - "`merchantStoreLocker`" - # - "`thirdPartyPickupPoint`" - # - "`thirdPartyLocker`" + # The pickup type of this order. Acceptable values are: - "`merchantStore`" - "` + # merchantStoreCurbside`" - "`merchantStoreLocker`" - "`thirdPartyPickupPoint`" - + # "`thirdPartyLocker`" # Corresponds to the JSON property `pickupType` # @return [String] attr_accessor :pickup_type @@ -5123,10 +5144,7 @@ module Google attr_accessor :end_time # Required. The party funding the promotion. Only `merchant` is supported for ` - # orders.createtestorder`. - # Acceptable values are: - # - "`google`" - # - "`merchant`" + # orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`" # Corresponds to the JSON property `funder` # @return [String] attr_accessor :funder @@ -5156,22 +5174,11 @@ module Google attr_accessor :start_time # Required. The category of the promotion. Only `moneyOff` is supported for ` - # orders.createtestorder`. - # Acceptable values are: - # - "`buyMGetMoneyOff`" - # - "`buyMGetNMoneyOff`" - # - "`buyMGetNPercentOff`" - # - "`buyMGetPercentOff`" - # - "`freeGift`" - # - "`freeGiftWithItemId`" - # - "`freeGiftWithValue`" - # - "`freeShippingOvernight`" - # - "`freeShippingStandard`" - # - "`freeShippingTwoDay`" - # - "`moneyOff`" - # - "`percentOff`" - # - "`rewardPoints`" - # - "`salePrice`" + # orders.createtestorder`. Acceptable values are: - "`buyMGetMoneyOff`" - "` + # buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "` + # freeGift`" - "`freeGiftWithItemId`" - "`freeGiftWithValue`" - "` + # freeShippingOvernight`" - "`freeShippingStandard`" - "`freeShippingTwoDay`" - " + # `moneyOff`" - "`percentOff`" - "`rewardPoints`" - "`salePrice`" # Corresponds to the JSON property `subtype` # @return [String] attr_accessor :subtype @@ -5188,10 +5195,7 @@ module Google attr_accessor :title # Required. The scope of the promotion. Only `product` is supported for `orders. - # createtestorder`. - # Acceptable values are: - # - "`product`" - # - "`shipping`" + # createtestorder`. Acceptable values are: - "`product`" - "`shipping`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -5259,13 +5263,8 @@ module Google class OrderRefund include Google::Apis::Core::Hashable - # The actor that created the refund. - # Acceptable values are: - # - "`customer`" - # - "`googleBot`" - # - "`googleCustomerService`" - # - "`googlePayments`" - # - "`googleSabre`" + # The actor that created the refund. Acceptable values are: - "`customer`" - "` + # googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" # - "`merchant`" # Corresponds to the JSON property `actor` # @return [String] @@ -5281,52 +5280,23 @@ module Google # @return [String] attr_accessor :creation_date - # The reason for the refund. - # Acceptable values are: - # - "`adjustment`" - # - "`autoPostInternal`" - # - "`autoPostInvalidBillingAddress`" - # - "`autoPostNoInventory`" - # - "`autoPostPriceError`" - # - "`autoPostUndeliverableShippingAddress`" - # - "`couponAbuse`" - # - "`courtesyAdjustment`" - # - "`customerCanceled`" - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`customerSupportRequested`" - # - "`deliveredLateByCarrier`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`failToPushOrderGoogleError`" - # - "`failToPushOrderMerchantError`" - # - "`failToPushOrderMerchantFulfillmentError`" - # - "`failToPushOrderToMerchant`" - # - "`failToPushOrderToMerchantOutOfStock`" - # - "`feeAdjustment`" - # - "`invalidCoupon`" - # - "`lateShipmentCredit`" - # - "`malformedShippingAddress`" - # - "`merchantDidNotShipOnTime`" - # - "`noInventory`" - # - "`orderTimeout`" - # - "`other`" - # - "`paymentAbuse`" - # - "`paymentDeclined`" - # - "`priceAdjustment`" - # - "`priceError`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`promoReallocation`" - # - "`qualityNotAsExpected`" - # - "`returnRefundAbuse`" - # - "`shippingCostAdjustment`" - # - "`shippingPriceError`" - # - "`taxAdjustment`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the refund. Acceptable values are: - "`adjustment`" - "` + # autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory` + # " - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "` + # couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" + # - "`expiredItem`" - "`failToPushOrderGoogleError`" - "` + # failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - + # "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "` + # feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "` + # malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - " + # `orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "` + # priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "` + # returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "` + # taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "` + # unsupportedPoBoxAddress`" - "`wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -5350,8 +5320,7 @@ module Google end end - # Order disbursement. All methods require the payment analyst role. (== - # resource_for v2.orderreports ==) (== resource_for v2.1.orderreports ==) + # Order disbursement. All methods require the payment analyst role. class OrderReportDisbursement include Google::Apis::Core::Hashable @@ -5465,13 +5434,8 @@ module Google class OrderReturn include Google::Apis::Core::Hashable - # The actor that created the refund. - # Acceptable values are: - # - "`customer`" - # - "`googleBot`" - # - "`googleCustomerService`" - # - "`googlePayments`" - # - "`googleSabre`" + # The actor that created the refund. Acceptable values are: - "`customer`" - "` + # googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" # - "`merchant`" # Corresponds to the JSON property `actor` # @return [String] @@ -5487,21 +5451,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -5529,59 +5485,33 @@ module Google class OrderShipment include Google::Apis::Core::Hashable - # The carrier handling the shipment. - # For supported carriers, Google includes the carrier name and tracking URL in - # emails to customers. For select supported carriers, Google also automatically - # updates the shipment status based on the provided shipment ID. Note: You can - # also use unsupported carriers, but emails to customers will not include the - # carrier name or tracking URL, and there will be no automatic order status - # updates. - # Supported carriers for US are: - # - "`ups`" (United Parcel Service) automatic status updates - # - "`usps`" (United States Postal Service) automatic status updates - # - "`fedex`" (FedEx) automatic status updates - # - "`dhl`" (DHL eCommerce) automatic status updates (US only) - # - "`ontrac`" (OnTrac) automatic status updates - # - "`dhl express`" (DHL Express) - # - "`deliv`" (Deliv) - # - "`dynamex`" (TForce) - # - "`lasership`" (LaserShip) - # - "`mpx`" (Military Parcel Xpress) - # - "`uds`" (United Delivery Service) - # - "`efw`" (Estes Forwarding Worldwide) - # - "`jd logistics`" (JD Logistics) - # - "`yunexpress`" (YunExpress) - # - "`china post`" (China Post) - # - "`china ems`" (China Post Express Mail Service) - # - "`singapore post`" (Singapore Post) - # - "`pos malaysia`" (Pos Malaysia) - # - "`postnl`" (PostNL) - # - "`ptt`" (PTT Turkish Post) - # - "`eub`" (ePacket) - # - "`chukou1`" (Chukou1 Logistics) - # - "`bestex`" (Best Express) - # - "`canada post`" (Canada Post) - # - "`purolator`" (Purolator) - # - "`canpar`" (Canpar) - # - "`india post`" (India Post) - # - "`blue dart`" (Blue Dart) - # - "`delhivery`" (Delhivery) - # - "`dtdc`" (DTDC) - # - "`tpc india`" (TPC India) - # Supported carriers for FR are: - # - "`la poste`" (La Poste) automatic status updates - # - "`colissimo`" (Colissimo by La Poste) automatic status updates - # - "`ups`" (United Parcel Service) automatic status updates - # - "`chronopost`" (Chronopost by La Poste) - # - "`gls`" (General Logistics Systems France) - # - "`dpd`" (DPD Group by GeoPost) - # - "`bpost`" (Belgian Post Group) - # - "`colis prive`" (Colis Privé) - # - "`boxtal`" (Boxtal) - # - "`geodis`" (GEODIS) - # - "`tnt`" (TNT) - # - "`db schenker`" (DB Schenker) - # - "`aramex`" (Aramex) + # The carrier handling the shipment. For supported carriers, Google includes the + # carrier name and tracking URL in emails to customers. For select supported + # carriers, Google also automatically updates the shipment status based on the + # provided shipment ID. *Note:* You can also use unsupported carriers, but + # emails to customers will not include the carrier name or tracking URL, and + # there will be no automatic order status updates. Supported carriers for US are: + # - "`ups`" (United Parcel Service) *automatic status updates* - "`usps`" ( + # United States Postal Service) *automatic status updates* - "`fedex`" (FedEx) * + # automatic status updates * - "`dhl`" (DHL eCommerce) *automatic status updates* + # (US only) - "`ontrac`" (OnTrac) *automatic status updates * - "`dhl express`" + # (DHL Express) - "`deliv`" (Deliv) - "`dynamex`" (TForce) - "`lasership`" ( + # LaserShip) - "`mpx`" (Military Parcel Xpress) - "`uds`" (United Delivery + # Service) - "`efw`" (Estes Forwarding Worldwide) - "`jd logistics`" (JD + # Logistics) - "`yunexpress`" (YunExpress) - "`china post`" (China Post) - "` + # china ems`" (China Post Express Mail Service) - "`singapore post`" (Singapore + # Post) - "`pos malaysia`" (Pos Malaysia) - "`postnl`" (PostNL) - "`ptt`" (PTT + # Turkish Post) - "`eub`" (ePacket) - "`chukou1`" (Chukou1 Logistics) - "`bestex` + # " (Best Express) - "`canada post`" (Canada Post) - "`purolator`" (Purolator) - + # "`canpar`" (Canpar) - "`india post`" (India Post) - "`blue dart`" (Blue Dart) - + # "`delhivery`" (Delhivery) - "`dtdc`" (DTDC) - "`tpc india`" (TPC India) + # Supported carriers for FR are: - "`la poste`" (La Poste) *automatic status + # updates * - "`colissimo`" (Colissimo by La Poste) *automatic status updates* - + # "`ups`" (United Parcel Service) *automatic status updates * - "`chronopost`" ( + # Chronopost by La Poste) - "`gls`" (General Logistics Systems France) - "`dpd`" + # (DPD Group by GeoPost) - "`bpost`" (Belgian Post Group) - "`colis prive`" ( + # Colis Privé) - "`boxtal`" (Boxtal) - "`geodis`" (GEODIS) - "`tnt`" (TNT) - "` + # db schenker`" (DB Schenker) - "`aramex`" (Aramex) # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -5617,12 +5547,8 @@ module Google # @return [String] attr_accessor :shipment_group_id - # The status of the shipment. - # Acceptable values are: - # - "`delivered`" - # - "`readyForPickup`" - # - "`shipped`" - # - "`undeliverable`" + # The status of the shipment. Acceptable values are: - "`delivered`" - "` + # readyForPickup`" - "`shipped`" - "`undeliverable`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -5760,10 +5686,8 @@ module Google class OrderinvoicesCreateChargeInvoiceResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -5836,10 +5760,8 @@ module Google class OrderinvoicesCreateRefundInvoiceResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -5870,52 +5792,23 @@ module Google # @return [String] attr_accessor :description - # [required] Reason for the refund. - # Acceptable values are: - # - "`adjustment`" - # - "`autoPostInternal`" - # - "`autoPostInvalidBillingAddress`" - # - "`autoPostNoInventory`" - # - "`autoPostPriceError`" - # - "`autoPostUndeliverableShippingAddress`" - # - "`couponAbuse`" - # - "`courtesyAdjustment`" - # - "`customerCanceled`" - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`customerSupportRequested`" - # - "`deliveredLateByCarrier`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`failToPushOrderGoogleError`" - # - "`failToPushOrderMerchantError`" - # - "`failToPushOrderMerchantFulfillmentError`" - # - "`failToPushOrderToMerchant`" - # - "`failToPushOrderToMerchantOutOfStock`" - # - "`feeAdjustment`" - # - "`invalidCoupon`" - # - "`lateShipmentCredit`" - # - "`malformedShippingAddress`" - # - "`merchantDidNotShipOnTime`" - # - "`noInventory`" - # - "`orderTimeout`" - # - "`other`" - # - "`paymentAbuse`" - # - "`paymentDeclined`" - # - "`priceAdjustment`" - # - "`priceError`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`promoReallocation`" - # - "`qualityNotAsExpected`" - # - "`returnRefundAbuse`" - # - "`shippingCostAdjustment`" - # - "`shippingPriceError`" - # - "`taxAdjustment`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # [required] Reason for the refund. Acceptable values are: - "`adjustment`" - "` + # autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory` + # " - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "` + # couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" + # - "`expiredItem`" - "`failToPushOrderGoogleError`" - "` + # failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - + # "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "` + # feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "` + # malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - " + # `orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "` + # priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "` + # returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "` + # taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "` + # unsupportedPoBoxAddress`" - "`wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -5940,21 +5833,13 @@ module Google # @return [String] attr_accessor :description - # [required] Reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # [required] Reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6058,10 +5943,8 @@ module Google class OrderreturnsAcknowledgeResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6124,10 +6007,8 @@ module Google class OrderreturnsCreateOrderReturnResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6284,10 +6165,8 @@ module Google class OrderreturnsProcessResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6437,10 +6316,8 @@ module Google class OrdersAcknowledgeResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6507,18 +6384,10 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the cancellation. - # Acceptable values are: - # - "`customerInitiatedCancel`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`noInventory`" - # - "`other`" - # - "`priceError`" - # - "`shippingPriceError`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" + # The reason for the cancellation. Acceptable values are: - "` + # customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - + # "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "` + # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6547,10 +6416,8 @@ module Google class OrdersCancelLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6581,18 +6448,10 @@ module Google # @return [String] attr_accessor :operation_id - # The reason for the cancellation. - # Acceptable values are: - # - "`customerInitiatedCancel`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`noInventory`" - # - "`other`" - # - "`priceError`" - # - "`shippingPriceError`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" + # The reason for the cancellation. Acceptable values are: - "` + # customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - + # "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "` + # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6618,10 +6477,8 @@ module Google class OrdersCancelResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -6647,11 +6504,8 @@ module Google class OrdersCancelTestOrderByCustomerRequest include Google::Apis::Core::Hashable - # The reason for the cancellation. - # Acceptable values are: - # - "`changedMind`" - # - "`orderedWrongItem`" - # - "`other`" + # The reason for the cancellation. Acceptable values are: - "`changedMind`" - "` + # orderedWrongItem`" - "`other`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -6690,25 +6544,18 @@ module Google class OrdersCreateTestOrderRequest include Google::Apis::Core::Hashable - # The CLDR territory code of the country of the test order to create. Affects + # 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`. + # 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. - # Acceptable values are: - # - "`template1`" - # - "`template1a`" - # - "`template1b`" - # - "`template2`" - # - "`template3`" + # template. Acceptable values are: - "`template1`" - "`template1a`" - "` + # template1b`" - "`template2`" - "`template3`" # Corresponds to the JSON property `templateName` # @return [String] attr_accessor :template_name @@ -6907,7 +6754,7 @@ module Google class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo include Google::Apis::Core::Hashable - # The carrier handling the shipment. See `shipments[].carrier` in the Orders + # 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] @@ -6947,8 +6794,7 @@ module Google attr_accessor :kind # Order. Production access (all methods) requires the order manager role. - # Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1. - # orders ==) + # Sandbox access does not. # Corresponds to the JSON property `order` # @return [Google::Apis::ContentV2_1::Order] attr_accessor :order @@ -7021,21 +6867,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7071,10 +6909,8 @@ module Google class OrdersInStoreRefundLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7143,22 +6979,12 @@ module Google # @return [String] attr_accessor :operation_id - # The reason for the refund. - # Acceptable values are: - # - "`shippingCostAdjustment`" - # - "`priceAdjustment`" - # - "`taxAdjustment`" - # - "`feeAdjustment`" - # - "`courtesyAdjustment`" - # - "`adjustment`" - # - "`customerCancelled`" - # - "`noInventory`" - # - "`productNotAsDescribed`" - # - "`undeliverableShippingAddress`" - # - "`wrongProductShipped`" - # - "`lateShipmentCredit`" - # - "`deliveredLateByCarrier`" - # - "`productArrivedDamaged`" + # The reason for the refund. Acceptable values are: - "`shippingCostAdjustment`" + # - "`priceAdjustment`" - "`taxAdjustment`" - "`feeAdjustment`" - "` + # courtesyAdjustment`" - "`adjustment`" - "`customerCancelled`" - "`noInventory`" + # - "`productNotAsDescribed`" - "`undeliverableShippingAddress`" - "` + # wrongProductShipped`" - "`lateShipmentCredit`" - "`deliveredLateByCarrier`" - " + # `productArrivedDamaged`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7192,10 +7018,8 @@ module Google class OrdersRefundItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7239,10 +7063,8 @@ module Google # @return [String] attr_accessor :operation_id - # The reason for the refund. - # Acceptable values are: - # - "`courtesyAdjustment`" - # - "`other`" + # The reason for the refund. Acceptable values are: - "`courtesyAdjustment`" - "` + # other`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7270,10 +7092,8 @@ module Google class OrdersRefundOrderResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7320,13 +7140,8 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`damagedOrUsed`" - # - "`missingComponent`" - # - "`notEligible`" - # - "`other`" - # - "`outOfReturnWindow`" + # The reason for the return. Acceptable values are: - "`damagedOrUsed`" - "` + # missingComponent`" - "`notEligible`" - "`other`" - "`outOfReturnWindow`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7355,10 +7170,8 @@ module Google class OrdersRejectReturnLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7411,21 +7224,13 @@ module Google # @return [Fixnum] attr_accessor :quantity - # The reason for the return. - # Acceptable values are: - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`invalidCoupon`" - # - "`malformedShippingAddress`" - # - "`other`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`qualityNotAsExpected`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # The reason for the return. Acceptable values are: - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "` + # malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`qualityNotAsExpected`" - "` + # undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "` + # wrongProductShipped`" # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -7462,10 +7267,8 @@ module Google class OrdersReturnRefundLineItemResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7530,10 +7333,8 @@ module Google class OrdersSetLineItemMetadataResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7598,10 +7399,8 @@ module Google class OrdersShipLineItemsResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7628,9 +7427,8 @@ module Google include Google::Apis::Core::Hashable # Updated delivery by date, in ISO 8601 format. If not specified only ship by - # date is updated. - # Provided date should be within 1 year timeframe and can not be a date in the - # past. + # date is updated. Provided date should be within 1 year timeframe and can not + # be a date in the past. # Corresponds to the JSON property `deliverByDate` # @return [String] attr_accessor :deliver_by_date @@ -7653,9 +7451,8 @@ module Google attr_accessor :product_id # Updated ship by date, in ISO 8601 format. If not specified only deliver by - # date is updated. - # Provided date should be within 1 year timeframe and can not be a date in the - # past. + # date is updated. Provided date should be within 1 year timeframe and can not + # be a date in the past. # Corresponds to the JSON property `shipByDate` # @return [String] attr_accessor :ship_by_date @@ -7678,10 +7475,8 @@ module Google class OrdersUpdateLineItemShippingDetailsResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7732,10 +7527,8 @@ module Google class OrdersUpdateMerchantOrderIdResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7762,8 +7555,7 @@ module Google 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. + # carrier` in the Orders resource representation for a list of acceptable values. # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -7797,11 +7589,8 @@ module Google # @return [String] attr_accessor :shipment_id - # New status for the shipment. Not updated if missing. - # Acceptable values are: - # - "`delivered`" - # - "`undeliverable`" - # - "`readyForPickup`" + # New status for the shipment. Not updated if missing. Acceptable values are: - " + # `delivered`" - "`undeliverable`" - "`readyForPickup`" # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -7839,10 +7628,8 @@ module Google class OrdersUpdateShipmentResponse include Google::Apis::Core::Hashable - # The status of the execution. - # Acceptable values are: - # - "`duplicate`" - # - "`executed`" + # The status of the execution. Acceptable values are: - "`duplicate`" - "` + # executed`" # Corresponds to the JSON property `executionStatus` # @return [String] attr_accessor :execution_status @@ -7958,13 +7745,8 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`delete`" - # - "`get`" - # - "`insert`" - # - "`inventory`" - # - "`sale`" + # The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - + # "`insert`" - "`inventory`" - "`sale`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -8708,12 +8490,11 @@ module Google end # Required product attributes are primarily defined by the products data - # specification. See the Products Data Specification Help Center article for - # information. - # Some attributes are country-specific, so make sure you select the appropriate - # country in the drop-down selector at the top of the page. - # Product data. After inserting, updating, or deleting a product, it may take - # several minutes before changes take effect. + # specification. See the Products Data Specification Help Center article for + # information. Some attributes are country-specific, so make sure you select the + # appropriate country in the drop-down selector at the top of the page. Product + # data. After inserting, updating, or deleting a product, it may take several + # minutes before changes take effect. class Product include Google::Apis::Core::Hashable @@ -8770,10 +8551,8 @@ module Google # @return [String] attr_accessor :canonical_link - # Required. The item's channel (online or local). - # Acceptable values are: - # - "`local`" - # - "`online`" + # Required. The item's channel (online or local). Acceptable values are: - "` + # local`" - "`online`" # Corresponds to the JSON property `channel` # @return [String] attr_accessor :channel @@ -8897,9 +8676,8 @@ module Google 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. + # this as their `productId` parameter. The REST ID for a product is of the form + # channel:contentLanguage: targetCountry: offerId. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -9000,9 +8778,8 @@ module Google # Required. 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. + # specification for details. *Note:* Content API methods that operate on + # products take the REST ID of the product, *not* this identifier. # Corresponds to the JSON property `offerId` # @return [String] attr_accessor :offer_id @@ -9042,7 +8819,7 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :sale_price - # Date range during which the item is on sale (see products data specification). + # Date range during which the item is on sale (see products data specification ). # Corresponds to the JSON property `salePriceEffectiveDate` # @return [String] attr_accessor :sale_price_effective_date @@ -9108,11 +8885,8 @@ module Google # @return [Array] attr_accessor :sizes - # The source of the offer, i.e., how the offer was created. - # Acceptable values are: - # - "`api`" - # - "`crawl`" - # - "`feed`" + # The source of the offer, i.e., how the offer was created. Acceptable values + # are: - "`api`" - "`crawl`" - "`feed`" # Corresponds to the JSON property `source` # @return [String] attr_accessor :source @@ -9771,22 +9545,18 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`delete`" - # - "`get`" - # - "`insert`" + # The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - + # "`insert`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop # Required product attributes are primarily defined by the products data - # specification. See the Products Data Specification Help Center article for - # information. - # Some attributes are country-specific, so make sure you select the appropriate - # country in the drop-down selector at the top of the page. - # Product data. After inserting, updating, or deleting a product, it may take - # several minutes before changes take effect. + # specification. See the Products Data Specification Help Center article for + # information. Some attributes are country-specific, so make sure you select the + # appropriate country in the drop-down selector at the top of the page. Product + # data. After inserting, updating, or deleting a product, it may take several + # minutes before changes take effect. # Corresponds to the JSON property `product` # @return [Google::Apis::ContentV2_1::Product] attr_accessor :product @@ -9859,12 +9629,11 @@ module Google attr_accessor :kind # Required product attributes are primarily defined by the products data - # specification. See the Products Data Specification Help Center article for - # information. - # Some attributes are country-specific, so make sure you select the appropriate - # country in the drop-down selector at the top of the page. - # Product data. After inserting, updating, or deleting a product, it may take - # several minutes before changes take effect. + # specification. See the Products Data Specification Help Center article for + # information. Some attributes are country-specific, so make sure you select the + # appropriate country in the drop-down selector at the top of the page. Product + # data. After inserting, updating, or deleting a product, it may take several + # minutes before changes take effect. # Corresponds to the JSON property `product` # @return [Google::Apis::ContentV2_1::Product] attr_accessor :product @@ -9959,9 +9728,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" + # The method of the batch entry. Acceptable values are: - "`get`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -10084,8 +9851,7 @@ module Google end # Settings for Pub/Sub notifications, all methods require that the caller is a - # direct user of the merchant center account. (== resource_for v2.1. - # pubsubnotificationsettings ==) + # direct user of the merchant center account. class PubsubNotificationSettings include Google::Apis::Core::Hashable @@ -10100,9 +9866,7 @@ module Google # @return [String] attr_accessor :kind - # List of event types. - # Acceptable values are: - # - "`orderPendingShipment`" + # List of event types. Acceptable values are: - "`orderPendingShipment`" # Corresponds to the JSON property `registeredEvents` # @return [Array] attr_accessor :registered_events @@ -10186,52 +9950,23 @@ module Google # @return [String] attr_accessor :description - # Code of the refund reason. - # Acceptable values are: - # - "`adjustment`" - # - "`autoPostInternal`" - # - "`autoPostInvalidBillingAddress`" - # - "`autoPostNoInventory`" - # - "`autoPostPriceError`" - # - "`autoPostUndeliverableShippingAddress`" - # - "`couponAbuse`" - # - "`courtesyAdjustment`" - # - "`customerCanceled`" - # - "`customerDiscretionaryReturn`" - # - "`customerInitiatedMerchantCancel`" - # - "`customerSupportRequested`" - # - "`deliveredLateByCarrier`" - # - "`deliveredTooLate`" - # - "`expiredItem`" - # - "`failToPushOrderGoogleError`" - # - "`failToPushOrderMerchantError`" - # - "`failToPushOrderMerchantFulfillmentError`" - # - "`failToPushOrderToMerchant`" - # - "`failToPushOrderToMerchantOutOfStock`" - # - "`feeAdjustment`" - # - "`invalidCoupon`" - # - "`lateShipmentCredit`" - # - "`malformedShippingAddress`" - # - "`merchantDidNotShipOnTime`" - # - "`noInventory`" - # - "`orderTimeout`" - # - "`other`" - # - "`paymentAbuse`" - # - "`paymentDeclined`" - # - "`priceAdjustment`" - # - "`priceError`" - # - "`productArrivedDamaged`" - # - "`productNotAsDescribed`" - # - "`promoReallocation`" - # - "`qualityNotAsExpected`" - # - "`returnRefundAbuse`" - # - "`shippingCostAdjustment`" - # - "`shippingPriceError`" - # - "`taxAdjustment`" - # - "`taxError`" - # - "`undeliverableShippingAddress`" - # - "`unsupportedPoBoxAddress`" - # - "`wrongProductShipped`" + # Code of the refund reason. Acceptable values are: - "`adjustment`" - "` + # autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory` + # " - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "` + # couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "` + # customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "` + # customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" + # - "`expiredItem`" - "`failToPushOrderGoogleError`" - "` + # failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - + # "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "` + # feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "` + # malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - " + # `orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "` + # priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "` + # productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "` + # returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "` + # taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "` + # unsupportedPoBoxAddress`" - "`wrongProductShipped`" # Corresponds to the JSON property `reasonCode` # @return [String] attr_accessor :reason_code @@ -10340,9 +10075,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # Method of the batch request entry. - # Acceptable values are: - # - "`insert`" + # Method of the batch request entry. Acceptable values are: - "`insert`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -10437,6 +10170,275 @@ module Google end end + # Represents a repricing rule. A repricing rule is used by shopping serving to + # adjust transactable offer prices if conditions are met. Next ID: 24 + class RepricingRule + include Google::Apis::Core::Hashable + + # Required. Immutable. CLDR country code (e.g. "US"). + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # Required. Time period when the rule should take effect. + # Corresponds to the JSON property `effectiveTimePeriod` + # @return [Google::Apis::ContentV2_1::RepricingRuleEffectiveTime] + attr_accessor :effective_time_period + + # Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is + # selected, only the repricing_rule_id attribute on the product feed is used to + # specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only + # the *_matcher fields are used to filter the offers for offer-rule mapping. If + # the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom + # filter matcher to be eligible for a rule. Size limit: the sum of the number of + # entries in all the matchers should not exceed 20. For example, there can be 15 + # product ids and 5 brands, but not 10 product ids and 11 brands. + # Corresponds to the JSON property `eligibleOfferMatcher` + # @return [Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher] + attr_accessor :eligible_offer_matcher + + # Required. Immutable. The two-letter ISO 639-1 language code associated with + # the repricing rule. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Output only. Immutable. Merchant that owns the repricing rule. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # Represents whether a rule is paused. A paused rule will behave like a non- + # paused rule within CRUD operations, with the major difference that a paused + # rule will not be evaluated and will have no effect on offers. + # Corresponds to the JSON property `paused` + # @return [Boolean] + attr_accessor :paused + alias_method :paused?, :paused + + # Definition of a rule restriction. At least one of the following needs to be + # true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) + # floor.percentage_delta exists If floor.price_delta and floor.percentage_delta + # are both set on a rule, the highest value will be chosen by the Repricer. In + # other words, for a product with a price of $50, if the `floor.percentage_delta` + # is "-10" and the floor.price_delta is "-12", the offer price will only be + # lowered $5 (10% lower than the original offer price). + # Corresponds to the JSON property `restriction` + # @return [Google::Apis::ContentV2_1::RepricingRuleRestriction] + attr_accessor :restriction + + # Output only. Immutable. The ID to uniquely identify each repricing rule. + # Corresponds to the JSON property `ruleId` + # @return [String] + attr_accessor :rule_id + + # The title for the rule. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Required. Immutable. The type of the rule. + # 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) + @effective_time_period = args[:effective_time_period] if args.key?(:effective_time_period) + @eligible_offer_matcher = args[:eligible_offer_matcher] if args.key?(:eligible_offer_matcher) + @language_code = args[:language_code] if args.key?(:language_code) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @paused = args[:paused] if args.key?(:paused) + @restriction = args[:restriction] if args.key?(:restriction) + @rule_id = args[:rule_id] if args.key?(:rule_id) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + end + end + + # + class RepricingRuleEffectiveTime + include Google::Apis::Core::Hashable + + # A list of fixed time periods combined with OR. The maximum number of entries + # is limited to 5. + # Corresponds to the JSON property `fixedTimePeriods` + # @return [Array] + attr_accessor :fixed_time_periods + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fixed_time_periods = args[:fixed_time_periods] if args.key?(:fixed_time_periods) + end + end + + # Definition of a fixed time period. + class RepricingRuleEffectiveTimeFixedTimePeriod + include Google::Apis::Core::Hashable + + # The end time (exclusive) of the period. It can only be hour granularity. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The start time (inclusive) of the period. It can only be hour granularity. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is + # selected, only the repricing_rule_id attribute on the product feed is used to + # specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only + # the *_matcher fields are used to filter the offers for offer-rule mapping. If + # the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom + # filter matcher to be eligible for a rule. Size limit: the sum of the number of + # entries in all the matchers should not exceed 20. For example, there can be 15 + # product ids and 5 brands, but not 10 product ids and 11 brands. + class RepricingRuleEligibleOfferMatcher + include Google::Apis::Core::Hashable + + # Matcher by string attributes. + # Corresponds to the JSON property `brandMatcher` + # @return [Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher] + attr_accessor :brand_matcher + + # Matcher by string attributes. + # Corresponds to the JSON property `itemGroupIdMatcher` + # @return [Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher] + attr_accessor :item_group_id_matcher + + # Determines whether to use the custom matchers or the product feed attribute " + # repricing_rule_id" to specify offer-rule mapping. + # Corresponds to the JSON property `matcherOption` + # @return [String] + attr_accessor :matcher_option + + # Matcher by string attributes. + # Corresponds to the JSON property `offerIdMatcher` + # @return [Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher] + attr_accessor :offer_id_matcher + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand_matcher = args[:brand_matcher] if args.key?(:brand_matcher) + @item_group_id_matcher = args[:item_group_id_matcher] if args.key?(:item_group_id_matcher) + @matcher_option = args[:matcher_option] if args.key?(:matcher_option) + @offer_id_matcher = args[:offer_id_matcher] if args.key?(:offer_id_matcher) + end + end + + # Matcher by string attributes. + class RepricingRuleEligibleOfferMatcherStringMatcher + include Google::Apis::Core::Hashable + + # String attributes, as long as such attribute of an offer is one of the string + # attribute values, the offer is considered as passing the matcher. The string + # matcher checks an offer for inclusivity in the string attributes, not equality. + # Only literal string matching is supported, no regex. + # Corresponds to the JSON property `strAttributes` + # @return [Array] + attr_accessor :str_attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @str_attributes = args[:str_attributes] if args.key?(:str_attributes) + end + end + + # Definition of a rule restriction. At least one of the following needs to be + # true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) + # floor.percentage_delta exists If floor.price_delta and floor.percentage_delta + # are both set on a rule, the highest value will be chosen by the Repricer. In + # other words, for a product with a price of $50, if the `floor.percentage_delta` + # is "-10" and the floor.price_delta is "-12", the offer price will only be + # lowered $5 (10% lower than the original offer price). + class RepricingRuleRestriction + include Google::Apis::Core::Hashable + + # Definition of a boundary. + # Corresponds to the JSON property `floor` + # @return [Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary] + attr_accessor :floor + + # If true, use the AUTO_PRICING_MIN_PRICE offer attribute as the lower bound of + # the rule. If use_auto_pricing_min_price is true, then only offers with ` + # AUTO_PRICING_MIN_PRICE` existing on the offer will get Repricer treatment, + # even if a floor value is set on the rule. Also, if use_auto_pricing_min_price + # is true, the floor restriction will be ignored. + # Corresponds to the JSON property `useAutoPricingMinPrice` + # @return [Boolean] + attr_accessor :use_auto_pricing_min_price + alias_method :use_auto_pricing_min_price?, :use_auto_pricing_min_price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @floor = args[:floor] if args.key?(:floor) + @use_auto_pricing_min_price = args[:use_auto_pricing_min_price] if args.key?(:use_auto_pricing_min_price) + end + end + + # Definition of a boundary. + class RepricingRuleRestrictionBoundary + include Google::Apis::Core::Hashable + + # The percentage delta relative to the offer selling price. This field is signed. + # It must be negative in floor. When it is used in floor, it should be > -100. + # If an offer is selling at $10 and this field is -30 in floor, the repricing + # rule only applies if the calculated new price is >= $7. + # Corresponds to the JSON property `percentageDelta` + # @return [Fixnum] + attr_accessor :percentage_delta + + # The price micros relative to the offer selling price. This field is signed. It + # must be negative in floor. If an offer is selling at $10 and this field is -$2 + # in floor, the repricing rule only applies if the calculated new price is >= $8. + # Corresponds to the JSON property `priceDelta` + # @return [String] + attr_accessor :price_delta + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) + @price_delta = args[:price_delta] if args.key?(:price_delta) + end + end + # Return address resource. class ReturnAddress include Google::Apis::Core::Hashable @@ -10630,12 +10632,8 @@ module Google # most items a minimum of 30 days is required for returns. Exceptions may be # made for electronics or non-returnable items such as food, perishables, and # living things. A policy of less than 30 days can only be applied to those - # items. - # Acceptable values are: - # - "`lastReturnDate`" - # - "`lifetimeReturns`" - # - "`noReturns`" - # - "`numberOfDaysAfterDelivery`" + # items. Acceptable values are: - "`lastReturnDate`" - "`lifetimeReturns`" - "` + # noReturns`" - "`numberOfDaysAfterDelivery`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -10754,11 +10752,8 @@ module Google # @return [String] attr_accessor :delivery_date - # Type of the return method. - # Acceptable values are: - # - "`byMail`" - # - "`contactCustomerSupport`" - # - "`returnless`" + # Type of the return method. Acceptable values are: - "`byMail`" - "` + # contactCustomerSupport`" - "`returnless`" # Corresponds to the JSON property `returnMethodType` # @return [String] attr_accessor :return_method_type @@ -10779,13 +10774,8 @@ module Google # @return [String] attr_accessor :shipping_date - # State of the shipment. - # Acceptable values are: - # - "`completed`" - # - "`new`" - # - "`shipped`" - # - "`undeliverable`" - # - "`pending`" + # State of the shipment. Acceptable values are: - "`completed`" - "`new`" - "` + # shipped`" - "`undeliverable`" - "`pending`" # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -10839,11 +10829,8 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # Method of the batch request entry. - # Acceptable values are: - # - "`delete`" - # - "`get`" - # - "`insert`" + # Method of the batch request entry. Acceptable values are: - "`delete`" - "`get` + # " - "`insert`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -11001,11 +10988,8 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # Method of the batch request entry. - # Acceptable values are: - # - "`delete`" - # - "`get`" - # - "`insert`" + # Method of the batch request entry. Acceptable values are: - "`delete`" - "`get` + # " - "`insert`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -11172,11 +11156,8 @@ module Google # @return [Google::Apis::ContentV2_1::DeliveryTime] attr_accessor :delivery_time - # Eligibility for this service. - # Acceptable values are: - # - "`All scenarios`" - # - "`All scenarios except Shopping Actions`" - # - "`Shopping Actions`" + # Eligibility for this service. Acceptable values are: - "`All scenarios`" - "` + # All scenarios except Shopping Actions`" - "`Shopping Actions`" # Corresponds to the JSON property `eligibility` # @return [String] attr_accessor :eligibility @@ -11213,10 +11194,8 @@ module Google # @return [Array] attr_accessor :rate_groups - # Type of locations this service ships orders to. - # Acceptable values are: - # - "`delivery`" - # - "`pickup`" + # Type of locations this service ships orders to. Acceptable values are: - "` + # delivery`" - "`pickup`" # Corresponds to the JSON property `shipmentType` # @return [String] attr_accessor :shipment_type @@ -11309,8 +11288,7 @@ module Google end end - # Settlement transactions give a detailed breakdown of the settlement report. (= - # = resource_for v2.1.settlementtransactions ==) + # Settlement transactions give a detailed breakdown of the settlement report. class SettlementTransaction include Google::Apis::Core::Hashable @@ -11357,49 +11335,21 @@ module Google # @return [Google::Apis::ContentV2_1::SettlementTransactionAmountCommission] attr_accessor :commission - # The description of the event. - # Acceptable values are: - # - "`taxWithhold`" - # - "`principal`" - # - "`principalAdjustment`" - # - "`shippingFee`" - # - "`merchantRemittedSalesTax`" - # - "`googleRemittedSalesTax`" - # - "`merchantCoupon`" - # - "`merchantCouponTax`" - # - "`merchantRemittedDisposalTax`" - # - "`googleRemittedDisposalTax`" - # - "`merchantRemittedRedemptionFee`" - # - "`googleRemittedRedemptionFee`" - # - "`eeeEcoFee`" - # - "`furnitureEcoFee`" - # - "`copyPrivateFee`" - # - "`eeeEcoFeeCommission`" - # - "`furnitureEcoFeeCommission`" - # - "`copyPrivateFeeCommission`" - # - "`principalRefund`" - # - "`principalRefundTax`" - # - "`itemCommission`" - # - "`adjustmentCommission`" - # - "`shippingFeeCommission`" - # - "`commissionRefund`" - # - "`damaged`" - # - "`damagedOrDefectiveItem`" - # - "`expiredItem`" - # - "`faultyItem`" - # - "`incorrectItemReceived`" - # - "`itemMissing`" - # - "`qualityNotExpected`" - # - "`receivedTooLate`" - # - "`storePackageMissing`" - # - "`transitPackageMissing`" - # - "`unsuccessfulDeliveryUndeliverable`" - # - "`wrongChargeInStore`" - # - "`wrongItem`" - # - "`returns`" - # - "`undeliverable`" - # - "`refundFromMerchant`" - # - "`returnLabelShippingFee`" + # The description of the event. Acceptable values are: - "`taxWithhold`" - "` + # principal`" - "`principalAdjustment`" - "`shippingFee`" - "` + # merchantRemittedSalesTax`" - "`googleRemittedSalesTax`" - "`merchantCoupon`" - + # "`merchantCouponTax`" - "`merchantRemittedDisposalTax`" - "` + # googleRemittedDisposalTax`" - "`merchantRemittedRedemptionFee`" - "` + # googleRemittedRedemptionFee`" - "`eeeEcoFee`" - "`furnitureEcoFee`" - "` + # copyPrivateFee`" - "`eeeEcoFeeCommission`" - "`furnitureEcoFeeCommission`" - "` + # copyPrivateFeeCommission`" - "`principalRefund`" - "`principalRefundTax`" - "` + # itemCommission`" - "`adjustmentCommission`" - "`shippingFeeCommission`" - "` + # commissionRefund`" - "`damaged`" - "`damagedOrDefectiveItem`" - "`expiredItem`" + # - "`faultyItem`" - "`incorrectItemReceived`" - "`itemMissing`" - "` + # qualityNotExpected`" - "`receivedTooLate`" - "`storePackageMissing`" - "` + # transitPackageMissing`" - "`unsuccessfulDeliveryUndeliverable`" - "` + # wrongChargeInStore`" - "`wrongItem`" - "`returns`" - "`undeliverable`" - "` + # refundFromMerchant`" - "`returnLabelShippingFee`" # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -11409,15 +11359,9 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :transaction_amount - # The type of the amount. - # Acceptable values are: - # - "`itemPrice`" - # - "`orderPrice`" - # - "`refund`" - # - "`earlyRefund`" - # - "`courtesyRefund`" - # - "`returnRefund`" - # - "`returnLabelShippingFeeAmount`" + # The type of the amount. Acceptable values are: - "`itemPrice`" - "`orderPrice`" + # - "`refund`" - "`earlyRefund`" - "`courtesyRefund`" - "`returnRefund`" - "` + # returnLabelShippingFeeAmount`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -11439,52 +11383,21 @@ module Google class SettlementTransactionAmountCommission include Google::Apis::Core::Hashable - # The category of the commission. - # Acceptable values are: - # - "`animalsAndPetSupplies`" - # - "`dogCatFoodAndCatLitter`" - # - "`apparelAndAccessories`" - # - "`shoesHandbagsAndSunglasses`" - # - "`costumesAndAccessories`" - # - "`jewelry`" - # - "`watches`" - # - "`hobbiesArtsAndCrafts`" - # - "`homeAndGarden`" - # - "`entertainmentCollectibles`" - # - "`collectibleCoins`" - # - "`sportsCollectibles`" - # - "`sportingGoods`" - # - "`toysAndGames`" - # - "`musicalInstruments`" - # - "`giftCards`" - # - "`babyAndToddler`" - # - "`babyFoodWipesAndDiapers`" - # - "`businessAndIndustrial`" - # - "`camerasOpticsAndPhotography`" - # - "`consumerElectronics`" - # - "`electronicsAccessories`" - # - "`personalComputers`" - # - "`videoGameConsoles`" - # - "`foodAndGrocery`" - # - "`beverages`" - # - "`tobaccoProducts`" - # - "`furniture`" - # - "`hardware`" - # - "`buildingMaterials`" - # - "`tools`" - # - "`healthAndPersonalCare`" - # - "`beauty`" - # - "`householdSupplies`" - # - "`kitchenAndDining`" - # - "`majorAppliances`" - # - "`luggageAndBags`" - # - "`media`" - # - "`officeSupplies`" - # - "`softwareAndVideoGames`" - # - "`vehiclePartsAndAccessories`" - # - "`vehicleTiresAndWheels`" - # - "`vehicles`" - # - "`everythingElse`" + # The category of the commission. Acceptable values are: - "` + # animalsAndPetSupplies`" - "`dogCatFoodAndCatLitter`" - "`apparelAndAccessories` + # " - "`shoesHandbagsAndSunglasses`" - "`costumesAndAccessories`" - "`jewelry`" - + # "`watches`" - "`hobbiesArtsAndCrafts`" - "`homeAndGarden`" - "` + # entertainmentCollectibles`" - "`collectibleCoins`" - "`sportsCollectibles`" - " + # `sportingGoods`" - "`toysAndGames`" - "`musicalInstruments`" - "`giftCards`" - + # "`babyAndToddler`" - "`babyFoodWipesAndDiapers`" - "`businessAndIndustrial`" - + # "`camerasOpticsAndPhotography`" - "`consumerElectronics`" - "` + # electronicsAccessories`" - "`personalComputers`" - "`videoGameConsoles`" - "` + # foodAndGrocery`" - "`beverages`" - "`tobaccoProducts`" - "`furniture`" - "` + # hardware`" - "`buildingMaterials`" - "`tools`" - "`healthAndPersonalCare`" - "` + # beauty`" - "`householdSupplies`" - "`kitchenAndDining`" - "`majorAppliances`" - + # "`luggageAndBags`" - "`media`" - "`officeSupplies`" - "`softwareAndVideoGames` + # " - "`vehiclePartsAndAccessories`" - "`vehicleTiresAndWheels`" - "`vehicles`" - + # "`everythingElse`" # Corresponds to the JSON property `category` # @return [String] attr_accessor :category @@ -11563,16 +11476,11 @@ module Google # @return [String] attr_accessor :post_date - # The type of the transaction that occurred. - # Acceptable values are: - # - "`order`" - # - "`reversal`" - # - "`orderRefund`" - # - "`reversalRefund`" - # - "`issueRelatedRefundAndReplacement`" - # - "`returnLabelShippingFeeTransaction`" - # - "`reversalIssueRelatedRefundAndReplacement`" - # - "`reversalReturnLabelShippingFeeTransaction`" + # The type of the transaction that occurred. Acceptable values are: - "`order`" - + # "`reversal`" - "`orderRefund`" - "`reversalRefund`" - "` + # issueRelatedRefundAndReplacement`" - "`returnLabelShippingFeeTransaction`" - "` + # reversalIssueRelatedRefundAndReplacement`" - "` + # reversalReturnLabelShippingFeeTransaction`" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -11730,38 +11638,13 @@ module Google class ShipmentTrackingInfo include Google::Apis::Core::Hashable - # The shipping carrier that handles the package. - # Acceptable values are: - # - "`boxtal`" - # - "`bpost`" - # - "`chronopost`" - # - "`colisPrive`" - # - "`colissimo`" - # - "`cxt`" - # - "`deliv`" - # - "`dhl`" - # - "`dpd`" - # - "`dynamex`" - # - "`eCourier`" - # - "`easypost`" - # - "`efw`" - # - "`fedex`" - # - "`fedexSmartpost`" - # - "`geodis`" - # - "`gls`" - # - "`googleCourier`" - # - "`gsx`" - # - "`jdLogistics`" - # - "`laPoste`" - # - "`lasership`" - # - "`manual`" - # - "`mpx`" - # - "`onTrac`" - # - "`other`" - # - "`tnt`" - # - "`uds`" - # - "`ups`" - # - "`usps`" + # The shipping carrier that handles the package. Acceptable values are: - "` + # boxtal`" - "`bpost`" - "`chronopost`" - "`colisPrive`" - "`colissimo`" - "`cxt` + # " - "`deliv`" - "`dhl`" - "`dpd`" - "`dynamex`" - "`eCourier`" - "`easypost`" - + # "`efw`" - "`fedex`" - "`fedexSmartpost`" - "`geodis`" - "`gls`" - "` + # googleCourier`" - "`gsx`" - "`jdLogistics`" - "`laPoste`" - "`lasership`" - "` + # manual`" - "`mpx`" - "`onTrac`" - "`other`" - "`tnt`" - "`uds`" - "`ups`" - "` + # usps`" # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier @@ -11853,10 +11736,7 @@ module Google # @return [Fixnum] attr_accessor :merchant_id - # The method of the batch entry. - # Acceptable values are: - # - "`get`" - # - "`update`" + # The method of the batch entry. Acceptable values are: - "`get`" - "`update`" # Corresponds to the JSON property `method` # @return [String] attr_accessor :method_prop @@ -12132,40 +12012,28 @@ module Google # @return [Google::Apis::ContentV2_1::TestOrderPickupDetails] attr_accessor :pickup_details - # Required. The billing address. - # Acceptable values are: - # - "`dwight`" - # - "`jim`" - # - "`pam`" + # Required. The billing address. Acceptable values are: - "`dwight`" - "`jim`" - + # "`pam`" # Corresponds to the JSON property `predefinedBillingAddress` # @return [String] attr_accessor :predefined_billing_address # Required. Identifier of one of the predefined delivery addresses for the - # delivery. - # Acceptable values are: - # - "`dwight`" - # - "`jim`" - # - "`pam`" + # delivery. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" # Corresponds to the JSON property `predefinedDeliveryAddress` # @return [String] attr_accessor :predefined_delivery_address - # Required. Email address of the customer. - # Acceptable values are: - # - "`pog.dwight.schrute@gmail.com`" - # - "`pog.jim.halpert@gmail.com`" - # - "`penpog.pam.beesly@gmail.comding`" + # Required. Email address of the customer. Acceptable values are: - "`pog.dwight. + # schrute@gmail.com`" - "`pog.jim.halpert@gmail.com`" - "`penpog.pam.beesly@ + # gmail.comding`" # Corresponds to the JSON property `predefinedEmail` # @return [String] attr_accessor :predefined_email # Identifier of one of the predefined pickup details. Required for orders - # containing line items with shipping type `pickup`. - # Acceptable values are: - # - "`dwight`" - # - "`jim`" - # - "`pam`" + # containing line items with shipping type `pickup`. Acceptable values are: - "` + # dwight`" - "`jim`" - "`pam`" # Corresponds to the JSON property `predefinedPickupDetails` # @return [String] attr_accessor :predefined_pickup_details @@ -12183,14 +12051,8 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :shipping_cost - # Required. The requested shipping option. - # Acceptable values are: - # - "`economy`" - # - "`expedited`" - # - "`oneDay`" - # - "`sameDay`" - # - "`standard`" - # - "`twoDay`" + # Required. The requested shipping option. Acceptable values are: - "`economy`" - + # "`expedited`" - "`oneDay`" - "`sameDay`" - "`standard`" - "`twoDay`" # Corresponds to the JSON property `shippingOption` # @return [String] attr_accessor :shipping_option @@ -12227,11 +12089,8 @@ module Google 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 + # example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United + # States # Corresponds to the JSON property `fullAddress` # @return [Array] attr_accessor :full_address @@ -12357,17 +12216,13 @@ module Google # @return [String] attr_accessor :brand - # Required. Condition or state of the item. - # Acceptable values are: - # - "`new`" + # Required. Condition or state of the item. Acceptable values are: - "`new`" # Corresponds to the JSON property `condition` # @return [String] attr_accessor :condition - # Required. The two-letter ISO 639-1 language code for the item. - # Acceptable values are: - # - "`en`" - # - "`fr`" + # Required. The two-letter ISO 639-1 language code for the item. Acceptable + # values are: - "`en`" - "`fr`" # Corresponds to the JSON property `contentLanguage` # @return [String] attr_accessor :content_language @@ -12409,7 +12264,7 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :price - # Required. The CLDR territory code of the target country of the product. + # Required. The CLDR territory // code of the target country of the product. # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country @@ -12460,11 +12315,8 @@ module Google # @return [Google::Apis::ContentV2_1::TestOrderAddress] attr_accessor :pickup_location_address - # Pickup location type. - # Acceptable values are: - # - "`locker`" - # - "`store`" - # - "`curbside`" + # Pickup location type. Acceptable values are: - "`locker`" - "`store`" - "` + # curbside`" # Corresponds to the JSON property `pickupLocationType` # @return [String] attr_accessor :pickup_location_type @@ -12632,9 +12484,8 @@ module Google # @return [Google::Apis::ContentV2_1::Amount] attr_accessor :additional_charge_amount - # [required] Type of the additional charge. - # Acceptable values are: - # - "`shipping`" + # [required] Type of the additional charge. Acceptable values are: - "`shipping`" + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -12665,11 +12516,8 @@ module Google # @return [String] attr_accessor :tax_name - # [required] Type of the tax. - # Acceptable values are: - # - "`otherFee`" - # - "`otherFeeTax`" - # - "`sales`" + # [required] Type of the tax. Acceptable values are: - "`otherFee`" - "` + # otherFeeTax`" - "`sales`" # Corresponds to the JSON property `taxType` # @return [String] attr_accessor :tax_type @@ -12740,10 +12588,7 @@ module Google class Weight include Google::Apis::Core::Hashable - # Required. The weight unit. - # Acceptable values are: - # - "`kg`" - # - "`lb`" + # Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index 6cdcc0d76..0d81a9ddc 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -64,6 +64,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AccountLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AccountStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -280,6 +286,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Css + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CustomAttribute class Representation < Google::Apis::Core::JsonRepresentation; end @@ -472,6 +484,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LabelIds + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LiaAboutPageSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -586,6 +604,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListAccountLabelsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListCssesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListRepricingRulesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LocalInventory class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1492,6 +1528,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RepricingRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepricingRuleEffectiveTime + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepricingRuleEffectiveTimeFixedTimePeriod + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepricingRuleEligibleOfferMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepricingRuleEligibleOfferMatcherStringMatcher + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepricingRuleRestriction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepricingRuleRestrictionBoundary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ReturnAddress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1902,6 +1980,16 @@ module Google end end + class AccountLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :description, as: 'description' + property :label_id, :numeric_string => true, as: 'labelId' + property :name, as: 'name' + end + end + class AccountStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2268,6 +2356,18 @@ module Google end end + class Css + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :css_domain_id, :numeric_string => true, as: 'cssDomainId' + property :css_group_id, :numeric_string => true, as: 'cssGroupId' + property :display_name, as: 'displayName' + property :full_name, as: 'fullName' + property :homepage_uri, as: 'homepageUri' + collection :label_ids, as: 'labelIds' + end + end + class CustomAttribute # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2615,6 +2715,13 @@ module Google end end + class LabelIds + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :label_ids, as: 'labelIds' + end + end + class LiaAboutPageSettings # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2801,6 +2908,33 @@ module Google end end + class ListAccountLabelsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_labels, as: 'accountLabels', class: Google::Apis::ContentV2_1::AccountLabel, decorator: Google::Apis::ContentV2_1::AccountLabel::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListCssesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :csses, as: 'csses', class: Google::Apis::ContentV2_1::Css, decorator: Google::Apis::ContentV2_1::Css::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListRepricingRulesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :repricing_rules, as: 'repricingRules', class: Google::Apis::ContentV2_1::RepricingRule, decorator: Google::Apis::ContentV2_1::RepricingRule::Representation + + end + end + class LocalInventory # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4547,6 +4681,78 @@ module Google end end + class RepricingRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' + property :effective_time_period, as: 'effectiveTimePeriod', class: Google::Apis::ContentV2_1::RepricingRuleEffectiveTime, decorator: Google::Apis::ContentV2_1::RepricingRuleEffectiveTime::Representation + + property :eligible_offer_matcher, as: 'eligibleOfferMatcher', class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher, decorator: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher::Representation + + property :language_code, as: 'languageCode' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :paused, as: 'paused' + property :restriction, as: 'restriction', class: Google::Apis::ContentV2_1::RepricingRuleRestriction, decorator: Google::Apis::ContentV2_1::RepricingRuleRestriction::Representation + + property :rule_id, as: 'ruleId' + property :title, as: 'title' + property :type, as: 'type' + end + end + + class RepricingRuleEffectiveTime + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :fixed_time_periods, as: 'fixedTimePeriods', class: Google::Apis::ContentV2_1::RepricingRuleEffectiveTimeFixedTimePeriod, decorator: Google::Apis::ContentV2_1::RepricingRuleEffectiveTimeFixedTimePeriod::Representation + + end + end + + class RepricingRuleEffectiveTimeFixedTimePeriod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + end + end + + class RepricingRuleEligibleOfferMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand_matcher, as: 'brandMatcher', class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher, decorator: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher::Representation + + property :item_group_id_matcher, as: 'itemGroupIdMatcher', class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher, decorator: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher::Representation + + property :matcher_option, as: 'matcherOption' + property :offer_id_matcher, as: 'offerIdMatcher', class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher, decorator: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher::Representation + + end + end + + class RepricingRuleEligibleOfferMatcherStringMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :str_attributes, as: 'strAttributes' + end + end + + class RepricingRuleRestriction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :floor, as: 'floor', class: Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary, decorator: Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary::Representation + + property :use_auto_pricing_min_price, as: 'useAutoPricingMinPrice' + end + end + + class RepricingRuleRestrictionBoundary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :percentage_delta, as: 'percentageDelta' + property :price_delta, as: 'priceDelta' + end + end + class ReturnAddress # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index 5a7bc1755..7064107e0 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -22,8 +22,7 @@ module Google module ContentV2_1 # Content API for Shopping # - # Manages product items, inventory, and Merchant Center accounts for Google - # Shopping. + # Manage your product listings and accounts for Google Shopping # # @example # require 'google/apis/content_v2_1' @@ -31,7 +30,7 @@ module Google # Content = Google::Apis::ContentV2_1 # Alias the module # service = Content::ShoppingContentService.new # - # @see https://developers.google.com/shopping-content + # @see https://developers.google.com/shopping-content/v2/ class ShoppingContentService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -39,27 +38,21 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'content/v2.1/') - @batch_path = 'batch/content/v2.1' + super('https://shoppingcontent.googleapis.com/', '') + @batch_path = 'batch' end # Returns information about the authenticated user. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -72,13 +65,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def authinfo_account(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/authinfo', options) + def authinfo_account(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/accounts/authinfo', options) command.response_representation = Google::Apis::ContentV2_1::AccountsAuthInfoResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountsAuthInfoResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -96,10 +88,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -112,8 +102,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', options) + def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite', options) command.response_representation = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -121,7 +111,6 @@ module Google command.query['overwrite'] = overwrite unless overwrite.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -131,10 +120,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -147,15 +134,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounts/batch', options) + def custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/accounts/batch', options) command.request_representation = Google::Apis::ContentV2_1::AccountsCustomBatchRequest::Representation command.request_object = accounts_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::AccountsCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountsCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -170,10 +156,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -186,14 +170,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options) + def delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/{merchantId}/accounts/{accountId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -210,10 +193,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -226,8 +207,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options) + def get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounts/{accountId}', options) command.response_representation = Google::Apis::ContentV2_1::Account::Representation command.response_class = Google::Apis::ContentV2_1::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -235,7 +216,6 @@ module Google command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -246,10 +226,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -262,8 +240,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/accounts', options) + def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/accounts', options) command.request_representation = Google::Apis::ContentV2_1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2_1::Account::Representation @@ -271,7 +249,6 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -287,10 +264,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -303,8 +278,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/link', options) + def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/accounts/{accountId}/link', options) command.request_representation = Google::Apis::ContentV2_1::AccountsLinkRequest::Representation command.request_object = accounts_link_request_object command.response_representation = Google::Apis::ContentV2_1::AccountsLinkResponse::Representation @@ -313,7 +288,6 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -333,10 +307,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -349,8 +321,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_accounts(merchant_id, label: nil, max_results: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounts', options) + def list_accounts(merchant_id, label: nil, max_results: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounts', options) command.response_representation = Google::Apis::ContentV2_1::AccountsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -360,7 +332,6 @@ module Google command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -378,10 +349,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -394,8 +363,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounts/{accountId}/listlinks', options) + def listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounts/{accountId}/listlinks', options) command.response_representation = Google::Apis::ContentV2_1::AccountsListLinksResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountsListLinksResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -404,7 +373,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -420,10 +388,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -436,8 +402,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options) + def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2.1/{merchantId}/accounts/{accountId}', options) command.request_representation = Google::Apis::ContentV2_1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2_1::Account::Representation @@ -446,7 +412,6 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -459,10 +424,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -475,8 +438,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/updatelabels', options) + def updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/accounts/{accountId}/updatelabels', options) command.request_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsRequest::Representation command.request_object = accounts_update_labels_request_object command.response_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse::Representation @@ -485,7 +448,147 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new label, not assigned to any account. + # @param [Fixnum] account_id + # Required. The id of the account this label belongs to. + # @param [Google::Apis::ContentV2_1::AccountLabel] account_label_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountLabel] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountLabel] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_account_label(account_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/labels', options) + command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation + command.request_object = account_label_object + command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation + command.response_class = Google::Apis::ContentV2_1::AccountLabel + command.params['accountId'] = account_id unless account_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a label and removes it from all accounts to which it was assigned. + # @param [Fixnum] account_id + # Required. The id of the account that owns the label. + # @param [Fixnum] label_id + # Required. The id of the label to delete. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_account_label(account_id, label_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/accounts/{accountId}/labels/{labelId}', options) + command.params['accountId'] = account_id unless account_id.nil? + command.params['labelId'] = label_id unless label_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the labels assigned to an account. + # @param [Fixnum] account_id + # Required. The account id for whose labels are to be listed. + # @param [Fixnum] page_size + # The maximum number of labels to return. The service may return fewer than this + # value. If unspecified, at most 50 labels will be returned. The maximum value + # is 1000; values above 1000 will be coerced to 1000. + # @param [String] page_token + # A page token, received from a previous `ListAccountLabels` call. Provide this + # to retrieve the subsequent page. When paginating, all other parameters + # provided to `ListAccountLabels` must match the call that provided the page + # token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ListAccountLabelsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ListAccountLabelsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_account_labels(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/accounts/{accountId}/labels', options) + command.response_representation = Google::Apis::ContentV2_1::ListAccountLabelsResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ListAccountLabelsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a label. + # @param [Fixnum] account_id + # Required. The id of the account this label belongs to. + # @param [Fixnum] label_id + # Required. The id of the label to update. + # @param [Google::Apis::ContentV2_1::AccountLabel] account_label_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountLabel] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountLabel] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_account_label(account_id, label_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'content/v2.1/accounts/{accountId}/labels/{labelId}', options) + command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation + command.request_object = account_label_object + command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation + command.response_class = Google::Apis::ContentV2_1::AccountLabel + command.params['accountId'] = account_id unless account_id.nil? + command.params['labelId'] = label_id unless label_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -494,10 +597,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -510,15 +611,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accountstatuses/batch', options) + def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/accountstatuses/batch', options) command.request_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest::Representation command.request_object = accountstatuses_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -536,10 +636,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -552,8 +650,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options) + def get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/accountstatuses/{accountId}', options) command.response_representation = Google::Apis::ContentV2_1::AccountStatus::Representation command.response_class = Google::Apis::ContentV2_1::AccountStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -561,7 +659,6 @@ module Google command.query['destinations'] = destinations unless destinations.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -579,10 +676,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -595,8 +690,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accountstatuses', options) + def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/accountstatuses', options) command.response_representation = Google::Apis::ContentV2_1::AccountstatusesListResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountstatusesListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -605,7 +700,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -614,10 +708,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -630,15 +722,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'accounttax/batch', options) + def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/accounttax/batch', options) command.request_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchRequest::Representation command.request_object = accounttax_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -652,10 +743,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -668,15 +757,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options) + def get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounttax/{accountId}', options) command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation command.response_class = Google::Apis::ContentV2_1::AccountTax command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -690,10 +778,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -706,8 +792,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/accounttax', options) + def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounttax', options) command.response_representation = Google::Apis::ContentV2_1::AccounttaxListResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccounttaxListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -715,7 +801,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -731,10 +816,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -747,8 +830,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options) + def update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2.1/{merchantId}/accounttax/{accountId}', options) command.request_representation = Google::Apis::ContentV2_1::AccountTax::Representation command.request_object = account_tax_object command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation @@ -757,7 +840,117 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a single CSS domain by ID. + # @param [Fixnum] css_group_id + # Required. The ID of the managing account. If this parameter is not the same as + # [cssDomainId](#cssDomainId), then this ID must be a CSS group ID and ` + # cssDomainId` must be the ID of a CSS domain affiliated with this group. + # @param [Fixnum] css_domain_id + # Required. The ID of the CSS domain to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Css] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Css] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_css(css_group_id, css_domain_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{cssGroupId}/csses/{cssDomainId}', options) + command.response_representation = Google::Apis::ContentV2_1::Css::Representation + command.response_class = Google::Apis::ContentV2_1::Css + command.params['cssGroupId'] = css_group_id unless css_group_id.nil? + command.params['cssDomainId'] = css_domain_id unless css_domain_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists CSS domains affiliated with a CSS group. + # @param [Fixnum] css_group_id + # Required. The CSS group ID of CSS domains to be listed. + # @param [Fixnum] page_size + # The maximum number of CSS domains to return. The service may return fewer than + # this value. If unspecified, at most 50 CSS domains will be returned. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # @param [String] page_token + # A page token, received from a previous `ListCsses` call. Provide this to + # retrieve the subsequent page. When paginating, all other parameters provided + # to `ListCsses` must match the call that provided the page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ListCssesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ListCssesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_csses(css_group_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{cssGroupId}/csses', options) + command.response_representation = Google::Apis::ContentV2_1::ListCssesResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ListCssesResponse + command.params['cssGroupId'] = css_group_id unless css_group_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates labels that are assigned to a CSS domain by its CSS group. + # @param [Fixnum] css_group_id + # Required. The CSS group ID of the updated CSS domain. + # @param [Fixnum] css_domain_id + # Required. The ID of the updated CSS domain. + # @param [Google::Apis::ContentV2_1::LabelIds] label_ids_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Css] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Css] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def updatelabels_css(css_group_id, css_domain_id, label_ids_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels', options) + command.request_representation = Google::Apis::ContentV2_1::LabelIds::Representation + command.request_object = label_ids_object + command.response_representation = Google::Apis::ContentV2_1::Css::Representation + command.response_class = Google::Apis::ContentV2_1::Css + command.params['cssGroupId'] = css_group_id unless css_group_id.nil? + command.params['cssDomainId'] = css_domain_id unless css_domain_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -767,10 +960,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -783,15 +974,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'datafeeds/batch', options) + def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/datafeeds/batch', options) command.request_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest::Representation command.request_object = datafeeds_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -804,10 +994,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -820,13 +1008,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options) + def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -839,10 +1026,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -855,15 +1040,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', options) + def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow', options) command.response_representation = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse::Representation command.response_class = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -876,10 +1060,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -892,15 +1074,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options) + def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options) command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation command.response_class = Google::Apis::ContentV2_1::Datafeed command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -912,10 +1093,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -928,8 +1107,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/datafeeds', options) + def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/datafeeds', options) command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation @@ -937,7 +1116,6 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -952,10 +1130,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -968,8 +1144,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/datafeeds', options) + def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeeds', options) command.response_representation = Google::Apis::ContentV2_1::DatafeedsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::DatafeedsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -977,7 +1153,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -992,10 +1167,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1008,8 +1181,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options) + def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options) command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation @@ -1018,7 +1191,6 @@ module Google command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1027,10 +1199,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1043,15 +1213,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'datafeedstatuses/batch', options) + def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/datafeedstatuses/batch', options) command.request_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest::Representation command.request_object = datafeedstatuses_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1074,10 +1243,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1090,8 +1257,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options) + def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}', options) command.response_representation = Google::Apis::ContentV2_1::DatafeedStatus::Representation command.response_class = Google::Apis::ContentV2_1::DatafeedStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1100,7 +1267,6 @@ module Google command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1115,10 +1281,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1131,8 +1295,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options) + def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeedstatuses', options) command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesListResponse::Representation command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1140,7 +1304,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1150,10 +1313,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1166,15 +1327,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'liasettings/batch', options) + def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/liasettings/batch', options) command.request_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest::Representation command.request_object = liasettings_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1188,10 +1348,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1204,15 +1362,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', options) + def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings/{accountId}', options) command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation command.response_class = Google::Apis::ContentV2_1::LiaSettings command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1227,10 +1384,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1243,15 +1398,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options) + def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options) command.response_representation = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse::Representation command.response_class = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1265,10 +1419,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1281,8 +1433,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/liasettings', options) + def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings', options) command.response_representation = Google::Apis::ContentV2_1::LiasettingsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::LiasettingsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1290,7 +1442,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1299,10 +1450,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1315,13 +1464,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listposdataproviders_liasetting(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'liasettings/posdataproviders', options) + def listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/liasettings/posdataproviders', options) command.response_representation = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse::Representation command.response_class = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1337,10 +1485,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1353,8 +1499,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options) + def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess', options) command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse::Representation command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1362,7 +1508,6 @@ module Google command.query['gmbEmail'] = gmb_email unless gmb_email.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1379,10 +1524,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1395,8 +1538,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options) + def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options) command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse::Representation command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1404,7 +1547,6 @@ module Google command.params['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1427,10 +1569,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1443,8 +1583,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email, contact_name, country, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options) + def setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email: nil, contact_name: nil, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options) command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse::Representation command.response_class = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1455,7 +1595,6 @@ module Google command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1476,10 +1615,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1492,8 +1629,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options) + def setposdataprovider_liasetting(merchant_id, account_id, country: nil, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider', options) command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse::Representation command.response_class = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1503,7 +1640,6 @@ module Google command.query['posExternalAccountId'] = pos_external_account_id unless pos_external_account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1519,10 +1655,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1535,8 +1669,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', options) + def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2.1/{merchantId}/liasettings/{accountId}', options) command.request_representation = Google::Apis::ContentV2_1::LiaSettings::Representation command.request_object = lia_settings_object command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation @@ -1545,7 +1679,6 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1554,10 +1687,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1570,15 +1701,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'localinventory/batch', options) + def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/localinventory/batch', options) command.request_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchRequest::Representation command.request_object = localinventory_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1592,10 +1722,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1608,8 +1736,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/products/{productId}/localinventory', options) + def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/products/{productId}/localinventory', options) command.request_representation = Google::Apis::ContentV2_1::LocalInventory::Representation command.request_object = local_inventory_object command.response_representation = Google::Apis::ContentV2_1::LocalInventory::Representation @@ -1618,7 +1746,6 @@ module Google command.params['productId'] = product_id unless product_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1633,10 +1760,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1649,8 +1774,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options) + def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options) command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest::Representation command.request_object = orderinvoices_create_charge_invoice_request_object command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse::Representation @@ -1659,7 +1784,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1676,10 +1800,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1692,8 +1814,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options) + def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options) command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest::Representation command.request_object = orderinvoices_create_refund_invoice_request_object command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse::Representation @@ -1702,7 +1824,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1710,11 +1831,11 @@ module Google # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. - # @param [String] disbursement_start_date - # The first date which disbursements occurred. In ISO 8601 format. # @param [String] disbursement_end_date # The last date which disbursements occurred. In ISO 8601 format. Default: # current date. + # @param [String] disbursement_start_date + # The first date which disbursements occurred. In ISO 8601 format. # @param [Fixnum] max_results # The maximum number of disbursements to return in the response, used for paging. # @param [String] page_token @@ -1722,10 +1843,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1738,8 +1857,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listdisbursements_orderreport(merchant_id, disbursement_start_date, disbursement_end_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', options) + def listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreports/disbursements', options) command.response_representation = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1749,7 +1868,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1760,8 +1878,6 @@ module Google # account. # @param [String] disbursement_id # The Google-provided ID of the disbursement (found in Wallet). - # @param [String] transaction_start_date - # The first date in which transaction occurred. In ISO 8601 format. # @param [Fixnum] max_results # The maximum number of disbursements to return in the response, used for paging. # @param [String] page_token @@ -1769,13 +1885,13 @@ module Google # @param [String] transaction_end_date # The last date in which transaction occurred. In ISO 8601 format. Default: # current date. + # @param [String] transaction_start_date + # The first date in which transaction occurred. In ISO 8601 format. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1788,8 +1904,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def listtransactions_orderreport(merchant_id, disbursement_id, transaction_start_date, max_results: nil, page_token: nil, transaction_end_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options) + def listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options) command.response_representation = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -1800,7 +1916,6 @@ module Google command.query['transactionStartDate'] = transaction_start_date unless transaction_start_date.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1814,10 +1929,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1830,8 +1943,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/acknowledge', options) + def acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge', options) command.request_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeRequest::Representation command.request_object = orderreturns_acknowledge_request_object command.response_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse::Representation @@ -1840,7 +1953,6 @@ module Google command.params['returnId'] = return_id unless return_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1852,10 +1964,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1868,8 +1978,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderreturns/createOrderReturn', options) + def createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/createOrderReturn', options) command.request_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnRequest::Representation command.request_object = orderreturns_create_order_return_request_object command.response_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse::Representation @@ -1877,7 +1987,6 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1890,10 +1999,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1906,15 +2013,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options) + def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreturns/{returnId}', options) command.response_representation = Google::Apis::ContentV2_1::MerchantOrderReturn::Representation command.response_class = Google::Apis::ContentV2_1::MerchantOrderReturn command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnId'] = return_id unless return_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1926,9 +2032,9 @@ module Google # Obtains order returns that match the acknowledgement status. When set to true, # obtains order returns that have been acknowledged. When false, obtains order # returns that have not been acknowledged. When not provided, obtains order - # returns regardless of their acknowledgement status. - # We recommend using this filter set to `false`, in conjunction with the ` - # acknowledge` call, such that only un-acknowledged order returns are returned. + # returns regardless of their acknowledgement status. We recommend using this + # filter set to `false`, in conjunction with the `acknowledge` call, such that + # only un-acknowledged order returns are returned. # @param [String] created_end_date # Obtains order returns created before this date (inclusively), in ISO 8601 # format. @@ -1938,10 +2044,10 @@ module Google # @param [Array, String] google_order_ids # Obtains order returns with the specified order ids. If this parameter is # provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, - # shipmentState and acknowledged parameters must be not set. - # Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the - # obtained results will include all order returns that either match the - # specified order id or the specified tracking number. + # shipmentState and acknowledged parameters must be not set. Note: if + # googleOrderId and shipmentTrackingNumber parameters are provided, the obtained + # results will include all order returns that either match the specified order + # id or the specified tracking number. # @param [Fixnum] max_results # The maximum number of order returns to return in the response, used for paging. # The default value is 25 returns per page, and the maximum allowed value is @@ -1961,10 +2067,10 @@ module Google # @param [Array, String] shipment_tracking_numbers # Obtains order returns with the specified tracking numbers. If this parameter # is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, - # shipmentState and acknowledged parameters must be not set. - # Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the - # obtained results will include all order returns that either match the - # specified order id or the specified tracking number. + # shipmentState and acknowledged parameters must be not set. Note: if + # googleOrderId and shipmentTrackingNumber parameters are provided, the obtained + # results will include all order returns that either match the specified order + # id or the specified tracking number. # @param [Array, String] shipment_types # Obtains order returns that match any shipment type provided in this parameter. # When this parameter is not provided, order returns are obtained regardless of @@ -1972,10 +2078,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1988,8 +2092,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_orderreturns(merchant_id, acknowledged: nil, created_end_date: nil, created_start_date: nil, google_order_ids: nil, max_results: nil, order_by: nil, page_token: nil, shipment_states: nil, shipment_status: nil, shipment_tracking_numbers: nil, shipment_types: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orderreturns', options) + def list_orderreturns(merchant_id, acknowledged: nil, created_end_date: nil, created_start_date: nil, google_order_ids: nil, max_results: nil, order_by: nil, page_token: nil, shipment_states: nil, shipment_status: nil, shipment_tracking_numbers: nil, shipment_types: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreturns', options) command.response_representation = Google::Apis::ContentV2_1::OrderreturnsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrderreturnsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -2006,7 +2110,6 @@ module Google command.query['shipmentTypes'] = shipment_types unless shipment_types.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2020,10 +2123,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2036,8 +2137,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/process', options) + def process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/{returnId}/process', options) command.request_representation = Google::Apis::ContentV2_1::OrderreturnsProcessRequest::Representation command.request_object = orderreturns_process_request_object command.response_representation = Google::Apis::ContentV2_1::OrderreturnsProcessResponse::Representation @@ -2046,7 +2147,6 @@ module Google command.params['returnId'] = return_id unless return_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2060,10 +2160,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2076,8 +2174,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options) + def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/acknowledge', options) command.request_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeRequest::Representation command.request_object = orders_acknowledge_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse::Representation @@ -2086,7 +2184,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2100,10 +2197,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2116,15 +2211,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options) + def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders/{orderId}/advance', options) command.response_representation = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2138,10 +2232,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2154,8 +2246,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options) + def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/cancel', options) command.request_representation = Google::Apis::ContentV2_1::OrdersCancelRequest::Representation command.request_object = orders_cancel_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersCancelResponse::Representation @@ -2164,7 +2256,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2178,10 +2269,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2194,8 +2283,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options) + def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem', options) command.request_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemRequest::Representation command.request_object = orders_cancel_line_item_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse::Representation @@ -2204,7 +2293,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2218,10 +2306,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2234,8 +2320,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options) + def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer', options) command.request_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest::Representation command.request_object = orders_cancel_test_order_by_customer_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse::Representation @@ -2244,7 +2330,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2256,10 +2341,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2272,8 +2355,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/testorders', options) + def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders', options) command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest::Representation command.request_object = orders_create_test_order_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse::Representation @@ -2281,7 +2364,6 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2295,10 +2377,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2311,8 +2391,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options) + def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/testreturn', options) command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest::Representation command.request_object = orders_create_test_return_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse::Representation @@ -2321,7 +2401,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2334,10 +2413,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2350,15 +2427,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options) + def get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/orders/{orderId}', options) command.response_representation = Google::Apis::ContentV2_1::Order::Representation command.response_class = Google::Apis::ContentV2_1::Order command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2371,10 +2447,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2387,15 +2461,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options) + def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}', options) command.response_representation = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2411,10 +2484,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2427,8 +2498,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options) + def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/testordertemplates/{templateName}', options) command.response_representation = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -2436,19 +2507,17 @@ module Google command.query['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Deprecated. Notifies that item return and refund was handled directly by # merchant outside of Google payments processing (e.g. cash refund done in store) - # . - # Note: We recommend calling the returnrefundlineitem method to refund in-store - # returns. We will issue the refund directly to the customer. This helps to - # prevent possible differences arising between merchant and Google transaction - # records. We also recommend having the point of sale system communicate with - # Google to ensure that customers do not receive a double refund by first - # refunding via Google then via an in-store return. + # . Note: We recommend calling the returnrefundlineitem method to refund in- + # store returns. We will issue the refund directly to the customer. This helps + # to prevent possible differences arising between merchant and Google + # transaction records. We also recommend having the point of sale system + # communicate with Google to ensure that customers do not receive a double + # refund by first refunding via Google then via an in-store return. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. @@ -2458,10 +2527,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2474,8 +2541,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options) + def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem', options) command.request_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest::Representation command.request_object = orders_in_store_refund_line_item_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse::Representation @@ -2484,7 +2551,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2495,18 +2561,16 @@ module Google # @param [Boolean] acknowledged # Obtains orders that match the acknowledgement status. When set to true, # obtains orders that have been acknowledged. When false, obtains orders that - # have not been acknowledged. - # We recommend using this filter set to `false`, in conjunction with the ` - # acknowledge` call, such that only un-acknowledged orders are returned. + # have not been acknowledged. We recommend using this filter set to `false`, in + # conjunction with the `acknowledge` call, such that only un-acknowledged orders + # are returned. # @param [Fixnum] max_results # The maximum number of orders to return in the response, used for paging. The # default value is 25 orders per page, and the maximum allowed value is 250 # orders per page. # @param [String] order_by - # Order results by placement date in descending or ascending order. - # Acceptable values are: - # - placedDateAsc - # - placedDateDesc + # Order results by placement date in descending or ascending order. Acceptable + # values are: - placedDateAsc - placedDateDesc # @param [String] page_token # The token returned by the previous request. # @param [String] placed_date_end @@ -2521,10 +2585,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2537,8 +2599,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/orders', options) + def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/orders', options) command.response_representation = Google::Apis::ContentV2_1::OrdersListResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrdersListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -2551,7 +2613,6 @@ module Google command.query['statuses'] = statuses unless statuses.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2565,10 +2626,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2581,8 +2640,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refunditem', options) + def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/refunditem', options) command.request_representation = Google::Apis::ContentV2_1::OrdersRefundItemRequest::Representation command.request_object = orders_refund_item_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersRefundItemResponse::Representation @@ -2591,7 +2650,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2605,10 +2663,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2621,8 +2677,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refundorder', options) + def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/refundorder', options) command.request_representation = Google::Apis::ContentV2_1::OrdersRefundOrderRequest::Representation command.request_object = orders_refund_order_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersRefundOrderResponse::Representation @@ -2631,7 +2687,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2645,10 +2700,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2661,8 +2714,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options) + def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem', options) command.request_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest::Representation command.request_object = orders_reject_return_line_item_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse::Representation @@ -2671,7 +2724,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2690,10 +2742,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2706,8 +2756,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options) + def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem', options) command.request_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest::Representation command.request_object = orders_return_refund_line_item_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse::Representation @@ -2716,7 +2766,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2734,10 +2783,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2750,8 +2797,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options) + def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata', options) command.request_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest::Representation command.request_object = orders_set_line_item_metadata_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse::Representation @@ -2760,7 +2807,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2774,10 +2820,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2790,8 +2834,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options) + def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/shipLineItems', options) command.request_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsRequest::Representation command.request_object = orders_ship_line_items_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse::Representation @@ -2800,7 +2844,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2814,10 +2857,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2830,8 +2871,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options) + def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options) command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest::Representation command.request_object = orders_update_line_item_shipping_details_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse::Representation @@ -2840,7 +2881,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2854,10 +2894,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2870,8 +2908,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options) + def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId', options) command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest::Representation command.request_object = orders_update_merchant_order_id_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse::Representation @@ -2880,7 +2918,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2894,10 +2931,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2910,8 +2945,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options) + def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateShipment', options) command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest::Representation command.request_object = orders_update_shipment_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse::Representation @@ -2920,7 +2955,6 @@ module Google command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2929,10 +2963,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2945,15 +2977,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'pos/batch', options) + def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/pos/batch', options) command.request_representation = Google::Apis::ContentV2_1::PosCustomBatchRequest::Representation command.request_object = pos_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::PosCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::PosCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2967,10 +2998,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -2983,14 +3012,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options) + def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil? command.params['storeCode'] = store_code unless store_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3004,10 +3032,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3020,8 +3046,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options) + def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options) command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation command.response_class = Google::Apis::ContentV2_1::PosStore command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3029,7 +3055,6 @@ module Google command.params['storeCode'] = store_code unless store_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3042,10 +3067,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3058,8 +3081,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options) + def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store', options) command.request_representation = Google::Apis::ContentV2_1::PosStore::Representation command.request_object = pos_store_object command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation @@ -3068,7 +3091,6 @@ module Google command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3081,10 +3103,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3097,8 +3117,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options) + def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory', options) command.request_representation = Google::Apis::ContentV2_1::PosInventoryRequest::Representation command.request_object = pos_inventory_request_object command.response_representation = Google::Apis::ContentV2_1::PosInventoryResponse::Representation @@ -3107,7 +3127,6 @@ module Google command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3119,10 +3138,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3135,15 +3152,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options) + def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store', options) command.response_representation = Google::Apis::ContentV2_1::PosListResponse::Representation command.response_class = Google::Apis::ContentV2_1::PosListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3156,10 +3172,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3172,8 +3186,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options) + def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/sale', options) command.request_representation = Google::Apis::ContentV2_1::PosSaleRequest::Representation command.request_object = pos_sale_request_object command.response_representation = Google::Apis::ContentV2_1::PosSaleResponse::Representation @@ -3182,7 +3196,6 @@ module Google command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3191,10 +3204,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3207,15 +3218,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'products/batch', options) + def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/products/batch', options) command.request_representation = Google::Apis::ContentV2_1::ProductsCustomBatchRequest::Representation command.request_object = products_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::ProductsCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::ProductsCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3230,10 +3240,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3246,14 +3254,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/products/{productId}', options) + def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/{merchantId}/products/{productId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['feedId'] = feed_id unless feed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3266,10 +3273,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3282,15 +3287,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/products/{productId}', options) + def get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/products/{productId}', options) command.response_representation = Google::Apis::ContentV2_1::Product::Representation command.response_class = Google::Apis::ContentV2_1::Product command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3306,10 +3310,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3322,8 +3324,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/products', options) + def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/products', options) command.request_representation = Google::Apis::ContentV2_1::Product::Representation command.request_object = product_object command.response_representation = Google::Apis::ContentV2_1::Product::Representation @@ -3332,7 +3334,6 @@ module Google command.query['feedId'] = feed_id unless feed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3349,10 +3350,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3365,8 +3364,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/products', options) + def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/products', options) command.response_representation = Google::Apis::ContentV2_1::ProductsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::ProductsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3374,7 +3373,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3383,10 +3381,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3399,15 +3395,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'productstatuses/batch', options) + def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/productstatuses/batch', options) command.request_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest::Representation command.request_object = productstatuses_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3423,10 +3418,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3439,8 +3432,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options) + def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/productstatuses/{productId}', options) command.response_representation = Google::Apis::ContentV2_1::ProductStatus::Representation command.response_class = Google::Apis::ContentV2_1::ProductStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3448,7 +3441,6 @@ module Google command.query['destinations'] = destinations unless destinations.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3467,10 +3459,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3483,8 +3473,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/productstatuses', options) + def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/productstatuses', options) command.response_representation = Google::Apis::ContentV2_1::ProductstatusesListResponse::Representation command.response_class = Google::Apis::ContentV2_1::ProductstatusesListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3493,7 +3483,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3503,10 +3492,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3519,14 +3506,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/pubsubnotificationsettings', options) + def get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/pubsubnotificationsettings', options) command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation command.response_class = Google::Apis::ContentV2_1::PubsubNotificationSettings command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3538,10 +3524,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3554,8 +3538,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/pubsubnotificationsettings', options) + def update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2.1/{merchantId}/pubsubnotificationsettings', options) command.request_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation command.request_object = pubsub_notification_settings_object command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation @@ -3563,7 +3547,6 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3573,10 +3556,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3589,15 +3570,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'regionalinventory/batch', options) + def custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/regionalinventory/batch', options) command.request_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequest::Representation command.request_object = regionalinventory_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3613,10 +3593,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3629,8 +3607,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/products/{productId}/regionalinventory', options) + def insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/products/{productId}/regionalinventory', options) command.request_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation command.request_object = regional_inventory_object command.response_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation @@ -3639,55 +3617,55 @@ module Google command.params['productId'] = product_id unless product_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Batches multiple return address related calls in a single request. - # @param [Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest] returnaddress_custom_batch_request_object + # Creates a repricing rule for your Merchant Center account. + # @param [Fixnum] merchant_id + # Required. The id of the merchant who owns the repricing rule. + # @param [Google::Apis::ContentV2_1::RepricingRule] repricing_rule_object + # @param [String] rule_id + # Required. The id of the rule to create. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse] parsed result object + # @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse] + # @return [Google::Apis::ContentV2_1::RepricingRule] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'returnaddress/batch', options) - command.request_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest::Representation - command.request_object = returnaddress_custom_batch_request_object - command.response_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse::Representation - command.response_class = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse + def create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/repricingrules', options) + command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation + command.request_object = repricing_rule_object + command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation + command.response_class = Google::Apis::ContentV2_1::RepricingRule + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Deletes a return address for the given Merchant Center account. + # Deletes a repricing rule in your Merchant Center account. # @param [Fixnum] merchant_id - # The Merchant Center account from which to delete the given return address. - # @param [String] return_address_id - # Return address ID generated by Google. + # Required. The id of the merchant who owns the repricing rule. + # @param [String] rule_id + # Required. The id of the rule to Delete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3700,13 +3678,194 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/returnaddress/{returnAddressId}', options) + def delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options) + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['ruleId'] = rule_id unless rule_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a repricing rule from your Merchant Center account. + # @param [Fixnum] merchant_id + # Required. The id of the merchant who owns the repricing rule. + # @param [String] rule_id + # Required. The id of the rule to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::RepricingRule] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options) + command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation + command.response_class = Google::Apis::ContentV2_1::RepricingRule + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['ruleId'] = rule_id unless rule_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the repricing rules in your Merchant Center account. + # @param [Fixnum] merchant_id + # Required. The id of the merchant who owns the repricing rule. + # @param [String] country_code + # CLDR country code (e.g. "US"), used as a filter on repricing rules. + # @param [String] language_code + # The two-letter ISO 639-1 language code associated with the repricing rule, + # used as a filter. + # @param [Fixnum] page_size + # The maximum number of repricing rules to return. The service may return fewer + # than this value. If unspecified, at most 50 rules will be returned. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # @param [String] page_token + # A page token, received from a previous `ListRepricingRules` call. Provide this + # to retrieve the subsequent page. When paginating, all other parameters + # provided to `ListRepricingRules` must match the call that provided the page + # token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ListRepricingRulesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ListRepricingRulesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_repricingrules(merchant_id, country_code: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/repricingrules', options) + command.response_representation = Google::Apis::ContentV2_1::ListRepricingRulesResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ListRepricingRulesResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['countryCode'] = country_code unless country_code.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a repricing rule in your Merchant Center account. All mutable fields + # will be overwritten in each update request. In each update, you must provide + # all required mutable fields, or an error will be thrown. If you do not provide + # an optional field in the update request, if that field currently exists, it + # will be deleted from the rule. + # @param [Fixnum] merchant_id + # Required. The id of the merchant who owns the repricing rule. + # @param [String] rule_id + # Required. The id of the rule to update. + # @param [Google::Apis::ContentV2_1::RepricingRule] repricing_rule_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::RepricingRule] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options) + command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation + command.request_object = repricing_rule_object + command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation + command.response_class = Google::Apis::ContentV2_1::RepricingRule + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['ruleId'] = rule_id unless rule_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Batches multiple return address related calls in a single request. + # @param [Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest] returnaddress_custom_batch_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/returnaddress/batch', options) + command.request_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest::Representation + command.request_object = returnaddress_custom_batch_request_object + command.response_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a return address for the given Merchant Center account. + # @param [Fixnum] merchant_id + # The Merchant Center account from which to delete the given return address. + # @param [String] return_address_id + # Return address ID generated by Google. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnaddress/{returnAddressId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnAddressId'] = return_address_id unless return_address_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3718,10 +3877,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3734,15 +3891,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/returnaddress/{returnAddressId}', options) + def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnaddress/{returnAddressId}', options) command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation command.response_class = Google::Apis::ContentV2_1::ReturnAddress command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnAddressId'] = return_address_id unless return_address_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3753,10 +3909,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3769,8 +3923,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/returnaddress', options) + def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnaddress', options) command.request_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation command.request_object = return_address_object command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation @@ -3778,7 +3932,6 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3795,10 +3948,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3811,8 +3962,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/returnaddress', options) + def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnaddress', options) command.response_representation = Google::Apis::ContentV2_1::ReturnaddressListResponse::Representation command.response_class = Google::Apis::ContentV2_1::ReturnaddressListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -3821,7 +3972,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3830,10 +3980,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3846,15 +3994,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'returnpolicy/batch', options) + def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/returnpolicy/batch', options) command.request_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequest::Representation command.request_object = returnpolicy_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3866,10 +4013,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3882,13 +4027,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{merchantId}/returnpolicy/{returnPolicyId}', options) + def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}', options) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3900,10 +4044,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3916,15 +4058,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/returnpolicy/{returnPolicyId}', options) + def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}', options) command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation command.response_class = Google::Apis::ContentV2_1::ReturnPolicy command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3935,10 +4076,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3951,8 +4090,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{merchantId}/returnpolicy', options) + def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnpolicy', options) command.request_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation command.request_object = return_policy_object command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation @@ -3960,7 +4099,6 @@ module Google command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -3970,10 +4108,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -3986,14 +4122,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/returnpolicy', options) + def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicy', options) command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyListResponse::Representation command.response_class = Google::Apis::ContentV2_1::ReturnpolicyListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4005,10 +4140,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4021,15 +4154,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}', options) + def get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports/{settlementId}', options) command.response_representation = Google::Apis::ContentV2_1::SettlementReport::Representation command.response_class = Google::Apis::ContentV2_1::SettlementReport command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['settlementId'] = settlement_id unless settlement_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4051,10 +4183,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4067,8 +4197,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_settlementreports(merchant_id, max_results: nil, page_token: nil, transfer_end_date: nil, transfer_start_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/settlementreports', options) + def list_settlementreports(merchant_id, max_results: nil, page_token: nil, transfer_end_date: nil, transfer_start_date: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports', options) command.response_representation = Google::Apis::ContentV2_1::SettlementreportsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::SettlementreportsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -4078,7 +4208,6 @@ module Google command.query['transferStartDate'] = transfer_start_date unless transfer_start_date.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4099,10 +4228,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4115,8 +4242,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}/transactions', options) + def list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions', options) command.response_representation = Google::Apis::ContentV2_1::SettlementtransactionsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::SettlementtransactionsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -4126,7 +4253,6 @@ module Google command.query['transactionIds'] = transaction_ids unless transaction_ids.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4136,10 +4262,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4152,15 +4276,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'shippingsettings/batch', options) + def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/shippingsettings/batch', options) command.request_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest::Representation command.request_object = shippingsettings_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4174,10 +4297,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4190,15 +4311,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options) + def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/shippingsettings/{accountId}', options) command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation command.response_class = Google::Apis::ContentV2_1::ShippingSettings command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4208,10 +4328,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4224,14 +4342,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/supportedCarriers', options) + def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedCarriers', options) command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse::Representation command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4241,10 +4358,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4257,14 +4372,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/supportedHolidays', options) + def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedHolidays', options) command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse::Representation command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4274,10 +4388,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4290,14 +4402,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/supportedPickupServices', options) + def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedPickupServices', options) command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse::Representation command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4313,10 +4424,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4329,8 +4438,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{merchantId}/shippingsettings', options) + def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/shippingsettings', options) command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::ShippingsettingsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? @@ -4338,7 +4447,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4354,10 +4462,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -4370,8 +4476,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options) + def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'content/v2.1/{merchantId}/shippingsettings/{accountId}', options) command.request_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation command.request_object = shipping_settings_object command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation @@ -4380,7 +4486,6 @@ module Google command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -4389,7 +4494,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/content_v2_1/synth.metadata b/generated/google/apis/content_v2_1/synth.metadata index 429012f74..7df8ec661 100644 --- a/generated/google/apis/content_v2_1/synth.metadata +++ b/generated/google/apis/content_v2_1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "9a89003a7c09c1981bf1d46ddd74c9997efaf69d" } } ]