google-apis-content_v2_1 0.9.0 → 0.10.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: 52db06f309f117d69fc9b33e36318489f53bae9f00171a58ab72789d1742839b
4
- data.tar.gz: d8a71992312c31ac9c4c2cb6a1f2a1a8a6fc496c87324646f6188b1abdc05c51
3
+ metadata.gz: 78c78d295ddec6584fa94d1e53ec12f54a8e864278352799d8c3614658da87bc
4
+ data.tar.gz: eac068998aedef7b3758e00f16feaeedbd210cd8aacd2bbbfad19ba7c145f08b
5
5
  SHA512:
6
- metadata.gz: 67c4109e1e5a89aef60954156d073aead971c263ac374b08bf50a9f02544e96be9a11ca293ca11e38fc328c54e3d035e9f1038d069732183095084831af1e52e
7
- data.tar.gz: 2a90ff55afb017ca6f981122fe0f9dfe0f90bb191ce6e979c05ba51cfd6b1be609bc24666a7ff574da5424409d10a766a8e297d8655441c107a73181a45f48ef
6
+ metadata.gz: 8623c4f2e6603ae829a2f6e680356579580bda1d424f827c9573e91fbf9b65cac084765ffcb1a6fc004e0658399d7843448d4d030e9c226f1ea04e91fdde1015
7
+ data.tar.gz: 2e587296c82554a6ba28b83658910eab0f1d5e9f5795d2561169b49a5bb618e8facbdf861ccb89984dc34e72b6524c44d2b98c2e742a5639a8c0ba3b2870855d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.10.0 (2021-05-11)
4
+
5
+ * Regenerated from discovery document revision 20210505
6
+
3
7
  ### v0.9.0 (2021-03-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20210325
@@ -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,8 +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
- # shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`"
1142
+ # shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`" - "`
1143
+ # paymentProcessing`"
1138
1144
  # Corresponds to the JSON property `services`
1139
1145
  # @return [Array<String>]
1140
1146
  attr_accessor :services
@@ -1148,6 +1154,7 @@ module Google
1148
1154
  @action = args[:action] if args.key?(:action)
1149
1155
  @link_type = args[:link_type] if args.key?(:link_type)
1150
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)
1151
1158
  @services = args[:services] if args.key?(:services)
1152
1159
  end
1153
1160
  end
@@ -1586,6 +1593,19 @@ module Google
1586
1593
  end
1587
1594
  end
1588
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
+
1589
1609
  #
1590
1610
  class Amount
1591
1611
  include Google::Apis::Core::Hashable
@@ -1727,13 +1747,20 @@ module Google
1727
1747
  # @return [String]
1728
1748
  attr_accessor :country
1729
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
+
1730
1756
  # The name of the carrier (e.g., `"UPS"`). Always present.
1731
1757
  # Corresponds to the JSON property `name`
1732
1758
  # @return [String]
1733
1759
  attr_accessor :name
1734
1760
 
1735
1761
  # A list of supported services (e.g., `"ground"`) for that carrier. Contains at
1736
- # least one service.
1762
+ # least one service. This is the list of valid values for CarrierRate.
1763
+ # carrierService.
1737
1764
  # Corresponds to the JSON property `services`
1738
1765
  # @return [Array<String>]
1739
1766
  attr_accessor :services
@@ -1745,6 +1772,7 @@ module Google
1745
1772
  # Update properties of this object
1746
1773
  def update!(**args)
1747
1774
  @country = args[:country] if args.key?(:country)
1775
+ @edd_services = args[:edd_services] if args.key?(:edd_services)
1748
1776
  @name = args[:name] if args.key?(:name)
1749
1777
  @services = args[:services] if args.key?(:services)
1750
1778
  end
@@ -3079,6 +3107,13 @@ module Google
3079
3107
  # @return [Google::Apis::ContentV2_1::TransitTable]
3080
3108
  attr_accessor :transit_time_table
3081
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
+
3082
3117
  def initialize(**args)
3083
3118
  update!(**args)
3084
3119
  end
@@ -3094,6 +3129,7 @@ module Google
3094
3129
  @min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
3095
3130
  @transit_business_day_config = args[:transit_business_day_config] if args.key?(:transit_business_day_config)
3096
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)
3097
3133
  end
3098
3134
  end
3099
3135
 
@@ -4071,7 +4107,7 @@ module Google
4071
4107
 
4072
4108
  # Service provided to or by the linked account. Acceptable values are: - "`
4073
4109
  # shoppingActionsOrderManagement`" - "`shoppingActionsProductManagement`" - "`
4074
- # shoppingAdsProductManagement`"
4110
+ # shoppingAdsProductManagement`" - "`paymentProcessing`"
4075
4111
  # Corresponds to the JSON property `service`
4076
4112
  # @return [String]
4077
4113
  attr_accessor :service
@@ -4793,8 +4829,8 @@ module Google
4793
4829
  # @return [Fixnum]
4794
4830
  attr_accessor :clicks
4795
4831
 
4796
- # Number of clicks merchant's products receive (clicks) divided by the number of
4797
- # 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).
4798
4834
  # Corresponds to the JSON property `ctr`
4799
4835
  # @return [Float]
4800
4836
  attr_accessor :ctr
@@ -8756,6 +8792,45 @@ module Google
8756
8792
  end
8757
8793
  end
8758
8794
 
8795
+ # Request message for the PauseProgram method.
8796
+ class PauseBuyOnGoogleProgramRequest
8797
+ include Google::Apis::Core::Hashable
8798
+
8799
+ def initialize(**args)
8800
+ update!(**args)
8801
+ end
8802
+
8803
+ # Update properties of this object
8804
+ def update!(**args)
8805
+ end
8806
+ end
8807
+
8808
+ # Additional information required for PAYMENT_SERVICE_PROVIDER link type.
8809
+ class PaymentServiceProviderLinkInfo
8810
+ include Google::Apis::Core::Hashable
8811
+
8812
+ # The business country of the merchant account as identified by the third party
8813
+ # service provider.
8814
+ # Corresponds to the JSON property `externalAccountBusinessCountry`
8815
+ # @return [String]
8816
+ attr_accessor :external_account_business_country
8817
+
8818
+ # The id used by the third party service provider to identify the merchant.
8819
+ # Corresponds to the JSON property `externalAccountId`
8820
+ # @return [String]
8821
+ attr_accessor :external_account_id
8822
+
8823
+ def initialize(**args)
8824
+ update!(**args)
8825
+ end
8826
+
8827
+ # Update properties of this object
8828
+ def update!(**args)
8829
+ @external_account_business_country = args[:external_account_business_country] if args.key?(:external_account_business_country)
8830
+ @external_account_id = args[:external_account_id] if args.key?(:external_account_id)
8831
+ end
8832
+ end
8833
+
8759
8834
  #
8760
8835
  class PickupCarrierService
8761
8836
  include Google::Apis::Core::Hashable
@@ -10246,6 +10321,39 @@ module Google
10246
10321
  # @return [Fixnum]
10247
10322
  attr_accessor :location_id
10248
10323
 
10324
+ # Maximum handling time (inclusive) between when the order is received and
10325
+ # shipped in business days. 0 means that the order is shipped on the same day as
10326
+ # it is received if it happens before the cut-off time. Both maxHandlingTime and
10327
+ # maxTransitTime are required if providing shipping speeds.
10328
+ # Corresponds to the JSON property `maxHandlingTime`
10329
+ # @return [Fixnum]
10330
+ attr_accessor :max_handling_time
10331
+
10332
+ # Maximum transit time (inclusive) between when the order has shipped and when
10333
+ # it is delivered in business days. 0 means that the order is delivered on the
10334
+ # same day as it ships. Both maxHandlingTime and maxTransitTime are required if
10335
+ # providing shipping speeds.
10336
+ # Corresponds to the JSON property `maxTransitTime`
10337
+ # @return [Fixnum]
10338
+ attr_accessor :max_transit_time
10339
+
10340
+ # Minimum handling time (inclusive) between when the order is received and
10341
+ # shipped in business days. 0 means that the order is shipped on the same day as
10342
+ # it is received if it happens before the cut-off time. minHandlingTime can only
10343
+ # be present together with maxHandlingTime; but it is not required if
10344
+ # maxHandlingTime is present.
10345
+ # Corresponds to the JSON property `minHandlingTime`
10346
+ # @return [Fixnum]
10347
+ attr_accessor :min_handling_time
10348
+
10349
+ # Minimum transit time (inclusive) between when the order has shipped and when
10350
+ # it is delivered in business days. 0 means that the order is delivered on the
10351
+ # same day as it ships. minTransitTime can only be present together with
10352
+ # maxTransitTime; but it is not required if maxTransitTime is present.
10353
+ # Corresponds to the JSON property `minTransitTime`
10354
+ # @return [Fixnum]
10355
+ attr_accessor :min_transit_time
10356
+
10249
10357
  # The postal code range that the shipping rate applies to, represented by a
10250
10358
  # postal code, a postal code prefix followed by a * wildcard, a range between
10251
10359
  # two postal codes or two postal code prefixes of equal length.
@@ -10277,6 +10385,10 @@ module Google
10277
10385
  @country = args[:country] if args.key?(:country)
10278
10386
  @location_group_name = args[:location_group_name] if args.key?(:location_group_name)
10279
10387
  @location_id = args[:location_id] if args.key?(:location_id)
10388
+ @max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time)
10389
+ @max_transit_time = args[:max_transit_time] if args.key?(:max_transit_time)
10390
+ @min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time)
10391
+ @min_transit_time = args[:min_transit_time] if args.key?(:min_transit_time)
10280
10392
  @postal_code = args[:postal_code] if args.key?(:postal_code)
10281
10393
  @price = args[:price] if args.key?(:price)
10282
10394
  @region = args[:region] if args.key?(:region)
@@ -12041,6 +12153,19 @@ module Google
12041
12153
  end
12042
12154
  end
12043
12155
 
12156
+ # Request message for the RequestReviewProgram method.
12157
+ class RequestReviewBuyOnGoogleProgramRequest
12158
+ include Google::Apis::Core::Hashable
12159
+
12160
+ def initialize(**args)
12161
+ update!(**args)
12162
+ end
12163
+
12164
+ # Update properties of this object
12165
+ def update!(**args)
12166
+ end
12167
+ end
12168
+
12044
12169
  # Return address resource.
12045
12170
  class ReturnAddress
12046
12171
  include Google::Apis::Core::Hashable
@@ -12597,6 +12722,37 @@ module Google
12597
12722
  end
12598
12723
  end
12599
12724
 
12725
+ # Return shipping label for a Buy on Google merchant-managed return.
12726
+ class ReturnShippingLabel
12727
+ include Google::Apis::Core::Hashable
12728
+
12729
+ # Name of the carrier.
12730
+ # Corresponds to the JSON property `carrier`
12731
+ # @return [String]
12732
+ attr_accessor :carrier
12733
+
12734
+ # The URL for the return shipping label in PDF format
12735
+ # Corresponds to the JSON property `labelUri`
12736
+ # @return [String]
12737
+ attr_accessor :label_uri
12738
+
12739
+ # The tracking id of this return label.
12740
+ # Corresponds to the JSON property `trackingId`
12741
+ # @return [String]
12742
+ attr_accessor :tracking_id
12743
+
12744
+ def initialize(**args)
12745
+ update!(**args)
12746
+ end
12747
+
12748
+ # Update properties of this object
12749
+ def update!(**args)
12750
+ @carrier = args[:carrier] if args.key?(:carrier)
12751
+ @label_uri = args[:label_uri] if args.key?(:label_uri)
12752
+ @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
12753
+ end
12754
+ end
12755
+
12600
12756
  #
12601
12757
  class ReturnaddressCustomBatchRequest
12602
12758
  include Google::Apis::Core::Hashable
@@ -13257,7 +13413,13 @@ module Google
13257
13413
  # transitPackageMissing`" - "`unsuccessfulDeliveryUndeliverable`" - "`
13258
13414
  # wrongChargeInStore`" - "`wrongItem`" - "`returns`" - "`undeliverable`" - "`
13259
13415
  # issueRelatedRefundAndReplacementAmountDescription`" - "`refundFromMerchant`" -
13260
- # "`returnLabelShippingFee`" - "`lumpSumCorrection`" - "`pspFee`"
13416
+ # "`returnLabelShippingFee`" - "`lumpSumCorrection`" - "`pspFee`" - "`
13417
+ # principalRefundDoesNotFit`" - "`principalRefundOrderedWrongItem`" - "`
13418
+ # principalRefundQualityNotExpected`" - "`principalRefundBetterPriceFound`" - "`
13419
+ # principalRefundNoLongerNeeded`" - "`principalRefundChangedMind`" - "`
13420
+ # principalRefundReceivedTooLate`" - "`principalRefundIncorrectItemReceived`" - "
13421
+ # `principalRefundDamagedOrDefectiveItem`" - "`
13422
+ # principalRefundDidNotMatchDescription`" - "`principalRefundExpiredItem`"
13261
13423
  # Corresponds to the JSON property `description`
13262
13424
  # @return [String]
13263
13425
  attr_accessor :description
@@ -14525,6 +14687,66 @@ module Google
14525
14687
  end
14526
14688
  end
14527
14689
 
14690
+ #
14691
+ class WarehouseBasedDeliveryTime
14692
+ include Google::Apis::Core::Hashable
14693
+
14694
+ # Required. Carrier, such as `"UPS"` or `"Fedex"`. The list of supported
14695
+ # carriers can be retrieved via the `listSupportedCarriers` method.
14696
+ # Corresponds to the JSON property `carrier`
14697
+ # @return [String]
14698
+ attr_accessor :carrier
14699
+
14700
+ # Required. Carrier service, such as `"ground"` or `"2 days"`. The list of
14701
+ # supported services for a carrier can be retrieved via the `
14702
+ # listSupportedCarriers` method. The name of the service must be in the
14703
+ # eddSupportedServices list.
14704
+ # Corresponds to the JSON property `carrierService`
14705
+ # @return [String]
14706
+ attr_accessor :carrier_service
14707
+
14708
+ # Required. Shipping origin's state.
14709
+ # Corresponds to the JSON property `originAdministrativeArea`
14710
+ # @return [String]
14711
+ attr_accessor :origin_administrative_area
14712
+
14713
+ # Required. Shipping origin's city.
14714
+ # Corresponds to the JSON property `originCity`
14715
+ # @return [String]
14716
+ attr_accessor :origin_city
14717
+
14718
+ # Required. Shipping origin's country represented as a [CLDR territory code](
14719
+ # http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
14720
+ # Corresponds to the JSON property `originCountry`
14721
+ # @return [String]
14722
+ attr_accessor :origin_country
14723
+
14724
+ # Required. Shipping origin.
14725
+ # Corresponds to the JSON property `originPostalCode`
14726
+ # @return [String]
14727
+ attr_accessor :origin_postal_code
14728
+
14729
+ # Shipping origin's street address.
14730
+ # Corresponds to the JSON property `originStreetAddress`
14731
+ # @return [String]
14732
+ attr_accessor :origin_street_address
14733
+
14734
+ def initialize(**args)
14735
+ update!(**args)
14736
+ end
14737
+
14738
+ # Update properties of this object
14739
+ def update!(**args)
14740
+ @carrier = args[:carrier] if args.key?(:carrier)
14741
+ @carrier_service = args[:carrier_service] if args.key?(:carrier_service)
14742
+ @origin_administrative_area = args[:origin_administrative_area] if args.key?(:origin_administrative_area)
14743
+ @origin_city = args[:origin_city] if args.key?(:origin_city)
14744
+ @origin_country = args[:origin_country] if args.key?(:origin_country)
14745
+ @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
14746
+ @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
14747
+ end
14748
+ end
14749
+
14528
14750
  #
14529
14751
  class Weight
14530
14752
  include Google::Apis::Core::Hashable
@@ -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.9.0"
19
+ GEM_VERSION = "0.10.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 = "20210325"
25
+ REVISION = "20210505"
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
 
@@ -4580,6 +4627,20 @@ module Google
4580
4627
  end
4581
4628
  end
4582
4629
 
4630
+ class PauseBuyOnGoogleProgramRequest
4631
+ # @private
4632
+ class Representation < Google::Apis::Core::JsonRepresentation
4633
+ end
4634
+ end
4635
+
4636
+ class PaymentServiceProviderLinkInfo
4637
+ # @private
4638
+ class Representation < Google::Apis::Core::JsonRepresentation
4639
+ property :external_account_business_country, as: 'externalAccountBusinessCountry'
4640
+ property :external_account_id, as: 'externalAccountId'
4641
+ end
4642
+ end
4643
+
4583
4644
  class PickupCarrierService
4584
4645
  # @private
4585
4646
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4944,6 +5005,10 @@ module Google
4944
5005
  property :country, as: 'country'
4945
5006
  property :location_group_name, as: 'locationGroupName'
4946
5007
  property :location_id, :numeric_string => true, as: 'locationId'
5008
+ property :max_handling_time, :numeric_string => true, as: 'maxHandlingTime'
5009
+ property :max_transit_time, :numeric_string => true, as: 'maxTransitTime'
5010
+ property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
5011
+ property :min_transit_time, :numeric_string => true, as: 'minTransitTime'
4947
5012
  property :postal_code, as: 'postalCode'
4948
5013
  property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4949
5014
 
@@ -5439,6 +5504,12 @@ module Google
5439
5504
  end
5440
5505
  end
5441
5506
 
5507
+ class RequestReviewBuyOnGoogleProgramRequest
5508
+ # @private
5509
+ class Representation < Google::Apis::Core::JsonRepresentation
5510
+ end
5511
+ end
5512
+
5442
5513
  class ReturnAddress
5443
5514
  # @private
5444
5515
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5586,6 +5657,15 @@ module Google
5586
5657
  end
5587
5658
  end
5588
5659
 
5660
+ class ReturnShippingLabel
5661
+ # @private
5662
+ class Representation < Google::Apis::Core::JsonRepresentation
5663
+ property :carrier, as: 'carrier'
5664
+ property :label_uri, as: 'labelUri'
5665
+ property :tracking_id, as: 'trackingId'
5666
+ end
5667
+ end
5668
+
5589
5669
  class ReturnaddressCustomBatchRequest
5590
5670
  # @private
5591
5671
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6146,6 +6226,19 @@ module Google
6146
6226
  end
6147
6227
  end
6148
6228
 
6229
+ class WarehouseBasedDeliveryTime
6230
+ # @private
6231
+ class Representation < Google::Apis::Core::JsonRepresentation
6232
+ property :carrier, as: 'carrier'
6233
+ property :carrier_service, as: 'carrierService'
6234
+ property :origin_administrative_area, as: 'originAdministrativeArea'
6235
+ property :origin_city, as: 'originCity'
6236
+ property :origin_country, as: 'originCountry'
6237
+ property :origin_postal_code, as: 'originPostalCode'
6238
+ property :origin_street_address, as: 'originStreetAddress'
6239
+ end
6240
+ end
6241
+
6149
6242
  class Weight
6150
6243
  # @private
6151
6244
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1013,7 +1013,44 @@ module Google
1013
1013
  execute_or_queue_command(command, &block)
1014
1014
  end
1015
1015
 
1016
- # Retrieves a status of BoG program for your Merchant Center account.
1016
+ # Reactivates the BoG program in your Merchant Center account. Moves the program
1017
+ # to the active state when allowed, e.g. when paused. Important: This method is
1018
+ # only whitelisted for selected merchants.
1019
+ # @param [Fixnum] merchant_id
1020
+ # Required. The ID of the account.
1021
+ # @param [String] region_code
1022
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1023
+ # ISO_3166-1_alpha-2). Currently only US is available.
1024
+ # @param [Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest] activate_buy_on_google_program_request_object
1025
+ # @param [String] fields
1026
+ # Selector specifying which fields to include in a partial response.
1027
+ # @param [String] quota_user
1028
+ # Available to use for quota purposes for server-side applications. Can be any
1029
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1030
+ # @param [Google::Apis::RequestOptions] options
1031
+ # Request-specific options
1032
+ #
1033
+ # @yield [result, err] Result & error if block supplied
1034
+ # @yieldparam result [NilClass] No result returned for this method
1035
+ # @yieldparam err [StandardError] error object if request failed
1036
+ #
1037
+ # @return [void]
1038
+ #
1039
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1040
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1041
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1042
+ 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)
1043
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/activate', options)
1044
+ command.request_representation = Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest::Representation
1045
+ command.request_object = activate_buy_on_google_program_request_object
1046
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1047
+ command.params['regionCode'] = region_code unless region_code.nil?
1048
+ command.query['fields'] = fields unless fields.nil?
1049
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1050
+ execute_or_queue_command(command, &block)
1051
+ end
1052
+
1053
+ # Retrieves a status of the BoG program for your Merchant Center account.
1017
1054
  # @param [Fixnum] merchant_id
1018
1055
  # Required. The ID of the account.
1019
1056
  # @param [String] region_code
@@ -1047,12 +1084,12 @@ module Google
1047
1084
  execute_or_queue_command(command, &block)
1048
1085
  end
1049
1086
 
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.
1087
+ # Onboards the BoG program in your Merchant Center account. By using this method,
1088
+ # you agree to the [Terms of Service](https://merchants.google.com/mc/
1089
+ # termsofservice/transactions/US/latest). Calling this method is only possible
1090
+ # if the authenticated account is the same as the merchant id in the request.
1091
+ # Calling this method multiple times will only accept Terms of Service if the
1092
+ # latest version is not currently signed.
1056
1093
  # @param [Fixnum] merchant_id
1057
1094
  # Required. The ID of the account.
1058
1095
  # @param [String] region_code
@@ -1087,6 +1124,79 @@ module Google
1087
1124
  execute_or_queue_command(command, &block)
1088
1125
  end
1089
1126
 
1127
+ # Pauses the BoG program in your Merchant Center account. Important: This method
1128
+ # is only whitelisted for selected merchants.
1129
+ # @param [Fixnum] merchant_id
1130
+ # Required. The ID of the account.
1131
+ # @param [String] region_code
1132
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1133
+ # ISO_3166-1_alpha-2). Currently only US is available.
1134
+ # @param [Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest] pause_buy_on_google_program_request_object
1135
+ # @param [String] fields
1136
+ # Selector specifying which fields to include in a partial response.
1137
+ # @param [String] quota_user
1138
+ # Available to use for quota purposes for server-side applications. Can be any
1139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1140
+ # @param [Google::Apis::RequestOptions] options
1141
+ # Request-specific options
1142
+ #
1143
+ # @yield [result, err] Result & error if block supplied
1144
+ # @yieldparam result [NilClass] No result returned for this method
1145
+ # @yieldparam err [StandardError] error object if request failed
1146
+ #
1147
+ # @return [void]
1148
+ #
1149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1152
+ 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)
1153
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/pause', options)
1154
+ command.request_representation = Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest::Representation
1155
+ command.request_object = pause_buy_on_google_program_request_object
1156
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1157
+ command.params['regionCode'] = region_code unless region_code.nil?
1158
+ command.query['fields'] = fields unless fields.nil?
1159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1160
+ execute_or_queue_command(command, &block)
1161
+ end
1162
+
1163
+ # Requests review and then activates the BoG program in your Merchant Center
1164
+ # account for the first time. Moves the program to the REVIEW_PENDING state.
1165
+ # Important: This method is only whitelisted for selected merchants.
1166
+ # @param [Fixnum] merchant_id
1167
+ # Required. The ID of the account.
1168
+ # @param [String] region_code
1169
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1170
+ # ISO_3166-1_alpha-2). Currently only US is available.
1171
+ # @param [Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest] request_review_buy_on_google_program_request_object
1172
+ # @param [String] fields
1173
+ # Selector specifying which fields to include in a partial response.
1174
+ # @param [String] quota_user
1175
+ # Available to use for quota purposes for server-side applications. Can be any
1176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1177
+ # @param [Google::Apis::RequestOptions] options
1178
+ # Request-specific options
1179
+ #
1180
+ # @yield [result, err] Result & error if block supplied
1181
+ # @yieldparam result [NilClass] No result returned for this method
1182
+ # @yieldparam err [StandardError] error object if request failed
1183
+ #
1184
+ # @return [void]
1185
+ #
1186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1189
+ def requestreview_buyongoogleprogram(merchant_id, region_code, request_review_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1190
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/requestreview', options)
1191
+ command.request_representation = Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest::Representation
1192
+ command.request_object = request_review_buy_on_google_program_request_object
1193
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1194
+ command.params['regionCode'] = region_code unless region_code.nil?
1195
+ command.query['fields'] = fields unless fields.nil?
1196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1197
+ execute_or_queue_command(command, &block)
1198
+ end
1199
+
1090
1200
  # Uploads a collection to your Merchant Center account. If a collection with the
1091
1201
  # same collectionId already exists, this method updates that entry. In each
1092
1202
  # update, the collection is completely replaced by the fields in the body of the
@@ -2615,6 +2725,46 @@ module Google
2615
2725
  execute_or_queue_command(command, &block)
2616
2726
  end
2617
2727
 
2728
+ # Links a return shipping label to a return id. You can only create one return
2729
+ # label per return id. Since the label is sent to the buyer, the linked return
2730
+ # label cannot be updated or deleted. If you try to create multiple return
2731
+ # shipping labels for a single return id, every create request except the first
2732
+ # will fail.
2733
+ # @param [Fixnum] merchant_id
2734
+ # Required. The merchant the Return Shipping Label belongs to.
2735
+ # @param [String] return_id
2736
+ # Required. Provide the Google-generated merchant order return ID.
2737
+ # @param [Google::Apis::ContentV2_1::ReturnShippingLabel] return_shipping_label_object
2738
+ # @param [String] fields
2739
+ # Selector specifying which fields to include in a partial response.
2740
+ # @param [String] quota_user
2741
+ # Available to use for quota purposes for server-side applications. Can be any
2742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2743
+ # @param [Google::Apis::RequestOptions] options
2744
+ # Request-specific options
2745
+ #
2746
+ # @yield [result, err] Result & error if block supplied
2747
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnShippingLabel] parsed result object
2748
+ # @yieldparam err [StandardError] error object if request failed
2749
+ #
2750
+ # @return [Google::Apis::ContentV2_1::ReturnShippingLabel]
2751
+ #
2752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2755
+ def create_orderreturn_label(merchant_id, return_id, return_shipping_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2756
+ command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/labels', options)
2757
+ command.request_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation
2758
+ command.request_object = return_shipping_label_object
2759
+ command.response_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation
2760
+ command.response_class = Google::Apis::ContentV2_1::ReturnShippingLabel
2761
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2762
+ command.params['returnId'] = return_id unless return_id.nil?
2763
+ command.query['fields'] = fields unless fields.nil?
2764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2765
+ execute_or_queue_command(command, &block)
2766
+ end
2767
+
2618
2768
  # Marks an order as acknowledged.
2619
2769
  # @param [Fixnum] merchant_id
2620
2770
  # The ID of the account that manages the order. This cannot be a multi-client
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.9.0
4
+ version: 0.10.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-04-05 00:00:00.000000000 Z
11
+ date: 2021-05-18 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.9.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.10.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