google-apis-content_v2_1 0.4.0 → 0.5.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: 5cefc82b40f01f2d0c9af41758c2b094b21857c24d86a9be3eb13d8edd92daf4
4
- data.tar.gz: 7911c0470d42ee19acd979a4814da864b5e0f40d58eddce7342a7d2d48ee30b6
3
+ metadata.gz: 4d5b5d0984889edd093fbf96f88233b03cca531e95814dcc35602377ae5aec33
4
+ data.tar.gz: 6cdf623c16d4660d5817215ba43258f0df6526eeec3c5298ecb11ea670421136
5
5
  SHA512:
6
- metadata.gz: 505cb62db2c9f9dcba8c6a26f37df069abd81a5ad437614ce295f7f4f6957d055a36df64443677caa10c5a9edc13a19d5e5f421762e1f22bf22a8efc16e021da
7
- data.tar.gz: 6207bf4fa6c17bee20aa7965ee25260f0f8ccb2f16c51923f17a36b8984abd20861eeebc5d892ac434b06464add599a634d5499f2f0a0c2d04664d22b92bac4f
6
+ metadata.gz: ebd0c208886941ebe3e5bee40c50ed4c1949d9d1c9ce80b0a877c0975c8a939898467e2f317eb752e4a06b9d9cfd4f9893b0037e64215878c5d6cc80f59783d6
7
+ data.tar.gz: b43c465860864450c1e9a6be7a32ea0a8d9c224b5e9872439bf2cfd9d107071446b55ea60cb569e5af50c1bef34328c5e4ae078bf4edaa4aac19d343dbf6b659
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.5.0 (2021-02-25)
4
+
5
+ * Regenerated from discovery document revision 20210223
6
+
3
7
  ### v0.4.0 (2021-02-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20210211
@@ -995,8 +995,7 @@ module Google
995
995
  attr_accessor :linked_account_id
996
996
 
997
997
  # Provided services. Acceptable values are: - "`shoppingAdsProductManagement`" -
998
- # "`shoppingAdsOther`" - "`shoppingActionsProductManagement`" - "`
999
- # shoppingActionsOrderManagement`" - "`shoppingActionsOther`"
998
+ # "`shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`"
1000
999
  # Corresponds to the JSON property `services`
1001
1000
  # @return [Array<String>]
1002
1001
  attr_accessor :services
@@ -1601,6 +1600,37 @@ module Google
1601
1600
  end
1602
1601
  end
1603
1602
 
1603
+ # Response message for the GetProgramStatus method.
1604
+ class BuyOnGoogleProgramStatus
1605
+ include Google::Apis::Core::Hashable
1606
+
1607
+ # The customer service pending email.
1608
+ # Corresponds to the JSON property `customerServicePendingEmail`
1609
+ # @return [String]
1610
+ attr_accessor :customer_service_pending_email
1611
+
1612
+ # The customer service verified email.
1613
+ # Corresponds to the JSON property `customerServiceVerifiedEmail`
1614
+ # @return [String]
1615
+ attr_accessor :customer_service_verified_email
1616
+
1617
+ # The current participation stage for the program.
1618
+ # Corresponds to the JSON property `participationStage`
1619
+ # @return [String]
1620
+ attr_accessor :participation_stage
1621
+
1622
+ def initialize(**args)
1623
+ update!(**args)
1624
+ end
1625
+
1626
+ # Update properties of this object
1627
+ def update!(**args)
1628
+ @customer_service_pending_email = args[:customer_service_pending_email] if args.key?(:customer_service_pending_email)
1629
+ @customer_service_verified_email = args[:customer_service_verified_email] if args.key?(:customer_service_verified_email)
1630
+ @participation_stage = args[:participation_stage] if args.key?(:participation_stage)
1631
+ end
1632
+ end
1633
+
1604
1634
  #
1605
1635
  class CarrierRate
1606
1636
  include Google::Apis::Core::Hashable
@@ -4284,6 +4314,25 @@ module Google
4284
4314
  end
4285
4315
  end
4286
4316
 
4317
+ # Response message for the `ListReturnPolicyOnline` method.
4318
+ class ListReturnPolicyOnlineResponse
4319
+ include Google::Apis::Core::Hashable
4320
+
4321
+ # The retrieved return policies.
4322
+ # Corresponds to the JSON property `returnPolicies`
4323
+ # @return [Array<Google::Apis::ContentV2_1::ReturnPolicyOnline>]
4324
+ attr_accessor :return_policies
4325
+
4326
+ def initialize(**args)
4327
+ update!(**args)
4328
+ end
4329
+
4330
+ # Update properties of this object
4331
+ def update!(**args)
4332
+ @return_policies = args[:return_policies] if args.key?(:return_policies)
4333
+ end
4334
+ end
4335
+
4287
4336
  # Local inventory resource. For accepted attribute values, see the local product
4288
4337
  # inventory feed specification.
4289
4338
  class LocalInventory
@@ -4812,6 +4861,25 @@ module Google
4812
4861
  end
4813
4862
  end
4814
4863
 
4864
+ # Request message for the OnboardProgram method.
4865
+ class OnboardBuyOnGoogleProgramRequest
4866
+ include Google::Apis::Core::Hashable
4867
+
4868
+ # The customer service email.
4869
+ # Corresponds to the JSON property `customerServiceEmail`
4870
+ # @return [String]
4871
+ attr_accessor :customer_service_email
4872
+
4873
+ def initialize(**args)
4874
+ update!(**args)
4875
+ end
4876
+
4877
+ # Update properties of this object
4878
+ def update!(**args)
4879
+ @customer_service_email = args[:customer_service_email] if args.key?(:customer_service_email)
4880
+ end
4881
+ end
4882
+
4815
4883
  # Order. Production access (all methods) requires the order manager role.
4816
4884
  # Sandbox access does not.
4817
4885
  class Order
@@ -11500,7 +11568,8 @@ module Google
11500
11568
  # @return [Google::Apis::ContentV2_1::RepricingRuleCostOfGoodsSaleRule]
11501
11569
  attr_accessor :cogs_based_rule
11502
11570
 
11503
- # Required. Immutable. CLDR country code (e.g. "US").
11571
+ # Required. Immutable. [CLDR country code](http://www.unicode.org/repos/cldr/
11572
+ # tags/latest/common/main/en.xml) (e.g. "US").
11504
11573
  # Corresponds to the JSON property `countryCode`
11505
11574
  # @return [String]
11506
11575
  attr_accessor :country_code
@@ -12106,6 +12175,199 @@ module Google
12106
12175
  end
12107
12176
  end
12108
12177
 
12178
+ # Return policy online object. This is currently used to represent return
12179
+ # policies for ads and free listings programs.
12180
+ class ReturnPolicyOnline
12181
+ include Google::Apis::Core::Hashable
12182
+
12183
+ # The countries of sale where the return policy is applicable. The values must
12184
+ # be a valid 2 letter ISO 3166 code, e.g. "US".
12185
+ # Corresponds to the JSON property `countries`
12186
+ # @return [Array<String>]
12187
+ attr_accessor :countries
12188
+
12189
+ # The item conditions that are accepted for returns. This is required to not be
12190
+ # empty unless the type of return policy is noReturns.
12191
+ # Corresponds to the JSON property `itemConditions`
12192
+ # @return [Array<String>]
12193
+ attr_accessor :item_conditions
12194
+
12195
+ # The unique user-defined label of the return policy. The same label cannot be
12196
+ # used in different return policies for the same country. Policies with the
12197
+ # label 'default' will apply to all products, unless a product specifies a
12198
+ # return_policy_label attribute.
12199
+ # Corresponds to the JSON property `label`
12200
+ # @return [String]
12201
+ attr_accessor :label
12202
+
12203
+ # The name of the policy as shown in Merchant Center.
12204
+ # Corresponds to the JSON property `name`
12205
+ # @return [String]
12206
+ attr_accessor :name
12207
+
12208
+ # The available policies.
12209
+ # Corresponds to the JSON property `policy`
12210
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy]
12211
+ attr_accessor :policy
12212
+
12213
+ # The restocking fee. This can either be a fixed fee or a micro percent.
12214
+ # Corresponds to the JSON property `restockingFee`
12215
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee]
12216
+ attr_accessor :restocking_fee
12217
+
12218
+ # The return methods of how customers can return an item. This value is required
12219
+ # to not be empty unless the type of return policy is noReturns.
12220
+ # Corresponds to the JSON property `returnMethods`
12221
+ # @return [Array<String>]
12222
+ attr_accessor :return_methods
12223
+
12224
+ # Output only. Return policy ID generated by Google.
12225
+ # Corresponds to the JSON property `returnPolicyId`
12226
+ # @return [String]
12227
+ attr_accessor :return_policy_id
12228
+
12229
+ # The return policy uri. This can used by Google to do a sanity check for the
12230
+ # policy.
12231
+ # Corresponds to the JSON property `returnPolicyUri`
12232
+ # @return [String]
12233
+ attr_accessor :return_policy_uri
12234
+
12235
+ # The return reason category information. This required to not be empty unless
12236
+ # the type of return policy is noReturns.
12237
+ # Corresponds to the JSON property `returnReasonCategoryInfo`
12238
+ # @return [Array<Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo>]
12239
+ attr_accessor :return_reason_category_info
12240
+
12241
+ def initialize(**args)
12242
+ update!(**args)
12243
+ end
12244
+
12245
+ # Update properties of this object
12246
+ def update!(**args)
12247
+ @countries = args[:countries] if args.key?(:countries)
12248
+ @item_conditions = args[:item_conditions] if args.key?(:item_conditions)
12249
+ @label = args[:label] if args.key?(:label)
12250
+ @name = args[:name] if args.key?(:name)
12251
+ @policy = args[:policy] if args.key?(:policy)
12252
+ @restocking_fee = args[:restocking_fee] if args.key?(:restocking_fee)
12253
+ @return_methods = args[:return_methods] if args.key?(:return_methods)
12254
+ @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
12255
+ @return_policy_uri = args[:return_policy_uri] if args.key?(:return_policy_uri)
12256
+ @return_reason_category_info = args[:return_reason_category_info] if args.key?(:return_reason_category_info)
12257
+ end
12258
+ end
12259
+
12260
+ # The available policies.
12261
+ class ReturnPolicyOnlinePolicy
12262
+ include Google::Apis::Core::Hashable
12263
+
12264
+ # The number of days items can be returned after delivery, where one day is
12265
+ # defined to be 24 hours after the delivery timestamp. Required for `
12266
+ # numberOfDaysAfterDelivery` returns.
12267
+ # Corresponds to the JSON property `days`
12268
+ # @return [Fixnum]
12269
+ attr_accessor :days
12270
+
12271
+ # Policy type.
12272
+ # Corresponds to the JSON property `type`
12273
+ # @return [String]
12274
+ attr_accessor :type
12275
+
12276
+ def initialize(**args)
12277
+ update!(**args)
12278
+ end
12279
+
12280
+ # Update properties of this object
12281
+ def update!(**args)
12282
+ @days = args[:days] if args.key?(:days)
12283
+ @type = args[:type] if args.key?(:type)
12284
+ end
12285
+ end
12286
+
12287
+ # The restocking fee. This can either be a fixed fee or a micro percent.
12288
+ class ReturnPolicyOnlineRestockingFee
12289
+ include Google::Apis::Core::Hashable
12290
+
12291
+ # The price represented as a number and currency.
12292
+ # Corresponds to the JSON property `fixedFee`
12293
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
12294
+ attr_accessor :fixed_fee
12295
+
12296
+ # Percent of total price in micros. 15,000,000 means 15% of the total price
12297
+ # would be charged.
12298
+ # Corresponds to the JSON property `microPercent`
12299
+ # @return [Fixnum]
12300
+ attr_accessor :micro_percent
12301
+
12302
+ def initialize(**args)
12303
+ update!(**args)
12304
+ end
12305
+
12306
+ # Update properties of this object
12307
+ def update!(**args)
12308
+ @fixed_fee = args[:fixed_fee] if args.key?(:fixed_fee)
12309
+ @micro_percent = args[:micro_percent] if args.key?(:micro_percent)
12310
+ end
12311
+ end
12312
+
12313
+ # The return reason category info wrapper.
12314
+ class ReturnPolicyOnlineReturnReasonCategoryInfo
12315
+ include Google::Apis::Core::Hashable
12316
+
12317
+ # The corresponding return label source.
12318
+ # Corresponds to the JSON property `returnLabelSource`
12319
+ # @return [String]
12320
+ attr_accessor :return_label_source
12321
+
12322
+ # The return reason category.
12323
+ # Corresponds to the JSON property `returnReasonCategory`
12324
+ # @return [String]
12325
+ attr_accessor :return_reason_category
12326
+
12327
+ # The return shipping fee. This can either be a fixed fee or a boolean to
12328
+ # indicate that the customer pays the actual shipping cost.
12329
+ # Corresponds to the JSON property `returnShippingFee`
12330
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnShippingFee]
12331
+ attr_accessor :return_shipping_fee
12332
+
12333
+ def initialize(**args)
12334
+ update!(**args)
12335
+ end
12336
+
12337
+ # Update properties of this object
12338
+ def update!(**args)
12339
+ @return_label_source = args[:return_label_source] if args.key?(:return_label_source)
12340
+ @return_reason_category = args[:return_reason_category] if args.key?(:return_reason_category)
12341
+ @return_shipping_fee = args[:return_shipping_fee] if args.key?(:return_shipping_fee)
12342
+ end
12343
+ end
12344
+
12345
+ # The return shipping fee. This can either be a fixed fee or a boolean to
12346
+ # indicate that the customer pays the actual shipping cost.
12347
+ class ReturnPolicyOnlineReturnShippingFee
12348
+ include Google::Apis::Core::Hashable
12349
+
12350
+ # The price represented as a number and currency.
12351
+ # Corresponds to the JSON property `fixedFee`
12352
+ # @return [Google::Apis::ContentV2_1::PriceAmount]
12353
+ attr_accessor :fixed_fee
12354
+
12355
+ # Type of return shipping fee.
12356
+ # Corresponds to the JSON property `type`
12357
+ # @return [String]
12358
+ attr_accessor :type
12359
+
12360
+ def initialize(**args)
12361
+ update!(**args)
12362
+ end
12363
+
12364
+ # Update properties of this object
12365
+ def update!(**args)
12366
+ @fixed_fee = args[:fixed_fee] if args.key?(:fixed_fee)
12367
+ @type = args[:type] if args.key?(:type)
12368
+ end
12369
+ end
12370
+
12109
12371
  #
12110
12372
  class ReturnPolicyPolicy
12111
12373
  include Google::Apis::Core::Hashable
@@ -12649,8 +12911,8 @@ module Google
12649
12911
  # @return [String]
12650
12912
  attr_accessor :page_token
12651
12913
 
12652
- # Required. Search query that defines performance metrics to retrieve and
12653
- # dimensions according to which the metrics are to be segmented.
12914
+ # Required. Query that defines performance metrics to retrieve and dimensions
12915
+ # according to which the metrics are to be segmented.
12654
12916
  # Corresponds to the JSON property `query`
12655
12917
  # @return [String]
12656
12918
  attr_accessor :query
@@ -13087,7 +13349,7 @@ module Google
13087
13349
  # "`reversal`" - "`orderRefund`" - "`reversalRefund`" - "`
13088
13350
  # issueRelatedRefundAndReplacement`" - "`returnLabelShippingFeeTransaction`" - "`
13089
13351
  # reversalIssueRelatedRefundAndReplacement`" - "`
13090
- # reversalReturnLabelShippingFeeTransaction`"
13352
+ # reversalReturnLabelShippingFeeTransaction`" - "`lumpSumCorrectionTransaction`"
13091
13353
  # Corresponds to the JSON property `type`
13092
13354
  # @return [String]
13093
13355
  attr_accessor :type
@@ -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.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210211"
25
+ REVISION = "20210223"
26
26
  end
27
27
  end
28
28
  end
@@ -280,6 +280,12 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
282
 
283
+ class BuyOnGoogleProgramStatus
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
283
289
  class CarrierRate
284
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
291
 
@@ -712,6 +718,12 @@ module Google
712
718
  include Google::Apis::Core::JsonObjectSupport
713
719
  end
714
720
 
721
+ class ListReturnPolicyOnlineResponse
722
+ class Representation < Google::Apis::Core::JsonRepresentation; end
723
+
724
+ include Google::Apis::Core::JsonObjectSupport
725
+ end
726
+
715
727
  class LocalInventory
716
728
  class Representation < Google::Apis::Core::JsonRepresentation; end
717
729
 
@@ -796,6 +808,12 @@ module Google
796
808
  include Google::Apis::Core::JsonObjectSupport
797
809
  end
798
810
 
811
+ class OnboardBuyOnGoogleProgramRequest
812
+ class Representation < Google::Apis::Core::JsonRepresentation; end
813
+
814
+ include Google::Apis::Core::JsonObjectSupport
815
+ end
816
+
799
817
  class Order
800
818
  class Representation < Google::Apis::Core::JsonRepresentation; end
801
819
 
@@ -1786,6 +1804,36 @@ module Google
1786
1804
  include Google::Apis::Core::JsonObjectSupport
1787
1805
  end
1788
1806
 
1807
+ class ReturnPolicyOnline
1808
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1809
+
1810
+ include Google::Apis::Core::JsonObjectSupport
1811
+ end
1812
+
1813
+ class ReturnPolicyOnlinePolicy
1814
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1815
+
1816
+ include Google::Apis::Core::JsonObjectSupport
1817
+ end
1818
+
1819
+ class ReturnPolicyOnlineRestockingFee
1820
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1821
+
1822
+ include Google::Apis::Core::JsonObjectSupport
1823
+ end
1824
+
1825
+ class ReturnPolicyOnlineReturnReasonCategoryInfo
1826
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1827
+
1828
+ include Google::Apis::Core::JsonObjectSupport
1829
+ end
1830
+
1831
+ class ReturnPolicyOnlineReturnShippingFee
1832
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1833
+
1834
+ include Google::Apis::Core::JsonObjectSupport
1835
+ end
1836
+
1789
1837
  class ReturnPolicyPolicy
1790
1838
  class Representation < Google::Apis::Core::JsonRepresentation; end
1791
1839
 
@@ -2568,6 +2616,15 @@ module Google
2568
2616
  end
2569
2617
  end
2570
2618
 
2619
+ class BuyOnGoogleProgramStatus
2620
+ # @private
2621
+ class Representation < Google::Apis::Core::JsonRepresentation
2622
+ property :customer_service_pending_email, as: 'customerServicePendingEmail'
2623
+ property :customer_service_verified_email, as: 'customerServiceVerifiedEmail'
2624
+ property :participation_stage, as: 'participationStage'
2625
+ end
2626
+ end
2627
+
2571
2628
  class CarrierRate
2572
2629
  # @private
2573
2630
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3319,6 +3376,14 @@ module Google
3319
3376
  end
3320
3377
  end
3321
3378
 
3379
+ class ListReturnPolicyOnlineResponse
3380
+ # @private
3381
+ class Representation < Google::Apis::Core::JsonRepresentation
3382
+ collection :return_policies, as: 'returnPolicies', class: Google::Apis::ContentV2_1::ReturnPolicyOnline, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
3383
+
3384
+ end
3385
+ end
3386
+
3322
3387
  class LocalInventory
3323
3388
  # @private
3324
3389
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3474,6 +3539,13 @@ module Google
3474
3539
  end
3475
3540
  end
3476
3541
 
3542
+ class OnboardBuyOnGoogleProgramRequest
3543
+ # @private
3544
+ class Representation < Google::Apis::Core::JsonRepresentation
3545
+ property :customer_service_email, as: 'customerServiceEmail'
3546
+ end
3547
+ end
3548
+
3477
3549
  class Order
3478
3550
  # @private
3479
3551
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5394,6 +5466,61 @@ module Google
5394
5466
  end
5395
5467
  end
5396
5468
 
5469
+ class ReturnPolicyOnline
5470
+ # @private
5471
+ class Representation < Google::Apis::Core::JsonRepresentation
5472
+ collection :countries, as: 'countries'
5473
+ collection :item_conditions, as: 'itemConditions'
5474
+ property :label, as: 'label'
5475
+ property :name, as: 'name'
5476
+ property :policy, as: 'policy', class: Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy::Representation
5477
+
5478
+ property :restocking_fee, as: 'restockingFee', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee::Representation
5479
+
5480
+ collection :return_methods, as: 'returnMethods'
5481
+ property :return_policy_id, as: 'returnPolicyId'
5482
+ property :return_policy_uri, as: 'returnPolicyUri'
5483
+ collection :return_reason_category_info, as: 'returnReasonCategoryInfo', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo::Representation
5484
+
5485
+ end
5486
+ end
5487
+
5488
+ class ReturnPolicyOnlinePolicy
5489
+ # @private
5490
+ class Representation < Google::Apis::Core::JsonRepresentation
5491
+ property :days, :numeric_string => true, as: 'days'
5492
+ property :type, as: 'type'
5493
+ end
5494
+ end
5495
+
5496
+ class ReturnPolicyOnlineRestockingFee
5497
+ # @private
5498
+ class Representation < Google::Apis::Core::JsonRepresentation
5499
+ property :fixed_fee, as: 'fixedFee', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5500
+
5501
+ property :micro_percent, as: 'microPercent'
5502
+ end
5503
+ end
5504
+
5505
+ class ReturnPolicyOnlineReturnReasonCategoryInfo
5506
+ # @private
5507
+ class Representation < Google::Apis::Core::JsonRepresentation
5508
+ property :return_label_source, as: 'returnLabelSource'
5509
+ property :return_reason_category, as: 'returnReasonCategory'
5510
+ property :return_shipping_fee, as: 'returnShippingFee', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnShippingFee, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnShippingFee::Representation
5511
+
5512
+ end
5513
+ end
5514
+
5515
+ class ReturnPolicyOnlineReturnShippingFee
5516
+ # @private
5517
+ class Representation < Google::Apis::Core::JsonRepresentation
5518
+ property :fixed_fee, as: 'fixedFee', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5519
+
5520
+ property :type, as: 'type'
5521
+ end
5522
+ end
5523
+
5397
5524
  class ReturnPolicyPolicy
5398
5525
  # @private
5399
5526
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -979,6 +979,76 @@ module Google
979
979
  execute_or_queue_command(command, &block)
980
980
  end
981
981
 
982
+ # Retrieves a status of BoG program for your Merchant Center account.
983
+ # @param [Fixnum] merchant_id
984
+ # Required. The ID of the account.
985
+ # @param [String] region_code
986
+ # The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
987
+ # ISO_3166-1_alpha-2). Currently only US is available.
988
+ # @param [String] fields
989
+ # Selector specifying which fields to include in a partial response.
990
+ # @param [String] quota_user
991
+ # Available to use for quota purposes for server-side applications. Can be any
992
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
993
+ # @param [Google::Apis::RequestOptions] options
994
+ # Request-specific options
995
+ #
996
+ # @yield [result, err] Result & error if block supplied
997
+ # @yieldparam result [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] parsed result object
998
+ # @yieldparam err [StandardError] error object if request failed
999
+ #
1000
+ # @return [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus]
1001
+ #
1002
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1003
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1004
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1005
+ def get_buyongoogleprogram(merchant_id, region_code, fields: nil, quota_user: nil, options: nil, &block)
1006
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}', options)
1007
+ command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1008
+ command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
1009
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1010
+ command.params['regionCode'] = region_code unless region_code.nil?
1011
+ command.query['fields'] = fields unless fields.nil?
1012
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1013
+ execute_or_queue_command(command, &block)
1014
+ end
1015
+
1016
+ # Onboards BoG in your Merchant Center account. By using this method, you agree
1017
+ # to the Terms of Service.
1018
+ # @param [Fixnum] merchant_id
1019
+ # Required. The ID of the account.
1020
+ # @param [String] region_code
1021
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1022
+ # ISO_3166-1_alpha-2). Currently only US is available.
1023
+ # @param [Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest] onboard_buy_on_google_program_request_object
1024
+ # @param [String] fields
1025
+ # Selector specifying which fields to include in a partial response.
1026
+ # @param [String] quota_user
1027
+ # Available to use for quota purposes for server-side applications. Can be any
1028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1029
+ # @param [Google::Apis::RequestOptions] options
1030
+ # Request-specific options
1031
+ #
1032
+ # @yield [result, err] Result & error if block supplied
1033
+ # @yieldparam result [NilClass] No result returned for this method
1034
+ # @yieldparam err [StandardError] error object if request failed
1035
+ #
1036
+ # @return [void]
1037
+ #
1038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1041
+ def onboard_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, onboard_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1042
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/onboard', options)
1043
+ command.request_representation = Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest::Representation
1044
+ command.request_object = onboard_buy_on_google_program_request_object
1045
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1046
+ command.params['regionCode'] = region_code unless region_code.nil?
1047
+ command.query['fields'] = fields unless fields.nil?
1048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1049
+ execute_or_queue_command(command, &block)
1050
+ end
1051
+
982
1052
  # Uploads a collection to your Merchant Center account. If a collection with the
983
1053
  # same collectionId already exists, this method updates that entry. In each
984
1054
  # update, the collection is completely replaced by the fields in the body of the
@@ -4389,7 +4459,8 @@ module Google
4389
4459
  # @param [Fixnum] merchant_id
4390
4460
  # Required. The id of the merchant who owns the repricing rule.
4391
4461
  # @param [String] country_code
4392
- # CLDR country code (e.g. "US"), used as a filter on repricing rules.
4462
+ # [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/
4463
+ # en.xml) (e.g. "US"), used as a filter on repricing rules.
4393
4464
  # @param [String] language_code
4394
4465
  # The two-letter ISO 639-1 language code associated with the repricing rule,
4395
4466
  # used as a filter.
@@ -4850,6 +4921,174 @@ module Google
4850
4921
  execute_or_queue_command(command, &block)
4851
4922
  end
4852
4923
 
4924
+ # Creates a new return policy.
4925
+ # @param [Fixnum] merchant_id
4926
+ # Required. The id of the merchant for which to retrieve the return policy
4927
+ # online object.
4928
+ # @param [Google::Apis::ContentV2_1::ReturnPolicyOnline] return_policy_online_object
4929
+ # @param [String] fields
4930
+ # Selector specifying which fields to include in a partial response.
4931
+ # @param [String] quota_user
4932
+ # Available to use for quota purposes for server-side applications. Can be any
4933
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4934
+ # @param [Google::Apis::RequestOptions] options
4935
+ # Request-specific options
4936
+ #
4937
+ # @yield [result, err] Result & error if block supplied
4938
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
4939
+ # @yieldparam err [StandardError] error object if request failed
4940
+ #
4941
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
4942
+ #
4943
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4944
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4945
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4946
+ def create_returnpolicyonline(merchant_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4947
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnpolicyonline', options)
4948
+ command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
4949
+ command.request_object = return_policy_online_object
4950
+ command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
4951
+ command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
4952
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4953
+ command.query['fields'] = fields unless fields.nil?
4954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4955
+ execute_or_queue_command(command, &block)
4956
+ end
4957
+
4958
+ # Deletes an existing return policy.
4959
+ # @param [Fixnum] merchant_id
4960
+ # Required. The id of the merchant for which to retrieve the return policy
4961
+ # online object.
4962
+ # @param [String] return_policy_id
4963
+ # Required. The id of the return policy to delete.
4964
+ # @param [String] fields
4965
+ # Selector specifying which fields to include in a partial response.
4966
+ # @param [String] quota_user
4967
+ # Available to use for quota purposes for server-side applications. Can be any
4968
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4969
+ # @param [Google::Apis::RequestOptions] options
4970
+ # Request-specific options
4971
+ #
4972
+ # @yield [result, err] Result & error if block supplied
4973
+ # @yieldparam result [NilClass] No result returned for this method
4974
+ # @yieldparam err [StandardError] error object if request failed
4975
+ #
4976
+ # @return [void]
4977
+ #
4978
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4979
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4980
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4981
+ def delete_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
4982
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
4983
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4984
+ command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
4985
+ command.query['fields'] = fields unless fields.nil?
4986
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4987
+ execute_or_queue_command(command, &block)
4988
+ end
4989
+
4990
+ # Gets an existing return policy.
4991
+ # @param [Fixnum] merchant_id
4992
+ # Required. The id of the merchant for which to retrieve the return policy
4993
+ # online object.
4994
+ # @param [String] return_policy_id
4995
+ # Required. The id of the return policy to retrieve.
4996
+ # @param [String] fields
4997
+ # Selector specifying which fields to include in a partial response.
4998
+ # @param [String] quota_user
4999
+ # Available to use for quota purposes for server-side applications. Can be any
5000
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5001
+ # @param [Google::Apis::RequestOptions] options
5002
+ # Request-specific options
5003
+ #
5004
+ # @yield [result, err] Result & error if block supplied
5005
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
5006
+ # @yieldparam err [StandardError] error object if request failed
5007
+ #
5008
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
5009
+ #
5010
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5011
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5012
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5013
+ def get_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
5014
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5015
+ command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
5016
+ command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
5017
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
5018
+ command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
5019
+ command.query['fields'] = fields unless fields.nil?
5020
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5021
+ execute_or_queue_command(command, &block)
5022
+ end
5023
+
5024
+ # Lists all existing return policies.
5025
+ # @param [Fixnum] merchant_id
5026
+ # Required. The id of the merchant for which to retrieve the return policy
5027
+ # online object.
5028
+ # @param [String] fields
5029
+ # Selector specifying which fields to include in a partial response.
5030
+ # @param [String] quota_user
5031
+ # Available to use for quota purposes for server-side applications. Can be any
5032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5033
+ # @param [Google::Apis::RequestOptions] options
5034
+ # Request-specific options
5035
+ #
5036
+ # @yield [result, err] Result & error if block supplied
5037
+ # @yieldparam result [Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse] parsed result object
5038
+ # @yieldparam err [StandardError] error object if request failed
5039
+ #
5040
+ # @return [Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse]
5041
+ #
5042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5045
+ def list_returnpolicyonlines(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
5046
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicyonline', options)
5047
+ command.response_representation = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse::Representation
5048
+ command.response_class = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse
5049
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
5050
+ command.query['fields'] = fields unless fields.nil?
5051
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5052
+ execute_or_queue_command(command, &block)
5053
+ end
5054
+
5055
+ # Updates an existing return policy.
5056
+ # @param [Fixnum] merchant_id
5057
+ # Required. The id of the merchant for which to retrieve the return policy
5058
+ # online object.
5059
+ # @param [String] return_policy_id
5060
+ # Required. The id of the return policy to update.
5061
+ # @param [Google::Apis::ContentV2_1::ReturnPolicyOnline] return_policy_online_object
5062
+ # @param [String] fields
5063
+ # Selector specifying which fields to include in a partial response.
5064
+ # @param [String] quota_user
5065
+ # Available to use for quota purposes for server-side applications. Can be any
5066
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5067
+ # @param [Google::Apis::RequestOptions] options
5068
+ # Request-specific options
5069
+ #
5070
+ # @yield [result, err] Result & error if block supplied
5071
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
5072
+ # @yieldparam err [StandardError] error object if request failed
5073
+ #
5074
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
5075
+ #
5076
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5077
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5078
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5079
+ def patch_returnpolicyonline(merchant_id, return_policy_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5080
+ command = make_simple_command(:patch, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5081
+ command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
5082
+ command.request_object = return_policy_online_object
5083
+ command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
5084
+ command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
5085
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
5086
+ command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
5087
+ command.query['fields'] = fields unless fields.nil?
5088
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5089
+ execute_or_queue_command(command, &block)
5090
+ end
5091
+
4853
5092
  # Retrieves a settlement report from your Merchant Center account.
4854
5093
  # @param [Fixnum] merchant_id
4855
5094
  # The Merchant Center account of the settlement report.
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.4.0
4
+ version: 0.5.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-02-22 00:00:00.000000000 Z
11
+ date: 2021-03-01 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.4.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.5.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.6
72
+ rubygems_version: 3.2.11
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Content API for Shopping V2_1