google-apis-content_v2_1 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3237777801174999a2f6664c69655e5f0eafaaba6980851d411769e60eb69771
4
- data.tar.gz: 663c7ba59e37430566c3a21e089907792e8487515dfba231eb8f2bc9ef1cfa34
3
+ metadata.gz: 964fc47aa6753f36c02287eaf30d89e945517ccf71581f41513401ad8da6dba0
4
+ data.tar.gz: d5dfbd8caffef13f4dbbeff083578d8dd4fa40583fb6ddac9451f7979d27d73c
5
5
  SHA512:
6
- metadata.gz: ceca233e872f79db6b5aecdd3a4ee6c771421016982fd82268a4e099defa5151cb552486487cb7bdf85e301766b89ac2b4f0d81870e7afd9573fa77322426583
7
- data.tar.gz: a2af6a4242cc24fcbd5f8ba0881b9683212f864186946ce7a0a123b2f679f4c03122ae3f940a86815e2c3847fdbbcf6c63c560b0ec870e4297592a48115504c5
6
+ metadata.gz: afe170c1a4aa7708b5da2904d6717518ff8aad3d6228ad3a0ecb3fe85600098668eeb2d9a7ed6b40da4c1ded36ac33208f4455429ceda6b1ff1bb56b067d4986
7
+ data.tar.gz: 3a29746922c5804ff9df751a0f18eeb947ef45d0a7c41ff943a59ecc14f4937be23740b4f868d0f195169d4d7e0f1303c4c4170d1fa0d7fbbf0e4aeb1821d7b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.47.0 (2025-11-16)
4
+
5
+ * Regenerated from discovery document revision 20251112
6
+
7
+ ### v0.46.0 (2025-11-09)
8
+
9
+ * Regenerated from discovery document revision 20251104
10
+
3
11
  ### v0.45.0 (2025-09-28)
4
12
 
5
13
  * Regenerated from discovery document revision 20250921
@@ -1336,19 +1336,22 @@ module Google
1336
1336
  # @return [String]
1337
1337
  attr_accessor :email_address
1338
1338
 
1339
- # Whether user is an order manager.
1339
+ # This role is deprecated and can no longer be assigned. Any value set will be
1340
+ # ignored.
1340
1341
  # Corresponds to the JSON property `orderManager`
1341
1342
  # @return [Boolean]
1342
1343
  attr_accessor :order_manager
1343
1344
  alias_method :order_manager?, :order_manager
1344
1345
 
1345
- # Whether user can access payment statements.
1346
+ # This role is deprecated and can no longer be assigned. Any value set will be
1347
+ # ignored.
1346
1348
  # Corresponds to the JSON property `paymentsAnalyst`
1347
1349
  # @return [Boolean]
1348
1350
  attr_accessor :payments_analyst
1349
1351
  alias_method :payments_analyst?, :payments_analyst
1350
1352
 
1351
- # Whether user can manage payment settings.
1353
+ # This role is deprecated and can no longer be assigned. Any value set will be
1354
+ # ignored.
1352
1355
  # Corresponds to the JSON property `paymentsManager`
1353
1356
  # @return [Boolean]
1354
1357
  attr_accessor :payments_manager
@@ -12463,178 +12466,6 @@ module Google
12463
12466
  end
12464
12467
  end
12465
12468
 
12466
- # Return address resource.
12467
- class ReturnAddress
12468
- include Google::Apis::Core::Hashable
12469
-
12470
- # Required. The address.
12471
- # Corresponds to the JSON property `address`
12472
- # @return [Google::Apis::ContentV2_1::ReturnAddressAddress]
12473
- attr_accessor :address
12474
-
12475
- # Required. The country of sale where the return address is applicable.
12476
- # Corresponds to the JSON property `country`
12477
- # @return [String]
12478
- attr_accessor :country
12479
-
12480
- # Identifies what kind of resource this is. Value: the fixed string "`content#
12481
- # returnAddress`"
12482
- # Corresponds to the JSON property `kind`
12483
- # @return [String]
12484
- attr_accessor :kind
12485
-
12486
- # Required. The user-defined label of the return address. For the default
12487
- # address, use the label "default".
12488
- # Corresponds to the JSON property `label`
12489
- # @return [String]
12490
- attr_accessor :label
12491
-
12492
- # Required. The merchant's contact phone number regarding the return.
12493
- # Corresponds to the JSON property `phoneNumber`
12494
- # @return [String]
12495
- attr_accessor :phone_number
12496
-
12497
- # Return address ID generated by Google.
12498
- # Corresponds to the JSON property `returnAddressId`
12499
- # @return [String]
12500
- attr_accessor :return_address_id
12501
-
12502
- def initialize(**args)
12503
- update!(**args)
12504
- end
12505
-
12506
- # Update properties of this object
12507
- def update!(**args)
12508
- @address = args[:address] if args.key?(:address)
12509
- @country = args[:country] if args.key?(:country)
12510
- @kind = args[:kind] if args.key?(:kind)
12511
- @label = args[:label] if args.key?(:label)
12512
- @phone_number = args[:phone_number] if args.key?(:phone_number)
12513
- @return_address_id = args[:return_address_id] if args.key?(:return_address_id)
12514
- end
12515
- end
12516
-
12517
- #
12518
- class ReturnAddressAddress
12519
- include Google::Apis::Core::Hashable
12520
-
12521
- # CLDR country code (for example, "US").
12522
- # Corresponds to the JSON property `country`
12523
- # @return [String]
12524
- attr_accessor :country
12525
-
12526
- # City, town or commune. May also include dependent localities or sublocalities (
12527
- # for example, neighborhoods or suburbs).
12528
- # Corresponds to the JSON property `locality`
12529
- # @return [String]
12530
- attr_accessor :locality
12531
-
12532
- # Postal code or ZIP (for example, "94043").
12533
- # Corresponds to the JSON property `postalCode`
12534
- # @return [String]
12535
- attr_accessor :postal_code
12536
-
12537
- # Name of the recipient to address returns to.
12538
- # Corresponds to the JSON property `recipientName`
12539
- # @return [String]
12540
- attr_accessor :recipient_name
12541
-
12542
- # Top-level administrative subdivision of the country. For example, a state like
12543
- # California ("CA") or a province like Quebec ("QC").
12544
- # Corresponds to the JSON property `region`
12545
- # @return [String]
12546
- attr_accessor :region
12547
-
12548
- # Street-level part of the address. May be up to two lines, each line specified
12549
- # as an array element.
12550
- # Corresponds to the JSON property `streetAddress`
12551
- # @return [Array<String>]
12552
- attr_accessor :street_address
12553
-
12554
- def initialize(**args)
12555
- update!(**args)
12556
- end
12557
-
12558
- # Update properties of this object
12559
- def update!(**args)
12560
- @country = args[:country] if args.key?(:country)
12561
- @locality = args[:locality] if args.key?(:locality)
12562
- @postal_code = args[:postal_code] if args.key?(:postal_code)
12563
- @recipient_name = args[:recipient_name] if args.key?(:recipient_name)
12564
- @region = args[:region] if args.key?(:region)
12565
- @street_address = args[:street_address] if args.key?(:street_address)
12566
- end
12567
- end
12568
-
12569
- # Return policy resource.
12570
- class ReturnPolicy
12571
- include Google::Apis::Core::Hashable
12572
-
12573
- # Required. The country of sale where the return policy is applicable.
12574
- # Corresponds to the JSON property `country`
12575
- # @return [String]
12576
- attr_accessor :country
12577
-
12578
- # Identifies what kind of resource this is. Value: the fixed string "`content#
12579
- # returnPolicy`"
12580
- # Corresponds to the JSON property `kind`
12581
- # @return [String]
12582
- attr_accessor :kind
12583
-
12584
- # Required. The user-defined label of the return policy. For the default policy,
12585
- # use the label "default".
12586
- # Corresponds to the JSON property `label`
12587
- # @return [String]
12588
- attr_accessor :label
12589
-
12590
- # Required. The name of the policy as shown in Merchant Center.
12591
- # Corresponds to the JSON property `name`
12592
- # @return [String]
12593
- attr_accessor :name
12594
-
12595
- # Return reasons that will incur return fees.
12596
- # Corresponds to the JSON property `nonFreeReturnReasons`
12597
- # @return [Array<String>]
12598
- attr_accessor :non_free_return_reasons
12599
-
12600
- # Required. The policy.
12601
- # Corresponds to the JSON property `policy`
12602
- # @return [Google::Apis::ContentV2_1::ReturnPolicyPolicy]
12603
- attr_accessor :policy
12604
-
12605
- # Return policy ID generated by Google.
12606
- # Corresponds to the JSON property `returnPolicyId`
12607
- # @return [String]
12608
- attr_accessor :return_policy_id
12609
-
12610
- # The return shipping fee that will apply to non free return reasons.
12611
- # Corresponds to the JSON property `returnShippingFee`
12612
- # @return [Google::Apis::ContentV2_1::Price]
12613
- attr_accessor :return_shipping_fee
12614
-
12615
- # An optional list of seasonal overrides.
12616
- # Corresponds to the JSON property `seasonalOverrides`
12617
- # @return [Array<Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride>]
12618
- attr_accessor :seasonal_overrides
12619
-
12620
- def initialize(**args)
12621
- update!(**args)
12622
- end
12623
-
12624
- # Update properties of this object
12625
- def update!(**args)
12626
- @country = args[:country] if args.key?(:country)
12627
- @kind = args[:kind] if args.key?(:kind)
12628
- @label = args[:label] if args.key?(:label)
12629
- @name = args[:name] if args.key?(:name)
12630
- @non_free_return_reasons = args[:non_free_return_reasons] if args.key?(:non_free_return_reasons)
12631
- @policy = args[:policy] if args.key?(:policy)
12632
- @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
12633
- @return_shipping_fee = args[:return_shipping_fee] if args.key?(:return_shipping_fee)
12634
- @seasonal_overrides = args[:seasonal_overrides] if args.key?(:seasonal_overrides)
12635
- end
12636
- end
12637
-
12638
12469
  # Return policy online object. This is currently used to represent return
12639
12470
  # policies for ads and free listings programs.
12640
12471
  class ReturnPolicyOnline
@@ -12830,402 +12661,6 @@ module Google
12830
12661
  end
12831
12662
  end
12832
12663
 
12833
- #
12834
- class ReturnPolicyPolicy
12835
- include Google::Apis::Core::Hashable
12836
-
12837
- # Required. Last day for returning the items. In ISO 8601 format. When
12838
- # specifying the return window like this, set the policy type to "lastReturnDate"
12839
- # . Use this for seasonal overrides only.
12840
- # Corresponds to the JSON property `lastReturnDate`
12841
- # @return [String]
12842
- attr_accessor :last_return_date
12843
-
12844
- # The number of days items can be returned after delivery, where one day is
12845
- # defined to be 24 hours after the delivery timestamp. When specifying the
12846
- # return window like this, set the policy type to "numberOfDaysAfterDelivery".
12847
- # Acceptable values are 30, 45, 60, 90, 100, 180, 270 and 365 for the default
12848
- # policy. Additional policies further allow 14, 15, 21 and 28 days, but note
12849
- # that for most items a minimum of 30 days is required for returns. Exceptions
12850
- # may be made for electronics. A policy of less than 30 days can only be applied
12851
- # to those items.
12852
- # Corresponds to the JSON property `numberOfDays`
12853
- # @return [Fixnum]
12854
- attr_accessor :number_of_days
12855
-
12856
- # Policy type. Use "lastReturnDate" for seasonal overrides only. Note that for
12857
- # most items a minimum of 30 days is required for returns. Exceptions may be
12858
- # made for electronics or non-returnable items such as food, perishables, and
12859
- # living things. A policy of less than 30 days can only be applied to those
12860
- # items. Acceptable values are: - "`lastReturnDate`" - "`lifetimeReturns`" - "`
12861
- # noReturns`" - "`numberOfDaysAfterDelivery`"
12862
- # Corresponds to the JSON property `type`
12863
- # @return [String]
12864
- attr_accessor :type
12865
-
12866
- def initialize(**args)
12867
- update!(**args)
12868
- end
12869
-
12870
- # Update properties of this object
12871
- def update!(**args)
12872
- @last_return_date = args[:last_return_date] if args.key?(:last_return_date)
12873
- @number_of_days = args[:number_of_days] if args.key?(:number_of_days)
12874
- @type = args[:type] if args.key?(:type)
12875
- end
12876
- end
12877
-
12878
- #
12879
- class ReturnPolicySeasonalOverride
12880
- include Google::Apis::Core::Hashable
12881
-
12882
- # Required. Last day on which the override applies. In ISO 8601 format.
12883
- # Corresponds to the JSON property `endDate`
12884
- # @return [String]
12885
- attr_accessor :end_date
12886
-
12887
- # Required. The name of the seasonal override as shown in Merchant Center.
12888
- # Corresponds to the JSON property `name`
12889
- # @return [String]
12890
- attr_accessor :name
12891
-
12892
- # Required. The policy which is in effect during that time.
12893
- # Corresponds to the JSON property `policy`
12894
- # @return [Google::Apis::ContentV2_1::ReturnPolicyPolicy]
12895
- attr_accessor :policy
12896
-
12897
- # Required. First day on which the override applies. In ISO 8601 format.
12898
- # Corresponds to the JSON property `startDate`
12899
- # @return [String]
12900
- attr_accessor :start_date
12901
-
12902
- def initialize(**args)
12903
- update!(**args)
12904
- end
12905
-
12906
- # Update properties of this object
12907
- def update!(**args)
12908
- @end_date = args[:end_date] if args.key?(:end_date)
12909
- @name = args[:name] if args.key?(:name)
12910
- @policy = args[:policy] if args.key?(:policy)
12911
- @start_date = args[:start_date] if args.key?(:start_date)
12912
- end
12913
- end
12914
-
12915
- #
12916
- class ReturnaddressCustomBatchRequest
12917
- include Google::Apis::Core::Hashable
12918
-
12919
- # The request entries to be processed in the batch.
12920
- # Corresponds to the JSON property `entries`
12921
- # @return [Array<Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequestEntry>]
12922
- attr_accessor :entries
12923
-
12924
- def initialize(**args)
12925
- update!(**args)
12926
- end
12927
-
12928
- # Update properties of this object
12929
- def update!(**args)
12930
- @entries = args[:entries] if args.key?(:entries)
12931
- end
12932
- end
12933
-
12934
- #
12935
- class ReturnaddressCustomBatchRequestEntry
12936
- include Google::Apis::Core::Hashable
12937
-
12938
- # An entry ID, unique within the batch request.
12939
- # Corresponds to the JSON property `batchId`
12940
- # @return [Fixnum]
12941
- attr_accessor :batch_id
12942
-
12943
- # The Merchant Center account ID.
12944
- # Corresponds to the JSON property `merchantId`
12945
- # @return [Fixnum]
12946
- attr_accessor :merchant_id
12947
-
12948
- # Method of the batch request entry. Acceptable values are: - "`delete`" - "`get`
12949
- # " - "`insert`"
12950
- # Corresponds to the JSON property `method`
12951
- # @return [String]
12952
- attr_accessor :method_prop
12953
-
12954
- # Return address resource.
12955
- # Corresponds to the JSON property `returnAddress`
12956
- # @return [Google::Apis::ContentV2_1::ReturnAddress]
12957
- attr_accessor :return_address
12958
-
12959
- # The return address ID. This should be set only if the method is `delete` or `
12960
- # get`.
12961
- # Corresponds to the JSON property `returnAddressId`
12962
- # @return [String]
12963
- attr_accessor :return_address_id
12964
-
12965
- def initialize(**args)
12966
- update!(**args)
12967
- end
12968
-
12969
- # Update properties of this object
12970
- def update!(**args)
12971
- @batch_id = args[:batch_id] if args.key?(:batch_id)
12972
- @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
12973
- @method_prop = args[:method_prop] if args.key?(:method_prop)
12974
- @return_address = args[:return_address] if args.key?(:return_address)
12975
- @return_address_id = args[:return_address_id] if args.key?(:return_address_id)
12976
- end
12977
- end
12978
-
12979
- #
12980
- class ReturnaddressCustomBatchResponse
12981
- include Google::Apis::Core::Hashable
12982
-
12983
- # The result of the execution of the batch requests.
12984
- # Corresponds to the JSON property `entries`
12985
- # @return [Array<Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponseEntry>]
12986
- attr_accessor :entries
12987
-
12988
- # Identifies what kind of resource this is. Value: the fixed string "`content#
12989
- # returnaddressCustomBatchResponse`".
12990
- # Corresponds to the JSON property `kind`
12991
- # @return [String]
12992
- attr_accessor :kind
12993
-
12994
- def initialize(**args)
12995
- update!(**args)
12996
- end
12997
-
12998
- # Update properties of this object
12999
- def update!(**args)
13000
- @entries = args[:entries] if args.key?(:entries)
13001
- @kind = args[:kind] if args.key?(:kind)
13002
- end
13003
- end
13004
-
13005
- #
13006
- class ReturnaddressCustomBatchResponseEntry
13007
- include Google::Apis::Core::Hashable
13008
-
13009
- # The ID of the request entry to which this entry responds.
13010
- # Corresponds to the JSON property `batchId`
13011
- # @return [Fixnum]
13012
- attr_accessor :batch_id
13013
-
13014
- # A list of errors returned by a failed batch entry.
13015
- # Corresponds to the JSON property `errors`
13016
- # @return [Google::Apis::ContentV2_1::Errors]
13017
- attr_accessor :errors
13018
-
13019
- # Identifies what kind of resource this is. Value: the fixed string "`content#
13020
- # returnaddressCustomBatchResponseEntry`"
13021
- # Corresponds to the JSON property `kind`
13022
- # @return [String]
13023
- attr_accessor :kind
13024
-
13025
- # Return address resource.
13026
- # Corresponds to the JSON property `returnAddress`
13027
- # @return [Google::Apis::ContentV2_1::ReturnAddress]
13028
- attr_accessor :return_address
13029
-
13030
- def initialize(**args)
13031
- update!(**args)
13032
- end
13033
-
13034
- # Update properties of this object
13035
- def update!(**args)
13036
- @batch_id = args[:batch_id] if args.key?(:batch_id)
13037
- @errors = args[:errors] if args.key?(:errors)
13038
- @kind = args[:kind] if args.key?(:kind)
13039
- @return_address = args[:return_address] if args.key?(:return_address)
13040
- end
13041
- end
13042
-
13043
- #
13044
- class ReturnaddressListResponse
13045
- include Google::Apis::Core::Hashable
13046
-
13047
- # Identifies what kind of resource this is. Value: the fixed string "`content#
13048
- # returnaddressListResponse`".
13049
- # Corresponds to the JSON property `kind`
13050
- # @return [String]
13051
- attr_accessor :kind
13052
-
13053
- # The token for the retrieval of the next page of addresses.
13054
- # Corresponds to the JSON property `nextPageToken`
13055
- # @return [String]
13056
- attr_accessor :next_page_token
13057
-
13058
- #
13059
- # Corresponds to the JSON property `resources`
13060
- # @return [Array<Google::Apis::ContentV2_1::ReturnAddress>]
13061
- attr_accessor :resources
13062
-
13063
- def initialize(**args)
13064
- update!(**args)
13065
- end
13066
-
13067
- # Update properties of this object
13068
- def update!(**args)
13069
- @kind = args[:kind] if args.key?(:kind)
13070
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13071
- @resources = args[:resources] if args.key?(:resources)
13072
- end
13073
- end
13074
-
13075
- #
13076
- class ReturnpolicyCustomBatchRequest
13077
- include Google::Apis::Core::Hashable
13078
-
13079
- # The request entries to be processed in the batch.
13080
- # Corresponds to the JSON property `entries`
13081
- # @return [Array<Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequestEntry>]
13082
- attr_accessor :entries
13083
-
13084
- def initialize(**args)
13085
- update!(**args)
13086
- end
13087
-
13088
- # Update properties of this object
13089
- def update!(**args)
13090
- @entries = args[:entries] if args.key?(:entries)
13091
- end
13092
- end
13093
-
13094
- #
13095
- class ReturnpolicyCustomBatchRequestEntry
13096
- include Google::Apis::Core::Hashable
13097
-
13098
- # An entry ID, unique within the batch request.
13099
- # Corresponds to the JSON property `batchId`
13100
- # @return [Fixnum]
13101
- attr_accessor :batch_id
13102
-
13103
- # The Merchant Center account ID.
13104
- # Corresponds to the JSON property `merchantId`
13105
- # @return [Fixnum]
13106
- attr_accessor :merchant_id
13107
-
13108
- # Method of the batch request entry. Acceptable values are: - "`delete`" - "`get`
13109
- # " - "`insert`"
13110
- # Corresponds to the JSON property `method`
13111
- # @return [String]
13112
- attr_accessor :method_prop
13113
-
13114
- # Return policy resource.
13115
- # Corresponds to the JSON property `returnPolicy`
13116
- # @return [Google::Apis::ContentV2_1::ReturnPolicy]
13117
- attr_accessor :return_policy
13118
-
13119
- # The return policy ID. This should be set only if the method is `delete` or `
13120
- # get`.
13121
- # Corresponds to the JSON property `returnPolicyId`
13122
- # @return [String]
13123
- attr_accessor :return_policy_id
13124
-
13125
- def initialize(**args)
13126
- update!(**args)
13127
- end
13128
-
13129
- # Update properties of this object
13130
- def update!(**args)
13131
- @batch_id = args[:batch_id] if args.key?(:batch_id)
13132
- @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
13133
- @method_prop = args[:method_prop] if args.key?(:method_prop)
13134
- @return_policy = args[:return_policy] if args.key?(:return_policy)
13135
- @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
13136
- end
13137
- end
13138
-
13139
- #
13140
- class ReturnpolicyCustomBatchResponse
13141
- include Google::Apis::Core::Hashable
13142
-
13143
- # The result of the execution of the batch requests.
13144
- # Corresponds to the JSON property `entries`
13145
- # @return [Array<Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponseEntry>]
13146
- attr_accessor :entries
13147
-
13148
- # Identifies what kind of resource this is. Value: the fixed string "`content#
13149
- # returnpolicyCustomBatchResponse`".
13150
- # Corresponds to the JSON property `kind`
13151
- # @return [String]
13152
- attr_accessor :kind
13153
-
13154
- def initialize(**args)
13155
- update!(**args)
13156
- end
13157
-
13158
- # Update properties of this object
13159
- def update!(**args)
13160
- @entries = args[:entries] if args.key?(:entries)
13161
- @kind = args[:kind] if args.key?(:kind)
13162
- end
13163
- end
13164
-
13165
- #
13166
- class ReturnpolicyCustomBatchResponseEntry
13167
- include Google::Apis::Core::Hashable
13168
-
13169
- # The ID of the request entry to which this entry responds.
13170
- # Corresponds to the JSON property `batchId`
13171
- # @return [Fixnum]
13172
- attr_accessor :batch_id
13173
-
13174
- # A list of errors returned by a failed batch entry.
13175
- # Corresponds to the JSON property `errors`
13176
- # @return [Google::Apis::ContentV2_1::Errors]
13177
- attr_accessor :errors
13178
-
13179
- # Identifies what kind of resource this is. Value: the fixed string "`content#
13180
- # returnpolicyCustomBatchResponseEntry`"
13181
- # Corresponds to the JSON property `kind`
13182
- # @return [String]
13183
- attr_accessor :kind
13184
-
13185
- # Return policy resource.
13186
- # Corresponds to the JSON property `returnPolicy`
13187
- # @return [Google::Apis::ContentV2_1::ReturnPolicy]
13188
- attr_accessor :return_policy
13189
-
13190
- def initialize(**args)
13191
- update!(**args)
13192
- end
13193
-
13194
- # Update properties of this object
13195
- def update!(**args)
13196
- @batch_id = args[:batch_id] if args.key?(:batch_id)
13197
- @errors = args[:errors] if args.key?(:errors)
13198
- @kind = args[:kind] if args.key?(:kind)
13199
- @return_policy = args[:return_policy] if args.key?(:return_policy)
13200
- end
13201
- end
13202
-
13203
- #
13204
- class ReturnpolicyListResponse
13205
- include Google::Apis::Core::Hashable
13206
-
13207
- # Identifies what kind of resource this is. Value: the fixed string "`content#
13208
- # returnpolicyListResponse`".
13209
- # Corresponds to the JSON property `kind`
13210
- # @return [String]
13211
- attr_accessor :kind
13212
-
13213
- #
13214
- # Corresponds to the JSON property `resources`
13215
- # @return [Array<Google::Apis::ContentV2_1::ReturnPolicy>]
13216
- attr_accessor :resources
13217
-
13218
- def initialize(**args)
13219
- update!(**args)
13220
- end
13221
-
13222
- # Update properties of this object
13223
- def update!(**args)
13224
- @kind = args[:kind] if args.key?(:kind)
13225
- @resources = args[:resources] if args.key?(:resources)
13226
- end
13227
- end
13228
-
13229
12664
  #
13230
12665
  class Row
13231
12666
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2_1
18
18
  # Version of the google-apis-content_v2_1 gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250921"
25
+ REVISION = "20251112"
26
26
  end
27
27
  end
28
28
  end
@@ -1660,24 +1660,6 @@ module Google
1660
1660
  include Google::Apis::Core::JsonObjectSupport
1661
1661
  end
1662
1662
 
1663
- class ReturnAddress
1664
- class Representation < Google::Apis::Core::JsonRepresentation; end
1665
-
1666
- include Google::Apis::Core::JsonObjectSupport
1667
- end
1668
-
1669
- class ReturnAddressAddress
1670
- class Representation < Google::Apis::Core::JsonRepresentation; end
1671
-
1672
- include Google::Apis::Core::JsonObjectSupport
1673
- end
1674
-
1675
- class ReturnPolicy
1676
- class Representation < Google::Apis::Core::JsonRepresentation; end
1677
-
1678
- include Google::Apis::Core::JsonObjectSupport
1679
- end
1680
-
1681
1663
  class ReturnPolicyOnline
1682
1664
  class Representation < Google::Apis::Core::JsonRepresentation; end
1683
1665
 
@@ -1708,78 +1690,6 @@ module Google
1708
1690
  include Google::Apis::Core::JsonObjectSupport
1709
1691
  end
1710
1692
 
1711
- class ReturnPolicyPolicy
1712
- class Representation < Google::Apis::Core::JsonRepresentation; end
1713
-
1714
- include Google::Apis::Core::JsonObjectSupport
1715
- end
1716
-
1717
- class ReturnPolicySeasonalOverride
1718
- class Representation < Google::Apis::Core::JsonRepresentation; end
1719
-
1720
- include Google::Apis::Core::JsonObjectSupport
1721
- end
1722
-
1723
- class ReturnaddressCustomBatchRequest
1724
- class Representation < Google::Apis::Core::JsonRepresentation; end
1725
-
1726
- include Google::Apis::Core::JsonObjectSupport
1727
- end
1728
-
1729
- class ReturnaddressCustomBatchRequestEntry
1730
- class Representation < Google::Apis::Core::JsonRepresentation; end
1731
-
1732
- include Google::Apis::Core::JsonObjectSupport
1733
- end
1734
-
1735
- class ReturnaddressCustomBatchResponse
1736
- class Representation < Google::Apis::Core::JsonRepresentation; end
1737
-
1738
- include Google::Apis::Core::JsonObjectSupport
1739
- end
1740
-
1741
- class ReturnaddressCustomBatchResponseEntry
1742
- class Representation < Google::Apis::Core::JsonRepresentation; end
1743
-
1744
- include Google::Apis::Core::JsonObjectSupport
1745
- end
1746
-
1747
- class ReturnaddressListResponse
1748
- class Representation < Google::Apis::Core::JsonRepresentation; end
1749
-
1750
- include Google::Apis::Core::JsonObjectSupport
1751
- end
1752
-
1753
- class ReturnpolicyCustomBatchRequest
1754
- class Representation < Google::Apis::Core::JsonRepresentation; end
1755
-
1756
- include Google::Apis::Core::JsonObjectSupport
1757
- end
1758
-
1759
- class ReturnpolicyCustomBatchRequestEntry
1760
- class Representation < Google::Apis::Core::JsonRepresentation; end
1761
-
1762
- include Google::Apis::Core::JsonObjectSupport
1763
- end
1764
-
1765
- class ReturnpolicyCustomBatchResponse
1766
- class Representation < Google::Apis::Core::JsonRepresentation; end
1767
-
1768
- include Google::Apis::Core::JsonObjectSupport
1769
- end
1770
-
1771
- class ReturnpolicyCustomBatchResponseEntry
1772
- class Representation < Google::Apis::Core::JsonRepresentation; end
1773
-
1774
- include Google::Apis::Core::JsonObjectSupport
1775
- end
1776
-
1777
- class ReturnpolicyListResponse
1778
- class Representation < Google::Apis::Core::JsonRepresentation; end
1779
-
1780
- include Google::Apis::Core::JsonObjectSupport
1781
- end
1782
-
1783
1693
  class Row
1784
1694
  class Representation < Google::Apis::Core::JsonRepresentation; end
1785
1695
 
@@ -5180,49 +5090,6 @@ module Google
5180
5090
  end
5181
5091
  end
5182
5092
 
5183
- class ReturnAddress
5184
- # @private
5185
- class Representation < Google::Apis::Core::JsonRepresentation
5186
- property :address, as: 'address', class: Google::Apis::ContentV2_1::ReturnAddressAddress, decorator: Google::Apis::ContentV2_1::ReturnAddressAddress::Representation
5187
-
5188
- property :country, as: 'country'
5189
- property :kind, as: 'kind'
5190
- property :label, as: 'label'
5191
- property :phone_number, as: 'phoneNumber'
5192
- property :return_address_id, as: 'returnAddressId'
5193
- end
5194
- end
5195
-
5196
- class ReturnAddressAddress
5197
- # @private
5198
- class Representation < Google::Apis::Core::JsonRepresentation
5199
- property :country, as: 'country'
5200
- property :locality, as: 'locality'
5201
- property :postal_code, as: 'postalCode'
5202
- property :recipient_name, as: 'recipientName'
5203
- property :region, as: 'region'
5204
- collection :street_address, as: 'streetAddress'
5205
- end
5206
- end
5207
-
5208
- class ReturnPolicy
5209
- # @private
5210
- class Representation < Google::Apis::Core::JsonRepresentation
5211
- property :country, as: 'country'
5212
- property :kind, as: 'kind'
5213
- property :label, as: 'label'
5214
- property :name, as: 'name'
5215
- collection :non_free_return_reasons, as: 'nonFreeReturnReasons'
5216
- property :policy, as: 'policy', class: Google::Apis::ContentV2_1::ReturnPolicyPolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicyPolicy::Representation
5217
-
5218
- property :return_policy_id, as: 'returnPolicyId'
5219
- property :return_shipping_fee, as: 'returnShippingFee', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
5220
-
5221
- collection :seasonal_overrides, as: 'seasonalOverrides', class: Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride, decorator: Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride::Representation
5222
-
5223
- end
5224
- end
5225
-
5226
5093
  class ReturnPolicyOnline
5227
5094
  # @private
5228
5095
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5278,127 +5145,6 @@ module Google
5278
5145
  end
5279
5146
  end
5280
5147
 
5281
- class ReturnPolicyPolicy
5282
- # @private
5283
- class Representation < Google::Apis::Core::JsonRepresentation
5284
- property :last_return_date, as: 'lastReturnDate'
5285
- property :number_of_days, :numeric_string => true, as: 'numberOfDays'
5286
- property :type, as: 'type'
5287
- end
5288
- end
5289
-
5290
- class ReturnPolicySeasonalOverride
5291
- # @private
5292
- class Representation < Google::Apis::Core::JsonRepresentation
5293
- property :end_date, as: 'endDate'
5294
- property :name, as: 'name'
5295
- property :policy, as: 'policy', class: Google::Apis::ContentV2_1::ReturnPolicyPolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicyPolicy::Representation
5296
-
5297
- property :start_date, as: 'startDate'
5298
- end
5299
- end
5300
-
5301
- class ReturnaddressCustomBatchRequest
5302
- # @private
5303
- class Representation < Google::Apis::Core::JsonRepresentation
5304
- collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequestEntry::Representation
5305
-
5306
- end
5307
- end
5308
-
5309
- class ReturnaddressCustomBatchRequestEntry
5310
- # @private
5311
- class Representation < Google::Apis::Core::JsonRepresentation
5312
- property :batch_id, as: 'batchId'
5313
- property :merchant_id, :numeric_string => true, as: 'merchantId'
5314
- property :method_prop, as: 'method'
5315
- property :return_address, as: 'returnAddress', class: Google::Apis::ContentV2_1::ReturnAddress, decorator: Google::Apis::ContentV2_1::ReturnAddress::Representation
5316
-
5317
- property :return_address_id, as: 'returnAddressId'
5318
- end
5319
- end
5320
-
5321
- class ReturnaddressCustomBatchResponse
5322
- # @private
5323
- class Representation < Google::Apis::Core::JsonRepresentation
5324
- collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponseEntry::Representation
5325
-
5326
- property :kind, as: 'kind'
5327
- end
5328
- end
5329
-
5330
- class ReturnaddressCustomBatchResponseEntry
5331
- # @private
5332
- class Representation < Google::Apis::Core::JsonRepresentation
5333
- property :batch_id, as: 'batchId'
5334
- property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation
5335
-
5336
- property :kind, as: 'kind'
5337
- property :return_address, as: 'returnAddress', class: Google::Apis::ContentV2_1::ReturnAddress, decorator: Google::Apis::ContentV2_1::ReturnAddress::Representation
5338
-
5339
- end
5340
- end
5341
-
5342
- class ReturnaddressListResponse
5343
- # @private
5344
- class Representation < Google::Apis::Core::JsonRepresentation
5345
- property :kind, as: 'kind'
5346
- property :next_page_token, as: 'nextPageToken'
5347
- collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::ReturnAddress, decorator: Google::Apis::ContentV2_1::ReturnAddress::Representation
5348
-
5349
- end
5350
- end
5351
-
5352
- class ReturnpolicyCustomBatchRequest
5353
- # @private
5354
- class Representation < Google::Apis::Core::JsonRepresentation
5355
- collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequestEntry, decorator: Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequestEntry::Representation
5356
-
5357
- end
5358
- end
5359
-
5360
- class ReturnpolicyCustomBatchRequestEntry
5361
- # @private
5362
- class Representation < Google::Apis::Core::JsonRepresentation
5363
- property :batch_id, as: 'batchId'
5364
- property :merchant_id, :numeric_string => true, as: 'merchantId'
5365
- property :method_prop, as: 'method'
5366
- property :return_policy, as: 'returnPolicy', class: Google::Apis::ContentV2_1::ReturnPolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicy::Representation
5367
-
5368
- property :return_policy_id, as: 'returnPolicyId'
5369
- end
5370
- end
5371
-
5372
- class ReturnpolicyCustomBatchResponse
5373
- # @private
5374
- class Representation < Google::Apis::Core::JsonRepresentation
5375
- collection :entries, as: 'entries', class: Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponseEntry, decorator: Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponseEntry::Representation
5376
-
5377
- property :kind, as: 'kind'
5378
- end
5379
- end
5380
-
5381
- class ReturnpolicyCustomBatchResponseEntry
5382
- # @private
5383
- class Representation < Google::Apis::Core::JsonRepresentation
5384
- property :batch_id, as: 'batchId'
5385
- property :errors, as: 'errors', class: Google::Apis::ContentV2_1::Errors, decorator: Google::Apis::ContentV2_1::Errors::Representation
5386
-
5387
- property :kind, as: 'kind'
5388
- property :return_policy, as: 'returnPolicy', class: Google::Apis::ContentV2_1::ReturnPolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicy::Representation
5389
-
5390
- end
5391
- end
5392
-
5393
- class ReturnpolicyListResponse
5394
- # @private
5395
- class Representation < Google::Apis::Core::JsonRepresentation
5396
- property :kind, as: 'kind'
5397
- collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::ReturnPolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicy::Representation
5398
-
5399
- end
5400
- end
5401
-
5402
5148
  class Row
5403
5149
  # @private
5404
5150
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4097,330 +4097,6 @@ module Google
4097
4097
  execute_or_queue_command(command, &block)
4098
4098
  end
4099
4099
 
4100
- # Batches multiple return address related calls in a single request.
4101
- # @param [Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest] returnaddress_custom_batch_request_object
4102
- # @param [String] fields
4103
- # Selector specifying which fields to include in a partial response.
4104
- # @param [String] quota_user
4105
- # Available to use for quota purposes for server-side applications. Can be any
4106
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4107
- # @param [Google::Apis::RequestOptions] options
4108
- # Request-specific options
4109
- #
4110
- # @yield [result, err] Result & error if block supplied
4111
- # @yieldparam result [Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse] parsed result object
4112
- # @yieldparam err [StandardError] error object if request failed
4113
- #
4114
- # @return [Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse]
4115
- #
4116
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4117
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4118
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4119
- def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4120
- command = make_simple_command(:post, 'returnaddress/batch', options)
4121
- command.request_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest::Representation
4122
- command.request_object = returnaddress_custom_batch_request_object
4123
- command.response_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse::Representation
4124
- command.response_class = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse
4125
- command.query['fields'] = fields unless fields.nil?
4126
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4127
- execute_or_queue_command(command, &block)
4128
- end
4129
-
4130
- # Deletes a return address for the given Merchant Center account.
4131
- # @param [Fixnum] merchant_id
4132
- # The Merchant Center account from which to delete the given return address.
4133
- # @param [String] return_address_id
4134
- # Return address ID generated by Google.
4135
- # @param [String] fields
4136
- # Selector specifying which fields to include in a partial response.
4137
- # @param [String] quota_user
4138
- # Available to use for quota purposes for server-side applications. Can be any
4139
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4140
- # @param [Google::Apis::RequestOptions] options
4141
- # Request-specific options
4142
- #
4143
- # @yield [result, err] Result & error if block supplied
4144
- # @yieldparam result [NilClass] No result returned for this method
4145
- # @yieldparam err [StandardError] error object if request failed
4146
- #
4147
- # @return [void]
4148
- #
4149
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4150
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4151
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4152
- def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
4153
- command = make_simple_command(:delete, '{merchantId}/returnaddress/{returnAddressId}', options)
4154
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
4155
- command.params['returnAddressId'] = return_address_id unless return_address_id.nil?
4156
- command.query['fields'] = fields unless fields.nil?
4157
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4158
- execute_or_queue_command(command, &block)
4159
- end
4160
-
4161
- # Gets a return address of the Merchant Center account.
4162
- # @param [Fixnum] merchant_id
4163
- # The Merchant Center account to get a return address for.
4164
- # @param [String] return_address_id
4165
- # Return address ID generated by Google.
4166
- # @param [String] fields
4167
- # Selector specifying which fields to include in a partial response.
4168
- # @param [String] quota_user
4169
- # Available to use for quota purposes for server-side applications. Can be any
4170
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4171
- # @param [Google::Apis::RequestOptions] options
4172
- # Request-specific options
4173
- #
4174
- # @yield [result, err] Result & error if block supplied
4175
- # @yieldparam result [Google::Apis::ContentV2_1::ReturnAddress] parsed result object
4176
- # @yieldparam err [StandardError] error object if request failed
4177
- #
4178
- # @return [Google::Apis::ContentV2_1::ReturnAddress]
4179
- #
4180
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4181
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4182
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4183
- def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
4184
- command = make_simple_command(:get, '{merchantId}/returnaddress/{returnAddressId}', options)
4185
- command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
4186
- command.response_class = Google::Apis::ContentV2_1::ReturnAddress
4187
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
4188
- command.params['returnAddressId'] = return_address_id unless return_address_id.nil?
4189
- command.query['fields'] = fields unless fields.nil?
4190
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4191
- execute_or_queue_command(command, &block)
4192
- end
4193
-
4194
- # Inserts a return address for the Merchant Center account.
4195
- # @param [Fixnum] merchant_id
4196
- # The Merchant Center account to insert a return address for.
4197
- # @param [Google::Apis::ContentV2_1::ReturnAddress] return_address_object
4198
- # @param [String] fields
4199
- # Selector specifying which fields to include in a partial response.
4200
- # @param [String] quota_user
4201
- # Available to use for quota purposes for server-side applications. Can be any
4202
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4203
- # @param [Google::Apis::RequestOptions] options
4204
- # Request-specific options
4205
- #
4206
- # @yield [result, err] Result & error if block supplied
4207
- # @yieldparam result [Google::Apis::ContentV2_1::ReturnAddress] parsed result object
4208
- # @yieldparam err [StandardError] error object if request failed
4209
- #
4210
- # @return [Google::Apis::ContentV2_1::ReturnAddress]
4211
- #
4212
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4213
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4214
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4215
- def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4216
- command = make_simple_command(:post, '{merchantId}/returnaddress', options)
4217
- command.request_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
4218
- command.request_object = return_address_object
4219
- command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
4220
- command.response_class = Google::Apis::ContentV2_1::ReturnAddress
4221
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
4222
- command.query['fields'] = fields unless fields.nil?
4223
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4224
- execute_or_queue_command(command, &block)
4225
- end
4226
-
4227
- # Lists the return addresses of the Merchant Center account.
4228
- # @param [Fixnum] merchant_id
4229
- # The Merchant Center account to list return addresses for.
4230
- # @param [String] country
4231
- # List only return addresses applicable to the given country of sale. When
4232
- # omitted, all return addresses are listed.
4233
- # @param [Fixnum] max_results
4234
- # The maximum number of addresses in the response, used for paging.
4235
- # @param [String] page_token
4236
- # The token returned by the previous request.
4237
- # @param [String] fields
4238
- # Selector specifying which fields to include in a partial response.
4239
- # @param [String] quota_user
4240
- # Available to use for quota purposes for server-side applications. Can be any
4241
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4242
- # @param [Google::Apis::RequestOptions] options
4243
- # Request-specific options
4244
- #
4245
- # @yield [result, err] Result & error if block supplied
4246
- # @yieldparam result [Google::Apis::ContentV2_1::ReturnaddressListResponse] parsed result object
4247
- # @yieldparam err [StandardError] error object if request failed
4248
- #
4249
- # @return [Google::Apis::ContentV2_1::ReturnaddressListResponse]
4250
- #
4251
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4252
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4253
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4254
- def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4255
- command = make_simple_command(:get, '{merchantId}/returnaddress', options)
4256
- command.response_representation = Google::Apis::ContentV2_1::ReturnaddressListResponse::Representation
4257
- command.response_class = Google::Apis::ContentV2_1::ReturnaddressListResponse
4258
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
4259
- command.query['country'] = country unless country.nil?
4260
- command.query['maxResults'] = max_results unless max_results.nil?
4261
- command.query['pageToken'] = page_token unless page_token.nil?
4262
- command.query['fields'] = fields unless fields.nil?
4263
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4264
- execute_or_queue_command(command, &block)
4265
- end
4266
-
4267
- # Batches multiple return policy related calls in a single request.
4268
- # @param [Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequest] returnpolicy_custom_batch_request_object
4269
- # @param [String] fields
4270
- # Selector specifying which fields to include in a partial response.
4271
- # @param [String] quota_user
4272
- # Available to use for quota purposes for server-side applications. Can be any
4273
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4274
- # @param [Google::Apis::RequestOptions] options
4275
- # Request-specific options
4276
- #
4277
- # @yield [result, err] Result & error if block supplied
4278
- # @yieldparam result [Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse] parsed result object
4279
- # @yieldparam err [StandardError] error object if request failed
4280
- #
4281
- # @return [Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse]
4282
- #
4283
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4284
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4285
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4286
- def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4287
- command = make_simple_command(:post, 'returnpolicy/batch', options)
4288
- command.request_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequest::Representation
4289
- command.request_object = returnpolicy_custom_batch_request_object
4290
- command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse::Representation
4291
- command.response_class = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse
4292
- command.query['fields'] = fields unless fields.nil?
4293
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4294
- execute_or_queue_command(command, &block)
4295
- end
4296
-
4297
- # Deletes a return policy for the given Merchant Center account.
4298
- # @param [Fixnum] merchant_id
4299
- # The Merchant Center account from which to delete the given return policy.
4300
- # @param [String] return_policy_id
4301
- # Return policy ID generated by Google.
4302
- # @param [String] fields
4303
- # Selector specifying which fields to include in a partial response.
4304
- # @param [String] quota_user
4305
- # Available to use for quota purposes for server-side applications. Can be any
4306
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4307
- # @param [Google::Apis::RequestOptions] options
4308
- # Request-specific options
4309
- #
4310
- # @yield [result, err] Result & error if block supplied
4311
- # @yieldparam result [NilClass] No result returned for this method
4312
- # @yieldparam err [StandardError] error object if request failed
4313
- #
4314
- # @return [void]
4315
- #
4316
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4317
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4318
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4319
- def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
4320
- command = make_simple_command(:delete, '{merchantId}/returnpolicy/{returnPolicyId}', options)
4321
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
4322
- command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
4323
- command.query['fields'] = fields unless fields.nil?
4324
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4325
- execute_or_queue_command(command, &block)
4326
- end
4327
-
4328
- # Gets a return policy of the Merchant Center account.
4329
- # @param [Fixnum] merchant_id
4330
- # The Merchant Center account to get a return policy for.
4331
- # @param [String] return_policy_id
4332
- # Return policy ID generated by Google.
4333
- # @param [String] fields
4334
- # Selector specifying which fields to include in a partial response.
4335
- # @param [String] quota_user
4336
- # Available to use for quota purposes for server-side applications. Can be any
4337
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4338
- # @param [Google::Apis::RequestOptions] options
4339
- # Request-specific options
4340
- #
4341
- # @yield [result, err] Result & error if block supplied
4342
- # @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicy] parsed result object
4343
- # @yieldparam err [StandardError] error object if request failed
4344
- #
4345
- # @return [Google::Apis::ContentV2_1::ReturnPolicy]
4346
- #
4347
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4348
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4349
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4350
- def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
4351
- command = make_simple_command(:get, '{merchantId}/returnpolicy/{returnPolicyId}', options)
4352
- command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
4353
- command.response_class = Google::Apis::ContentV2_1::ReturnPolicy
4354
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
4355
- command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
4356
- command.query['fields'] = fields unless fields.nil?
4357
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4358
- execute_or_queue_command(command, &block)
4359
- end
4360
-
4361
- # Inserts a return policy for the Merchant Center account.
4362
- # @param [Fixnum] merchant_id
4363
- # The Merchant Center account to insert a return policy for.
4364
- # @param [Google::Apis::ContentV2_1::ReturnPolicy] return_policy_object
4365
- # @param [String] fields
4366
- # Selector specifying which fields to include in a partial response.
4367
- # @param [String] quota_user
4368
- # Available to use for quota purposes for server-side applications. Can be any
4369
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4370
- # @param [Google::Apis::RequestOptions] options
4371
- # Request-specific options
4372
- #
4373
- # @yield [result, err] Result & error if block supplied
4374
- # @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicy] parsed result object
4375
- # @yieldparam err [StandardError] error object if request failed
4376
- #
4377
- # @return [Google::Apis::ContentV2_1::ReturnPolicy]
4378
- #
4379
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4380
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4381
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4382
- def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4383
- command = make_simple_command(:post, '{merchantId}/returnpolicy', options)
4384
- command.request_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
4385
- command.request_object = return_policy_object
4386
- command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
4387
- command.response_class = Google::Apis::ContentV2_1::ReturnPolicy
4388
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
4389
- command.query['fields'] = fields unless fields.nil?
4390
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4391
- execute_or_queue_command(command, &block)
4392
- end
4393
-
4394
- # Lists the return policies of the Merchant Center account.
4395
- # @param [Fixnum] merchant_id
4396
- # The Merchant Center account to list return policies for.
4397
- # @param [String] fields
4398
- # Selector specifying which fields to include in a partial response.
4399
- # @param [String] quota_user
4400
- # Available to use for quota purposes for server-side applications. Can be any
4401
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4402
- # @param [Google::Apis::RequestOptions] options
4403
- # Request-specific options
4404
- #
4405
- # @yield [result, err] Result & error if block supplied
4406
- # @yieldparam result [Google::Apis::ContentV2_1::ReturnpolicyListResponse] parsed result object
4407
- # @yieldparam err [StandardError] error object if request failed
4408
- #
4409
- # @return [Google::Apis::ContentV2_1::ReturnpolicyListResponse]
4410
- #
4411
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4412
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4413
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4414
- def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
4415
- command = make_simple_command(:get, '{merchantId}/returnpolicy', options)
4416
- command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyListResponse::Representation
4417
- command.response_class = Google::Apis::ContentV2_1::ReturnpolicyListResponse
4418
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
4419
- command.query['fields'] = fields unless fields.nil?
4420
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4421
- execute_or_queue_command(command, &block)
4422
- end
4423
-
4424
4100
  # Creates a new return policy.
4425
4101
  # @param [Fixnum] merchant_id
4426
4102
  # Required. The id of the merchant for which to retrieve the return policy
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.45.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.47.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1
62
62
  rdoc_options: []
63
63
  require_paths: