google-apis-content_v2_1 0.19.0 → 0.23.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: bb02d6a532b3edb7e150d9b05fe763ec7d4cc4cfd1ac97701f2ccdcc6dd8aa2c
4
- data.tar.gz: ba910bb8cd525a5a7dc5b03522f73fc8de1c9d3f95ceee5eb0dae9a4e4acd7c6
3
+ metadata.gz: 33d56572d161166b714729b294c8054425015614066467ba2c88958b2f91d96b
4
+ data.tar.gz: c2133d87709ac18bd70872af78f224bf5b868a83682edc859fed07840f166f82
5
5
  SHA512:
6
- metadata.gz: 49c9049c7534429bb4e0086d30629d67bc1f1dc9a7c3bf8d98031860167c9ff1bcd9c7b493c65b3b374ad7507b69132438609d32c6549866a19ef8d80c7980cd
7
- data.tar.gz: c5bcc7810c76e738925ef35bd3e30757595f092f132497514a6da05a6742e245cc1442fa2cb52e8f4881f95f149567f55f70224406fc528b40331d648dad2ec2
6
+ metadata.gz: 064752f7b0bb8f84d4c2dd556c5a3c5573d8ab8cafa63273c27cf6b159fb309472daa05b090733b7c8ae06d272dff36e87c3f20bf27065708c44fce8321db541
7
+ data.tar.gz: e279297c82f013d33b7c24e19e26c9b4a2ec4826349923a7ad87fda3f930222a93457c7f8ab0ca9611f25660bfc1e871bf1a8cb5a7d1de15e75ba7f820cd86c8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.23.0 (2021-09-28)
4
+
5
+ * Regenerated from discovery document revision 20210924
6
+
7
+ ### v0.22.0 (2021-09-22)
8
+
9
+ * Regenerated from discovery document revision 20210917
10
+
11
+ ### v0.21.0 (2021-09-15)
12
+
13
+ * Regenerated from discovery document revision 20210911
14
+
15
+ ### v0.20.0 (2021-09-01)
16
+
17
+ * Regenerated from discovery document revision 20210827
18
+
3
19
  ### v0.19.0 (2021-07-27)
4
20
 
5
21
  * Regenerated from discovery document revision 20210722
@@ -144,8 +144,9 @@ module Google
144
144
  class AccountAddress
145
145
  include Google::Apis::Core::Hashable
146
146
 
147
- # CLDR country code (e.g. "US"). This value cannot be set for a sub-account of
148
- # an MCA. All MCA sub-accounts inherit the country of their parent MCA.
147
+ # CLDR country code (e.g. "US"). All MCA sub-accounts inherit the country of
148
+ # their parent MCA by default, however the country can be updated for individual
149
+ # sub-accounts.
149
150
  # Corresponds to the JSON property `country`
150
151
  # @return [String]
151
152
  attr_accessor :country
@@ -234,7 +235,16 @@ module Google
234
235
  # @return [Google::Apis::ContentV2_1::AccountCustomerService]
235
236
  attr_accessor :customer_service
236
237
 
237
- # The phone number of the business.
238
+ # The 10-digit [Korean business registration number](https://support.google.com/
239
+ # merchants/answer/9037766) separated with dashes in the format: XXX-XX-XXXXX.
240
+ # This field will only be updated if explicitly set.
241
+ # Corresponds to the JSON property `koreanBusinessRegistrationNumber`
242
+ # @return [String]
243
+ attr_accessor :korean_business_registration_number
244
+
245
+ # ! The phone number of the business. This can only be updated if a verified !
246
+ # phone number is not already set. To replace a verified phone number use ! the `
247
+ # Accounts.requestphoneverification` and ! `Accounts.verifyphonenumber`.
238
248
  # Corresponds to the JSON property `phoneNumber`
239
249
  # @return [String]
240
250
  attr_accessor :phone_number
@@ -247,6 +257,7 @@ module Google
247
257
  def update!(**args)
248
258
  @address = args[:address] if args.key?(:address)
249
259
  @customer_service = args[:customer_service] if args.key?(:customer_service)
260
+ @korean_business_registration_number = args[:korean_business_registration_number] if args.key?(:korean_business_registration_number)
250
261
  @phone_number = args[:phone_number] if args.key?(:phone_number)
251
262
  end
252
263
  end
@@ -1137,6 +1148,11 @@ module Google
1137
1148
  # @return [String]
1138
1149
  attr_accessor :action
1139
1150
 
1151
+ # Additional information required for E_COMMERCE_PLATFORM link type.
1152
+ # Corresponds to the JSON property `eCommercePlatformLinkInfo`
1153
+ # @return [Google::Apis::ContentV2_1::ECommercePlatformLinkInfo]
1154
+ attr_accessor :e_commerce_platform_link_info
1155
+
1140
1156
  # Type of the link between the two accounts. Acceptable values are: - "`
1141
1157
  # channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`"
1142
1158
  # Corresponds to the JSON property `linkType`
@@ -1167,6 +1183,7 @@ module Google
1167
1183
  # Update properties of this object
1168
1184
  def update!(**args)
1169
1185
  @action = args[:action] if args.key?(:action)
1186
+ @e_commerce_platform_link_info = args[:e_commerce_platform_link_info] if args.key?(:e_commerce_platform_link_info)
1170
1187
  @link_type = args[:link_type] if args.key?(:link_type)
1171
1188
  @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id)
1172
1189
  @payment_service_provider_link_info = args[:payment_service_provider_link_info] if args.key?(:payment_service_provider_link_info)
@@ -1651,7 +1668,7 @@ module Google
1651
1668
  class BusinessDayConfig
1652
1669
  include Google::Apis::Core::Hashable
1653
1670
 
1654
- # Regular business days. May not be empty.
1671
+ # Regular business days, such as '"monday"'. May not be empty.
1655
1672
  # Corresponds to the JSON property `businessDays`
1656
1673
  # @return [Array<String>]
1657
1674
  attr_accessor :business_days
@@ -1670,17 +1687,59 @@ module Google
1670
1687
  class BuyOnGoogleProgramStatus
1671
1688
  include Google::Apis::Core::Hashable
1672
1689
 
1673
- # The customer service pending email.
1690
+ # The business models in which merchant participates.
1691
+ # Corresponds to the JSON property `businessModel`
1692
+ # @return [Array<String>]
1693
+ attr_accessor :business_model
1694
+
1695
+ # The customer service pending email. After verification this field becomes
1696
+ # empty.
1674
1697
  # Corresponds to the JSON property `customerServicePendingEmail`
1675
1698
  # @return [String]
1676
1699
  attr_accessor :customer_service_pending_email
1677
1700
 
1678
- # The customer service verified email.
1701
+ # The pending phone number specified for BuyOnGoogle program. It might be
1702
+ # different than account level phone number. In order to update this field the
1703
+ # customer_service_pending_phone_region_code must also be set. After
1704
+ # verification this field becomes empty.
1705
+ # Corresponds to the JSON property `customerServicePendingPhoneNumber`
1706
+ # @return [String]
1707
+ attr_accessor :customer_service_pending_phone_number
1708
+
1709
+ # Two letter country code for the pending phone number, for example `CA` for
1710
+ # Canadian numbers. See the [ISO 3166-1 alpha-2](https://wikipedia.org/wiki/
1711
+ # ISO_3166-1_alpha-2#Officially_assigned_code_elements) officially assigned
1712
+ # codes. In order to update this field the customer_service_pending_phone_number
1713
+ # must also be set. After verification this field becomes empty.
1714
+ # Corresponds to the JSON property `customerServicePendingPhoneRegionCode`
1715
+ # @return [String]
1716
+ attr_accessor :customer_service_pending_phone_region_code
1717
+
1718
+ # Output only. The customer service verified email.
1679
1719
  # Corresponds to the JSON property `customerServiceVerifiedEmail`
1680
1720
  # @return [String]
1681
1721
  attr_accessor :customer_service_verified_email
1682
1722
 
1683
- # The current participation stage for the program.
1723
+ # Output only. The verified phone number specified for BuyOnGoogle program. It
1724
+ # might be different than account level phone number.
1725
+ # Corresponds to the JSON property `customerServiceVerifiedPhoneNumber`
1726
+ # @return [String]
1727
+ attr_accessor :customer_service_verified_phone_number
1728
+
1729
+ # Output only. Two letter country code for the verified phone number, for
1730
+ # example `CA` for Canadian numbers. See the [ISO 3166-1 alpha-2](https://
1731
+ # wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
1732
+ # officially assigned codes.
1733
+ # Corresponds to the JSON property `customerServiceVerifiedPhoneRegionCode`
1734
+ # @return [String]
1735
+ attr_accessor :customer_service_verified_phone_region_code
1736
+
1737
+ # The channels through which the merchant is selling.
1738
+ # Corresponds to the JSON property `onlineSalesChannel`
1739
+ # @return [String]
1740
+ attr_accessor :online_sales_channel
1741
+
1742
+ # Output only. The current participation stage for the program.
1684
1743
  # Corresponds to the JSON property `participationStage`
1685
1744
  # @return [String]
1686
1745
  attr_accessor :participation_stage
@@ -1691,12 +1750,51 @@ module Google
1691
1750
 
1692
1751
  # Update properties of this object
1693
1752
  def update!(**args)
1753
+ @business_model = args[:business_model] if args.key?(:business_model)
1694
1754
  @customer_service_pending_email = args[:customer_service_pending_email] if args.key?(:customer_service_pending_email)
1755
+ @customer_service_pending_phone_number = args[:customer_service_pending_phone_number] if args.key?(:customer_service_pending_phone_number)
1756
+ @customer_service_pending_phone_region_code = args[:customer_service_pending_phone_region_code] if args.key?(:customer_service_pending_phone_region_code)
1695
1757
  @customer_service_verified_email = args[:customer_service_verified_email] if args.key?(:customer_service_verified_email)
1758
+ @customer_service_verified_phone_number = args[:customer_service_verified_phone_number] if args.key?(:customer_service_verified_phone_number)
1759
+ @customer_service_verified_phone_region_code = args[:customer_service_verified_phone_region_code] if args.key?(:customer_service_verified_phone_region_code)
1760
+ @online_sales_channel = args[:online_sales_channel] if args.key?(:online_sales_channel)
1696
1761
  @participation_stage = args[:participation_stage] if args.key?(:participation_stage)
1697
1762
  end
1698
1763
  end
1699
1764
 
1765
+ # Request message for the CaptureOrder method.
1766
+ class CaptureOrderRequest
1767
+ include Google::Apis::Core::Hashable
1768
+
1769
+ def initialize(**args)
1770
+ update!(**args)
1771
+ end
1772
+
1773
+ # Update properties of this object
1774
+ def update!(**args)
1775
+ end
1776
+ end
1777
+
1778
+ # Response message for the CaptureOrder method.
1779
+ class CaptureOrderResponse
1780
+ include Google::Apis::Core::Hashable
1781
+
1782
+ # The status of the execution. Only defined if the request was successful.
1783
+ # Acceptable values are: * "duplicate" * "executed"
1784
+ # Corresponds to the JSON property `executionStatus`
1785
+ # @return [String]
1786
+ attr_accessor :execution_status
1787
+
1788
+ def initialize(**args)
1789
+ update!(**args)
1790
+ end
1791
+
1792
+ # Update properties of this object
1793
+ def update!(**args)
1794
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
1795
+ end
1796
+ end
1797
+
1700
1798
  #
1701
1799
  class CarrierRate
1702
1800
  include Google::Apis::Core::Hashable
@@ -3148,6 +3246,25 @@ module Google
3148
3246
  end
3149
3247
  end
3150
3248
 
3249
+ # Additional information required for E_COMMERCE_PLATFORM link type.
3250
+ class ECommercePlatformLinkInfo
3251
+ include Google::Apis::Core::Hashable
3252
+
3253
+ # The id used by the third party service provider to identify the merchant.
3254
+ # Corresponds to the JSON property `externalAccountId`
3255
+ # @return [String]
3256
+ attr_accessor :external_account_id
3257
+
3258
+ def initialize(**args)
3259
+ update!(**args)
3260
+ end
3261
+
3262
+ # Update properties of this object
3263
+ def update!(**args)
3264
+ @external_account_id = args[:external_account_id] if args.key?(:external_account_id)
3265
+ end
3266
+ end
3267
+
3151
3268
  # An error returned by the API.
3152
3269
  class Error
3153
3270
  include Google::Apis::Core::Hashable
@@ -4527,7 +4644,7 @@ module Google
4527
4644
 
4528
4645
  # Supported pickup method for this offer. Unless the value is "not supported",
4529
4646
  # this field must be submitted together with `pickupSla`. For accepted attribute
4530
- # values, see the local product inventory feed // specification.
4647
+ # values, see the local product inventory feed specification.
4531
4648
  # Corresponds to the JSON property `pickupMethod`
4532
4649
  # @return [String]
4533
4650
  attr_accessor :pickup_method
@@ -5463,7 +5580,7 @@ module Google
5463
5580
  # "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`
5464
5581
  # paymentDeclined`" - "`priceError`" - "`returnRefundAbuse`" - "`
5465
5582
  # shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`
5466
- # unsupportedPoBoxAddress`"
5583
+ # unsupportedPoBoxAddress`" - "`failedToCaptureFunds`"
5467
5584
  # Corresponds to the JSON property `reason`
5468
5585
  # @return [String]
5469
5586
  attr_accessor :reason
@@ -7751,7 +7868,8 @@ module Google
7751
7868
  # The reason for the cancellation. Acceptable values are: - "`
7752
7869
  # customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" -
7753
7870
  # "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`
7754
- # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`"
7871
+ # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "
7872
+ # `failedToCaptureFunds`"
7755
7873
  # Corresponds to the JSON property `reason`
7756
7874
  # @return [String]
7757
7875
  attr_accessor :reason
@@ -7815,7 +7933,8 @@ module Google
7815
7933
  # The reason for the cancellation. Acceptable values are: - "`
7816
7934
  # customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" -
7817
7935
  # "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`
7818
- # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`"
7936
+ # taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "
7937
+ # `failedToCaptureFunds`"
7819
7938
  # Corresponds to the JSON property `reason`
7820
7939
  # @return [String]
7821
7940
  attr_accessor :reason
@@ -10291,16 +10410,40 @@ module Google
10291
10410
  # @return [Array<Google::Apis::ContentV2_1::ProductProductDetail>]
10292
10411
  attr_accessor :product_details
10293
10412
 
10413
+ # The height of the product in the units provided. The value must be between 0 (
10414
+ # exclusive) and 3000 (inclusive).
10415
+ # Corresponds to the JSON property `productHeight`
10416
+ # @return [Google::Apis::ContentV2_1::ProductDimension]
10417
+ attr_accessor :product_height
10418
+
10294
10419
  # Bullet points describing the most relevant highlights of a product.
10295
10420
  # Corresponds to the JSON property `productHighlights`
10296
10421
  # @return [Array<String>]
10297
10422
  attr_accessor :product_highlights
10298
10423
 
10424
+ # The length of the product in the units provided. The value must be between 0 (
10425
+ # exclusive) and 3000 (inclusive).
10426
+ # Corresponds to the JSON property `productLength`
10427
+ # @return [Google::Apis::ContentV2_1::ProductDimension]
10428
+ attr_accessor :product_length
10429
+
10299
10430
  # Categories of the item (formatted as in products data specification).
10300
10431
  # Corresponds to the JSON property `productTypes`
10301
10432
  # @return [Array<String>]
10302
10433
  attr_accessor :product_types
10303
10434
 
10435
+ # The weight of the product in the units provided. The value must be between 0 (
10436
+ # exclusive) and 2000 (inclusive).
10437
+ # Corresponds to the JSON property `productWeight`
10438
+ # @return [Google::Apis::ContentV2_1::ProductWeight]
10439
+ attr_accessor :product_weight
10440
+
10441
+ # The width of the product in the units provided. The value must be between 0 (
10442
+ # exclusive) and 3000 (inclusive).
10443
+ # Corresponds to the JSON property `productWidth`
10444
+ # @return [Google::Apis::ContentV2_1::ProductDimension]
10445
+ attr_accessor :product_width
10446
+
10304
10447
  # The unique ID of a promotion.
10305
10448
  # Corresponds to the JSON property `promotionIds`
10306
10449
  # @return [Array<String>]
@@ -10492,8 +10635,12 @@ module Google
10492
10635
  @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
10493
10636
  @price = args[:price] if args.key?(:price)
10494
10637
  @product_details = args[:product_details] if args.key?(:product_details)
10638
+ @product_height = args[:product_height] if args.key?(:product_height)
10495
10639
  @product_highlights = args[:product_highlights] if args.key?(:product_highlights)
10640
+ @product_length = args[:product_length] if args.key?(:product_length)
10496
10641
  @product_types = args[:product_types] if args.key?(:product_types)
10642
+ @product_weight = args[:product_weight] if args.key?(:product_weight)
10643
+ @product_width = args[:product_width] if args.key?(:product_width)
10497
10644
  @promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids)
10498
10645
  @sale_price = args[:sale_price] if args.key?(:sale_price)
10499
10646
  @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
@@ -10551,6 +10698,32 @@ module Google
10551
10698
  end
10552
10699
  end
10553
10700
 
10701
+ #
10702
+ class ProductDimension
10703
+ include Google::Apis::Core::Hashable
10704
+
10705
+ # Required. The length units. Acceptable values are: - "`in`" - "`cm`"
10706
+ # Corresponds to the JSON property `unit`
10707
+ # @return [String]
10708
+ attr_accessor :unit
10709
+
10710
+ # Required. The length value represented as a number. The value can have a
10711
+ # maximum precision of four decimal places.
10712
+ # Corresponds to the JSON property `value`
10713
+ # @return [Float]
10714
+ attr_accessor :value
10715
+
10716
+ def initialize(**args)
10717
+ update!(**args)
10718
+ end
10719
+
10720
+ # Update properties of this object
10721
+ def update!(**args)
10722
+ @unit = args[:unit] if args.key?(:unit)
10723
+ @value = args[:value] if args.key?(:value)
10724
+ end
10725
+ end
10726
+
10554
10727
  #
10555
10728
  class ProductProductDetail
10556
10729
  include Google::Apis::Core::Hashable
@@ -11041,6 +11214,33 @@ module Google
11041
11214
  end
11042
11215
  end
11043
11216
 
11217
+ #
11218
+ class ProductWeight
11219
+ include Google::Apis::Core::Hashable
11220
+
11221
+ # Required. The weight unit. Acceptable values are: - "`g`" - "`kg`" - "`oz`" - "
11222
+ # `lb`"
11223
+ # Corresponds to the JSON property `unit`
11224
+ # @return [String]
11225
+ attr_accessor :unit
11226
+
11227
+ # Required. The weight represented as a number. The weight can have a maximum
11228
+ # precision of four decimal places.
11229
+ # Corresponds to the JSON property `value`
11230
+ # @return [Float]
11231
+ attr_accessor :value
11232
+
11233
+ def initialize(**args)
11234
+ update!(**args)
11235
+ end
11236
+
11237
+ # Update properties of this object
11238
+ def update!(**args)
11239
+ @unit = args[:unit] if args.key?(:unit)
11240
+ @value = args[:value] if args.key?(:value)
11241
+ end
11242
+ end
11243
+
11044
11244
  #
11045
11245
  class ProductsCustomBatchRequest
11046
11246
  include Google::Apis::Core::Hashable
@@ -11094,8 +11294,8 @@ module Google
11094
11294
  # @return [Google::Apis::ContentV2_1::Product]
11095
11295
  attr_accessor :product
11096
11296
 
11097
- # The ID of the product to get or delete. Only defined if the method is `get` or
11098
- # `delete`.
11297
+ # The ID of the product to get or mutate. Only defined if the method is `get`, `
11298
+ # delete`, or `update`.
11099
11299
  # Corresponds to the JSON property `productId`
11100
11300
  # @return [String]
11101
11301
  attr_accessor :product_id
@@ -11392,6 +11592,229 @@ module Google
11392
11592
  end
11393
11593
  end
11394
11594
 
11595
+ # Represents a promotion. (1) https://support.google.com/merchants/answer/
11596
+ # 2906014 (2) https://support.google.com/merchants/answer/10146130 (3) https://
11597
+ # support.google.com/merchants/answer/9173673
11598
+ class Promotion
11599
+ include Google::Apis::Core::Hashable
11600
+
11601
+ # Product filter by brand for the promotion.
11602
+ # Corresponds to the JSON property `brand`
11603
+ # @return [Array<String>]
11604
+ attr_accessor :brand
11605
+
11606
+ # Product filter by brand exclusion for the promotion.
11607
+ # Corresponds to the JSON property `brandExclusion`
11608
+ # @return [Array<String>]
11609
+ attr_accessor :brand_exclusion
11610
+
11611
+ # Required. The content language used as part of the unique identifier.
11612
+ # Corresponds to the JSON property `contentLanguage`
11613
+ # @return [String]
11614
+ attr_accessor :content_language
11615
+
11616
+ # Required. Coupon value type for the promotion.
11617
+ # Corresponds to the JSON property `couponValueType`
11618
+ # @return [String]
11619
+ attr_accessor :coupon_value_type
11620
+
11621
+ # Free gift description for the promotion.
11622
+ # Corresponds to the JSON property `freeGiftDescription`
11623
+ # @return [String]
11624
+ attr_accessor :free_gift_description
11625
+
11626
+ # Free gift item id for the promotion.
11627
+ # Corresponds to the JSON property `freeGiftItemId`
11628
+ # @return [String]
11629
+ attr_accessor :free_gift_item_id
11630
+
11631
+ # The price represented as a number and currency.
11632
+ # Corresponds to the JSON property `freeGiftValue`
11633
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11634
+ attr_accessor :free_gift_value
11635
+
11636
+ # Generic redemption code for the promotion. To be used with the above field.
11637
+ # Corresponds to the JSON property `genericRedemptionCode`
11638
+ # @return [String]
11639
+ attr_accessor :generic_redemption_code
11640
+
11641
+ # The number of items discounted in the promotion.
11642
+ # Corresponds to the JSON property `getThisQuantityDiscounted`
11643
+ # @return [Fixnum]
11644
+ attr_accessor :get_this_quantity_discounted
11645
+
11646
+ # Required. Output only. The REST promotion id to uniquely identify the
11647
+ # promotion. Content API methods that operate on promotions take this as their
11648
+ # promotionId parameter.
11649
+ # Corresponds to the JSON property `id`
11650
+ # @return [String]
11651
+ attr_accessor :id
11652
+
11653
+ # Product filter by item group id for the promotion.
11654
+ # Corresponds to the JSON property `itemGroupId`
11655
+ # @return [Array<String>]
11656
+ attr_accessor :item_group_id
11657
+
11658
+ # Product filter by item group id exclusion for the promotion.
11659
+ # Corresponds to the JSON property `itemGroupIdExclusion`
11660
+ # @return [Array<String>]
11661
+ attr_accessor :item_group_id_exclusion
11662
+
11663
+ # Product filter by item id for the promotion.
11664
+ # Corresponds to the JSON property `itemId`
11665
+ # @return [Array<String>]
11666
+ attr_accessor :item_id
11667
+
11668
+ # Product filter by item id exclusion for the promotion.
11669
+ # Corresponds to the JSON property `itemIdExclusion`
11670
+ # @return [Array<String>]
11671
+ attr_accessor :item_id_exclusion
11672
+
11673
+ # Maximum purchase quantity for the promotion.
11674
+ # Corresponds to the JSON property `limitQuantity`
11675
+ # @return [Fixnum]
11676
+ attr_accessor :limit_quantity
11677
+
11678
+ # The price represented as a number and currency.
11679
+ # Corresponds to the JSON property `limitValue`
11680
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11681
+ attr_accessor :limit_value
11682
+
11683
+ # Long title for the promotion.
11684
+ # Corresponds to the JSON property `longTitle`
11685
+ # @return [String]
11686
+ attr_accessor :long_title
11687
+
11688
+ # The price represented as a number and currency.
11689
+ # Corresponds to the JSON property `minimumPurchaseAmount`
11690
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11691
+ attr_accessor :minimum_purchase_amount
11692
+
11693
+ # Minimum purchase quantity for the promotion.
11694
+ # Corresponds to the JSON property `minimumPurchaseQuantity`
11695
+ # @return [Fixnum]
11696
+ attr_accessor :minimum_purchase_quantity
11697
+
11698
+ # The price represented as a number and currency.
11699
+ # Corresponds to the JSON property `moneyBudget`
11700
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11701
+ attr_accessor :money_budget
11702
+
11703
+ # The price represented as a number and currency.
11704
+ # Corresponds to the JSON property `moneyOffAmount`
11705
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11706
+ attr_accessor :money_off_amount
11707
+
11708
+ # Required. Type of the promotion.
11709
+ # Corresponds to the JSON property `offerType`
11710
+ # @return [String]
11711
+ attr_accessor :offer_type
11712
+
11713
+ # Order limit for the promotion.
11714
+ # Corresponds to the JSON property `orderLimit`
11715
+ # @return [Fixnum]
11716
+ attr_accessor :order_limit
11717
+
11718
+ # The percentage discount offered in the promotion.
11719
+ # Corresponds to the JSON property `percentOff`
11720
+ # @return [Fixnum]
11721
+ attr_accessor :percent_off
11722
+
11723
+ # Required. Applicability of the promotion to either all products or only
11724
+ # specific products.
11725
+ # Corresponds to the JSON property `productApplicability`
11726
+ # @return [String]
11727
+ attr_accessor :product_applicability
11728
+
11729
+ # Product filter by product type for the promotion.
11730
+ # Corresponds to the JSON property `productType`
11731
+ # @return [Array<String>]
11732
+ attr_accessor :product_type
11733
+
11734
+ # Product filter by product type exclusion for the promotion.
11735
+ # Corresponds to the JSON property `productTypeExclusion`
11736
+ # @return [Array<String>]
11737
+ attr_accessor :product_type_exclusion
11738
+
11739
+ # Destination ID for the promotion.
11740
+ # Corresponds to the JSON property `promotionDestinationIds`
11741
+ # @return [Array<String>]
11742
+ attr_accessor :promotion_destination_ids
11743
+
11744
+ # String representation of the promotion display dates.
11745
+ # Corresponds to the JSON property `promotionDisplayDates`
11746
+ # @return [String]
11747
+ attr_accessor :promotion_display_dates
11748
+
11749
+ # Required. String representation of the promotion effective dates.
11750
+ # Corresponds to the JSON property `promotionEffectiveDates`
11751
+ # @return [String]
11752
+ attr_accessor :promotion_effective_dates
11753
+
11754
+ # Required. The user provided promotion id to uniquely identify the promotion.
11755
+ # Corresponds to the JSON property `promotionId`
11756
+ # @return [String]
11757
+ attr_accessor :promotion_id
11758
+
11759
+ # Required. Redemption channel for the promotion. At least one channel is
11760
+ # required.
11761
+ # Corresponds to the JSON property `redemptionChannel`
11762
+ # @return [Array<String>]
11763
+ attr_accessor :redemption_channel
11764
+
11765
+ # Shipping service names for thse promotion.
11766
+ # Corresponds to the JSON property `shippingServiceNames`
11767
+ # @return [Array<String>]
11768
+ attr_accessor :shipping_service_names
11769
+
11770
+ # Required. The target country used as part of the unique identifier.
11771
+ # Corresponds to the JSON property `targetCountry`
11772
+ # @return [String]
11773
+ attr_accessor :target_country
11774
+
11775
+ def initialize(**args)
11776
+ update!(**args)
11777
+ end
11778
+
11779
+ # Update properties of this object
11780
+ def update!(**args)
11781
+ @brand = args[:brand] if args.key?(:brand)
11782
+ @brand_exclusion = args[:brand_exclusion] if args.key?(:brand_exclusion)
11783
+ @content_language = args[:content_language] if args.key?(:content_language)
11784
+ @coupon_value_type = args[:coupon_value_type] if args.key?(:coupon_value_type)
11785
+ @free_gift_description = args[:free_gift_description] if args.key?(:free_gift_description)
11786
+ @free_gift_item_id = args[:free_gift_item_id] if args.key?(:free_gift_item_id)
11787
+ @free_gift_value = args[:free_gift_value] if args.key?(:free_gift_value)
11788
+ @generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
11789
+ @get_this_quantity_discounted = args[:get_this_quantity_discounted] if args.key?(:get_this_quantity_discounted)
11790
+ @id = args[:id] if args.key?(:id)
11791
+ @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
11792
+ @item_group_id_exclusion = args[:item_group_id_exclusion] if args.key?(:item_group_id_exclusion)
11793
+ @item_id = args[:item_id] if args.key?(:item_id)
11794
+ @item_id_exclusion = args[:item_id_exclusion] if args.key?(:item_id_exclusion)
11795
+ @limit_quantity = args[:limit_quantity] if args.key?(:limit_quantity)
11796
+ @limit_value = args[:limit_value] if args.key?(:limit_value)
11797
+ @long_title = args[:long_title] if args.key?(:long_title)
11798
+ @minimum_purchase_amount = args[:minimum_purchase_amount] if args.key?(:minimum_purchase_amount)
11799
+ @minimum_purchase_quantity = args[:minimum_purchase_quantity] if args.key?(:minimum_purchase_quantity)
11800
+ @money_budget = args[:money_budget] if args.key?(:money_budget)
11801
+ @money_off_amount = args[:money_off_amount] if args.key?(:money_off_amount)
11802
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
11803
+ @order_limit = args[:order_limit] if args.key?(:order_limit)
11804
+ @percent_off = args[:percent_off] if args.key?(:percent_off)
11805
+ @product_applicability = args[:product_applicability] if args.key?(:product_applicability)
11806
+ @product_type = args[:product_type] if args.key?(:product_type)
11807
+ @product_type_exclusion = args[:product_type_exclusion] if args.key?(:product_type_exclusion)
11808
+ @promotion_destination_ids = args[:promotion_destination_ids] if args.key?(:promotion_destination_ids)
11809
+ @promotion_display_dates = args[:promotion_display_dates] if args.key?(:promotion_display_dates)
11810
+ @promotion_effective_dates = args[:promotion_effective_dates] if args.key?(:promotion_effective_dates)
11811
+ @promotion_id = args[:promotion_id] if args.key?(:promotion_id)
11812
+ @redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
11813
+ @shipping_service_names = args[:shipping_service_names] if args.key?(:shipping_service_names)
11814
+ @target_country = args[:target_country] if args.key?(:target_country)
11815
+ end
11816
+ end
11817
+
11395
11818
  # Settings for Pub/Sub notifications, all methods require that the caller is a
11396
11819
  # direct user of the merchant center account.
11397
11820
  class PubsubNotificationSettings
@@ -15344,7 +15767,8 @@ module Google
15344
15767
  class VerifyPhoneNumberResponse
15345
15768
  include Google::Apis::Core::Hashable
15346
15769
 
15347
- # Verified phone number if verification is successful.
15770
+ # Verified phone number if verification is successful. This phone number can
15771
+ # only be replaced by another verified phone number.
15348
15772
  # Corresponds to the JSON property `verifiedPhoneNumber`
15349
15773
  # @return [String]
15350
15774
  attr_accessor :verified_phone_number
@@ -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.19.0"
19
+ GEM_VERSION = "0.23.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210722"
25
+ REVISION = "20210924"
26
26
  end
27
27
  end
28
28
  end
@@ -298,6 +298,18 @@ module Google
298
298
  include Google::Apis::Core::JsonObjectSupport
299
299
  end
300
300
 
301
+ class CaptureOrderRequest
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class CaptureOrderResponse
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
301
313
  class CarrierRate
302
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
315
 
@@ -490,6 +502,12 @@ module Google
490
502
  include Google::Apis::Core::JsonObjectSupport
491
503
  end
492
504
 
505
+ class ECommercePlatformLinkInfo
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ include Google::Apis::Core::JsonObjectSupport
509
+ end
510
+
493
511
  class Error
494
512
  class Representation < Google::Apis::Core::JsonRepresentation; end
495
513
 
@@ -1540,6 +1558,12 @@ module Google
1540
1558
  include Google::Apis::Core::JsonObjectSupport
1541
1559
  end
1542
1560
 
1561
+ class ProductDimension
1562
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1563
+
1564
+ include Google::Apis::Core::JsonObjectSupport
1565
+ end
1566
+
1543
1567
  class ProductProductDetail
1544
1568
  class Representation < Google::Apis::Core::JsonRepresentation; end
1545
1569
 
@@ -1606,6 +1630,12 @@ module Google
1606
1630
  include Google::Apis::Core::JsonObjectSupport
1607
1631
  end
1608
1632
 
1633
+ class ProductWeight
1634
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1635
+
1636
+ include Google::Apis::Core::JsonObjectSupport
1637
+ end
1638
+
1609
1639
  class ProductsCustomBatchRequest
1610
1640
  class Representation < Google::Apis::Core::JsonRepresentation; end
1611
1641
 
@@ -1666,6 +1696,12 @@ module Google
1666
1696
  include Google::Apis::Core::JsonObjectSupport
1667
1697
  end
1668
1698
 
1699
+ class Promotion
1700
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1701
+
1702
+ include Google::Apis::Core::JsonObjectSupport
1703
+ end
1704
+
1669
1705
  class PubsubNotificationSettings
1670
1706
  class Representation < Google::Apis::Core::JsonRepresentation; end
1671
1707
 
@@ -2324,6 +2360,7 @@ module Google
2324
2360
 
2325
2361
  property :customer_service, as: 'customerService', class: Google::Apis::ContentV2_1::AccountCustomerService, decorator: Google::Apis::ContentV2_1::AccountCustomerService::Representation
2326
2362
 
2363
+ property :korean_business_registration_number, as: 'koreanBusinessRegistrationNumber'
2327
2364
  property :phone_number, as: 'phoneNumber'
2328
2365
  end
2329
2366
  end
@@ -2565,6 +2602,8 @@ module Google
2565
2602
  # @private
2566
2603
  class Representation < Google::Apis::Core::JsonRepresentation
2567
2604
  property :action, as: 'action'
2605
+ property :e_commerce_platform_link_info, as: 'eCommercePlatformLinkInfo', class: Google::Apis::ContentV2_1::ECommercePlatformLinkInfo, decorator: Google::Apis::ContentV2_1::ECommercePlatformLinkInfo::Representation
2606
+
2568
2607
  property :link_type, as: 'linkType'
2569
2608
  property :linked_account_id, as: 'linkedAccountId'
2570
2609
  property :payment_service_provider_link_info, as: 'paymentServiceProviderLinkInfo', class: Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo, decorator: Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo::Representation
@@ -2740,12 +2779,31 @@ module Google
2740
2779
  class BuyOnGoogleProgramStatus
2741
2780
  # @private
2742
2781
  class Representation < Google::Apis::Core::JsonRepresentation
2782
+ collection :business_model, as: 'businessModel'
2743
2783
  property :customer_service_pending_email, as: 'customerServicePendingEmail'
2784
+ property :customer_service_pending_phone_number, as: 'customerServicePendingPhoneNumber'
2785
+ property :customer_service_pending_phone_region_code, as: 'customerServicePendingPhoneRegionCode'
2744
2786
  property :customer_service_verified_email, as: 'customerServiceVerifiedEmail'
2787
+ property :customer_service_verified_phone_number, as: 'customerServiceVerifiedPhoneNumber'
2788
+ property :customer_service_verified_phone_region_code, as: 'customerServiceVerifiedPhoneRegionCode'
2789
+ property :online_sales_channel, as: 'onlineSalesChannel'
2745
2790
  property :participation_stage, as: 'participationStage'
2746
2791
  end
2747
2792
  end
2748
2793
 
2794
+ class CaptureOrderRequest
2795
+ # @private
2796
+ class Representation < Google::Apis::Core::JsonRepresentation
2797
+ end
2798
+ end
2799
+
2800
+ class CaptureOrderResponse
2801
+ # @private
2802
+ class Representation < Google::Apis::Core::JsonRepresentation
2803
+ property :execution_status, as: 'executionStatus'
2804
+ end
2805
+ end
2806
+
2749
2807
  class CarrierRate
2750
2808
  # @private
2751
2809
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3116,6 +3174,13 @@ module Google
3116
3174
  end
3117
3175
  end
3118
3176
 
3177
+ class ECommercePlatformLinkInfo
3178
+ # @private
3179
+ class Representation < Google::Apis::Core::JsonRepresentation
3180
+ property :external_account_id, as: 'externalAccountId'
3181
+ end
3182
+ end
3183
+
3119
3184
  class Error
3120
3185
  # @private
3121
3186
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5046,8 +5111,16 @@ module Google
5046
5111
 
5047
5112
  collection :product_details, as: 'productDetails', class: Google::Apis::ContentV2_1::ProductProductDetail, decorator: Google::Apis::ContentV2_1::ProductProductDetail::Representation
5048
5113
 
5114
+ property :product_height, as: 'productHeight', class: Google::Apis::ContentV2_1::ProductDimension, decorator: Google::Apis::ContentV2_1::ProductDimension::Representation
5115
+
5049
5116
  collection :product_highlights, as: 'productHighlights'
5117
+ property :product_length, as: 'productLength', class: Google::Apis::ContentV2_1::ProductDimension, decorator: Google::Apis::ContentV2_1::ProductDimension::Representation
5118
+
5050
5119
  collection :product_types, as: 'productTypes'
5120
+ property :product_weight, as: 'productWeight', class: Google::Apis::ContentV2_1::ProductWeight, decorator: Google::Apis::ContentV2_1::ProductWeight::Representation
5121
+
5122
+ property :product_width, as: 'productWidth', class: Google::Apis::ContentV2_1::ProductDimension, decorator: Google::Apis::ContentV2_1::ProductDimension::Representation
5123
+
5051
5124
  collection :promotion_ids, as: 'promotionIds'
5052
5125
  property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
5053
5126
 
@@ -5096,6 +5169,14 @@ module Google
5096
5169
  end
5097
5170
  end
5098
5171
 
5172
+ class ProductDimension
5173
+ # @private
5174
+ class Representation < Google::Apis::Core::JsonRepresentation
5175
+ property :unit, as: 'unit'
5176
+ property :value, as: 'value'
5177
+ end
5178
+ end
5179
+
5099
5180
  class ProductProductDetail
5100
5181
  # @private
5101
5182
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5220,6 +5301,14 @@ module Google
5220
5301
  end
5221
5302
  end
5222
5303
 
5304
+ class ProductWeight
5305
+ # @private
5306
+ class Representation < Google::Apis::Core::JsonRepresentation
5307
+ property :unit, as: 'unit'
5308
+ property :value, as: 'value'
5309
+ end
5310
+ end
5311
+
5223
5312
  class ProductsCustomBatchRequest
5224
5313
  # @private
5225
5314
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5324,6 +5413,51 @@ module Google
5324
5413
  end
5325
5414
  end
5326
5415
 
5416
+ class Promotion
5417
+ # @private
5418
+ class Representation < Google::Apis::Core::JsonRepresentation
5419
+ collection :brand, as: 'brand'
5420
+ collection :brand_exclusion, as: 'brandExclusion'
5421
+ property :content_language, as: 'contentLanguage'
5422
+ property :coupon_value_type, as: 'couponValueType'
5423
+ property :free_gift_description, as: 'freeGiftDescription'
5424
+ property :free_gift_item_id, as: 'freeGiftItemId'
5425
+ property :free_gift_value, as: 'freeGiftValue', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5426
+
5427
+ property :generic_redemption_code, as: 'genericRedemptionCode'
5428
+ property :get_this_quantity_discounted, as: 'getThisQuantityDiscounted'
5429
+ property :id, as: 'id'
5430
+ collection :item_group_id, as: 'itemGroupId'
5431
+ collection :item_group_id_exclusion, as: 'itemGroupIdExclusion'
5432
+ collection :item_id, as: 'itemId'
5433
+ collection :item_id_exclusion, as: 'itemIdExclusion'
5434
+ property :limit_quantity, as: 'limitQuantity'
5435
+ property :limit_value, as: 'limitValue', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5436
+
5437
+ property :long_title, as: 'longTitle'
5438
+ property :minimum_purchase_amount, as: 'minimumPurchaseAmount', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5439
+
5440
+ property :minimum_purchase_quantity, as: 'minimumPurchaseQuantity'
5441
+ property :money_budget, as: 'moneyBudget', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5442
+
5443
+ property :money_off_amount, as: 'moneyOffAmount', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5444
+
5445
+ property :offer_type, as: 'offerType'
5446
+ property :order_limit, as: 'orderLimit'
5447
+ property :percent_off, as: 'percentOff'
5448
+ property :product_applicability, as: 'productApplicability'
5449
+ collection :product_type, as: 'productType'
5450
+ collection :product_type_exclusion, as: 'productTypeExclusion'
5451
+ collection :promotion_destination_ids, as: 'promotionDestinationIds'
5452
+ property :promotion_display_dates, as: 'promotionDisplayDates'
5453
+ property :promotion_effective_dates, as: 'promotionEffectiveDates'
5454
+ property :promotion_id, as: 'promotionId'
5455
+ collection :redemption_channel, as: 'redemptionChannel'
5456
+ collection :shipping_service_names, as: 'shippingServiceNames'
5457
+ property :target_country, as: 'targetCountry'
5458
+ end
5459
+ end
5460
+
5327
5461
  class PubsubNotificationSettings
5328
5462
  # @private
5329
5463
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -497,7 +497,10 @@ module Google
497
497
  execute_or_queue_command(command, &block)
498
498
  end
499
499
 
500
- # Validates verification code to verify phone number for the account.
500
+ # Validates verification code to verify phone number for the account. If
501
+ # successful this will overwrite the value of `accounts.businessinformation.
502
+ # phoneNumber`. Only verified phone number will replace an existing verified
503
+ # phone number.
501
504
  # @param [Fixnum] merchant_id
502
505
  # Required. The ID of the managing account. If this parameter is not the same as
503
506
  # accountId, then this account must be a multi-client account and accountId must
@@ -1105,8 +1108,8 @@ module Google
1105
1108
  # @param [Fixnum] merchant_id
1106
1109
  # Required. The ID of the account.
1107
1110
  # @param [String] region_code
1108
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1109
- # ISO_3166-1_alpha-2). Currently only US is available.
1111
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1112
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1110
1113
  # @param [Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest] activate_buy_on_google_program_request_object
1111
1114
  # @param [String] fields
1112
1115
  # Selector specifying which fields to include in a partial response.
@@ -1140,8 +1143,8 @@ module Google
1140
1143
  # @param [Fixnum] merchant_id
1141
1144
  # Required. The ID of the account.
1142
1145
  # @param [String] region_code
1143
- # The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1144
- # ISO_3166-1_alpha-2). Currently only US is available.
1146
+ # Required. The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1147
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1145
1148
  # @param [String] fields
1146
1149
  # Selector specifying which fields to include in a partial response.
1147
1150
  # @param [String] quota_user
@@ -1179,8 +1182,8 @@ module Google
1179
1182
  # @param [Fixnum] merchant_id
1180
1183
  # Required. The ID of the account.
1181
1184
  # @param [String] region_code
1182
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1183
- # ISO_3166-1_alpha-2). Currently only US is available.
1185
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1186
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1184
1187
  # @param [Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest] onboard_buy_on_google_program_request_object
1185
1188
  # @param [String] fields
1186
1189
  # Selector specifying which fields to include in a partial response.
@@ -1210,13 +1213,55 @@ module Google
1210
1213
  execute_or_queue_command(command, &block)
1211
1214
  end
1212
1215
 
1216
+ # Updates the status of the BoG program for your Merchant Center account.
1217
+ # @param [Fixnum] merchant_id
1218
+ # Required. The ID of the account.
1219
+ # @param [String] region_code
1220
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1221
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1222
+ # @param [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] buy_on_google_program_status_object
1223
+ # @param [String] update_mask
1224
+ # The list of fields to update. If the update mask is not provided, then all the
1225
+ # fields set in buyOnGoogleProgramStatus will be updated. Clearing fields is
1226
+ # only possible if update mask is provided.
1227
+ # @param [String] fields
1228
+ # Selector specifying which fields to include in a partial response.
1229
+ # @param [String] quota_user
1230
+ # Available to use for quota purposes for server-side applications. Can be any
1231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1232
+ # @param [Google::Apis::RequestOptions] options
1233
+ # Request-specific options
1234
+ #
1235
+ # @yield [result, err] Result & error if block supplied
1236
+ # @yieldparam result [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] parsed result object
1237
+ # @yieldparam err [StandardError] error object if request failed
1238
+ #
1239
+ # @return [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus]
1240
+ #
1241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1244
+ def patch_buyongoogleprogram(merchant_id, region_code, buy_on_google_program_status_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1245
+ command = make_simple_command(:patch, '{merchantId}/buyongoogleprograms/{regionCode}', options)
1246
+ command.request_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1247
+ command.request_object = buy_on_google_program_status_object
1248
+ command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1249
+ command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
1250
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1251
+ command.params['regionCode'] = region_code unless region_code.nil?
1252
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1253
+ command.query['fields'] = fields unless fields.nil?
1254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1255
+ execute_or_queue_command(command, &block)
1256
+ end
1257
+
1213
1258
  # Pauses the BoG program in your Merchant Center account. Important: This method
1214
1259
  # is only whitelisted for selected merchants.
1215
1260
  # @param [Fixnum] merchant_id
1216
1261
  # Required. The ID of the account.
1217
1262
  # @param [String] region_code
1218
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1219
- # ISO_3166-1_alpha-2). Currently only US is available.
1263
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1264
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1220
1265
  # @param [Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest] pause_buy_on_google_program_request_object
1221
1266
  # @param [String] fields
1222
1267
  # Selector specifying which fields to include in a partial response.
@@ -1252,8 +1297,8 @@ module Google
1252
1297
  # @param [Fixnum] merchant_id
1253
1298
  # Required. The ID of the account.
1254
1299
  # @param [String] region_code
1255
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1256
- # ISO_3166-1_alpha-2). Currently only US is available.
1300
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1301
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1257
1302
  # @param [Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest] request_review_buy_on_google_program_request_object
1258
1303
  # @param [String] fields
1259
1304
  # Selector specifying which fields to include in a partial response.
@@ -3096,6 +3141,54 @@ module Google
3096
3141
  execute_or_queue_command(command, &block)
3097
3142
  end
3098
3143
 
3144
+ # Capture funds from the customer for the current order total. This method
3145
+ # should be called after the merchant verifies that they are able and ready to
3146
+ # start shipping the order. This method blocks until a response is received from
3147
+ # the payment processsor. If this method succeeds, the merchant is guaranteed to
3148
+ # receive funds for the order after shipment. If the request fails, it can be
3149
+ # retried or the order may be cancelled. This method cannot be called after the
3150
+ # entire order is already shipped. A rejected error code is returned when the
3151
+ # payment service provider has declined the charge. This indicates a problem
3152
+ # between the PSP and either the merchant's or customer's account. Sometimes
3153
+ # this error will be resolved by the customer. We recommend retrying these
3154
+ # errors once per day or cancelling the order with reason `failedToCaptureFunds`
3155
+ # if the items cannot be held.
3156
+ # @param [Fixnum] merchant_id
3157
+ # Required. The ID of the account that manages the order. This cannot be a multi-
3158
+ # client account.
3159
+ # @param [String] order_id
3160
+ # Required. The ID of the Order.
3161
+ # @param [Google::Apis::ContentV2_1::CaptureOrderRequest] capture_order_request_object
3162
+ # @param [String] fields
3163
+ # Selector specifying which fields to include in a partial response.
3164
+ # @param [String] quota_user
3165
+ # Available to use for quota purposes for server-side applications. Can be any
3166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3167
+ # @param [Google::Apis::RequestOptions] options
3168
+ # Request-specific options
3169
+ #
3170
+ # @yield [result, err] Result & error if block supplied
3171
+ # @yieldparam result [Google::Apis::ContentV2_1::CaptureOrderResponse] parsed result object
3172
+ # @yieldparam err [StandardError] error object if request failed
3173
+ #
3174
+ # @return [Google::Apis::ContentV2_1::CaptureOrderResponse]
3175
+ #
3176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3179
+ def capture_order(merchant_id, order_id, capture_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3180
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/captureOrder', options)
3181
+ command.request_representation = Google::Apis::ContentV2_1::CaptureOrderRequest::Representation
3182
+ command.request_object = capture_order_request_object
3183
+ command.response_representation = Google::Apis::ContentV2_1::CaptureOrderResponse::Representation
3184
+ command.response_class = Google::Apis::ContentV2_1::CaptureOrderResponse
3185
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3186
+ command.params['orderId'] = order_id unless order_id.nil?
3187
+ command.query['fields'] = fields unless fields.nil?
3188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3189
+ execute_or_queue_command(command, &block)
3190
+ end
3191
+
3099
3192
  # Sandbox only. Creates a test order.
3100
3193
  # @param [Fixnum] merchant_id
3101
3194
  # The ID of the account that should manage the order. This cannot be a multi-
@@ -4390,6 +4483,40 @@ module Google
4390
4483
  execute_or_queue_command(command, &block)
4391
4484
  end
4392
4485
 
4486
+ # Inserts a promotion for your Merchant Center account. If the promotion already
4487
+ # exists, then it will update the promotion instead.
4488
+ # @param [Fixnum] merchant_id
4489
+ # Required. The ID of the account that contains the collection.
4490
+ # @param [Google::Apis::ContentV2_1::Promotion] promotion_object
4491
+ # @param [String] fields
4492
+ # Selector specifying which fields to include in a partial response.
4493
+ # @param [String] quota_user
4494
+ # Available to use for quota purposes for server-side applications. Can be any
4495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4496
+ # @param [Google::Apis::RequestOptions] options
4497
+ # Request-specific options
4498
+ #
4499
+ # @yield [result, err] Result & error if block supplied
4500
+ # @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
4501
+ # @yieldparam err [StandardError] error object if request failed
4502
+ #
4503
+ # @return [Google::Apis::ContentV2_1::Promotion]
4504
+ #
4505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4508
+ def create_promotion(merchant_id, promotion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4509
+ command = make_simple_command(:post, '{merchantId}/promotions', options)
4510
+ command.request_representation = Google::Apis::ContentV2_1::Promotion::Representation
4511
+ command.request_object = promotion_object
4512
+ command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
4513
+ command.response_class = Google::Apis::ContentV2_1::Promotion
4514
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4515
+ command.query['fields'] = fields unless fields.nil?
4516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4517
+ execute_or_queue_command(command, &block)
4518
+ end
4519
+
4393
4520
  # Retrieves a Merchant Center account's pubsub notification settings.
4394
4521
  # @param [Fixnum] merchant_id
4395
4522
  # The ID of the account for which to get pubsub notification settings.
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.19.0
4
+ version: 0.23.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-08-02 00:00:00.000000000 Z
11
+ date: 2021-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.23.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
63
63
  post_install_message:
64
64
  rdoc_options: []