google-apis-content_v2_1 0.19.0 → 0.20.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: 19484cee813b1205651ac86690176d4aa51ad77808047b41827bb4b522e93973
4
+ data.tar.gz: bc28c660a782b1b67b91bdf8ffb6c02a5639e3b9b9146c47bdef48c79fc5c030
5
5
  SHA512:
6
- metadata.gz: 49c9049c7534429bb4e0086d30629d67bc1f1dc9a7c3bf8d98031860167c9ff1bcd9c7b493c65b3b374ad7507b69132438609d32c6549866a19ef8d80c7980cd
7
- data.tar.gz: c5bcc7810c76e738925ef35bd3e30757595f092f132497514a6da05a6742e245cc1442fa2cb52e8f4881f95f149567f55f70224406fc528b40331d648dad2ec2
6
+ metadata.gz: ad6f5b49b2ec68a3fb46dff853fa8ae1a3d545309e996f03749841bde342af2e1e2d75025d09eca9528784e7b83605b1dc528cce564f7342bc76607da72f6d9c
7
+ data.tar.gz: 8c508016219ba11611cac5704c4cd46c5084205fc27c193e5b224534d08507ccc33577c384d0ccf721c03a3bb09e6ae7019e867029fb1207f4ecf1d18c02c29d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.20.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210827
6
+
3
7
  ### v0.19.0 (2021-07-27)
4
8
 
5
9
  * 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
@@ -1651,7 +1652,7 @@ module Google
1651
1652
  class BusinessDayConfig
1652
1653
  include Google::Apis::Core::Hashable
1653
1654
 
1654
- # Regular business days. May not be empty.
1655
+ # Regular business days, such as '"monday"'. May not be empty.
1655
1656
  # Corresponds to the JSON property `businessDays`
1656
1657
  # @return [Array<String>]
1657
1658
  attr_accessor :business_days
@@ -1670,17 +1671,18 @@ module Google
1670
1671
  class BuyOnGoogleProgramStatus
1671
1672
  include Google::Apis::Core::Hashable
1672
1673
 
1673
- # The customer service pending email.
1674
+ # The customer service pending email. After verification this field becomes
1675
+ # empty.
1674
1676
  # Corresponds to the JSON property `customerServicePendingEmail`
1675
1677
  # @return [String]
1676
1678
  attr_accessor :customer_service_pending_email
1677
1679
 
1678
- # The customer service verified email.
1680
+ # Output only. The customer service verified email.
1679
1681
  # Corresponds to the JSON property `customerServiceVerifiedEmail`
1680
1682
  # @return [String]
1681
1683
  attr_accessor :customer_service_verified_email
1682
1684
 
1683
- # The current participation stage for the program.
1685
+ # Output only. The current participation stage for the program.
1684
1686
  # Corresponds to the JSON property `participationStage`
1685
1687
  # @return [String]
1686
1688
  attr_accessor :participation_stage
@@ -1697,6 +1699,39 @@ module Google
1697
1699
  end
1698
1700
  end
1699
1701
 
1702
+ # Request message for the CaptureOrder method.
1703
+ class CaptureOrderRequest
1704
+ include Google::Apis::Core::Hashable
1705
+
1706
+ def initialize(**args)
1707
+ update!(**args)
1708
+ end
1709
+
1710
+ # Update properties of this object
1711
+ def update!(**args)
1712
+ end
1713
+ end
1714
+
1715
+ # Response message for the CaptureOrder method.
1716
+ class CaptureOrderResponse
1717
+ include Google::Apis::Core::Hashable
1718
+
1719
+ # The status of the execution. Only defined if the request was successful.
1720
+ # Acceptable values are: * "duplicate" * "executed"
1721
+ # Corresponds to the JSON property `executionStatus`
1722
+ # @return [String]
1723
+ attr_accessor :execution_status
1724
+
1725
+ def initialize(**args)
1726
+ update!(**args)
1727
+ end
1728
+
1729
+ # Update properties of this object
1730
+ def update!(**args)
1731
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
1732
+ end
1733
+ end
1734
+
1700
1735
  #
1701
1736
  class CarrierRate
1702
1737
  include Google::Apis::Core::Hashable
@@ -10291,16 +10326,40 @@ module Google
10291
10326
  # @return [Array<Google::Apis::ContentV2_1::ProductProductDetail>]
10292
10327
  attr_accessor :product_details
10293
10328
 
10329
+ # The height of the product in the units provided. The value must be between 0 (
10330
+ # exclusive) and 3000 (inclusive).
10331
+ # Corresponds to the JSON property `productHeight`
10332
+ # @return [Google::Apis::ContentV2_1::ProductDimension]
10333
+ attr_accessor :product_height
10334
+
10294
10335
  # Bullet points describing the most relevant highlights of a product.
10295
10336
  # Corresponds to the JSON property `productHighlights`
10296
10337
  # @return [Array<String>]
10297
10338
  attr_accessor :product_highlights
10298
10339
 
10340
+ # The length of the product in the units provided. The value must be between 0 (
10341
+ # exclusive) and 3000 (inclusive).
10342
+ # Corresponds to the JSON property `productLength`
10343
+ # @return [Google::Apis::ContentV2_1::ProductDimension]
10344
+ attr_accessor :product_length
10345
+
10299
10346
  # Categories of the item (formatted as in products data specification).
10300
10347
  # Corresponds to the JSON property `productTypes`
10301
10348
  # @return [Array<String>]
10302
10349
  attr_accessor :product_types
10303
10350
 
10351
+ # The weight of the product in the units provided. The value must be between 0 (
10352
+ # exclusive) and 2000 (inclusive).
10353
+ # Corresponds to the JSON property `productWeight`
10354
+ # @return [Google::Apis::ContentV2_1::ProductWeight]
10355
+ attr_accessor :product_weight
10356
+
10357
+ # The width of the product in the units provided. The value must be between 0 (
10358
+ # exclusive) and 3000 (inclusive).
10359
+ # Corresponds to the JSON property `productWidth`
10360
+ # @return [Google::Apis::ContentV2_1::ProductDimension]
10361
+ attr_accessor :product_width
10362
+
10304
10363
  # The unique ID of a promotion.
10305
10364
  # Corresponds to the JSON property `promotionIds`
10306
10365
  # @return [Array<String>]
@@ -10492,8 +10551,12 @@ module Google
10492
10551
  @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
10493
10552
  @price = args[:price] if args.key?(:price)
10494
10553
  @product_details = args[:product_details] if args.key?(:product_details)
10554
+ @product_height = args[:product_height] if args.key?(:product_height)
10495
10555
  @product_highlights = args[:product_highlights] if args.key?(:product_highlights)
10556
+ @product_length = args[:product_length] if args.key?(:product_length)
10496
10557
  @product_types = args[:product_types] if args.key?(:product_types)
10558
+ @product_weight = args[:product_weight] if args.key?(:product_weight)
10559
+ @product_width = args[:product_width] if args.key?(:product_width)
10497
10560
  @promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids)
10498
10561
  @sale_price = args[:sale_price] if args.key?(:sale_price)
10499
10562
  @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
@@ -10551,6 +10614,32 @@ module Google
10551
10614
  end
10552
10615
  end
10553
10616
 
10617
+ #
10618
+ class ProductDimension
10619
+ include Google::Apis::Core::Hashable
10620
+
10621
+ # Required. The length units. Acceptable values are: - "`in`" - "`cm`"
10622
+ # Corresponds to the JSON property `unit`
10623
+ # @return [String]
10624
+ attr_accessor :unit
10625
+
10626
+ # Required. The length value represented as a number. The value can have a
10627
+ # maximum precision of four decimal places.
10628
+ # Corresponds to the JSON property `value`
10629
+ # @return [Float]
10630
+ attr_accessor :value
10631
+
10632
+ def initialize(**args)
10633
+ update!(**args)
10634
+ end
10635
+
10636
+ # Update properties of this object
10637
+ def update!(**args)
10638
+ @unit = args[:unit] if args.key?(:unit)
10639
+ @value = args[:value] if args.key?(:value)
10640
+ end
10641
+ end
10642
+
10554
10643
  #
10555
10644
  class ProductProductDetail
10556
10645
  include Google::Apis::Core::Hashable
@@ -11041,6 +11130,33 @@ module Google
11041
11130
  end
11042
11131
  end
11043
11132
 
11133
+ #
11134
+ class ProductWeight
11135
+ include Google::Apis::Core::Hashable
11136
+
11137
+ # Required. The weight unit. Acceptable values are: - "`g`" - "`kg`" - "`oz`" - "
11138
+ # `lb`"
11139
+ # Corresponds to the JSON property `unit`
11140
+ # @return [String]
11141
+ attr_accessor :unit
11142
+
11143
+ # Required. The weight represented as a number. The weight can have a maximum
11144
+ # precision of four decimal places.
11145
+ # Corresponds to the JSON property `value`
11146
+ # @return [Float]
11147
+ attr_accessor :value
11148
+
11149
+ def initialize(**args)
11150
+ update!(**args)
11151
+ end
11152
+
11153
+ # Update properties of this object
11154
+ def update!(**args)
11155
+ @unit = args[:unit] if args.key?(:unit)
11156
+ @value = args[:value] if args.key?(:value)
11157
+ end
11158
+ end
11159
+
11044
11160
  #
11045
11161
  class ProductsCustomBatchRequest
11046
11162
  include Google::Apis::Core::Hashable
@@ -11094,8 +11210,8 @@ module Google
11094
11210
  # @return [Google::Apis::ContentV2_1::Product]
11095
11211
  attr_accessor :product
11096
11212
 
11097
- # The ID of the product to get or delete. Only defined if the method is `get` or
11098
- # `delete`.
11213
+ # The ID of the product to get or mutate. Only defined if the method is `get`, `
11214
+ # delete`, or `update`.
11099
11215
  # Corresponds to the JSON property `productId`
11100
11216
  # @return [String]
11101
11217
  attr_accessor :product_id
@@ -11392,6 +11508,217 @@ module Google
11392
11508
  end
11393
11509
  end
11394
11510
 
11511
+ # Represents a promotion. (1) https://support.google.com/merchants/answer/
11512
+ # 2906014 (2) https://support.google.com/merchants/answer/10146130 (3) https://
11513
+ # support.google.com/merchants/answer/9173673
11514
+ class Promotion
11515
+ include Google::Apis::Core::Hashable
11516
+
11517
+ # Product filter by brand for the promotion.
11518
+ # Corresponds to the JSON property `brand`
11519
+ # @return [Array<String>]
11520
+ attr_accessor :brand
11521
+
11522
+ # Product filter by brand exclusion for the promotion.
11523
+ # Corresponds to the JSON property `brandExclusion`
11524
+ # @return [Array<String>]
11525
+ attr_accessor :brand_exclusion
11526
+
11527
+ # Required. The content language used as part of the unique identifier.
11528
+ # Corresponds to the JSON property `contentLanguage`
11529
+ # @return [String]
11530
+ attr_accessor :content_language
11531
+
11532
+ # Required. Coupon value type for the promotion.
11533
+ # Corresponds to the JSON property `couponValueType`
11534
+ # @return [String]
11535
+ attr_accessor :coupon_value_type
11536
+
11537
+ # Free gift description for the promotion.
11538
+ # Corresponds to the JSON property `freeGiftDescription`
11539
+ # @return [String]
11540
+ attr_accessor :free_gift_description
11541
+
11542
+ # Free gift item id for the promotion.
11543
+ # Corresponds to the JSON property `freeGiftItemId`
11544
+ # @return [String]
11545
+ attr_accessor :free_gift_item_id
11546
+
11547
+ # The price represented as a number and currency.
11548
+ # Corresponds to the JSON property `freeGiftValue`
11549
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11550
+ attr_accessor :free_gift_value
11551
+
11552
+ # Generic redemption code for the promotion. To be used with the above field.
11553
+ # Corresponds to the JSON property `genericRedemptionCode`
11554
+ # @return [String]
11555
+ attr_accessor :generic_redemption_code
11556
+
11557
+ # The number of items discounted in the promotion.
11558
+ # Corresponds to the JSON property `getThisQuantityDiscounted`
11559
+ # @return [Fixnum]
11560
+ attr_accessor :get_this_quantity_discounted
11561
+
11562
+ # Required. Output only. The REST promotion id to uniquely identify the
11563
+ # promotion. Content API methods that operate on promotions take this as their
11564
+ # promotionId parameter.
11565
+ # Corresponds to the JSON property `id`
11566
+ # @return [String]
11567
+ attr_accessor :id
11568
+
11569
+ # Product filter by item group id for the promotion.
11570
+ # Corresponds to the JSON property `itemGroupId`
11571
+ # @return [Array<String>]
11572
+ attr_accessor :item_group_id
11573
+
11574
+ # Product filter by item group id exclusion for the promotion.
11575
+ # Corresponds to the JSON property `itemGroupIdExclusion`
11576
+ # @return [Array<String>]
11577
+ attr_accessor :item_group_id_exclusion
11578
+
11579
+ # Product filter by item id for the promotion.
11580
+ # Corresponds to the JSON property `itemId`
11581
+ # @return [Array<String>]
11582
+ attr_accessor :item_id
11583
+
11584
+ # Product filter by item id exclusion for the promotion.
11585
+ # Corresponds to the JSON property `itemIdExclusion`
11586
+ # @return [Array<String>]
11587
+ attr_accessor :item_id_exclusion
11588
+
11589
+ # Maximum purchase quantity for the promotion.
11590
+ # Corresponds to the JSON property `limitQuantity`
11591
+ # @return [Fixnum]
11592
+ attr_accessor :limit_quantity
11593
+
11594
+ # The price represented as a number and currency.
11595
+ # Corresponds to the JSON property `limitValue`
11596
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11597
+ attr_accessor :limit_value
11598
+
11599
+ # Long title for the promotion.
11600
+ # Corresponds to the JSON property `longTitle`
11601
+ # @return [String]
11602
+ attr_accessor :long_title
11603
+
11604
+ # The price represented as a number and currency.
11605
+ # Corresponds to the JSON property `minimumPurchaseAmount`
11606
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11607
+ attr_accessor :minimum_purchase_amount
11608
+
11609
+ # Minimum purchase quantity for the promotion.
11610
+ # Corresponds to the JSON property `minimumPurchaseQuantity`
11611
+ # @return [Fixnum]
11612
+ attr_accessor :minimum_purchase_quantity
11613
+
11614
+ # The price represented as a number and currency.
11615
+ # Corresponds to the JSON property `moneyBudget`
11616
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11617
+ attr_accessor :money_budget
11618
+
11619
+ # The price represented as a number and currency.
11620
+ # Corresponds to the JSON property `moneyOffAmount`
11621
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
11622
+ attr_accessor :money_off_amount
11623
+
11624
+ # Required. Type of the promotion.
11625
+ # Corresponds to the JSON property `offerType`
11626
+ # @return [String]
11627
+ attr_accessor :offer_type
11628
+
11629
+ # Order limit for the promotion.
11630
+ # Corresponds to the JSON property `orderLimit`
11631
+ # @return [Fixnum]
11632
+ attr_accessor :order_limit
11633
+
11634
+ # The percentage discount offered in the promotion.
11635
+ # Corresponds to the JSON property `percentOff`
11636
+ # @return [Fixnum]
11637
+ attr_accessor :percent_off
11638
+
11639
+ # Required. Applicability of the promotion to either all products or only
11640
+ # specific products.
11641
+ # Corresponds to the JSON property `productApplicability`
11642
+ # @return [String]
11643
+ attr_accessor :product_applicability
11644
+
11645
+ # Destination ID for the promotion.
11646
+ # Corresponds to the JSON property `promotionDestinationIds`
11647
+ # @return [Array<String>]
11648
+ attr_accessor :promotion_destination_ids
11649
+
11650
+ # String representation of the promotion display dates.
11651
+ # Corresponds to the JSON property `promotionDisplayDates`
11652
+ # @return [String]
11653
+ attr_accessor :promotion_display_dates
11654
+
11655
+ # Required. String representation of the promotion effective dates.
11656
+ # Corresponds to the JSON property `promotionEffectiveDates`
11657
+ # @return [String]
11658
+ attr_accessor :promotion_effective_dates
11659
+
11660
+ # Required. The user provided promotion id to uniquely identify the promotion.
11661
+ # Corresponds to the JSON property `promotionId`
11662
+ # @return [String]
11663
+ attr_accessor :promotion_id
11664
+
11665
+ # Required. Redemption channel for the promotion. At least one channel is
11666
+ # required.
11667
+ # Corresponds to the JSON property `redemptionChannel`
11668
+ # @return [Array<String>]
11669
+ attr_accessor :redemption_channel
11670
+
11671
+ # Shipping service names for thse promotion.
11672
+ # Corresponds to the JSON property `shippingServiceNames`
11673
+ # @return [Array<String>]
11674
+ attr_accessor :shipping_service_names
11675
+
11676
+ # Required. The target country used as part of the unique identifier.
11677
+ # Corresponds to the JSON property `targetCountry`
11678
+ # @return [String]
11679
+ attr_accessor :target_country
11680
+
11681
+ def initialize(**args)
11682
+ update!(**args)
11683
+ end
11684
+
11685
+ # Update properties of this object
11686
+ def update!(**args)
11687
+ @brand = args[:brand] if args.key?(:brand)
11688
+ @brand_exclusion = args[:brand_exclusion] if args.key?(:brand_exclusion)
11689
+ @content_language = args[:content_language] if args.key?(:content_language)
11690
+ @coupon_value_type = args[:coupon_value_type] if args.key?(:coupon_value_type)
11691
+ @free_gift_description = args[:free_gift_description] if args.key?(:free_gift_description)
11692
+ @free_gift_item_id = args[:free_gift_item_id] if args.key?(:free_gift_item_id)
11693
+ @free_gift_value = args[:free_gift_value] if args.key?(:free_gift_value)
11694
+ @generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
11695
+ @get_this_quantity_discounted = args[:get_this_quantity_discounted] if args.key?(:get_this_quantity_discounted)
11696
+ @id = args[:id] if args.key?(:id)
11697
+ @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
11698
+ @item_group_id_exclusion = args[:item_group_id_exclusion] if args.key?(:item_group_id_exclusion)
11699
+ @item_id = args[:item_id] if args.key?(:item_id)
11700
+ @item_id_exclusion = args[:item_id_exclusion] if args.key?(:item_id_exclusion)
11701
+ @limit_quantity = args[:limit_quantity] if args.key?(:limit_quantity)
11702
+ @limit_value = args[:limit_value] if args.key?(:limit_value)
11703
+ @long_title = args[:long_title] if args.key?(:long_title)
11704
+ @minimum_purchase_amount = args[:minimum_purchase_amount] if args.key?(:minimum_purchase_amount)
11705
+ @minimum_purchase_quantity = args[:minimum_purchase_quantity] if args.key?(:minimum_purchase_quantity)
11706
+ @money_budget = args[:money_budget] if args.key?(:money_budget)
11707
+ @money_off_amount = args[:money_off_amount] if args.key?(:money_off_amount)
11708
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
11709
+ @order_limit = args[:order_limit] if args.key?(:order_limit)
11710
+ @percent_off = args[:percent_off] if args.key?(:percent_off)
11711
+ @product_applicability = args[:product_applicability] if args.key?(:product_applicability)
11712
+ @promotion_destination_ids = args[:promotion_destination_ids] if args.key?(:promotion_destination_ids)
11713
+ @promotion_display_dates = args[:promotion_display_dates] if args.key?(:promotion_display_dates)
11714
+ @promotion_effective_dates = args[:promotion_effective_dates] if args.key?(:promotion_effective_dates)
11715
+ @promotion_id = args[:promotion_id] if args.key?(:promotion_id)
11716
+ @redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
11717
+ @shipping_service_names = args[:shipping_service_names] if args.key?(:shipping_service_names)
11718
+ @target_country = args[:target_country] if args.key?(:target_country)
11719
+ end
11720
+ end
11721
+
11395
11722
  # Settings for Pub/Sub notifications, all methods require that the caller is a
11396
11723
  # direct user of the merchant center account.
11397
11724
  class PubsubNotificationSettings
@@ -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.20.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 = "20210827"
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
 
@@ -1540,6 +1552,12 @@ module Google
1540
1552
  include Google::Apis::Core::JsonObjectSupport
1541
1553
  end
1542
1554
 
1555
+ class ProductDimension
1556
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1557
+
1558
+ include Google::Apis::Core::JsonObjectSupport
1559
+ end
1560
+
1543
1561
  class ProductProductDetail
1544
1562
  class Representation < Google::Apis::Core::JsonRepresentation; end
1545
1563
 
@@ -1606,6 +1624,12 @@ module Google
1606
1624
  include Google::Apis::Core::JsonObjectSupport
1607
1625
  end
1608
1626
 
1627
+ class ProductWeight
1628
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1629
+
1630
+ include Google::Apis::Core::JsonObjectSupport
1631
+ end
1632
+
1609
1633
  class ProductsCustomBatchRequest
1610
1634
  class Representation < Google::Apis::Core::JsonRepresentation; end
1611
1635
 
@@ -1666,6 +1690,12 @@ module Google
1666
1690
  include Google::Apis::Core::JsonObjectSupport
1667
1691
  end
1668
1692
 
1693
+ class Promotion
1694
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1695
+
1696
+ include Google::Apis::Core::JsonObjectSupport
1697
+ end
1698
+
1669
1699
  class PubsubNotificationSettings
1670
1700
  class Representation < Google::Apis::Core::JsonRepresentation; end
1671
1701
 
@@ -2746,6 +2776,19 @@ module Google
2746
2776
  end
2747
2777
  end
2748
2778
 
2779
+ class CaptureOrderRequest
2780
+ # @private
2781
+ class Representation < Google::Apis::Core::JsonRepresentation
2782
+ end
2783
+ end
2784
+
2785
+ class CaptureOrderResponse
2786
+ # @private
2787
+ class Representation < Google::Apis::Core::JsonRepresentation
2788
+ property :execution_status, as: 'executionStatus'
2789
+ end
2790
+ end
2791
+
2749
2792
  class CarrierRate
2750
2793
  # @private
2751
2794
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5046,8 +5089,16 @@ module Google
5046
5089
 
5047
5090
  collection :product_details, as: 'productDetails', class: Google::Apis::ContentV2_1::ProductProductDetail, decorator: Google::Apis::ContentV2_1::ProductProductDetail::Representation
5048
5091
 
5092
+ property :product_height, as: 'productHeight', class: Google::Apis::ContentV2_1::ProductDimension, decorator: Google::Apis::ContentV2_1::ProductDimension::Representation
5093
+
5049
5094
  collection :product_highlights, as: 'productHighlights'
5095
+ property :product_length, as: 'productLength', class: Google::Apis::ContentV2_1::ProductDimension, decorator: Google::Apis::ContentV2_1::ProductDimension::Representation
5096
+
5050
5097
  collection :product_types, as: 'productTypes'
5098
+ property :product_weight, as: 'productWeight', class: Google::Apis::ContentV2_1::ProductWeight, decorator: Google::Apis::ContentV2_1::ProductWeight::Representation
5099
+
5100
+ property :product_width, as: 'productWidth', class: Google::Apis::ContentV2_1::ProductDimension, decorator: Google::Apis::ContentV2_1::ProductDimension::Representation
5101
+
5051
5102
  collection :promotion_ids, as: 'promotionIds'
5052
5103
  property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
5053
5104
 
@@ -5096,6 +5147,14 @@ module Google
5096
5147
  end
5097
5148
  end
5098
5149
 
5150
+ class ProductDimension
5151
+ # @private
5152
+ class Representation < Google::Apis::Core::JsonRepresentation
5153
+ property :unit, as: 'unit'
5154
+ property :value, as: 'value'
5155
+ end
5156
+ end
5157
+
5099
5158
  class ProductProductDetail
5100
5159
  # @private
5101
5160
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5220,6 +5279,14 @@ module Google
5220
5279
  end
5221
5280
  end
5222
5281
 
5282
+ class ProductWeight
5283
+ # @private
5284
+ class Representation < Google::Apis::Core::JsonRepresentation
5285
+ property :unit, as: 'unit'
5286
+ property :value, as: 'value'
5287
+ end
5288
+ end
5289
+
5223
5290
  class ProductsCustomBatchRequest
5224
5291
  # @private
5225
5292
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5324,6 +5391,49 @@ module Google
5324
5391
  end
5325
5392
  end
5326
5393
 
5394
+ class Promotion
5395
+ # @private
5396
+ class Representation < Google::Apis::Core::JsonRepresentation
5397
+ collection :brand, as: 'brand'
5398
+ collection :brand_exclusion, as: 'brandExclusion'
5399
+ property :content_language, as: 'contentLanguage'
5400
+ property :coupon_value_type, as: 'couponValueType'
5401
+ property :free_gift_description, as: 'freeGiftDescription'
5402
+ property :free_gift_item_id, as: 'freeGiftItemId'
5403
+ property :free_gift_value, as: 'freeGiftValue', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5404
+
5405
+ property :generic_redemption_code, as: 'genericRedemptionCode'
5406
+ property :get_this_quantity_discounted, as: 'getThisQuantityDiscounted'
5407
+ property :id, as: 'id'
5408
+ collection :item_group_id, as: 'itemGroupId'
5409
+ collection :item_group_id_exclusion, as: 'itemGroupIdExclusion'
5410
+ collection :item_id, as: 'itemId'
5411
+ collection :item_id_exclusion, as: 'itemIdExclusion'
5412
+ property :limit_quantity, as: 'limitQuantity'
5413
+ property :limit_value, as: 'limitValue', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5414
+
5415
+ property :long_title, as: 'longTitle'
5416
+ property :minimum_purchase_amount, as: 'minimumPurchaseAmount', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5417
+
5418
+ property :minimum_purchase_quantity, as: 'minimumPurchaseQuantity'
5419
+ property :money_budget, as: 'moneyBudget', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5420
+
5421
+ property :money_off_amount, as: 'moneyOffAmount', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5422
+
5423
+ property :offer_type, as: 'offerType'
5424
+ property :order_limit, as: 'orderLimit'
5425
+ property :percent_off, as: 'percentOff'
5426
+ property :product_applicability, as: 'productApplicability'
5427
+ collection :promotion_destination_ids, as: 'promotionDestinationIds'
5428
+ property :promotion_display_dates, as: 'promotionDisplayDates'
5429
+ property :promotion_effective_dates, as: 'promotionEffectiveDates'
5430
+ property :promotion_id, as: 'promotionId'
5431
+ collection :redemption_channel, as: 'redemptionChannel'
5432
+ collection :shipping_service_names, as: 'shippingServiceNames'
5433
+ property :target_country, as: 'targetCountry'
5434
+ end
5435
+ end
5436
+
5327
5437
  class PubsubNotificationSettings
5328
5438
  # @private
5329
5439
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3096,6 +3096,49 @@ module Google
3096
3096
  execute_or_queue_command(command, &block)
3097
3097
  end
3098
3098
 
3099
+ # Capture funds from the customer for the current order total. This method
3100
+ # should be called after the merchant verifies that they are able and ready to
3101
+ # start shipping the order. This method blocks until a response is received from
3102
+ # the payment processsor. If this method succeeds, the merchant is guaranteed to
3103
+ # receive funds for the order after shipment. If the request fails, it can be
3104
+ # retried or the order may be cancelled. This method cannot be called after the
3105
+ # entire order is already shipped.
3106
+ # @param [Fixnum] merchant_id
3107
+ # Required. The ID of the account that manages the order. This cannot be a multi-
3108
+ # client account.
3109
+ # @param [String] order_id
3110
+ # Required. The ID of the Order.
3111
+ # @param [Google::Apis::ContentV2_1::CaptureOrderRequest] capture_order_request_object
3112
+ # @param [String] fields
3113
+ # Selector specifying which fields to include in a partial response.
3114
+ # @param [String] quota_user
3115
+ # Available to use for quota purposes for server-side applications. Can be any
3116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3117
+ # @param [Google::Apis::RequestOptions] options
3118
+ # Request-specific options
3119
+ #
3120
+ # @yield [result, err] Result & error if block supplied
3121
+ # @yieldparam result [Google::Apis::ContentV2_1::CaptureOrderResponse] parsed result object
3122
+ # @yieldparam err [StandardError] error object if request failed
3123
+ #
3124
+ # @return [Google::Apis::ContentV2_1::CaptureOrderResponse]
3125
+ #
3126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3129
+ def capture_order(merchant_id, order_id, capture_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3130
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/captureOrder', options)
3131
+ command.request_representation = Google::Apis::ContentV2_1::CaptureOrderRequest::Representation
3132
+ command.request_object = capture_order_request_object
3133
+ command.response_representation = Google::Apis::ContentV2_1::CaptureOrderResponse::Representation
3134
+ command.response_class = Google::Apis::ContentV2_1::CaptureOrderResponse
3135
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3136
+ command.params['orderId'] = order_id unless order_id.nil?
3137
+ command.query['fields'] = fields unless fields.nil?
3138
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3139
+ execute_or_queue_command(command, &block)
3140
+ end
3141
+
3099
3142
  # Sandbox only. Creates a test order.
3100
3143
  # @param [Fixnum] merchant_id
3101
3144
  # The ID of the account that should manage the order. This cannot be a multi-
@@ -4390,6 +4433,40 @@ module Google
4390
4433
  execute_or_queue_command(command, &block)
4391
4434
  end
4392
4435
 
4436
+ # Inserts a promotion for your Merchant Center account. If the promotion already
4437
+ # exists, then it will update the promotion instead.
4438
+ # @param [Fixnum] merchant_id
4439
+ # Required. The ID of the account that contains the collection.
4440
+ # @param [Google::Apis::ContentV2_1::Promotion] promotion_object
4441
+ # @param [String] fields
4442
+ # Selector specifying which fields to include in a partial response.
4443
+ # @param [String] quota_user
4444
+ # Available to use for quota purposes for server-side applications. Can be any
4445
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4446
+ # @param [Google::Apis::RequestOptions] options
4447
+ # Request-specific options
4448
+ #
4449
+ # @yield [result, err] Result & error if block supplied
4450
+ # @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
4451
+ # @yieldparam err [StandardError] error object if request failed
4452
+ #
4453
+ # @return [Google::Apis::ContentV2_1::Promotion]
4454
+ #
4455
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4456
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4457
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4458
+ def create_promotion(merchant_id, promotion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4459
+ command = make_simple_command(:post, '{merchantId}/promotions', options)
4460
+ command.request_representation = Google::Apis::ContentV2_1::Promotion::Representation
4461
+ command.request_object = promotion_object
4462
+ command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
4463
+ command.response_class = Google::Apis::ContentV2_1::Promotion
4464
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4465
+ command.query['fields'] = fields unless fields.nil?
4466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4467
+ execute_or_queue_command(command, &block)
4468
+ end
4469
+
4393
4470
  # Retrieves a Merchant Center account's pubsub notification settings.
4394
4471
  # @param [Fixnum] merchant_id
4395
4472
  # 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.20.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-09-06 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.20.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: []