From 7f669492c92efd4fad8e9030aa5c3d9e7608d476 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 6 Dec 2018 00:36:26 +0000 Subject: [PATCH] Autogenerated update (2018-12-06) Update: - alertcenter_v1beta1 - cloudasset_v1beta1 - content_v2 - streetviewpublish_v1 - vision_v1 --- api_names_out.yaml | 1581 +++ generated/google/apis/alertcenter_v1beta1.rb | 5 +- generated/google/apis/cloudasset_v1beta1.rb | 2 +- .../google/apis/cloudasset_v1beta1/classes.rb | 4 +- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 54 +- generated/google/apis/content_v2_1.rb | 35 + generated/google/apis/content_v2_1/classes.rb | 9104 +++++++++++++++++ .../apis/content_v2_1/representations.rb | 3967 +++++++ generated/google/apis/content_v2_1/service.rb | 3463 +++++++ generated/google/apis/streetviewpublish_v1.rb | 2 +- .../apis/streetviewpublish_v1/service.rb | 5 + generated/google/apis/vision_v1.rb | 2 +- generated/google/apis/vision_v1/service.rb | 4 +- 14 files changed, 18200 insertions(+), 30 deletions(-) create mode 100644 generated/google/apis/content_v2_1.rb create mode 100644 generated/google/apis/content_v2_1/classes.rb create mode 100644 generated/google/apis/content_v2_1/representations.rb create mode 100644 generated/google/apis/content_v2_1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index b63da2287..2867196ea 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -37566,6 +37566,1587 @@ "/container:v1beta1/fields": fields "/container:v1beta1/key": key "/container:v1beta1/quotaUser": quota_user +"/content:v2.1/Account": account +"/content:v2.1/Account/adsLinks": ads_links +"/content:v2.1/Account/adsLinks/ads_link": ads_link +"/content:v2.1/Account/adultContent": adult_content +"/content:v2.1/Account/businessInformation": business_information +"/content:v2.1/Account/googleMyBusinessLink": google_my_business_link +"/content:v2.1/Account/id": id +"/content:v2.1/Account/kind": kind +"/content:v2.1/Account/name": name +"/content:v2.1/Account/sellerId": seller_id +"/content:v2.1/Account/users": users +"/content:v2.1/Account/users/user": user +"/content:v2.1/Account/websiteUrl": website_url +"/content:v2.1/Account/youtubeChannelLinks": youtube_channel_links +"/content:v2.1/Account/youtubeChannelLinks/youtube_channel_link": youtube_channel_link +"/content:v2.1/AccountAddress": account_address +"/content:v2.1/AccountAddress/country": country +"/content:v2.1/AccountAddress/locality": locality +"/content:v2.1/AccountAddress/postalCode": postal_code +"/content:v2.1/AccountAddress/region": region +"/content:v2.1/AccountAddress/streetAddress": street_address +"/content:v2.1/AccountAdsLink": account_ads_link +"/content:v2.1/AccountAdsLink/adsId": ads_id +"/content:v2.1/AccountAdsLink/status": status +"/content:v2.1/AccountBusinessInformation": account_business_information +"/content:v2.1/AccountBusinessInformation/address": address +"/content:v2.1/AccountBusinessInformation/customerService": customer_service +"/content:v2.1/AccountBusinessInformation/phoneNumber": phone_number +"/content:v2.1/AccountCustomerService": account_customer_service +"/content:v2.1/AccountCustomerService/email": email +"/content:v2.1/AccountCustomerService/phoneNumber": phone_number +"/content:v2.1/AccountCustomerService/url": url +"/content:v2.1/AccountGoogleMyBusinessLink": account_google_my_business_link +"/content:v2.1/AccountGoogleMyBusinessLink/gmbEmail": gmb_email +"/content:v2.1/AccountGoogleMyBusinessLink/status": status +"/content:v2.1/AccountIdentifier": account_identifier +"/content:v2.1/AccountIdentifier/aggregatorId": aggregator_id +"/content:v2.1/AccountIdentifier/merchantId": merchant_id +"/content:v2.1/AccountStatus": account_status +"/content:v2.1/AccountStatus/accountId": account_id +"/content:v2.1/AccountStatus/accountLevelIssues": account_level_issues +"/content:v2.1/AccountStatus/accountLevelIssues/account_level_issue": account_level_issue +"/content:v2.1/AccountStatus/kind": kind +"/content:v2.1/AccountStatus/products": products +"/content:v2.1/AccountStatus/products/product": product +"/content:v2.1/AccountStatus/websiteClaimed": website_claimed +"/content:v2.1/AccountStatusAccountLevelIssue": account_status_account_level_issue +"/content:v2.1/AccountStatusAccountLevelIssue/country": country +"/content:v2.1/AccountStatusAccountLevelIssue/destination": destination +"/content:v2.1/AccountStatusAccountLevelIssue/detail": detail +"/content:v2.1/AccountStatusAccountLevelIssue/documentation": documentation +"/content:v2.1/AccountStatusAccountLevelIssue/id": id +"/content:v2.1/AccountStatusAccountLevelIssue/severity": severity +"/content:v2.1/AccountStatusAccountLevelIssue/title": title +"/content:v2.1/AccountStatusItemLevelIssue": account_status_item_level_issue +"/content:v2.1/AccountStatusItemLevelIssue/attributeName": attribute_name +"/content:v2.1/AccountStatusItemLevelIssue/code": code +"/content:v2.1/AccountStatusItemLevelIssue/description": description +"/content:v2.1/AccountStatusItemLevelIssue/detail": detail +"/content:v2.1/AccountStatusItemLevelIssue/documentation": documentation +"/content:v2.1/AccountStatusItemLevelIssue/numItems": num_items +"/content:v2.1/AccountStatusItemLevelIssue/resolution": resolution +"/content:v2.1/AccountStatusItemLevelIssue/servability": servability +"/content:v2.1/AccountStatusProducts": account_status_products +"/content:v2.1/AccountStatusProducts/channel": channel +"/content:v2.1/AccountStatusProducts/country": country +"/content:v2.1/AccountStatusProducts/destination": destination +"/content:v2.1/AccountStatusProducts/itemLevelIssues": item_level_issues +"/content:v2.1/AccountStatusProducts/itemLevelIssues/item_level_issue": item_level_issue +"/content:v2.1/AccountStatusProducts/statistics": statistics +"/content:v2.1/AccountStatusStatistics": account_status_statistics +"/content:v2.1/AccountStatusStatistics/active": active +"/content:v2.1/AccountStatusStatistics/disapproved": disapproved +"/content:v2.1/AccountStatusStatistics/expiring": expiring +"/content:v2.1/AccountStatusStatistics/pending": pending +"/content:v2.1/AccountTax": account_tax +"/content:v2.1/AccountTax/accountId": account_id +"/content:v2.1/AccountTax/kind": kind +"/content:v2.1/AccountTax/rules": rules +"/content:v2.1/AccountTax/rules/rule": rule +"/content:v2.1/AccountTaxTaxRule": account_tax_tax_rule +"/content:v2.1/AccountTaxTaxRule/country": country +"/content:v2.1/AccountTaxTaxRule/locationId": location_id +"/content:v2.1/AccountTaxTaxRule/ratePercent": rate_percent +"/content:v2.1/AccountTaxTaxRule/shippingTaxed": shipping_taxed +"/content:v2.1/AccountTaxTaxRule/useGlobalRate": use_global_rate +"/content:v2.1/AccountUser": account_user +"/content:v2.1/AccountUser/admin": admin +"/content:v2.1/AccountUser/emailAddress": email_address +"/content:v2.1/AccountYouTubeChannelLink": account_you_tube_channel_link +"/content:v2.1/AccountYouTubeChannelLink/channelId": channel_id +"/content:v2.1/AccountYouTubeChannelLink/status": status +"/content:v2.1/AccountsAuthInfoResponse": accounts_auth_info_response +"/content:v2.1/AccountsAuthInfoResponse/accountIdentifiers": account_identifiers +"/content:v2.1/AccountsAuthInfoResponse/accountIdentifiers/account_identifier": account_identifier +"/content:v2.1/AccountsAuthInfoResponse/kind": kind +"/content:v2.1/AccountsClaimWebsiteResponse": accounts_claim_website_response +"/content:v2.1/AccountsClaimWebsiteResponse/kind": kind +"/content:v2.1/AccountsCustomBatchRequest": accounts_custom_batch_request +"/content:v2.1/AccountsCustomBatchRequest/entries": entries +"/content:v2.1/AccountsCustomBatchRequest/entries/entry": entry +"/content:v2.1/AccountsCustomBatchRequestEntry": accounts_custom_batch_request_entry +"/content:v2.1/AccountsCustomBatchRequestEntry/account": account +"/content:v2.1/AccountsCustomBatchRequestEntry/accountId": account_id +"/content:v2.1/AccountsCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/AccountsCustomBatchRequestEntry/force": force +"/content:v2.1/AccountsCustomBatchRequestEntry/linkRequest": link_request +"/content:v2.1/AccountsCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/AccountsCustomBatchRequestEntry/method": method_prop +"/content:v2.1/AccountsCustomBatchRequestEntry/overwrite": overwrite +"/content:v2.1/AccountsCustomBatchRequestEntryLinkRequest": accounts_custom_batch_request_entry_link_request +"/content:v2.1/AccountsCustomBatchRequestEntryLinkRequest/action": action +"/content:v2.1/AccountsCustomBatchRequestEntryLinkRequest/linkType": link_type +"/content:v2.1/AccountsCustomBatchRequestEntryLinkRequest/linkedAccountId": linked_account_id +"/content:v2.1/AccountsCustomBatchResponse": accounts_custom_batch_response +"/content:v2.1/AccountsCustomBatchResponse/entries": entries +"/content:v2.1/AccountsCustomBatchResponse/entries/entry": entry +"/content:v2.1/AccountsCustomBatchResponse/kind": kind +"/content:v2.1/AccountsCustomBatchResponseEntry": accounts_custom_batch_response_entry +"/content:v2.1/AccountsCustomBatchResponseEntry/account": account +"/content:v2.1/AccountsCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/AccountsCustomBatchResponseEntry/errors": errors +"/content:v2.1/AccountsCustomBatchResponseEntry/kind": kind +"/content:v2.1/AccountsLinkRequest": accounts_link_request +"/content:v2.1/AccountsLinkRequest/action": action +"/content:v2.1/AccountsLinkRequest/linkType": link_type +"/content:v2.1/AccountsLinkRequest/linkedAccountId": linked_account_id +"/content:v2.1/AccountsLinkResponse": accounts_link_response +"/content:v2.1/AccountsLinkResponse/kind": kind +"/content:v2.1/AccountsListResponse": accounts_list_response +"/content:v2.1/AccountsListResponse/kind": kind +"/content:v2.1/AccountsListResponse/nextPageToken": next_page_token +"/content:v2.1/AccountsListResponse/resources": resources +"/content:v2.1/AccountsListResponse/resources/resource": resource +"/content:v2.1/AccountstatusesCustomBatchRequest": accountstatuses_custom_batch_request +"/content:v2.1/AccountstatusesCustomBatchRequest/entries": entries +"/content:v2.1/AccountstatusesCustomBatchRequest/entries/entry": entry +"/content:v2.1/AccountstatusesCustomBatchRequestEntry": accountstatuses_custom_batch_request_entry +"/content:v2.1/AccountstatusesCustomBatchRequestEntry/accountId": account_id +"/content:v2.1/AccountstatusesCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/AccountstatusesCustomBatchRequestEntry/destinations": destinations +"/content:v2.1/AccountstatusesCustomBatchRequestEntry/destinations/destination": destination +"/content:v2.1/AccountstatusesCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/AccountstatusesCustomBatchRequestEntry/method": method_prop +"/content:v2.1/AccountstatusesCustomBatchResponse": accountstatuses_custom_batch_response +"/content:v2.1/AccountstatusesCustomBatchResponse/entries": entries +"/content:v2.1/AccountstatusesCustomBatchResponse/entries/entry": entry +"/content:v2.1/AccountstatusesCustomBatchResponse/kind": kind +"/content:v2.1/AccountstatusesCustomBatchResponseEntry": accountstatuses_custom_batch_response_entry +"/content:v2.1/AccountstatusesCustomBatchResponseEntry/accountStatus": account_status +"/content:v2.1/AccountstatusesCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/AccountstatusesCustomBatchResponseEntry/errors": errors +"/content:v2.1/AccountstatusesListResponse": accountstatuses_list_response +"/content:v2.1/AccountstatusesListResponse/kind": kind +"/content:v2.1/AccountstatusesListResponse/nextPageToken": next_page_token +"/content:v2.1/AccountstatusesListResponse/resources": resources +"/content:v2.1/AccountstatusesListResponse/resources/resource": resource +"/content:v2.1/AccounttaxCustomBatchRequest": accounttax_custom_batch_request +"/content:v2.1/AccounttaxCustomBatchRequest/entries": entries +"/content:v2.1/AccounttaxCustomBatchRequest/entries/entry": entry +"/content:v2.1/AccounttaxCustomBatchRequestEntry": accounttax_custom_batch_request_entry +"/content:v2.1/AccounttaxCustomBatchRequestEntry/accountId": account_id +"/content:v2.1/AccounttaxCustomBatchRequestEntry/accountTax": account_tax +"/content:v2.1/AccounttaxCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/AccounttaxCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/AccounttaxCustomBatchRequestEntry/method": method_prop +"/content:v2.1/AccounttaxCustomBatchResponse": accounttax_custom_batch_response +"/content:v2.1/AccounttaxCustomBatchResponse/entries": entries +"/content:v2.1/AccounttaxCustomBatchResponse/entries/entry": entry +"/content:v2.1/AccounttaxCustomBatchResponse/kind": kind +"/content:v2.1/AccounttaxCustomBatchResponseEntry": accounttax_custom_batch_response_entry +"/content:v2.1/AccounttaxCustomBatchResponseEntry/accountTax": account_tax +"/content:v2.1/AccounttaxCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/AccounttaxCustomBatchResponseEntry/errors": errors +"/content:v2.1/AccounttaxCustomBatchResponseEntry/kind": kind +"/content:v2.1/AccounttaxListResponse": accounttax_list_response +"/content:v2.1/AccounttaxListResponse/kind": kind +"/content:v2.1/AccounttaxListResponse/nextPageToken": next_page_token +"/content:v2.1/AccounttaxListResponse/resources": resources +"/content:v2.1/AccounttaxListResponse/resources/resource": resource +"/content:v2.1/Amount": amount +"/content:v2.1/Amount/pretax": pretax +"/content:v2.1/Amount/tax": tax +"/content:v2.1/CarrierRate": carrier_rate +"/content:v2.1/CarrierRate/carrierName": carrier_name +"/content:v2.1/CarrierRate/carrierService": carrier_service +"/content:v2.1/CarrierRate/flatAdjustment": flat_adjustment +"/content:v2.1/CarrierRate/name": name +"/content:v2.1/CarrierRate/originPostalCode": origin_postal_code +"/content:v2.1/CarrierRate/percentageAdjustment": percentage_adjustment +"/content:v2.1/CarriersCarrier": carriers_carrier +"/content:v2.1/CarriersCarrier/country": country +"/content:v2.1/CarriersCarrier/name": name +"/content:v2.1/CarriersCarrier/services": services +"/content:v2.1/CarriersCarrier/services/service": service +"/content:v2.1/CustomAttribute": custom_attribute +"/content:v2.1/CustomAttribute/groupValues": group_values +"/content:v2.1/CustomAttribute/groupValues/group_value": group_value +"/content:v2.1/CustomAttribute/name": name +"/content:v2.1/CustomAttribute/value": value +"/content:v2.1/CustomerReturnReason": customer_return_reason +"/content:v2.1/CustomerReturnReason/description": description +"/content:v2.1/CustomerReturnReason/reasonCode": reason_code +"/content:v2.1/CutoffTime": cutoff_time +"/content:v2.1/CutoffTime/hour": hour +"/content:v2.1/CutoffTime/minute": minute +"/content:v2.1/CutoffTime/timezone": timezone +"/content:v2.1/Datafeed": datafeed +"/content:v2.1/Datafeed/attributeLanguage": attribute_language +"/content:v2.1/Datafeed/contentType": content_type +"/content:v2.1/Datafeed/fetchSchedule": fetch_schedule +"/content:v2.1/Datafeed/fileName": file_name +"/content:v2.1/Datafeed/format": format +"/content:v2.1/Datafeed/id": id +"/content:v2.1/Datafeed/kind": kind +"/content:v2.1/Datafeed/name": name +"/content:v2.1/Datafeed/targets": targets +"/content:v2.1/Datafeed/targets/target": target +"/content:v2.1/DatafeedFetchSchedule": datafeed_fetch_schedule +"/content:v2.1/DatafeedFetchSchedule/dayOfMonth": day_of_month +"/content:v2.1/DatafeedFetchSchedule/fetchUrl": fetch_url +"/content:v2.1/DatafeedFetchSchedule/hour": hour +"/content:v2.1/DatafeedFetchSchedule/minuteOfHour": minute_of_hour +"/content:v2.1/DatafeedFetchSchedule/password": password +"/content:v2.1/DatafeedFetchSchedule/paused": paused +"/content:v2.1/DatafeedFetchSchedule/timeZone": time_zone +"/content:v2.1/DatafeedFetchSchedule/username": username +"/content:v2.1/DatafeedFetchSchedule/weekday": weekday +"/content:v2.1/DatafeedFormat": datafeed_format +"/content:v2.1/DatafeedFormat/columnDelimiter": column_delimiter +"/content:v2.1/DatafeedFormat/fileEncoding": file_encoding +"/content:v2.1/DatafeedFormat/quotingMode": quoting_mode +"/content:v2.1/DatafeedStatus": datafeed_status +"/content:v2.1/DatafeedStatus/country": country +"/content:v2.1/DatafeedStatus/datafeedId": datafeed_id +"/content:v2.1/DatafeedStatus/errors": errors +"/content:v2.1/DatafeedStatus/errors/error": error +"/content:v2.1/DatafeedStatus/itemsTotal": items_total +"/content:v2.1/DatafeedStatus/itemsValid": items_valid +"/content:v2.1/DatafeedStatus/kind": kind +"/content:v2.1/DatafeedStatus/language": language +"/content:v2.1/DatafeedStatus/lastUploadDate": last_upload_date +"/content:v2.1/DatafeedStatus/processingStatus": processing_status +"/content:v2.1/DatafeedStatus/warnings": warnings +"/content:v2.1/DatafeedStatus/warnings/warning": warning +"/content:v2.1/DatafeedStatusError": datafeed_status_error +"/content:v2.1/DatafeedStatusError/code": code +"/content:v2.1/DatafeedStatusError/count": count +"/content:v2.1/DatafeedStatusError/examples": examples +"/content:v2.1/DatafeedStatusError/examples/example": example +"/content:v2.1/DatafeedStatusError/message": message +"/content:v2.1/DatafeedStatusExample": datafeed_status_example +"/content:v2.1/DatafeedStatusExample/itemId": item_id +"/content:v2.1/DatafeedStatusExample/lineNumber": line_number +"/content:v2.1/DatafeedStatusExample/value": value +"/content:v2.1/DatafeedTarget": datafeed_target +"/content:v2.1/DatafeedTarget/country": country +"/content:v2.1/DatafeedTarget/excludedDestinations": excluded_destinations +"/content:v2.1/DatafeedTarget/excludedDestinations/excluded_destination": excluded_destination +"/content:v2.1/DatafeedTarget/includedDestinations": included_destinations +"/content:v2.1/DatafeedTarget/includedDestinations/included_destination": included_destination +"/content:v2.1/DatafeedTarget/language": language +"/content:v2.1/DatafeedsCustomBatchRequest": datafeeds_custom_batch_request +"/content:v2.1/DatafeedsCustomBatchRequest/entries": entries +"/content:v2.1/DatafeedsCustomBatchRequest/entries/entry": entry +"/content:v2.1/DatafeedsCustomBatchRequestEntry": datafeeds_custom_batch_request_entry +"/content:v2.1/DatafeedsCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/DatafeedsCustomBatchRequestEntry/datafeed": datafeed +"/content:v2.1/DatafeedsCustomBatchRequestEntry/datafeedId": datafeed_id +"/content:v2.1/DatafeedsCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/DatafeedsCustomBatchRequestEntry/method": method_prop +"/content:v2.1/DatafeedsCustomBatchResponse": datafeeds_custom_batch_response +"/content:v2.1/DatafeedsCustomBatchResponse/entries": entries +"/content:v2.1/DatafeedsCustomBatchResponse/entries/entry": entry +"/content:v2.1/DatafeedsCustomBatchResponse/kind": kind +"/content:v2.1/DatafeedsCustomBatchResponseEntry": datafeeds_custom_batch_response_entry +"/content:v2.1/DatafeedsCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/DatafeedsCustomBatchResponseEntry/datafeed": datafeed +"/content:v2.1/DatafeedsCustomBatchResponseEntry/errors": errors +"/content:v2.1/DatafeedsFetchNowResponse": datafeeds_fetch_now_response +"/content:v2.1/DatafeedsFetchNowResponse/kind": kind +"/content:v2.1/DatafeedsListResponse": datafeeds_list_response +"/content:v2.1/DatafeedsListResponse/kind": kind +"/content:v2.1/DatafeedsListResponse/nextPageToken": next_page_token +"/content:v2.1/DatafeedsListResponse/resources": resources +"/content:v2.1/DatafeedsListResponse/resources/resource": resource +"/content:v2.1/DatafeedstatusesCustomBatchRequest": datafeedstatuses_custom_batch_request +"/content:v2.1/DatafeedstatusesCustomBatchRequest/entries": entries +"/content:v2.1/DatafeedstatusesCustomBatchRequest/entries/entry": entry +"/content:v2.1/DatafeedstatusesCustomBatchRequestEntry": datafeedstatuses_custom_batch_request_entry +"/content:v2.1/DatafeedstatusesCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/DatafeedstatusesCustomBatchRequestEntry/country": country +"/content:v2.1/DatafeedstatusesCustomBatchRequestEntry/datafeedId": datafeed_id +"/content:v2.1/DatafeedstatusesCustomBatchRequestEntry/language": language +"/content:v2.1/DatafeedstatusesCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/DatafeedstatusesCustomBatchRequestEntry/method": method_prop +"/content:v2.1/DatafeedstatusesCustomBatchResponse": datafeedstatuses_custom_batch_response +"/content:v2.1/DatafeedstatusesCustomBatchResponse/entries": entries +"/content:v2.1/DatafeedstatusesCustomBatchResponse/entries/entry": entry +"/content:v2.1/DatafeedstatusesCustomBatchResponse/kind": kind +"/content:v2.1/DatafeedstatusesCustomBatchResponseEntry": datafeedstatuses_custom_batch_response_entry +"/content:v2.1/DatafeedstatusesCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/DatafeedstatusesCustomBatchResponseEntry/datafeedStatus": datafeed_status +"/content:v2.1/DatafeedstatusesCustomBatchResponseEntry/errors": errors +"/content:v2.1/DatafeedstatusesListResponse": datafeedstatuses_list_response +"/content:v2.1/DatafeedstatusesListResponse/kind": kind +"/content:v2.1/DatafeedstatusesListResponse/nextPageToken": next_page_token +"/content:v2.1/DatafeedstatusesListResponse/resources": resources +"/content:v2.1/DatafeedstatusesListResponse/resources/resource": resource +"/content:v2.1/DeliveryTime": delivery_time +"/content:v2.1/DeliveryTime/cutoffTime": cutoff_time +"/content:v2.1/DeliveryTime/holidayCutoffs": holiday_cutoffs +"/content:v2.1/DeliveryTime/holidayCutoffs/holiday_cutoff": holiday_cutoff +"/content:v2.1/DeliveryTime/maxHandlingTimeInDays": max_handling_time_in_days +"/content:v2.1/DeliveryTime/maxTransitTimeInDays": max_transit_time_in_days +"/content:v2.1/DeliveryTime/minHandlingTimeInDays": min_handling_time_in_days +"/content:v2.1/DeliveryTime/minTransitTimeInDays": min_transit_time_in_days +"/content:v2.1/Error": error +"/content:v2.1/Error/domain": domain +"/content:v2.1/Error/message": message +"/content:v2.1/Error/reason": reason +"/content:v2.1/Errors": errors +"/content:v2.1/Errors/code": code +"/content:v2.1/Errors/errors": errors +"/content:v2.1/Errors/errors/error": error +"/content:v2.1/Errors/message": message +"/content:v2.1/GmbAccounts": gmb_accounts +"/content:v2.1/GmbAccounts/accountId": account_id +"/content:v2.1/GmbAccounts/gmbAccounts": gmb_accounts +"/content:v2.1/GmbAccounts/gmbAccounts/gmb_account": gmb_account +"/content:v2.1/GmbAccountsGmbAccount": gmb_accounts_gmb_account +"/content:v2.1/GmbAccountsGmbAccount/email": email +"/content:v2.1/GmbAccountsGmbAccount/listingCount": listing_count +"/content:v2.1/GmbAccountsGmbAccount/name": name +"/content:v2.1/GmbAccountsGmbAccount/type": type +"/content:v2.1/Headers": headers +"/content:v2.1/Headers/locations": locations +"/content:v2.1/Headers/locations/location": location +"/content:v2.1/Headers/numberOfItems": number_of_items +"/content:v2.1/Headers/numberOfItems/number_of_item": number_of_item +"/content:v2.1/Headers/postalCodeGroupNames": postal_code_group_names +"/content:v2.1/Headers/postalCodeGroupNames/postal_code_group_name": postal_code_group_name +"/content:v2.1/Headers/prices": prices +"/content:v2.1/Headers/prices/price": price +"/content:v2.1/Headers/weights": weights +"/content:v2.1/Headers/weights/weight": weight +"/content:v2.1/HolidayCutoff": holiday_cutoff +"/content:v2.1/HolidayCutoff/deadlineDate": deadline_date +"/content:v2.1/HolidayCutoff/deadlineHour": deadline_hour +"/content:v2.1/HolidayCutoff/deadlineTimezone": deadline_timezone +"/content:v2.1/HolidayCutoff/holidayId": holiday_id +"/content:v2.1/HolidayCutoff/visibleFromDate": visible_from_date +"/content:v2.1/HolidaysHoliday": holidays_holiday +"/content:v2.1/HolidaysHoliday/countryCode": country_code +"/content:v2.1/HolidaysHoliday/date": date +"/content:v2.1/HolidaysHoliday/deliveryGuaranteeDate": delivery_guarantee_date +"/content:v2.1/HolidaysHoliday/deliveryGuaranteeHour": delivery_guarantee_hour +"/content:v2.1/HolidaysHoliday/id": id +"/content:v2.1/HolidaysHoliday/type": type +"/content:v2.1/Installment": installment +"/content:v2.1/Installment/amount": amount +"/content:v2.1/Installment/months": months +"/content:v2.1/InvoiceSummary": invoice_summary +"/content:v2.1/InvoiceSummary/additionalChargeSummaries": additional_charge_summaries +"/content:v2.1/InvoiceSummary/additionalChargeSummaries/additional_charge_summary": additional_charge_summary +"/content:v2.1/InvoiceSummary/customerBalance": customer_balance +"/content:v2.1/InvoiceSummary/googleBalance": google_balance +"/content:v2.1/InvoiceSummary/merchantBalance": merchant_balance +"/content:v2.1/InvoiceSummary/productTotal": product_total +"/content:v2.1/InvoiceSummary/promotionSummaries": promotion_summaries +"/content:v2.1/InvoiceSummary/promotionSummaries/promotion_summary": promotion_summary +"/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/LiaAboutPageSettings": lia_about_page_settings +"/content:v2.1/LiaAboutPageSettings/status": status +"/content:v2.1/LiaAboutPageSettings/url": url +"/content:v2.1/LiaCountrySettings": lia_country_settings +"/content:v2.1/LiaCountrySettings/about": about +"/content:v2.1/LiaCountrySettings/country": country +"/content:v2.1/LiaCountrySettings/hostedLocalStorefrontActive": hosted_local_storefront_active +"/content:v2.1/LiaCountrySettings/inventory": inventory +"/content:v2.1/LiaCountrySettings/onDisplayToOrder": on_display_to_order +"/content:v2.1/LiaCountrySettings/posDataProvider": pos_data_provider +"/content:v2.1/LiaCountrySettings/storePickupActive": store_pickup_active +"/content:v2.1/LiaInventorySettings": lia_inventory_settings +"/content:v2.1/LiaInventorySettings/inventoryVerificationContactEmail": inventory_verification_contact_email +"/content:v2.1/LiaInventorySettings/inventoryVerificationContactName": inventory_verification_contact_name +"/content:v2.1/LiaInventorySettings/inventoryVerificationContactStatus": inventory_verification_contact_status +"/content:v2.1/LiaInventorySettings/status": status +"/content:v2.1/LiaOnDisplayToOrderSettings": lia_on_display_to_order_settings +"/content:v2.1/LiaOnDisplayToOrderSettings/shippingCostPolicyUrl": shipping_cost_policy_url +"/content:v2.1/LiaOnDisplayToOrderSettings/status": status +"/content:v2.1/LiaPosDataProvider": lia_pos_data_provider +"/content:v2.1/LiaPosDataProvider/posDataProviderId": pos_data_provider_id +"/content:v2.1/LiaPosDataProvider/posExternalAccountId": pos_external_account_id +"/content:v2.1/LiaSettings": lia_settings +"/content:v2.1/LiaSettings/accountId": account_id +"/content:v2.1/LiaSettings/countrySettings": country_settings +"/content:v2.1/LiaSettings/countrySettings/country_setting": country_setting +"/content:v2.1/LiaSettings/kind": kind +"/content:v2.1/LiasettingsCustomBatchRequest": liasettings_custom_batch_request +"/content:v2.1/LiasettingsCustomBatchRequest/entries": entries +"/content:v2.1/LiasettingsCustomBatchRequest/entries/entry": entry +"/content:v2.1/LiasettingsCustomBatchRequestEntry": liasettings_custom_batch_request_entry +"/content:v2.1/LiasettingsCustomBatchRequestEntry/accountId": account_id +"/content:v2.1/LiasettingsCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/LiasettingsCustomBatchRequestEntry/contactEmail": contact_email +"/content:v2.1/LiasettingsCustomBatchRequestEntry/contactName": contact_name +"/content:v2.1/LiasettingsCustomBatchRequestEntry/country": country +"/content:v2.1/LiasettingsCustomBatchRequestEntry/gmbEmail": gmb_email +"/content:v2.1/LiasettingsCustomBatchRequestEntry/liaSettings": lia_settings +"/content:v2.1/LiasettingsCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/LiasettingsCustomBatchRequestEntry/method": method_prop +"/content:v2.1/LiasettingsCustomBatchRequestEntry/posDataProviderId": pos_data_provider_id +"/content:v2.1/LiasettingsCustomBatchRequestEntry/posExternalAccountId": pos_external_account_id +"/content:v2.1/LiasettingsCustomBatchResponse": liasettings_custom_batch_response +"/content:v2.1/LiasettingsCustomBatchResponse/entries": entries +"/content:v2.1/LiasettingsCustomBatchResponse/entries/entry": entry +"/content:v2.1/LiasettingsCustomBatchResponse/kind": kind +"/content:v2.1/LiasettingsCustomBatchResponseEntry": liasettings_custom_batch_response_entry +"/content:v2.1/LiasettingsCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/LiasettingsCustomBatchResponseEntry/errors": errors +"/content:v2.1/LiasettingsCustomBatchResponseEntry/gmbAccounts": gmb_accounts +"/content:v2.1/LiasettingsCustomBatchResponseEntry/kind": kind +"/content:v2.1/LiasettingsCustomBatchResponseEntry/liaSettings": lia_settings +"/content:v2.1/LiasettingsCustomBatchResponseEntry/posDataProviders": pos_data_providers +"/content:v2.1/LiasettingsCustomBatchResponseEntry/posDataProviders/pos_data_provider": pos_data_provider +"/content:v2.1/LiasettingsGetAccessibleGmbAccountsResponse": liasettings_get_accessible_gmb_accounts_response +"/content:v2.1/LiasettingsGetAccessibleGmbAccountsResponse/accountId": account_id +"/content:v2.1/LiasettingsGetAccessibleGmbAccountsResponse/gmbAccounts": gmb_accounts +"/content:v2.1/LiasettingsGetAccessibleGmbAccountsResponse/gmbAccounts/gmb_account": gmb_account +"/content:v2.1/LiasettingsGetAccessibleGmbAccountsResponse/kind": kind +"/content:v2.1/LiasettingsListPosDataProvidersResponse": liasettings_list_pos_data_providers_response +"/content:v2.1/LiasettingsListPosDataProvidersResponse/kind": kind +"/content:v2.1/LiasettingsListPosDataProvidersResponse/posDataProviders": pos_data_providers +"/content:v2.1/LiasettingsListPosDataProvidersResponse/posDataProviders/pos_data_provider": pos_data_provider +"/content:v2.1/LiasettingsListResponse": liasettings_list_response +"/content:v2.1/LiasettingsListResponse/kind": kind +"/content:v2.1/LiasettingsListResponse/nextPageToken": next_page_token +"/content:v2.1/LiasettingsListResponse/resources": resources +"/content:v2.1/LiasettingsListResponse/resources/resource": resource +"/content:v2.1/LiasettingsRequestGmbAccessResponse": liasettings_request_gmb_access_response +"/content:v2.1/LiasettingsRequestGmbAccessResponse/kind": kind +"/content:v2.1/LiasettingsRequestInventoryVerificationResponse": liasettings_request_inventory_verification_response +"/content:v2.1/LiasettingsRequestInventoryVerificationResponse/kind": kind +"/content:v2.1/LiasettingsSetInventoryVerificationContactResponse": liasettings_set_inventory_verification_contact_response +"/content:v2.1/LiasettingsSetInventoryVerificationContactResponse/kind": kind +"/content:v2.1/LiasettingsSetPosDataProviderResponse": liasettings_set_pos_data_provider_response +"/content:v2.1/LiasettingsSetPosDataProviderResponse/kind": kind +"/content:v2.1/LocationIdSet": location_id_set +"/content:v2.1/LocationIdSet/locationIds": location_ids +"/content:v2.1/LocationIdSet/locationIds/location_id": location_id +"/content:v2.1/LoyaltyPoints": loyalty_points +"/content:v2.1/LoyaltyPoints/name": name +"/content:v2.1/LoyaltyPoints/pointsValue": points_value +"/content:v2.1/LoyaltyPoints/ratio": ratio +"/content:v2.1/MerchantOrderReturn": merchant_order_return +"/content:v2.1/MerchantOrderReturn/creationDate": creation_date +"/content:v2.1/MerchantOrderReturn/merchantOrderId": merchant_order_id +"/content:v2.1/MerchantOrderReturn/orderId": order_id +"/content:v2.1/MerchantOrderReturn/orderReturnId": order_return_id +"/content:v2.1/MerchantOrderReturn/returnItems": return_items +"/content:v2.1/MerchantOrderReturn/returnItems/return_item": return_item +"/content:v2.1/MerchantOrderReturn/returnShipments": return_shipments +"/content:v2.1/MerchantOrderReturn/returnShipments/return_shipment": return_shipment +"/content:v2.1/MerchantOrderReturnItem": merchant_order_return_item +"/content:v2.1/MerchantOrderReturnItem/customerReturnReason": customer_return_reason +"/content:v2.1/MerchantOrderReturnItem/itemId": item_id +"/content:v2.1/MerchantOrderReturnItem/merchantReturnReason": merchant_return_reason +"/content:v2.1/MerchantOrderReturnItem/product": product +"/content:v2.1/MerchantOrderReturnItem/returnShipmentIds": return_shipment_ids +"/content:v2.1/MerchantOrderReturnItem/returnShipmentIds/return_shipment_id": return_shipment_id +"/content:v2.1/MerchantOrderReturnItem/state": state +"/content:v2.1/Order": order +"/content:v2.1/Order/acknowledged": acknowledged +"/content:v2.1/Order/billingAddress": billing_address +"/content:v2.1/Order/channelType": channel_type +"/content:v2.1/Order/customer": customer +"/content:v2.1/Order/deliveryDetails": delivery_details +"/content:v2.1/Order/id": id +"/content:v2.1/Order/kind": kind +"/content:v2.1/Order/lineItems": line_items +"/content:v2.1/Order/lineItems/line_item": line_item +"/content:v2.1/Order/merchantId": merchant_id +"/content:v2.1/Order/merchantOrderId": merchant_order_id +"/content:v2.1/Order/netAmount": net_amount +"/content:v2.1/Order/paymentStatus": payment_status +"/content:v2.1/Order/placedDate": placed_date +"/content:v2.1/Order/promotions": promotions +"/content:v2.1/Order/promotions/promotion": promotion +"/content:v2.1/Order/refunds": refunds +"/content:v2.1/Order/refunds/refund": refund +"/content:v2.1/Order/shipments": shipments +"/content:v2.1/Order/shipments/shipment": shipment +"/content:v2.1/Order/shippingCost": shipping_cost +"/content:v2.1/Order/shippingCostTax": shipping_cost_tax +"/content:v2.1/Order/shippingOption": shipping_option +"/content:v2.1/Order/status": status +"/content:v2.1/OrderAddress": order_address +"/content:v2.1/OrderAddress/country": country +"/content:v2.1/OrderAddress/fullAddress": full_address +"/content:v2.1/OrderAddress/fullAddress/full_address": full_address +"/content:v2.1/OrderAddress/isPostOfficeBox": is_post_office_box +"/content:v2.1/OrderAddress/locality": locality +"/content:v2.1/OrderAddress/postalCode": postal_code +"/content:v2.1/OrderAddress/recipientName": recipient_name +"/content:v2.1/OrderAddress/region": region +"/content:v2.1/OrderAddress/streetAddress": street_address +"/content:v2.1/OrderAddress/streetAddress/street_address": street_address +"/content:v2.1/OrderCancellation": order_cancellation +"/content:v2.1/OrderCancellation/actor": actor +"/content:v2.1/OrderCancellation/creationDate": creation_date +"/content:v2.1/OrderCancellation/quantity": quantity +"/content:v2.1/OrderCancellation/reason": reason +"/content:v2.1/OrderCancellation/reasonText": reason_text +"/content:v2.1/OrderCustomer": order_customer +"/content:v2.1/OrderCustomer/email": email +"/content:v2.1/OrderCustomer/fullName": full_name +"/content:v2.1/OrderCustomer/marketingRightsInfo": marketing_rights_info +"/content:v2.1/OrderCustomerMarketingRightsInfo": order_customer_marketing_rights_info +"/content:v2.1/OrderCustomerMarketingRightsInfo/explicitMarketingPreference": explicit_marketing_preference +"/content:v2.1/OrderCustomerMarketingRightsInfo/lastUpdatedTimestamp": last_updated_timestamp +"/content:v2.1/OrderCustomerMarketingRightsInfo/marketingEmailAddress": marketing_email_address +"/content:v2.1/OrderDeliveryDetails": order_delivery_details +"/content:v2.1/OrderDeliveryDetails/address": address +"/content:v2.1/OrderDeliveryDetails/phoneNumber": phone_number +"/content:v2.1/OrderLineItem": order_line_item +"/content:v2.1/OrderLineItem/annotations": annotations +"/content:v2.1/OrderLineItem/annotations/annotation": annotation +"/content:v2.1/OrderLineItem/cancellations": cancellations +"/content:v2.1/OrderLineItem/cancellations/cancellation": cancellation +"/content:v2.1/OrderLineItem/id": id +"/content:v2.1/OrderLineItem/price": price +"/content:v2.1/OrderLineItem/product": product +"/content:v2.1/OrderLineItem/quantityCanceled": quantity_canceled +"/content:v2.1/OrderLineItem/quantityDelivered": quantity_delivered +"/content:v2.1/OrderLineItem/quantityOrdered": quantity_ordered +"/content:v2.1/OrderLineItem/quantityPending": quantity_pending +"/content:v2.1/OrderLineItem/quantityReturned": quantity_returned +"/content:v2.1/OrderLineItem/quantityShipped": quantity_shipped +"/content:v2.1/OrderLineItem/returnInfo": return_info +"/content:v2.1/OrderLineItem/returns": returns +"/content:v2.1/OrderLineItem/returns/return": return +"/content:v2.1/OrderLineItem/shippingDetails": shipping_details +"/content:v2.1/OrderLineItem/tax": tax +"/content:v2.1/OrderLineItemProduct": order_line_item_product +"/content:v2.1/OrderLineItemProduct/brand": brand +"/content:v2.1/OrderLineItemProduct/channel": channel +"/content:v2.1/OrderLineItemProduct/condition": condition +"/content:v2.1/OrderLineItemProduct/contentLanguage": content_language +"/content:v2.1/OrderLineItemProduct/fees": fees +"/content:v2.1/OrderLineItemProduct/fees/fee": fee +"/content:v2.1/OrderLineItemProduct/gtin": gtin +"/content:v2.1/OrderLineItemProduct/id": id +"/content:v2.1/OrderLineItemProduct/imageLink": image_link +"/content:v2.1/OrderLineItemProduct/itemGroupId": item_group_id +"/content:v2.1/OrderLineItemProduct/mpn": mpn +"/content:v2.1/OrderLineItemProduct/offerId": offer_id +"/content:v2.1/OrderLineItemProduct/price": price +"/content:v2.1/OrderLineItemProduct/shownImage": shown_image +"/content:v2.1/OrderLineItemProduct/targetCountry": target_country +"/content:v2.1/OrderLineItemProduct/title": title +"/content:v2.1/OrderLineItemProduct/variantAttributes": variant_attributes +"/content:v2.1/OrderLineItemProduct/variantAttributes/variant_attribute": variant_attribute +"/content:v2.1/OrderLineItemProductFee": order_line_item_product_fee +"/content:v2.1/OrderLineItemProductFee/amount": amount +"/content:v2.1/OrderLineItemProductFee/name": name +"/content:v2.1/OrderLineItemProductVariantAttribute": order_line_item_product_variant_attribute +"/content:v2.1/OrderLineItemProductVariantAttribute/dimension": dimension +"/content:v2.1/OrderLineItemProductVariantAttribute/value": value +"/content:v2.1/OrderLineItemReturnInfo": order_line_item_return_info +"/content:v2.1/OrderLineItemReturnInfo/daysToReturn": days_to_return +"/content:v2.1/OrderLineItemReturnInfo/isReturnable": is_returnable +"/content:v2.1/OrderLineItemReturnInfo/policyUrl": policy_url +"/content:v2.1/OrderLineItemShippingDetails": order_line_item_shipping_details +"/content:v2.1/OrderLineItemShippingDetails/deliverByDate": deliver_by_date +"/content:v2.1/OrderLineItemShippingDetails/method": method_prop +"/content:v2.1/OrderLineItemShippingDetails/shipByDate": ship_by_date +"/content:v2.1/OrderLineItemShippingDetailsMethod": order_line_item_shipping_details_method +"/content:v2.1/OrderLineItemShippingDetailsMethod/carrier": carrier +"/content:v2.1/OrderLineItemShippingDetailsMethod/maxDaysInTransit": max_days_in_transit +"/content:v2.1/OrderLineItemShippingDetailsMethod/methodName": method_name +"/content:v2.1/OrderLineItemShippingDetailsMethod/minDaysInTransit": min_days_in_transit +"/content:v2.1/OrderMerchantProvidedAnnotation": order_merchant_provided_annotation +"/content:v2.1/OrderMerchantProvidedAnnotation/key": key +"/content:v2.1/OrderMerchantProvidedAnnotation/value": value +"/content:v2.1/OrderPromotion": order_promotion +"/content:v2.1/OrderPromotion/applicableItems": applicable_items +"/content:v2.1/OrderPromotion/applicableItems/applicable_item": applicable_item +"/content:v2.1/OrderPromotion/appliedItems": applied_items +"/content:v2.1/OrderPromotion/appliedItems/applied_item": applied_item +"/content:v2.1/OrderPromotion/funder": funder +"/content:v2.1/OrderPromotion/merchantPromotionId": merchant_promotion_id +"/content:v2.1/OrderPromotion/pretaxValue": pretax_value +"/content:v2.1/OrderPromotion/shortTitle": short_title +"/content:v2.1/OrderPromotion/subtype": subtype +"/content:v2.1/OrderPromotion/taxValue": tax_value +"/content:v2.1/OrderPromotion/title": title +"/content:v2.1/OrderPromotion/type": type +"/content:v2.1/OrderPromotionItem": order_promotion_item +"/content:v2.1/OrderPromotionItem/lineItemId": line_item_id +"/content:v2.1/OrderPromotionItem/productId": product_id +"/content:v2.1/OrderPromotionItem/quantity": quantity +"/content:v2.1/OrderRefund": order_refund +"/content:v2.1/OrderRefund/actor": actor +"/content:v2.1/OrderRefund/amount": amount +"/content:v2.1/OrderRefund/creationDate": creation_date +"/content:v2.1/OrderRefund/reason": reason +"/content:v2.1/OrderRefund/reasonText": reason_text +"/content:v2.1/OrderReportDisbursement": order_report_disbursement +"/content:v2.1/OrderReportDisbursement/disbursementAmount": disbursement_amount +"/content:v2.1/OrderReportDisbursement/disbursementCreationDate": disbursement_creation_date +"/content:v2.1/OrderReportDisbursement/disbursementDate": disbursement_date +"/content:v2.1/OrderReportDisbursement/disbursementId": disbursement_id +"/content:v2.1/OrderReportDisbursement/merchantId": merchant_id +"/content:v2.1/OrderReportTransaction": order_report_transaction +"/content:v2.1/OrderReportTransaction/disbursementAmount": disbursement_amount +"/content:v2.1/OrderReportTransaction/disbursementCreationDate": disbursement_creation_date +"/content:v2.1/OrderReportTransaction/disbursementDate": disbursement_date +"/content:v2.1/OrderReportTransaction/disbursementId": disbursement_id +"/content:v2.1/OrderReportTransaction/merchantId": merchant_id +"/content:v2.1/OrderReportTransaction/merchantOrderId": merchant_order_id +"/content:v2.1/OrderReportTransaction/orderId": order_id +"/content:v2.1/OrderReportTransaction/productAmount": product_amount +"/content:v2.1/OrderReportTransaction/transactionDate": transaction_date +"/content:v2.1/OrderReturn": order_return +"/content:v2.1/OrderReturn/actor": actor +"/content:v2.1/OrderReturn/creationDate": creation_date +"/content:v2.1/OrderReturn/quantity": quantity +"/content:v2.1/OrderReturn/reason": reason +"/content:v2.1/OrderReturn/reasonText": reason_text +"/content:v2.1/OrderShipment": order_shipment +"/content:v2.1/OrderShipment/carrier": carrier +"/content:v2.1/OrderShipment/creationDate": creation_date +"/content:v2.1/OrderShipment/deliveryDate": delivery_date +"/content:v2.1/OrderShipment/id": id +"/content:v2.1/OrderShipment/lineItems": line_items +"/content:v2.1/OrderShipment/lineItems/line_item": line_item +"/content:v2.1/OrderShipment/status": status +"/content:v2.1/OrderShipment/trackingId": tracking_id +"/content:v2.1/OrderShipmentLineItemShipment": order_shipment_line_item_shipment +"/content:v2.1/OrderShipmentLineItemShipment/lineItemId": line_item_id +"/content:v2.1/OrderShipmentLineItemShipment/productId": product_id +"/content:v2.1/OrderShipmentLineItemShipment/quantity": quantity +"/content:v2.1/OrderinvoicesCreateChargeInvoiceRequest": orderinvoices_create_charge_invoice_request +"/content:v2.1/OrderinvoicesCreateChargeInvoiceRequest/invoiceId": invoice_id +"/content:v2.1/OrderinvoicesCreateChargeInvoiceRequest/invoiceSummary": invoice_summary +"/content:v2.1/OrderinvoicesCreateChargeInvoiceRequest/lineItemInvoices": line_item_invoices +"/content:v2.1/OrderinvoicesCreateChargeInvoiceRequest/lineItemInvoices/line_item_invoice": line_item_invoice +"/content:v2.1/OrderinvoicesCreateChargeInvoiceRequest/operationId": operation_id +"/content:v2.1/OrderinvoicesCreateChargeInvoiceRequest/shipmentGroupId": shipment_group_id +"/content:v2.1/OrderinvoicesCreateChargeInvoiceResponse": orderinvoices_create_charge_invoice_response +"/content:v2.1/OrderinvoicesCreateChargeInvoiceResponse/executionStatus": execution_status +"/content:v2.1/OrderinvoicesCreateChargeInvoiceResponse/kind": kind +"/content:v2.1/OrderinvoicesCreateRefundInvoiceRequest": orderinvoices_create_refund_invoice_request +"/content:v2.1/OrderinvoicesCreateRefundInvoiceRequest/invoiceId": invoice_id +"/content:v2.1/OrderinvoicesCreateRefundInvoiceRequest/operationId": operation_id +"/content:v2.1/OrderinvoicesCreateRefundInvoiceRequest/refundOnlyOption": refund_only_option +"/content:v2.1/OrderinvoicesCreateRefundInvoiceRequest/returnOption": return_option +"/content:v2.1/OrderinvoicesCreateRefundInvoiceRequest/shipmentInvoices": shipment_invoices +"/content:v2.1/OrderinvoicesCreateRefundInvoiceRequest/shipmentInvoices/shipment_invoice": shipment_invoice +"/content:v2.1/OrderinvoicesCreateRefundInvoiceResponse": orderinvoices_create_refund_invoice_response +"/content:v2.1/OrderinvoicesCreateRefundInvoiceResponse/executionStatus": execution_status +"/content:v2.1/OrderinvoicesCreateRefundInvoiceResponse/kind": kind +"/content:v2.1/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption": orderinvoices_custom_batch_request_entry_create_refund_invoice_refund_option +"/content:v2.1/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption/description": description +"/content:v2.1/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption/reason": reason +"/content:v2.1/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption": orderinvoices_custom_batch_request_entry_create_refund_invoice_return_option +"/content:v2.1/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption/description": description +"/content:v2.1/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption/reason": reason +"/content:v2.1/OrderpaymentsNotifyAuthApprovedRequest": orderpayments_notify_auth_approved_request +"/content:v2.1/OrderpaymentsNotifyAuthApprovedRequest/authAmountPretax": auth_amount_pretax +"/content:v2.1/OrderpaymentsNotifyAuthApprovedRequest/authAmountTax": auth_amount_tax +"/content:v2.1/OrderpaymentsNotifyAuthApprovedResponse": orderpayments_notify_auth_approved_response +"/content:v2.1/OrderpaymentsNotifyAuthApprovedResponse/executionStatus": execution_status +"/content:v2.1/OrderpaymentsNotifyAuthApprovedResponse/kind": kind +"/content:v2.1/OrderpaymentsNotifyAuthDeclinedRequest": orderpayments_notify_auth_declined_request +"/content:v2.1/OrderpaymentsNotifyAuthDeclinedRequest/declineReason": decline_reason +"/content:v2.1/OrderpaymentsNotifyAuthDeclinedResponse": orderpayments_notify_auth_declined_response +"/content:v2.1/OrderpaymentsNotifyAuthDeclinedResponse/executionStatus": execution_status +"/content:v2.1/OrderpaymentsNotifyAuthDeclinedResponse/kind": kind +"/content:v2.1/OrderpaymentsNotifyChargeRequest": orderpayments_notify_charge_request +"/content:v2.1/OrderpaymentsNotifyChargeRequest/chargeState": charge_state +"/content:v2.1/OrderpaymentsNotifyChargeRequest/invoiceIds": invoice_ids +"/content:v2.1/OrderpaymentsNotifyChargeRequest/invoiceIds/invoice_id": invoice_id +"/content:v2.1/OrderpaymentsNotifyChargeResponse": orderpayments_notify_charge_response +"/content:v2.1/OrderpaymentsNotifyChargeResponse/executionStatus": execution_status +"/content:v2.1/OrderpaymentsNotifyChargeResponse/kind": kind +"/content:v2.1/OrderpaymentsNotifyRefundRequest": orderpayments_notify_refund_request +"/content:v2.1/OrderpaymentsNotifyRefundRequest/invoiceIds": invoice_ids +"/content:v2.1/OrderpaymentsNotifyRefundRequest/invoiceIds/invoice_id": invoice_id +"/content:v2.1/OrderpaymentsNotifyRefundRequest/refundState": refund_state +"/content:v2.1/OrderpaymentsNotifyRefundResponse": orderpayments_notify_refund_response +"/content:v2.1/OrderpaymentsNotifyRefundResponse/executionStatus": execution_status +"/content:v2.1/OrderpaymentsNotifyRefundResponse/kind": kind +"/content:v2.1/OrderreportsListDisbursementsResponse": orderreports_list_disbursements_response +"/content:v2.1/OrderreportsListDisbursementsResponse/disbursements": disbursements +"/content:v2.1/OrderreportsListDisbursementsResponse/disbursements/disbursement": disbursement +"/content:v2.1/OrderreportsListDisbursementsResponse/kind": kind +"/content:v2.1/OrderreportsListDisbursementsResponse/nextPageToken": next_page_token +"/content:v2.1/OrderreportsListTransactionsResponse": orderreports_list_transactions_response +"/content:v2.1/OrderreportsListTransactionsResponse/kind": kind +"/content:v2.1/OrderreportsListTransactionsResponse/nextPageToken": next_page_token +"/content:v2.1/OrderreportsListTransactionsResponse/transactions": transactions +"/content:v2.1/OrderreportsListTransactionsResponse/transactions/transaction": transaction +"/content:v2.1/OrderreturnsListResponse": orderreturns_list_response +"/content:v2.1/OrderreturnsListResponse/kind": kind +"/content:v2.1/OrderreturnsListResponse/nextPageToken": next_page_token +"/content:v2.1/OrderreturnsListResponse/resources": resources +"/content:v2.1/OrderreturnsListResponse/resources/resource": resource +"/content:v2.1/OrdersAcknowledgeRequest": orders_acknowledge_request +"/content:v2.1/OrdersAcknowledgeRequest/operationId": operation_id +"/content:v2.1/OrdersAcknowledgeResponse": orders_acknowledge_response +"/content:v2.1/OrdersAcknowledgeResponse/executionStatus": execution_status +"/content:v2.1/OrdersAcknowledgeResponse/kind": kind +"/content:v2.1/OrdersAdvanceTestOrderResponse": orders_advance_test_order_response +"/content:v2.1/OrdersAdvanceTestOrderResponse/kind": kind +"/content:v2.1/OrdersCancelLineItemRequest": orders_cancel_line_item_request +"/content:v2.1/OrdersCancelLineItemRequest/lineItemId": line_item_id +"/content:v2.1/OrdersCancelLineItemRequest/operationId": operation_id +"/content:v2.1/OrdersCancelLineItemRequest/productId": product_id +"/content:v2.1/OrdersCancelLineItemRequest/quantity": quantity +"/content:v2.1/OrdersCancelLineItemRequest/reason": reason +"/content:v2.1/OrdersCancelLineItemRequest/reasonText": reason_text +"/content:v2.1/OrdersCancelLineItemResponse": orders_cancel_line_item_response +"/content:v2.1/OrdersCancelLineItemResponse/executionStatus": execution_status +"/content:v2.1/OrdersCancelLineItemResponse/kind": kind +"/content:v2.1/OrdersCancelRequest": orders_cancel_request +"/content:v2.1/OrdersCancelRequest/operationId": operation_id +"/content:v2.1/OrdersCancelRequest/reason": reason +"/content:v2.1/OrdersCancelRequest/reasonText": reason_text +"/content:v2.1/OrdersCancelResponse": orders_cancel_response +"/content:v2.1/OrdersCancelResponse/executionStatus": execution_status +"/content:v2.1/OrdersCancelResponse/kind": kind +"/content:v2.1/OrdersCancelTestOrderByCustomerRequest": orders_cancel_test_order_by_customer_request +"/content:v2.1/OrdersCancelTestOrderByCustomerRequest/reason": reason +"/content:v2.1/OrdersCancelTestOrderByCustomerResponse": orders_cancel_test_order_by_customer_response +"/content:v2.1/OrdersCancelTestOrderByCustomerResponse/kind": kind +"/content:v2.1/OrdersCreateTestOrderRequest": orders_create_test_order_request +"/content:v2.1/OrdersCreateTestOrderRequest/country": country +"/content:v2.1/OrdersCreateTestOrderRequest/templateName": template_name +"/content:v2.1/OrdersCreateTestOrderRequest/testOrder": test_order +"/content:v2.1/OrdersCreateTestOrderResponse": orders_create_test_order_response +"/content:v2.1/OrdersCreateTestOrderResponse/kind": kind +"/content:v2.1/OrdersCreateTestOrderResponse/orderId": order_id +"/content:v2.1/OrdersCreateTestReturnRequest": orders_create_test_return_request +"/content:v2.1/OrdersCreateTestReturnRequest/items": items +"/content:v2.1/OrdersCreateTestReturnRequest/items/item": item +"/content:v2.1/OrdersCreateTestReturnResponse": orders_create_test_return_response +"/content:v2.1/OrdersCreateTestReturnResponse/kind": kind +"/content:v2.1/OrdersCreateTestReturnResponse/returnId": return_id +"/content:v2.1/OrdersCustomBatchRequestEntryCreateTestReturnReturnItem": orders_custom_batch_request_entry_create_test_return_return_item +"/content:v2.1/OrdersCustomBatchRequestEntryCreateTestReturnReturnItem/lineItemId": line_item_id +"/content:v2.1/OrdersCustomBatchRequestEntryCreateTestReturnReturnItem/quantity": quantity +"/content:v2.1/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo": orders_custom_batch_request_entry_ship_line_items_shipment_info +"/content:v2.1/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/carrier": carrier +"/content:v2.1/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/shipmentId": shipment_id +"/content:v2.1/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/trackingId": tracking_id +"/content:v2.1/OrdersGetByMerchantOrderIdResponse": orders_get_by_merchant_order_id_response +"/content:v2.1/OrdersGetByMerchantOrderIdResponse/kind": kind +"/content:v2.1/OrdersGetByMerchantOrderIdResponse/order": order +"/content:v2.1/OrdersGetTestOrderTemplateResponse": orders_get_test_order_template_response +"/content:v2.1/OrdersGetTestOrderTemplateResponse/kind": kind +"/content:v2.1/OrdersGetTestOrderTemplateResponse/template": template +"/content:v2.1/OrdersInStoreRefundLineItemRequest": orders_in_store_refund_line_item_request +"/content:v2.1/OrdersInStoreRefundLineItemRequest/lineItemId": line_item_id +"/content:v2.1/OrdersInStoreRefundLineItemRequest/operationId": operation_id +"/content:v2.1/OrdersInStoreRefundLineItemRequest/priceAmount": price_amount +"/content:v2.1/OrdersInStoreRefundLineItemRequest/productId": product_id +"/content:v2.1/OrdersInStoreRefundLineItemRequest/quantity": quantity +"/content:v2.1/OrdersInStoreRefundLineItemRequest/reason": reason +"/content:v2.1/OrdersInStoreRefundLineItemRequest/reasonText": reason_text +"/content:v2.1/OrdersInStoreRefundLineItemRequest/taxAmount": tax_amount +"/content:v2.1/OrdersInStoreRefundLineItemResponse": orders_in_store_refund_line_item_response +"/content:v2.1/OrdersInStoreRefundLineItemResponse/executionStatus": execution_status +"/content:v2.1/OrdersInStoreRefundLineItemResponse/kind": kind +"/content:v2.1/OrdersListResponse": orders_list_response +"/content:v2.1/OrdersListResponse/kind": kind +"/content:v2.1/OrdersListResponse/nextPageToken": next_page_token +"/content:v2.1/OrdersListResponse/resources": resources +"/content:v2.1/OrdersListResponse/resources/resource": resource +"/content:v2.1/OrdersRejectReturnLineItemRequest": orders_reject_return_line_item_request +"/content:v2.1/OrdersRejectReturnLineItemRequest/lineItemId": line_item_id +"/content:v2.1/OrdersRejectReturnLineItemRequest/operationId": operation_id +"/content:v2.1/OrdersRejectReturnLineItemRequest/productId": product_id +"/content:v2.1/OrdersRejectReturnLineItemRequest/quantity": quantity +"/content:v2.1/OrdersRejectReturnLineItemRequest/reason": reason +"/content:v2.1/OrdersRejectReturnLineItemRequest/reasonText": reason_text +"/content:v2.1/OrdersRejectReturnLineItemResponse": orders_reject_return_line_item_response +"/content:v2.1/OrdersRejectReturnLineItemResponse/executionStatus": execution_status +"/content:v2.1/OrdersRejectReturnLineItemResponse/kind": kind +"/content:v2.1/OrdersReturnRefundLineItemRequest": orders_return_refund_line_item_request +"/content:v2.1/OrdersReturnRefundLineItemRequest/lineItemId": line_item_id +"/content:v2.1/OrdersReturnRefundLineItemRequest/operationId": operation_id +"/content:v2.1/OrdersReturnRefundLineItemRequest/priceAmount": price_amount +"/content:v2.1/OrdersReturnRefundLineItemRequest/productId": product_id +"/content:v2.1/OrdersReturnRefundLineItemRequest/quantity": quantity +"/content:v2.1/OrdersReturnRefundLineItemRequest/reason": reason +"/content:v2.1/OrdersReturnRefundLineItemRequest/reasonText": reason_text +"/content:v2.1/OrdersReturnRefundLineItemRequest/taxAmount": tax_amount +"/content:v2.1/OrdersReturnRefundLineItemResponse": orders_return_refund_line_item_response +"/content:v2.1/OrdersReturnRefundLineItemResponse/executionStatus": execution_status +"/content:v2.1/OrdersReturnRefundLineItemResponse/kind": kind +"/content:v2.1/OrdersSetLineItemMetadataRequest": orders_set_line_item_metadata_request +"/content:v2.1/OrdersSetLineItemMetadataRequest/annotations": annotations +"/content:v2.1/OrdersSetLineItemMetadataRequest/annotations/annotation": annotation +"/content:v2.1/OrdersSetLineItemMetadataRequest/lineItemId": line_item_id +"/content:v2.1/OrdersSetLineItemMetadataRequest/operationId": operation_id +"/content:v2.1/OrdersSetLineItemMetadataRequest/productId": product_id +"/content:v2.1/OrdersSetLineItemMetadataResponse": orders_set_line_item_metadata_response +"/content:v2.1/OrdersSetLineItemMetadataResponse/executionStatus": execution_status +"/content:v2.1/OrdersSetLineItemMetadataResponse/kind": kind +"/content:v2.1/OrdersShipLineItemsRequest": orders_ship_line_items_request +"/content:v2.1/OrdersShipLineItemsRequest/lineItems": line_items +"/content:v2.1/OrdersShipLineItemsRequest/lineItems/line_item": line_item +"/content:v2.1/OrdersShipLineItemsRequest/operationId": operation_id +"/content:v2.1/OrdersShipLineItemsRequest/shipmentGroupId": shipment_group_id +"/content:v2.1/OrdersShipLineItemsRequest/shipmentInfos": shipment_infos +"/content:v2.1/OrdersShipLineItemsRequest/shipmentInfos/shipment_info": shipment_info +"/content:v2.1/OrdersShipLineItemsResponse": orders_ship_line_items_response +"/content:v2.1/OrdersShipLineItemsResponse/executionStatus": execution_status +"/content:v2.1/OrdersShipLineItemsResponse/kind": kind +"/content:v2.1/OrdersUpdateLineItemShippingDetailsRequest": orders_update_line_item_shipping_details_request +"/content:v2.1/OrdersUpdateLineItemShippingDetailsRequest/deliverByDate": deliver_by_date +"/content:v2.1/OrdersUpdateLineItemShippingDetailsRequest/lineItemId": line_item_id +"/content:v2.1/OrdersUpdateLineItemShippingDetailsRequest/operationId": operation_id +"/content:v2.1/OrdersUpdateLineItemShippingDetailsRequest/productId": product_id +"/content:v2.1/OrdersUpdateLineItemShippingDetailsRequest/shipByDate": ship_by_date +"/content:v2.1/OrdersUpdateLineItemShippingDetailsResponse": orders_update_line_item_shipping_details_response +"/content:v2.1/OrdersUpdateLineItemShippingDetailsResponse/executionStatus": execution_status +"/content:v2.1/OrdersUpdateLineItemShippingDetailsResponse/kind": kind +"/content:v2.1/OrdersUpdateMerchantOrderIdRequest": orders_update_merchant_order_id_request +"/content:v2.1/OrdersUpdateMerchantOrderIdRequest/merchantOrderId": merchant_order_id +"/content:v2.1/OrdersUpdateMerchantOrderIdRequest/operationId": operation_id +"/content:v2.1/OrdersUpdateMerchantOrderIdResponse": orders_update_merchant_order_id_response +"/content:v2.1/OrdersUpdateMerchantOrderIdResponse/executionStatus": execution_status +"/content:v2.1/OrdersUpdateMerchantOrderIdResponse/kind": kind +"/content:v2.1/OrdersUpdateShipmentRequest": orders_update_shipment_request +"/content:v2.1/OrdersUpdateShipmentRequest/carrier": carrier +"/content:v2.1/OrdersUpdateShipmentRequest/deliveryDate": delivery_date +"/content:v2.1/OrdersUpdateShipmentRequest/operationId": operation_id +"/content:v2.1/OrdersUpdateShipmentRequest/shipmentId": shipment_id +"/content:v2.1/OrdersUpdateShipmentRequest/status": status +"/content:v2.1/OrdersUpdateShipmentRequest/trackingId": tracking_id +"/content:v2.1/OrdersUpdateShipmentResponse": orders_update_shipment_response +"/content:v2.1/OrdersUpdateShipmentResponse/executionStatus": execution_status +"/content:v2.1/OrdersUpdateShipmentResponse/kind": kind +"/content:v2.1/PosCustomBatchRequest": pos_custom_batch_request +"/content:v2.1/PosCustomBatchRequest/entries": entries +"/content:v2.1/PosCustomBatchRequest/entries/entry": entry +"/content:v2.1/PosCustomBatchRequestEntry": pos_custom_batch_request_entry +"/content:v2.1/PosCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/PosCustomBatchRequestEntry/inventory": inventory +"/content:v2.1/PosCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/PosCustomBatchRequestEntry/method": method_prop +"/content:v2.1/PosCustomBatchRequestEntry/sale": sale +"/content:v2.1/PosCustomBatchRequestEntry/store": store +"/content:v2.1/PosCustomBatchRequestEntry/storeCode": store_code +"/content:v2.1/PosCustomBatchRequestEntry/targetMerchantId": target_merchant_id +"/content:v2.1/PosCustomBatchResponse": pos_custom_batch_response +"/content:v2.1/PosCustomBatchResponse/entries": entries +"/content:v2.1/PosCustomBatchResponse/entries/entry": entry +"/content:v2.1/PosCustomBatchResponse/kind": kind +"/content:v2.1/PosCustomBatchResponseEntry": pos_custom_batch_response_entry +"/content:v2.1/PosCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/PosCustomBatchResponseEntry/errors": errors +"/content:v2.1/PosCustomBatchResponseEntry/inventory": inventory +"/content:v2.1/PosCustomBatchResponseEntry/kind": kind +"/content:v2.1/PosCustomBatchResponseEntry/sale": sale +"/content:v2.1/PosCustomBatchResponseEntry/store": store +"/content:v2.1/PosDataProviders": pos_data_providers +"/content:v2.1/PosDataProviders/country": country +"/content:v2.1/PosDataProviders/posDataProviders": pos_data_providers +"/content:v2.1/PosDataProviders/posDataProviders/pos_data_provider": pos_data_provider +"/content:v2.1/PosDataProvidersPosDataProvider": pos_data_providers_pos_data_provider +"/content:v2.1/PosDataProvidersPosDataProvider/displayName": display_name +"/content:v2.1/PosDataProvidersPosDataProvider/fullName": full_name +"/content:v2.1/PosDataProvidersPosDataProvider/providerId": provider_id +"/content:v2.1/PosInventory": pos_inventory +"/content:v2.1/PosInventory/contentLanguage": content_language +"/content:v2.1/PosInventory/gtin": gtin +"/content:v2.1/PosInventory/itemId": item_id +"/content:v2.1/PosInventory/kind": kind +"/content:v2.1/PosInventory/price": price +"/content:v2.1/PosInventory/quantity": quantity +"/content:v2.1/PosInventory/storeCode": store_code +"/content:v2.1/PosInventory/targetCountry": target_country +"/content:v2.1/PosInventory/timestamp": timestamp +"/content:v2.1/PosInventoryRequest": pos_inventory_request +"/content:v2.1/PosInventoryRequest/contentLanguage": content_language +"/content:v2.1/PosInventoryRequest/gtin": gtin +"/content:v2.1/PosInventoryRequest/itemId": item_id +"/content:v2.1/PosInventoryRequest/price": price +"/content:v2.1/PosInventoryRequest/quantity": quantity +"/content:v2.1/PosInventoryRequest/storeCode": store_code +"/content:v2.1/PosInventoryRequest/targetCountry": target_country +"/content:v2.1/PosInventoryRequest/timestamp": timestamp +"/content:v2.1/PosInventoryResponse": pos_inventory_response +"/content:v2.1/PosInventoryResponse/contentLanguage": content_language +"/content:v2.1/PosInventoryResponse/gtin": gtin +"/content:v2.1/PosInventoryResponse/itemId": item_id +"/content:v2.1/PosInventoryResponse/kind": kind +"/content:v2.1/PosInventoryResponse/price": price +"/content:v2.1/PosInventoryResponse/quantity": quantity +"/content:v2.1/PosInventoryResponse/storeCode": store_code +"/content:v2.1/PosInventoryResponse/targetCountry": target_country +"/content:v2.1/PosInventoryResponse/timestamp": timestamp +"/content:v2.1/PosListResponse": pos_list_response +"/content:v2.1/PosListResponse/kind": kind +"/content:v2.1/PosListResponse/resources": resources +"/content:v2.1/PosListResponse/resources/resource": resource +"/content:v2.1/PosSale": pos_sale +"/content:v2.1/PosSale/contentLanguage": content_language +"/content:v2.1/PosSale/gtin": gtin +"/content:v2.1/PosSale/itemId": item_id +"/content:v2.1/PosSale/kind": kind +"/content:v2.1/PosSale/price": price +"/content:v2.1/PosSale/quantity": quantity +"/content:v2.1/PosSale/saleId": sale_id +"/content:v2.1/PosSale/storeCode": store_code +"/content:v2.1/PosSale/targetCountry": target_country +"/content:v2.1/PosSale/timestamp": timestamp +"/content:v2.1/PosSaleRequest": pos_sale_request +"/content:v2.1/PosSaleRequest/contentLanguage": content_language +"/content:v2.1/PosSaleRequest/gtin": gtin +"/content:v2.1/PosSaleRequest/itemId": item_id +"/content:v2.1/PosSaleRequest/price": price +"/content:v2.1/PosSaleRequest/quantity": quantity +"/content:v2.1/PosSaleRequest/saleId": sale_id +"/content:v2.1/PosSaleRequest/storeCode": store_code +"/content:v2.1/PosSaleRequest/targetCountry": target_country +"/content:v2.1/PosSaleRequest/timestamp": timestamp +"/content:v2.1/PosSaleResponse": pos_sale_response +"/content:v2.1/PosSaleResponse/contentLanguage": content_language +"/content:v2.1/PosSaleResponse/gtin": gtin +"/content:v2.1/PosSaleResponse/itemId": item_id +"/content:v2.1/PosSaleResponse/kind": kind +"/content:v2.1/PosSaleResponse/price": price +"/content:v2.1/PosSaleResponse/quantity": quantity +"/content:v2.1/PosSaleResponse/saleId": sale_id +"/content:v2.1/PosSaleResponse/storeCode": store_code +"/content:v2.1/PosSaleResponse/targetCountry": target_country +"/content:v2.1/PosSaleResponse/timestamp": timestamp +"/content:v2.1/PosStore": pos_store +"/content:v2.1/PosStore/kind": kind +"/content:v2.1/PosStore/storeAddress": store_address +"/content:v2.1/PosStore/storeCode": store_code +"/content:v2.1/PostalCodeGroup": postal_code_group +"/content:v2.1/PostalCodeGroup/country": country +"/content:v2.1/PostalCodeGroup/name": name +"/content:v2.1/PostalCodeGroup/postalCodeRanges": postal_code_ranges +"/content:v2.1/PostalCodeGroup/postalCodeRanges/postal_code_range": postal_code_range +"/content:v2.1/PostalCodeRange": postal_code_range +"/content:v2.1/PostalCodeRange/postalCodeRangeBegin": postal_code_range_begin +"/content:v2.1/PostalCodeRange/postalCodeRangeEnd": postal_code_range_end +"/content:v2.1/Price": price +"/content:v2.1/Price/currency": currency +"/content:v2.1/Price/value": value +"/content:v2.1/Product": product +"/content:v2.1/Product/additionalImageLinks": additional_image_links +"/content:v2.1/Product/additionalImageLinks/additional_image_link": additional_image_link +"/content:v2.1/Product/adsGrouping": ads_grouping +"/content:v2.1/Product/adsLabels": ads_labels +"/content:v2.1/Product/adsLabels/ads_label": ads_label +"/content:v2.1/Product/adsRedirect": ads_redirect +"/content:v2.1/Product/adult": adult +"/content:v2.1/Product/ageGroup": age_group +"/content:v2.1/Product/availability": availability +"/content:v2.1/Product/availabilityDate": availability_date +"/content:v2.1/Product/brand": brand +"/content:v2.1/Product/channel": channel +"/content:v2.1/Product/color": color +"/content:v2.1/Product/condition": condition +"/content:v2.1/Product/contentLanguage": content_language +"/content:v2.1/Product/costOfGoodsSold": cost_of_goods_sold +"/content:v2.1/Product/customAttributes": custom_attributes +"/content:v2.1/Product/customAttributes/custom_attribute": custom_attribute +"/content:v2.1/Product/customLabel0": custom_label0 +"/content:v2.1/Product/customLabel1": custom_label1 +"/content:v2.1/Product/customLabel2": custom_label2 +"/content:v2.1/Product/customLabel3": custom_label3 +"/content:v2.1/Product/customLabel4": custom_label4 +"/content:v2.1/Product/description": description +"/content:v2.1/Product/displayAdsId": display_ads_id +"/content:v2.1/Product/displayAdsLink": display_ads_link +"/content:v2.1/Product/displayAdsSimilarIds": display_ads_similar_ids +"/content:v2.1/Product/displayAdsSimilarIds/display_ads_similar_id": display_ads_similar_id +"/content:v2.1/Product/displayAdsTitle": display_ads_title +"/content:v2.1/Product/displayAdsValue": display_ads_value +"/content:v2.1/Product/energyEfficiencyClass": energy_efficiency_class +"/content:v2.1/Product/excludedDestinations": excluded_destinations +"/content:v2.1/Product/excludedDestinations/excluded_destination": excluded_destination +"/content:v2.1/Product/expirationDate": expiration_date +"/content:v2.1/Product/gender": gender +"/content:v2.1/Product/googleProductCategory": google_product_category +"/content:v2.1/Product/gtin": gtin +"/content:v2.1/Product/id": id +"/content:v2.1/Product/identifierExists": identifier_exists +"/content:v2.1/Product/imageLink": image_link +"/content:v2.1/Product/includedDestinations": included_destinations +"/content:v2.1/Product/includedDestinations/included_destination": included_destination +"/content:v2.1/Product/installment": installment +"/content:v2.1/Product/isBundle": is_bundle +"/content:v2.1/Product/itemGroupId": item_group_id +"/content:v2.1/Product/kind": kind +"/content:v2.1/Product/link": link +"/content:v2.1/Product/loyaltyPoints": loyalty_points +"/content:v2.1/Product/material": material +"/content:v2.1/Product/maxEnergyEfficiencyClass": max_energy_efficiency_class +"/content:v2.1/Product/maxHandlingTime": max_handling_time +"/content:v2.1/Product/minEnergyEfficiencyClass": min_energy_efficiency_class +"/content:v2.1/Product/minHandlingTime": min_handling_time +"/content:v2.1/Product/mobileLink": mobile_link +"/content:v2.1/Product/mpn": mpn +"/content:v2.1/Product/multipack": multipack +"/content:v2.1/Product/offerId": offer_id +"/content:v2.1/Product/pattern": pattern +"/content:v2.1/Product/price": price +"/content:v2.1/Product/productTypes": product_types +"/content:v2.1/Product/productTypes/product_type": product_type +"/content:v2.1/Product/promotionIds": promotion_ids +"/content:v2.1/Product/promotionIds/promotion_id": promotion_id +"/content:v2.1/Product/salePrice": sale_price +"/content:v2.1/Product/salePriceEffectiveDate": sale_price_effective_date +"/content:v2.1/Product/sellOnGoogleQuantity": sell_on_google_quantity +"/content:v2.1/Product/shipping": shipping +"/content:v2.1/Product/shipping/shipping": shipping +"/content:v2.1/Product/shippingHeight": shipping_height +"/content:v2.1/Product/shippingLabel": shipping_label +"/content:v2.1/Product/shippingLength": shipping_length +"/content:v2.1/Product/shippingWeight": shipping_weight +"/content:v2.1/Product/shippingWidth": shipping_width +"/content:v2.1/Product/sizeSystem": size_system +"/content:v2.1/Product/sizeType": size_type +"/content:v2.1/Product/sizes": sizes +"/content:v2.1/Product/sizes/size": size +"/content:v2.1/Product/source": source +"/content:v2.1/Product/targetCountry": target_country +"/content:v2.1/Product/taxes": taxes +"/content:v2.1/Product/taxes/tax": tax +"/content:v2.1/Product/title": title +"/content:v2.1/Product/unitPricingBaseMeasure": unit_pricing_base_measure +"/content:v2.1/Product/unitPricingMeasure": unit_pricing_measure +"/content:v2.1/ProductShipping": product_shipping +"/content:v2.1/ProductShipping/country": country +"/content:v2.1/ProductShipping/locationGroupName": location_group_name +"/content:v2.1/ProductShipping/locationId": location_id +"/content:v2.1/ProductShipping/postalCode": postal_code +"/content:v2.1/ProductShipping/price": price +"/content:v2.1/ProductShipping/region": region +"/content:v2.1/ProductShipping/service": service +"/content:v2.1/ProductShippingDimension": product_shipping_dimension +"/content:v2.1/ProductShippingDimension/unit": unit +"/content:v2.1/ProductShippingDimension/value": value +"/content:v2.1/ProductShippingWeight": product_shipping_weight +"/content:v2.1/ProductShippingWeight/unit": unit +"/content:v2.1/ProductShippingWeight/value": value +"/content:v2.1/ProductStatus": product_status +"/content:v2.1/ProductStatus/creationDate": creation_date +"/content:v2.1/ProductStatus/destinationStatuses": destination_statuses +"/content:v2.1/ProductStatus/destinationStatuses/destination_status": destination_status +"/content:v2.1/ProductStatus/googleExpirationDate": google_expiration_date +"/content:v2.1/ProductStatus/itemLevelIssues": item_level_issues +"/content:v2.1/ProductStatus/itemLevelIssues/item_level_issue": item_level_issue +"/content:v2.1/ProductStatus/kind": kind +"/content:v2.1/ProductStatus/lastUpdateDate": last_update_date +"/content:v2.1/ProductStatus/link": link +"/content:v2.1/ProductStatus/productId": product_id +"/content:v2.1/ProductStatus/title": title +"/content:v2.1/ProductStatusDestinationStatus": product_status_destination_status +"/content:v2.1/ProductStatusDestinationStatus/destination": destination +"/content:v2.1/ProductStatusDestinationStatus/status": status +"/content:v2.1/ProductStatusItemLevelIssue": product_status_item_level_issue +"/content:v2.1/ProductStatusItemLevelIssue/attributeName": attribute_name +"/content:v2.1/ProductStatusItemLevelIssue/code": code +"/content:v2.1/ProductStatusItemLevelIssue/description": description +"/content:v2.1/ProductStatusItemLevelIssue/destination": destination +"/content:v2.1/ProductStatusItemLevelIssue/detail": detail +"/content:v2.1/ProductStatusItemLevelIssue/documentation": documentation +"/content:v2.1/ProductStatusItemLevelIssue/resolution": resolution +"/content:v2.1/ProductStatusItemLevelIssue/servability": servability +"/content:v2.1/ProductTax": product_tax +"/content:v2.1/ProductTax/country": country +"/content:v2.1/ProductTax/locationId": location_id +"/content:v2.1/ProductTax/postalCode": postal_code +"/content:v2.1/ProductTax/rate": rate +"/content:v2.1/ProductTax/region": region +"/content:v2.1/ProductTax/taxShip": tax_ship +"/content:v2.1/ProductUnitPricingBaseMeasure": product_unit_pricing_base_measure +"/content:v2.1/ProductUnitPricingBaseMeasure/unit": unit +"/content:v2.1/ProductUnitPricingBaseMeasure/value": value +"/content:v2.1/ProductUnitPricingMeasure": product_unit_pricing_measure +"/content:v2.1/ProductUnitPricingMeasure/unit": unit +"/content:v2.1/ProductUnitPricingMeasure/value": value +"/content:v2.1/ProductsCustomBatchRequest": products_custom_batch_request +"/content:v2.1/ProductsCustomBatchRequest/entries": entries +"/content:v2.1/ProductsCustomBatchRequest/entries/entry": entry +"/content:v2.1/ProductsCustomBatchRequestEntry": products_custom_batch_request_entry +"/content:v2.1/ProductsCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/ProductsCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/ProductsCustomBatchRequestEntry/method": method_prop +"/content:v2.1/ProductsCustomBatchRequestEntry/product": product +"/content:v2.1/ProductsCustomBatchRequestEntry/productId": product_id +"/content:v2.1/ProductsCustomBatchResponse": products_custom_batch_response +"/content:v2.1/ProductsCustomBatchResponse/entries": entries +"/content:v2.1/ProductsCustomBatchResponse/entries/entry": entry +"/content:v2.1/ProductsCustomBatchResponse/kind": kind +"/content:v2.1/ProductsCustomBatchResponseEntry": products_custom_batch_response_entry +"/content:v2.1/ProductsCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/ProductsCustomBatchResponseEntry/errors": errors +"/content:v2.1/ProductsCustomBatchResponseEntry/kind": kind +"/content:v2.1/ProductsCustomBatchResponseEntry/product": product +"/content:v2.1/ProductsListResponse": products_list_response +"/content:v2.1/ProductsListResponse/kind": kind +"/content:v2.1/ProductsListResponse/nextPageToken": next_page_token +"/content:v2.1/ProductsListResponse/resources": resources +"/content:v2.1/ProductsListResponse/resources/resource": resource +"/content:v2.1/ProductstatusesCustomBatchRequest": productstatuses_custom_batch_request +"/content:v2.1/ProductstatusesCustomBatchRequest/entries": entries +"/content:v2.1/ProductstatusesCustomBatchRequest/entries/entry": entry +"/content:v2.1/ProductstatusesCustomBatchRequestEntry": productstatuses_custom_batch_request_entry +"/content:v2.1/ProductstatusesCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/ProductstatusesCustomBatchRequestEntry/destinations": destinations +"/content:v2.1/ProductstatusesCustomBatchRequestEntry/destinations/destination": destination +"/content:v2.1/ProductstatusesCustomBatchRequestEntry/includeAttributes": include_attributes +"/content:v2.1/ProductstatusesCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/ProductstatusesCustomBatchRequestEntry/method": method_prop +"/content:v2.1/ProductstatusesCustomBatchRequestEntry/productId": product_id +"/content:v2.1/ProductstatusesCustomBatchResponse": productstatuses_custom_batch_response +"/content:v2.1/ProductstatusesCustomBatchResponse/entries": entries +"/content:v2.1/ProductstatusesCustomBatchResponse/entries/entry": entry +"/content:v2.1/ProductstatusesCustomBatchResponse/kind": kind +"/content:v2.1/ProductstatusesCustomBatchResponseEntry": productstatuses_custom_batch_response_entry +"/content:v2.1/ProductstatusesCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/ProductstatusesCustomBatchResponseEntry/errors": errors +"/content:v2.1/ProductstatusesCustomBatchResponseEntry/kind": kind +"/content:v2.1/ProductstatusesCustomBatchResponseEntry/productStatus": product_status +"/content:v2.1/ProductstatusesListResponse": productstatuses_list_response +"/content:v2.1/ProductstatusesListResponse/kind": kind +"/content:v2.1/ProductstatusesListResponse/nextPageToken": next_page_token +"/content:v2.1/ProductstatusesListResponse/resources": resources +"/content:v2.1/ProductstatusesListResponse/resources/resource": resource +"/content:v2.1/Promotion": promotion +"/content:v2.1/Promotion/promotionAmount": promotion_amount +"/content:v2.1/Promotion/promotionId": promotion_id +"/content:v2.1/RateGroup": rate_group +"/content:v2.1/RateGroup/applicableShippingLabels": applicable_shipping_labels +"/content:v2.1/RateGroup/applicableShippingLabels/applicable_shipping_label": applicable_shipping_label +"/content:v2.1/RateGroup/carrierRates": carrier_rates +"/content:v2.1/RateGroup/carrierRates/carrier_rate": carrier_rate +"/content:v2.1/RateGroup/mainTable": main_table +"/content:v2.1/RateGroup/name": name +"/content:v2.1/RateGroup/singleValue": single_value +"/content:v2.1/RateGroup/subtables": subtables +"/content:v2.1/RateGroup/subtables/subtable": subtable +"/content:v2.1/RefundReason": refund_reason +"/content:v2.1/RefundReason/description": description +"/content:v2.1/RefundReason/reasonCode": reason_code +"/content:v2.1/ReturnShipment": return_shipment +"/content:v2.1/ReturnShipment/creationDate": creation_date +"/content:v2.1/ReturnShipment/returnMethodType": return_method_type +"/content:v2.1/ReturnShipment/shipmentId": shipment_id +"/content:v2.1/ReturnShipment/shipmentTrackingInfos": shipment_tracking_infos +"/content:v2.1/ReturnShipment/shipmentTrackingInfos/shipment_tracking_info": shipment_tracking_info +"/content:v2.1/Row": row +"/content:v2.1/Row/cells": cells +"/content:v2.1/Row/cells/cell": cell +"/content:v2.1/Service": service +"/content:v2.1/Service/active": active +"/content:v2.1/Service/currency": currency +"/content:v2.1/Service/deliveryCountry": delivery_country +"/content:v2.1/Service/deliveryTime": delivery_time +"/content:v2.1/Service/eligibility": eligibility +"/content:v2.1/Service/minimumOrderValue": minimum_order_value +"/content:v2.1/Service/name": name +"/content:v2.1/Service/rateGroups": rate_groups +"/content:v2.1/Service/rateGroups/rate_group": rate_group +"/content:v2.1/ShipmentInvoice": shipment_invoice +"/content:v2.1/ShipmentInvoice/invoiceSummary": invoice_summary +"/content:v2.1/ShipmentInvoice/lineItemInvoices": line_item_invoices +"/content:v2.1/ShipmentInvoice/lineItemInvoices/line_item_invoice": line_item_invoice +"/content:v2.1/ShipmentInvoice/shipmentGroupId": shipment_group_id +"/content:v2.1/ShipmentInvoiceLineItemInvoice": shipment_invoice_line_item_invoice +"/content:v2.1/ShipmentInvoiceLineItemInvoice/lineItemId": line_item_id +"/content:v2.1/ShipmentInvoiceLineItemInvoice/productId": product_id +"/content:v2.1/ShipmentInvoiceLineItemInvoice/shipmentUnitIds": shipment_unit_ids +"/content:v2.1/ShipmentInvoiceLineItemInvoice/shipmentUnitIds/shipment_unit_id": shipment_unit_id +"/content:v2.1/ShipmentInvoiceLineItemInvoice/unitInvoice": unit_invoice +"/content:v2.1/ShipmentTrackingInfo": shipment_tracking_info +"/content:v2.1/ShipmentTrackingInfo/carrier": carrier +"/content:v2.1/ShipmentTrackingInfo/trackingNumber": tracking_number +"/content:v2.1/ShippingSettings": shipping_settings +"/content:v2.1/ShippingSettings/accountId": account_id +"/content:v2.1/ShippingSettings/postalCodeGroups": postal_code_groups +"/content:v2.1/ShippingSettings/postalCodeGroups/postal_code_group": postal_code_group +"/content:v2.1/ShippingSettings/services": services +"/content:v2.1/ShippingSettings/services/service": service +"/content:v2.1/ShippingsettingsCustomBatchRequest": shippingsettings_custom_batch_request +"/content:v2.1/ShippingsettingsCustomBatchRequest/entries": entries +"/content:v2.1/ShippingsettingsCustomBatchRequest/entries/entry": entry +"/content:v2.1/ShippingsettingsCustomBatchRequestEntry": shippingsettings_custom_batch_request_entry +"/content:v2.1/ShippingsettingsCustomBatchRequestEntry/accountId": account_id +"/content:v2.1/ShippingsettingsCustomBatchRequestEntry/batchId": batch_id +"/content:v2.1/ShippingsettingsCustomBatchRequestEntry/merchantId": merchant_id +"/content:v2.1/ShippingsettingsCustomBatchRequestEntry/method": method_prop +"/content:v2.1/ShippingsettingsCustomBatchRequestEntry/shippingSettings": shipping_settings +"/content:v2.1/ShippingsettingsCustomBatchResponse": shippingsettings_custom_batch_response +"/content:v2.1/ShippingsettingsCustomBatchResponse/entries": entries +"/content:v2.1/ShippingsettingsCustomBatchResponse/entries/entry": entry +"/content:v2.1/ShippingsettingsCustomBatchResponse/kind": kind +"/content:v2.1/ShippingsettingsCustomBatchResponseEntry": shippingsettings_custom_batch_response_entry +"/content:v2.1/ShippingsettingsCustomBatchResponseEntry/batchId": batch_id +"/content:v2.1/ShippingsettingsCustomBatchResponseEntry/errors": errors +"/content:v2.1/ShippingsettingsCustomBatchResponseEntry/kind": kind +"/content:v2.1/ShippingsettingsCustomBatchResponseEntry/shippingSettings": shipping_settings +"/content:v2.1/ShippingsettingsGetSupportedCarriersResponse": shippingsettings_get_supported_carriers_response +"/content:v2.1/ShippingsettingsGetSupportedCarriersResponse/carriers": carriers +"/content:v2.1/ShippingsettingsGetSupportedCarriersResponse/carriers/carrier": carrier +"/content:v2.1/ShippingsettingsGetSupportedCarriersResponse/kind": kind +"/content:v2.1/ShippingsettingsGetSupportedHolidaysResponse": shippingsettings_get_supported_holidays_response +"/content:v2.1/ShippingsettingsGetSupportedHolidaysResponse/holidays": holidays +"/content:v2.1/ShippingsettingsGetSupportedHolidaysResponse/holidays/holiday": holiday +"/content:v2.1/ShippingsettingsGetSupportedHolidaysResponse/kind": kind +"/content:v2.1/ShippingsettingsListResponse": shippingsettings_list_response +"/content:v2.1/ShippingsettingsListResponse/kind": kind +"/content:v2.1/ShippingsettingsListResponse/nextPageToken": next_page_token +"/content:v2.1/ShippingsettingsListResponse/resources": resources +"/content:v2.1/ShippingsettingsListResponse/resources/resource": resource +"/content:v2.1/Table": table +"/content:v2.1/Table/columnHeaders": column_headers +"/content:v2.1/Table/name": name +"/content:v2.1/Table/rowHeaders": row_headers +"/content:v2.1/Table/rows": rows +"/content:v2.1/Table/rows/row": row +"/content:v2.1/TestOrder": test_order +"/content:v2.1/TestOrder/customer": customer +"/content:v2.1/TestOrder/enableOrderinvoices": enable_orderinvoices +"/content:v2.1/TestOrder/kind": kind +"/content:v2.1/TestOrder/lineItems": line_items +"/content:v2.1/TestOrder/lineItems/line_item": line_item +"/content:v2.1/TestOrder/notificationMode": notification_mode +"/content:v2.1/TestOrder/predefinedBillingAddress": predefined_billing_address +"/content:v2.1/TestOrder/predefinedDeliveryAddress": predefined_delivery_address +"/content:v2.1/TestOrder/promotions": promotions +"/content:v2.1/TestOrder/promotions/promotion": promotion +"/content:v2.1/TestOrder/shippingCost": shipping_cost +"/content:v2.1/TestOrder/shippingCostTax": shipping_cost_tax +"/content:v2.1/TestOrder/shippingOption": shipping_option +"/content:v2.1/TestOrderCustomer": test_order_customer +"/content:v2.1/TestOrderCustomer/email": email +"/content:v2.1/TestOrderCustomer/fullName": full_name +"/content:v2.1/TestOrderCustomer/marketingRightsInfo": marketing_rights_info +"/content:v2.1/TestOrderCustomerMarketingRightsInfo": test_order_customer_marketing_rights_info +"/content:v2.1/TestOrderCustomerMarketingRightsInfo/explicitMarketingPreference": explicit_marketing_preference +"/content:v2.1/TestOrderCustomerMarketingRightsInfo/lastUpdatedTimestamp": last_updated_timestamp +"/content:v2.1/TestOrderLineItem": test_order_line_item +"/content:v2.1/TestOrderLineItem/product": product +"/content:v2.1/TestOrderLineItem/quantityOrdered": quantity_ordered +"/content:v2.1/TestOrderLineItem/returnInfo": return_info +"/content:v2.1/TestOrderLineItem/shippingDetails": shipping_details +"/content:v2.1/TestOrderLineItem/unitTax": unit_tax +"/content:v2.1/TestOrderLineItemProduct": test_order_line_item_product +"/content:v2.1/TestOrderLineItemProduct/brand": brand +"/content:v2.1/TestOrderLineItemProduct/channel": channel +"/content:v2.1/TestOrderLineItemProduct/condition": condition +"/content:v2.1/TestOrderLineItemProduct/contentLanguage": content_language +"/content:v2.1/TestOrderLineItemProduct/gtin": gtin +"/content:v2.1/TestOrderLineItemProduct/imageLink": image_link +"/content:v2.1/TestOrderLineItemProduct/itemGroupId": item_group_id +"/content:v2.1/TestOrderLineItemProduct/mpn": mpn +"/content:v2.1/TestOrderLineItemProduct/offerId": offer_id +"/content:v2.1/TestOrderLineItemProduct/price": price +"/content:v2.1/TestOrderLineItemProduct/targetCountry": target_country +"/content:v2.1/TestOrderLineItemProduct/title": title +"/content:v2.1/TestOrderLineItemProduct/variantAttributes": variant_attributes +"/content:v2.1/TestOrderLineItemProduct/variantAttributes/variant_attribute": variant_attribute +"/content:v2.1/UnitInvoice": unit_invoice +"/content:v2.1/UnitInvoice/additionalCharges": additional_charges +"/content:v2.1/UnitInvoice/additionalCharges/additional_charge": additional_charge +"/content:v2.1/UnitInvoice/promotions": promotions +"/content:v2.1/UnitInvoice/promotions/promotion": promotion +"/content:v2.1/UnitInvoice/unitPricePretax": unit_price_pretax +"/content:v2.1/UnitInvoice/unitPriceTaxes": unit_price_taxes +"/content:v2.1/UnitInvoice/unitPriceTaxes/unit_price_tax": unit_price_tax +"/content:v2.1/UnitInvoiceAdditionalCharge": unit_invoice_additional_charge +"/content:v2.1/UnitInvoiceAdditionalCharge/additionalChargeAmount": additional_charge_amount +"/content:v2.1/UnitInvoiceAdditionalCharge/additionalChargePromotions": additional_charge_promotions +"/content:v2.1/UnitInvoiceAdditionalCharge/additionalChargePromotions/additional_charge_promotion": additional_charge_promotion +"/content:v2.1/UnitInvoiceAdditionalCharge/type": type +"/content:v2.1/UnitInvoiceTaxLine": unit_invoice_tax_line +"/content:v2.1/UnitInvoiceTaxLine/taxAmount": tax_amount +"/content:v2.1/UnitInvoiceTaxLine/taxName": tax_name +"/content:v2.1/UnitInvoiceTaxLine/taxType": tax_type +"/content:v2.1/Value": value +"/content:v2.1/Value/carrierRateName": carrier_rate_name +"/content:v2.1/Value/flatRate": flat_rate +"/content:v2.1/Value/noShipping": no_shipping +"/content:v2.1/Value/pricePercentage": price_percentage +"/content:v2.1/Value/subtableName": subtable_name +"/content:v2.1/Weight": weight +"/content:v2.1/Weight/unit": unit +"/content:v2.1/Weight/value": value +"/content:v2.1/content.accounts.authinfo": authinfo_account +"/content:v2.1/content.accounts.claimwebsite": claimwebsite_account +"/content:v2.1/content.accounts.claimwebsite/accountId": account_id +"/content:v2.1/content.accounts.claimwebsite/merchantId": merchant_id +"/content:v2.1/content.accounts.claimwebsite/overwrite": overwrite +"/content:v2.1/content.accounts.custombatch": custombatch_account +"/content:v2.1/content.accounts.delete": delete_account +"/content:v2.1/content.accounts.delete/accountId": account_id +"/content:v2.1/content.accounts.delete/force": force +"/content:v2.1/content.accounts.delete/merchantId": merchant_id +"/content:v2.1/content.accounts.get": get_account +"/content:v2.1/content.accounts.get/accountId": account_id +"/content:v2.1/content.accounts.get/merchantId": merchant_id +"/content:v2.1/content.accounts.insert": insert_account +"/content:v2.1/content.accounts.insert/merchantId": merchant_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 +"/content:v2.1/content.accounts.list": list_accounts +"/content:v2.1/content.accounts.list/maxResults": max_results +"/content:v2.1/content.accounts.list/merchantId": merchant_id +"/content:v2.1/content.accounts.list/pageToken": page_token +"/content:v2.1/content.accounts.update": update_account +"/content:v2.1/content.accounts.update/accountId": account_id +"/content:v2.1/content.accounts.update/merchantId": merchant_id +"/content:v2.1/content.accountstatuses.custombatch": custombatch_accountstatus +"/content:v2.1/content.accountstatuses.get": get_accountstatus +"/content:v2.1/content.accountstatuses.get/accountId": account_id +"/content:v2.1/content.accountstatuses.get/destinations": destinations +"/content:v2.1/content.accountstatuses.get/merchantId": merchant_id +"/content:v2.1/content.accountstatuses.list": list_accountstatuses +"/content:v2.1/content.accountstatuses.list/destinations": destinations +"/content:v2.1/content.accountstatuses.list/maxResults": max_results +"/content:v2.1/content.accountstatuses.list/merchantId": merchant_id +"/content:v2.1/content.accountstatuses.list/pageToken": page_token +"/content:v2.1/content.accounttax.custombatch": custombatch_accounttax +"/content:v2.1/content.accounttax.get": get_accounttax +"/content:v2.1/content.accounttax.get/accountId": account_id +"/content:v2.1/content.accounttax.get/merchantId": merchant_id +"/content:v2.1/content.accounttax.list": list_accounttaxes +"/content:v2.1/content.accounttax.list/maxResults": max_results +"/content:v2.1/content.accounttax.list/merchantId": merchant_id +"/content:v2.1/content.accounttax.list/pageToken": page_token +"/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.datafeeds.custombatch": custombatch_datafeed +"/content:v2.1/content.datafeeds.delete": delete_datafeed +"/content:v2.1/content.datafeeds.delete/datafeedId": datafeed_id +"/content:v2.1/content.datafeeds.delete/merchantId": merchant_id +"/content:v2.1/content.datafeeds.fetchnow": fetchnow_datafeed +"/content:v2.1/content.datafeeds.fetchnow/datafeedId": datafeed_id +"/content:v2.1/content.datafeeds.fetchnow/merchantId": merchant_id +"/content:v2.1/content.datafeeds.get": get_datafeed +"/content:v2.1/content.datafeeds.get/datafeedId": datafeed_id +"/content:v2.1/content.datafeeds.get/merchantId": merchant_id +"/content:v2.1/content.datafeeds.insert": insert_datafeed +"/content:v2.1/content.datafeeds.insert/merchantId": merchant_id +"/content:v2.1/content.datafeeds.list": list_datafeeds +"/content:v2.1/content.datafeeds.list/maxResults": max_results +"/content:v2.1/content.datafeeds.list/merchantId": merchant_id +"/content:v2.1/content.datafeeds.list/pageToken": page_token +"/content:v2.1/content.datafeeds.update": update_datafeed +"/content:v2.1/content.datafeeds.update/datafeedId": datafeed_id +"/content:v2.1/content.datafeeds.update/merchantId": merchant_id +"/content:v2.1/content.datafeedstatuses.custombatch": custombatch_datafeedstatus +"/content:v2.1/content.datafeedstatuses.get": get_datafeedstatus +"/content:v2.1/content.datafeedstatuses.get/country": country +"/content:v2.1/content.datafeedstatuses.get/datafeedId": datafeed_id +"/content:v2.1/content.datafeedstatuses.get/language": language +"/content:v2.1/content.datafeedstatuses.get/merchantId": merchant_id +"/content:v2.1/content.datafeedstatuses.list": list_datafeedstatuses +"/content:v2.1/content.datafeedstatuses.list/maxResults": max_results +"/content:v2.1/content.datafeedstatuses.list/merchantId": merchant_id +"/content:v2.1/content.datafeedstatuses.list/pageToken": page_token +"/content:v2.1/content.liasettings.custombatch": custombatch_liasetting +"/content:v2.1/content.liasettings.get": get_liasetting +"/content:v2.1/content.liasettings.get/accountId": account_id +"/content:v2.1/content.liasettings.get/merchantId": merchant_id +"/content:v2.1/content.liasettings.getaccessiblegmbaccounts": getaccessiblegmbaccounts_liasetting +"/content:v2.1/content.liasettings.getaccessiblegmbaccounts/accountId": account_id +"/content:v2.1/content.liasettings.getaccessiblegmbaccounts/merchantId": merchant_id +"/content:v2.1/content.liasettings.list": list_liasettings +"/content:v2.1/content.liasettings.list/maxResults": max_results +"/content:v2.1/content.liasettings.list/merchantId": merchant_id +"/content:v2.1/content.liasettings.list/pageToken": page_token +"/content:v2.1/content.liasettings.listposdataproviders": listposdataproviders_liasetting +"/content:v2.1/content.liasettings.requestgmbaccess": requestgmbaccess_liasetting +"/content:v2.1/content.liasettings.requestgmbaccess/accountId": account_id +"/content:v2.1/content.liasettings.requestgmbaccess/gmbEmail": gmb_email +"/content:v2.1/content.liasettings.requestgmbaccess/merchantId": merchant_id +"/content:v2.1/content.liasettings.requestinventoryverification": requestinventoryverification_liasetting +"/content:v2.1/content.liasettings.requestinventoryverification/accountId": account_id +"/content:v2.1/content.liasettings.requestinventoryverification/country": country +"/content:v2.1/content.liasettings.requestinventoryverification/merchantId": merchant_id +"/content:v2.1/content.liasettings.setinventoryverificationcontact": setinventoryverificationcontact_liasetting +"/content:v2.1/content.liasettings.setinventoryverificationcontact/accountId": account_id +"/content:v2.1/content.liasettings.setinventoryverificationcontact/contactEmail": contact_email +"/content:v2.1/content.liasettings.setinventoryverificationcontact/contactName": contact_name +"/content:v2.1/content.liasettings.setinventoryverificationcontact/country": country +"/content:v2.1/content.liasettings.setinventoryverificationcontact/language": language +"/content:v2.1/content.liasettings.setinventoryverificationcontact/merchantId": merchant_id +"/content:v2.1/content.liasettings.setposdataprovider": setposdataprovider_liasetting +"/content:v2.1/content.liasettings.setposdataprovider/accountId": account_id +"/content:v2.1/content.liasettings.setposdataprovider/country": country +"/content:v2.1/content.liasettings.setposdataprovider/merchantId": merchant_id +"/content:v2.1/content.liasettings.setposdataprovider/posDataProviderId": pos_data_provider_id +"/content:v2.1/content.liasettings.setposdataprovider/posExternalAccountId": pos_external_account_id +"/content:v2.1/content.liasettings.update": update_liasetting +"/content:v2.1/content.liasettings.update/accountId": account_id +"/content:v2.1/content.liasettings.update/merchantId": merchant_id +"/content:v2.1/content.orderinvoices.createchargeinvoice": createchargeinvoice_orderinvoice +"/content:v2.1/content.orderinvoices.createchargeinvoice/merchantId": merchant_id +"/content:v2.1/content.orderinvoices.createchargeinvoice/orderId": order_id +"/content:v2.1/content.orderinvoices.createrefundinvoice": createrefundinvoice_orderinvoice +"/content:v2.1/content.orderinvoices.createrefundinvoice/merchantId": merchant_id +"/content:v2.1/content.orderinvoices.createrefundinvoice/orderId": order_id +"/content:v2.1/content.orderpayments.notifyauthapproved": notifyauthapproved_orderpayment +"/content:v2.1/content.orderpayments.notifyauthapproved/merchantId": merchant_id +"/content:v2.1/content.orderpayments.notifyauthapproved/orderId": order_id +"/content:v2.1/content.orderpayments.notifyauthdeclined": notifyauthdeclined_orderpayment +"/content:v2.1/content.orderpayments.notifyauthdeclined/merchantId": merchant_id +"/content:v2.1/content.orderpayments.notifyauthdeclined/orderId": order_id +"/content:v2.1/content.orderpayments.notifycharge": notifycharge_orderpayment +"/content:v2.1/content.orderpayments.notifycharge/merchantId": merchant_id +"/content:v2.1/content.orderpayments.notifycharge/orderId": order_id +"/content:v2.1/content.orderpayments.notifyrefund": notifyrefund_orderpayment +"/content:v2.1/content.orderpayments.notifyrefund/merchantId": merchant_id +"/content:v2.1/content.orderpayments.notifyrefund/orderId": order_id +"/content:v2.1/content.orderreports.listdisbursements": listdisbursements_orderreport +"/content:v2.1/content.orderreports.listdisbursements/disbursementEndDate": disbursement_end_date +"/content:v2.1/content.orderreports.listdisbursements/disbursementStartDate": disbursement_start_date +"/content:v2.1/content.orderreports.listdisbursements/maxResults": max_results +"/content:v2.1/content.orderreports.listdisbursements/merchantId": merchant_id +"/content:v2.1/content.orderreports.listdisbursements/pageToken": page_token +"/content:v2.1/content.orderreports.listtransactions": listtransactions_orderreport +"/content:v2.1/content.orderreports.listtransactions/disbursementId": disbursement_id +"/content:v2.1/content.orderreports.listtransactions/maxResults": max_results +"/content:v2.1/content.orderreports.listtransactions/merchantId": merchant_id +"/content:v2.1/content.orderreports.listtransactions/pageToken": page_token +"/content:v2.1/content.orderreports.listtransactions/transactionEndDate": transaction_end_date +"/content:v2.1/content.orderreports.listtransactions/transactionStartDate": transaction_start_date +"/content:v2.1/content.orderreturns.get": get_orderreturn +"/content:v2.1/content.orderreturns.get/merchantId": merchant_id +"/content:v2.1/content.orderreturns.get/returnId": return_id +"/content:v2.1/content.orderreturns.list": list_orderreturns +"/content:v2.1/content.orderreturns.list/createdEndDate": created_end_date +"/content:v2.1/content.orderreturns.list/createdStartDate": created_start_date +"/content:v2.1/content.orderreturns.list/maxResults": max_results +"/content:v2.1/content.orderreturns.list/merchantId": merchant_id +"/content:v2.1/content.orderreturns.list/orderBy": order_by +"/content:v2.1/content.orderreturns.list/pageToken": page_token +"/content:v2.1/content.orders.acknowledge": acknowledge_order +"/content:v2.1/content.orders.acknowledge/merchantId": merchant_id +"/content:v2.1/content.orders.acknowledge/orderId": order_id +"/content:v2.1/content.orders.advancetestorder": advancetestorder_order +"/content:v2.1/content.orders.advancetestorder/merchantId": merchant_id +"/content:v2.1/content.orders.advancetestorder/orderId": order_id +"/content:v2.1/content.orders.cancel": cancel_order +"/content:v2.1/content.orders.cancel/merchantId": merchant_id +"/content:v2.1/content.orders.cancel/orderId": order_id +"/content:v2.1/content.orders.cancellineitem": cancellineitem_order +"/content:v2.1/content.orders.cancellineitem/merchantId": merchant_id +"/content:v2.1/content.orders.cancellineitem/orderId": order_id +"/content:v2.1/content.orders.canceltestorderbycustomer": canceltestorderbycustomer_order +"/content:v2.1/content.orders.canceltestorderbycustomer/merchantId": merchant_id +"/content:v2.1/content.orders.canceltestorderbycustomer/orderId": order_id +"/content:v2.1/content.orders.createtestorder": createtestorder_order +"/content:v2.1/content.orders.createtestorder/merchantId": merchant_id +"/content:v2.1/content.orders.createtestreturn": createtestreturn_order +"/content:v2.1/content.orders.createtestreturn/merchantId": merchant_id +"/content:v2.1/content.orders.createtestreturn/orderId": order_id +"/content:v2.1/content.orders.get": get_order +"/content:v2.1/content.orders.get/merchantId": merchant_id +"/content:v2.1/content.orders.get/orderId": order_id +"/content:v2.1/content.orders.getbymerchantorderid": getbymerchantorderid_order +"/content:v2.1/content.orders.getbymerchantorderid/merchantId": merchant_id +"/content:v2.1/content.orders.getbymerchantorderid/merchantOrderId": merchant_order_id +"/content:v2.1/content.orders.gettestordertemplate": gettestordertemplate_order +"/content:v2.1/content.orders.gettestordertemplate/country": country +"/content:v2.1/content.orders.gettestordertemplate/merchantId": merchant_id +"/content:v2.1/content.orders.gettestordertemplate/templateName": template_name +"/content:v2.1/content.orders.instorerefundlineitem": instorerefundlineitem_order +"/content:v2.1/content.orders.instorerefundlineitem/merchantId": merchant_id +"/content:v2.1/content.orders.instorerefundlineitem/orderId": order_id +"/content:v2.1/content.orders.list": list_orders +"/content:v2.1/content.orders.list/acknowledged": acknowledged +"/content:v2.1/content.orders.list/maxResults": max_results +"/content:v2.1/content.orders.list/merchantId": merchant_id +"/content:v2.1/content.orders.list/orderBy": order_by +"/content:v2.1/content.orders.list/pageToken": page_token +"/content:v2.1/content.orders.list/placedDateEnd": placed_date_end +"/content:v2.1/content.orders.list/placedDateStart": placed_date_start +"/content:v2.1/content.orders.list/statuses": statuses +"/content:v2.1/content.orders.rejectreturnlineitem": rejectreturnlineitem_order +"/content:v2.1/content.orders.rejectreturnlineitem/merchantId": merchant_id +"/content:v2.1/content.orders.rejectreturnlineitem/orderId": order_id +"/content:v2.1/content.orders.returnrefundlineitem": returnrefundlineitem_order +"/content:v2.1/content.orders.returnrefundlineitem/merchantId": merchant_id +"/content:v2.1/content.orders.returnrefundlineitem/orderId": order_id +"/content:v2.1/content.orders.setlineitemmetadata": setlineitemmetadata_order +"/content:v2.1/content.orders.setlineitemmetadata/merchantId": merchant_id +"/content:v2.1/content.orders.setlineitemmetadata/orderId": order_id +"/content:v2.1/content.orders.shiplineitems": shiplineitems_order +"/content:v2.1/content.orders.shiplineitems/merchantId": merchant_id +"/content:v2.1/content.orders.shiplineitems/orderId": order_id +"/content:v2.1/content.orders.updatelineitemshippingdetails": updatelineitemshippingdetails_order +"/content:v2.1/content.orders.updatelineitemshippingdetails/merchantId": merchant_id +"/content:v2.1/content.orders.updatelineitemshippingdetails/orderId": order_id +"/content:v2.1/content.orders.updatemerchantorderid": updatemerchantorderid_order +"/content:v2.1/content.orders.updatemerchantorderid/merchantId": merchant_id +"/content:v2.1/content.orders.updatemerchantorderid/orderId": order_id +"/content:v2.1/content.orders.updateshipment": updateshipment_order +"/content:v2.1/content.orders.updateshipment/merchantId": merchant_id +"/content:v2.1/content.orders.updateshipment/orderId": order_id +"/content:v2.1/content.pos.custombatch": custombatch_po +"/content:v2.1/content.pos.delete": delete_po +"/content:v2.1/content.pos.delete/merchantId": merchant_id +"/content:v2.1/content.pos.delete/storeCode": store_code +"/content:v2.1/content.pos.delete/targetMerchantId": target_merchant_id +"/content:v2.1/content.pos.get": get_po +"/content:v2.1/content.pos.get/merchantId": merchant_id +"/content:v2.1/content.pos.get/storeCode": store_code +"/content:v2.1/content.pos.get/targetMerchantId": target_merchant_id +"/content:v2.1/content.pos.insert": insert_po +"/content:v2.1/content.pos.insert/merchantId": merchant_id +"/content:v2.1/content.pos.insert/targetMerchantId": target_merchant_id +"/content:v2.1/content.pos.inventory": inventory_po +"/content:v2.1/content.pos.inventory/merchantId": merchant_id +"/content:v2.1/content.pos.inventory/targetMerchantId": target_merchant_id +"/content:v2.1/content.pos.list": list_pos +"/content:v2.1/content.pos.list/merchantId": merchant_id +"/content:v2.1/content.pos.list/targetMerchantId": target_merchant_id +"/content:v2.1/content.pos.sale": sale_po +"/content:v2.1/content.pos.sale/merchantId": merchant_id +"/content:v2.1/content.pos.sale/targetMerchantId": target_merchant_id +"/content:v2.1/content.products.custombatch": custombatch_product +"/content:v2.1/content.products.delete": delete_product +"/content:v2.1/content.products.delete/merchantId": merchant_id +"/content:v2.1/content.products.delete/productId": product_id +"/content:v2.1/content.products.get": get_product +"/content:v2.1/content.products.get/merchantId": merchant_id +"/content:v2.1/content.products.get/productId": product_id +"/content:v2.1/content.products.insert": insert_product +"/content:v2.1/content.products.insert/merchantId": merchant_id +"/content:v2.1/content.products.list": list_products +"/content:v2.1/content.products.list/maxResults": max_results +"/content:v2.1/content.products.list/merchantId": merchant_id +"/content:v2.1/content.products.list/pageToken": page_token +"/content:v2.1/content.productstatuses.custombatch": custombatch_productstatus +"/content:v2.1/content.productstatuses.get": get_productstatus +"/content:v2.1/content.productstatuses.get/destinations": destinations +"/content:v2.1/content.productstatuses.get/merchantId": merchant_id +"/content:v2.1/content.productstatuses.get/productId": product_id +"/content:v2.1/content.productstatuses.list": list_productstatuses +"/content:v2.1/content.productstatuses.list/destinations": destinations +"/content:v2.1/content.productstatuses.list/maxResults": max_results +"/content:v2.1/content.productstatuses.list/merchantId": merchant_id +"/content:v2.1/content.productstatuses.list/pageToken": page_token +"/content:v2.1/content.shippingsettings.custombatch": custombatch_shippingsetting +"/content:v2.1/content.shippingsettings.get": get_shippingsetting +"/content:v2.1/content.shippingsettings.get/accountId": account_id +"/content:v2.1/content.shippingsettings.get/merchantId": merchant_id +"/content:v2.1/content.shippingsettings.getsupportedcarriers": getsupportedcarriers_shippingsetting +"/content:v2.1/content.shippingsettings.getsupportedcarriers/merchantId": merchant_id +"/content:v2.1/content.shippingsettings.getsupportedholidays": getsupportedholidays_shippingsetting +"/content:v2.1/content.shippingsettings.getsupportedholidays/merchantId": merchant_id +"/content:v2.1/content.shippingsettings.list": list_shippingsettings +"/content:v2.1/content.shippingsettings.list/maxResults": max_results +"/content:v2.1/content.shippingsettings.list/merchantId": merchant_id +"/content:v2.1/content.shippingsettings.list/pageToken": page_token +"/content:v2.1/content.shippingsettings.update": update_shippingsetting +"/content:v2.1/content.shippingsettings.update/accountId": account_id +"/content:v2.1/content.shippingsettings.update/merchantId": merchant_id +"/content:v2.1/fields": fields +"/content:v2.1/key": key +"/content:v2.1/quotaUser": quota_user +"/content:v2.1/userIp": user_ip "/content:v2/Account": account "/content:v2/Account/adultContent": adult_content "/content:v2/Account/adwordsLinks": adwords_links diff --git a/generated/google/apis/alertcenter_v1beta1.rb b/generated/google/apis/alertcenter_v1beta1.rb index 0b0e31c26..2a0e37a9c 100644 --- a/generated/google/apis/alertcenter_v1beta1.rb +++ b/generated/google/apis/alertcenter_v1beta1.rb @@ -25,7 +25,10 @@ module Google # @see https://developers.google.com/admin-sdk/alertcenter/ module AlertcenterV1beta1 VERSION = 'V1beta1' - REVISION = '20181110' + REVISION = '20181202' + + # See and delete your domain's G Suite alerts, and send alert feedback + AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts' end end end diff --git a/generated/google/apis/cloudasset_v1beta1.rb b/generated/google/apis/cloudasset_v1beta1.rb index 9d81912dd..1fc04d327 100644 --- a/generated/google/apis/cloudasset_v1beta1.rb +++ b/generated/google/apis/cloudasset_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview module CloudassetV1beta1 VERSION = 'V1beta1' - REVISION = '20181107' + REVISION = '20181204' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudasset_v1beta1/classes.rb b/generated/google/apis/cloudasset_v1beta1/classes.rb index 8d6c25c47..2faea28a1 100644 --- a/generated/google/apis/cloudasset_v1beta1/classes.rb +++ b/generated/google/apis/cloudasset_v1beta1/classes.rb @@ -27,7 +27,7 @@ module Google class Asset include Google::Apis::Core::Hashable - # Type of the asset. Example: "google.compute.disk". + # Type of the asset. Example: "google.compute.Disk". # Corresponds to the JSON property `assetType` # @return [String] attr_accessor :asset_type @@ -288,7 +288,7 @@ module Google include Google::Apis::Core::Hashable # A list of asset types of which to take a snapshot for. For example: - # "google.compute.disk". If specified, only matching assets will be returned. + # "google.compute.Disk". If specified, only matching assets will be returned. # See [Introduction to Cloud Asset # Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset- # inventory/overview) diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 401e2db41..c940211fb 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20181126' + REVISION = '20181203' # 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/classes.rb b/generated/google/apis/content_v2/classes.rb index 930b8f624..6828d780f 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -23,7 +23,8 @@ module Google module ContentV2 # Account data. After the creation of a new account it may take a few minutes - # before it is fully operational. + # before it is fully operational. The methods delete, insert, patch, and update + # require the admin role. class Account include Google::Apis::Core::Hashable @@ -685,7 +686,7 @@ module Google end end - # The tax settings of a merchant account. + # The tax settings of a merchant account. All methods require the admin role. class AccountTax include Google::Apis::Core::Hashable @@ -898,7 +899,8 @@ module Google include Google::Apis::Core::Hashable # Account data. After the creation of a new account it may take a few minutes - # before it is fully operational. + # before it is fully operational. The methods delete, insert, patch, and update + # require the admin role. # Corresponds to the JSON property `account` # @return [Google::Apis::ContentV2::Account] attr_accessor :account @@ -1022,7 +1024,8 @@ module Google include Google::Apis::Core::Hashable # Account data. After the creation of a new account it may take a few minutes - # before it is fully operational. + # before it is fully operational. The methods delete, insert, patch, and update + # require the admin role. # Corresponds to the JSON property `account` # @return [Google::Apis::ContentV2::Account] attr_accessor :account @@ -1327,7 +1330,7 @@ module Google # @return [Fixnum] attr_accessor :account_id - # The tax settings of a merchant account. + # The tax settings of a merchant account. All methods require the admin role. # Corresponds to the JSON property `accountTax` # @return [Google::Apis::ContentV2::AccountTax] attr_accessor :account_tax @@ -1391,7 +1394,7 @@ module Google class AccountTaxBatchResponseEntry include Google::Apis::Core::Hashable - # The tax settings of a merchant account. + # The tax settings of a merchant account. All methods require the admin role. # Corresponds to the JSON property `accountTax` # @return [Google::Apis::ContentV2::AccountTax] attr_accessor :account_tax @@ -3445,7 +3448,8 @@ module Google end end - # + # Local Inventory ads (LIA) settings. All methods except listposdataproviders + # require the admin role. class LiaSettings include Google::Apis::Core::Hashable @@ -3533,7 +3537,8 @@ module Google # @return [String] attr_accessor :gmb_email - # The account Lia settings to update. Only defined if the method is update. + # Local Inventory ads (LIA) settings. All methods except listposdataproviders + # require the admin role. # Corresponds to the JSON property `liaSettings` # @return [Google::Apis::ContentV2::LiaSettings] attr_accessor :lia_settings @@ -3629,7 +3634,8 @@ module Google # @return [String] attr_accessor :kind - # The retrieved or updated Lia settings. + # Local Inventory ads (LIA) settings. All methods except listposdataproviders + # require the admin role. # Corresponds to the JSON property `liaSettings` # @return [Google::Apis::ContentV2::LiaSettings] attr_accessor :lia_settings @@ -3975,7 +3981,7 @@ module Google end end - # + # Order. All methods require the order manager role. class Order include Google::Apis::Core::Hashable @@ -4928,7 +4934,7 @@ module Google end end - # + # Order disbursement. All methods require the payment analyst role. class OrderReportDisbursement include Google::Apis::Core::Hashable @@ -6807,8 +6813,7 @@ module Google # @return [String] attr_accessor :kind - # The retrieved order. Only defined if the method is get and if the request was - # successful. + # Order. All methods require the order manager role. # Corresponds to the JSON property `order` # @return [Google::Apis::ContentV2::Order] attr_accessor :order @@ -6837,7 +6842,7 @@ module Google # @return [String] attr_accessor :kind - # The requested order. + # Order. All methods require the order manager role. # Corresponds to the JSON property `order` # @return [Google::Apis::ContentV2::Order] attr_accessor :order @@ -8446,7 +8451,8 @@ module Google end end - # Product data. + # 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 @@ -9166,7 +9172,8 @@ module Google # @return [String] attr_accessor :link - # Product data. + # 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::Product] attr_accessor :product @@ -9508,7 +9515,8 @@ module Google # @return [String] attr_accessor :request_method - # Product data. + # 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::Product] attr_accessor :product @@ -9579,7 +9587,8 @@ module Google # @return [String] attr_accessor :kind - # Product data. + # 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::Product] attr_accessor :product @@ -10124,7 +10133,8 @@ module Google end end - # The merchant account's shipping settings. + # The merchant account's shipping settings. All methods except + # getsupportedcarriers and getsupportedholidays require the admin role. class ShippingSettings include Google::Apis::Core::Hashable @@ -10199,7 +10209,8 @@ module Google # @return [String] attr_accessor :method_prop - # The merchant account's shipping settings. + # The merchant account's shipping settings. All methods except + # getsupportedcarriers and getsupportedholidays require the admin role. # Corresponds to the JSON property `shippingSettings` # @return [Google::Apis::ContentV2::ShippingSettings] attr_accessor :shipping_settings @@ -10264,7 +10275,8 @@ module Google # @return [String] attr_accessor :kind - # The merchant account's shipping settings. + # The merchant account's shipping settings. All methods except + # getsupportedcarriers and getsupportedholidays require the admin role. # Corresponds to the JSON property `shippingSettings` # @return [Google::Apis::ContentV2::ShippingSettings] attr_accessor :shipping_settings diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb new file mode 100644 index 000000000..3dba00e13 --- /dev/null +++ b/generated/google/apis/content_v2_1.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/content_v2_1/service.rb' +require 'google/apis/content_v2_1/classes.rb' +require 'google/apis/content_v2_1/representations.rb' + +module Google + module Apis + # Content API for Shopping + # + # Manages product items, inventory, and Merchant Center accounts for Google + # Shopping. + # + # @see https://developers.google.com/shopping-content + module ContentV2_1 + VERSION = 'V2_1' + REVISION = '20181203' + + # Manage your product listings and accounts for Google Shopping + AUTH_CONTENT = 'https://www.googleapis.com/auth/content' + end + end +end diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb new file mode 100644 index 000000000..2a21965ed --- /dev/null +++ b/generated/google/apis/content_v2_1/classes.rb @@ -0,0 +1,9104 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ContentV2_1 + + # Account data. After the creation of a new account it may take a few minutes + # before it is fully operational. The methods delete, insert, patch, and update + # require the admin role. + class Account + include Google::Apis::Core::Hashable + + # List of linked Ads accounts that are active or pending approval. To create a + # new link request, add a new link with status active to the list. It will + # remain in a pending state until approved or rejected either in the Ads + # interface or through the AdWords API. To delete an active link, or to cancel a + # link request, remove it from the list. + # Corresponds to the JSON property `adsLinks` + # @return [Array] + attr_accessor :ads_links + + # Indicates whether the merchant sells adult content. + # Corresponds to the JSON property `adultContent` + # @return [Boolean] + attr_accessor :adult_content + alias_method :adult_content?, :adult_content + + # The business information of the account. + # Corresponds to the JSON property `businessInformation` + # @return [Google::Apis::ContentV2_1::AccountBusinessInformation] + attr_accessor :business_information + + # The GMB account which is linked or in the process of being linked with the + # Merchant Center account. + # Corresponds to the JSON property `googleMyBusinessLink` + # @return [Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink] + attr_accessor :google_my_business_link + + # Merchant Center account ID. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # account". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Display name for the account. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Client-specific, locally-unique, internal ID for the child account. + # Corresponds to the JSON property `sellerId` + # @return [String] + attr_accessor :seller_id + + # Users with access to the account. Every account (except for subaccounts) must + # have at least one admin user. + # Corresponds to the JSON property `users` + # @return [Array] + attr_accessor :users + + # The merchant's website. + # Corresponds to the JSON property `websiteUrl` + # @return [String] + attr_accessor :website_url + + # List of linked YouTube channels that are active or pending approval. To create + # a new link request, add a new link with status active to the list. It will + # remain in a pending state until approved or rejected in the YT Creator Studio + # interface. To delete an active link, or to cancel a link request, remove it + # from the list. + # Corresponds to the JSON property `youtubeChannelLinks` + # @return [Array] + attr_accessor :youtube_channel_links + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ads_links = args[:ads_links] if args.key?(:ads_links) + @adult_content = args[:adult_content] if args.key?(:adult_content) + @business_information = args[:business_information] if args.key?(:business_information) + @google_my_business_link = args[:google_my_business_link] if args.key?(:google_my_business_link) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @seller_id = args[:seller_id] if args.key?(:seller_id) + @users = args[:users] if args.key?(:users) + @website_url = args[:website_url] if args.key?(:website_url) + @youtube_channel_links = args[:youtube_channel_links] if args.key?(:youtube_channel_links) + end + end + + # + class AccountAddress + include Google::Apis::Core::Hashable + + # CLDR country code (e.g. "US"). + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # City, town or commune. May also include dependent localities or sublocalities ( + # e.g. neighborhoods or suburbs). + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # Postal code or ZIP (e.g. "94043"). + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Top-level administrative subdivision of the country. For example, a state like + # California ("CA") or a province like Quebec ("QC"). + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # Street-level part of the address. + # Corresponds to the JSON property `streetAddress` + # @return [String] + attr_accessor :street_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @locality = args[:locality] if args.key?(:locality) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @region = args[:region] if args.key?(:region) + @street_address = args[:street_address] if args.key?(:street_address) + end + end + + # + class AccountAdsLink + include Google::Apis::Core::Hashable + + # Customer ID of the Ads account. + # Corresponds to the JSON property `adsId` + # @return [Fixnum] + attr_accessor :ads_id + + # 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 when it' + # s already active will have no effect: the status will remain unchanged. Re- + # uploading a link with deprecated status inactive is equivalent to not + # submitting the link at all and will delete the link if it was active or cancel + # the link request if it was pending. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ads_id = args[:ads_id] if args.key?(:ads_id) + @status = args[:status] if args.key?(:status) + end + end + + # + class AccountBusinessInformation + include Google::Apis::Core::Hashable + + # The address of the business. + # Corresponds to the JSON property `address` + # @return [Google::Apis::ContentV2_1::AccountAddress] + attr_accessor :address + + # The customer service information of the business. + # Corresponds to the JSON property `customerService` + # @return [Google::Apis::ContentV2_1::AccountCustomerService] + attr_accessor :customer_service + + # The phone number of the business. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] if args.key?(:address) + @customer_service = args[:customer_service] if args.key?(:customer_service) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + + # + class AccountCustomerService + include Google::Apis::Core::Hashable + + # Customer service email. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # Customer service phone number. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + # Customer service URL. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @url = args[:url] if args.key?(:url) + end + end + + # + class AccountGoogleMyBusinessLink + include Google::Apis::Core::Hashable + + # The GMB email address of which a specific account within a GMB account. A + # sample account within a GMB account could be a business account with set of + # locations, managed under the GMB account. + # Corresponds to the JSON property `gmbEmail` + # @return [String] + attr_accessor :gmb_email + + # Status of the link between this Merchant Center account and the GMB account. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gmb_email = args[:gmb_email] if args.key?(:gmb_email) + @status = args[:status] if args.key?(:status) + end + end + + # + class AccountIdentifier + include Google::Apis::Core::Hashable + + # The aggregator ID, set for aggregators and subaccounts (in that case, it + # represents the aggregator of the subaccount). + # Corresponds to the JSON property `aggregatorId` + # @return [Fixnum] + attr_accessor :aggregator_id + + # The merchant account ID, set for individual accounts and subaccounts. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aggregator_id = args[:aggregator_id] if args.key?(:aggregator_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + end + end + + # The status of an account, i.e., information about its products, which is + # computed offline and not returned immediately at insertion time. + class AccountStatus + include Google::Apis::Core::Hashable + + # The ID of the account for which the status is reported. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # A list of account level issues. + # Corresponds to the JSON property `accountLevelIssues` + # @return [Array] + attr_accessor :account_level_issues + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountStatus". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # List of product-related data by channel, destination, and country. Data in + # this field may be delayed by up to 30 minutes. + # Corresponds to the JSON property `products` + # @return [Array] + attr_accessor :products + + # Whether the account's website is claimed or not. + # Corresponds to the JSON property `websiteClaimed` + # @return [Boolean] + attr_accessor :website_claimed + alias_method :website_claimed?, :website_claimed + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @account_level_issues = args[:account_level_issues] if args.key?(:account_level_issues) + @kind = args[:kind] if args.key?(:kind) + @products = args[:products] if args.key?(:products) + @website_claimed = args[:website_claimed] if args.key?(:website_claimed) + end + end + + # + class AccountStatusAccountLevelIssue + include Google::Apis::Core::Hashable + + # Country for which this issue is reported. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The destination the issue applies to. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # Additional details about the issue. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # The URL of a web page to help resolving this issue. + # Corresponds to the JSON property `documentation` + # @return [String] + attr_accessor :documentation + + # Issue identifier. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Severity of the issue. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # Short description of the issue. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @destination = args[:destination] if args.key?(:destination) + @detail = args[:detail] if args.key?(:detail) + @documentation = args[:documentation] if args.key?(:documentation) + @id = args[:id] if args.key?(:id) + @severity = args[:severity] if args.key?(:severity) + @title = args[:title] if args.key?(:title) + end + end + + # + class AccountStatusItemLevelIssue + include Google::Apis::Core::Hashable + + # The attribute's name, if the issue is caused by a single attribute. + # Corresponds to the JSON property `attributeName` + # @return [String] + attr_accessor :attribute_name + + # The error code of the issue. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # A short issue description in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A detailed issue description in English. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # The URL of a web page to help with resolving this issue. + # Corresponds to the JSON property `documentation` + # @return [String] + attr_accessor :documentation + + # Number of items with this issue. + # Corresponds to the JSON property `numItems` + # @return [Fixnum] + attr_accessor :num_items + + # Whether the issue can be resolved by the merchant. + # Corresponds to the JSON property `resolution` + # @return [String] + attr_accessor :resolution + + # How this issue affects serving of the offer. + # Corresponds to the JSON property `servability` + # @return [String] + attr_accessor :servability + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_name = args[:attribute_name] if args.key?(:attribute_name) + @code = args[:code] if args.key?(:code) + @description = args[:description] if args.key?(:description) + @detail = args[:detail] if args.key?(:detail) + @documentation = args[:documentation] if args.key?(:documentation) + @num_items = args[:num_items] if args.key?(:num_items) + @resolution = args[:resolution] if args.key?(:resolution) + @servability = args[:servability] if args.key?(:servability) + end + end + + # + class AccountStatusProducts + include Google::Apis::Core::Hashable + + # The channel the data applies to. + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + # The country the data applies to. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The destination the data applies to. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # List of item-level issues. + # Corresponds to the JSON property `itemLevelIssues` + # @return [Array] + attr_accessor :item_level_issues + + # Aggregated product statistics. + # Corresponds to the JSON property `statistics` + # @return [Google::Apis::ContentV2_1::AccountStatusStatistics] + attr_accessor :statistics + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel = args[:channel] if args.key?(:channel) + @country = args[:country] if args.key?(:country) + @destination = args[:destination] if args.key?(:destination) + @item_level_issues = args[:item_level_issues] if args.key?(:item_level_issues) + @statistics = args[:statistics] if args.key?(:statistics) + end + end + + # + class AccountStatusStatistics + include Google::Apis::Core::Hashable + + # Number of active offers. + # Corresponds to the JSON property `active` + # @return [Fixnum] + attr_accessor :active + + # Number of disapproved offers. + # Corresponds to the JSON property `disapproved` + # @return [Fixnum] + attr_accessor :disapproved + + # Number of expiring offers. + # Corresponds to the JSON property `expiring` + # @return [Fixnum] + attr_accessor :expiring + + # Number of pending offers. + # Corresponds to the JSON property `pending` + # @return [Fixnum] + attr_accessor :pending + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active = args[:active] if args.key?(:active) + @disapproved = args[:disapproved] if args.key?(:disapproved) + @expiring = args[:expiring] if args.key?(:expiring) + @pending = args[:pending] if args.key?(:pending) + end + end + + # The tax settings of a merchant account. All methods require the admin role. + class AccountTax + include Google::Apis::Core::Hashable + + # The ID of the account to which these account tax settings belong. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountTax". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Tax rules. Updating the tax rules will enable US taxes (not reversible). + # Defining no rules is equivalent to not charging tax at all. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @kind = args[:kind] if args.key?(:kind) + @rules = args[:rules] if args.key?(:rules) + end + end + + # Tax calculation rule to apply in a state or province (USA only). + class AccountTaxTaxRule + include Google::Apis::Core::Hashable + + # Country code in which tax is applicable. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # State (or province) is which the tax is applicable, described by its location + # id (also called criteria id). + # Corresponds to the JSON property `locationId` + # @return [Fixnum] + attr_accessor :location_id + + # Explicit tax rate in percent, represented as a floating point number without + # the percentage character. Must not be negative. + # Corresponds to the JSON property `ratePercent` + # @return [String] + attr_accessor :rate_percent + + # If true, shipping charges are also taxed. + # Corresponds to the JSON property `shippingTaxed` + # @return [Boolean] + attr_accessor :shipping_taxed + alias_method :shipping_taxed?, :shipping_taxed + + # Whether the tax rate is taken from a global tax table or specified explicitly. + # Corresponds to the JSON property `useGlobalRate` + # @return [Boolean] + attr_accessor :use_global_rate + alias_method :use_global_rate?, :use_global_rate + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @location_id = args[:location_id] if args.key?(:location_id) + @rate_percent = args[:rate_percent] if args.key?(:rate_percent) + @shipping_taxed = args[:shipping_taxed] if args.key?(:shipping_taxed) + @use_global_rate = args[:use_global_rate] if args.key?(:use_global_rate) + end + end + + # + class AccountUser + include Google::Apis::Core::Hashable + + # Whether user is an admin. + # Corresponds to the JSON property `admin` + # @return [Boolean] + attr_accessor :admin + alias_method :admin?, :admin + + # User's email address. + # Corresponds to the JSON property `emailAddress` + # @return [String] + attr_accessor :email_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @admin = args[:admin] if args.key?(:admin) + @email_address = args[:email_address] if args.key?(:email_address) + end + end + + # + class AccountYouTubeChannelLink + include Google::Apis::Core::Hashable + + # Channel ID. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + # Status of the link between this Merchant Center account and the YouTube + # channel. Upon retrieval, it represents the actual status of the link and can + # be either active if it was approved in YT Creator Studio or pending if it's + # pending approval. Upon insertion, it represents the intended status of the + # link. Re-uploading a link with status active when it's still pending or with + # status pending when it's already active will have no effect: the status will + # remain unchanged. Re-uploading a link with deprecated status inactive is + # equivalent to not submitting the link at all and will delete the link if it + # was active or cancel the link request if it was pending. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @status = args[:status] if args.key?(:status) + end + end + + # + class AccountsAuthInfoResponse + include Google::Apis::Core::Hashable + + # The account identifiers corresponding to the authenticated user. + # - For an individual account: only the merchant ID is defined + # - For an aggregator: only the aggregator ID is defined + # - For a subaccount of an MCA: both the merchant ID and the aggregator ID are + # defined. + # Corresponds to the JSON property `accountIdentifiers` + # @return [Array] + attr_accessor :account_identifiers + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsAuthInfoResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_identifiers = args[:account_identifiers] if args.key?(:account_identifiers) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class AccountsClaimWebsiteResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsClaimWebsiteResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class AccountsCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A batch entry encoding a single non-batch accounts request. + class AccountsCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # Account data. After the creation of a new account it may take a few minutes + # before it is fully operational. The methods delete, insert, patch, and update + # require the admin role. + # Corresponds to the JSON property `account` + # @return [Google::Apis::ContentV2_1::Account] + attr_accessor :account + + # The ID of the targeted account. Only defined if the method is not insert. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # Whether the account should be deleted if the account has offers. Only + # applicable if the method is delete. + # Corresponds to the JSON property `force` + # @return [Boolean] + attr_accessor :force + alias_method :force?, :force + + # Details about the link request. + # Corresponds to the JSON property `linkRequest` + # @return [Google::Apis::ContentV2_1::AccountsCustomBatchRequestEntryLinkRequest] + attr_accessor :link_request + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # The method of the batch entry. + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # Only applicable if the method is claimwebsite. Indicates whether or not to + # take the claim from another account in case there is a conflict. + # Corresponds to the JSON property `overwrite` + # @return [Boolean] + attr_accessor :overwrite + alias_method :overwrite?, :overwrite + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account = args[:account] if args.key?(:account) + @account_id = args[:account_id] if args.key?(:account_id) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @force = args[:force] if args.key?(:force) + @link_request = args[:link_request] if args.key?(:link_request) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @overwrite = args[:overwrite] if args.key?(:overwrite) + end + end + + # + class AccountsCustomBatchRequestEntryLinkRequest + include Google::Apis::Core::Hashable + + # Action to perform for this link. The "request" action is only available to + # select merchants. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Type of the link between the two accounts. + # Corresponds to the JSON property `linkType` + # @return [String] + attr_accessor :link_type + + # The ID of the linked account. + # Corresponds to the JSON property `linkedAccountId` + # @return [String] + attr_accessor :linked_account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @link_type = args[:link_type] if args.key?(:link_type) + @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id) + end + end + + # + class AccountsCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A batch entry encoding a single non-batch accounts response. + class AccountsCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # Account data. After the creation of a new account it may take a few minutes + # before it is fully operational. The methods delete, insert, patch, and update + # require the admin role. + # Corresponds to the JSON property `account` + # @return [Google::Apis::ContentV2_1::Account] + attr_accessor :account + + # The ID of the request entry this entry responds to. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsCustomBatchResponseEntry". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account = args[:account] if args.key?(:account) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class AccountsLinkRequest + include Google::Apis::Core::Hashable + + # Action to perform for this link. The "request" action is only available to + # select merchants. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Type of the link between the two accounts. + # Corresponds to the JSON property `linkType` + # @return [String] + attr_accessor :link_type + + # The ID of the linked account. + # Corresponds to the JSON property `linkedAccountId` + # @return [String] + attr_accessor :linked_account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @link_type = args[:link_type] if args.key?(:link_type) + @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id) + end + end + + # + class AccountsLinkResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsLinkResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class AccountsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of accounts. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class AccountstatusesCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A batch entry encoding a single non-batch accountstatuses request. + class AccountstatusesCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # The ID of the (sub-)account whose status to get. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # If set, only issues for the specified destinations are returned, otherwise + # only issues for the Shopping destination. + # Corresponds to the JSON property `destinations` + # @return [Array] + attr_accessor :destinations + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # The method (get). + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @destinations = args[:destinations] if args.key?(:destinations) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + end + end + + # + class AccountstatusesCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountstatusesCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A batch entry encoding a single non-batch accountstatuses response. + class AccountstatusesCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The status of an account, i.e., information about its products, which is + # computed offline and not returned immediately at insertion time. + # Corresponds to the JSON property `accountStatus` + # @return [Google::Apis::ContentV2_1::AccountStatus] + attr_accessor :account_status + + # The ID of the request entry this entry responds to. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_status = args[:account_status] if args.key?(:account_status) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + end + end + + # + class AccountstatusesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountstatusesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of account statuses. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class AccounttaxCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A batch entry encoding a single non-batch accounttax request. + class AccounttaxCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # The ID of the account for which to get/update account tax settings. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # The tax settings of a merchant account. All methods require the admin role. + # Corresponds to the JSON property `accountTax` + # @return [Google::Apis::ContentV2_1::AccountTax] + attr_accessor :account_tax + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @account_tax = args[:account_tax] if args.key?(:account_tax) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + end + end + + # + class AccounttaxCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accounttaxCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A batch entry encoding a single non-batch accounttax response. + class AccounttaxCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The tax settings of a merchant account. All methods require the admin role. + # Corresponds to the JSON property `accountTax` + # @return [Google::Apis::ContentV2_1::AccountTax] + attr_accessor :account_tax + + # The ID of the request entry this entry responds to. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accounttaxCustomBatchResponseEntry". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_tax = args[:account_tax] if args.key?(:account_tax) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class AccounttaxListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accounttaxListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of account tax settings. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class Amount + include Google::Apis::Core::Hashable + + # [required] Value before taxes. + # Corresponds to the JSON property `pretax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :pretax + + # [required] Tax value. + # Corresponds to the JSON property `tax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :tax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pretax = args[:pretax] if args.key?(:pretax) + @tax = args[:tax] if args.key?(:tax) + end + end + + # + class CarrierRate + include Google::Apis::Core::Hashable + + # Carrier service, such as "UPS" or "Fedex". The list of supported carriers can + # be retrieved via the getSupportedCarriers method. Required. + # Corresponds to the JSON property `carrierName` + # @return [String] + attr_accessor :carrier_name + + # Carrier service, such as "ground" or "2 days". The list of supported services + # for a carrier can be retrieved via the getSupportedCarriers method. Required. + # Corresponds to the JSON property `carrierService` + # @return [String] + attr_accessor :carrier_service + + # Additive shipping rate modifier. Can be negative. For example ` "value": "1", " + # currency" : "USD" ` adds $1 to the rate, ` "value": "-3", "currency" : "USD" ` + # removes $3 from the rate. Optional. + # Corresponds to the JSON property `flatAdjustment` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :flat_adjustment + + # Name of the carrier rate. Must be unique per rate group. Required. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Shipping origin for this carrier rate. Required. + # Corresponds to the JSON property `originPostalCode` + # @return [String] + attr_accessor :origin_postal_code + + # Multiplicative shipping rate modifier as a number in decimal notation. Can be + # negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the + # rate by 3%. Optional. + # Corresponds to the JSON property `percentageAdjustment` + # @return [String] + attr_accessor :percentage_adjustment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier_name = args[:carrier_name] if args.key?(:carrier_name) + @carrier_service = args[:carrier_service] if args.key?(:carrier_service) + @flat_adjustment = args[:flat_adjustment] if args.key?(:flat_adjustment) + @name = args[:name] if args.key?(:name) + @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code) + @percentage_adjustment = args[:percentage_adjustment] if args.key?(:percentage_adjustment) + end + end + + # + class CarriersCarrier + include Google::Apis::Core::Hashable + + # The CLDR country code of the carrier (e.g., "US"). Always present. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The name of the carrier (e.g., "UPS"). Always present. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A list of supported services (e.g., "ground") for that carrier. Contains at + # least one service. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @name = args[:name] if args.key?(:name) + @services = args[:services] if args.key?(:services) + end + end + + # + class CustomAttribute + include Google::Apis::Core::Hashable + + # Subattributes within this attribute group. Exactly one of value or groupValues + # must be provided. + # Corresponds to the JSON property `groupValues` + # @return [Array] + attr_accessor :group_values + + # The name of the attribute. Underscores will be replaced by spaces upon + # insertion. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The value of the attribute. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @group_values = args[:group_values] if args.key?(:group_values) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + + # + class CustomerReturnReason + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # + # Corresponds to the JSON property `reasonCode` + # @return [String] + attr_accessor :reason_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @reason_code = args[:reason_code] if args.key?(:reason_code) + end + end + + # + class CutoffTime + include Google::Apis::Core::Hashable + + # Hour of the cutoff time until which an order has to be placed to be processed + # in the same day. Required. + # Corresponds to the JSON property `hour` + # @return [Fixnum] + attr_accessor :hour + + # Minute of the cutoff time until which an order has to be placed to be + # processed in the same day. Required. + # Corresponds to the JSON property `minute` + # @return [Fixnum] + attr_accessor :minute + + # Timezone identifier for the cutoff time. A list of identifiers can be found in + # the AdWords API documentation. E.g. "Europe/Zurich". Required. + # Corresponds to the JSON property `timezone` + # @return [String] + attr_accessor :timezone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hour = args[:hour] if args.key?(:hour) + @minute = args[:minute] if args.key?(:minute) + @timezone = args[:timezone] if args.key?(:timezone) + end + end + + # Datafeed configuration data. + class Datafeed + include Google::Apis::Core::Hashable + + # The two-letter ISO 639-1 language in which the attributes are defined in the + # data feed. + # Corresponds to the JSON property `attributeLanguage` + # @return [String] + attr_accessor :attribute_language + + # The type of data feed. For product inventory feeds, only feeds for local + # stores, not online stores, are supported. + # Corresponds to the JSON property `contentType` + # @return [String] + attr_accessor :content_type + + # The required fields vary based on the frequency of fetching. For a monthly + # fetch schedule, day_of_month and hour are required. For a weekly fetch + # schedule, weekday and hour are required. For a daily fetch schedule, only hour + # is required. + # Corresponds to the JSON property `fetchSchedule` + # @return [Google::Apis::ContentV2_1::DatafeedFetchSchedule] + attr_accessor :fetch_schedule + + # The filename of the feed. All feeds must have a unique file name. + # Corresponds to the JSON property `fileName` + # @return [String] + attr_accessor :file_name + + # Format of the feed file. + # Corresponds to the JSON property `format` + # @return [Google::Apis::ContentV2_1::DatafeedFormat] + attr_accessor :format + + # The ID of the data feed. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # datafeed". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A descriptive name of the data feed. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The targets this feed should apply to (country, language, destinations). + # Corresponds to the JSON property `targets` + # @return [Array] + attr_accessor :targets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_language = args[:attribute_language] if args.key?(:attribute_language) + @content_type = args[:content_type] if args.key?(:content_type) + @fetch_schedule = args[:fetch_schedule] if args.key?(:fetch_schedule) + @file_name = args[:file_name] if args.key?(:file_name) + @format = args[:format] if args.key?(:format) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @targets = args[:targets] if args.key?(:targets) + end + end + + # The required fields vary based on the frequency of fetching. For a monthly + # fetch schedule, day_of_month and hour are required. For a weekly fetch + # schedule, weekday and hour are required. For a daily fetch schedule, only hour + # is required. + class DatafeedFetchSchedule + include Google::Apis::Core::Hashable + + # The day of the month the feed file should be fetched (1-31). + # Corresponds to the JSON property `dayOfMonth` + # @return [Fixnum] + attr_accessor :day_of_month + + # The URL where the feed file can be fetched. Google Merchant Center will + # support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP + # protocols, so the value will need to be a valid link using one of those four + # protocols. + # Corresponds to the JSON property `fetchUrl` + # @return [String] + attr_accessor :fetch_url + + # The hour of the day the feed file should be fetched (0-23). + # Corresponds to the JSON property `hour` + # @return [Fixnum] + attr_accessor :hour + + # The minute of the hour the feed file should be fetched (0-59). Read-only. + # Corresponds to the JSON property `minuteOfHour` + # @return [Fixnum] + attr_accessor :minute_of_hour + + # An optional password for fetch_url. + # Corresponds to the JSON property `password` + # @return [String] + attr_accessor :password + + # Whether the scheduled fetch is paused or not. + # Corresponds to the JSON property `paused` + # @return [Boolean] + attr_accessor :paused + alias_method :paused?, :paused + + # Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". + # Corresponds to the JSON property `timeZone` + # @return [String] + attr_accessor :time_zone + + # An optional user name for fetch_url. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + # The day of the week the feed file should be fetched. + # Corresponds to the JSON property `weekday` + # @return [String] + attr_accessor :weekday + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day_of_month = args[:day_of_month] if args.key?(:day_of_month) + @fetch_url = args[:fetch_url] if args.key?(:fetch_url) + @hour = args[:hour] if args.key?(:hour) + @minute_of_hour = args[:minute_of_hour] if args.key?(:minute_of_hour) + @password = args[:password] if args.key?(:password) + @paused = args[:paused] if args.key?(:paused) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @username = args[:username] if args.key?(:username) + @weekday = args[:weekday] if args.key?(:weekday) + end + end + + # + class DatafeedFormat + include Google::Apis::Core::Hashable + + # Delimiter for the separation of values in a delimiter-separated values feed. + # If not specified, the delimiter will be auto-detected. Ignored for non-DSV + # data feeds. + # Corresponds to the JSON property `columnDelimiter` + # @return [String] + attr_accessor :column_delimiter + + # Character encoding scheme of the data feed. If not specified, the encoding + # will be auto-detected. + # Corresponds to the JSON property `fileEncoding` + # @return [String] + attr_accessor :file_encoding + + # Specifies how double quotes are interpreted. If not specified, the mode will + # be auto-detected. Ignored for non-DSV data feeds. + # Corresponds to the JSON property `quotingMode` + # @return [String] + attr_accessor :quoting_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @column_delimiter = args[:column_delimiter] if args.key?(:column_delimiter) + @file_encoding = args[:file_encoding] if args.key?(:file_encoding) + @quoting_mode = args[:quoting_mode] if args.key?(:quoting_mode) + end + end + + # The status of a datafeed, i.e., the result of the last retrieval of the + # datafeed computed asynchronously when the feed processing is finished. + class DatafeedStatus + include Google::Apis::Core::Hashable + + # The country for which the status is reported, represented as a CLDR territory + # code. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The ID of the feed for which the status is reported. + # Corresponds to the JSON property `datafeedId` + # @return [Fixnum] + attr_accessor :datafeed_id + + # The list of errors occurring in the feed. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # The number of items in the feed that were processed. + # Corresponds to the JSON property `itemsTotal` + # @return [Fixnum] + attr_accessor :items_total + + # The number of items in the feed that were valid. + # Corresponds to the JSON property `itemsValid` + # @return [Fixnum] + attr_accessor :items_valid + + # Identifies what kind of resource this is. Value: the fixed string "content# + # datafeedStatus". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The two-letter ISO 639-1 language for which the status is reported. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # The last date at which the feed was uploaded. + # Corresponds to the JSON property `lastUploadDate` + # @return [String] + attr_accessor :last_upload_date + + # The processing status of the feed. + # Corresponds to the JSON property `processingStatus` + # @return [String] + attr_accessor :processing_status + + # The list of errors occurring in the feed. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) + @errors = args[:errors] if args.key?(:errors) + @items_total = args[:items_total] if args.key?(:items_total) + @items_valid = args[:items_valid] if args.key?(:items_valid) + @kind = args[:kind] if args.key?(:kind) + @language = args[:language] if args.key?(:language) + @last_upload_date = args[:last_upload_date] if args.key?(:last_upload_date) + @processing_status = args[:processing_status] if args.key?(:processing_status) + @warnings = args[:warnings] if args.key?(:warnings) + end + end + + # An error occurring in the feed, like "invalid price". + class DatafeedStatusError + include Google::Apis::Core::Hashable + + # The code of the error, e.g., "validation/invalid_value". + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # The number of occurrences of the error in the feed. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # A list of example occurrences of the error, grouped by product. + # Corresponds to the JSON property `examples` + # @return [Array] + attr_accessor :examples + + # The error message, e.g., "Invalid price". + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @count = args[:count] if args.key?(:count) + @examples = args[:examples] if args.key?(:examples) + @message = args[:message] if args.key?(:message) + end + end + + # An example occurrence for a particular error. + class DatafeedStatusExample + include Google::Apis::Core::Hashable + + # The ID of the example item. + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # Line number in the data feed where the example is found. + # Corresponds to the JSON property `lineNumber` + # @return [Fixnum] + attr_accessor :line_number + + # The problematic value. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @item_id = args[:item_id] if args.key?(:item_id) + @line_number = args[:line_number] if args.key?(:line_number) + @value = args[:value] if args.key?(:value) + end + end + + # + class DatafeedTarget + include Google::Apis::Core::Hashable + + # The country where the items in the feed will be included in the search index, + # represented as a CLDR territory code. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The list of destinations to exclude for this target (corresponds to unchecked + # check boxes in Merchant Center). + # Corresponds to the JSON property `excludedDestinations` + # @return [Array] + attr_accessor :excluded_destinations + + # The list of destinations to include for this target (corresponds to checked + # check boxes in Merchant Center). Default destinations are always included + # unless provided in the excluded_destination field. + # Corresponds to the JSON property `includedDestinations` + # @return [Array] + attr_accessor :included_destinations + + # The two-letter ISO 639-1 language of the items in the feed. Must be a valid + # language for targets[].country. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @excluded_destinations = args[:excluded_destinations] if args.key?(:excluded_destinations) + @included_destinations = args[:included_destinations] if args.key?(:included_destinations) + @language = args[:language] if args.key?(:language) + end + end + + # + class DatafeedsCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A batch entry encoding a single non-batch datafeeds request. + class DatafeedsCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # Datafeed configuration data. + # Corresponds to the JSON property `datafeed` + # @return [Google::Apis::ContentV2_1::Datafeed] + attr_accessor :datafeed + + # The ID of the data feed to get, delete or fetch. + # Corresponds to the JSON property `datafeedId` + # @return [Fixnum] + attr_accessor :datafeed_id + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @datafeed = args[:datafeed] if args.key?(:datafeed) + @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + end + end + + # + class DatafeedsCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # datafeedsCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A batch entry encoding a single non-batch datafeeds response. + class DatafeedsCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The ID of the request entry this entry responds to. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # Datafeed configuration data. + # Corresponds to the JSON property `datafeed` + # @return [Google::Apis::ContentV2_1::Datafeed] + attr_accessor :datafeed + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @datafeed = args[:datafeed] if args.key?(:datafeed) + @errors = args[:errors] if args.key?(:errors) + end + end + + # + class DatafeedsFetchNowResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # datafeedsFetchNowResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class DatafeedsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # datafeedsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of datafeeds. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class DatafeedstatusesCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A batch entry encoding a single non-batch datafeedstatuses request. + class DatafeedstatusesCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # The country for which to get the datafeed status. If this parameter is + # provided then language must also be provided. Note that for multi-target + # datafeeds this parameter is required. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The ID of the data feed to get. + # Corresponds to the JSON property `datafeedId` + # @return [Fixnum] + attr_accessor :datafeed_id + + # The language for which to get the datafeed status. If this parameter is + # provided then country must also be provided. Note that for multi-target + # datafeeds this parameter is required. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @country = args[:country] if args.key?(:country) + @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) + @language = args[:language] if args.key?(:language) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + end + end + + # + class DatafeedstatusesCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # datafeedstatusesCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A batch entry encoding a single non-batch datafeedstatuses response. + class DatafeedstatusesCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The ID of the request entry this entry responds to. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # The status of a datafeed, i.e., the result of the last retrieval of the + # datafeed computed asynchronously when the feed processing is finished. + # Corresponds to the JSON property `datafeedStatus` + # @return [Google::Apis::ContentV2_1::DatafeedStatus] + attr_accessor :datafeed_status + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @datafeed_status = args[:datafeed_status] if args.key?(:datafeed_status) + @errors = args[:errors] if args.key?(:errors) + end + end + + # + class DatafeedstatusesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # datafeedstatusesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of datafeed statuses. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class DeliveryTime + include Google::Apis::Core::Hashable + + # Business days cutoff time definition. If not configured the cutoff time will + # be defaulted to 8AM PST. + # Corresponds to the JSON property `cutoffTime` + # @return [Google::Apis::ContentV2_1::CutoffTime] + attr_accessor :cutoff_time + + # Holiday cutoff definitions. If configured, they specify order cutoff times for + # holiday-specific shipping. + # Corresponds to the JSON property `holidayCutoffs` + # @return [Array] + attr_accessor :holiday_cutoffs + + # Maximum number of business days spent before an order is shipped. 0 means same + # day shipped, 1 means next day shipped. Must be greater than or equal to + # minHandlingTimeInDays. + # Corresponds to the JSON property `maxHandlingTimeInDays` + # @return [Fixnum] + attr_accessor :max_handling_time_in_days + + # Maximum number of business days that is spent in transit. 0 means same day + # delivery, 1 means next day delivery. Must be greater than or equal to + # minTransitTimeInDays. Required. + # Corresponds to the JSON property `maxTransitTimeInDays` + # @return [Fixnum] + attr_accessor :max_transit_time_in_days + + # Minimum number of business days spent before an order is shipped. 0 means same + # day shipped, 1 means next day shipped. + # Corresponds to the JSON property `minHandlingTimeInDays` + # @return [Fixnum] + attr_accessor :min_handling_time_in_days + + # Minimum number of business days that is spent in transit. 0 means same day + # delivery, 1 means next day delivery. Required. + # Corresponds to the JSON property `minTransitTimeInDays` + # @return [Fixnum] + attr_accessor :min_transit_time_in_days + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time) + @holiday_cutoffs = args[:holiday_cutoffs] if args.key?(:holiday_cutoffs) + @max_handling_time_in_days = args[:max_handling_time_in_days] if args.key?(:max_handling_time_in_days) + @max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days) + @min_handling_time_in_days = args[:min_handling_time_in_days] if args.key?(:min_handling_time_in_days) + @min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days) + end + end + + # An error returned by the API. + class Error + include Google::Apis::Core::Hashable + + # The domain of the error. + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + # A description of the error. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + # The error code. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain = args[:domain] if args.key?(:domain) + @message = args[:message] if args.key?(:message) + @reason = args[:reason] if args.key?(:reason) + end + end + + # A list of errors returned by a failed batch entry. + class Errors + include Google::Apis::Core::Hashable + + # The HTTP status of the first error in errors. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of errors. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # The message of the first error in errors. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @errors = args[:errors] if args.key?(:errors) + @message = args[:message] if args.key?(:message) + end + end + + # + class GmbAccounts + include Google::Apis::Core::Hashable + + # The ID of the account. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # A list of GMB accounts which are available to the merchant. + # Corresponds to the JSON property `gmbAccounts` + # @return [Array] + attr_accessor :gmb_accounts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts) + end + end + + # + class GmbAccountsGmbAccount + include Google::Apis::Core::Hashable + + # The email which identifies the GMB account. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # Number of listings under this account. + # Corresponds to the JSON property `listingCount` + # @return [Fixnum] + attr_accessor :listing_count + + # The name of the GMB account. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The type of the GMB account (User or Business). + # 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) + @email = args[:email] if args.key?(:email) + @listing_count = args[:listing_count] if args.key?(:listing_count) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + end + end + + # A non-empty list of row or column headers for a table. Exactly one of prices, + # weights, numItems, postalCodeGroupNames, or locations must be set. + class Headers + include Google::Apis::Core::Hashable + + # A list of location ID sets. Must be non-empty. Can only be set if all other + # fields are not set. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # A list of inclusive number of items upper bounds. The last value can be " + # infinity". For example ["10", "50", "infinity"] represents the headers "<= 10 + # items", " 50 items". Must be non-empty. Can only be set if all other fields + # are not set. + # Corresponds to the JSON property `numberOfItems` + # @return [Array] + attr_accessor :number_of_items + + # A list of postal group names. The last value can be "all other locations". + # Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code + # groups must match the delivery country of the service. Must be non-empty. Can + # only be set if all other fields are not set. + # Corresponds to the JSON property `postalCodeGroupNames` + # @return [Array] + attr_accessor :postal_code_group_names + + # A list of inclusive order price upper bounds. The last price's value can be " + # infinity". For example [`"value": "10", "currency": "USD"`, `"value": "500", " + # currency": "USD"`, `"value": "infinity", "currency": "USD"`] represents the + # headers "<= $10", " $500". All prices within a service must have the same + # currency. Must be non-empty. Can only be set if all other fields are not set. + # Corresponds to the JSON property `prices` + # @return [Array] + attr_accessor :prices + + # A list of inclusive order weight upper bounds. The last weight's value can be " + # infinity". For example [`"value": "10", "unit": "kg"`, `"value": "50", "unit": + # "kg"`, `"value": "infinity", "unit": "kg"`] represents the headers "<= 10kg", " + # 50kg". All weights within a service must have the same unit. Must be non- + # empty. Can only be set if all other fields are not set. + # Corresponds to the JSON property `weights` + # @return [Array] + attr_accessor :weights + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @number_of_items = args[:number_of_items] if args.key?(:number_of_items) + @postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names) + @prices = args[:prices] if args.key?(:prices) + @weights = args[:weights] if args.key?(:weights) + end + end + + # + class HolidayCutoff + include Google::Apis::Core::Hashable + + # Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th + # November 2016. Required. + # Corresponds to the JSON property `deadlineDate` + # @return [String] + attr_accessor :deadline_date + + # Hour of the day on the deadline date until which the order has to be placed to + # qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., + # 12 (noon), 13, ..., 23. Required. + # Corresponds to the JSON property `deadlineHour` + # @return [Fixnum] + attr_accessor :deadline_hour + + # Timezone identifier for the deadline hour. A list of identifiers can be found + # in the AdWords API documentation. E.g. "Europe/Zurich". Required. + # Corresponds to the JSON property `deadlineTimezone` + # @return [String] + attr_accessor :deadline_timezone + + # Unique identifier for the holiday. Required. + # Corresponds to the JSON property `holidayId` + # @return [String] + attr_accessor :holiday_id + + # Date on which the deadline will become visible to consumers in ISO 8601 format. + # E.g. "2016-10-31" for 31st October 2016. Required. + # Corresponds to the JSON property `visibleFromDate` + # @return [String] + attr_accessor :visible_from_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deadline_date = args[:deadline_date] if args.key?(:deadline_date) + @deadline_hour = args[:deadline_hour] if args.key?(:deadline_hour) + @deadline_timezone = args[:deadline_timezone] if args.key?(:deadline_timezone) + @holiday_id = args[:holiday_id] if args.key?(:holiday_id) + @visible_from_date = args[:visible_from_date] if args.key?(:visible_from_date) + end + end + + # + class HolidaysHoliday + include Google::Apis::Core::Hashable + + # The CLDR territory code of the country in which the holiday is available. E.g. + # "US", "DE", "GB". A holiday cutoff can only be configured in a shipping + # settings service with matching delivery country. Always present. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for Christmas 2016. + # Always present. + # Corresponds to the JSON property `date` + # @return [String] + attr_accessor :date + + # Date on which the order has to arrive at the customer's, in ISO 8601 format. E. + # g. "2016-12-24" for 24th December 2016. Always present. + # Corresponds to the JSON property `deliveryGuaranteeDate` + # @return [String] + attr_accessor :delivery_guarantee_date + + # Hour of the day in the delivery location's timezone on the guaranteed delivery + # date by which the order has to arrive at the customer's. Possible values are: + # 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Always present. + # Corresponds to the JSON property `deliveryGuaranteeHour` + # @return [Fixnum] + attr_accessor :delivery_guarantee_hour + + # Unique identifier for the holiday to be used when configuring holiday cutoffs. + # Always present. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The holiday type. Always present. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_code = args[:country_code] if args.key?(:country_code) + @date = args[:date] if args.key?(:date) + @delivery_guarantee_date = args[:delivery_guarantee_date] if args.key?(:delivery_guarantee_date) + @delivery_guarantee_hour = args[:delivery_guarantee_hour] if args.key?(:delivery_guarantee_hour) + @id = args[:id] if args.key?(:id) + @type = args[:type] if args.key?(:type) + end + end + + # + class Installment + include Google::Apis::Core::Hashable + + # The amount the buyer has to pay per month. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :amount + + # The number of installments the buyer has to pay. + # Corresponds to the JSON property `months` + # @return [Fixnum] + attr_accessor :months + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @months = args[:months] if args.key?(:months) + end + end + + # + class InvoiceSummary + include Google::Apis::Core::Hashable + + # Summary of the total amounts of the additional charges. + # Corresponds to the JSON property `additionalChargeSummaries` + # @return [Array] + attr_accessor :additional_charge_summaries + + # [required] Customer balance on this invoice. A negative amount means the + # customer is paying, a positive one means the customer is receiving money. Note: + # the sum of merchant_balance, customer_balance and google_balance must always + # be zero. + # Furthermore the absolute value of this amount is expected to be equal to the + # sum of product amount and additional charges, minus promotions. + # Corresponds to the JSON property `customerBalance` + # @return [Google::Apis::ContentV2_1::Amount] + attr_accessor :customer_balance + + # [required] Google balance on this invoice. A negative amount means Google is + # paying, a positive one means Google is receiving money. Note: the sum of + # merchant_balance, customer_balance and google_balance must always be zero. + # Corresponds to the JSON property `googleBalance` + # @return [Google::Apis::ContentV2_1::Amount] + attr_accessor :google_balance + + # [required] Merchant balance on this invoice. A negative amount means the + # merchant is paying, a positive one means the merchant is receiving money. Note: + # the sum of merchant_balance, customer_balance and google_balance must always + # be zero. + # Corresponds to the JSON property `merchantBalance` + # @return [Google::Apis::ContentV2_1::Amount] + attr_accessor :merchant_balance + + # [required] Total price for the product. + # Corresponds to the JSON property `productTotal` + # @return [Google::Apis::ContentV2_1::Amount] + attr_accessor :product_total + + # Summary for each promotion. + # Corresponds to the JSON property `promotionSummaries` + # @return [Array] + attr_accessor :promotion_summaries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_charge_summaries = args[:additional_charge_summaries] if args.key?(:additional_charge_summaries) + @customer_balance = args[:customer_balance] if args.key?(:customer_balance) + @google_balance = args[:google_balance] if args.key?(:google_balance) + @merchant_balance = args[:merchant_balance] if args.key?(:merchant_balance) + @product_total = args[:product_total] if args.key?(:product_total) + @promotion_summaries = args[:promotion_summaries] if args.key?(:promotion_summaries) + end + end + + # + class InvoiceSummaryAdditionalChargeSummary + include Google::Apis::Core::Hashable + + # [required] Total additional charge for this type. + # Corresponds to the JSON property `totalAmount` + # @return [Google::Apis::ContentV2_1::Amount] + attr_accessor :total_amount + + # [required] Type of the additional charge. + # 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) + @total_amount = args[:total_amount] if args.key?(:total_amount) + @type = args[:type] if args.key?(:type) + end + end + + # + class LiaAboutPageSettings + include Google::Apis::Core::Hashable + + # The status of the verification process for the About page. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The URL for the About page. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @status = args[:status] if args.key?(:status) + @url = args[:url] if args.key?(:url) + end + end + + # + class LiaCountrySettings + include Google::Apis::Core::Hashable + + # The settings for the About page. + # Corresponds to the JSON property `about` + # @return [Google::Apis::ContentV2_1::LiaAboutPageSettings] + attr_accessor :about + + # CLDR country code (e.g. "US"). + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The status of the "Merchant hosted local storefront" feature. + # Corresponds to the JSON property `hostedLocalStorefrontActive` + # @return [Boolean] + attr_accessor :hosted_local_storefront_active + alias_method :hosted_local_storefront_active?, :hosted_local_storefront_active + + # LIA inventory verification settings. + # Corresponds to the JSON property `inventory` + # @return [Google::Apis::ContentV2_1::LiaInventorySettings] + attr_accessor :inventory + + # LIA "On Display To Order" settings. + # Corresponds to the JSON property `onDisplayToOrder` + # @return [Google::Apis::ContentV2_1::LiaOnDisplayToOrderSettings] + attr_accessor :on_display_to_order + + # The POS data provider linked with this country. + # Corresponds to the JSON property `posDataProvider` + # @return [Google::Apis::ContentV2_1::LiaPosDataProvider] + attr_accessor :pos_data_provider + + # The status of the "Store pickup" feature. + # Corresponds to the JSON property `storePickupActive` + # @return [Boolean] + attr_accessor :store_pickup_active + alias_method :store_pickup_active?, :store_pickup_active + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @about = args[:about] if args.key?(:about) + @country = args[:country] if args.key?(:country) + @hosted_local_storefront_active = args[:hosted_local_storefront_active] if args.key?(:hosted_local_storefront_active) + @inventory = args[:inventory] if args.key?(:inventory) + @on_display_to_order = args[:on_display_to_order] if args.key?(:on_display_to_order) + @pos_data_provider = args[:pos_data_provider] if args.key?(:pos_data_provider) + @store_pickup_active = args[:store_pickup_active] if args.key?(:store_pickup_active) + end + end + + # + class LiaInventorySettings + include Google::Apis::Core::Hashable + + # The email of the contact for the inventory verification process. + # Corresponds to the JSON property `inventoryVerificationContactEmail` + # @return [String] + attr_accessor :inventory_verification_contact_email + + # The name of the contact for the inventory verification process. + # Corresponds to the JSON property `inventoryVerificationContactName` + # @return [String] + attr_accessor :inventory_verification_contact_name + + # The status of the verification contact. + # Corresponds to the JSON property `inventoryVerificationContactStatus` + # @return [String] + attr_accessor :inventory_verification_contact_status + + # The status of the inventory verification process. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inventory_verification_contact_email = args[:inventory_verification_contact_email] if args.key?(:inventory_verification_contact_email) + @inventory_verification_contact_name = args[:inventory_verification_contact_name] if args.key?(:inventory_verification_contact_name) + @inventory_verification_contact_status = args[:inventory_verification_contact_status] if args.key?(:inventory_verification_contact_status) + @status = args[:status] if args.key?(:status) + end + end + + # + class LiaOnDisplayToOrderSettings + include Google::Apis::Core::Hashable + + # Shipping cost and policy URL. + # Corresponds to the JSON property `shippingCostPolicyUrl` + # @return [String] + attr_accessor :shipping_cost_policy_url + + # The status of the ?On display to order? feature. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @shipping_cost_policy_url = args[:shipping_cost_policy_url] if args.key?(:shipping_cost_policy_url) + @status = args[:status] if args.key?(:status) + end + end + + # + class LiaPosDataProvider + include Google::Apis::Core::Hashable + + # The ID of the POS data provider. + # Corresponds to the JSON property `posDataProviderId` + # @return [Fixnum] + attr_accessor :pos_data_provider_id + + # The account ID by which this merchant is known to the POS data provider. + # Corresponds to the JSON property `posExternalAccountId` + # @return [String] + attr_accessor :pos_external_account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pos_data_provider_id = args[:pos_data_provider_id] if args.key?(:pos_data_provider_id) + @pos_external_account_id = args[:pos_external_account_id] if args.key?(:pos_external_account_id) + end + end + + # Local Inventory ads (LIA) settings. All methods except listposdataproviders + # require the admin role. + class LiaSettings + include Google::Apis::Core::Hashable + + # The ID of the account to which these LIA settings belong. Ignored upon update, + # always present in get request responses. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # The LIA settings for each country. + # Corresponds to the JSON property `countrySettings` + # @return [Array] + attr_accessor :country_settings + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liaSettings". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @country_settings = args[:country_settings] if args.key?(:country_settings) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class LiasettingsCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # + class LiasettingsCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # The ID of the account for which to get/update account shipping settings. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # Inventory validation contact email. Required only for + # SetInventoryValidationContact. + # Corresponds to the JSON property `contactEmail` + # @return [String] + attr_accessor :contact_email + + # Inventory validation contact name. Required only for + # SetInventoryValidationContact. + # Corresponds to the JSON property `contactName` + # @return [String] + attr_accessor :contact_name + + # The country code. Required only for RequestInventoryVerification. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The GMB account. Required only for RequestGmbAccess. + # Corresponds to the JSON property `gmbEmail` + # @return [String] + attr_accessor :gmb_email + + # Local Inventory ads (LIA) settings. All methods except listposdataproviders + # require the admin role. + # Corresponds to the JSON property `liaSettings` + # @return [Google::Apis::ContentV2_1::LiaSettings] + attr_accessor :lia_settings + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # The ID of POS data provider. Required only for SetPosProvider. + # Corresponds to the JSON property `posDataProviderId` + # @return [Fixnum] + attr_accessor :pos_data_provider_id + + # The account ID by which this merchant is known to the POS provider. + # Corresponds to the JSON property `posExternalAccountId` + # @return [String] + attr_accessor :pos_external_account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @contact_email = args[:contact_email] if args.key?(:contact_email) + @contact_name = args[:contact_name] if args.key?(:contact_name) + @country = args[:country] if args.key?(:country) + @gmb_email = args[:gmb_email] if args.key?(:gmb_email) + @lia_settings = args[:lia_settings] if args.key?(:lia_settings) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @pos_data_provider_id = args[:pos_data_provider_id] if args.key?(:pos_data_provider_id) + @pos_external_account_id = args[:pos_external_account_id] if args.key?(:pos_external_account_id) + end + end + + # + class LiasettingsCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class LiasettingsCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The ID of the request entry to which this entry responds. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + # The the list of accessible GMB accounts. + # Corresponds to the JSON property `gmbAccounts` + # @return [Google::Apis::ContentV2_1::GmbAccounts] + attr_accessor :gmb_accounts + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsCustomBatchResponseEntry". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Local Inventory ads (LIA) settings. All methods except listposdataproviders + # require the admin role. + # Corresponds to the JSON property `liaSettings` + # @return [Google::Apis::ContentV2_1::LiaSettings] + attr_accessor :lia_settings + + # The list of POS data providers. + # Corresponds to the JSON property `posDataProviders` + # @return [Array] + attr_accessor :pos_data_providers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts) + @kind = args[:kind] if args.key?(:kind) + @lia_settings = args[:lia_settings] if args.key?(:lia_settings) + @pos_data_providers = args[:pos_data_providers] if args.key?(:pos_data_providers) + end + end + + # + class LiasettingsGetAccessibleGmbAccountsResponse + include Google::Apis::Core::Hashable + + # The ID of the account. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # A list of GMB accounts which are available to the merchant. + # Corresponds to the JSON property `gmbAccounts` + # @return [Array] + attr_accessor :gmb_accounts + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsGetAccessibleGmbAccountsResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class LiasettingsListPosDataProvidersResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsListPosDataProvidersResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The list of POS data providers for each eligible country + # Corresponds to the JSON property `posDataProviders` + # @return [Array] + attr_accessor :pos_data_providers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @pos_data_providers = args[:pos_data_providers] if args.key?(:pos_data_providers) + end + end + + # + class LiasettingsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of LIA settings. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class LiasettingsRequestGmbAccessResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsRequestGmbAccessResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class LiasettingsRequestInventoryVerificationResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsRequestInventoryVerificationResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class LiasettingsSetInventoryVerificationContactResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsSetInventoryVerificationContactResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class LiasettingsSetPosDataProviderResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # liasettingsSetPosDataProviderResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class LocationIdSet + include Google::Apis::Core::Hashable + + # A non-empty list of location IDs. They must all be of the same location type ( + # e.g., state). + # Corresponds to the JSON property `locationIds` + # @return [Array] + attr_accessor :location_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location_ids = args[:location_ids] if args.key?(:location_ids) + end + end + + # + class LoyaltyPoints + include Google::Apis::Core::Hashable + + # Name of loyalty points program. It is recommended to limit the name to 12 full- + # width characters or 24 Roman characters. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The retailer's loyalty points in absolute value. + # Corresponds to the JSON property `pointsValue` + # @return [Fixnum] + attr_accessor :points_value + + # The ratio of a point when converted to currency. Google assumes currency based + # on Merchant Center settings. If ratio is left out, it defaults to 1.0. + # Corresponds to the JSON property `ratio` + # @return [Float] + attr_accessor :ratio + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @points_value = args[:points_value] if args.key?(:points_value) + @ratio = args[:ratio] if args.key?(:ratio) + end + end + + # + class MerchantOrderReturn + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # + # Corresponds to the JSON property `merchantOrderId` + # @return [String] + attr_accessor :merchant_order_id + + # + # Corresponds to the JSON property `orderId` + # @return [String] + attr_accessor :order_id + + # + # Corresponds to the JSON property `orderReturnId` + # @return [String] + attr_accessor :order_return_id + + # + # Corresponds to the JSON property `returnItems` + # @return [Array] + attr_accessor :return_items + + # + # Corresponds to the JSON property `returnShipments` + # @return [Array] + attr_accessor :return_shipments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) + @order_id = args[:order_id] if args.key?(:order_id) + @order_return_id = args[:order_return_id] if args.key?(:order_return_id) + @return_items = args[:return_items] if args.key?(:return_items) + @return_shipments = args[:return_shipments] if args.key?(:return_shipments) + end + end + + # + class MerchantOrderReturnItem + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `customerReturnReason` + # @return [Google::Apis::ContentV2_1::CustomerReturnReason] + attr_accessor :customer_return_reason + + # + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # + # Corresponds to the JSON property `merchantReturnReason` + # @return [Google::Apis::ContentV2_1::RefundReason] + attr_accessor :merchant_return_reason + + # + # Corresponds to the JSON property `product` + # @return [Google::Apis::ContentV2_1::OrderLineItemProduct] + attr_accessor :product + + # + # Corresponds to the JSON property `returnShipmentIds` + # @return [Array] + attr_accessor :return_shipment_ids + + # + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @customer_return_reason = args[:customer_return_reason] if args.key?(:customer_return_reason) + @item_id = args[:item_id] if args.key?(:item_id) + @merchant_return_reason = args[:merchant_return_reason] if args.key?(:merchant_return_reason) + @product = args[:product] if args.key?(:product) + @return_shipment_ids = args[:return_shipment_ids] if args.key?(:return_shipment_ids) + @state = args[:state] if args.key?(:state) + end + end + + # Order. All methods require the order manager role. + class Order + include Google::Apis::Core::Hashable + + # Whether the order was acknowledged. + # Corresponds to the JSON property `acknowledged` + # @return [Boolean] + attr_accessor :acknowledged + alias_method :acknowledged?, :acknowledged + + # The billing address. + # Corresponds to the JSON property `billingAddress` + # @return [Google::Apis::ContentV2_1::OrderAddress] + attr_accessor :billing_address + + # The channel type of the order: "purchaseOnGoogle" or "googleExpress". + # Corresponds to the JSON property `channelType` + # @return [String] + attr_accessor :channel_type + + # The details of the customer who placed the order. + # Corresponds to the JSON property `customer` + # @return [Google::Apis::ContentV2_1::OrderCustomer] + attr_accessor :customer + + # The details for the delivery. + # Corresponds to the JSON property `deliveryDetails` + # @return [Google::Apis::ContentV2_1::OrderDeliveryDetails] + attr_accessor :delivery_details + + # The REST id of the order. Globally unique. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # order". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Line items that are ordered. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # Merchant-provided id of the order. + # Corresponds to the JSON property `merchantOrderId` + # @return [String] + attr_accessor :merchant_order_id + + # The net amount for the order. For example, if an order was originally for a + # grand total of $100 and a refund was issued for $20, the net amount will be $ + # 80. + # Corresponds to the JSON property `netAmount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :net_amount + + # The status of the payment. + # Corresponds to the JSON property `paymentStatus` + # @return [String] + attr_accessor :payment_status + + # The date when the order was placed, in ISO 8601 format. + # Corresponds to the JSON property `placedDate` + # @return [String] + attr_accessor :placed_date + + # Promotions associated with the order. + # Corresponds to the JSON property `promotions` + # @return [Array] + attr_accessor :promotions + + # Refunds for the order. + # Corresponds to the JSON property `refunds` + # @return [Array] + attr_accessor :refunds + + # Shipments of the order. + # Corresponds to the JSON property `shipments` + # @return [Array] + attr_accessor :shipments + + # The total cost of shipping for all items. + # Corresponds to the JSON property `shippingCost` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :shipping_cost + + # The tax for the total shipping cost. + # Corresponds to the JSON property `shippingCostTax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :shipping_cost_tax + + # The requested shipping option. + # Corresponds to the JSON property `shippingOption` + # @return [String] + attr_accessor :shipping_option + + # The status of the order. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @acknowledged = args[:acknowledged] if args.key?(:acknowledged) + @billing_address = args[:billing_address] if args.key?(:billing_address) + @channel_type = args[:channel_type] if args.key?(:channel_type) + @customer = args[:customer] if args.key?(:customer) + @delivery_details = args[:delivery_details] if args.key?(:delivery_details) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @line_items = args[:line_items] if args.key?(:line_items) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) + @net_amount = args[:net_amount] if args.key?(:net_amount) + @payment_status = args[:payment_status] if args.key?(:payment_status) + @placed_date = args[:placed_date] if args.key?(:placed_date) + @promotions = args[:promotions] if args.key?(:promotions) + @refunds = args[:refunds] if args.key?(:refunds) + @shipments = args[:shipments] if args.key?(:shipments) + @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) + @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax) + @shipping_option = args[:shipping_option] if args.key?(:shipping_option) + @status = args[:status] if args.key?(:status) + end + end + + # + class OrderAddress + include Google::Apis::Core::Hashable + + # CLDR country code (e.g. "US"). + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # Strings representing the lines of the printed label for mailing the order, for + # example: + # John Smith + # 1600 Amphitheatre Parkway + # Mountain View, CA, 94043 + # United States + # Corresponds to the JSON property `fullAddress` + # @return [Array] + attr_accessor :full_address + + # Whether the address is a post office box. + # Corresponds to the JSON property `isPostOfficeBox` + # @return [Boolean] + attr_accessor :is_post_office_box + alias_method :is_post_office_box?, :is_post_office_box + + # City, town or commune. May also include dependent localities or sublocalities ( + # e.g. neighborhoods or suburbs). + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # Postal Code or ZIP (e.g. "94043"). + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Name of the recipient. + # Corresponds to the JSON property `recipientName` + # @return [String] + attr_accessor :recipient_name + + # Top-level administrative subdivision of the country. For example, a state like + # California ("CA") or a province like Quebec ("QC"). + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # Street-level part of the address. + # Corresponds to the JSON property `streetAddress` + # @return [Array] + attr_accessor :street_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @full_address = args[:full_address] if args.key?(:full_address) + @is_post_office_box = args[:is_post_office_box] if args.key?(:is_post_office_box) + @locality = args[:locality] if args.key?(:locality) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @recipient_name = args[:recipient_name] if args.key?(:recipient_name) + @region = args[:region] if args.key?(:region) + @street_address = args[:street_address] if args.key?(:street_address) + end + end + + # + class OrderCancellation + include Google::Apis::Core::Hashable + + # The actor that created the cancellation. + # Corresponds to the JSON property `actor` + # @return [String] + attr_accessor :actor + + # Date on which the cancellation has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # The quantity that was canceled. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the cancellation. Orders that are cancelled 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. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @actor = args[:actor] if args.key?(:actor) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) + end + end + + # + class OrderCustomer + include Google::Apis::Core::Hashable + + # Deprecated. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # Full name of the customer. + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + # Customer's marketing preferences. + # Corresponds to the JSON property `marketingRightsInfo` + # @return [Google::Apis::ContentV2_1::OrderCustomerMarketingRightsInfo] + attr_accessor :marketing_rights_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + @full_name = args[:full_name] if args.key?(:full_name) + @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info) + end + end + + # + class OrderCustomerMarketingRightsInfo + include Google::Apis::Core::Hashable + + # Last known user selection regarding marketing preferences. In certain cases + # this selection might not be known, so this field would be empty. + # Corresponds to the JSON property `explicitMarketingPreference` + # @return [String] + attr_accessor :explicit_marketing_preference + + # Timestamp when last time marketing preference was updated. Could be empty, if + # user wasn't offered a selection yet. + # Corresponds to the JSON property `lastUpdatedTimestamp` + # @return [String] + attr_accessor :last_updated_timestamp + + # Email address that can be used for marketing purposes. This field is only + # filled when explicitMarketingPreference is equal to 'granted'. + # Corresponds to the JSON property `marketingEmailAddress` + # @return [String] + attr_accessor :marketing_email_address + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference) + @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp) + @marketing_email_address = args[:marketing_email_address] if args.key?(:marketing_email_address) + end + end + + # + class OrderDeliveryDetails + include Google::Apis::Core::Hashable + + # The delivery address + # Corresponds to the JSON property `address` + # @return [Google::Apis::ContentV2_1::OrderAddress] + attr_accessor :address + + # The phone number of the person receiving the delivery. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address = args[:address] if args.key?(:address) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + + # + class OrderLineItem + include Google::Apis::Core::Hashable + + # Annotations that are attached to the line item. + # Corresponds to the JSON property `annotations` + # @return [Array] + attr_accessor :annotations + + # Cancellations of the line item. + # Corresponds to the JSON property `cancellations` + # @return [Array] + attr_accessor :cancellations + + # The id of the line item. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Total price for the line item. For example, if two items for $10 are purchased, + # the total price will be $20. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # Product data as seen by customer from the time of the order placement. Note + # that certain attributes values (e.g. title or gtin) might be reformatted and + # no longer match values submitted via product feed. + # Corresponds to the JSON property `product` + # @return [Google::Apis::ContentV2_1::OrderLineItemProduct] + attr_accessor :product + + # Number of items canceled. + # Corresponds to the JSON property `quantityCanceled` + # @return [Fixnum] + attr_accessor :quantity_canceled + + # Number of items delivered. + # Corresponds to the JSON property `quantityDelivered` + # @return [Fixnum] + attr_accessor :quantity_delivered + + # Number of items ordered. + # Corresponds to the JSON property `quantityOrdered` + # @return [Fixnum] + attr_accessor :quantity_ordered + + # Number of items pending. + # Corresponds to the JSON property `quantityPending` + # @return [Fixnum] + attr_accessor :quantity_pending + + # Number of items returned. + # Corresponds to the JSON property `quantityReturned` + # @return [Fixnum] + attr_accessor :quantity_returned + + # Number of items shipped. + # Corresponds to the JSON property `quantityShipped` + # @return [Fixnum] + attr_accessor :quantity_shipped + + # Details of the return policy for the line item. + # Corresponds to the JSON property `returnInfo` + # @return [Google::Apis::ContentV2_1::OrderLineItemReturnInfo] + attr_accessor :return_info + + # Returns of the line item. + # Corresponds to the JSON property `returns` + # @return [Array] + attr_accessor :returns + + # Details of the requested shipping for the line item. + # Corresponds to the JSON property `shippingDetails` + # @return [Google::Apis::ContentV2_1::OrderLineItemShippingDetails] + attr_accessor :shipping_details + + # Total tax amount for the line item. For example, if two items are purchased, + # and each have a cost tax of $2, the total tax amount will be $4. + # Corresponds to the JSON property `tax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :tax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @annotations = args[:annotations] if args.key?(:annotations) + @cancellations = args[:cancellations] if args.key?(:cancellations) + @id = args[:id] if args.key?(:id) + @price = args[:price] if args.key?(:price) + @product = args[:product] if args.key?(:product) + @quantity_canceled = args[:quantity_canceled] if args.key?(:quantity_canceled) + @quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered) + @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) + @quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending) + @quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned) + @quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped) + @return_info = args[:return_info] if args.key?(:return_info) + @returns = args[:returns] if args.key?(:returns) + @shipping_details = args[:shipping_details] if args.key?(:shipping_details) + @tax = args[:tax] if args.key?(:tax) + end + end + + # + class OrderLineItemProduct + include Google::Apis::Core::Hashable + + # Brand of the item. + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # The item's channel (online or local). + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + # Condition or state of the item. + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Associated fees at order creation time. + # Corresponds to the JSON property `fees` + # @return [Array] + attr_accessor :fees + + # Global Trade Item Number (GTIN) of the item. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # The REST id of the product. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # URL of an image of the item. + # Corresponds to the JSON property `imageLink` + # @return [String] + attr_accessor :image_link + + # Shared identifier for all variants of the same product. + # Corresponds to the JSON property `itemGroupId` + # @return [String] + attr_accessor :item_group_id + + # Manufacturer Part Number (MPN) of the item. + # Corresponds to the JSON property `mpn` + # @return [String] + attr_accessor :mpn + + # An identifier of the item. + # Corresponds to the JSON property `offerId` + # @return [String] + attr_accessor :offer_id + + # Price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # URL to the cached image shown to the user when order was placed. + # Corresponds to the JSON property `shownImage` + # @return [String] + attr_accessor :shown_image + + # The CLDR territory code of the target country of the product. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The title of the product. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Variant attributes for the item. These are dimensions of the product, such as + # color, gender, material, pattern, and size. You can find a comprehensive list + # of variant attributes here. + # Corresponds to the JSON property `variantAttributes` + # @return [Array] + attr_accessor :variant_attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand = args[:brand] if args.key?(:brand) + @channel = args[:channel] if args.key?(:channel) + @condition = args[:condition] if args.key?(:condition) + @content_language = args[:content_language] if args.key?(:content_language) + @fees = args[:fees] if args.key?(:fees) + @gtin = args[:gtin] if args.key?(:gtin) + @id = args[:id] if args.key?(:id) + @image_link = args[:image_link] if args.key?(:image_link) + @item_group_id = args[:item_group_id] if args.key?(:item_group_id) + @mpn = args[:mpn] if args.key?(:mpn) + @offer_id = args[:offer_id] if args.key?(:offer_id) + @price = args[:price] if args.key?(:price) + @shown_image = args[:shown_image] if args.key?(:shown_image) + @target_country = args[:target_country] if args.key?(:target_country) + @title = args[:title] if args.key?(:title) + @variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes) + end + end + + # + class OrderLineItemProductFee + include Google::Apis::Core::Hashable + + # Amount of the fee. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :amount + + # Name of the fee. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @name = args[:name] if args.key?(:name) + end + end + + # + class OrderLineItemProductVariantAttribute + include Google::Apis::Core::Hashable + + # The dimension of the variant. + # Corresponds to the JSON property `dimension` + # @return [String] + attr_accessor :dimension + + # The value for the dimension. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dimension = args[:dimension] if args.key?(:dimension) + @value = args[:value] if args.key?(:value) + end + end + + # + class OrderLineItemReturnInfo + include Google::Apis::Core::Hashable + + # How many days later the item can be returned. + # Corresponds to the JSON property `daysToReturn` + # @return [Fixnum] + attr_accessor :days_to_return + + # Whether the item is returnable. + # Corresponds to the JSON property `isReturnable` + # @return [Boolean] + attr_accessor :is_returnable + alias_method :is_returnable?, :is_returnable + + # URL of the item return policy. + # Corresponds to the JSON property `policyUrl` + # @return [String] + attr_accessor :policy_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @days_to_return = args[:days_to_return] if args.key?(:days_to_return) + @is_returnable = args[:is_returnable] if args.key?(:is_returnable) + @policy_url = args[:policy_url] if args.key?(:policy_url) + end + end + + # + class OrderLineItemShippingDetails + include Google::Apis::Core::Hashable + + # The delivery by date, in ISO 8601 format. + # Corresponds to the JSON property `deliverByDate` + # @return [String] + attr_accessor :deliver_by_date + + # Details of the shipping method. + # Corresponds to the JSON property `method` + # @return [Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod] + attr_accessor :method_prop + + # The ship by date, in ISO 8601 format. + # Corresponds to the JSON property `shipByDate` + # @return [String] + attr_accessor :ship_by_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date) + end + end + + # + class OrderLineItemShippingDetailsMethod + include Google::Apis::Core::Hashable + + # The carrier for the shipping. Optional. See shipments[].carrier for a list of + # acceptable values. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # Maximum transit time. + # Corresponds to the JSON property `maxDaysInTransit` + # @return [Fixnum] + attr_accessor :max_days_in_transit + + # The name of the shipping method. + # Corresponds to the JSON property `methodName` + # @return [String] + attr_accessor :method_name + + # Minimum transit time. + # Corresponds to the JSON property `minDaysInTransit` + # @return [Fixnum] + attr_accessor :min_days_in_transit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] if args.key?(:carrier) + @max_days_in_transit = args[:max_days_in_transit] if args.key?(:max_days_in_transit) + @method_name = args[:method_name] if args.key?(:method_name) + @min_days_in_transit = args[:min_days_in_transit] if args.key?(:min_days_in_transit) + end + end + + # + class OrderMerchantProvidedAnnotation + include Google::Apis::Core::Hashable + + # Key for additional merchant provided (as key-value pairs) annotation about the + # line item. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Value for additional merchant provided (as key-value pairs) annotation about + # the line item. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + + # + class OrderPromotion + include Google::Apis::Core::Hashable + + # Items which this promotion may be applied to. If empty, there are no + # restrictions on applicable items and quantity. + # Corresponds to the JSON property `applicableItems` + # @return [Array] + attr_accessor :applicable_items + + # Items which this promotion have been applied to. + # Corresponds to the JSON property `appliedItems` + # @return [Array] + attr_accessor :applied_items + + # The party funding the promotion. + # Corresponds to the JSON property `funder` + # @return [String] + attr_accessor :funder + + # This field is used to identify promotions within merchants' own systems. + # Corresponds to the JSON property `merchantPromotionId` + # @return [String] + attr_accessor :merchant_promotion_id + + # Estimated discount applied to pre-tax amount. + # Corresponds to the JSON property `pretaxValue` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :pretax_value + + # A short title of the promotion to be shown on the checkout page. + # Corresponds to the JSON property `shortTitle` + # @return [String] + attr_accessor :short_title + + # The category of the promotion. + # Corresponds to the JSON property `subtype` + # @return [String] + attr_accessor :subtype + + # Estimated discount applied to tax (if allowed by law). + # Corresponds to the JSON property `taxValue` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :tax_value + + # The title of the promotion. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The scope of the promotion. + # 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) + @applicable_items = args[:applicable_items] if args.key?(:applicable_items) + @applied_items = args[:applied_items] if args.key?(:applied_items) + @funder = args[:funder] if args.key?(:funder) + @merchant_promotion_id = args[:merchant_promotion_id] if args.key?(:merchant_promotion_id) + @pretax_value = args[:pretax_value] if args.key?(:pretax_value) + @short_title = args[:short_title] if args.key?(:short_title) + @subtype = args[:subtype] if args.key?(:subtype) + @tax_value = args[:tax_value] if args.key?(:tax_value) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + end + end + + # + class OrderPromotionItem + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The quantity of the associated product. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @product_id = args[:product_id] if args.key?(:product_id) + @quantity = args[:quantity] if args.key?(:quantity) + end + end + + # + class OrderRefund + include Google::Apis::Core::Hashable + + # The actor that created the refund. + # Corresponds to the JSON property `actor` + # @return [String] + attr_accessor :actor + + # The amount that is refunded. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :amount + + # Date on which the item has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # The reason for the refund. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @actor = args[:actor] if args.key?(:actor) + @amount = args[:amount] if args.key?(:amount) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) + end + end + + # Order disbursement. All methods require the payment analyst role. + class OrderReportDisbursement + include Google::Apis::Core::Hashable + + # The disbursement amount. + # Corresponds to the JSON property `disbursementAmount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :disbursement_amount + + # The disbursement date, in ISO 8601 format. + # Corresponds to the JSON property `disbursementCreationDate` + # @return [String] + attr_accessor :disbursement_creation_date + + # The date the disbursement was initiated, in ISO 8601 format. + # Corresponds to the JSON property `disbursementDate` + # @return [String] + attr_accessor :disbursement_date + + # The ID of the disbursement. + # Corresponds to the JSON property `disbursementId` + # @return [String] + attr_accessor :disbursement_id + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disbursement_amount = args[:disbursement_amount] if args.key?(:disbursement_amount) + @disbursement_creation_date = args[:disbursement_creation_date] if args.key?(:disbursement_creation_date) + @disbursement_date = args[:disbursement_date] if args.key?(:disbursement_date) + @disbursement_id = args[:disbursement_id] if args.key?(:disbursement_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + end + end + + # + class OrderReportTransaction + include Google::Apis::Core::Hashable + + # The disbursement amount. + # Corresponds to the JSON property `disbursementAmount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :disbursement_amount + + # The date the disbursement was created, in ISO 8601 format. + # Corresponds to the JSON property `disbursementCreationDate` + # @return [String] + attr_accessor :disbursement_creation_date + + # The date the disbursement was initiated, in ISO 8601 format. + # Corresponds to the JSON property `disbursementDate` + # @return [String] + attr_accessor :disbursement_date + + # The ID of the disbursement. + # Corresponds to the JSON property `disbursementId` + # @return [String] + attr_accessor :disbursement_id + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # Merchant-provided id of the order. + # Corresponds to the JSON property `merchantOrderId` + # @return [String] + attr_accessor :merchant_order_id + + # The id of the order. + # Corresponds to the JSON property `orderId` + # @return [String] + attr_accessor :order_id + + # Total amount for the items. + # Corresponds to the JSON property `productAmount` + # @return [Google::Apis::ContentV2_1::Amount] + attr_accessor :product_amount + + # The date of the transaction, in ISO 8601 format. + # Corresponds to the JSON property `transactionDate` + # @return [String] + attr_accessor :transaction_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disbursement_amount = args[:disbursement_amount] if args.key?(:disbursement_amount) + @disbursement_creation_date = args[:disbursement_creation_date] if args.key?(:disbursement_creation_date) + @disbursement_date = args[:disbursement_date] if args.key?(:disbursement_date) + @disbursement_id = args[:disbursement_id] if args.key?(:disbursement_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) + @order_id = args[:order_id] if args.key?(:order_id) + @product_amount = args[:product_amount] if args.key?(:product_amount) + @transaction_date = args[:transaction_date] if args.key?(:transaction_date) + end + end + + # + class OrderReturn + include Google::Apis::Core::Hashable + + # The actor that created the refund. + # Corresponds to the JSON property `actor` + # @return [String] + attr_accessor :actor + + # Date on which the item has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # Quantity that is returned. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the return. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @actor = args[:actor] if args.key?(:actor) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) + end + end + + # + class OrderShipment + include Google::Apis::Core::Hashable + + # The carrier handling the shipment. + # Acceptable values for US are: + # - "gsx" + # - "ups" + # - "usps" + # - "fedex" + # - "dhl" + # - "ecourier" + # - "cxt" + # - "google" + # - "ontrac" + # - "emsy" + # - "ont" + # - "deliv" + # - "dynamex" + # - "lasership" + # - "mpx" + # - "uds" + # Acceptable values for FR are: + # - "colissimo" + # - "chronopost" + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # Date on which the shipment has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # Date on which the shipment has been delivered, in ISO 8601 format. Present + # only if status is delivered + # Corresponds to the JSON property `deliveryDate` + # @return [String] + attr_accessor :delivery_date + + # The id of the shipment. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The line items that are shipped. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # The status of the shipment. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The tracking id for the shipment. + # Corresponds to the JSON property `trackingId` + # @return [String] + attr_accessor :tracking_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] if args.key?(:carrier) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @delivery_date = args[:delivery_date] if args.key?(:delivery_date) + @id = args[:id] if args.key?(:id) + @line_items = args[:line_items] if args.key?(:line_items) + @status = args[:status] if args.key?(:status) + @tracking_id = args[:tracking_id] if args.key?(:tracking_id) + end + end + + # + class OrderShipmentLineItemShipment + include Google::Apis::Core::Hashable + + # The id of the line item that is shipped. Either lineItemId or productId is + # required. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the product to ship. This is the REST ID used in the products + # service. Either lineItemId or productId is required. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The quantity that is shipped. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @product_id = args[:product_id] if args.key?(:product_id) + @quantity = args[:quantity] if args.key?(:quantity) + end + end + + # + class OrderinvoicesCreateChargeInvoiceRequest + include Google::Apis::Core::Hashable + + # [required] The ID of the invoice. + # Corresponds to the JSON property `invoiceId` + # @return [String] + attr_accessor :invoice_id + + # [required] Invoice summary. + # Corresponds to the JSON property `invoiceSummary` + # @return [Google::Apis::ContentV2_1::InvoiceSummary] + attr_accessor :invoice_summary + + # [required] Invoice details per line item. + # Corresponds to the JSON property `lineItemInvoices` + # @return [Array] + attr_accessor :line_item_invoices + + # [required] The ID of the operation, unique across all operations for a given + # order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # [required] ID of the shipment group. + # Corresponds to the JSON property `shipmentGroupId` + # @return [String] + attr_accessor :shipment_group_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @invoice_id = args[:invoice_id] if args.key?(:invoice_id) + @invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary) + @line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id) + end + end + + # + class OrderinvoicesCreateChargeInvoiceResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderinvoicesCreateChargeInvoiceResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrderinvoicesCreateRefundInvoiceRequest + include Google::Apis::Core::Hashable + + # [required] The ID of the invoice. + # Corresponds to the JSON property `invoiceId` + # @return [String] + attr_accessor :invoice_id + + # [required] The ID of the operation, unique across all operations for a given + # order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # Option to create a refund-only invoice. Exactly one of refundOnlyOption or + # returnOption must be provided. + # Corresponds to the JSON property `refundOnlyOption` + # @return [Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption] + attr_accessor :refund_only_option + + # Option to create an invoice for a refund and mark all items within the invoice + # as returned. Exactly one of refundOnlyOption or returnOption must be provided. + # Corresponds to the JSON property `returnOption` + # @return [Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption] + attr_accessor :return_option + + # Invoice details for different shipment groups. + # Corresponds to the JSON property `shipmentInvoices` + # @return [Array] + attr_accessor :shipment_invoices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @invoice_id = args[:invoice_id] if args.key?(:invoice_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @refund_only_option = args[:refund_only_option] if args.key?(:refund_only_option) + @return_option = args[:return_option] if args.key?(:return_option) + @shipment_invoices = args[:shipment_invoices] if args.key?(:shipment_invoices) + end + end + + # + class OrderinvoicesCreateRefundInvoiceResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderinvoicesCreateRefundInvoiceResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + include Google::Apis::Core::Hashable + + # Optional description of the refund reason. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [required] Reason for the refund. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @reason = args[:reason] if args.key?(:reason) + end + end + + # + class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + include Google::Apis::Core::Hashable + + # Optional description of the return reason. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [required] Reason for the return. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @reason = args[:reason] if args.key?(:reason) + end + end + + # + class OrderpaymentsNotifyAuthApprovedRequest + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `authAmountPretax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :auth_amount_pretax + + # + # Corresponds to the JSON property `authAmountTax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :auth_amount_tax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auth_amount_pretax = args[:auth_amount_pretax] if args.key?(:auth_amount_pretax) + @auth_amount_tax = args[:auth_amount_tax] if args.key?(:auth_amount_tax) + end + end + + # + class OrderpaymentsNotifyAuthApprovedResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderpaymentsNotifyAuthApprovedResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrderpaymentsNotifyAuthDeclinedRequest + include Google::Apis::Core::Hashable + + # Reason why payment authorization was declined. + # Corresponds to the JSON property `declineReason` + # @return [String] + attr_accessor :decline_reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @decline_reason = args[:decline_reason] if args.key?(:decline_reason) + end + end + + # + class OrderpaymentsNotifyAuthDeclinedResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderpaymentsNotifyAuthDeclinedResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrderpaymentsNotifyChargeRequest + include Google::Apis::Core::Hashable + + # Whether charge was successful. + # Corresponds to the JSON property `chargeState` + # @return [String] + attr_accessor :charge_state + + # Invoice IDs from the orderinvoices service that correspond to the charge. + # Corresponds to the JSON property `invoiceIds` + # @return [Array] + attr_accessor :invoice_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @charge_state = args[:charge_state] if args.key?(:charge_state) + @invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids) + end + end + + # + class OrderpaymentsNotifyChargeResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderpaymentsNotifyChargeResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrderpaymentsNotifyRefundRequest + include Google::Apis::Core::Hashable + + # Invoice IDs from the orderinvoices service that correspond to the refund. + # Corresponds to the JSON property `invoiceIds` + # @return [Array] + attr_accessor :invoice_ids + + # Whether refund was successful. + # Corresponds to the JSON property `refundState` + # @return [String] + attr_accessor :refund_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids) + @refund_state = args[:refund_state] if args.key?(:refund_state) + end + end + + # + class OrderpaymentsNotifyRefundResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderpaymentsNotifyRefundResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrderreportsListDisbursementsResponse + include Google::Apis::Core::Hashable + + # The list of disbursements. + # Corresponds to the JSON property `disbursements` + # @return [Array] + attr_accessor :disbursements + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderreportsListDisbursementsResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of disbursements. + # 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) + @disbursements = args[:disbursements] if args.key?(:disbursements) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # + class OrderreportsListTransactionsResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderreportsListTransactionsResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of transactions. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of transactions. + # Corresponds to the JSON property `transactions` + # @return [Array] + attr_accessor :transactions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @transactions = args[:transactions] if args.key?(:transactions) + end + end + + # + class OrderreturnsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # orderreturnsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of returns. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class OrdersAcknowledgeRequest + include Google::Apis::Core::Hashable + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation_id = args[:operation_id] if args.key?(:operation_id) + end + end + + # + class OrdersAcknowledgeResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersAcknowledgeResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersAdvanceTestOrderResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersAdvanceTestOrderResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersCancelLineItemRequest + include Google::Apis::Core::Hashable + + # The ID of the line item to cancel. Either lineItemId or productId is required. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The ID of the product to cancel. This is the REST ID used in the products + # service. Either lineItemId or productId is required. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The quantity to cancel. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the cancellation. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @product_id = args[:product_id] if args.key?(:product_id) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) + end + end + + # + class OrdersCancelLineItemResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCancelLineItemResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersCancelRequest + include Google::Apis::Core::Hashable + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The reason for the cancellation. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) + end + end + + # + class OrdersCancelResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCancelResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersCancelTestOrderByCustomerRequest + include Google::Apis::Core::Hashable + + # The reason for the cancellation. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reason = args[:reason] if args.key?(:reason) + end + end + + # + class OrdersCancelTestOrderByCustomerResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCancelTestOrderByCustomerResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersCreateTestOrderRequest + include Google::Apis::Core::Hashable + + # The CLDR territory code of the country of the test order to create. Affects + # the currency and addresses of orders created via template_name, or the + # addresses of orders created via test_order. + # Acceptable values are: + # - "US" + # - "FR" Defaults to US. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The test order template to use. Specify as an alternative to testOrder as a + # shortcut for retrieving a template and then creating an order using that + # template. + # Corresponds to the JSON property `templateName` + # @return [String] + attr_accessor :template_name + + # The test order to create. + # Corresponds to the JSON property `testOrder` + # @return [Google::Apis::ContentV2_1::TestOrder] + attr_accessor :test_order + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @template_name = args[:template_name] if args.key?(:template_name) + @test_order = args[:test_order] if args.key?(:test_order) + end + end + + # + class OrdersCreateTestOrderResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCreateTestOrderResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The ID of the newly created test order. + # Corresponds to the JSON property `orderId` + # @return [String] + attr_accessor :order_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @order_id = args[:order_id] if args.key?(:order_id) + end + end + + # + class OrdersCreateTestReturnRequest + include Google::Apis::Core::Hashable + + # Returned items. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + end + end + + # + class OrdersCreateTestReturnResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersCreateTestReturnResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The ID of the newly created test order return. + # Corresponds to the JSON property `returnId` + # @return [String] + attr_accessor :return_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @return_id = args[:return_id] if args.key?(:return_id) + end + end + + # + class OrdersCustomBatchRequestEntryCreateTestReturnReturnItem + include Google::Apis::Core::Hashable + + # The ID of the line item to return. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # Quantity that is returned. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @quantity = args[:quantity] if args.key?(:quantity) + end + end + + # + class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo + include Google::Apis::Core::Hashable + + # The carrier handling the shipment. See shipments[].carrier in the Orders + # resource representation for a list of acceptable values. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # The ID of the shipment. + # Corresponds to the JSON property `shipmentId` + # @return [String] + attr_accessor :shipment_id + + # The tracking id for the shipment. + # Corresponds to the JSON property `trackingId` + # @return [String] + attr_accessor :tracking_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] if args.key?(:carrier) + @shipment_id = args[:shipment_id] if args.key?(:shipment_id) + @tracking_id = args[:tracking_id] if args.key?(:tracking_id) + end + end + + # + class OrdersGetByMerchantOrderIdResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersGetByMerchantOrderIdResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Order. All methods require the order manager role. + # Corresponds to the JSON property `order` + # @return [Google::Apis::ContentV2_1::Order] + attr_accessor :order + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @order = args[:order] if args.key?(:order) + end + end + + # + class OrdersGetTestOrderTemplateResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersGetTestOrderTemplateResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The requested test order template. + # Corresponds to the JSON property `template` + # @return [Google::Apis::ContentV2_1::TestOrder] + attr_accessor :template + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @template = args[:template] if args.key?(:template) + end + end + + # + class OrdersInStoreRefundLineItemRequest + include Google::Apis::Core::Hashable + + # The ID of the line item to return. Either lineItemId or productId is required. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The amount to be refunded. This may be pre-tax or post-tax depending on the + # location of the order. Required. + # Corresponds to the JSON property `priceAmount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price_amount + + # The ID of the product to return. This is the REST ID used in the products + # service. Either lineItemId or productId is required. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The quantity to return and refund. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the return. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + # The amount of tax to be refunded. Required. + # Corresponds to the JSON property `taxAmount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :tax_amount + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @price_amount = args[:price_amount] if args.key?(:price_amount) + @product_id = args[:product_id] if args.key?(:product_id) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) + @tax_amount = args[:tax_amount] if args.key?(:tax_amount) + end + end + + # + class OrdersInStoreRefundLineItemResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersInStoreRefundLineItemResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of orders. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class OrdersRejectReturnLineItemRequest + include Google::Apis::Core::Hashable + + # The ID of the line item to return. Either lineItemId or productId is required. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The ID of the product to return. This is the REST ID used in the products + # service. Either lineItemId or productId is required. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The quantity to return and refund. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the return. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @product_id = args[:product_id] if args.key?(:product_id) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) + end + end + + # + class OrdersRejectReturnLineItemResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersRejectReturnLineItemResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersReturnRefundLineItemRequest + include Google::Apis::Core::Hashable + + # The ID of the line item to return. Either lineItemId or productId is required. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The amount to be refunded. This may be pre-tax or post-tax depending on the + # location of the order. If omitted, refundless return is assumed. Optional, but + # if filled then both priceAmount and taxAmount must be set. + # Corresponds to the JSON property `priceAmount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price_amount + + # The ID of the product to return. This is the REST ID used in the products + # service. Either lineItemId or productId is required. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The quantity to return and refund. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The reason for the return. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + # The explanation of the reason. + # Corresponds to the JSON property `reasonText` + # @return [String] + attr_accessor :reason_text + + # The amount of tax to be refunded. + # Corresponds to the JSON property `taxAmount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :tax_amount + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @price_amount = args[:price_amount] if args.key?(:price_amount) + @product_id = args[:product_id] if args.key?(:product_id) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) + @tax_amount = args[:tax_amount] if args.key?(:tax_amount) + end + end + + # + class OrdersReturnRefundLineItemResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersReturnRefundLineItemResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersSetLineItemMetadataRequest + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `annotations` + # @return [Array] + attr_accessor :annotations + + # The ID of the line item to set metadata. Either lineItemId or productId is + # required. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The ID of the product to set metadata. This is the REST ID used in the + # products service. Either lineItemId or productId is required. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @annotations = args[:annotations] if args.key?(:annotations) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @product_id = args[:product_id] if args.key?(:product_id) + end + end + + # + class OrdersSetLineItemMetadataResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersSetLineItemMetadataResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersShipLineItemsRequest + include Google::Apis::Core::Hashable + + # Line items to ship. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # ID of the shipment group. Required for orders that use the orderinvoices + # service. + # Corresponds to the JSON property `shipmentGroupId` + # @return [String] + attr_accessor :shipment_group_id + + # Shipment information. This field is repeated because a single line item can be + # shipped in several packages (and have several tracking IDs). + # Corresponds to the JSON property `shipmentInfos` + # @return [Array] + attr_accessor :shipment_infos + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_items = args[:line_items] if args.key?(:line_items) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id) + @shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos) + end + end + + # + class OrdersShipLineItemsResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersShipLineItemsResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersUpdateLineItemShippingDetailsRequest + include Google::Apis::Core::Hashable + + # Updated delivery by date, in ISO 8601 format. If not specified only ship by + # date is updated. + # Corresponds to the JSON property `deliverByDate` + # @return [String] + attr_accessor :deliver_by_date + + # The ID of the line item to set metadata. Either lineItemId or productId is + # required. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The ID of the product to set metadata. This is the REST ID used in the + # products service. Either lineItemId or productId is required. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # Updated ship by date, in ISO 8601 format. If not specified only deliver by + # date is updated. + # Corresponds to the JSON property `shipByDate` + # @return [String] + attr_accessor :ship_by_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @product_id = args[:product_id] if args.key?(:product_id) + @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date) + end + end + + # + class OrdersUpdateLineItemShippingDetailsResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersUpdateLineItemShippingDetailsResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersUpdateMerchantOrderIdRequest + include Google::Apis::Core::Hashable + + # The merchant order id to be assigned to the order. Must be unique per merchant. + # Corresponds to the JSON property `merchantOrderId` + # @return [String] + attr_accessor :merchant_order_id + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + end + end + + # + class OrdersUpdateMerchantOrderIdResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersUpdateMerchantOrderIdResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class OrdersUpdateShipmentRequest + 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. + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # Date on which the shipment has been delivered, in ISO 8601 format. Optional + # and can be provided only if status is delivered. + # Corresponds to the JSON property `deliveryDate` + # @return [String] + attr_accessor :delivery_date + + # The ID of the operation. Unique across all operations for a given order. + # Corresponds to the JSON property `operationId` + # @return [String] + attr_accessor :operation_id + + # The ID of the shipment. + # Corresponds to the JSON property `shipmentId` + # @return [String] + attr_accessor :shipment_id + + # New status for the shipment. Not updated if missing. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The tracking id for the shipment. Not updated if missing. + # Corresponds to the JSON property `trackingId` + # @return [String] + attr_accessor :tracking_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] if args.key?(:carrier) + @delivery_date = args[:delivery_date] if args.key?(:delivery_date) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @shipment_id = args[:shipment_id] if args.key?(:shipment_id) + @status = args[:status] if args.key?(:status) + @tracking_id = args[:tracking_id] if args.key?(:tracking_id) + end + end + + # + class OrdersUpdateShipmentResponse + include Google::Apis::Core::Hashable + + # The status of the execution. + # Corresponds to the JSON property `executionStatus` + # @return [String] + attr_accessor :execution_status + + # Identifies what kind of resource this is. Value: the fixed string "content# + # ordersUpdateShipmentResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class PosCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # + class PosCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # The absolute quantity of an item available at the given store. + # Corresponds to the JSON property `inventory` + # @return [Google::Apis::ContentV2_1::PosInventory] + attr_accessor :inventory + + # The ID of the POS data provider. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # The change of the available quantity of an item at the given store. + # Corresponds to the JSON property `sale` + # @return [Google::Apis::ContentV2_1::PosSale] + attr_accessor :sale + + # Store resource. + # Corresponds to the JSON property `store` + # @return [Google::Apis::ContentV2_1::PosStore] + attr_accessor :store + + # The store code. Set this only if the method is delete or get. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + # The ID of the account for which to get/submit data. + # Corresponds to the JSON property `targetMerchantId` + # @return [Fixnum] + attr_accessor :target_merchant_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @inventory = args[:inventory] if args.key?(:inventory) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @sale = args[:sale] if args.key?(:sale) + @store = args[:store] if args.key?(:store) + @store_code = args[:store_code] if args.key?(:store_code) + @target_merchant_id = args[:target_merchant_id] if args.key?(:target_merchant_id) + end + end + + # + class PosCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # posCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class PosCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The ID of the request entry to which this entry responds. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + # The absolute quantity of an item available at the given store. + # Corresponds to the JSON property `inventory` + # @return [Google::Apis::ContentV2_1::PosInventory] + attr_accessor :inventory + + # Identifies what kind of resource this is. Value: the fixed string "content# + # posCustomBatchResponseEntry". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The change of the available quantity of an item at the given store. + # Corresponds to the JSON property `sale` + # @return [Google::Apis::ContentV2_1::PosSale] + attr_accessor :sale + + # Store resource. + # Corresponds to the JSON property `store` + # @return [Google::Apis::ContentV2_1::PosStore] + attr_accessor :store + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @inventory = args[:inventory] if args.key?(:inventory) + @kind = args[:kind] if args.key?(:kind) + @sale = args[:sale] if args.key?(:sale) + @store = args[:store] if args.key?(:store) + end + end + + # + class PosDataProviders + include Google::Apis::Core::Hashable + + # Country code. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # A list of POS data providers. + # Corresponds to the JSON property `posDataProviders` + # @return [Array] + attr_accessor :pos_data_providers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @pos_data_providers = args[:pos_data_providers] if args.key?(:pos_data_providers) + end + end + + # + class PosDataProvidersPosDataProvider + include Google::Apis::Core::Hashable + + # The display name of Pos data Provider. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The full name of this POS data Provider. + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + # The ID of the account. + # Corresponds to the JSON property `providerId` + # @return [Fixnum] + attr_accessor :provider_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @full_name = args[:full_name] if args.key?(:full_name) + @provider_id = args[:provider_id] if args.key?(:provider_id) + end + end + + # The absolute quantity of an item available at the given store. + class PosInventory + include Google::Apis::Core::Hashable + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # A unique identifier for the item. + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # posInventory". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The current price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # The available quantity of the item. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + # The CLDR territory code for the item. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The inventory timestamp, in ISO 8601 format. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @item_id = args[:item_id] if args.key?(:item_id) + @kind = args[:kind] if args.key?(:kind) + @price = args[:price] if args.key?(:price) + @quantity = args[:quantity] if args.key?(:quantity) + @store_code = args[:store_code] if args.key?(:store_code) + @target_country = args[:target_country] if args.key?(:target_country) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # + class PosInventoryRequest + include Google::Apis::Core::Hashable + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # A unique identifier for the item. + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # The current price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # The available quantity of the item. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + # The CLDR territory code for the item. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The inventory timestamp, in ISO 8601 format. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @item_id = args[:item_id] if args.key?(:item_id) + @price = args[:price] if args.key?(:price) + @quantity = args[:quantity] if args.key?(:quantity) + @store_code = args[:store_code] if args.key?(:store_code) + @target_country = args[:target_country] if args.key?(:target_country) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # + class PosInventoryResponse + include Google::Apis::Core::Hashable + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # A unique identifier for the item. + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # posInventoryResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The current price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # The available quantity of the item. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + # The CLDR territory code for the item. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The inventory timestamp, in ISO 8601 format. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @item_id = args[:item_id] if args.key?(:item_id) + @kind = args[:kind] if args.key?(:kind) + @price = args[:price] if args.key?(:price) + @quantity = args[:quantity] if args.key?(:quantity) + @store_code = args[:store_code] if args.key?(:store_code) + @target_country = args[:target_country] if args.key?(:target_country) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # + class PosListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # posListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @resources = args[:resources] if args.key?(:resources) + end + end + + # The change of the available quantity of an item at the given store. + class PosSale + include Google::Apis::Core::Hashable + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # A unique identifier for the item. + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # posSale". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # The relative change of the available quantity. Negative for items returned. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # A unique ID to group items from the same sale event. + # Corresponds to the JSON property `saleId` + # @return [String] + attr_accessor :sale_id + + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + # The CLDR territory code for the item. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The inventory timestamp, in ISO 8601 format. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @item_id = args[:item_id] if args.key?(:item_id) + @kind = args[:kind] if args.key?(:kind) + @price = args[:price] if args.key?(:price) + @quantity = args[:quantity] if args.key?(:quantity) + @sale_id = args[:sale_id] if args.key?(:sale_id) + @store_code = args[:store_code] if args.key?(:store_code) + @target_country = args[:target_country] if args.key?(:target_country) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # + class PosSaleRequest + include Google::Apis::Core::Hashable + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # A unique identifier for the item. + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # The price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # The relative change of the available quantity. Negative for items returned. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # A unique ID to group items from the same sale event. + # Corresponds to the JSON property `saleId` + # @return [String] + attr_accessor :sale_id + + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + # The CLDR territory code for the item. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The inventory timestamp, in ISO 8601 format. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @item_id = args[:item_id] if args.key?(:item_id) + @price = args[:price] if args.key?(:price) + @quantity = args[:quantity] if args.key?(:quantity) + @sale_id = args[:sale_id] if args.key?(:sale_id) + @store_code = args[:store_code] if args.key?(:store_code) + @target_country = args[:target_country] if args.key?(:target_country) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # + class PosSaleResponse + include Google::Apis::Core::Hashable + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # A unique identifier for the item. + # Corresponds to the JSON property `itemId` + # @return [String] + attr_accessor :item_id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # posSaleResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # The relative change of the available quantity. Negative for items returned. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # A unique ID to group items from the same sale event. + # Corresponds to the JSON property `saleId` + # @return [String] + attr_accessor :sale_id + + # The identifier of the merchant's store. Either a storeCode inserted via the + # API or the code of the store in Google My Business. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + # The CLDR territory code for the item. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The inventory timestamp, in ISO 8601 format. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @item_id = args[:item_id] if args.key?(:item_id) + @kind = args[:kind] if args.key?(:kind) + @price = args[:price] if args.key?(:price) + @quantity = args[:quantity] if args.key?(:quantity) + @sale_id = args[:sale_id] if args.key?(:sale_id) + @store_code = args[:store_code] if args.key?(:store_code) + @target_country = args[:target_country] if args.key?(:target_country) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # Store resource. + class PosStore + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # posStore". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The street address of the store. + # Corresponds to the JSON property `storeAddress` + # @return [String] + attr_accessor :store_address + + # A store identifier that is unique for the given merchant. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @store_address = args[:store_address] if args.key?(:store_address) + @store_code = args[:store_code] if args.key?(:store_code) + end + end + + # + class PostalCodeGroup + include Google::Apis::Core::Hashable + + # The CLDR territory code of the country the postal code group applies to. + # Required. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The name of the postal code group, referred to in headers. Required. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A range of postal codes. Required. + # Corresponds to the JSON property `postalCodeRanges` + # @return [Array] + attr_accessor :postal_code_ranges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @name = args[:name] if args.key?(:name) + @postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges) + end + end + + # + class PostalCodeRange + include Google::Apis::Core::Hashable + + # A postal code or a pattern of the form prefix* denoting the inclusive lower + # bound of the range defining the area. Examples values: "94108", "9410*", "9*". + # Required. + # Corresponds to the JSON property `postalCodeRangeBegin` + # @return [String] + attr_accessor :postal_code_range_begin + + # A postal code or a pattern of the form prefix* denoting the inclusive upper + # bound of the range defining the area. It must have the same length as + # postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then + # postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a + # pattern then postalCodeRangeEnd must be a pattern with the same prefix length. + # Optional: if not set, then the area is defined as being all the postal codes + # matching postalCodeRangeBegin. + # Corresponds to the JSON property `postalCodeRangeEnd` + # @return [String] + attr_accessor :postal_code_range_end + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @postal_code_range_begin = args[:postal_code_range_begin] if args.key?(:postal_code_range_begin) + @postal_code_range_end = args[:postal_code_range_end] if args.key?(:postal_code_range_end) + end + end + + # + class Price + include Google::Apis::Core::Hashable + + # The currency of the price. + # Corresponds to the JSON property `currency` + # @return [String] + attr_accessor :currency + + # The price represented as a number. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency = args[:currency] if args.key?(:currency) + @value = args[:value] if args.key?(:value) + end + end + + # 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 + + # Additional URLs of images of the item. + # Corresponds to the JSON property `additionalImageLinks` + # @return [Array] + attr_accessor :additional_image_links + + # Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise. + # Corresponds to the JSON property `adsGrouping` + # @return [String] + attr_accessor :ads_grouping + + # Similar to ads_grouping, but only works on CPC. + # Corresponds to the JSON property `adsLabels` + # @return [Array] + attr_accessor :ads_labels + + # Allows advertisers to override the item URL when the product is shown within + # the context of Product Ads. + # Corresponds to the JSON property `adsRedirect` + # @return [String] + attr_accessor :ads_redirect + + # Set to true if the item is targeted towards adults. + # Corresponds to the JSON property `adult` + # @return [Boolean] + attr_accessor :adult + alias_method :adult?, :adult + + # Target age group of the item. + # Corresponds to the JSON property `ageGroup` + # @return [String] + attr_accessor :age_group + + # Availability status of the item. + # Corresponds to the JSON property `availability` + # @return [String] + attr_accessor :availability + + # The day a pre-ordered product becomes available for delivery, in ISO 8601 + # format. + # Corresponds to the JSON property `availabilityDate` + # @return [String] + attr_accessor :availability_date + + # Brand of the item. + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # The item's channel (online or local). + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + # Color of the item. + # Corresponds to the JSON property `color` + # @return [String] + attr_accessor :color + + # Condition or state of the item. + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Cost of goods sold. Used for gross profit reporting. + # Corresponds to the JSON property `costOfGoodsSold` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :cost_of_goods_sold + + # A list of custom (merchant-provided) attributes. It can also be used for + # submitting any attribute of the feed specification in its generic form (e.g., ` + # "name": "size type", "type": "text", "value": "regular" `). This is useful + # for submitting attributes not explicitly exposed by the API. + # Corresponds to the JSON property `customAttributes` + # @return [Array] + attr_accessor :custom_attributes + + # Custom label 0 for custom grouping of items in a Shopping campaign. + # Corresponds to the JSON property `customLabel0` + # @return [String] + attr_accessor :custom_label0 + + # Custom label 1 for custom grouping of items in a Shopping campaign. + # Corresponds to the JSON property `customLabel1` + # @return [String] + attr_accessor :custom_label1 + + # Custom label 2 for custom grouping of items in a Shopping campaign. + # Corresponds to the JSON property `customLabel2` + # @return [String] + attr_accessor :custom_label2 + + # Custom label 3 for custom grouping of items in a Shopping campaign. + # Corresponds to the JSON property `customLabel3` + # @return [String] + attr_accessor :custom_label3 + + # Custom label 4 for custom grouping of items in a Shopping campaign. + # Corresponds to the JSON property `customLabel4` + # @return [String] + attr_accessor :custom_label4 + + # Description of the item. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # An identifier for an item for dynamic remarketing campaigns. + # Corresponds to the JSON property `displayAdsId` + # @return [String] + attr_accessor :display_ads_id + + # URL directly to your item's landing page for dynamic remarketing campaigns. + # Corresponds to the JSON property `displayAdsLink` + # @return [String] + attr_accessor :display_ads_link + + # Advertiser-specified recommendations. + # Corresponds to the JSON property `displayAdsSimilarIds` + # @return [Array] + attr_accessor :display_ads_similar_ids + + # Title of an item for dynamic remarketing campaigns. + # Corresponds to the JSON property `displayAdsTitle` + # @return [String] + attr_accessor :display_ads_title + + # Offer margin for dynamic remarketing campaigns. + # Corresponds to the JSON property `displayAdsValue` + # @return [Float] + attr_accessor :display_ads_value + + # The energy efficiency class as defined in EU directive 2010/30/EU. + # Corresponds to the JSON property `energyEfficiencyClass` + # @return [String] + attr_accessor :energy_efficiency_class + + # The list of destinations to exclude for this target (corresponds to unchecked + # check boxes in Merchant Center). + # Corresponds to the JSON property `excludedDestinations` + # @return [Array] + attr_accessor :excluded_destinations + + # Date on which the item should expire, as specified upon insertion, in ISO 8601 + # format. The actual expiration date in Google Shopping is exposed in + # productstatuses as googleExpirationDate and might be earlier if expirationDate + # is too far in the future. + # Corresponds to the JSON property `expirationDate` + # @return [String] + attr_accessor :expiration_date + + # Target gender of the item. + # Corresponds to the JSON property `gender` + # @return [String] + attr_accessor :gender + + # Google's category of the item (see Google product taxonomy). + # Corresponds to the JSON property `googleProductCategory` + # @return [String] + attr_accessor :google_product_category + + # Global Trade Item Number (GTIN) of the item. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # The REST id of the product. Content API methods that operate on products take + # this as their productId parameter. + # The REST id for a product is of the form channel:contentLanguage:targetCountry: + # offerId. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # False when the item does not have unique product identifiers appropriate to + # its category, such as GTIN, MPN, and brand. Required according to the Unique + # Product Identifier Rules for all target countries except for Canada. + # Corresponds to the JSON property `identifierExists` + # @return [Boolean] + attr_accessor :identifier_exists + alias_method :identifier_exists?, :identifier_exists + + # URL of an image of the item. + # Corresponds to the JSON property `imageLink` + # @return [String] + attr_accessor :image_link + + # The list of destinations to include for this target (corresponds to checked + # check boxes in Merchant Center). Default destinations are always included + # unless provided in the excluded_destination field. + # Corresponds to the JSON property `includedDestinations` + # @return [Array] + attr_accessor :included_destinations + + # Number and amount of installments to pay for an item. Brazil only. + # Corresponds to the JSON property `installment` + # @return [Google::Apis::ContentV2_1::Installment] + attr_accessor :installment + + # Whether the item is a merchant-defined bundle. A bundle is a custom grouping + # of different products sold by a merchant for a single price. + # Corresponds to the JSON property `isBundle` + # @return [Boolean] + attr_accessor :is_bundle + alias_method :is_bundle?, :is_bundle + + # Shared identifier for all variants of the same product. + # Corresponds to the JSON property `itemGroupId` + # @return [String] + attr_accessor :item_group_id + + # Identifies what kind of resource this is. Value: the fixed string "content# + # product". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # URL directly linking to your item's page on your website. + # Corresponds to the JSON property `link` + # @return [String] + attr_accessor :link + + # Loyalty points that users receive after purchasing the item. Japan only. + # Corresponds to the JSON property `loyaltyPoints` + # @return [Google::Apis::ContentV2_1::LoyaltyPoints] + attr_accessor :loyalty_points + + # The material of which the item is made. + # Corresponds to the JSON property `material` + # @return [String] + attr_accessor :material + + # The energy efficiency class as defined in EU directive 2010/30/EU. + # Corresponds to the JSON property `maxEnergyEfficiencyClass` + # @return [String] + attr_accessor :max_energy_efficiency_class + + # Maximal product handling time (in business days). + # Corresponds to the JSON property `maxHandlingTime` + # @return [Fixnum] + attr_accessor :max_handling_time + + # The energy efficiency class as defined in EU directive 2010/30/EU. + # Corresponds to the JSON property `minEnergyEfficiencyClass` + # @return [String] + attr_accessor :min_energy_efficiency_class + + # Minimal product handling time (in business days). + # Corresponds to the JSON property `minHandlingTime` + # @return [Fixnum] + attr_accessor :min_handling_time + + # Link to a mobile-optimized version of the landing page. + # Corresponds to the JSON property `mobileLink` + # @return [String] + attr_accessor :mobile_link + + # Manufacturer Part Number (MPN) of the item. + # Corresponds to the JSON property `mpn` + # @return [String] + attr_accessor :mpn + + # The number of identical products in a merchant-defined multipack. + # Corresponds to the JSON property `multipack` + # @return [Fixnum] + attr_accessor :multipack + + # A unique identifier for the item. Leading and trailing whitespaces are + # stripped and multiple whitespaces are replaced by a single whitespace upon + # submission. Only valid unicode characters are accepted. See the products feed + # specification for details. + # Note: Content API methods that operate on products take the REST id of the + # product, not this identifier. + # Corresponds to the JSON property `offerId` + # @return [String] + attr_accessor :offer_id + + # The item's pattern (e.g. polka dots). + # Corresponds to the JSON property `pattern` + # @return [String] + attr_accessor :pattern + + # Price of the item. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # Categories of the item (formatted as in products feed specification). + # Corresponds to the JSON property `productTypes` + # @return [Array] + attr_accessor :product_types + + # The unique ID of a promotion. + # Corresponds to the JSON property `promotionIds` + # @return [Array] + attr_accessor :promotion_ids + + # Advertised sale price of the item. + # Corresponds to the JSON property `salePrice` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :sale_price + + # Date range during which the item is on sale (see products feed specification). + # Corresponds to the JSON property `salePriceEffectiveDate` + # @return [String] + attr_accessor :sale_price_effective_date + + # The quantity of the product that is available for selling on Google. Supported + # only for online products. + # Corresponds to the JSON property `sellOnGoogleQuantity` + # @return [Fixnum] + attr_accessor :sell_on_google_quantity + + # Shipping rules. + # Corresponds to the JSON property `shipping` + # @return [Array] + attr_accessor :shipping + + # Height of the item for shipping. + # Corresponds to the JSON property `shippingHeight` + # @return [Google::Apis::ContentV2_1::ProductShippingDimension] + attr_accessor :shipping_height + + # The shipping label of the product, used to group product in account-level + # shipping rules. + # Corresponds to the JSON property `shippingLabel` + # @return [String] + attr_accessor :shipping_label + + # Length of the item for shipping. + # Corresponds to the JSON property `shippingLength` + # @return [Google::Apis::ContentV2_1::ProductShippingDimension] + attr_accessor :shipping_length + + # Weight of the item for shipping. + # Corresponds to the JSON property `shippingWeight` + # @return [Google::Apis::ContentV2_1::ProductShippingWeight] + attr_accessor :shipping_weight + + # Width of the item for shipping. + # Corresponds to the JSON property `shippingWidth` + # @return [Google::Apis::ContentV2_1::ProductShippingDimension] + attr_accessor :shipping_width + + # System in which the size is specified. Recommended for apparel items. + # Corresponds to the JSON property `sizeSystem` + # @return [String] + attr_accessor :size_system + + # The cut of the item. Recommended for apparel items. + # Corresponds to the JSON property `sizeType` + # @return [String] + attr_accessor :size_type + + # Size of the item. + # Corresponds to the JSON property `sizes` + # @return [Array] + attr_accessor :sizes + + # The source of the offer, i.e., how the offer was created. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + # The CLDR territory code for the item. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # Tax information. + # Corresponds to the JSON property `taxes` + # @return [Array] + attr_accessor :taxes + + # Title of the item. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # The preference of the denominator of the unit price. + # Corresponds to the JSON property `unitPricingBaseMeasure` + # @return [Google::Apis::ContentV2_1::ProductUnitPricingBaseMeasure] + attr_accessor :unit_pricing_base_measure + + # The measure and dimension of an item. + # Corresponds to the JSON property `unitPricingMeasure` + # @return [Google::Apis::ContentV2_1::ProductUnitPricingMeasure] + attr_accessor :unit_pricing_measure + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links) + @ads_grouping = args[:ads_grouping] if args.key?(:ads_grouping) + @ads_labels = args[:ads_labels] if args.key?(:ads_labels) + @ads_redirect = args[:ads_redirect] if args.key?(:ads_redirect) + @adult = args[:adult] if args.key?(:adult) + @age_group = args[:age_group] if args.key?(:age_group) + @availability = args[:availability] if args.key?(:availability) + @availability_date = args[:availability_date] if args.key?(:availability_date) + @brand = args[:brand] if args.key?(:brand) + @channel = args[:channel] if args.key?(:channel) + @color = args[:color] if args.key?(:color) + @condition = args[:condition] if args.key?(:condition) + @content_language = args[:content_language] if args.key?(:content_language) + @cost_of_goods_sold = args[:cost_of_goods_sold] if args.key?(:cost_of_goods_sold) + @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) + @custom_label0 = args[:custom_label0] if args.key?(:custom_label0) + @custom_label1 = args[:custom_label1] if args.key?(:custom_label1) + @custom_label2 = args[:custom_label2] if args.key?(:custom_label2) + @custom_label3 = args[:custom_label3] if args.key?(:custom_label3) + @custom_label4 = args[:custom_label4] if args.key?(:custom_label4) + @description = args[:description] if args.key?(:description) + @display_ads_id = args[:display_ads_id] if args.key?(:display_ads_id) + @display_ads_link = args[:display_ads_link] if args.key?(:display_ads_link) + @display_ads_similar_ids = args[:display_ads_similar_ids] if args.key?(:display_ads_similar_ids) + @display_ads_title = args[:display_ads_title] if args.key?(:display_ads_title) + @display_ads_value = args[:display_ads_value] if args.key?(:display_ads_value) + @energy_efficiency_class = args[:energy_efficiency_class] if args.key?(:energy_efficiency_class) + @excluded_destinations = args[:excluded_destinations] if args.key?(:excluded_destinations) + @expiration_date = args[:expiration_date] if args.key?(:expiration_date) + @gender = args[:gender] if args.key?(:gender) + @google_product_category = args[:google_product_category] if args.key?(:google_product_category) + @gtin = args[:gtin] if args.key?(:gtin) + @id = args[:id] if args.key?(:id) + @identifier_exists = args[:identifier_exists] if args.key?(:identifier_exists) + @image_link = args[:image_link] if args.key?(:image_link) + @included_destinations = args[:included_destinations] if args.key?(:included_destinations) + @installment = args[:installment] if args.key?(:installment) + @is_bundle = args[:is_bundle] if args.key?(:is_bundle) + @item_group_id = args[:item_group_id] if args.key?(:item_group_id) + @kind = args[:kind] if args.key?(:kind) + @link = args[:link] if args.key?(:link) + @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points) + @material = args[:material] if args.key?(:material) + @max_energy_efficiency_class = args[:max_energy_efficiency_class] if args.key?(:max_energy_efficiency_class) + @max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time) + @min_energy_efficiency_class = args[:min_energy_efficiency_class] if args.key?(:min_energy_efficiency_class) + @min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time) + @mobile_link = args[:mobile_link] if args.key?(:mobile_link) + @mpn = args[:mpn] if args.key?(:mpn) + @multipack = args[:multipack] if args.key?(:multipack) + @offer_id = args[:offer_id] if args.key?(:offer_id) + @pattern = args[:pattern] if args.key?(:pattern) + @price = args[:price] if args.key?(:price) + @product_types = args[:product_types] if args.key?(:product_types) + @promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids) + @sale_price = args[:sale_price] if args.key?(:sale_price) + @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date) + @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity) + @shipping = args[:shipping] if args.key?(:shipping) + @shipping_height = args[:shipping_height] if args.key?(:shipping_height) + @shipping_label = args[:shipping_label] if args.key?(:shipping_label) + @shipping_length = args[:shipping_length] if args.key?(:shipping_length) + @shipping_weight = args[:shipping_weight] if args.key?(:shipping_weight) + @shipping_width = args[:shipping_width] if args.key?(:shipping_width) + @size_system = args[:size_system] if args.key?(:size_system) + @size_type = args[:size_type] if args.key?(:size_type) + @sizes = args[:sizes] if args.key?(:sizes) + @source = args[:source] if args.key?(:source) + @target_country = args[:target_country] if args.key?(:target_country) + @taxes = args[:taxes] if args.key?(:taxes) + @title = args[:title] if args.key?(:title) + @unit_pricing_base_measure = args[:unit_pricing_base_measure] if args.key?(:unit_pricing_base_measure) + @unit_pricing_measure = args[:unit_pricing_measure] if args.key?(:unit_pricing_measure) + end + end + + # + class ProductShipping + include Google::Apis::Core::Hashable + + # The CLDR territory code of the country to which an item will ship. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The location where the shipping is applicable, represented by a location group + # name. + # Corresponds to the JSON property `locationGroupName` + # @return [String] + attr_accessor :location_group_name + + # The numeric id of a location that the shipping rate applies to as defined in + # the AdWords API. + # Corresponds to the JSON property `locationId` + # @return [Fixnum] + attr_accessor :location_id + + # The postal code range that the shipping rate applies to, represented by a + # postal code, a postal code prefix followed by a * wildcard, a range between + # two postal codes or two postal code prefixes of equal length. + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # Fixed shipping price, represented as a number. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # The geographic region to which a shipping rate applies. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # A free-form description of the service class or delivery speed. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @location_group_name = args[:location_group_name] if args.key?(:location_group_name) + @location_id = args[:location_id] if args.key?(:location_id) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @price = args[:price] if args.key?(:price) + @region = args[:region] if args.key?(:region) + @service = args[:service] if args.key?(:service) + end + end + + # + class ProductShippingDimension + include Google::Apis::Core::Hashable + + # The unit of value. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The dimension of the product used to calculate the shipping cost of the item. + # Corresponds to the JSON property `value` + # @return [Float] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) + end + end + + # + class ProductShippingWeight + include Google::Apis::Core::Hashable + + # The unit of value. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The weight of the product used to calculate the shipping cost of the item. + # Corresponds to the JSON property `value` + # @return [Float] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) + end + end + + # The status of a product, i.e., information about a product computed + # asynchronously by the data quality analysis. + class ProductStatus + include Google::Apis::Core::Hashable + + # Date on which the item has been created, in ISO 8601 format. + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # The intended destinations for the product. + # Corresponds to the JSON property `destinationStatuses` + # @return [Array] + attr_accessor :destination_statuses + + # Date on which the item expires in Google Shopping, in ISO 8601 format. + # Corresponds to the JSON property `googleExpirationDate` + # @return [String] + attr_accessor :google_expiration_date + + # A list of all issues associated with the product. + # Corresponds to the JSON property `itemLevelIssues` + # @return [Array] + attr_accessor :item_level_issues + + # Identifies what kind of resource this is. Value: the fixed string "content# + # productStatus". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Date on which the item has been last updated, in ISO 8601 format. + # Corresponds to the JSON property `lastUpdateDate` + # @return [String] + attr_accessor :last_update_date + + # The link to the product. + # Corresponds to the JSON property `link` + # @return [String] + attr_accessor :link + + # The id of the product for which status is reported. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The title of the product. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses) + @google_expiration_date = args[:google_expiration_date] if args.key?(:google_expiration_date) + @item_level_issues = args[:item_level_issues] if args.key?(:item_level_issues) + @kind = args[:kind] if args.key?(:kind) + @last_update_date = args[:last_update_date] if args.key?(:last_update_date) + @link = args[:link] if args.key?(:link) + @product_id = args[:product_id] if args.key?(:product_id) + @title = args[:title] if args.key?(:title) + end + end + + # + class ProductStatusDestinationStatus + include Google::Apis::Core::Hashable + + # The name of the destination + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination = args[:destination] if args.key?(:destination) + @status = args[:status] if args.key?(:status) + end + end + + # + class ProductStatusItemLevelIssue + include Google::Apis::Core::Hashable + + # The attribute's name, if the issue is caused by a single attribute. + # Corresponds to the JSON property `attributeName` + # @return [String] + attr_accessor :attribute_name + + # The error code of the issue. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # A short issue description in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The destination the issue applies to. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # A detailed issue description in English. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # The URL of a web page to help with resolving this issue. + # Corresponds to the JSON property `documentation` + # @return [String] + attr_accessor :documentation + + # Whether the issue can be resolved by the merchant. + # Corresponds to the JSON property `resolution` + # @return [String] + attr_accessor :resolution + + # How this issue affects serving of the offer. + # Corresponds to the JSON property `servability` + # @return [String] + attr_accessor :servability + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_name = args[:attribute_name] if args.key?(:attribute_name) + @code = args[:code] if args.key?(:code) + @description = args[:description] if args.key?(:description) + @destination = args[:destination] if args.key?(:destination) + @detail = args[:detail] if args.key?(:detail) + @documentation = args[:documentation] if args.key?(:documentation) + @resolution = args[:resolution] if args.key?(:resolution) + @servability = args[:servability] if args.key?(:servability) + end + end + + # + class ProductTax + include Google::Apis::Core::Hashable + + # The country within which the item is taxed, specified as a CLDR territory code. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The numeric id of a location that the tax rate applies to as defined in the + # AdWords API. + # Corresponds to the JSON property `locationId` + # @return [Fixnum] + attr_accessor :location_id + + # The postal code range that the tax rate applies to, represented by a ZIP code, + # a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP + # code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*. + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + # The percentage of tax rate that applies to the item price. + # Corresponds to the JSON property `rate` + # @return [Float] + attr_accessor :rate + + # The geographic region to which the tax rate applies. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # Set to true if tax is charged on shipping. + # Corresponds to the JSON property `taxShip` + # @return [Boolean] + attr_accessor :tax_ship + alias_method :tax_ship?, :tax_ship + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @location_id = args[:location_id] if args.key?(:location_id) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @rate = args[:rate] if args.key?(:rate) + @region = args[:region] if args.key?(:region) + @tax_ship = args[:tax_ship] if args.key?(:tax_ship) + end + end + + # + class ProductUnitPricingBaseMeasure + include Google::Apis::Core::Hashable + + # The unit of the denominator. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The denominator of the unit price. + # Corresponds to the JSON property `value` + # @return [Fixnum] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) + end + end + + # + class ProductUnitPricingMeasure + include Google::Apis::Core::Hashable + + # The unit of the measure. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The measure of an item. + # Corresponds to the JSON property `value` + # @return [Float] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) + end + end + + # + class ProductsCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A batch entry encoding a single non-batch products request. + class ProductsCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # 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 + + # The ID of the product to get or delete. Only defined if the method is get or + # delete. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @product = args[:product] if args.key?(:product) + @product_id = args[:product_id] if args.key?(:product_id) + end + end + + # + class ProductsCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # productsCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A batch entry encoding a single non-batch products response. + class ProductsCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The ID of the request entry this entry responds to. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + # Identifies what kind of resource this is. Value: the fixed string "content# + # productsCustomBatchResponseEntry". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Product data. 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + @product = args[:product] if args.key?(:product) + end + end + + # + class ProductsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # productsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of products. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class ProductstatusesCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A batch entry encoding a single non-batch productstatuses request. + class ProductstatusesCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # If set, only issues for the specified destinations are returned, otherwise + # only issues for the Shopping destination. + # Corresponds to the JSON property `destinations` + # @return [Array] + attr_accessor :destinations + + # + # Corresponds to the JSON property `includeAttributes` + # @return [Boolean] + attr_accessor :include_attributes + alias_method :include_attributes?, :include_attributes + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # The ID of the product whose status to get. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @destinations = args[:destinations] if args.key?(:destinations) + @include_attributes = args[:include_attributes] if args.key?(:include_attributes) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @product_id = args[:product_id] if args.key?(:product_id) + end + end + + # + class ProductstatusesCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # productstatusesCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A batch entry encoding a single non-batch productstatuses response. + class ProductstatusesCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The ID of the request entry this entry responds to. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + # Identifies what kind of resource this is. Value: the fixed string "content# + # productstatusesCustomBatchResponseEntry". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The status of a product, i.e., information about a product computed + # asynchronously by the data quality analysis. + # Corresponds to the JSON property `productStatus` + # @return [Google::Apis::ContentV2_1::ProductStatus] + attr_accessor :product_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + @product_status = args[:product_status] if args.key?(:product_status) + end + end + + # + class ProductstatusesListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # productstatusesListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of products statuses. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class Promotion + include Google::Apis::Core::Hashable + + # [required] Amount of the promotion. The values here are the promotion applied + # to the unit price pretax and to the total of the tax amounts. + # Corresponds to the JSON property `promotionAmount` + # @return [Google::Apis::ContentV2_1::Amount] + attr_accessor :promotion_amount + + # [required] ID of the promotion. + # Corresponds to the JSON property `promotionId` + # @return [String] + attr_accessor :promotion_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @promotion_amount = args[:promotion_amount] if args.key?(:promotion_amount) + @promotion_id = args[:promotion_id] if args.key?(:promotion_id) + end + end + + # + class RateGroup + include Google::Apis::Core::Hashable + + # A list of shipping labels defining the products to which this rate group + # applies to. This is a disjunction: only one of the labels has to match for the + # rate group to apply. May only be empty for the last rate group of a service. + # Required. + # Corresponds to the JSON property `applicableShippingLabels` + # @return [Array] + attr_accessor :applicable_shipping_labels + + # A list of carrier rates that can be referred to by mainTable or singleValue. + # Corresponds to the JSON property `carrierRates` + # @return [Array] + attr_accessor :carrier_rates + + # A table defining the rate group, when singleValue is not expressive enough. + # Can only be set if singleValue is not set. + # Corresponds to the JSON property `mainTable` + # @return [Google::Apis::ContentV2_1::Table] + attr_accessor :main_table + + # Name of the rate group. Optional. If set has to be unique within shipping + # service. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The single value of a rate group or the value of a rate group table's cell. + # Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, + # subtableName must be set. + # Corresponds to the JSON property `singleValue` + # @return [Google::Apis::ContentV2_1::Value] + attr_accessor :single_value + + # A list of subtables referred to by mainTable. Can only be set if mainTable is + # set. + # Corresponds to the JSON property `subtables` + # @return [Array] + attr_accessor :subtables + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @applicable_shipping_labels = args[:applicable_shipping_labels] if args.key?(:applicable_shipping_labels) + @carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates) + @main_table = args[:main_table] if args.key?(:main_table) + @name = args[:name] if args.key?(:name) + @single_value = args[:single_value] if args.key?(:single_value) + @subtables = args[:subtables] if args.key?(:subtables) + end + end + + # + class RefundReason + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # + # Corresponds to the JSON property `reasonCode` + # @return [String] + attr_accessor :reason_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @reason_code = args[:reason_code] if args.key?(:reason_code) + end + end + + # + class ReturnShipment + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # + # Corresponds to the JSON property `returnMethodType` + # @return [String] + attr_accessor :return_method_type + + # + # Corresponds to the JSON property `shipmentId` + # @return [String] + attr_accessor :shipment_id + + # + # Corresponds to the JSON property `shipmentTrackingInfos` + # @return [Array] + attr_accessor :shipment_tracking_infos + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @return_method_type = args[:return_method_type] if args.key?(:return_method_type) + @shipment_id = args[:shipment_id] if args.key?(:shipment_id) + @shipment_tracking_infos = args[:shipment_tracking_infos] if args.key?(:shipment_tracking_infos) + end + end + + # + class Row + include Google::Apis::Core::Hashable + + # The list of cells that constitute the row. Must have the same length as + # columnHeaders for two-dimensional tables, a length of 1 for one-dimensional + # tables. Required. + # Corresponds to the JSON property `cells` + # @return [Array] + attr_accessor :cells + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cells = args[:cells] if args.key?(:cells) + end + end + + # + class Service + include Google::Apis::Core::Hashable + + # A boolean exposing the active status of the shipping service. Required. + # Corresponds to the JSON property `active` + # @return [Boolean] + attr_accessor :active + alias_method :active?, :active + + # The CLDR code of the currency to which this service applies. Must match that + # of the prices in rate groups. + # Corresponds to the JSON property `currency` + # @return [String] + attr_accessor :currency + + # The CLDR territory code of the country to which the service applies. Required. + # Corresponds to the JSON property `deliveryCountry` + # @return [String] + attr_accessor :delivery_country + + # Time spent in various aspects from order to the delivery of the product. + # Required. + # Corresponds to the JSON property `deliveryTime` + # @return [Google::Apis::ContentV2_1::DeliveryTime] + attr_accessor :delivery_time + + # Eligibility for this service. + # Corresponds to the JSON property `eligibility` + # @return [String] + attr_accessor :eligibility + + # Minimum order value for this service. If set, indicates that customers will + # have to spend at least this amount. All prices within a service must have the + # same currency. + # Corresponds to the JSON property `minimumOrderValue` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :minimum_order_value + + # Free-form name of the service. Must be unique within target account. Required. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Shipping rate group definitions. Only the last one is allowed to have an empty + # applicableShippingLabels, which means "everything else". The other + # applicableShippingLabels must not overlap. + # Corresponds to the JSON property `rateGroups` + # @return [Array] + attr_accessor :rate_groups + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active = args[:active] if args.key?(:active) + @currency = args[:currency] if args.key?(:currency) + @delivery_country = args[:delivery_country] if args.key?(:delivery_country) + @delivery_time = args[:delivery_time] if args.key?(:delivery_time) + @eligibility = args[:eligibility] if args.key?(:eligibility) + @minimum_order_value = args[:minimum_order_value] if args.key?(:minimum_order_value) + @name = args[:name] if args.key?(:name) + @rate_groups = args[:rate_groups] if args.key?(:rate_groups) + end + end + + # + class ShipmentInvoice + include Google::Apis::Core::Hashable + + # [required] Invoice summary. + # Corresponds to the JSON property `invoiceSummary` + # @return [Google::Apis::ContentV2_1::InvoiceSummary] + attr_accessor :invoice_summary + + # [required] Invoice details per line item. + # Corresponds to the JSON property `lineItemInvoices` + # @return [Array] + attr_accessor :line_item_invoices + + # [required] ID of the shipment group. + # Corresponds to the JSON property `shipmentGroupId` + # @return [String] + attr_accessor :shipment_group_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary) + @line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices) + @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id) + end + end + + # + class ShipmentInvoiceLineItemInvoice + include Google::Apis::Core::Hashable + + # ID of the line item. Either lineItemId or productId must be set. + # Corresponds to the JSON property `lineItemId` + # @return [String] + attr_accessor :line_item_id + + # ID of the product. This is the REST ID used in the products service. Either + # lineItemId or productId must be set. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # [required] Unit IDs to define specific units within the line item. + # Corresponds to the JSON property `shipmentUnitIds` + # @return [Array] + attr_accessor :shipment_unit_ids + + # [required] Invoice details for a single unit. + # Corresponds to the JSON property `unitInvoice` + # @return [Google::Apis::ContentV2_1::UnitInvoice] + attr_accessor :unit_invoice + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @product_id = args[:product_id] if args.key?(:product_id) + @shipment_unit_ids = args[:shipment_unit_ids] if args.key?(:shipment_unit_ids) + @unit_invoice = args[:unit_invoice] if args.key?(:unit_invoice) + end + end + + # + class ShipmentTrackingInfo + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `carrier` + # @return [String] + attr_accessor :carrier + + # + # Corresponds to the JSON property `trackingNumber` + # @return [String] + attr_accessor :tracking_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier = args[:carrier] if args.key?(:carrier) + @tracking_number = args[:tracking_number] if args.key?(:tracking_number) + end + end + + # The merchant account's shipping settings. All methods except + # getsupportedcarriers and getsupportedholidays require the admin role. + class ShippingSettings + include Google::Apis::Core::Hashable + + # The ID of the account to which these account shipping settings belong. Ignored + # upon update, always present in get request responses. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # A list of postal code groups that can be referred to in services. Optional. + # Corresponds to the JSON property `postalCodeGroups` + # @return [Array] + attr_accessor :postal_code_groups + + # The target account's list of services. Optional. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups) + @services = args[:services] if args.key?(:services) + end + end + + # + class ShippingsettingsCustomBatchRequest + include Google::Apis::Core::Hashable + + # The request entries to be processed in the batch. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A batch entry encoding a single non-batch shippingsettings request. + class ShippingsettingsCustomBatchRequestEntry + include Google::Apis::Core::Hashable + + # The ID of the account for which to get/update account shipping settings. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # An entry ID, unique within the batch request. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # The ID of the managing account. + # Corresponds to the JSON property `merchantId` + # @return [Fixnum] + attr_accessor :merchant_id + + # + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # The merchant account's shipping settings. All methods except + # getsupportedcarriers and getsupportedholidays require the admin role. + # Corresponds to the JSON property `shippingSettings` + # @return [Google::Apis::ContentV2_1::ShippingSettings] + attr_accessor :shipping_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings) + end + end + + # + class ShippingsettingsCustomBatchResponse + include Google::Apis::Core::Hashable + + # The result of the execution of the batch requests. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # Identifies what kind of resource this is. Value: the fixed string "content# + # shippingsettingsCustomBatchResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A batch entry encoding a single non-batch shipping settings response. + class ShippingsettingsCustomBatchResponseEntry + include Google::Apis::Core::Hashable + + # The ID of the request entry to which this entry responds. + # Corresponds to the JSON property `batchId` + # @return [Fixnum] + attr_accessor :batch_id + + # A list of errors returned by a failed batch entry. + # Corresponds to the JSON property `errors` + # @return [Google::Apis::ContentV2_1::Errors] + attr_accessor :errors + + # Identifies what kind of resource this is. Value: the fixed string "content# + # shippingsettingsCustomBatchResponseEntry". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The merchant account's shipping settings. All methods except + # getsupportedcarriers and getsupportedholidays require the admin role. + # Corresponds to the JSON property `shippingSettings` + # @return [Google::Apis::ContentV2_1::ShippingSettings] + attr_accessor :shipping_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + @shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings) + end + end + + # + class ShippingsettingsGetSupportedCarriersResponse + include Google::Apis::Core::Hashable + + # A list of supported carriers. May be empty. + # Corresponds to the JSON property `carriers` + # @return [Array] + attr_accessor :carriers + + # Identifies what kind of resource this is. Value: the fixed string "content# + # shippingsettingsGetSupportedCarriersResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carriers = args[:carriers] if args.key?(:carriers) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class ShippingsettingsGetSupportedHolidaysResponse + include Google::Apis::Core::Hashable + + # A list of holidays applicable for delivery guarantees. May be empty. + # Corresponds to the JSON property `holidays` + # @return [Array] + attr_accessor :holidays + + # Identifies what kind of resource this is. Value: the fixed string "content# + # shippingsettingsGetSupportedHolidaysResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @holidays = args[:holidays] if args.key?(:holidays) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class ShippingsettingsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # shippingsettingsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The token for the retrieval of the next page of shipping settings. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # + class Table + include Google::Apis::Core::Hashable + + # A non-empty list of row or column headers for a table. Exactly one of prices, + # weights, numItems, postalCodeGroupNames, or locations must be set. + # Corresponds to the JSON property `columnHeaders` + # @return [Google::Apis::ContentV2_1::Headers] + attr_accessor :column_headers + + # Name of the table. Required for subtables, ignored for the main table. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A non-empty list of row or column headers for a table. Exactly one of prices, + # weights, numItems, postalCodeGroupNames, or locations must be set. + # Corresponds to the JSON property `rowHeaders` + # @return [Google::Apis::ContentV2_1::Headers] + attr_accessor :row_headers + + # The list of rows that constitute the table. Must have the same length as + # rowHeaders. Required. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @column_headers = args[:column_headers] if args.key?(:column_headers) + @name = args[:name] if args.key?(:name) + @row_headers = args[:row_headers] if args.key?(:row_headers) + @rows = args[:rows] if args.key?(:rows) + end + end + + # + class TestOrder + include Google::Apis::Core::Hashable + + # The details of the customer who placed the order. + # Corresponds to the JSON property `customer` + # @return [Google::Apis::ContentV2_1::TestOrderCustomer] + attr_accessor :customer + + # Whether the orderinvoices service should support this order. + # Corresponds to the JSON property `enableOrderinvoices` + # @return [Boolean] + attr_accessor :enable_orderinvoices + alias_method :enable_orderinvoices?, :enable_orderinvoices + + # Identifies what kind of resource this is. Value: the fixed string "content# + # testOrder". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Line items that are ordered. At least one line item must be provided. + # Corresponds to the JSON property `lineItems` + # @return [Array] + attr_accessor :line_items + + # Determines if test order must be pulled by merchant or pushed to merchant via + # push integration. + # Corresponds to the JSON property `notificationMode` + # @return [String] + attr_accessor :notification_mode + + # The billing address. + # Corresponds to the JSON property `predefinedBillingAddress` + # @return [String] + attr_accessor :predefined_billing_address + + # Identifier of one of the predefined delivery addresses for the delivery. + # Corresponds to the JSON property `predefinedDeliveryAddress` + # @return [String] + attr_accessor :predefined_delivery_address + + # Promotions associated with the order. + # Corresponds to the JSON property `promotions` + # @return [Array] + attr_accessor :promotions + + # The total cost of shipping for all items. + # Corresponds to the JSON property `shippingCost` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :shipping_cost + + # The tax for the total shipping cost. + # Corresponds to the JSON property `shippingCostTax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :shipping_cost_tax + + # The requested shipping option. + # Corresponds to the JSON property `shippingOption` + # @return [String] + attr_accessor :shipping_option + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @customer = args[:customer] if args.key?(:customer) + @enable_orderinvoices = args[:enable_orderinvoices] if args.key?(:enable_orderinvoices) + @kind = args[:kind] if args.key?(:kind) + @line_items = args[:line_items] if args.key?(:line_items) + @notification_mode = args[:notification_mode] if args.key?(:notification_mode) + @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address) + @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) + @promotions = args[:promotions] if args.key?(:promotions) + @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) + @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax) + @shipping_option = args[:shipping_option] if args.key?(:shipping_option) + end + end + + # + class TestOrderCustomer + include Google::Apis::Core::Hashable + + # Deprecated. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # Full name of the customer. + # Corresponds to the JSON property `fullName` + # @return [String] + attr_accessor :full_name + + # Customer's marketing preferences. + # Corresponds to the JSON property `marketingRightsInfo` + # @return [Google::Apis::ContentV2_1::TestOrderCustomerMarketingRightsInfo] + attr_accessor :marketing_rights_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + @full_name = args[:full_name] if args.key?(:full_name) + @marketing_rights_info = args[:marketing_rights_info] if args.key?(:marketing_rights_info) + end + end + + # + class TestOrderCustomerMarketingRightsInfo + include Google::Apis::Core::Hashable + + # Last know user use selection regards marketing preferences. In certain cases + # selection might not be known, so this field would be empty. + # Corresponds to the JSON property `explicitMarketingPreference` + # @return [String] + attr_accessor :explicit_marketing_preference + + # Timestamp when last time marketing preference was updated. Could be empty, if + # user wasn't offered a selection yet. + # Corresponds to the JSON property `lastUpdatedTimestamp` + # @return [String] + attr_accessor :last_updated_timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference) + @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp) + end + end + + # + class TestOrderLineItem + include Google::Apis::Core::Hashable + + # Product data from the time of the order placement. + # Corresponds to the JSON property `product` + # @return [Google::Apis::ContentV2_1::TestOrderLineItemProduct] + attr_accessor :product + + # Number of items ordered. + # Corresponds to the JSON property `quantityOrdered` + # @return [Fixnum] + attr_accessor :quantity_ordered + + # Details of the return policy for the line item. + # Corresponds to the JSON property `returnInfo` + # @return [Google::Apis::ContentV2_1::OrderLineItemReturnInfo] + attr_accessor :return_info + + # Details of the requested shipping for the line item. + # Corresponds to the JSON property `shippingDetails` + # @return [Google::Apis::ContentV2_1::OrderLineItemShippingDetails] + attr_accessor :shipping_details + + # Unit tax for the line item. + # Corresponds to the JSON property `unitTax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :unit_tax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @product = args[:product] if args.key?(:product) + @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) + @return_info = args[:return_info] if args.key?(:return_info) + @shipping_details = args[:shipping_details] if args.key?(:shipping_details) + @unit_tax = args[:unit_tax] if args.key?(:unit_tax) + end + end + + # + class TestOrderLineItemProduct + include Google::Apis::Core::Hashable + + # Brand of the item. + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # The item's channel. + # Corresponds to the JSON property `channel` + # @return [String] + attr_accessor :channel + + # Condition or state of the item. + # Corresponds to the JSON property `condition` + # @return [String] + attr_accessor :condition + + # The two-letter ISO 639-1 language code for the item. + # Corresponds to the JSON property `contentLanguage` + # @return [String] + attr_accessor :content_language + + # Global Trade Item Number (GTIN) of the item. Optional. + # Corresponds to the JSON property `gtin` + # @return [String] + attr_accessor :gtin + + # URL of an image of the item. + # Corresponds to the JSON property `imageLink` + # @return [String] + attr_accessor :image_link + + # Shared identifier for all variants of the same product. Optional. + # Corresponds to the JSON property `itemGroupId` + # @return [String] + attr_accessor :item_group_id + + # Manufacturer Part Number (MPN) of the item. Optional. + # Corresponds to the JSON property `mpn` + # @return [String] + attr_accessor :mpn + + # An identifier of the item. + # Corresponds to the JSON property `offerId` + # @return [String] + attr_accessor :offer_id + + # The price for the product. + # Corresponds to the JSON property `price` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price + + # The CLDR territory code of the target country of the product. + # Corresponds to the JSON property `targetCountry` + # @return [String] + attr_accessor :target_country + + # The title of the product. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Variant attributes for the item. Optional. + # Corresponds to the JSON property `variantAttributes` + # @return [Array] + attr_accessor :variant_attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand = args[:brand] if args.key?(:brand) + @channel = args[:channel] if args.key?(:channel) + @condition = args[:condition] if args.key?(:condition) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @image_link = args[:image_link] if args.key?(:image_link) + @item_group_id = args[:item_group_id] if args.key?(:item_group_id) + @mpn = args[:mpn] if args.key?(:mpn) + @offer_id = args[:offer_id] if args.key?(:offer_id) + @price = args[:price] if args.key?(:price) + @target_country = args[:target_country] if args.key?(:target_country) + @title = args[:title] if args.key?(:title) + @variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes) + end + end + + # + class UnitInvoice + include Google::Apis::Core::Hashable + + # Additional charges for a unit, e.g. shipping costs. + # Corresponds to the JSON property `additionalCharges` + # @return [Array] + attr_accessor :additional_charges + + # Promotions applied to a unit. + # Corresponds to the JSON property `promotions` + # @return [Array] + attr_accessor :promotions + + # [required] Price of the unit, before applying taxes. + # Corresponds to the JSON property `unitPricePretax` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :unit_price_pretax + + # Tax amounts to apply to the unit price. + # Corresponds to the JSON property `unitPriceTaxes` + # @return [Array] + attr_accessor :unit_price_taxes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_charges = args[:additional_charges] if args.key?(:additional_charges) + @promotions = args[:promotions] if args.key?(:promotions) + @unit_price_pretax = args[:unit_price_pretax] if args.key?(:unit_price_pretax) + @unit_price_taxes = args[:unit_price_taxes] if args.key?(:unit_price_taxes) + end + end + + # + class UnitInvoiceAdditionalCharge + include Google::Apis::Core::Hashable + + # [required] Amount of the additional charge. + # Corresponds to the JSON property `additionalChargeAmount` + # @return [Google::Apis::ContentV2_1::Amount] + attr_accessor :additional_charge_amount + + # Promotions applied to the additional charge. + # Corresponds to the JSON property `additionalChargePromotions` + # @return [Array] + attr_accessor :additional_charge_promotions + + # [required] Type of the additional charge. + # 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) + @additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount) + @additional_charge_promotions = args[:additional_charge_promotions] if args.key?(:additional_charge_promotions) + @type = args[:type] if args.key?(:type) + end + end + + # + class UnitInvoiceTaxLine + include Google::Apis::Core::Hashable + + # [required] Tax amount for the tax type. + # Corresponds to the JSON property `taxAmount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :tax_amount + + # Optional name of the tax type. This should only be provided if taxType is + # otherFeeTax. + # Corresponds to the JSON property `taxName` + # @return [String] + attr_accessor :tax_name + + # [required] Type of the tax. + # Corresponds to the JSON property `taxType` + # @return [String] + attr_accessor :tax_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tax_amount = args[:tax_amount] if args.key?(:tax_amount) + @tax_name = args[:tax_name] if args.key?(:tax_name) + @tax_type = args[:tax_type] if args.key?(:tax_type) + end + end + + # The single value of a rate group or the value of a rate group table's cell. + # Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, + # subtableName must be set. + class Value + include Google::Apis::Core::Hashable + + # The name of a carrier rate referring to a carrier rate defined in the same + # rate group. Can only be set if all other fields are not set. + # Corresponds to the JSON property `carrierRateName` + # @return [String] + attr_accessor :carrier_rate_name + + # A flat rate. Can only be set if all other fields are not set. + # Corresponds to the JSON property `flatRate` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :flat_rate + + # If true, then the product can't ship. Must be true when set, can only be set + # if all other fields are not set. + # Corresponds to the JSON property `noShipping` + # @return [Boolean] + attr_accessor :no_shipping + alias_method :no_shipping?, :no_shipping + + # A percentage of the price represented as a number in decimal notation (e.g., " + # 5.4"). Can only be set if all other fields are not set. + # Corresponds to the JSON property `pricePercentage` + # @return [String] + attr_accessor :price_percentage + + # The name of a subtable. Can only be set in table cells (i.e., not for single + # values), and only if all other fields are not set. + # Corresponds to the JSON property `subtableName` + # @return [String] + attr_accessor :subtable_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier_rate_name = args[:carrier_rate_name] if args.key?(:carrier_rate_name) + @flat_rate = args[:flat_rate] if args.key?(:flat_rate) + @no_shipping = args[:no_shipping] if args.key?(:no_shipping) + @price_percentage = args[:price_percentage] if args.key?(:price_percentage) + @subtable_name = args[:subtable_name] if args.key?(:subtable_name) + end + end + + # + class Weight + include Google::Apis::Core::Hashable + + # The weight unit. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + # The weight represented as a number. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) + end + end + end + end +end diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb new file mode 100644 index 000000000..d52f6d42e --- /dev/null +++ b/generated/google/apis/content_v2_1/representations.rb @@ -0,0 +1,3967 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ContentV2_1 + + class Account + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountAdsLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountBusinessInformation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountCustomerService + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountGoogleMyBusinessLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountIdentifier + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountStatusAccountLevelIssue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountStatusItemLevelIssue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountStatusProducts + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountStatusStatistics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountTax + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountTaxTaxRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountUser + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountYouTubeChannelLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsAuthInfoResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsClaimWebsiteResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsCustomBatchRequestEntryLinkRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsLinkRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsLinkResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountstatusesCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountstatusesCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountstatusesCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountstatusesCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountstatusesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccounttaxCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccounttaxCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccounttaxCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccounttaxCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccounttaxListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Amount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CarrierRate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CarriersCarrier + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CustomAttribute + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CustomerReturnReason + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CutoffTime + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Datafeed + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedFetchSchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedFormat + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedStatusError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedStatusExample + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedTarget + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedsCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedsCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedsCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedsCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedsFetchNowResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedstatusesCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedstatusesCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedstatusesCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedstatusesCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatafeedstatusesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeliveryTime + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Error + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Errors + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GmbAccounts + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GmbAccountsGmbAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Headers + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HolidayCutoff + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class HolidaysHoliday + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Installment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InvoiceSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InvoiceSummaryAdditionalChargeSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiaAboutPageSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiaCountrySettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiaInventorySettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiaOnDisplayToOrderSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiaPosDataProvider + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiaSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsGetAccessibleGmbAccountsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsListPosDataProvidersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsRequestGmbAccessResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsRequestInventoryVerificationResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsSetInventoryVerificationContactResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LiasettingsSetPosDataProviderResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LocationIdSet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LoyaltyPoints + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MerchantOrderReturn + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MerchantOrderReturnItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Order + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderCancellation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderCustomer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderCustomerMarketingRightsInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderDeliveryDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderLineItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderLineItemProduct + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderLineItemProductFee + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderLineItemProductVariantAttribute + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderLineItemReturnInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderLineItemShippingDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderLineItemShippingDetailsMethod + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderMerchantProvidedAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderPromotion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderPromotionItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderRefund + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderReportDisbursement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderReportTransaction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderReturn + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderShipment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderShipmentLineItemShipment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderinvoicesCreateChargeInvoiceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderinvoicesCreateChargeInvoiceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderinvoicesCreateRefundInvoiceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderinvoicesCreateRefundInvoiceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderpaymentsNotifyAuthApprovedRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderpaymentsNotifyAuthApprovedResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderpaymentsNotifyAuthDeclinedRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderpaymentsNotifyAuthDeclinedResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderpaymentsNotifyChargeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderpaymentsNotifyChargeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderpaymentsNotifyRefundRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderpaymentsNotifyRefundResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderreportsListDisbursementsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderreportsListTransactionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrderreturnsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersAcknowledgeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersAcknowledgeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersAdvanceTestOrderResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCancelLineItemRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCancelLineItemResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCancelRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCancelResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCancelTestOrderByCustomerRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCancelTestOrderByCustomerResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCreateTestOrderRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCreateTestOrderResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCreateTestReturnRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCreateTestReturnResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCustomBatchRequestEntryCreateTestReturnReturnItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersGetByMerchantOrderIdResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersGetTestOrderTemplateResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersInStoreRefundLineItemRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersInStoreRefundLineItemResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersRejectReturnLineItemRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersRejectReturnLineItemResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersReturnRefundLineItemRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersReturnRefundLineItemResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersSetLineItemMetadataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersSetLineItemMetadataResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersShipLineItemsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersShipLineItemsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersUpdateLineItemShippingDetailsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersUpdateLineItemShippingDetailsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersUpdateMerchantOrderIdRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersUpdateMerchantOrderIdResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersUpdateShipmentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OrdersUpdateShipmentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosDataProviders + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosDataProvidersPosDataProvider + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosInventory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosInventoryRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosInventoryResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosSale + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosSaleRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosSaleResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosStore + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PostalCodeGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PostalCodeRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Price + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductShipping + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductShippingDimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductShippingWeight + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductStatusDestinationStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductStatusItemLevelIssue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductTax + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductUnitPricingBaseMeasure + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductUnitPricingMeasure + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductsCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductsCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductsCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductsCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductstatusesCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductstatusesCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductstatusesCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductstatusesCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ProductstatusesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Promotion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RateGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RefundReason + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReturnShipment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Row + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Service + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShipmentInvoice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShipmentInvoiceLineItemInvoice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShipmentTrackingInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShippingSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShippingsettingsCustomBatchRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShippingsettingsCustomBatchRequestEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShippingsettingsCustomBatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShippingsettingsCustomBatchResponseEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShippingsettingsGetSupportedCarriersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShippingsettingsGetSupportedHolidaysResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShippingsettingsListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Table + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestOrder + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestOrderCustomer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestOrderCustomerMarketingRightsInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestOrderLineItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestOrderLineItemProduct + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UnitInvoice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UnitInvoiceAdditionalCharge + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UnitInvoiceTaxLine + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Value + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Weight + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Account + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ads_links, as: 'adsLinks', class: Google::Apis::ContentV2_1::AccountAdsLink, decorator: Google::Apis::ContentV2_1::AccountAdsLink::Representation + + property :adult_content, as: 'adultContent' + property :business_information, as: 'businessInformation', class: Google::Apis::ContentV2_1::AccountBusinessInformation, decorator: Google::Apis::ContentV2_1::AccountBusinessInformation::Representation + + property :google_my_business_link, as: 'googleMyBusinessLink', class: Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink, decorator: Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink::Representation + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :seller_id, as: 'sellerId' + collection :users, as: 'users', class: Google::Apis::ContentV2_1::AccountUser, decorator: Google::Apis::ContentV2_1::AccountUser::Representation + + property :website_url, as: 'websiteUrl' + collection :youtube_channel_links, as: 'youtubeChannelLinks', class: Google::Apis::ContentV2_1::AccountYouTubeChannelLink, decorator: Google::Apis::ContentV2_1::AccountYouTubeChannelLink::Representation + + end + end + + class AccountAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :locality, as: 'locality' + property :postal_code, as: 'postalCode' + property :region, as: 'region' + property :street_address, as: 'streetAddress' + end + end + + class AccountAdsLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ads_id, :numeric_string => true, as: 'adsId' + property :status, as: 'status' + end + end + + class AccountBusinessInformation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address', class: Google::Apis::ContentV2_1::AccountAddress, decorator: Google::Apis::ContentV2_1::AccountAddress::Representation + + property :customer_service, as: 'customerService', class: Google::Apis::ContentV2_1::AccountCustomerService, decorator: Google::Apis::ContentV2_1::AccountCustomerService::Representation + + property :phone_number, as: 'phoneNumber' + end + end + + class AccountCustomerService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :phone_number, as: 'phoneNumber' + property :url, as: 'url' + end + end + + class AccountGoogleMyBusinessLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gmb_email, as: 'gmbEmail' + property :status, as: 'status' + end + end + + class AccountIdentifier + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :aggregator_id, :numeric_string => true, as: 'aggregatorId' + property :merchant_id, :numeric_string => true, as: 'merchantId' + end + end + + class AccountStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + collection :account_level_issues, as: 'accountLevelIssues', class: Google::Apis::ContentV2_1::AccountStatusAccountLevelIssue, decorator: Google::Apis::ContentV2_1::AccountStatusAccountLevelIssue::Representation + + property :kind, as: 'kind' + collection :products, as: 'products', class: Google::Apis::ContentV2_1::AccountStatusProducts, decorator: Google::Apis::ContentV2_1::AccountStatusProducts::Representation + + property :website_claimed, as: 'websiteClaimed' + end + end + + class AccountStatusAccountLevelIssue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :destination, as: 'destination' + property :detail, as: 'detail' + property :documentation, as: 'documentation' + property :id, as: 'id' + property :severity, as: 'severity' + property :title, as: 'title' + end + end + + class AccountStatusItemLevelIssue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_name, as: 'attributeName' + property :code, as: 'code' + property :description, as: 'description' + property :detail, as: 'detail' + property :documentation, as: 'documentation' + property :num_items, :numeric_string => true, as: 'numItems' + property :resolution, as: 'resolution' + property :servability, as: 'servability' + end + end + + class AccountStatusProducts + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel, as: 'channel' + property :country, as: 'country' + property :destination, as: 'destination' + collection :item_level_issues, as: 'itemLevelIssues', class: Google::Apis::ContentV2_1::AccountStatusItemLevelIssue, decorator: Google::Apis::ContentV2_1::AccountStatusItemLevelIssue::Representation + + property :statistics, as: 'statistics', class: Google::Apis::ContentV2_1::AccountStatusStatistics, decorator: Google::Apis::ContentV2_1::AccountStatusStatistics::Representation + + end + end + + class AccountStatusStatistics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active, :numeric_string => true, as: 'active' + property :disapproved, :numeric_string => true, as: 'disapproved' + property :expiring, :numeric_string => true, as: 'expiring' + property :pending, :numeric_string => true, as: 'pending' + end + end + + class AccountTax + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :kind, as: 'kind' + collection :rules, as: 'rules', class: Google::Apis::ContentV2_1::AccountTaxTaxRule, decorator: Google::Apis::ContentV2_1::AccountTaxTaxRule::Representation + + end + end + + class AccountTaxTaxRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :location_id, :numeric_string => true, as: 'locationId' + property :rate_percent, as: 'ratePercent' + property :shipping_taxed, as: 'shippingTaxed' + property :use_global_rate, as: 'useGlobalRate' + end + end + + class AccountUser + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :admin, as: 'admin' + property :email_address, as: 'emailAddress' + end + end + + class AccountYouTubeChannelLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + property :status, as: 'status' + end + end + + class AccountsAuthInfoResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_identifiers, as: 'accountIdentifiers', class: Google::Apis::ContentV2_1::AccountIdentifier, decorator: Google::Apis::ContentV2_1::AccountIdentifier::Representation + + property :kind, as: 'kind' + end + end + + class AccountsClaimWebsiteResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class AccountsCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::AccountsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::AccountsCustomBatchRequestEntry::Representation + + end + end + + class AccountsCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account', class: Google::Apis::ContentV2_1::Account, decorator: Google::Apis::ContentV2_1::Account::Representation + + property :account_id, :numeric_string => true, as: 'accountId' + property :batch_id, as: 'batchId' + property :force, as: 'force' + property :link_request, as: 'linkRequest', class: Google::Apis::ContentV2_1::AccountsCustomBatchRequestEntryLinkRequest, decorator: Google::Apis::ContentV2_1::AccountsCustomBatchRequestEntryLinkRequest::Representation + + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + property :overwrite, as: 'overwrite' + end + end + + class AccountsCustomBatchRequestEntryLinkRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + property :link_type, as: 'linkType' + property :linked_account_id, as: 'linkedAccountId' + end + end + + class AccountsCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::AccountsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::AccountsCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class AccountsCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account', class: Google::Apis::ContentV2_1::Account, decorator: Google::Apis::ContentV2_1::Account::Representation + + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + property :kind, as: 'kind' + end + end + + class AccountsLinkRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + property :link_type, as: 'linkType' + property :linked_account_id, as: 'linkedAccountId' + end + end + + class AccountsLinkResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class AccountsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::Account, decorator: Google::Apis::ContentV2_1::Account::Representation + + end + end + + class AccountstatusesCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequestEntry::Representation + + end + end + + class AccountstatusesCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :batch_id, as: 'batchId' + collection :destinations, as: 'destinations' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + end + end + + class AccountstatusesCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class AccountstatusesCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_status, as: 'accountStatus', class: Google::Apis::ContentV2_1::AccountStatus, decorator: Google::Apis::ContentV2_1::AccountStatus::Representation + + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + end + end + + class AccountstatusesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::AccountStatus, decorator: Google::Apis::ContentV2_1::AccountStatus::Representation + + end + end + + class AccounttaxCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::AccounttaxCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::AccounttaxCustomBatchRequestEntry::Representation + + end + end + + class AccounttaxCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :account_tax, as: 'accountTax', class: Google::Apis::ContentV2_1::AccountTax, decorator: Google::Apis::ContentV2_1::AccountTax::Representation + + property :batch_id, as: 'batchId' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + end + end + + class AccounttaxCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::AccounttaxCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::AccounttaxCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class AccounttaxCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_tax, as: 'accountTax', class: Google::Apis::ContentV2_1::AccountTax, decorator: Google::Apis::ContentV2_1::AccountTax::Representation + + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + property :kind, as: 'kind' + end + end + + class AccounttaxListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::AccountTax, decorator: Google::Apis::ContentV2_1::AccountTax::Representation + + end + end + + class Amount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :pretax, as: 'pretax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :tax, as: 'tax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + end + end + + class CarrierRate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier_name, as: 'carrierName' + property :carrier_service, as: 'carrierService' + property :flat_adjustment, as: 'flatAdjustment', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :name, as: 'name' + property :origin_postal_code, as: 'originPostalCode' + property :percentage_adjustment, as: 'percentageAdjustment' + end + end + + class CarriersCarrier + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :name, as: 'name' + collection :services, as: 'services' + end + end + + class CustomAttribute + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :group_values, as: 'groupValues', class: Google::Apis::ContentV2_1::CustomAttribute, decorator: Google::Apis::ContentV2_1::CustomAttribute::Representation + + property :name, as: 'name' + property :value, as: 'value' + end + end + + class CustomerReturnReason + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :reason_code, as: 'reasonCode' + end + end + + class CutoffTime + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hour, as: 'hour' + property :minute, as: 'minute' + property :timezone, as: 'timezone' + end + end + + class Datafeed + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_language, as: 'attributeLanguage' + property :content_type, as: 'contentType' + property :fetch_schedule, as: 'fetchSchedule', class: Google::Apis::ContentV2_1::DatafeedFetchSchedule, decorator: Google::Apis::ContentV2_1::DatafeedFetchSchedule::Representation + + property :file_name, as: 'fileName' + property :format, as: 'format', class: Google::Apis::ContentV2_1::DatafeedFormat, decorator: Google::Apis::ContentV2_1::DatafeedFormat::Representation + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + collection :targets, as: 'targets', class: Google::Apis::ContentV2_1::DatafeedTarget, decorator: Google::Apis::ContentV2_1::DatafeedTarget::Representation + + end + end + + class DatafeedFetchSchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day_of_month, as: 'dayOfMonth' + property :fetch_url, as: 'fetchUrl' + property :hour, as: 'hour' + property :minute_of_hour, as: 'minuteOfHour' + property :password, as: 'password' + property :paused, as: 'paused' + property :time_zone, as: 'timeZone' + property :username, as: 'username' + property :weekday, as: 'weekday' + end + end + + class DatafeedFormat + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :column_delimiter, as: 'columnDelimiter' + property :file_encoding, as: 'fileEncoding' + property :quoting_mode, as: 'quotingMode' + end + end + + class DatafeedStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :datafeed_id, :numeric_string => true, as: 'datafeedId' + collection :errors, as: 'errors', class: Google::Apis::ContentV2_1::DatafeedStatusError, decorator: Google::Apis::ContentV2_1::DatafeedStatusError::Representation + + property :items_total, :numeric_string => true, as: 'itemsTotal' + property :items_valid, :numeric_string => true, as: 'itemsValid' + property :kind, as: 'kind' + property :language, as: 'language' + property :last_upload_date, as: 'lastUploadDate' + property :processing_status, as: 'processingStatus' + collection :warnings, as: 'warnings', class: Google::Apis::ContentV2_1::DatafeedStatusError, decorator: Google::Apis::ContentV2_1::DatafeedStatusError::Representation + + end + end + + class DatafeedStatusError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :count, :numeric_string => true, as: 'count' + collection :examples, as: 'examples', class: Google::Apis::ContentV2_1::DatafeedStatusExample, decorator: Google::Apis::ContentV2_1::DatafeedStatusExample::Representation + + property :message, as: 'message' + end + end + + class DatafeedStatusExample + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :item_id, as: 'itemId' + property :line_number, :numeric_string => true, as: 'lineNumber' + property :value, as: 'value' + end + end + + class DatafeedTarget + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + collection :excluded_destinations, as: 'excludedDestinations' + collection :included_destinations, as: 'includedDestinations' + property :language, as: 'language' + end + end + + class DatafeedsCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::DatafeedsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::DatafeedsCustomBatchRequestEntry::Representation + + end + end + + class DatafeedsCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :datafeed, as: 'datafeed', class: Google::Apis::ContentV2_1::Datafeed, decorator: Google::Apis::ContentV2_1::Datafeed::Representation + + property :datafeed_id, :numeric_string => true, as: 'datafeedId' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + end + end + + class DatafeedsCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::DatafeedsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::DatafeedsCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class DatafeedsCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :datafeed, as: 'datafeed', class: Google::Apis::ContentV2_1::Datafeed, decorator: Google::Apis::ContentV2_1::Datafeed::Representation + + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + end + end + + class DatafeedsFetchNowResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class DatafeedsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::Datafeed, decorator: Google::Apis::ContentV2_1::Datafeed::Representation + + end + end + + class DatafeedstatusesCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequestEntry::Representation + + end + end + + class DatafeedstatusesCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :country, as: 'country' + property :datafeed_id, :numeric_string => true, as: 'datafeedId' + property :language, as: 'language' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + end + end + + class DatafeedstatusesCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class DatafeedstatusesCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :datafeed_status, as: 'datafeedStatus', class: Google::Apis::ContentV2_1::DatafeedStatus, decorator: Google::Apis::ContentV2_1::DatafeedStatus::Representation + + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + end + end + + class DatafeedstatusesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::DatafeedStatus, decorator: Google::Apis::ContentV2_1::DatafeedStatus::Representation + + end + end + + class DeliveryTime + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cutoff_time, as: 'cutoffTime', class: Google::Apis::ContentV2_1::CutoffTime, decorator: Google::Apis::ContentV2_1::CutoffTime::Representation + + collection :holiday_cutoffs, as: 'holidayCutoffs', class: Google::Apis::ContentV2_1::HolidayCutoff, decorator: Google::Apis::ContentV2_1::HolidayCutoff::Representation + + property :max_handling_time_in_days, as: 'maxHandlingTimeInDays' + property :max_transit_time_in_days, as: 'maxTransitTimeInDays' + property :min_handling_time_in_days, as: 'minHandlingTimeInDays' + property :min_transit_time_in_days, as: 'minTransitTimeInDays' + end + end + + class Error + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :domain, as: 'domain' + property :message, as: 'message' + property :reason, as: 'reason' + end + end + + class Errors + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :errors, as: 'errors', class: Google::Apis::ContentV2_1::Error, decorator: Google::Apis::ContentV2_1::Error::Representation + + property :message, as: 'message' + end + end + + class GmbAccounts + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + collection :gmb_accounts, as: 'gmbAccounts', class: Google::Apis::ContentV2_1::GmbAccountsGmbAccount, decorator: Google::Apis::ContentV2_1::GmbAccountsGmbAccount::Representation + + end + end + + class GmbAccountsGmbAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :listing_count, :numeric_string => true, as: 'listingCount' + property :name, as: 'name' + property :type, as: 'type' + end + end + + class Headers + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::ContentV2_1::LocationIdSet, decorator: Google::Apis::ContentV2_1::LocationIdSet::Representation + + collection :number_of_items, as: 'numberOfItems' + collection :postal_code_group_names, as: 'postalCodeGroupNames' + collection :prices, as: 'prices', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + collection :weights, as: 'weights', class: Google::Apis::ContentV2_1::Weight, decorator: Google::Apis::ContentV2_1::Weight::Representation + + end + end + + class HolidayCutoff + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deadline_date, as: 'deadlineDate' + property :deadline_hour, as: 'deadlineHour' + property :deadline_timezone, as: 'deadlineTimezone' + property :holiday_id, as: 'holidayId' + property :visible_from_date, as: 'visibleFromDate' + end + end + + class HolidaysHoliday + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_code, as: 'countryCode' + property :date, as: 'date' + property :delivery_guarantee_date, as: 'deliveryGuaranteeDate' + property :delivery_guarantee_hour, :numeric_string => true, as: 'deliveryGuaranteeHour' + property :id, as: 'id' + property :type, as: 'type' + end + end + + class Installment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :months, :numeric_string => true, as: 'months' + end + end + + class InvoiceSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :additional_charge_summaries, as: 'additionalChargeSummaries', class: Google::Apis::ContentV2_1::InvoiceSummaryAdditionalChargeSummary, decorator: Google::Apis::ContentV2_1::InvoiceSummaryAdditionalChargeSummary::Representation + + property :customer_balance, as: 'customerBalance', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation + + property :google_balance, as: 'googleBalance', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation + + property :merchant_balance, as: 'merchantBalance', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation + + property :product_total, as: 'productTotal', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation + + collection :promotion_summaries, as: 'promotionSummaries', class: Google::Apis::ContentV2_1::Promotion, decorator: Google::Apis::ContentV2_1::Promotion::Representation + + end + end + + class InvoiceSummaryAdditionalChargeSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :total_amount, as: 'totalAmount', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation + + property :type, as: 'type' + end + end + + class LiaAboutPageSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status' + property :url, as: 'url' + end + end + + class LiaCountrySettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :about, as: 'about', class: Google::Apis::ContentV2_1::LiaAboutPageSettings, decorator: Google::Apis::ContentV2_1::LiaAboutPageSettings::Representation + + property :country, as: 'country' + property :hosted_local_storefront_active, as: 'hostedLocalStorefrontActive' + property :inventory, as: 'inventory', class: Google::Apis::ContentV2_1::LiaInventorySettings, decorator: Google::Apis::ContentV2_1::LiaInventorySettings::Representation + + property :on_display_to_order, as: 'onDisplayToOrder', class: Google::Apis::ContentV2_1::LiaOnDisplayToOrderSettings, decorator: Google::Apis::ContentV2_1::LiaOnDisplayToOrderSettings::Representation + + property :pos_data_provider, as: 'posDataProvider', class: Google::Apis::ContentV2_1::LiaPosDataProvider, decorator: Google::Apis::ContentV2_1::LiaPosDataProvider::Representation + + property :store_pickup_active, as: 'storePickupActive' + end + end + + class LiaInventorySettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :inventory_verification_contact_email, as: 'inventoryVerificationContactEmail' + property :inventory_verification_contact_name, as: 'inventoryVerificationContactName' + property :inventory_verification_contact_status, as: 'inventoryVerificationContactStatus' + property :status, as: 'status' + end + end + + class LiaOnDisplayToOrderSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :shipping_cost_policy_url, as: 'shippingCostPolicyUrl' + property :status, as: 'status' + end + end + + class LiaPosDataProvider + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :pos_data_provider_id, :numeric_string => true, as: 'posDataProviderId' + property :pos_external_account_id, as: 'posExternalAccountId' + end + end + + class LiaSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + collection :country_settings, as: 'countrySettings', class: Google::Apis::ContentV2_1::LiaCountrySettings, decorator: Google::Apis::ContentV2_1::LiaCountrySettings::Representation + + property :kind, as: 'kind' + end + end + + class LiasettingsCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::LiasettingsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::LiasettingsCustomBatchRequestEntry::Representation + + end + end + + class LiasettingsCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :batch_id, as: 'batchId' + property :contact_email, as: 'contactEmail' + property :contact_name, as: 'contactName' + property :country, as: 'country' + property :gmb_email, as: 'gmbEmail' + property :lia_settings, as: 'liaSettings', class: Google::Apis::ContentV2_1::LiaSettings, decorator: Google::Apis::ContentV2_1::LiaSettings::Representation + + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + property :pos_data_provider_id, :numeric_string => true, as: 'posDataProviderId' + property :pos_external_account_id, as: 'posExternalAccountId' + end + end + + class LiasettingsCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::LiasettingsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::LiasettingsCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class LiasettingsCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + property :gmb_accounts, as: 'gmbAccounts', class: Google::Apis::ContentV2_1::GmbAccounts, decorator: Google::Apis::ContentV2_1::GmbAccounts::Representation + + property :kind, as: 'kind' + property :lia_settings, as: 'liaSettings', class: Google::Apis::ContentV2_1::LiaSettings, decorator: Google::Apis::ContentV2_1::LiaSettings::Representation + + collection :pos_data_providers, as: 'posDataProviders', class: Google::Apis::ContentV2_1::PosDataProviders, decorator: Google::Apis::ContentV2_1::PosDataProviders::Representation + + end + end + + class LiasettingsGetAccessibleGmbAccountsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + collection :gmb_accounts, as: 'gmbAccounts', class: Google::Apis::ContentV2_1::GmbAccountsGmbAccount, decorator: Google::Apis::ContentV2_1::GmbAccountsGmbAccount::Representation + + property :kind, as: 'kind' + end + end + + class LiasettingsListPosDataProvidersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :pos_data_providers, as: 'posDataProviders', class: Google::Apis::ContentV2_1::PosDataProviders, decorator: Google::Apis::ContentV2_1::PosDataProviders::Representation + + end + end + + class LiasettingsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::LiaSettings, decorator: Google::Apis::ContentV2_1::LiaSettings::Representation + + end + end + + class LiasettingsRequestGmbAccessResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class LiasettingsRequestInventoryVerificationResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class LiasettingsSetInventoryVerificationContactResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class LiasettingsSetPosDataProviderResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class LocationIdSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :location_ids, as: 'locationIds' + end + end + + class LoyaltyPoints + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :points_value, :numeric_string => true, as: 'pointsValue' + property :ratio, as: 'ratio' + end + end + + class MerchantOrderReturn + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_date, as: 'creationDate' + property :merchant_order_id, as: 'merchantOrderId' + property :order_id, as: 'orderId' + property :order_return_id, as: 'orderReturnId' + collection :return_items, as: 'returnItems', class: Google::Apis::ContentV2_1::MerchantOrderReturnItem, decorator: Google::Apis::ContentV2_1::MerchantOrderReturnItem::Representation + + collection :return_shipments, as: 'returnShipments', class: Google::Apis::ContentV2_1::ReturnShipment, decorator: Google::Apis::ContentV2_1::ReturnShipment::Representation + + end + end + + class MerchantOrderReturnItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :customer_return_reason, as: 'customerReturnReason', class: Google::Apis::ContentV2_1::CustomerReturnReason, decorator: Google::Apis::ContentV2_1::CustomerReturnReason::Representation + + property :item_id, as: 'itemId' + property :merchant_return_reason, as: 'merchantReturnReason', class: Google::Apis::ContentV2_1::RefundReason, decorator: Google::Apis::ContentV2_1::RefundReason::Representation + + property :product, as: 'product', class: Google::Apis::ContentV2_1::OrderLineItemProduct, decorator: Google::Apis::ContentV2_1::OrderLineItemProduct::Representation + + collection :return_shipment_ids, as: 'returnShipmentIds' + property :state, as: 'state' + end + end + + class Order + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :acknowledged, as: 'acknowledged' + property :billing_address, as: 'billingAddress', class: Google::Apis::ContentV2_1::OrderAddress, decorator: Google::Apis::ContentV2_1::OrderAddress::Representation + + property :channel_type, as: 'channelType' + property :customer, as: 'customer', class: Google::Apis::ContentV2_1::OrderCustomer, decorator: Google::Apis::ContentV2_1::OrderCustomer::Representation + + property :delivery_details, as: 'deliveryDetails', class: Google::Apis::ContentV2_1::OrderDeliveryDetails, decorator: Google::Apis::ContentV2_1::OrderDeliveryDetails::Representation + + property :id, as: 'id' + property :kind, as: 'kind' + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::OrderLineItem, decorator: Google::Apis::ContentV2_1::OrderLineItem::Representation + + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :merchant_order_id, as: 'merchantOrderId' + property :net_amount, as: 'netAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :payment_status, as: 'paymentStatus' + property :placed_date, as: 'placedDate' + collection :promotions, as: 'promotions', class: Google::Apis::ContentV2_1::OrderPromotion, decorator: Google::Apis::ContentV2_1::OrderPromotion::Representation + + collection :refunds, as: 'refunds', class: Google::Apis::ContentV2_1::OrderRefund, decorator: Google::Apis::ContentV2_1::OrderRefund::Representation + + collection :shipments, as: 'shipments', class: Google::Apis::ContentV2_1::OrderShipment, decorator: Google::Apis::ContentV2_1::OrderShipment::Representation + + property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :shipping_option, as: 'shippingOption' + property :status, as: 'status' + end + end + + class OrderAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + collection :full_address, as: 'fullAddress' + property :is_post_office_box, as: 'isPostOfficeBox' + property :locality, as: 'locality' + property :postal_code, as: 'postalCode' + property :recipient_name, as: 'recipientName' + property :region, as: 'region' + collection :street_address, as: 'streetAddress' + end + end + + class OrderCancellation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :actor, as: 'actor' + property :creation_date, as: 'creationDate' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrderCustomer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :full_name, as: 'fullName' + property :marketing_rights_info, as: 'marketingRightsInfo', class: Google::Apis::ContentV2_1::OrderCustomerMarketingRightsInfo, decorator: Google::Apis::ContentV2_1::OrderCustomerMarketingRightsInfo::Representation + + end + end + + class OrderCustomerMarketingRightsInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :explicit_marketing_preference, as: 'explicitMarketingPreference' + property :last_updated_timestamp, as: 'lastUpdatedTimestamp' + property :marketing_email_address, as: 'marketingEmailAddress' + end + end + + class OrderDeliveryDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :address, as: 'address', class: Google::Apis::ContentV2_1::OrderAddress, decorator: Google::Apis::ContentV2_1::OrderAddress::Representation + + property :phone_number, as: 'phoneNumber' + end + end + + class OrderLineItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :annotations, as: 'annotations', class: Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation::Representation + + collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2_1::OrderCancellation, decorator: Google::Apis::ContentV2_1::OrderCancellation::Representation + + property :id, as: 'id' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :product, as: 'product', class: Google::Apis::ContentV2_1::OrderLineItemProduct, decorator: Google::Apis::ContentV2_1::OrderLineItemProduct::Representation + + property :quantity_canceled, as: 'quantityCanceled' + property :quantity_delivered, as: 'quantityDelivered' + property :quantity_ordered, as: 'quantityOrdered' + property :quantity_pending, as: 'quantityPending' + property :quantity_returned, as: 'quantityReturned' + property :quantity_shipped, as: 'quantityShipped' + property :return_info, as: 'returnInfo', class: Google::Apis::ContentV2_1::OrderLineItemReturnInfo, decorator: Google::Apis::ContentV2_1::OrderLineItemReturnInfo::Representation + + collection :returns, as: 'returns', class: Google::Apis::ContentV2_1::OrderReturn, decorator: Google::Apis::ContentV2_1::OrderReturn::Representation + + property :shipping_details, as: 'shippingDetails', class: Google::Apis::ContentV2_1::OrderLineItemShippingDetails, decorator: Google::Apis::ContentV2_1::OrderLineItemShippingDetails::Representation + + property :tax, as: 'tax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + end + end + + class OrderLineItemProduct + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand, as: 'brand' + property :channel, as: 'channel' + property :condition, as: 'condition' + property :content_language, as: 'contentLanguage' + collection :fees, as: 'fees', class: Google::Apis::ContentV2_1::OrderLineItemProductFee, decorator: Google::Apis::ContentV2_1::OrderLineItemProductFee::Representation + + property :gtin, as: 'gtin' + property :id, as: 'id' + property :image_link, as: 'imageLink' + property :item_group_id, as: 'itemGroupId' + property :mpn, as: 'mpn' + property :offer_id, as: 'offerId' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :shown_image, as: 'shownImage' + property :target_country, as: 'targetCountry' + property :title, as: 'title' + collection :variant_attributes, as: 'variantAttributes', class: Google::Apis::ContentV2_1::OrderLineItemProductVariantAttribute, decorator: Google::Apis::ContentV2_1::OrderLineItemProductVariantAttribute::Representation + + end + end + + class OrderLineItemProductFee + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :name, as: 'name' + end + end + + class OrderLineItemProductVariantAttribute + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dimension, as: 'dimension' + property :value, as: 'value' + end + end + + class OrderLineItemReturnInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :days_to_return, as: 'daysToReturn' + property :is_returnable, as: 'isReturnable' + property :policy_url, as: 'policyUrl' + end + end + + class OrderLineItemShippingDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deliver_by_date, as: 'deliverByDate' + property :method_prop, as: 'method', class: Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod, decorator: Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod::Representation + + property :ship_by_date, as: 'shipByDate' + end + end + + class OrderLineItemShippingDetailsMethod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :max_days_in_transit, as: 'maxDaysInTransit' + property :method_name, as: 'methodName' + property :min_days_in_transit, as: 'minDaysInTransit' + end + end + + class OrderMerchantProvidedAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + + class OrderPromotion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :applicable_items, as: 'applicableItems', class: Google::Apis::ContentV2_1::OrderPromotionItem, decorator: Google::Apis::ContentV2_1::OrderPromotionItem::Representation + + collection :applied_items, as: 'appliedItems', class: Google::Apis::ContentV2_1::OrderPromotionItem, decorator: Google::Apis::ContentV2_1::OrderPromotionItem::Representation + + property :funder, as: 'funder' + property :merchant_promotion_id, as: 'merchantPromotionId' + property :pretax_value, as: 'pretaxValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :short_title, as: 'shortTitle' + property :subtype, as: 'subtype' + property :tax_value, as: 'taxValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :title, as: 'title' + property :type, as: 'type' + end + end + + class OrderPromotionItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :product_id, as: 'productId' + property :quantity, as: 'quantity' + end + end + + class OrderRefund + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :actor, as: 'actor' + property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :creation_date, as: 'creationDate' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrderReportDisbursement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disbursement_amount, as: 'disbursementAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :disbursement_creation_date, as: 'disbursementCreationDate' + property :disbursement_date, as: 'disbursementDate' + property :disbursement_id, as: 'disbursementId' + property :merchant_id, :numeric_string => true, as: 'merchantId' + end + end + + class OrderReportTransaction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disbursement_amount, as: 'disbursementAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :disbursement_creation_date, as: 'disbursementCreationDate' + property :disbursement_date, as: 'disbursementDate' + property :disbursement_id, as: 'disbursementId' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :merchant_order_id, as: 'merchantOrderId' + property :order_id, as: 'orderId' + property :product_amount, as: 'productAmount', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation + + property :transaction_date, as: 'transactionDate' + end + end + + class OrderReturn + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :actor, as: 'actor' + property :creation_date, as: 'creationDate' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrderShipment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :creation_date, as: 'creationDate' + property :delivery_date, as: 'deliveryDate' + property :id, as: 'id' + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment::Representation + + property :status, as: 'status' + property :tracking_id, as: 'trackingId' + end + end + + class OrderShipmentLineItemShipment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :product_id, as: 'productId' + property :quantity, as: 'quantity' + end + end + + class OrderinvoicesCreateChargeInvoiceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :invoice_id, as: 'invoiceId' + property :invoice_summary, as: 'invoiceSummary', class: Google::Apis::ContentV2_1::InvoiceSummary, decorator: Google::Apis::ContentV2_1::InvoiceSummary::Representation + + collection :line_item_invoices, as: 'lineItemInvoices', class: Google::Apis::ContentV2_1::ShipmentInvoiceLineItemInvoice, decorator: Google::Apis::ContentV2_1::ShipmentInvoiceLineItemInvoice::Representation + + property :operation_id, as: 'operationId' + property :shipment_group_id, as: 'shipmentGroupId' + end + end + + class OrderinvoicesCreateChargeInvoiceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrderinvoicesCreateRefundInvoiceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :invoice_id, as: 'invoiceId' + property :operation_id, as: 'operationId' + property :refund_only_option, as: 'refundOnlyOption', class: Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption, decorator: Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption::Representation + + property :return_option, as: 'returnOption', class: Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption, decorator: Google::Apis::ContentV2_1::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption::Representation + + collection :shipment_invoices, as: 'shipmentInvoices', class: Google::Apis::ContentV2_1::ShipmentInvoice, decorator: Google::Apis::ContentV2_1::ShipmentInvoice::Representation + + end + end + + class OrderinvoicesCreateRefundInvoiceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :reason, as: 'reason' + end + end + + class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :reason, as: 'reason' + end + end + + class OrderpaymentsNotifyAuthApprovedRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auth_amount_pretax, as: 'authAmountPretax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :auth_amount_tax, as: 'authAmountTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + end + end + + class OrderpaymentsNotifyAuthApprovedResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrderpaymentsNotifyAuthDeclinedRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :decline_reason, as: 'declineReason' + end + end + + class OrderpaymentsNotifyAuthDeclinedResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrderpaymentsNotifyChargeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :charge_state, as: 'chargeState' + collection :invoice_ids, as: 'invoiceIds' + end + end + + class OrderpaymentsNotifyChargeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrderpaymentsNotifyRefundRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :invoice_ids, as: 'invoiceIds' + property :refund_state, as: 'refundState' + end + end + + class OrderpaymentsNotifyRefundResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrderreportsListDisbursementsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :disbursements, as: 'disbursements', class: Google::Apis::ContentV2_1::OrderReportDisbursement, decorator: Google::Apis::ContentV2_1::OrderReportDisbursement::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class OrderreportsListTransactionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :transactions, as: 'transactions', class: Google::Apis::ContentV2_1::OrderReportTransaction, decorator: Google::Apis::ContentV2_1::OrderReportTransaction::Representation + + end + end + + class OrderreturnsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::MerchantOrderReturn, decorator: Google::Apis::ContentV2_1::MerchantOrderReturn::Representation + + end + end + + class OrdersAcknowledgeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_id, as: 'operationId' + end + end + + class OrdersAcknowledgeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersAdvanceTestOrderResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class OrdersCancelLineItemRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :operation_id, as: 'operationId' + property :product_id, as: 'productId' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersCancelLineItemResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersCancelRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operation_id, as: 'operationId' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersCancelResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersCancelTestOrderByCustomerRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reason, as: 'reason' + end + end + + class OrdersCancelTestOrderByCustomerResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + + class OrdersCreateTestOrderRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :template_name, as: 'templateName' + property :test_order, as: 'testOrder', class: Google::Apis::ContentV2_1::TestOrder, decorator: Google::Apis::ContentV2_1::TestOrder::Representation + + end + end + + class OrdersCreateTestOrderResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :order_id, as: 'orderId' + end + end + + class OrdersCreateTestReturnRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryCreateTestReturnReturnItem, decorator: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryCreateTestReturnReturnItem::Representation + + end + end + + class OrdersCreateTestReturnResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :return_id, as: 'returnId' + end + end + + class OrdersCustomBatchRequestEntryCreateTestReturnReturnItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :quantity, as: 'quantity' + end + end + + class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :shipment_id, as: 'shipmentId' + property :tracking_id, as: 'trackingId' + end + end + + class OrdersGetByMerchantOrderIdResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :order, as: 'order', class: Google::Apis::ContentV2_1::Order, decorator: Google::Apis::ContentV2_1::Order::Representation + + end + end + + class OrdersGetTestOrderTemplateResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :template, as: 'template', class: Google::Apis::ContentV2_1::TestOrder, decorator: Google::Apis::ContentV2_1::TestOrder::Representation + + end + end + + class OrdersInStoreRefundLineItemRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :operation_id, as: 'operationId' + property :price_amount, as: 'priceAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :product_id, as: 'productId' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + property :tax_amount, as: 'taxAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + end + end + + class OrdersInStoreRefundLineItemResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::Order, decorator: Google::Apis::ContentV2_1::Order::Representation + + end + end + + class OrdersRejectReturnLineItemRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :operation_id, as: 'operationId' + property :product_id, as: 'productId' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + end + end + + class OrdersRejectReturnLineItemResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersReturnRefundLineItemRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :operation_id, as: 'operationId' + property :price_amount, as: 'priceAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :product_id, as: 'productId' + property :quantity, as: 'quantity' + property :reason, as: 'reason' + property :reason_text, as: 'reasonText' + property :tax_amount, as: 'taxAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + end + end + + class OrdersReturnRefundLineItemResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersSetLineItemMetadataRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :annotations, as: 'annotations', class: Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation::Representation + + property :line_item_id, as: 'lineItemId' + property :operation_id, as: 'operationId' + property :product_id, as: 'productId' + end + end + + class OrdersSetLineItemMetadataResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersShipLineItemsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment::Representation + + property :operation_id, as: 'operationId' + property :shipment_group_id, as: 'shipmentGroupId' + collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation + + end + end + + class OrdersShipLineItemsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersUpdateLineItemShippingDetailsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deliver_by_date, as: 'deliverByDate' + property :line_item_id, as: 'lineItemId' + property :operation_id, as: 'operationId' + property :product_id, as: 'productId' + property :ship_by_date, as: 'shipByDate' + end + end + + class OrdersUpdateLineItemShippingDetailsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersUpdateMerchantOrderIdRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :merchant_order_id, as: 'merchantOrderId' + property :operation_id, as: 'operationId' + end + end + + class OrdersUpdateMerchantOrderIdResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class OrdersUpdateShipmentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :delivery_date, as: 'deliveryDate' + property :operation_id, as: 'operationId' + property :shipment_id, as: 'shipmentId' + property :status, as: 'status' + property :tracking_id, as: 'trackingId' + end + end + + class OrdersUpdateShipmentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_status, as: 'executionStatus' + property :kind, as: 'kind' + end + end + + class PosCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::PosCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::PosCustomBatchRequestEntry::Representation + + end + end + + class PosCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :inventory, as: 'inventory', class: Google::Apis::ContentV2_1::PosInventory, decorator: Google::Apis::ContentV2_1::PosInventory::Representation + + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + property :sale, as: 'sale', class: Google::Apis::ContentV2_1::PosSale, decorator: Google::Apis::ContentV2_1::PosSale::Representation + + property :store, as: 'store', class: Google::Apis::ContentV2_1::PosStore, decorator: Google::Apis::ContentV2_1::PosStore::Representation + + property :store_code, as: 'storeCode' + property :target_merchant_id, :numeric_string => true, as: 'targetMerchantId' + end + end + + class PosCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::PosCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::PosCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class PosCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + property :inventory, as: 'inventory', class: Google::Apis::ContentV2_1::PosInventory, decorator: Google::Apis::ContentV2_1::PosInventory::Representation + + property :kind, as: 'kind' + property :sale, as: 'sale', class: Google::Apis::ContentV2_1::PosSale, decorator: Google::Apis::ContentV2_1::PosSale::Representation + + property :store, as: 'store', class: Google::Apis::ContentV2_1::PosStore, decorator: Google::Apis::ContentV2_1::PosStore::Representation + + end + end + + class PosDataProviders + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + collection :pos_data_providers, as: 'posDataProviders', class: Google::Apis::ContentV2_1::PosDataProvidersPosDataProvider, decorator: Google::Apis::ContentV2_1::PosDataProvidersPosDataProvider::Representation + + end + end + + class PosDataProvidersPosDataProvider + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :full_name, as: 'fullName' + property :provider_id, :numeric_string => true, as: 'providerId' + end + end + + class PosInventory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :item_id, as: 'itemId' + property :kind, as: 'kind' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :quantity, :numeric_string => true, as: 'quantity' + property :store_code, as: 'storeCode' + property :target_country, as: 'targetCountry' + property :timestamp, as: 'timestamp' + end + end + + class PosInventoryRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :item_id, as: 'itemId' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :quantity, :numeric_string => true, as: 'quantity' + property :store_code, as: 'storeCode' + property :target_country, as: 'targetCountry' + property :timestamp, as: 'timestamp' + end + end + + class PosInventoryResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :item_id, as: 'itemId' + property :kind, as: 'kind' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :quantity, :numeric_string => true, as: 'quantity' + property :store_code, as: 'storeCode' + property :target_country, as: 'targetCountry' + property :timestamp, as: 'timestamp' + end + end + + class PosListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::PosStore, decorator: Google::Apis::ContentV2_1::PosStore::Representation + + end + end + + class PosSale + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :item_id, as: 'itemId' + property :kind, as: 'kind' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :quantity, :numeric_string => true, as: 'quantity' + property :sale_id, as: 'saleId' + property :store_code, as: 'storeCode' + property :target_country, as: 'targetCountry' + property :timestamp, as: 'timestamp' + end + end + + class PosSaleRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :item_id, as: 'itemId' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :quantity, :numeric_string => true, as: 'quantity' + property :sale_id, as: 'saleId' + property :store_code, as: 'storeCode' + property :target_country, as: 'targetCountry' + property :timestamp, as: 'timestamp' + end + end + + class PosSaleResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :item_id, as: 'itemId' + property :kind, as: 'kind' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :quantity, :numeric_string => true, as: 'quantity' + property :sale_id, as: 'saleId' + property :store_code, as: 'storeCode' + property :target_country, as: 'targetCountry' + property :timestamp, as: 'timestamp' + end + end + + class PosStore + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :store_address, as: 'storeAddress' + property :store_code, as: 'storeCode' + end + end + + class PostalCodeGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :name, as: 'name' + collection :postal_code_ranges, as: 'postalCodeRanges', class: Google::Apis::ContentV2_1::PostalCodeRange, decorator: Google::Apis::ContentV2_1::PostalCodeRange::Representation + + end + end + + class PostalCodeRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :postal_code_range_begin, as: 'postalCodeRangeBegin' + property :postal_code_range_end, as: 'postalCodeRangeEnd' + end + end + + class Price + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency, as: 'currency' + property :value, as: 'value' + end + end + + class Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :additional_image_links, as: 'additionalImageLinks' + property :ads_grouping, as: 'adsGrouping' + collection :ads_labels, as: 'adsLabels' + property :ads_redirect, as: 'adsRedirect' + property :adult, as: 'adult' + property :age_group, as: 'ageGroup' + property :availability, as: 'availability' + property :availability_date, as: 'availabilityDate' + property :brand, as: 'brand' + property :channel, as: 'channel' + property :color, as: 'color' + property :condition, as: 'condition' + property :content_language, as: 'contentLanguage' + property :cost_of_goods_sold, as: 'costOfGoodsSold', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + collection :custom_attributes, as: 'customAttributes', class: Google::Apis::ContentV2_1::CustomAttribute, decorator: Google::Apis::ContentV2_1::CustomAttribute::Representation + + property :custom_label0, as: 'customLabel0' + property :custom_label1, as: 'customLabel1' + property :custom_label2, as: 'customLabel2' + property :custom_label3, as: 'customLabel3' + property :custom_label4, as: 'customLabel4' + property :description, as: 'description' + property :display_ads_id, as: 'displayAdsId' + property :display_ads_link, as: 'displayAdsLink' + collection :display_ads_similar_ids, as: 'displayAdsSimilarIds' + property :display_ads_title, as: 'displayAdsTitle' + property :display_ads_value, as: 'displayAdsValue' + property :energy_efficiency_class, as: 'energyEfficiencyClass' + collection :excluded_destinations, as: 'excludedDestinations' + property :expiration_date, as: 'expirationDate' + property :gender, as: 'gender' + property :google_product_category, as: 'googleProductCategory' + property :gtin, as: 'gtin' + property :id, as: 'id' + property :identifier_exists, as: 'identifierExists' + property :image_link, as: 'imageLink' + collection :included_destinations, as: 'includedDestinations' + property :installment, as: 'installment', class: Google::Apis::ContentV2_1::Installment, decorator: Google::Apis::ContentV2_1::Installment::Representation + + property :is_bundle, as: 'isBundle' + property :item_group_id, as: 'itemGroupId' + property :kind, as: 'kind' + property :link, as: 'link' + property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2_1::LoyaltyPoints, decorator: Google::Apis::ContentV2_1::LoyaltyPoints::Representation + + property :material, as: 'material' + property :max_energy_efficiency_class, as: 'maxEnergyEfficiencyClass' + property :max_handling_time, :numeric_string => true, as: 'maxHandlingTime' + property :min_energy_efficiency_class, as: 'minEnergyEfficiencyClass' + property :min_handling_time, :numeric_string => true, as: 'minHandlingTime' + property :mobile_link, as: 'mobileLink' + property :mpn, as: 'mpn' + property :multipack, :numeric_string => true, as: 'multipack' + property :offer_id, as: 'offerId' + property :pattern, as: 'pattern' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + collection :product_types, as: 'productTypes' + collection :promotion_ids, as: 'promotionIds' + property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :sale_price_effective_date, as: 'salePriceEffectiveDate' + property :sell_on_google_quantity, :numeric_string => true, as: 'sellOnGoogleQuantity' + collection :shipping, as: 'shipping', class: Google::Apis::ContentV2_1::ProductShipping, decorator: Google::Apis::ContentV2_1::ProductShipping::Representation + + property :shipping_height, as: 'shippingHeight', class: Google::Apis::ContentV2_1::ProductShippingDimension, decorator: Google::Apis::ContentV2_1::ProductShippingDimension::Representation + + property :shipping_label, as: 'shippingLabel' + property :shipping_length, as: 'shippingLength', class: Google::Apis::ContentV2_1::ProductShippingDimension, decorator: Google::Apis::ContentV2_1::ProductShippingDimension::Representation + + property :shipping_weight, as: 'shippingWeight', class: Google::Apis::ContentV2_1::ProductShippingWeight, decorator: Google::Apis::ContentV2_1::ProductShippingWeight::Representation + + property :shipping_width, as: 'shippingWidth', class: Google::Apis::ContentV2_1::ProductShippingDimension, decorator: Google::Apis::ContentV2_1::ProductShippingDimension::Representation + + property :size_system, as: 'sizeSystem' + property :size_type, as: 'sizeType' + collection :sizes, as: 'sizes' + property :source, as: 'source' + property :target_country, as: 'targetCountry' + collection :taxes, as: 'taxes', class: Google::Apis::ContentV2_1::ProductTax, decorator: Google::Apis::ContentV2_1::ProductTax::Representation + + property :title, as: 'title' + property :unit_pricing_base_measure, as: 'unitPricingBaseMeasure', class: Google::Apis::ContentV2_1::ProductUnitPricingBaseMeasure, decorator: Google::Apis::ContentV2_1::ProductUnitPricingBaseMeasure::Representation + + property :unit_pricing_measure, as: 'unitPricingMeasure', class: Google::Apis::ContentV2_1::ProductUnitPricingMeasure, decorator: Google::Apis::ContentV2_1::ProductUnitPricingMeasure::Representation + + end + end + + class ProductShipping + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :location_group_name, as: 'locationGroupName' + property :location_id, :numeric_string => true, as: 'locationId' + property :postal_code, as: 'postalCode' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :region, as: 'region' + property :service, as: 'service' + end + end + + class ProductShippingDimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + property :value, as: 'value' + end + end + + class ProductShippingWeight + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + property :value, as: 'value' + end + end + + class ProductStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_date, as: 'creationDate' + collection :destination_statuses, as: 'destinationStatuses', class: Google::Apis::ContentV2_1::ProductStatusDestinationStatus, decorator: Google::Apis::ContentV2_1::ProductStatusDestinationStatus::Representation + + property :google_expiration_date, as: 'googleExpirationDate' + collection :item_level_issues, as: 'itemLevelIssues', class: Google::Apis::ContentV2_1::ProductStatusItemLevelIssue, decorator: Google::Apis::ContentV2_1::ProductStatusItemLevelIssue::Representation + + property :kind, as: 'kind' + property :last_update_date, as: 'lastUpdateDate' + property :link, as: 'link' + property :product_id, as: 'productId' + property :title, as: 'title' + end + end + + class ProductStatusDestinationStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination, as: 'destination' + property :status, as: 'status' + end + end + + class ProductStatusItemLevelIssue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_name, as: 'attributeName' + property :code, as: 'code' + property :description, as: 'description' + property :destination, as: 'destination' + property :detail, as: 'detail' + property :documentation, as: 'documentation' + property :resolution, as: 'resolution' + property :servability, as: 'servability' + end + end + + class ProductTax + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + property :location_id, :numeric_string => true, as: 'locationId' + property :postal_code, as: 'postalCode' + property :rate, as: 'rate' + property :region, as: 'region' + property :tax_ship, as: 'taxShip' + end + end + + class ProductUnitPricingBaseMeasure + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + property :value, :numeric_string => true, as: 'value' + end + end + + class ProductUnitPricingMeasure + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + property :value, as: 'value' + end + end + + class ProductsCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ProductsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::ProductsCustomBatchRequestEntry::Representation + + end + end + + class ProductsCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + property :product, as: 'product', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation + + property :product_id, as: 'productId' + end + end + + class ProductsCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ProductsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::ProductsCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class ProductsCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + property :kind, as: 'kind' + property :product, as: 'product', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation + + end + end + + class ProductsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation + + end + end + + class ProductstatusesCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequestEntry::Representation + + end + end + + class ProductstatusesCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + collection :destinations, as: 'destinations' + property :include_attributes, as: 'includeAttributes' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + property :product_id, as: 'productId' + end + end + + class ProductstatusesCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class ProductstatusesCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + property :kind, as: 'kind' + property :product_status, as: 'productStatus', class: Google::Apis::ContentV2_1::ProductStatus, decorator: Google::Apis::ContentV2_1::ProductStatus::Representation + + end + end + + class ProductstatusesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::ProductStatus, decorator: Google::Apis::ContentV2_1::ProductStatus::Representation + + end + end + + class Promotion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :promotion_amount, as: 'promotionAmount', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation + + property :promotion_id, as: 'promotionId' + end + end + + class RateGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :applicable_shipping_labels, as: 'applicableShippingLabels' + collection :carrier_rates, as: 'carrierRates', class: Google::Apis::ContentV2_1::CarrierRate, decorator: Google::Apis::ContentV2_1::CarrierRate::Representation + + property :main_table, as: 'mainTable', class: Google::Apis::ContentV2_1::Table, decorator: Google::Apis::ContentV2_1::Table::Representation + + property :name, as: 'name' + property :single_value, as: 'singleValue', class: Google::Apis::ContentV2_1::Value, decorator: Google::Apis::ContentV2_1::Value::Representation + + collection :subtables, as: 'subtables', class: Google::Apis::ContentV2_1::Table, decorator: Google::Apis::ContentV2_1::Table::Representation + + end + end + + class RefundReason + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :reason_code, as: 'reasonCode' + end + end + + class ReturnShipment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_date, as: 'creationDate' + property :return_method_type, as: 'returnMethodType' + property :shipment_id, as: 'shipmentId' + collection :shipment_tracking_infos, as: 'shipmentTrackingInfos', class: Google::Apis::ContentV2_1::ShipmentTrackingInfo, decorator: Google::Apis::ContentV2_1::ShipmentTrackingInfo::Representation + + end + end + + class Row + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cells, as: 'cells', class: Google::Apis::ContentV2_1::Value, decorator: Google::Apis::ContentV2_1::Value::Representation + + end + end + + class Service + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active, as: 'active' + property :currency, as: 'currency' + property :delivery_country, as: 'deliveryCountry' + property :delivery_time, as: 'deliveryTime', class: Google::Apis::ContentV2_1::DeliveryTime, decorator: Google::Apis::ContentV2_1::DeliveryTime::Representation + + property :eligibility, as: 'eligibility' + property :minimum_order_value, as: 'minimumOrderValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :name, as: 'name' + collection :rate_groups, as: 'rateGroups', class: Google::Apis::ContentV2_1::RateGroup, decorator: Google::Apis::ContentV2_1::RateGroup::Representation + + end + end + + class ShipmentInvoice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :invoice_summary, as: 'invoiceSummary', class: Google::Apis::ContentV2_1::InvoiceSummary, decorator: Google::Apis::ContentV2_1::InvoiceSummary::Representation + + collection :line_item_invoices, as: 'lineItemInvoices', class: Google::Apis::ContentV2_1::ShipmentInvoiceLineItemInvoice, decorator: Google::Apis::ContentV2_1::ShipmentInvoiceLineItemInvoice::Representation + + property :shipment_group_id, as: 'shipmentGroupId' + end + end + + class ShipmentInvoiceLineItemInvoice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :line_item_id, as: 'lineItemId' + property :product_id, as: 'productId' + collection :shipment_unit_ids, as: 'shipmentUnitIds' + property :unit_invoice, as: 'unitInvoice', class: Google::Apis::ContentV2_1::UnitInvoice, decorator: Google::Apis::ContentV2_1::UnitInvoice::Representation + + end + end + + class ShipmentTrackingInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier, as: 'carrier' + property :tracking_number, as: 'trackingNumber' + end + end + + class ShippingSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + collection :postal_code_groups, as: 'postalCodeGroups', class: Google::Apis::ContentV2_1::PostalCodeGroup, decorator: Google::Apis::ContentV2_1::PostalCodeGroup::Representation + + collection :services, as: 'services', class: Google::Apis::ContentV2_1::Service, decorator: Google::Apis::ContentV2_1::Service::Representation + + end + end + + class ShippingsettingsCustomBatchRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequestEntry::Representation + + end + end + + class ShippingsettingsCustomBatchRequestEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, :numeric_string => true, as: 'accountId' + property :batch_id, as: 'batchId' + property :merchant_id, :numeric_string => true, as: 'merchantId' + property :method_prop, as: 'method' + property :shipping_settings, as: 'shippingSettings', class: Google::Apis::ContentV2_1::ShippingSettings, decorator: Google::Apis::ContentV2_1::ShippingSettings::Representation + + end + end + + class ShippingsettingsCustomBatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponseEntry::Representation + + property :kind, as: 'kind' + end + end + + class ShippingsettingsCustomBatchResponseEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :batch_id, as: 'batchId' + property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation + + property :kind, as: 'kind' + property :shipping_settings, as: 'shippingSettings', class: Google::Apis::ContentV2_1::ShippingSettings, decorator: Google::Apis::ContentV2_1::ShippingSettings::Representation + + end + end + + class ShippingsettingsGetSupportedCarriersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :carriers, as: 'carriers', class: Google::Apis::ContentV2_1::CarriersCarrier, decorator: Google::Apis::ContentV2_1::CarriersCarrier::Representation + + property :kind, as: 'kind' + end + end + + class ShippingsettingsGetSupportedHolidaysResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :holidays, as: 'holidays', class: Google::Apis::ContentV2_1::HolidaysHoliday, decorator: Google::Apis::ContentV2_1::HolidaysHoliday::Representation + + property :kind, as: 'kind' + end + end + + class ShippingsettingsListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::ShippingSettings, decorator: Google::Apis::ContentV2_1::ShippingSettings::Representation + + end + end + + class Table + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :column_headers, as: 'columnHeaders', class: Google::Apis::ContentV2_1::Headers, decorator: Google::Apis::ContentV2_1::Headers::Representation + + property :name, as: 'name' + property :row_headers, as: 'rowHeaders', class: Google::Apis::ContentV2_1::Headers, decorator: Google::Apis::ContentV2_1::Headers::Representation + + collection :rows, as: 'rows', class: Google::Apis::ContentV2_1::Row, decorator: Google::Apis::ContentV2_1::Row::Representation + + end + end + + class TestOrder + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :customer, as: 'customer', class: Google::Apis::ContentV2_1::TestOrderCustomer, decorator: Google::Apis::ContentV2_1::TestOrderCustomer::Representation + + property :enable_orderinvoices, as: 'enableOrderinvoices' + property :kind, as: 'kind' + collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::TestOrderLineItem, decorator: Google::Apis::ContentV2_1::TestOrderLineItem::Representation + + property :notification_mode, as: 'notificationMode' + property :predefined_billing_address, as: 'predefinedBillingAddress' + property :predefined_delivery_address, as: 'predefinedDeliveryAddress' + collection :promotions, as: 'promotions', class: Google::Apis::ContentV2_1::OrderPromotion, decorator: Google::Apis::ContentV2_1::OrderPromotion::Representation + + property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :shipping_option, as: 'shippingOption' + end + end + + class TestOrderCustomer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :full_name, as: 'fullName' + property :marketing_rights_info, as: 'marketingRightsInfo', class: Google::Apis::ContentV2_1::TestOrderCustomerMarketingRightsInfo, decorator: Google::Apis::ContentV2_1::TestOrderCustomerMarketingRightsInfo::Representation + + end + end + + class TestOrderCustomerMarketingRightsInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :explicit_marketing_preference, as: 'explicitMarketingPreference' + property :last_updated_timestamp, as: 'lastUpdatedTimestamp' + end + end + + class TestOrderLineItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :product, as: 'product', class: Google::Apis::ContentV2_1::TestOrderLineItemProduct, decorator: Google::Apis::ContentV2_1::TestOrderLineItemProduct::Representation + + property :quantity_ordered, as: 'quantityOrdered' + property :return_info, as: 'returnInfo', class: Google::Apis::ContentV2_1::OrderLineItemReturnInfo, decorator: Google::Apis::ContentV2_1::OrderLineItemReturnInfo::Representation + + property :shipping_details, as: 'shippingDetails', class: Google::Apis::ContentV2_1::OrderLineItemShippingDetails, decorator: Google::Apis::ContentV2_1::OrderLineItemShippingDetails::Representation + + property :unit_tax, as: 'unitTax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + end + end + + class TestOrderLineItemProduct + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand, as: 'brand' + property :channel, as: 'channel' + property :condition, as: 'condition' + property :content_language, as: 'contentLanguage' + property :gtin, as: 'gtin' + property :image_link, as: 'imageLink' + property :item_group_id, as: 'itemGroupId' + property :mpn, as: 'mpn' + property :offer_id, as: 'offerId' + property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :target_country, as: 'targetCountry' + property :title, as: 'title' + collection :variant_attributes, as: 'variantAttributes', class: Google::Apis::ContentV2_1::OrderLineItemProductVariantAttribute, decorator: Google::Apis::ContentV2_1::OrderLineItemProductVariantAttribute::Representation + + end + end + + class UnitInvoice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :additional_charges, as: 'additionalCharges', class: Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge, decorator: Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge::Representation + + collection :promotions, as: 'promotions', class: Google::Apis::ContentV2_1::Promotion, decorator: Google::Apis::ContentV2_1::Promotion::Representation + + property :unit_price_pretax, as: 'unitPricePretax', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + collection :unit_price_taxes, as: 'unitPriceTaxes', class: Google::Apis::ContentV2_1::UnitInvoiceTaxLine, decorator: Google::Apis::ContentV2_1::UnitInvoiceTaxLine::Representation + + end + end + + class UnitInvoiceAdditionalCharge + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :additional_charge_amount, as: 'additionalChargeAmount', class: Google::Apis::ContentV2_1::Amount, decorator: Google::Apis::ContentV2_1::Amount::Representation + + collection :additional_charge_promotions, as: 'additionalChargePromotions', class: Google::Apis::ContentV2_1::Promotion, decorator: Google::Apis::ContentV2_1::Promotion::Representation + + property :type, as: 'type' + end + end + + class UnitInvoiceTaxLine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :tax_amount, as: 'taxAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :tax_name, as: 'taxName' + property :tax_type, as: 'taxType' + end + end + + class Value + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier_rate_name, as: 'carrierRateName' + property :flat_rate, as: 'flatRate', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :no_shipping, as: 'noShipping' + property :price_percentage, as: 'pricePercentage' + property :subtable_name, as: 'subtableName' + end + end + + class Weight + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :unit, as: 'unit' + property :value, as: 'value' + end + end + end + end +end diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb new file mode 100644 index 000000000..30da66d45 --- /dev/null +++ b/generated/google/apis/content_v2_1/service.rb @@ -0,0 +1,3463 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module ContentV2_1 + # Content API for Shopping + # + # Manages product items, inventory, and Merchant Center accounts for Google + # Shopping. + # + # @example + # require 'google/apis/content_v2_1' + # + # Content = Google::Apis::ContentV2_1 # Alias the module + # service = Content::ShoppingContentService.new + # + # @see https://developers.google.com/shopping-content + class ShoppingContentService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # An opaque string that represents a user for quota purposes. Must 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' + 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountsAuthInfoResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountsAuthInfoResponse] + # + # @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) + 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 + + # Claims the website of a Merchant Center sub-account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account whose website is claimed. + # @param [Boolean] overwrite + # Only available to selected merchants. When set to True, this flag removes any + # existing claim on the requested website by another account and replaces it + # with a claim from this account. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse] + # + # @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) + 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? + command.params['accountId'] = account_id unless account_id.nil? + 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 + + # Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-) + # accounts in a single request. + # @param [Google::Apis::ContentV2_1::AccountsCustomBatchRequest] accounts_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountsCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountsCustomBatchResponse] + # + # @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) + 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 + + # Deletes a Merchant Center sub-account. + # @param [Fixnum] merchant_id + # The ID of the managing account. This must be a multi-client account, and + # accountId must be the ID of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account. + # @param [Boolean] force + # Flag to delete sub-accounts with products. The default value is false. + # @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. + # @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(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) + 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 + + # Retrieves a Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Account] + # + # @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, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{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? + 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 Merchant Center sub-account. + # @param [Fixnum] merchant_id + # The ID of the managing account. This must be a multi-client account. + # @param [Google::Apis::ContentV2_1::Account] account_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Account] + # + # @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) + command.request_representation = Google::Apis::ContentV2_1::Account::Representation + command.request_object = account_object + 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? + 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 + + # Performs an action on a link between a Merchant Center account and another + # account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account that should be linked. + # @param [Google::Apis::ContentV2_1::AccountsLinkRequest] accounts_link_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountsLinkResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountsLinkResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::AccountsLinkResponse + 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 + + # Lists the sub-accounts in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the managing account. This must be a multi-client account. + # @param [Fixnum] max_results + # The maximum number of accounts to return in the response, used for paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountsListResponse] + # + # @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, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{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? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account. + # @param [Google::Apis::ContentV2_1::Account] account_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Account] + # + # @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) + command.request_representation = Google::Apis::ContentV2_1::Account::Representation + command.request_object = account_object + 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? + 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 + + # + # @param [Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest] accountstatuses_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse] + # + # @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) + 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 + + # Retrieves the status of a Merchant Center account. Multi-client accounts can + # only call this method for sub-accounts. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account. + # @param [Array, String] destinations + # If set, only issues for the specified destinations are returned, otherwise + # only issues for the Shopping destination. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountStatus] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountStatus] + # + # @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) + 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? + command.params['accountId'] = account_id unless account_id.nil? + 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 + + # Lists the statuses of the sub-accounts in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the managing account. This must be a multi-client account. + # @param [Array, String] destinations + # If set, only issues for the specified destinations are returned, otherwise + # only issues for the Shopping destination. + # @param [Fixnum] max_results + # The maximum number of account statuses to return in the response, used for + # paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountstatusesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountstatusesListResponse] + # + # @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) + 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? + command.query['destinations'] = destinations unless destinations.nil? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves and updates tax settings of multiple accounts in a single request. + # @param [Google::Apis::ContentV2_1::AccounttaxCustomBatchRequest] accounttax_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse] + # + # @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) + 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 + + # Retrieves the tax settings of the account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to get/update account tax settings. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountTax] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountTax] + # + # @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) + 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 + + # Lists the tax settings of the sub-accounts in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the managing account. This must be a multi-client account. + # @param [Fixnum] max_results + # The maximum number of tax settings to return in the response, used for paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccounttaxListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccounttaxListResponse] + # + # @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) + 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? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the tax settings of the account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to get/update account tax settings. + # @param [Google::Apis::ContentV2_1::AccountTax] account_tax_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountTax] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountTax] + # + # @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) + command.request_representation = Google::Apis::ContentV2_1::AccountTax::Representation + command.request_object = account_tax_object + 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 + + # + # @param [Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest] datafeeds_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse] + # + # @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) + 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 + + # Deletes a datafeed configuration from your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the datafeed. This account cannot be a + # multi-client account. + # @param [Fixnum] datafeed_id + # The ID of the datafeed. + # @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. + # @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_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) + 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 + + # Invokes a fetch for the datafeed in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the datafeed. This account cannot be a + # multi-client account. + # @param [Fixnum] datafeed_id + # The ID of the datafeed to be fetched. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::DatafeedsFetchNowResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::DatafeedsFetchNowResponse] + # + # @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) + 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 + + # Retrieves a datafeed configuration from your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the datafeed. This account cannot be a + # multi-client account. + # @param [Fixnum] datafeed_id + # The ID of the datafeed. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Datafeed] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Datafeed] + # + # @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) + 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 + + # Registers a datafeed configuration with your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the datafeed. This account cannot be a + # multi-client account. + # @param [Google::Apis::ContentV2_1::Datafeed] datafeed_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Datafeed] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Datafeed] + # + # @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) + command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation + command.request_object = datafeed_object + 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.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 + + # Lists the configurations for datafeeds in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the datafeeds. This account cannot be a + # multi-client account. + # @param [Fixnum] max_results + # The maximum number of products to return in the response, used for paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::DatafeedsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::DatafeedsListResponse] + # + # @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) + 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? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates a datafeed configuration of your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the datafeed. This account cannot be a + # multi-client account. + # @param [Fixnum] datafeed_id + # The ID of the datafeed. + # @param [Google::Apis::ContentV2_1::Datafeed] datafeed_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Datafeed] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Datafeed] + # + # @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) + command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation + command.request_object = datafeed_object + 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 + + # + # @param [Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest] datafeedstatuses_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse] + # + # @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) + 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 + + # Retrieves the status of a datafeed from your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the datafeed. This account cannot be a + # multi-client account. + # @param [Fixnum] datafeed_id + # The ID of the datafeed. + # @param [String] country + # The country for which to get the datafeed status. If this parameter is + # provided then language must also be provided. Note that this parameter is + # required for feeds targeting multiple countries and languages, since a feed + # may have a different status for each target. + # @param [String] language + # The language for which to get the datafeed status. If this parameter is + # provided then country must also be provided. Note that this parameter is + # required for feeds targeting multiple countries and languages, since a feed + # may have a different status for each target. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::DatafeedStatus] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::DatafeedStatus] + # + # @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) + 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? + command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? + command.query['country'] = country unless country.nil? + 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 + + # Lists the statuses of the datafeeds in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the datafeeds. This account cannot be a + # multi-client account. + # @param [Fixnum] max_results + # The maximum number of products to return in the response, used for paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::DatafeedstatusesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::DatafeedstatusesListResponse] + # + # @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) + 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? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves and/or updates the LIA settings of multiple accounts in a single + # request. + # @param [Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse] + # + # @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) + 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 + + # Retrieves the LIA settings of the account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to get or update LIA settings. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiaSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiaSettings] + # + # @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) + 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 + + # Retrieves the list of accessible Google My Business accounts. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to retrieve accessible Google My Business + # accounts. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse] + # + # @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) + 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 + + # Lists the LIA settings of the sub-accounts in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the managing account. This must be a multi-client account. + # @param [Fixnum] max_results + # The maximum number of LIA settings to return in the response, used for paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiasettingsListResponse] + # + # @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) + 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? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves the list of POS data providers that have active settings for the all + # eiligible countries. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse] + # + # @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) + 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 + + # Requests access to a specified Google My Business account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which GMB access is requested. + # @param [String] gmb_email + # The email of the Google My Business account. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse] + # + # @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) + 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? + command.params['accountId'] = account_id unless account_id.nil? + 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 + + # Requests inventory validation for the specified country. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] country + # The country for which inventory validation is requested. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse] + # + # @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) + 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? + command.params['accountId'] = account_id unless account_id.nil? + 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 + + # Sets the inventory verification contract for the specified country. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] contact_email + # The email of the inventory verification contact. + # @param [String] contact_name + # The name of the inventory verification contact. + # @param [String] country + # The country for which inventory verification is requested. + # @param [String] language + # The language for which inventory verification is requested. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse] + # + # @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) + 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? + command.params['accountId'] = account_id unless account_id.nil? + command.query['contactEmail'] = contact_email unless contact_email.nil? + command.query['contactName'] = contact_name unless contact_name.nil? + command.query['country'] = country unless country.nil? + 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 + + # Sets the POS data provider for the specified country. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to retrieve accessible Google My Business + # accounts. + # @param [String] country + # The country for which the POS data provider is selected. + # @param [Fixnum] pos_data_provider_id + # The ID of POS data provider. + # @param [String] pos_external_account_id + # The account ID by which this merchant is known to the POS data provider. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse] + # + # @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) + 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? + command.params['accountId'] = account_id unless account_id.nil? + command.query['country'] = country unless country.nil? + command.query['posDataProviderId'] = pos_data_provider_id unless pos_data_provider_id.nil? + 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 + + # Updates the LIA settings of the account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to get or update LIA settings. + # @param [Google::Apis::ContentV2_1::LiaSettings] lia_settings_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::LiaSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::LiaSettings] + # + # @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) + command.request_representation = Google::Apis::ContentV2_1::LiaSettings::Representation + command.request_object = lia_settings_object + 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 + + # Creates a charge invoice for a shipment group, and triggers a charge capture + # for non-facilitated payment orders. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest] orderinvoices_create_charge_invoice_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse + 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 + + # Creates a refund invoice for one or more shipment groups, and triggers a + # refund for non-facilitated payment orders. This can only be used for line + # items that have previously been charged using createChargeInvoice. All amounts + # (except for the summary) are incremental with respect to the previous invoice. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest] orderinvoices_create_refund_invoice_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse + 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 + + # Notify about successfully authorizing user's payment method for a given amount. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order for for which payment authorization is happening. + # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse] + # + # @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 notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options) + command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedRequest::Representation + command.request_object = orderpayments_notify_auth_approved_request_object + command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse::Representation + command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse + 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 + + # Notify about failure to authorize user's payment method. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order for which payment authorization was declined. + # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse] + # + # @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 notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options) + command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedRequest::Representation + command.request_object = orderpayments_notify_auth_declined_request_object + command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse::Representation + command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse + 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 + + # Notify about charge on user's selected payments method. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order for which charge is happening. + # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse] + # + # @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 notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options) + command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeRequest::Representation + command.request_object = orderpayments_notify_charge_request_object + command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse::Representation + command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse + 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 + + # Notify about refund on user's selected payments method. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order for which charge is happening. + # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse] + # + # @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 notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options) + command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundRequest::Representation + command.request_object = orderpayments_notify_refund_request_object + command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse::Representation + command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse + 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 + + # Retrieves a report for disbursements from your Merchant Center account. + # @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 [Fixnum] max_results + # The maximum number of disbursements to return in the response, used for paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse] + # + # @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) + 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? + command.query['disbursementEndDate'] = disbursement_end_date unless disbursement_end_date.nil? + command.query['disbursementStartDate'] = disbursement_start_date unless disbursement_start_date.nil? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a list of transactions for a disbursement from your Merchant Center + # account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # 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 + # The token returned by the previous request. + # @param [String] transaction_end_date + # The last date in which transaction occurred. In ISO 8601 format. Default: + # current date. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse] + # + # @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) + 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? + command.params['disbursementId'] = disbursement_id unless disbursement_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['transactionEndDate'] = transaction_end_date unless transaction_end_date.nil? + 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 + + # Retrieves an order return from your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] return_id + # Merchant order return ID generated by 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::MerchantOrderReturn] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::MerchantOrderReturn] + # + # @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) + 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 + + # Lists order returns in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] created_end_date + # Obtains order returns created before this date (inclusively), in ISO 8601 + # format. + # @param [String] created_start_date + # Obtains order returns created after this date (inclusively), in ISO 8601 + # format. + # @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 + # 250 returns per page. + # @param [String] order_by + # Return the results in the specified order. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrderreturnsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrderreturnsListResponse] + # + # @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, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{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? + command.query['createdEndDate'] = created_end_date unless created_end_date.nil? + command.query['createdStartDate'] = created_start_date unless created_start_date.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Marks an order as acknowledged. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersAcknowledgeRequest] orders_acknowledge_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersAcknowledgeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersAcknowledgeResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse + 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 + + # Sandbox only. Moves a test order from state "inProgress" to state " + # pendingShipment". + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the test order to modify. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse] + # + # @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) + 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 + + # Cancels all line items in an order, making a full refund. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order to cancel. + # @param [Google::Apis::ContentV2_1::OrdersCancelRequest] orders_cancel_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersCancelResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersCancelResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersCancelResponse + 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 + + # Cancels a line item, making a full refund. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersCancelLineItemRequest] orders_cancel_line_item_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersCancelLineItemResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersCancelLineItemResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse + 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 + + # Sandbox only. Cancels a test order for customer-initiated cancellation. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the test order to cancel. + # @param [Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest] orders_cancel_test_order_by_customer_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse + 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 + + # Sandbox only. Creates a test order. + # @param [Fixnum] merchant_id + # The ID of the account that should manage the order. This cannot be a multi- + # client account. + # @param [Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest] orders_create_test_order_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse + 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 + + # Sandbox only. Creates a test return. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest] orders_create_test_return_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse + 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 + + # Retrieves an order from your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Order] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Order] + # + # @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) + 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 + + # Retrieves an order using merchant order id. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] merchant_order_id + # The merchant order id to be looked for. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse] + # + # @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) + 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 + + # Sandbox only. Retrieves an order template that can be used to quickly create a + # new order in sandbox. + # @param [Fixnum] merchant_id + # The ID of the account that should manage the order. This cannot be a multi- + # client account. + # @param [String] template_name + # The name of the template to retrieve. + # @param [String] country + # The country of the template to retrieve. Defaults to US. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse] + # + # @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) + 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? + command.params['templateName'] = template_name unless template_name.nil? + 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 + + # Notifies that item return and refund was handled directly by merchant outside + # of Google payments processing (e.g. cash refund done in store). + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest] orders_in_store_refund_line_item_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse + 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 + + # Lists the orders in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @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. + # @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. + # Known issue: All List calls will return all Orders without limit regardless of + # the value of this field. + # @param [String] order_by + # The ordering of the returned list. The only supported value are placedDate + # desc and placedDate asc for now, which returns orders sorted by placement date. + # "placedDate desc" stands for listing orders by placement date, from oldest to + # most recent. "placedDate asc" stands for listing orders by placement date, + # from most recent to oldest. In future releases we'll support other sorting + # criteria. + # @param [String] page_token + # The token returned by the previous request. + # @param [String] placed_date_end + # Obtains orders placed before this date (exclusively), in ISO 8601 format. + # @param [String] placed_date_start + # Obtains orders placed after this date (inclusively), in ISO 8601 format. + # @param [Array, String] statuses + # Obtains orders that match any of the specified statuses. Multiple values can + # be specified with comma separation. Additionally, please note that active is a + # shortcut for pendingShipment and partiallyShipped, and completed is a shortcut + # for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and + # canceled. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersListResponse] + # + # @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) + 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? + command.query['acknowledged'] = acknowledged unless acknowledged.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['placedDateEnd'] = placed_date_end unless placed_date_end.nil? + command.query['placedDateStart'] = placed_date_start unless placed_date_start.nil? + 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 + + # Rejects return on an line item. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest] orders_reject_return_line_item_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse + 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 + + # Returns and refunds a line item. Note that this method can only be called on + # fully shipped orders. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest] orders_return_refund_line_item_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse + 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 + + # Sets (overrides) merchant provided annotations on the line item. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest] orders_set_line_item_metadata_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse + 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 + + # Marks line item(s) as shipped. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersShipLineItemsRequest] orders_ship_line_items_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersShipLineItemsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersShipLineItemsResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse + 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 + + # Updates ship by and delivery by dates for a line item. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest] orders_update_line_item_shipping_details_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse + 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 + + # Updates the merchant order ID for a given order. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest] orders_update_merchant_order_id_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse + 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 + + # Updates a shipment's status, carrier, and/or tracking ID. + # @param [Fixnum] merchant_id + # The ID of the account that manages the order. This cannot be a multi-client + # account. + # @param [String] order_id + # The ID of the order. + # @param [Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest] orders_update_shipment_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse + 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 + + # Batches multiple POS-related calls in a single request. + # @param [Google::Apis::ContentV2_1::PosCustomBatchRequest] pos_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::PosCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::PosCustomBatchResponse] + # + # @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) + 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 + + # Deletes a store for the given merchant. + # @param [Fixnum] merchant_id + # The ID of the POS or inventory data provider. + # @param [Fixnum] target_merchant_id + # The ID of the target merchant. + # @param [String] store_code + # A store code that is unique per merchant. + # @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. + # @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_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) + 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 + + # Retrieves information about the given store. + # @param [Fixnum] merchant_id + # The ID of the POS or inventory data provider. + # @param [Fixnum] target_merchant_id + # The ID of the target merchant. + # @param [String] store_code + # A store code that is unique per merchant. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::PosStore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::PosStore] + # + # @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) + 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? + 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 + + # Creates a store for the given merchant. + # @param [Fixnum] merchant_id + # The ID of the POS or inventory data provider. + # @param [Fixnum] target_merchant_id + # The ID of the target merchant. + # @param [Google::Apis::ContentV2_1::PosStore] pos_store_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::PosStore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::PosStore] + # + # @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) + command.request_representation = Google::Apis::ContentV2_1::PosStore::Representation + command.request_object = pos_store_object + 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? + 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 + + # Submit inventory for the given merchant. + # @param [Fixnum] merchant_id + # The ID of the POS or inventory data provider. + # @param [Fixnum] target_merchant_id + # The ID of the target merchant. + # @param [Google::Apis::ContentV2_1::PosInventoryRequest] pos_inventory_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::PosInventoryResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::PosInventoryResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::PosInventoryResponse + 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 + + # Lists the stores of the target merchant. + # @param [Fixnum] merchant_id + # The ID of the POS or inventory data provider. + # @param [Fixnum] target_merchant_id + # The ID of the target merchant. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::PosListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::PosListResponse] + # + # @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) + 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 + + # Submit a sale event for the given merchant. + # @param [Fixnum] merchant_id + # The ID of the POS or inventory data provider. + # @param [Fixnum] target_merchant_id + # The ID of the target merchant. + # @param [Google::Apis::ContentV2_1::PosSaleRequest] pos_sale_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::PosSaleResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::PosSaleResponse] + # + # @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) + 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 + command.response_class = Google::Apis::ContentV2_1::PosSaleResponse + 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 + + # Retrieves, inserts, and deletes multiple products in a single request. + # @param [Google::Apis::ContentV2_1::ProductsCustomBatchRequest] products_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ProductsCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ProductsCustomBatchResponse] + # + # @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) + 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 + + # Deletes a product from your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that contains the product. This account cannot be a + # multi-client account. + # @param [String] product_id + # The REST id of the product. + # @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. + # @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_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{merchantId}/products/{productId}', options) + 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 + + # Retrieves a product from your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that contains the product. This account cannot be a + # multi-client account. + # @param [String] product_id + # The REST id of the product. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Product] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Product] + # + # @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) + 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 + + # Uploads a product to your Merchant Center account. If an item with the same + # channel, contentLanguage, offerId, and targetCountry already exists, this + # method updates that entry. + # @param [Fixnum] merchant_id + # The ID of the account that contains the product. This account cannot be a + # multi-client account. + # @param [Google::Apis::ContentV2_1::Product] product_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Product] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Product] + # + # @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, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{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 + command.response_class = Google::Apis::ContentV2_1::Product + 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 + + # Lists the products in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that contains the products. This account cannot be a + # multi-client account. + # @param [Fixnum] max_results + # The maximum number of products to return in the response, used for paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ProductsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ProductsListResponse] + # + # @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) + 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? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Gets the statuses of multiple products in a single request. + # @param [Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest] productstatuses_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse] + # + # @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) + 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 + + # Gets the status of a product from your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that contains the product. This account cannot be a + # multi-client account. + # @param [String] product_id + # The REST id of the product. + # @param [Array, String] destinations + # If set, only issues for the specified destinations are returned, otherwise + # only issues for the Shopping destination. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ProductStatus] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ProductStatus] + # + # @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) + 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? + command.params['productId'] = product_id unless product_id.nil? + 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 + + # Lists the statuses of the products in your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the account that contains the products. This account cannot be a + # multi-client account. + # @param [Array, String] destinations + # If set, only issues for the specified destinations are returned, otherwise + # only issues for the Shopping destination. + # @param [Fixnum] max_results + # The maximum number of product statuses to return in the response, used for + # paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ProductstatusesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ProductstatusesListResponse] + # + # @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) + 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? + command.query['destinations'] = destinations unless destinations.nil? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves and updates the shipping settings of multiple accounts in a single + # request. + # @param [Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest] shippingsettings_custom_batch_request_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse] + # + # @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) + 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 + + # Retrieves the shipping settings of the account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to get/update shipping settings. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ShippingSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ShippingSettings] + # + # @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) + 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 + + # Retrieves supported carriers and carrier services for an account. + # @param [Fixnum] merchant_id + # The ID of the account for which to retrieve the supported carriers. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse] + # + # @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) + 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 + + # Retrieves supported holidays for an account. + # @param [Fixnum] merchant_id + # The ID of the account for which to retrieve the supported holidays. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse] + # + # @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) + 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 + + # Lists the shipping settings of the sub-accounts in your Merchant Center + # account. + # @param [Fixnum] merchant_id + # The ID of the managing account. This must be a multi-client account. + # @param [Fixnum] max_results + # The maximum number of shipping settings to return in the response, used for + # paging. + # @param [String] page_token + # The token returned by the previous request. + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ShippingsettingsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ShippingsettingsListResponse] + # + # @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) + 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? + command.query['maxResults'] = max_results unless max_results.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the shipping settings of the account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to get/update shipping settings. + # @param [Google::Apis::ContentV2_1::ShippingSettings] shipping_settings_object + # @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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ShippingSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ShippingSettings] + # + # @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) + command.request_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation + command.request_object = shipping_settings_object + 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 + + protected + + 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 + end +end diff --git a/generated/google/apis/streetviewpublish_v1.rb b/generated/google/apis/streetviewpublish_v1.rb index bc2da10f6..07f1e0de3 100644 --- a/generated/google/apis/streetviewpublish_v1.rb +++ b/generated/google/apis/streetviewpublish_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/streetview/publish/ module StreetviewpublishV1 VERSION = 'V1' - REVISION = '20181108' + REVISION = '20181204' # Publish and manage your 360 photos on Google Street View AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish' diff --git a/generated/google/apis/streetviewpublish_v1/service.rb b/generated/google/apis/streetviewpublish_v1/service.rb index 1a0065f00..1015cc1ad 100644 --- a/generated/google/apis/streetviewpublish_v1/service.rb +++ b/generated/google/apis/streetviewpublish_v1/service.rb @@ -418,6 +418,11 @@ module Google # updateMask # field are used. If `updateMask` is not present, the update applies to all # fields. + # The number of + # UpdatePhotoRequest + # messages in a + # BatchUpdatePhotosRequest + # must not exceed 20. #