diff --git a/api_names_out.yaml b/api_names_out.yaml index 52042fcc7..b955a73b9 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -57243,6 +57243,10 @@ "/content:v2.1/DatafeedstatusesListResponse/nextPageToken": next_page_token "/content:v2.1/DatafeedstatusesListResponse/resources": resources "/content:v2.1/DatafeedstatusesListResponse/resources/resource": resource +"/content:v2.1/Date": date +"/content:v2.1/Date/day": day +"/content:v2.1/Date/month": month +"/content:v2.1/Date/year": year "/content:v2.1/DateTime": date_time "/content:v2.1/DateTime/day": day "/content:v2.1/DateTime/hours": hours @@ -57306,6 +57310,9 @@ "/content:v2.1/HolidaysHoliday/deliveryGuaranteeHour": delivery_guarantee_hour "/content:v2.1/HolidaysHoliday/id": id "/content:v2.1/HolidaysHoliday/type": type +"/content:v2.1/InapplicabilityDetails": inapplicability_details +"/content:v2.1/InapplicabilityDetails/inapplicableCount": inapplicable_count +"/content:v2.1/InapplicabilityDetails/inapplicableReason": inapplicable_reason "/content:v2.1/Installment": installment "/content:v2.1/Installment/amount": amount "/content:v2.1/Installment/months": months @@ -57419,6 +57426,14 @@ "/content:v2.1/ListRegionsResponse/nextPageToken": next_page_token "/content:v2.1/ListRegionsResponse/regions": regions "/content:v2.1/ListRegionsResponse/regions/region": region +"/content:v2.1/ListRepricingProductReportsResponse": list_repricing_product_reports_response +"/content:v2.1/ListRepricingProductReportsResponse/nextPageToken": next_page_token +"/content:v2.1/ListRepricingProductReportsResponse/repricingProductReports": repricing_product_reports +"/content:v2.1/ListRepricingProductReportsResponse/repricingProductReports/repricing_product_report": repricing_product_report +"/content:v2.1/ListRepricingRuleReportsResponse": list_repricing_rule_reports_response +"/content:v2.1/ListRepricingRuleReportsResponse/nextPageToken": next_page_token +"/content:v2.1/ListRepricingRuleReportsResponse/repricingRuleReports": repricing_rule_reports +"/content:v2.1/ListRepricingRuleReportsResponse/repricingRuleReports/repricing_rule_report": repricing_rule_report "/content:v2.1/ListRepricingRulesResponse": list_repricing_rules_response "/content:v2.1/ListRepricingRulesResponse/nextPageToken": next_page_token "/content:v2.1/ListRepricingRulesResponse/repricingRules": repricing_rules @@ -57909,6 +57924,9 @@ "/content:v2.1/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/carrier": carrier "/content:v2.1/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/shipmentId": shipment_id "/content:v2.1/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/trackingId": tracking_id +"/content:v2.1/OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails": orders_custom_batch_request_entry_update_shipment_scheduled_delivery_details +"/content:v2.1/OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails/carrierPhoneNumber": carrier_phone_number +"/content:v2.1/OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails/scheduledDate": scheduled_date "/content:v2.1/OrdersGetByMerchantOrderIdResponse": orders_get_by_merchant_order_id_response "/content:v2.1/OrdersGetByMerchantOrderIdResponse/kind": kind "/content:v2.1/OrdersGetByMerchantOrderIdResponse/order": order @@ -58013,6 +58031,7 @@ "/content:v2.1/OrdersUpdateShipmentRequest/lastPickupDate": last_pickup_date "/content:v2.1/OrdersUpdateShipmentRequest/operationId": operation_id "/content:v2.1/OrdersUpdateShipmentRequest/readyPickupDate": ready_pickup_date +"/content:v2.1/OrdersUpdateShipmentRequest/scheduledDeliveryDetails": scheduled_delivery_details "/content:v2.1/OrdersUpdateShipmentRequest/shipmentId": shipment_id "/content:v2.1/OrdersUpdateShipmentRequest/status": status "/content:v2.1/OrdersUpdateShipmentRequest/trackingId": tracking_id @@ -58430,7 +58449,23 @@ "/content:v2.1/RegionalinventoryCustomBatchResponseEntry/errors": errors "/content:v2.1/RegionalinventoryCustomBatchResponseEntry/kind": kind "/content:v2.1/RegionalinventoryCustomBatchResponseEntry/regionalInventory": regional_inventory +"/content:v2.1/RepricingProductReport": repricing_product_report +"/content:v2.1/RepricingProductReport/applicationCount": application_count +"/content:v2.1/RepricingProductReport/buyboxWinningProductStats": buybox_winning_product_stats +"/content:v2.1/RepricingProductReport/date": date +"/content:v2.1/RepricingProductReport/highWatermark": high_watermark +"/content:v2.1/RepricingProductReport/inapplicabilityDetails": inapplicability_details +"/content:v2.1/RepricingProductReport/inapplicabilityDetails/inapplicability_detail": inapplicability_detail +"/content:v2.1/RepricingProductReport/lowWatermark": low_watermark +"/content:v2.1/RepricingProductReport/orderItemCount": order_item_count +"/content:v2.1/RepricingProductReport/ruleIds": rule_ids +"/content:v2.1/RepricingProductReport/ruleIds/rule_id": rule_id +"/content:v2.1/RepricingProductReport/totalGmv": total_gmv +"/content:v2.1/RepricingProductReport/type": type +"/content:v2.1/RepricingProductReportBuyboxWinningProductStats": repricing_product_report_buybox_winning_product_stats +"/content:v2.1/RepricingProductReportBuyboxWinningProductStats/buyboxWinsCount": buybox_wins_count "/content:v2.1/RepricingRule": repricing_rule +"/content:v2.1/RepricingRule/cogsBasedRule": cogs_based_rule "/content:v2.1/RepricingRule/countryCode": country_code "/content:v2.1/RepricingRule/effectiveTimePeriod": effective_time_period "/content:v2.1/RepricingRule/eligibleOfferMatcher": eligible_offer_matcher @@ -58439,8 +58474,12 @@ "/content:v2.1/RepricingRule/paused": paused "/content:v2.1/RepricingRule/restriction": restriction "/content:v2.1/RepricingRule/ruleId": rule_id +"/content:v2.1/RepricingRule/statsBasedRule": stats_based_rule "/content:v2.1/RepricingRule/title": title "/content:v2.1/RepricingRule/type": type +"/content:v2.1/RepricingRuleCostOfGoodsSaleRule": repricing_rule_cost_of_goods_sale_rule +"/content:v2.1/RepricingRuleCostOfGoodsSaleRule/percentageDelta": percentage_delta +"/content:v2.1/RepricingRuleCostOfGoodsSaleRule/priceDelta": price_delta "/content:v2.1/RepricingRuleEffectiveTime": repricing_rule_effective_time "/content:v2.1/RepricingRuleEffectiveTime/fixedTimePeriods": fixed_time_periods "/content:v2.1/RepricingRuleEffectiveTime/fixedTimePeriods/fixed_time_period": fixed_time_period @@ -58456,12 +58495,30 @@ "/content:v2.1/RepricingRuleEligibleOfferMatcherStringMatcher": repricing_rule_eligible_offer_matcher_string_matcher "/content:v2.1/RepricingRuleEligibleOfferMatcherStringMatcher/strAttributes": str_attributes "/content:v2.1/RepricingRuleEligibleOfferMatcherStringMatcher/strAttributes/str_attribute": str_attribute +"/content:v2.1/RepricingRuleReport": repricing_rule_report +"/content:v2.1/RepricingRuleReport/buyboxWinningRuleStats": buybox_winning_rule_stats +"/content:v2.1/RepricingRuleReport/date": date +"/content:v2.1/RepricingRuleReport/impactedProducts": impacted_products +"/content:v2.1/RepricingRuleReport/impactedProducts/impacted_product": impacted_product +"/content:v2.1/RepricingRuleReport/inapplicabilityDetails": inapplicability_details +"/content:v2.1/RepricingRuleReport/inapplicabilityDetails/inapplicability_detail": inapplicability_detail +"/content:v2.1/RepricingRuleReport/inapplicableProducts": inapplicable_products +"/content:v2.1/RepricingRuleReport/inapplicableProducts/inapplicable_product": inapplicable_product +"/content:v2.1/RepricingRuleReport/orderItemCount": order_item_count +"/content:v2.1/RepricingRuleReport/ruleId": rule_id +"/content:v2.1/RepricingRuleReport/totalGmv": total_gmv +"/content:v2.1/RepricingRuleReport/type": type +"/content:v2.1/RepricingRuleReportBuyboxWinningRuleStats": repricing_rule_report_buybox_winning_rule_stats +"/content:v2.1/RepricingRuleReportBuyboxWinningRuleStats/buyboxWonProductCount": buybox_won_product_count "/content:v2.1/RepricingRuleRestriction": repricing_rule_restriction "/content:v2.1/RepricingRuleRestriction/floor": floor "/content:v2.1/RepricingRuleRestriction/useAutoPricingMinPrice": use_auto_pricing_min_price "/content:v2.1/RepricingRuleRestrictionBoundary": repricing_rule_restriction_boundary "/content:v2.1/RepricingRuleRestrictionBoundary/percentageDelta": percentage_delta "/content:v2.1/RepricingRuleRestrictionBoundary/priceDelta": price_delta +"/content:v2.1/RepricingRuleStatsBasedRule": repricing_rule_stats_based_rule +"/content:v2.1/RepricingRuleStatsBasedRule/percentageDelta": percentage_delta +"/content:v2.1/RepricingRuleStatsBasedRule/priceDelta": price_delta "/content:v2.1/ReturnAddress": return_address "/content:v2.1/ReturnAddress/address": address "/content:v2.1/ReturnAddress/country": country @@ -58716,6 +58773,7 @@ "/content:v2.1/TestOrderCustomerMarketingRightsInfo/lastUpdatedTimestamp": last_updated_timestamp "/content:v2.1/TestOrderDeliveryDetails": test_order_delivery_details "/content:v2.1/TestOrderDeliveryDetails/address": address +"/content:v2.1/TestOrderDeliveryDetails/isScheduledDelivery": is_scheduled_delivery "/content:v2.1/TestOrderDeliveryDetails/phoneNumber": phone_number "/content:v2.1/TestOrderLineItem": test_order_line_item "/content:v2.1/TestOrderLineItem/product": product @@ -59112,6 +59170,14 @@ "/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.productstatuses.repricingreports.list": list_productstatus_repricingreports +"/content:v2.1/content.productstatuses.repricingreports.list/endDate": end_date +"/content:v2.1/content.productstatuses.repricingreports.list/merchantId": merchant_id +"/content:v2.1/content.productstatuses.repricingreports.list/pageSize": page_size +"/content:v2.1/content.productstatuses.repricingreports.list/pageToken": page_token +"/content:v2.1/content.productstatuses.repricingreports.list/productId": product_id +"/content:v2.1/content.productstatuses.repricingreports.list/ruleId": rule_id +"/content:v2.1/content.productstatuses.repricingreports.list/startDate": start_date "/content:v2.1/content.pubsubnotificationsettings.get": get_pubsubnotificationsetting "/content:v2.1/content.pubsubnotificationsettings.get/merchantId": merchant_id "/content:v2.1/content.pubsubnotificationsettings.update": update_pubsubnotificationsetting @@ -59155,6 +59221,13 @@ "/content:v2.1/content.repricingrules.patch": patch_repricingrule "/content:v2.1/content.repricingrules.patch/merchantId": merchant_id "/content:v2.1/content.repricingrules.patch/ruleId": rule_id +"/content:v2.1/content.repricingrules.repricingreports.list": list_repricingrule_repricingreports +"/content:v2.1/content.repricingrules.repricingreports.list/endDate": end_date +"/content:v2.1/content.repricingrules.repricingreports.list/merchantId": merchant_id +"/content:v2.1/content.repricingrules.repricingreports.list/pageSize": page_size +"/content:v2.1/content.repricingrules.repricingreports.list/pageToken": page_token +"/content:v2.1/content.repricingrules.repricingreports.list/ruleId": rule_id +"/content:v2.1/content.repricingrules.repricingreports.list/startDate": start_date "/content:v2.1/content.returnaddress.custombatch": custombatch_returnaddress "/content:v2.1/content.returnaddress.delete": delete_returnaddress "/content:v2.1/content.returnaddress.delete/merchantId": merchant_id diff --git a/generated/google/apis/content.v2_1/synth.metadata b/generated/google/apis/content.v2_1/synth.metadata index 2dbcf5316..e0da85f30 100644 --- a/generated/google/apis/content.v2_1/synth.metadata +++ b/generated/google/apis/content.v2_1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "0492accc8a44d0f28a484a67f7940d74246ab88d" + "sha": "3eb7b044d3605c38773a6c874a3f1826f98701f9" } } ] diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 83f1f0b2f..4a7ae425d 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/shopping-content/v2/ module ContentV2_1 VERSION = 'V2_1' - REVISION = '20201204' + REVISION = '20201211' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index 345f8cc11..4485b424d 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -2498,6 +2498,47 @@ module Google end end + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to + # specify a year by itself or a year and month where the day isn't significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month + # and day. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a + # year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + # Represents civil time (or occasionally physical time). This type can represent # a civil time in one of a few possible ways: * When utc_offset is set and # time_zone is unset: a civil time on a calendar day with a particular offset @@ -2953,6 +2994,31 @@ module Google end end + # Map of inapplicability details. + class InapplicabilityDetails + include Google::Apis::Core::Hashable + + # Count of this inapplicable reason code. + # Corresponds to the JSON property `inapplicableCount` + # @return [Fixnum] + attr_accessor :inapplicable_count + + # Reason code this rule was not applicable. + # Corresponds to the JSON property `inapplicableReason` + # @return [String] + attr_accessor :inapplicable_reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inapplicable_count = args[:inapplicable_count] if args.key?(:inapplicable_count) + @inapplicable_reason = args[:inapplicable_reason] if args.key?(:inapplicable_reason) + end + end + # class Installment include Google::Apis::Core::Hashable @@ -3737,6 +3803,58 @@ module Google end end + # Response message for the ListRepricingProductReports method. + class ListRepricingProductReportsResponse + include Google::Apis::Core::Hashable + + # A token for retrieving the next page. Its absence means there is no subsequent + # page. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Periodic reports for the given Repricing product. + # Corresponds to the JSON property `repricingProductReports` + # @return [Array] + attr_accessor :repricing_product_reports + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @repricing_product_reports = args[:repricing_product_reports] if args.key?(:repricing_product_reports) + end + end + + # Response message for the ListRepricingRuleReports method. + class ListRepricingRuleReportsResponse + include Google::Apis::Core::Hashable + + # A token for retrieving the next page. Its absence means there is no subsequent + # page. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Daily reports for the given Repricing rule. + # Corresponds to the JSON property `repricingRuleReports` + # @return [Array] + attr_accessor :repricing_rule_reports + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @repricing_rule_reports = args[:repricing_rule_reports] if args.key?(:repricing_rule_reports) + end + end + # Response message for the `ListRepricingRules` method. class ListRepricingRulesResponse include Google::Apis::Core::Hashable @@ -7201,6 +7319,32 @@ module Google end end + # ScheduledDeliveryDetails used to update the scheduled delivery order. + class OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails + include Google::Apis::Core::Hashable + + # The phone number of the carrier fulfilling the delivery. The phone number + # should be formatted as the international notation in + # Corresponds to the JSON property `carrierPhoneNumber` + # @return [String] + attr_accessor :carrier_phone_number + + # The date a shipment is scheduled for delivery, in ISO 8601 format. + # Corresponds to the JSON property `scheduledDate` + # @return [String] + attr_accessor :scheduled_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier_phone_number = args[:carrier_phone_number] if args.key?(:carrier_phone_number) + @scheduled_date = args[:scheduled_date] if args.key?(:scheduled_date) + end + end + # class OrdersGetByMerchantOrderIdResponse include Google::Apis::Core::Hashable @@ -8002,6 +8146,11 @@ module Google # @return [String] attr_accessor :ready_pickup_date + # ScheduledDeliveryDetails used to update the scheduled delivery order. + # Corresponds to the JSON property `scheduledDeliveryDetails` + # @return [Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails] + attr_accessor :scheduled_delivery_details + # The ID of the shipment. # Corresponds to the JSON property `shipmentId` # @return [String] @@ -8035,6 +8184,7 @@ module Google @last_pickup_date = args[:last_pickup_date] if args.key?(:last_pickup_date) @operation_id = args[:operation_id] if args.key?(:operation_id) @ready_pickup_date = args[:ready_pickup_date] if args.key?(:ready_pickup_date) + @scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details) @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) @@ -10758,11 +10908,126 @@ module Google end end + # Resource that represents a daily Repricing product report. Each report + # contains stats for a single type of Repricing rule for a single product on a + # given day. If there are multiple rules of the same type for the product on + # that day, the report lists all the rules by rule ids, combines the stats, and + # paginates the results by date. To retrieve the stats of a particular rule, + # provide the rule_id in the request. + class RepricingProductReport + include Google::Apis::Core::Hashable + + # Total count of Repricer applications. This value captures how many times the + # rule of this type was applied to this product during this reporting period. + # Corresponds to the JSON property `applicationCount` + # @return [Fixnum] + attr_accessor :application_count + + # Stats specific to buybox winning rules for product report. + # Corresponds to the JSON property `buyboxWinningProductStats` + # @return [Google::Apis::ContentV2_1::RepricingProductReportBuyboxWinningProductStats] + attr_accessor :buybox_winning_product_stats + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. + # Corresponds to the JSON property `date` + # @return [Google::Apis::ContentV2_1::Date] + attr_accessor :date + + # The price represented as a number and currency. + # Corresponds to the JSON property `highWatermark` + # @return [Google::Apis::ContentV2_1::PriceAmount] + attr_accessor :high_watermark + + # List of all reasons the rule did not apply to the product during the specified + # reporting period. + # Corresponds to the JSON property `inapplicabilityDetails` + # @return [Array] + attr_accessor :inapplicability_details + + # The price represented as a number and currency. + # Corresponds to the JSON property `lowWatermark` + # @return [Google::Apis::ContentV2_1::PriceAmount] + attr_accessor :low_watermark + + # Total unit count of impacted products ordered while the rule was active on the + # date of the report. This count includes all orders that were started while the + # rule was active, even if the rule was no longer active when the order was + # completed. + # Corresponds to the JSON property `orderItemCount` + # @return [Fixnum] + attr_accessor :order_item_count + + # Ids of the Repricing rule for this report. + # Corresponds to the JSON property `ruleIds` + # @return [Array] + attr_accessor :rule_ids + + # The price represented as a number and currency. + # Corresponds to the JSON property `totalGmv` + # @return [Google::Apis::ContentV2_1::PriceAmount] + attr_accessor :total_gmv + + # Type of the rule. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @application_count = args[:application_count] if args.key?(:application_count) + @buybox_winning_product_stats = args[:buybox_winning_product_stats] if args.key?(:buybox_winning_product_stats) + @date = args[:date] if args.key?(:date) + @high_watermark = args[:high_watermark] if args.key?(:high_watermark) + @inapplicability_details = args[:inapplicability_details] if args.key?(:inapplicability_details) + @low_watermark = args[:low_watermark] if args.key?(:low_watermark) + @order_item_count = args[:order_item_count] if args.key?(:order_item_count) + @rule_ids = args[:rule_ids] if args.key?(:rule_ids) + @total_gmv = args[:total_gmv] if args.key?(:total_gmv) + @type = args[:type] if args.key?(:type) + end + end + + # Stats specific to buybox winning rules for product report. + class RepricingProductReportBuyboxWinningProductStats + include Google::Apis::Core::Hashable + + # Number of times this product won the buybox with these rules during this time + # period. + # Corresponds to the JSON property `buyboxWinsCount` + # @return [Fixnum] + attr_accessor :buybox_wins_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buybox_wins_count = args[:buybox_wins_count] if args.key?(:buybox_wins_count) + end + end + # Represents a repricing rule. A repricing rule is used by shopping serving to # adjust transactable offer prices if conditions are met. Next ID: 24 class RepricingRule include Google::Apis::Core::Hashable + # A repricing rule that changes the sale price based on cost of goods sale. + # Corresponds to the JSON property `cogsBasedRule` + # @return [Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule] + attr_accessor :cogs_based_rule + # Required. Immutable. CLDR country code (e.g. "US"). # Corresponds to the JSON property `countryCode` # @return [String] @@ -10820,6 +11085,11 @@ module Google # @return [String] attr_accessor :rule_id + # Definition of stats based rule. + # Corresponds to the JSON property `statsBasedRule` + # @return [Google::Apis::ContentV2_1::RepricingRuleStatsBasedRule] + attr_accessor :stats_based_rule + # The title for the rule. # Corresponds to the JSON property `title` # @return [String] @@ -10836,6 +11106,7 @@ module Google # Update properties of this object def update!(**args) + @cogs_based_rule = args[:cogs_based_rule] if args.key?(:cogs_based_rule) @country_code = args[:country_code] if args.key?(:country_code) @effective_time_period = args[:effective_time_period] if args.key?(:effective_time_period) @eligible_offer_matcher = args[:eligible_offer_matcher] if args.key?(:eligible_offer_matcher) @@ -10844,11 +11115,38 @@ module Google @paused = args[:paused] if args.key?(:paused) @restriction = args[:restriction] if args.key?(:restriction) @rule_id = args[:rule_id] if args.key?(:rule_id) + @stats_based_rule = args[:stats_based_rule] if args.key?(:stats_based_rule) @title = args[:title] if args.key?(:title) @type = args[:type] if args.key?(:type) end end + # A repricing rule that changes the sale price based on cost of goods sale. + class RepricingRuleCostOfGoodsSaleRule + include Google::Apis::Core::Hashable + + # The percent change against the COGS. Ex: 20 would mean to set the adjusted + # price 1.2X of the COGS data. + # Corresponds to the JSON property `percentageDelta` + # @return [Fixnum] + attr_accessor :percentage_delta + + # The price delta against the COGS. E.g. 2 means $2 more of the COGS. + # Corresponds to the JSON property `priceDelta` + # @return [String] + attr_accessor :price_delta + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) + @price_delta = args[:price_delta] if args.key?(:price_delta) + end + end + # class RepricingRuleEffectiveTime include Google::Apis::Core::Hashable @@ -10968,6 +11266,108 @@ module Google end end + # Resource that represents a daily Repricing rule report. Next ID: 11 + class RepricingRuleReport + include Google::Apis::Core::Hashable + + # Stats specific to buybox winning rules for rule report. + # Corresponds to the JSON property `buyboxWinningRuleStats` + # @return [Google::Apis::ContentV2_1::RepricingRuleReportBuyboxWinningRuleStats] + attr_accessor :buybox_winning_rule_stats + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. + # Corresponds to the JSON property `date` + # @return [Google::Apis::ContentV2_1::Date] + attr_accessor :date + + # List of product ids that are impacted by this rule during this reporting + # period. Out of stock products and products not searched for by customers are + # examples of non-impacted products. + # Corresponds to the JSON property `impactedProducts` + # @return [Array] + attr_accessor :impacted_products + + # List of all reasons the rule did not apply to the inapplicable products during + # the specified reporting period. + # Corresponds to the JSON property `inapplicabilityDetails` + # @return [Array] + attr_accessor :inapplicability_details + + # List of product ids that are inapplicable to this rule during this reporting + # period. To get the inapplicable reason for a specific product, see + # RepricingProductReport. + # Corresponds to the JSON property `inapplicableProducts` + # @return [Array] + attr_accessor :inapplicable_products + + # Total unit count of impacted products ordered while the rule was active on the + # date of the report. This count includes all orders that were started while the + # rule was active, even if the rule was no longer active when the order was + # completed. + # Corresponds to the JSON property `orderItemCount` + # @return [Fixnum] + attr_accessor :order_item_count + + # Id of the Repricing rule for this report. + # Corresponds to the JSON property `ruleId` + # @return [String] + attr_accessor :rule_id + + # The price represented as a number and currency. + # Corresponds to the JSON property `totalGmv` + # @return [Google::Apis::ContentV2_1::PriceAmount] + attr_accessor :total_gmv + + # Type of the rule. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buybox_winning_rule_stats = args[:buybox_winning_rule_stats] if args.key?(:buybox_winning_rule_stats) + @date = args[:date] if args.key?(:date) + @impacted_products = args[:impacted_products] if args.key?(:impacted_products) + @inapplicability_details = args[:inapplicability_details] if args.key?(:inapplicability_details) + @inapplicable_products = args[:inapplicable_products] if args.key?(:inapplicable_products) + @order_item_count = args[:order_item_count] if args.key?(:order_item_count) + @rule_id = args[:rule_id] if args.key?(:rule_id) + @total_gmv = args[:total_gmv] if args.key?(:total_gmv) + @type = args[:type] if args.key?(:type) + end + end + + # Stats specific to buybox winning rules for rule report. + class RepricingRuleReportBuyboxWinningRuleStats + include Google::Apis::Core::Hashable + + # Number of unique products that won the buybox with this rule during this + # period of time. + # Corresponds to the JSON property `buyboxWonProductCount` + # @return [Fixnum] + attr_accessor :buybox_won_product_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buybox_won_product_count = args[:buybox_won_product_count] if args.key?(:buybox_won_product_count) + end + end + # Definition of a rule restriction. At least one of the following needs to be # true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) # floor.percentage_delta exists If floor.price_delta and floor.percentage_delta @@ -11035,6 +11435,33 @@ module Google end end + # Definition of stats based rule. + class RepricingRuleStatsBasedRule + include Google::Apis::Core::Hashable + + # The percent change against the price target. Valid from 0 to 100 inclusively. + # Corresponds to the JSON property `percentageDelta` + # @return [Fixnum] + attr_accessor :percentage_delta + + # The price delta against the above price target. A positive value means the + # price should be adjusted to be above statistical measure, and a negative value + # means below. Currency code must not be included. + # Corresponds to the JSON property `priceDelta` + # @return [String] + attr_accessor :price_delta + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) + @price_delta = args[:price_delta] if args.key?(:price_delta) + end + end + # Return address resource. class ReturnAddress include Google::Apis::Core::Hashable @@ -12752,6 +13179,12 @@ module Google # @return [Google::Apis::ContentV2_1::TestOrderAddress] attr_accessor :address + # Whether the order is scheduled delivery order. + # Corresponds to the JSON property `isScheduledDelivery` + # @return [Boolean] + attr_accessor :is_scheduled_delivery + alias_method :is_scheduled_delivery?, :is_scheduled_delivery + # The phone number of the person receiving the delivery. # Corresponds to the JSON property `phoneNumber` # @return [String] @@ -12764,6 +13197,7 @@ module Google # Update properties of this object def update!(**args) @address = args[:address] if args.key?(:address) + @is_scheduled_delivery = args[:is_scheduled_delivery] if args.key?(:is_scheduled_delivery) @phone_number = args[:phone_number] if args.key?(:phone_number) end end diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index ae23266b7..b0c1b36db 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -418,6 +418,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DateTime class Representation < Google::Apis::Core::JsonRepresentation; end @@ -472,6 +478,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InapplicabilityDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Installment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -628,6 +640,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListRepricingProductReportsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListRepricingRuleReportsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListRepricingRulesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1126,6 +1150,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OrdersGetByMerchantOrderIdResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1594,12 +1624,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RepricingProductReport + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepricingProductReportBuyboxWinningProductStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RepricingRule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RepricingRuleCostOfGoodsSaleRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RepricingRuleEffectiveTime class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1624,6 +1672,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RepricingRuleReport + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RepricingRuleReportBuyboxWinningRuleStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RepricingRuleRestriction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1636,6 +1696,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RepricingRuleStatsBasedRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ReturnAddress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2664,6 +2730,15 @@ module Google end end + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + class DateTime # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2775,6 +2850,14 @@ module Google end end + class InapplicabilityDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :inapplicable_count, :numeric_string => true, as: 'inapplicableCount' + property :inapplicable_reason, as: 'inapplicableReason' + end + end + class Installment # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3023,6 +3106,24 @@ module Google end end + class ListRepricingProductReportsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :repricing_product_reports, as: 'repricingProductReports', class: Google::Apis::ContentV2_1::RepricingProductReport, decorator: Google::Apis::ContentV2_1::RepricingProductReport::Representation + + end + end + + class ListRepricingRuleReportsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :repricing_rule_reports, as: 'repricingRuleReports', class: Google::Apis::ContentV2_1::RepricingRuleReport, decorator: Google::Apis::ContentV2_1::RepricingRuleReport::Representation + + end + end + class ListRepricingRulesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3953,6 +4054,14 @@ module Google end end + class OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier_phone_number, as: 'carrierPhoneNumber' + property :scheduled_date, as: 'scheduledDate' + end + end + class OrdersGetByMerchantOrderIdResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4172,6 +4281,8 @@ module Google property :last_pickup_date, as: 'lastPickupDate' property :operation_id, as: 'operationId' property :ready_pickup_date, as: 'readyPickupDate' + property :scheduled_delivery_details, as: 'scheduledDeliveryDetails', class: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails, decorator: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails::Representation + property :shipment_id, as: 'shipmentId' property :status, as: 'status' property :tracking_id, as: 'trackingId' @@ -4887,9 +4998,40 @@ module Google end end + class RepricingProductReport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :application_count, :numeric_string => true, as: 'applicationCount' + property :buybox_winning_product_stats, as: 'buyboxWinningProductStats', class: Google::Apis::ContentV2_1::RepricingProductReportBuyboxWinningProductStats, decorator: Google::Apis::ContentV2_1::RepricingProductReportBuyboxWinningProductStats::Representation + + property :date, as: 'date', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation + + property :high_watermark, as: 'highWatermark', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation + + collection :inapplicability_details, as: 'inapplicabilityDetails', class: Google::Apis::ContentV2_1::InapplicabilityDetails, decorator: Google::Apis::ContentV2_1::InapplicabilityDetails::Representation + + property :low_watermark, as: 'lowWatermark', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation + + property :order_item_count, as: 'orderItemCount' + collection :rule_ids, as: 'ruleIds' + property :total_gmv, as: 'totalGmv', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation + + property :type, as: 'type' + end + end + + class RepricingProductReportBuyboxWinningProductStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :buybox_wins_count, as: 'buyboxWinsCount' + end + end + class RepricingRule # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cogs_based_rule, as: 'cogsBasedRule', class: Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule, decorator: Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule::Representation + property :country_code, as: 'countryCode' property :effective_time_period, as: 'effectiveTimePeriod', class: Google::Apis::ContentV2_1::RepricingRuleEffectiveTime, decorator: Google::Apis::ContentV2_1::RepricingRuleEffectiveTime::Representation @@ -4901,11 +5043,21 @@ module Google property :restriction, as: 'restriction', class: Google::Apis::ContentV2_1::RepricingRuleRestriction, decorator: Google::Apis::ContentV2_1::RepricingRuleRestriction::Representation property :rule_id, as: 'ruleId' + property :stats_based_rule, as: 'statsBasedRule', class: Google::Apis::ContentV2_1::RepricingRuleStatsBasedRule, decorator: Google::Apis::ContentV2_1::RepricingRuleStatsBasedRule::Representation + property :title, as: 'title' property :type, as: 'type' end end + class RepricingRuleCostOfGoodsSaleRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :percentage_delta, as: 'percentageDelta' + property :price_delta, as: 'priceDelta' + end + end + class RepricingRuleEffectiveTime # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4943,6 +5095,32 @@ module Google end end + class RepricingRuleReport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :buybox_winning_rule_stats, as: 'buyboxWinningRuleStats', class: Google::Apis::ContentV2_1::RepricingRuleReportBuyboxWinningRuleStats, decorator: Google::Apis::ContentV2_1::RepricingRuleReportBuyboxWinningRuleStats::Representation + + property :date, as: 'date', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation + + collection :impacted_products, as: 'impactedProducts' + collection :inapplicability_details, as: 'inapplicabilityDetails', class: Google::Apis::ContentV2_1::InapplicabilityDetails, decorator: Google::Apis::ContentV2_1::InapplicabilityDetails::Representation + + collection :inapplicable_products, as: 'inapplicableProducts' + property :order_item_count, as: 'orderItemCount' + property :rule_id, as: 'ruleId' + property :total_gmv, as: 'totalGmv', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation + + property :type, as: 'type' + end + end + + class RepricingRuleReportBuyboxWinningRuleStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :buybox_won_product_count, as: 'buyboxWonProductCount' + end + end + class RepricingRuleRestriction # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4960,6 +5138,14 @@ module Google end end + class RepricingRuleStatsBasedRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :percentage_delta, as: 'percentageDelta' + property :price_delta, as: 'priceDelta' + end + end + class ReturnAddress # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5445,6 +5631,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :address, as: 'address', class: Google::Apis::ContentV2_1::TestOrderAddress, decorator: Google::Apis::ContentV2_1::TestOrderAddress::Representation + property :is_scheduled_delivery, as: 'isScheduledDelivery' property :phone_number, as: 'phoneNumber' end end diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index ba82ca17a..7436a8c80 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -3521,6 +3521,68 @@ module Google execute_or_queue_command(command, &block) end + # Lists the metrics report for a given Repricing product. Reports of the last 3 + # days may not be complete. + # @param [Fixnum] merchant_id + # Required. Id of the merchant who owns the Repricing rule. + # @param [String] product_id + # Required. Id of the Repricing product. Also known as the [REST_ID](https:// + # developers.google.com/shopping-content/reference/rest/v2.1/products#Product. + # FIELDS.id) + # @param [String] end_date + # Gets Repricing reports on and before this date in the merchant's timezone. You + # can only retrieve data up to 3 days ago (default) or earlier. Format is YYYY- + # MM-DD. + # @param [Fixnum] page_size + # Maximum number of days of reports to return. There can be more than one rule + # report returned per day. For example, if 3 rule types got applied to the same + # product within a 24-hour period, then a page_size of 1 will return 3 rule + # reports. The page size defaults to 50 and values above 1000 are coerced to + # 1000. This service may return fewer days of reports than this value, for + # example, if the time between your start and end date is less than the page + # size. + # @param [String] page_token + # Token (if provided) to retrieve the subsequent page. All other parameters must + # match the original call that provided the page token. + # @param [String] rule_id + # Id of the Repricing rule. If specified, only gets this rule's reports. + # @param [String] start_date + # Gets Repricing reports on and after this date in the merchant's timezone, up + # to one year ago. Do not use a start date later than 3 days ago (default). + # Format is YYYY-MM-DD. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ListRepricingProductReportsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ListRepricingProductReportsResponse] + # + # @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_productstatus_repricingreports(merchant_id, product_id, end_date: nil, page_size: nil, page_token: nil, rule_id: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/productstatuses/{productId}/repricingreports', options) + command.response_representation = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['productId'] = product_id unless product_id.nil? + command.query['endDate'] = end_date unless end_date.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['ruleId'] = rule_id unless rule_id.nil? + command.query['startDate'] = start_date unless start_date.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Retrieves a Merchant Center account's pubsub notification settings. # @param [Fixnum] merchant_id # The ID of the account for which to get pubsub notification settings. @@ -4022,6 +4084,60 @@ module Google execute_or_queue_command(command, &block) end + # Lists the metrics report for a given Repricing rule. Reports of the last 3 + # days may not be complete. + # @param [Fixnum] merchant_id + # Required. Id of the merchant who owns the Repricing rule. + # @param [String] rule_id + # Required. Id of the Repricing rule. + # @param [String] end_date + # Gets Repricing reports on and before this date in the merchant's timezone. You + # can only retrieve data up to 3 days ago (default) or earlier. Format: YYYY-MM- + # DD. + # @param [Fixnum] page_size + # Maximum number of daily reports to return. Each report includes data from a + # single 24-hour period. The page size defaults to 50 and values above 1000 are + # coerced to 1000. This service may return fewer days than this value, for + # example, if the time between your start and end date is less than page size. + # @param [String] page_token + # Token (if provided) to retrieve the subsequent page. All other parameters must + # match the original call that provided the page token. + # @param [String] start_date + # Gets Repricing reports on and after this date in the merchant's timezone, up + # to one year ago. Do not use a start date later than 3 days ago (default). + # Format: YYYY-MM-DD. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse] + # + # @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_repricingrule_repricingreports(merchant_id, rule_id, end_date: nil, page_size: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/repricingrules/{ruleId}/repricingreports', options) + command.response_representation = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['ruleId'] = rule_id unless rule_id.nil? + command.query['endDate'] = end_date unless end_date.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['startDate'] = start_date unless start_date.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Batches multiple return address related calls in a single request. # @param [Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest] returnaddress_custom_batch_request_object # @param [String] fields