google-apis-content_v2_1 0.8.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: febcf98eb3cb969f059dc65244490f060c4278613dbd6fd7497a83068d3ded82
4
- data.tar.gz: d3f20f7250afa7446abc37ad43be65033fa5b970ac16ef5ad074fa3adf144aa4
3
+ metadata.gz: 7ac274ed097b1f2c1a7be67047a59eb3a90bae3c2edad9639f504bb651d8ac4c
4
+ data.tar.gz: 6768997d2766f814331eae9fca158367adb3972f323be68a9b8f37464ba0cb10
5
5
  SHA512:
6
- metadata.gz: 5eae053c5888512bf3d6febc3a0bbf58d7b48d02fb9bab937cbbd46aae5f3f80561e5123d2605962eea0f559af4f3fabf96f60af836e9e66986210feb5306e7e
7
- data.tar.gz: 4c072c6baf2859d74f81e7bb389b5f6ffc5b26b72ad4383fc97291fc779c2faa16e763aa1777bbe042572b915300807e906cc89efde8393ffe29532c20d900ac
6
+ metadata.gz: 1d1729d13429d0bac06af5c6b62aa438423b027c40bf573385706cad3f3b83f48fab02a2e242bcb554ba8cc2c35b9769ce6656f399af49806901a3d92ca8c1fb
7
+ data.tar.gz: da17f691dd248fd6055775ee804f8fbf3d5335f20fed4d56c9099aee449dfc04072ed20742040d54c7f23bae963d52136734f579c96099e4813e749399c4e464
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.13.0 (2021-06-01)
4
+
5
+ * Regenerated from discovery document revision 20210526
6
+
7
+ ### v0.12.0 (2021-05-26)
8
+
9
+ * Regenerated from discovery document revision 20210519
10
+
11
+ ### v0.11.0 (2021-05-19)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.10.0 (2021-05-18)
16
+
17
+ * Regenerated from discovery document revision 20210514
18
+
19
+ ### v0.9.0 (2021-03-30)
20
+
21
+ * Regenerated from discovery document revision 20210325
22
+
3
23
  ### v0.8.0 (2021-03-16)
4
24
 
5
25
  * Regenerated from discovery document revision 20210311
@@ -1123,7 +1123,7 @@ module Google
1123
1123
  attr_accessor :action
1124
1124
 
1125
1125
  # Type of the link between the two accounts. Acceptable values are: - "`
1126
- # channelPartner`" - "`eCommercePlatform`"
1126
+ # channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`"
1127
1127
  # Corresponds to the JSON property `linkType`
1128
1128
  # @return [String]
1129
1129
  attr_accessor :link_type
@@ -1133,9 +1133,14 @@ module Google
1133
1133
  # @return [String]
1134
1134
  attr_accessor :linked_account_id
1135
1135
 
1136
+ # Additional information required for PAYMENT_SERVICE_PROVIDER link type.
1137
+ # Corresponds to the JSON property `paymentServiceProviderLinkInfo`
1138
+ # @return [Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo]
1139
+ attr_accessor :payment_service_provider_link_info
1140
+
1136
1141
  # Acceptable values are: - "`shoppingAdsProductManagement`" - "`
1137
- # shoppingAdsOther`" - "`shoppingActionsProductManagement`" - "`
1138
- # shoppingActionsOrderManagement`" - "`shoppingActionsOther`"
1142
+ # shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`" - "`
1143
+ # paymentProcessing`"
1139
1144
  # Corresponds to the JSON property `services`
1140
1145
  # @return [Array<String>]
1141
1146
  attr_accessor :services
@@ -1149,6 +1154,7 @@ module Google
1149
1154
  @action = args[:action] if args.key?(:action)
1150
1155
  @link_type = args[:link_type] if args.key?(:link_type)
1151
1156
  @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id)
1157
+ @payment_service_provider_link_info = args[:payment_service_provider_link_info] if args.key?(:payment_service_provider_link_info)
1152
1158
  @services = args[:services] if args.key?(:services)
1153
1159
  end
1154
1160
  end
@@ -1587,6 +1593,19 @@ module Google
1587
1593
  end
1588
1594
  end
1589
1595
 
1596
+ # Request message for the ActivateProgram method.
1597
+ class ActivateBuyOnGoogleProgramRequest
1598
+ include Google::Apis::Core::Hashable
1599
+
1600
+ def initialize(**args)
1601
+ update!(**args)
1602
+ end
1603
+
1604
+ # Update properties of this object
1605
+ def update!(**args)
1606
+ end
1607
+ end
1608
+
1590
1609
  #
1591
1610
  class Amount
1592
1611
  include Google::Apis::Core::Hashable
@@ -1728,13 +1747,20 @@ module Google
1728
1747
  # @return [String]
1729
1748
  attr_accessor :country
1730
1749
 
1750
+ # A list of services supported for EDD (Estimated Delivery Date) calculation.
1751
+ # This is the list of valid values for WarehouseBasedDeliveryTime.carrierService.
1752
+ # Corresponds to the JSON property `eddServices`
1753
+ # @return [Array<String>]
1754
+ attr_accessor :edd_services
1755
+
1731
1756
  # The name of the carrier (e.g., `"UPS"`). Always present.
1732
1757
  # Corresponds to the JSON property `name`
1733
1758
  # @return [String]
1734
1759
  attr_accessor :name
1735
1760
 
1736
1761
  # A list of supported services (e.g., `"ground"`) for that carrier. Contains at
1737
- # least one service.
1762
+ # least one service. This is the list of valid values for CarrierRate.
1763
+ # carrierService.
1738
1764
  # Corresponds to the JSON property `services`
1739
1765
  # @return [Array<String>]
1740
1766
  attr_accessor :services
@@ -1746,6 +1772,7 @@ module Google
1746
1772
  # Update properties of this object
1747
1773
  def update!(**args)
1748
1774
  @country = args[:country] if args.key?(:country)
1775
+ @edd_services = args[:edd_services] if args.key?(:edd_services)
1749
1776
  @name = args[:name] if args.key?(:name)
1750
1777
  @services = args[:services] if args.key?(:services)
1751
1778
  end
@@ -3080,6 +3107,13 @@ module Google
3080
3107
  # @return [Google::Apis::ContentV2_1::TransitTable]
3081
3108
  attr_accessor :transit_time_table
3082
3109
 
3110
+ # Indicates that the delivery time should be calculated per warehouse (shipping
3111
+ # origin location) based on the settings of the selected carrier. When set, no
3112
+ # other transit time related field in DeliveryTime should be set.
3113
+ # Corresponds to the JSON property `warehouseBasedDeliveryTimes`
3114
+ # @return [Array<Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime>]
3115
+ attr_accessor :warehouse_based_delivery_times
3116
+
3083
3117
  def initialize(**args)
3084
3118
  update!(**args)
3085
3119
  end
@@ -3095,6 +3129,7 @@ module Google
3095
3129
  @min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
3096
3130
  @transit_business_day_config = args[:transit_business_day_config] if args.key?(:transit_business_day_config)
3097
3131
  @transit_time_table = args[:transit_time_table] if args.key?(:transit_time_table)
3132
+ @warehouse_based_delivery_times = args[:warehouse_based_delivery_times] if args.key?(:warehouse_based_delivery_times)
3098
3133
  end
3099
3134
  end
3100
3135
 
@@ -4072,7 +4107,7 @@ module Google
4072
4107
 
4073
4108
  # Service provided to or by the linked account. Acceptable values are: - "`
4074
4109
  # shoppingActionsOrderManagement`" - "`shoppingActionsProductManagement`" - "`
4075
- # shoppingAdsProductManagement`"
4110
+ # shoppingAdsProductManagement`" - "`paymentProcessing`"
4076
4111
  # Corresponds to the JSON property `service`
4077
4112
  # @return [String]
4078
4113
  attr_accessor :service
@@ -4794,8 +4829,8 @@ module Google
4794
4829
  # @return [Fixnum]
4795
4830
  attr_accessor :clicks
4796
4831
 
4797
- # Number of clicks merchant's products receive (clicks) divided by the number of
4798
- # times the products are shown (impressions).
4832
+ # Click-through rate - the number of clicks merchant's products receive (clicks)
4833
+ # divided by the number of times the products are shown (impressions).
4799
4834
  # Corresponds to the JSON property `ctr`
4800
4835
  # @return [Float]
4801
4836
  attr_accessor :ctr
@@ -6271,14 +6306,15 @@ module Google
6271
6306
  # Turkish Post) - "`eub`" (ePacket) - "`chukou1`" (Chukou1 Logistics) - "`bestex`
6272
6307
  # " (Best Express) - "`canada post`" (Canada Post) - "`purolator`" (Purolator) -
6273
6308
  # "`canpar`" (Canpar) - "`india post`" (India Post) - "`blue dart`" (Blue Dart) -
6274
- # "`delhivery`" (Delhivery) - "`dtdc`" (DTDC) - "`tpc india`" (TPC India)
6275
- # Supported carriers for FR are: - "`la poste`" (La Poste) *automatic status
6276
- # updates * - "`colissimo`" (Colissimo by La Poste) *automatic status updates* -
6277
- # "`ups`" (United Parcel Service) *automatic status updates * - "`chronopost`" (
6278
- # Chronopost by La Poste) - "`gls`" (General Logistics Systems France) - "`dpd`"
6279
- # (DPD Group by GeoPost) - "`bpost`" (Belgian Post Group) - "`colis prive`" (
6280
- # Colis Privé) - "`boxtal`" (Boxtal) - "`geodis`" (GEODIS) - "`tnt`" (TNT) - "`
6281
- # db schenker`" (DB Schenker) - "`aramex`" (Aramex)
6309
+ # "`delhivery`" (Delhivery) - "`dtdc`" (DTDC) - "`tpc india`" (TPC India) - "`
6310
+ # lso`" (Lone Star Overnight) - "`tww`" (Team Worldwide) Supported carriers for
6311
+ # FR are: - "`la poste`" (La Poste) *automatic status updates * - "`colissimo`" (
6312
+ # Colissimo by La Poste) *automatic status updates* - "`ups`" (United Parcel
6313
+ # Service) *automatic status updates * - "`chronopost`" (Chronopost by La Poste)
6314
+ # - "`gls`" (General Logistics Systems France) - "`dpd`" (DPD Group by GeoPost) -
6315
+ # "`bpost`" (Belgian Post Group) - "`colis prive`" (Colis Privé) - "`boxtal`" (
6316
+ # Boxtal) - "`geodis`" (GEODIS) - "`tnt`" (TNT) - "`db schenker`" (DB Schenker) -
6317
+ # "`aramex`" (Aramex)
6282
6318
  # Corresponds to the JSON property `carrier`
6283
6319
  # @return [String]
6284
6320
  attr_accessor :carrier
@@ -6413,7 +6449,8 @@ module Google
6413
6449
  attr_accessor :customer_shipping_fee
6414
6450
 
6415
6451
  # Required. The delivery postal code, as a continuous string without spaces or
6416
- # dashes, e.g. "95016".
6452
+ # dashes, e.g. "95016". This field will be anonymized in returned
6453
+ # OrderTrackingSignal creation response.
6417
6454
  # Corresponds to the JSON property `deliveryPostalCode`
6418
6455
  # @return [String]
6419
6456
  attr_accessor :delivery_postal_code
@@ -6456,7 +6493,8 @@ module Google
6456
6493
  # @return [Google::Apis::ContentV2_1::DateTime]
6457
6494
  attr_accessor :order_created_time
6458
6495
 
6459
- # Required. The ID of the order on the merchant side.
6496
+ # Required. The ID of the order on the merchant side. This field will be hashed
6497
+ # in returned OrderTrackingSignal creation response.
6460
6498
  # Corresponds to the JSON property `orderId`
6461
6499
  # @return [String]
6462
6500
  attr_accessor :order_id
@@ -6554,7 +6592,8 @@ module Google
6554
6592
  # @return [Fixnum]
6555
6593
  attr_accessor :quantity
6556
6594
 
6557
- # Required. The shipment ID.
6595
+ # Required. The shipment ID. This field will be hashed in returned
6596
+ # OrderTrackingSignal creation response.
6558
6597
  # Corresponds to the JSON property `shipmentId`
6559
6598
  # @return [String]
6560
6599
  attr_accessor :shipment_id
@@ -6642,7 +6681,8 @@ module Google
6642
6681
  attr_accessor :latest_delivery_promise_time
6643
6682
 
6644
6683
  # The origin postal code, as a continuous string without spaces or dashes, e.g. "
6645
- # 95016".
6684
+ # 95016". This field will be anonymized in returned OrderTrackingSignal creation
6685
+ # response.
6646
6686
  # Corresponds to the JSON property `originPostalCode`
6647
6687
  # @return [String]
6648
6688
  attr_accessor :origin_postal_code
@@ -6653,7 +6693,8 @@ module Google
6653
6693
  # @return [String]
6654
6694
  attr_accessor :origin_region_code
6655
6695
 
6656
- # Required. The shipment ID.
6696
+ # Required. The shipment ID. This field will be hashed in returned
6697
+ # OrderTrackingSignal creation response.
6657
6698
  # Corresponds to the JSON property `shipmentId`
6658
6699
  # @return [String]
6659
6700
  attr_accessor :shipment_id
@@ -7114,11 +7155,17 @@ module Google
7114
7155
  include Google::Apis::Core::Hashable
7115
7156
 
7116
7157
  # The ID of the line item. This value is assigned by Google when an order is
7117
- # created.
7158
+ # created. Either lineItemId or productId is required.
7118
7159
  # Corresponds to the JSON property `lineItemId`
7119
7160
  # @return [String]
7120
7161
  attr_accessor :line_item_id
7121
7162
 
7163
+ # The ID of the product to cancel. This is the REST ID used in the products
7164
+ # service. Either lineItemId or productId is required.
7165
+ # Corresponds to the JSON property `productId`
7166
+ # @return [String]
7167
+ attr_accessor :product_id
7168
+
7122
7169
  # The quantity of this line item.
7123
7170
  # Corresponds to the JSON property `quantity`
7124
7171
  # @return [Fixnum]
@@ -7131,6 +7178,7 @@ module Google
7131
7178
  # Update properties of this object
7132
7179
  def update!(**args)
7133
7180
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
7181
+ @product_id = args[:product_id] if args.key?(:product_id)
7134
7182
  @quantity = args[:quantity] if args.key?(:quantity)
7135
7183
  end
7136
7184
  end
@@ -8757,6 +8805,45 @@ module Google
8757
8805
  end
8758
8806
  end
8759
8807
 
8808
+ # Request message for the PauseProgram method.
8809
+ class PauseBuyOnGoogleProgramRequest
8810
+ include Google::Apis::Core::Hashable
8811
+
8812
+ def initialize(**args)
8813
+ update!(**args)
8814
+ end
8815
+
8816
+ # Update properties of this object
8817
+ def update!(**args)
8818
+ end
8819
+ end
8820
+
8821
+ # Additional information required for PAYMENT_SERVICE_PROVIDER link type.
8822
+ class PaymentServiceProviderLinkInfo
8823
+ include Google::Apis::Core::Hashable
8824
+
8825
+ # The business country of the merchant account as identified by the third party
8826
+ # service provider.
8827
+ # Corresponds to the JSON property `externalAccountBusinessCountry`
8828
+ # @return [String]
8829
+ attr_accessor :external_account_business_country
8830
+
8831
+ # The id used by the third party service provider to identify the merchant.
8832
+ # Corresponds to the JSON property `externalAccountId`
8833
+ # @return [String]
8834
+ attr_accessor :external_account_id
8835
+
8836
+ def initialize(**args)
8837
+ update!(**args)
8838
+ end
8839
+
8840
+ # Update properties of this object
8841
+ def update!(**args)
8842
+ @external_account_business_country = args[:external_account_business_country] if args.key?(:external_account_business_country)
8843
+ @external_account_id = args[:external_account_id] if args.key?(:external_account_id)
8844
+ end
8845
+ end
8846
+
8760
8847
  #
8761
8848
  class PickupCarrierService
8762
8849
  include Google::Apis::Core::Hashable
@@ -9622,10 +9709,8 @@ module Google
9622
9709
 
9623
9710
  # Required product attributes are primarily defined by the products data
9624
9711
  # specification. See the Products Data Specification Help Center article for
9625
- # information. Some attributes are country-specific, so make sure you select the
9626
- # appropriate country in the drop-down selector at the top of the page. Product
9627
- # data. After inserting, updating, or deleting a product, it may take several
9628
- # minutes before changes take effect.
9712
+ # information. Product data. After inserting, updating, or deleting a product,
9713
+ # it may take several minutes before changes take effect.
9629
9714
  class Product
9630
9715
  include Google::Apis::Core::Hashable
9631
9716
 
@@ -9634,6 +9719,12 @@ module Google
9634
9719
  # @return [Array<String>]
9635
9720
  attr_accessor :additional_image_links
9636
9721
 
9722
+ # Additional cut of the item. Used together with size_type to represent combined
9723
+ # size types for apparel items.
9724
+ # Corresponds to the JSON property `additionalSizeType`
9725
+ # @return [String]
9726
+ attr_accessor :additional_size_type
9727
+
9637
9728
  # Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
9638
9729
  # Corresponds to the JSON property `adsGrouping`
9639
9730
  # @return [String]
@@ -9864,6 +9955,11 @@ module Google
9864
9955
  # @return [String]
9865
9956
  attr_accessor :link
9866
9957
 
9958
+ # Link template for merchant hosted local storefront.
9959
+ # Corresponds to the JSON property `linkTemplate`
9960
+ # @return [String]
9961
+ attr_accessor :link_template
9962
+
9867
9963
  # Loyalty points that users receive after purchasing the item. Japan only.
9868
9964
  # Corresponds to the JSON property `loyaltyPoints`
9869
9965
  # @return [Google::Apis::ContentV2_1::LoyaltyPoints]
@@ -9899,6 +9995,12 @@ module Google
9899
9995
  # @return [String]
9900
9996
  attr_accessor :mobile_link
9901
9997
 
9998
+ # Link template for merchant hosted local storefront optimized for mobile
9999
+ # devices.
10000
+ # Corresponds to the JSON property `mobileLinkTemplate`
10001
+ # @return [String]
10002
+ attr_accessor :mobile_link_template
10003
+
9902
10004
  # Manufacturer Part Number (MPN) of the item.
9903
10005
  # Corresponds to the JSON property `mpn`
9904
10006
  # @return [String]
@@ -9923,6 +10025,19 @@ module Google
9923
10025
  # @return [String]
9924
10026
  attr_accessor :pattern
9925
10027
 
10028
+ # The pick up option for the item. Acceptable values are: - "`buy`" - "`reserve`"
10029
+ # - "`ship to store`" - "`not supported`"
10030
+ # Corresponds to the JSON property `pickupMethod`
10031
+ # @return [String]
10032
+ attr_accessor :pickup_method
10033
+
10034
+ # Item store pickup timeline. Acceptable values are: - "`same day`" - "`next day`
10035
+ # " - "`2-day`" - "`3-day`" - "`4-day`" - "`5-day`" - "`6-day`" - "`7-day`" - "`
10036
+ # multi-week`"
10037
+ # Corresponds to the JSON property `pickupSla`
10038
+ # @return [String]
10039
+ attr_accessor :pickup_sla
10040
+
9926
10041
  # Price of the item.
9927
10042
  # Corresponds to the JSON property `price`
9928
10043
  # @return [Google::Apis::ContentV2_1::Price]
@@ -10075,6 +10190,7 @@ module Google
10075
10190
  # Update properties of this object
10076
10191
  def update!(**args)
10077
10192
  @additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links)
10193
+ @additional_size_type = args[:additional_size_type] if args.key?(:additional_size_type)
10078
10194
  @ads_grouping = args[:ads_grouping] if args.key?(:ads_grouping)
10079
10195
  @ads_labels = args[:ads_labels] if args.key?(:ads_labels)
10080
10196
  @ads_redirect = args[:ads_redirect] if args.key?(:ads_redirect)
@@ -10116,6 +10232,7 @@ module Google
10116
10232
  @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
10117
10233
  @kind = args[:kind] if args.key?(:kind)
10118
10234
  @link = args[:link] if args.key?(:link)
10235
+ @link_template = args[:link_template] if args.key?(:link_template)
10119
10236
  @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
10120
10237
  @material = args[:material] if args.key?(:material)
10121
10238
  @max_energy_efficiency_class = args[:max_energy_efficiency_class] if args.key?(:max_energy_efficiency_class)
@@ -10123,10 +10240,13 @@ module Google
10123
10240
  @min_energy_efficiency_class = args[:min_energy_efficiency_class] if args.key?(:min_energy_efficiency_class)
10124
10241
  @min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time)
10125
10242
  @mobile_link = args[:mobile_link] if args.key?(:mobile_link)
10243
+ @mobile_link_template = args[:mobile_link_template] if args.key?(:mobile_link_template)
10126
10244
  @mpn = args[:mpn] if args.key?(:mpn)
10127
10245
  @multipack = args[:multipack] if args.key?(:multipack)
10128
10246
  @offer_id = args[:offer_id] if args.key?(:offer_id)
10129
10247
  @pattern = args[:pattern] if args.key?(:pattern)
10248
+ @pickup_method = args[:pickup_method] if args.key?(:pickup_method)
10249
+ @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
10130
10250
  @price = args[:price] if args.key?(:price)
10131
10251
  @product_details = args[:product_details] if args.key?(:product_details)
10132
10252
  @product_highlights = args[:product_highlights] if args.key?(:product_highlights)
@@ -10240,6 +10360,39 @@ module Google
10240
10360
  # @return [Fixnum]
10241
10361
  attr_accessor :location_id
10242
10362
 
10363
+ # Maximum handling time (inclusive) between when the order is received and
10364
+ # shipped in business days. 0 means that the order is shipped on the same day as
10365
+ # it is received if it happens before the cut-off time. Both maxHandlingTime and
10366
+ # maxTransitTime are required if providing shipping speeds.
10367
+ # Corresponds to the JSON property `maxHandlingTime`
10368
+ # @return [Fixnum]
10369
+ attr_accessor :max_handling_time
10370
+
10371
+ # Maximum transit time (inclusive) between when the order has shipped and when
10372
+ # it is delivered in business days. 0 means that the order is delivered on the
10373
+ # same day as it ships. Both maxHandlingTime and maxTransitTime are required if
10374
+ # providing shipping speeds.
10375
+ # Corresponds to the JSON property `maxTransitTime`
10376
+ # @return [Fixnum]
10377
+ attr_accessor :max_transit_time
10378
+
10379
+ # Minimum handling time (inclusive) between when the order is received and
10380
+ # shipped in business days. 0 means that the order is shipped on the same day as
10381
+ # it is received if it happens before the cut-off time. minHandlingTime can only
10382
+ # be present together with maxHandlingTime; but it is not required if
10383
+ # maxHandlingTime is present.
10384
+ # Corresponds to the JSON property `minHandlingTime`
10385
+ # @return [Fixnum]
10386
+ attr_accessor :min_handling_time
10387
+
10388
+ # Minimum transit time (inclusive) between when the order has shipped and when
10389
+ # it is delivered in business days. 0 means that the order is delivered on the
10390
+ # same day as it ships. minTransitTime can only be present together with
10391
+ # maxTransitTime; but it is not required if maxTransitTime is present.
10392
+ # Corresponds to the JSON property `minTransitTime`
10393
+ # @return [Fixnum]
10394
+ attr_accessor :min_transit_time
10395
+
10243
10396
  # The postal code range that the shipping rate applies to, represented by a
10244
10397
  # postal code, a postal code prefix followed by a * wildcard, a range between
10245
10398
  # two postal codes or two postal code prefixes of equal length.
@@ -10271,6 +10424,10 @@ module Google
10271
10424
  @country = args[:country] if args.key?(:country)
10272
10425
  @location_group_name = args[:location_group_name] if args.key?(:location_group_name)
10273
10426
  @location_id = args[:location_id] if args.key?(:location_id)
10427
+ @max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time)
10428
+ @max_transit_time = args[:max_transit_time] if args.key?(:max_transit_time)
10429
+ @min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time)
10430
+ @min_transit_time = args[:min_transit_time] if args.key?(:min_transit_time)
10274
10431
  @postal_code = args[:postal_code] if args.key?(:postal_code)
10275
10432
  @price = args[:price] if args.key?(:price)
10276
10433
  @region = args[:region] if args.key?(:region)
@@ -10680,17 +10837,15 @@ module Google
10680
10837
  attr_accessor :merchant_id
10681
10838
 
10682
10839
  # The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" -
10683
- # "`insert`"
10840
+ # "`insert`" - "`update`"
10684
10841
  # Corresponds to the JSON property `method`
10685
10842
  # @return [String]
10686
10843
  attr_accessor :method_prop
10687
10844
 
10688
10845
  # Required product attributes are primarily defined by the products data
10689
10846
  # specification. See the Products Data Specification Help Center article for
10690
- # information. Some attributes are country-specific, so make sure you select the
10691
- # appropriate country in the drop-down selector at the top of the page. Product
10692
- # data. After inserting, updating, or deleting a product, it may take several
10693
- # minutes before changes take effect.
10847
+ # information. Product data. After inserting, updating, or deleting a product,
10848
+ # it may take several minutes before changes take effect.
10694
10849
  # Corresponds to the JSON property `product`
10695
10850
  # @return [Google::Apis::ContentV2_1::Product]
10696
10851
  attr_accessor :product
@@ -10701,6 +10856,16 @@ module Google
10701
10856
  # @return [String]
10702
10857
  attr_accessor :product_id
10703
10858
 
10859
+ # The comma-separated list of product attributes to be updated. Example: `"title,
10860
+ # salePrice"`. Attributes specified in the update mask without a value specified
10861
+ # in the body will be deleted from the product. Only top-level product
10862
+ # attributes can be updated. If not defined, product attributes with set values
10863
+ # will be updated and other attributes will stay unchanged. Only defined if the
10864
+ # method is `update`.
10865
+ # Corresponds to the JSON property `updateMask`
10866
+ # @return [String]
10867
+ attr_accessor :update_mask
10868
+
10704
10869
  def initialize(**args)
10705
10870
  update!(**args)
10706
10871
  end
@@ -10713,6 +10878,7 @@ module Google
10713
10878
  @method_prop = args[:method_prop] if args.key?(:method_prop)
10714
10879
  @product = args[:product] if args.key?(:product)
10715
10880
  @product_id = args[:product_id] if args.key?(:product_id)
10881
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
10716
10882
  end
10717
10883
  end
10718
10884
 
@@ -10764,10 +10930,8 @@ module Google
10764
10930
 
10765
10931
  # Required product attributes are primarily defined by the products data
10766
10932
  # specification. See the Products Data Specification Help Center article for
10767
- # information. Some attributes are country-specific, so make sure you select the
10768
- # appropriate country in the drop-down selector at the top of the page. Product
10769
- # data. After inserting, updating, or deleting a product, it may take several
10770
- # minutes before changes take effect.
10933
+ # information. Product data. After inserting, updating, or deleting a product,
10934
+ # it may take several minutes before changes take effect.
10771
10935
  # Corresponds to the JSON property `product`
10772
10936
  # @return [Google::Apis::ContentV2_1::Product]
10773
10937
  attr_accessor :product
@@ -12035,6 +12199,19 @@ module Google
12035
12199
  end
12036
12200
  end
12037
12201
 
12202
+ # Request message for the RequestReviewProgram method.
12203
+ class RequestReviewBuyOnGoogleProgramRequest
12204
+ include Google::Apis::Core::Hashable
12205
+
12206
+ def initialize(**args)
12207
+ update!(**args)
12208
+ end
12209
+
12210
+ # Update properties of this object
12211
+ def update!(**args)
12212
+ end
12213
+ end
12214
+
12038
12215
  # Return address resource.
12039
12216
  class ReturnAddress
12040
12217
  include Google::Apis::Core::Hashable
@@ -12591,6 +12768,37 @@ module Google
12591
12768
  end
12592
12769
  end
12593
12770
 
12771
+ # Return shipping label for a Buy on Google merchant-managed return.
12772
+ class ReturnShippingLabel
12773
+ include Google::Apis::Core::Hashable
12774
+
12775
+ # Name of the carrier.
12776
+ # Corresponds to the JSON property `carrier`
12777
+ # @return [String]
12778
+ attr_accessor :carrier
12779
+
12780
+ # The URL for the return shipping label in PDF format
12781
+ # Corresponds to the JSON property `labelUri`
12782
+ # @return [String]
12783
+ attr_accessor :label_uri
12784
+
12785
+ # The tracking id of this return label.
12786
+ # Corresponds to the JSON property `trackingId`
12787
+ # @return [String]
12788
+ attr_accessor :tracking_id
12789
+
12790
+ def initialize(**args)
12791
+ update!(**args)
12792
+ end
12793
+
12794
+ # Update properties of this object
12795
+ def update!(**args)
12796
+ @carrier = args[:carrier] if args.key?(:carrier)
12797
+ @label_uri = args[:label_uri] if args.key?(:label_uri)
12798
+ @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
12799
+ end
12800
+ end
12801
+
12594
12802
  #
12595
12803
  class ReturnaddressCustomBatchRequest
12596
12804
  include Google::Apis::Core::Hashable
@@ -13251,7 +13459,13 @@ module Google
13251
13459
  # transitPackageMissing`" - "`unsuccessfulDeliveryUndeliverable`" - "`
13252
13460
  # wrongChargeInStore`" - "`wrongItem`" - "`returns`" - "`undeliverable`" - "`
13253
13461
  # issueRelatedRefundAndReplacementAmountDescription`" - "`refundFromMerchant`" -
13254
- # "`returnLabelShippingFee`" - "`lumpSumCorrection`" - "`pspFee`"
13462
+ # "`returnLabelShippingFee`" - "`lumpSumCorrection`" - "`pspFee`" - "`
13463
+ # principalRefundDoesNotFit`" - "`principalRefundOrderedWrongItem`" - "`
13464
+ # principalRefundQualityNotExpected`" - "`principalRefundBetterPriceFound`" - "`
13465
+ # principalRefundNoLongerNeeded`" - "`principalRefundChangedMind`" - "`
13466
+ # principalRefundReceivedTooLate`" - "`principalRefundIncorrectItemReceived`" - "
13467
+ # `principalRefundDamagedOrDefectiveItem`" - "`
13468
+ # principalRefundDidNotMatchDescription`" - "`principalRefundExpiredItem`"
13255
13469
  # Corresponds to the JSON property `description`
13256
13470
  # @return [String]
13257
13471
  attr_accessor :description
@@ -14519,6 +14733,66 @@ module Google
14519
14733
  end
14520
14734
  end
14521
14735
 
14736
+ #
14737
+ class WarehouseBasedDeliveryTime
14738
+ include Google::Apis::Core::Hashable
14739
+
14740
+ # Required. Carrier, such as `"UPS"` or `"Fedex"`. The list of supported
14741
+ # carriers can be retrieved via the `listSupportedCarriers` method.
14742
+ # Corresponds to the JSON property `carrier`
14743
+ # @return [String]
14744
+ attr_accessor :carrier
14745
+
14746
+ # Required. Carrier service, such as `"ground"` or `"2 days"`. The list of
14747
+ # supported services for a carrier can be retrieved via the `
14748
+ # listSupportedCarriers` method. The name of the service must be in the
14749
+ # eddSupportedServices list.
14750
+ # Corresponds to the JSON property `carrierService`
14751
+ # @return [String]
14752
+ attr_accessor :carrier_service
14753
+
14754
+ # Required. Shipping origin's state.
14755
+ # Corresponds to the JSON property `originAdministrativeArea`
14756
+ # @return [String]
14757
+ attr_accessor :origin_administrative_area
14758
+
14759
+ # Required. Shipping origin's city.
14760
+ # Corresponds to the JSON property `originCity`
14761
+ # @return [String]
14762
+ attr_accessor :origin_city
14763
+
14764
+ # Required. Shipping origin's country represented as a [CLDR territory code](
14765
+ # http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
14766
+ # Corresponds to the JSON property `originCountry`
14767
+ # @return [String]
14768
+ attr_accessor :origin_country
14769
+
14770
+ # Required. Shipping origin.
14771
+ # Corresponds to the JSON property `originPostalCode`
14772
+ # @return [String]
14773
+ attr_accessor :origin_postal_code
14774
+
14775
+ # Shipping origin's street address.
14776
+ # Corresponds to the JSON property `originStreetAddress`
14777
+ # @return [String]
14778
+ attr_accessor :origin_street_address
14779
+
14780
+ def initialize(**args)
14781
+ update!(**args)
14782
+ end
14783
+
14784
+ # Update properties of this object
14785
+ def update!(**args)
14786
+ @carrier = args[:carrier] if args.key?(:carrier)
14787
+ @carrier_service = args[:carrier_service] if args.key?(:carrier_service)
14788
+ @origin_administrative_area = args[:origin_administrative_area] if args.key?(:origin_administrative_area)
14789
+ @origin_city = args[:origin_city] if args.key?(:origin_city)
14790
+ @origin_country = args[:origin_country] if args.key?(:origin_country)
14791
+ @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
14792
+ @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
14793
+ end
14794
+ end
14795
+
14522
14796
  #
14523
14797
  class Weight
14524
14798
  include Google::Apis::Core::Hashable
@@ -14528,7 +14802,8 @@ module Google
14528
14802
  # @return [String]
14529
14803
  attr_accessor :unit
14530
14804
 
14531
- # Required. The weight represented as a number.
14805
+ # Required. The weight represented as a number. The weight can have a maximum
14806
+ # precision of four decimal places.
14532
14807
  # Corresponds to the JSON property `value`
14533
14808
  # @return [String]
14534
14809
  attr_accessor :value
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2_1
18
18
  # Version of the google-apis-content_v2_1 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210311"
25
+ REVISION = "20210526"
26
26
  end
27
27
  end
28
28
  end
@@ -274,6 +274,12 @@ module Google
274
274
  include Google::Apis::Core::JsonObjectSupport
275
275
  end
276
276
 
277
+ class ActivateBuyOnGoogleProgramRequest
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
277
283
  class Amount
278
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
285
 
@@ -1378,6 +1384,18 @@ module Google
1378
1384
  include Google::Apis::Core::JsonObjectSupport
1379
1385
  end
1380
1386
 
1387
+ class PauseBuyOnGoogleProgramRequest
1388
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1389
+
1390
+ include Google::Apis::Core::JsonObjectSupport
1391
+ end
1392
+
1393
+ class PaymentServiceProviderLinkInfo
1394
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1395
+
1396
+ include Google::Apis::Core::JsonObjectSupport
1397
+ end
1398
+
1381
1399
  class PickupCarrierService
1382
1400
  class Representation < Google::Apis::Core::JsonRepresentation; end
1383
1401
 
@@ -1792,6 +1810,12 @@ module Google
1792
1810
  include Google::Apis::Core::JsonObjectSupport
1793
1811
  end
1794
1812
 
1813
+ class RequestReviewBuyOnGoogleProgramRequest
1814
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1815
+
1816
+ include Google::Apis::Core::JsonObjectSupport
1817
+ end
1818
+
1795
1819
  class ReturnAddress
1796
1820
  class Representation < Google::Apis::Core::JsonRepresentation; end
1797
1821
 
@@ -1864,6 +1888,12 @@ module Google
1864
1888
  include Google::Apis::Core::JsonObjectSupport
1865
1889
  end
1866
1890
 
1891
+ class ReturnShippingLabel
1892
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1893
+
1894
+ include Google::Apis::Core::JsonObjectSupport
1895
+ end
1896
+
1867
1897
  class ReturnaddressCustomBatchRequest
1868
1898
  class Representation < Google::Apis::Core::JsonRepresentation; end
1869
1899
 
@@ -2170,6 +2200,12 @@ module Google
2170
2200
  include Google::Apis::Core::JsonObjectSupport
2171
2201
  end
2172
2202
 
2203
+ class WarehouseBasedDeliveryTime
2204
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2205
+
2206
+ include Google::Apis::Core::JsonObjectSupport
2207
+ end
2208
+
2173
2209
  class Weight
2174
2210
  class Representation < Google::Apis::Core::JsonRepresentation; end
2175
2211
 
@@ -2469,6 +2505,8 @@ module Google
2469
2505
  property :action, as: 'action'
2470
2506
  property :link_type, as: 'linkType'
2471
2507
  property :linked_account_id, as: 'linkedAccountId'
2508
+ property :payment_service_provider_link_info, as: 'paymentServiceProviderLinkInfo', class: Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo, decorator: Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo::Representation
2509
+
2472
2510
  collection :services, as: 'services'
2473
2511
  end
2474
2512
  end
@@ -2614,6 +2652,12 @@ module Google
2614
2652
  end
2615
2653
  end
2616
2654
 
2655
+ class ActivateBuyOnGoogleProgramRequest
2656
+ # @private
2657
+ class Representation < Google::Apis::Core::JsonRepresentation
2658
+ end
2659
+ end
2660
+
2617
2661
  class Amount
2618
2662
  # @private
2619
2663
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2657,6 +2701,7 @@ module Google
2657
2701
  # @private
2658
2702
  class Representation < Google::Apis::Core::JsonRepresentation
2659
2703
  property :country, as: 'country'
2704
+ collection :edd_services, as: 'eddServices'
2660
2705
  property :name, as: 'name'
2661
2706
  collection :services, as: 'services'
2662
2707
  end
@@ -3004,6 +3049,8 @@ module Google
3004
3049
 
3005
3050
  property :transit_time_table, as: 'transitTimeTable', class: Google::Apis::ContentV2_1::TransitTable, decorator: Google::Apis::ContentV2_1::TransitTable::Representation
3006
3051
 
3052
+ collection :warehouse_based_delivery_times, as: 'warehouseBasedDeliveryTimes', class: Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime, decorator: Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime::Representation
3053
+
3007
3054
  end
3008
3055
  end
3009
3056
 
@@ -4116,6 +4163,7 @@ module Google
4116
4163
  # @private
4117
4164
  class Representation < Google::Apis::Core::JsonRepresentation
4118
4165
  property :line_item_id, as: 'lineItemId'
4166
+ property :product_id, as: 'productId'
4119
4167
  property :quantity, as: 'quantity'
4120
4168
  end
4121
4169
  end
@@ -4580,6 +4628,20 @@ module Google
4580
4628
  end
4581
4629
  end
4582
4630
 
4631
+ class PauseBuyOnGoogleProgramRequest
4632
+ # @private
4633
+ class Representation < Google::Apis::Core::JsonRepresentation
4634
+ end
4635
+ end
4636
+
4637
+ class PaymentServiceProviderLinkInfo
4638
+ # @private
4639
+ class Representation < Google::Apis::Core::JsonRepresentation
4640
+ property :external_account_business_country, as: 'externalAccountBusinessCountry'
4641
+ property :external_account_id, as: 'externalAccountId'
4642
+ end
4643
+ end
4644
+
4583
4645
  class PickupCarrierService
4584
4646
  # @private
4585
4647
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4818,6 +4880,7 @@ module Google
4818
4880
  # @private
4819
4881
  class Representation < Google::Apis::Core::JsonRepresentation
4820
4882
  collection :additional_image_links, as: 'additionalImageLinks'
4883
+ property :additional_size_type, as: 'additionalSizeType'
4821
4884
  property :ads_grouping, as: 'adsGrouping'
4822
4885
  collection :ads_labels, as: 'adsLabels'
4823
4886
  property :ads_redirect, as: 'adsRedirect'
@@ -4862,6 +4925,7 @@ module Google
4862
4925
  property :item_group_id, as: 'itemGroupId'
4863
4926
  property :kind, as: 'kind'
4864
4927
  property :link, as: 'link'
4928
+ property :link_template, as: 'linkTemplate'
4865
4929
  property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2_1::LoyaltyPoints, decorator: Google::Apis::ContentV2_1::LoyaltyPoints::Representation
4866
4930
 
4867
4931
  property :material, as: 'material'
@@ -4870,10 +4934,13 @@ module Google
4870
4934
  property :min_energy_efficiency_class, as: 'minEnergyEfficiencyClass'
4871
4935
  property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
4872
4936
  property :mobile_link, as: 'mobileLink'
4937
+ property :mobile_link_template, as: 'mobileLinkTemplate'
4873
4938
  property :mpn, as: 'mpn'
4874
4939
  property :multipack, :numeric_string => true, as: 'multipack'
4875
4940
  property :offer_id, as: 'offerId'
4876
4941
  property :pattern, as: 'pattern'
4942
+ property :pickup_method, as: 'pickupMethod'
4943
+ property :pickup_sla, as: 'pickupSla'
4877
4944
  property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4878
4945
 
4879
4946
  collection :product_details, as: 'productDetails', class: Google::Apis::ContentV2_1::ProductProductDetail, decorator: Google::Apis::ContentV2_1::ProductProductDetail::Representation
@@ -4943,6 +5010,10 @@ module Google
4943
5010
  property :country, as: 'country'
4944
5011
  property :location_group_name, as: 'locationGroupName'
4945
5012
  property :location_id, :numeric_string => true, as: 'locationId'
5013
+ property :max_handling_time, :numeric_string => true, as: 'maxHandlingTime'
5014
+ property :max_transit_time, :numeric_string => true, as: 'maxTransitTime'
5015
+ property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
5016
+ property :min_transit_time, :numeric_string => true, as: 'minTransitTime'
4946
5017
  property :postal_code, as: 'postalCode'
4947
5018
  property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4948
5019
 
@@ -5066,6 +5137,7 @@ module Google
5066
5137
  property :product, as: 'product', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation
5067
5138
 
5068
5139
  property :product_id, as: 'productId'
5140
+ property :update_mask, as: 'updateMask'
5069
5141
  end
5070
5142
  end
5071
5143
 
@@ -5438,6 +5510,12 @@ module Google
5438
5510
  end
5439
5511
  end
5440
5512
 
5513
+ class RequestReviewBuyOnGoogleProgramRequest
5514
+ # @private
5515
+ class Representation < Google::Apis::Core::JsonRepresentation
5516
+ end
5517
+ end
5518
+
5441
5519
  class ReturnAddress
5442
5520
  # @private
5443
5521
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5585,6 +5663,15 @@ module Google
5585
5663
  end
5586
5664
  end
5587
5665
 
5666
+ class ReturnShippingLabel
5667
+ # @private
5668
+ class Representation < Google::Apis::Core::JsonRepresentation
5669
+ property :carrier, as: 'carrier'
5670
+ property :label_uri, as: 'labelUri'
5671
+ property :tracking_id, as: 'trackingId'
5672
+ end
5673
+ end
5674
+
5588
5675
  class ReturnaddressCustomBatchRequest
5589
5676
  # @private
5590
5677
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6145,6 +6232,19 @@ module Google
6145
6232
  end
6146
6233
  end
6147
6234
 
6235
+ class WarehouseBasedDeliveryTime
6236
+ # @private
6237
+ class Representation < Google::Apis::Core::JsonRepresentation
6238
+ property :carrier, as: 'carrier'
6239
+ property :carrier_service, as: 'carrierService'
6240
+ property :origin_administrative_area, as: 'originAdministrativeArea'
6241
+ property :origin_city, as: 'originCity'
6242
+ property :origin_country, as: 'originCountry'
6243
+ property :origin_postal_code, as: 'originPostalCode'
6244
+ property :origin_street_address, as: 'originStreetAddress'
6245
+ end
6246
+ end
6247
+
6148
6248
  class Weight
6149
6249
  # @private
6150
6250
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -346,6 +346,8 @@ module Google
346
346
  # The ID of the account for which to list links.
347
347
  # @param [Fixnum] max_results
348
348
  # The maximum number of links to return in the response, used for pagination.
349
+ # The minimum allowed value is 5 results per page. If provided value is lower
350
+ # than 5, it will be automatically increased to 5.
349
351
  # @param [String] page_token
350
352
  # The token returned by the previous request.
351
353
  # @param [String] fields
@@ -1013,7 +1015,44 @@ module Google
1013
1015
  execute_or_queue_command(command, &block)
1014
1016
  end
1015
1017
 
1016
- # Retrieves a status of BoG program for your Merchant Center account.
1018
+ # Reactivates the BoG program in your Merchant Center account. Moves the program
1019
+ # to the active state when allowed, e.g. when paused. Important: This method is
1020
+ # only whitelisted for selected merchants.
1021
+ # @param [Fixnum] merchant_id
1022
+ # Required. The ID of the account.
1023
+ # @param [String] region_code
1024
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1025
+ # ISO_3166-1_alpha-2). Currently only US is available.
1026
+ # @param [Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest] activate_buy_on_google_program_request_object
1027
+ # @param [String] fields
1028
+ # Selector specifying which fields to include in a partial response.
1029
+ # @param [String] quota_user
1030
+ # Available to use for quota purposes for server-side applications. Can be any
1031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1032
+ # @param [Google::Apis::RequestOptions] options
1033
+ # Request-specific options
1034
+ #
1035
+ # @yield [result, err] Result & error if block supplied
1036
+ # @yieldparam result [NilClass] No result returned for this method
1037
+ # @yieldparam err [StandardError] error object if request failed
1038
+ #
1039
+ # @return [void]
1040
+ #
1041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1044
+ def activate_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, activate_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1045
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/activate', options)
1046
+ command.request_representation = Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest::Representation
1047
+ command.request_object = activate_buy_on_google_program_request_object
1048
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1049
+ command.params['regionCode'] = region_code unless region_code.nil?
1050
+ command.query['fields'] = fields unless fields.nil?
1051
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1052
+ execute_or_queue_command(command, &block)
1053
+ end
1054
+
1055
+ # Retrieves a status of the BoG program for your Merchant Center account.
1017
1056
  # @param [Fixnum] merchant_id
1018
1057
  # Required. The ID of the account.
1019
1058
  # @param [String] region_code
@@ -1047,12 +1086,12 @@ module Google
1047
1086
  execute_or_queue_command(command, &block)
1048
1087
  end
1049
1088
 
1050
- # Onboards BoG in your Merchant Center account. By using this method, you agree
1051
- # to the [Terms of Service](https://merchants.google.com/mc/termsofservice/
1052
- # transactions/US/latest). Calling this method is only possible if the
1053
- # authenticated account is the same as the merchant id in the request. Calling
1054
- # this method multiple times will only accept Terms of Service if the latest
1055
- # version is not currently signed.
1089
+ # Onboards the BoG program in your Merchant Center account. By using this method,
1090
+ # you agree to the [Terms of Service](https://merchants.google.com/mc/
1091
+ # termsofservice/transactions/US/latest). Calling this method is only possible
1092
+ # if the authenticated account is the same as the merchant id in the request.
1093
+ # Calling this method multiple times will only accept Terms of Service if the
1094
+ # latest version is not currently signed.
1056
1095
  # @param [Fixnum] merchant_id
1057
1096
  # Required. The ID of the account.
1058
1097
  # @param [String] region_code
@@ -1087,6 +1126,79 @@ module Google
1087
1126
  execute_or_queue_command(command, &block)
1088
1127
  end
1089
1128
 
1129
+ # Pauses the BoG program in your Merchant Center account. Important: This method
1130
+ # is only whitelisted for selected merchants.
1131
+ # @param [Fixnum] merchant_id
1132
+ # Required. The ID of the account.
1133
+ # @param [String] region_code
1134
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1135
+ # ISO_3166-1_alpha-2). Currently only US is available.
1136
+ # @param [Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest] pause_buy_on_google_program_request_object
1137
+ # @param [String] fields
1138
+ # Selector specifying which fields to include in a partial response.
1139
+ # @param [String] quota_user
1140
+ # Available to use for quota purposes for server-side applications. Can be any
1141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1142
+ # @param [Google::Apis::RequestOptions] options
1143
+ # Request-specific options
1144
+ #
1145
+ # @yield [result, err] Result & error if block supplied
1146
+ # @yieldparam result [NilClass] No result returned for this method
1147
+ # @yieldparam err [StandardError] error object if request failed
1148
+ #
1149
+ # @return [void]
1150
+ #
1151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1154
+ def pause_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, pause_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1155
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/pause', options)
1156
+ command.request_representation = Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest::Representation
1157
+ command.request_object = pause_buy_on_google_program_request_object
1158
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1159
+ command.params['regionCode'] = region_code unless region_code.nil?
1160
+ command.query['fields'] = fields unless fields.nil?
1161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1162
+ execute_or_queue_command(command, &block)
1163
+ end
1164
+
1165
+ # Requests review and then activates the BoG program in your Merchant Center
1166
+ # account for the first time. Moves the program to the REVIEW_PENDING state.
1167
+ # Important: This method is only whitelisted for selected merchants.
1168
+ # @param [Fixnum] merchant_id
1169
+ # Required. The ID of the account.
1170
+ # @param [String] region_code
1171
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1172
+ # ISO_3166-1_alpha-2). Currently only US is available.
1173
+ # @param [Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest] request_review_buy_on_google_program_request_object
1174
+ # @param [String] fields
1175
+ # Selector specifying which fields to include in a partial response.
1176
+ # @param [String] quota_user
1177
+ # Available to use for quota purposes for server-side applications. Can be any
1178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1179
+ # @param [Google::Apis::RequestOptions] options
1180
+ # Request-specific options
1181
+ #
1182
+ # @yield [result, err] Result & error if block supplied
1183
+ # @yieldparam result [NilClass] No result returned for this method
1184
+ # @yieldparam err [StandardError] error object if request failed
1185
+ #
1186
+ # @return [void]
1187
+ #
1188
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1189
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1190
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1191
+ def requestreview_buyongoogleprogram(merchant_id, region_code, request_review_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1192
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/requestreview', options)
1193
+ command.request_representation = Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest::Representation
1194
+ command.request_object = request_review_buy_on_google_program_request_object
1195
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1196
+ command.params['regionCode'] = region_code unless region_code.nil?
1197
+ command.query['fields'] = fields unless fields.nil?
1198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1199
+ execute_or_queue_command(command, &block)
1200
+ end
1201
+
1090
1202
  # Uploads a collection to your Merchant Center account. If a collection with the
1091
1203
  # same collectionId already exists, this method updates that entry. In each
1092
1204
  # update, the collection is completely replaced by the fields in the body of the
@@ -2615,6 +2727,46 @@ module Google
2615
2727
  execute_or_queue_command(command, &block)
2616
2728
  end
2617
2729
 
2730
+ # Links a return shipping label to a return id. You can only create one return
2731
+ # label per return id. Since the label is sent to the buyer, the linked return
2732
+ # label cannot be updated or deleted. If you try to create multiple return
2733
+ # shipping labels for a single return id, every create request except the first
2734
+ # will fail.
2735
+ # @param [Fixnum] merchant_id
2736
+ # Required. The merchant the Return Shipping Label belongs to.
2737
+ # @param [String] return_id
2738
+ # Required. Provide the Google-generated merchant order return ID.
2739
+ # @param [Google::Apis::ContentV2_1::ReturnShippingLabel] return_shipping_label_object
2740
+ # @param [String] fields
2741
+ # Selector specifying which fields to include in a partial response.
2742
+ # @param [String] quota_user
2743
+ # Available to use for quota purposes for server-side applications. Can be any
2744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2745
+ # @param [Google::Apis::RequestOptions] options
2746
+ # Request-specific options
2747
+ #
2748
+ # @yield [result, err] Result & error if block supplied
2749
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnShippingLabel] parsed result object
2750
+ # @yieldparam err [StandardError] error object if request failed
2751
+ #
2752
+ # @return [Google::Apis::ContentV2_1::ReturnShippingLabel]
2753
+ #
2754
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2755
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2756
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2757
+ def create_orderreturn_label(merchant_id, return_id, return_shipping_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2758
+ command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/labels', options)
2759
+ command.request_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation
2760
+ command.request_object = return_shipping_label_object
2761
+ command.response_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation
2762
+ command.response_class = Google::Apis::ContentV2_1::ReturnShippingLabel
2763
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2764
+ command.params['returnId'] = return_id unless return_id.nil?
2765
+ command.query['fields'] = fields unless fields.nil?
2766
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2767
+ execute_or_queue_command(command, &block)
2768
+ end
2769
+
2618
2770
  # Marks an order as acknowledged.
2619
2771
  # @param [Fixnum] merchant_id
2620
2772
  # The ID of the account that manages the order. This cannot be a multi-client
@@ -3874,6 +4026,51 @@ module Google
3874
4026
  execute_or_queue_command(command, &block)
3875
4027
  end
3876
4028
 
4029
+ # Updates an existing product in your Merchant Center account. Only updates
4030
+ # attributes provided in the request.
4031
+ # @param [Fixnum] merchant_id
4032
+ # The ID of the account that contains the product. This account cannot be a
4033
+ # multi-client account.
4034
+ # @param [String] product_id
4035
+ # The REST ID of the product for which to update.
4036
+ # @param [Google::Apis::ContentV2_1::Product] product_object
4037
+ # @param [String] update_mask
4038
+ # The comma-separated list of product attributes to be updated. Example: `"title,
4039
+ # salePrice"`. Attributes specified in the update mask without a value specified
4040
+ # in the body will be deleted from the product. Only top-level product
4041
+ # attributes can be updated. If not defined, product attributes with set values
4042
+ # will be updated and other attributes will stay unchanged.
4043
+ # @param [String] fields
4044
+ # Selector specifying which fields to include in a partial response.
4045
+ # @param [String] quota_user
4046
+ # Available to use for quota purposes for server-side applications. Can be any
4047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4048
+ # @param [Google::Apis::RequestOptions] options
4049
+ # Request-specific options
4050
+ #
4051
+ # @yield [result, err] Result & error if block supplied
4052
+ # @yieldparam result [Google::Apis::ContentV2_1::Product] parsed result object
4053
+ # @yieldparam err [StandardError] error object if request failed
4054
+ #
4055
+ # @return [Google::Apis::ContentV2_1::Product]
4056
+ #
4057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4060
+ def update_product(merchant_id, product_id, product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4061
+ command = make_simple_command(:patch, '{merchantId}/products/{productId}', options)
4062
+ command.request_representation = Google::Apis::ContentV2_1::Product::Representation
4063
+ command.request_object = product_object
4064
+ command.response_representation = Google::Apis::ContentV2_1::Product::Representation
4065
+ command.response_class = Google::Apis::ContentV2_1::Product
4066
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4067
+ command.params['productId'] = product_id unless product_id.nil?
4068
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4069
+ command.query['fields'] = fields unless fields.nil?
4070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4071
+ execute_or_queue_command(command, &block)
4072
+ end
4073
+
3877
4074
  # Gets the statuses of multiple products in a single request.
3878
4075
  # @param [Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest] productstatuses_custom_batch_request_object
3879
4076
  # @param [String] fields
@@ -4326,7 +4523,8 @@ module Google
4326
4523
  # Required. The id of the region to update.
4327
4524
  # @param [Google::Apis::ContentV2_1::Region] region_object
4328
4525
  # @param [String] update_mask
4329
- # Optional. The field mask indicating the fields to update.
4526
+ # Optional. The comma-separated field mask indicating the fields to update.
4527
+ # Example: `"displayName,postalCodeArea.regionCode"`.
4330
4528
  # @param [String] fields
4331
4529
  # Selector specifying which fields to include in a partial response.
4332
4530
  # @param [String] quota_user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.8.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.13.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Content API for Shopping V2_1