google-apis-merchantapi_accounts_v1beta 0.17.0 → 0.18.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: 85ed895c20124b840e23e363906b043bfbbe02260ac4826dd257651ed2390d67
4
- data.tar.gz: 6d2f63f30a5bd92b1311f7da13e3f4bbf6c81750cd690b02ce0e12ff61ab3739
3
+ metadata.gz: a99a2ef16fb4606fbf90a403e3b1fbfc534768ba8cf1a27a1e7f8913c0d765e6
4
+ data.tar.gz: 9c294c4a9ae46d5c02acafa81ba4f29df5c05c29f86c2ea8d911143de9141cbf
5
5
  SHA512:
6
- metadata.gz: aa49005b03477e0375c0c6fe67d06c4de58a0b5853e03f4c4d0861c00e998cb811614dcbb6fd360c909d3bc1e5d82b98cb1d1f972e2c601fdf5986d7ea847f3a
7
- data.tar.gz: b12de1bbb6d3da47b8891a6cbe33ba46d1caeb181c1be6c17fd9799332715b11dda09b06da04a5de484f95099174a5435876df375956af84dad9474c6e930584
6
+ metadata.gz: 5003a339c4db994b1c29069019f41d4ffd1f2ef16d3347c0441987c5aebb1bc9581514c0775341939dde17c0b44ffcc635c697a2685c57ae5281f9c9cd559c42
7
+ data.tar.gz: 065d369f543f2444b9b35f4822e17a0febffc2437def889a934c411ca1d85d68850c4bd23eb40ad4b881188bd6844be686ad1501242535c053f0e64d9c789832
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-merchantapi_accounts_v1beta
2
2
 
3
+ ### v0.18.0 (2025-07-13)
4
+
5
+ * Regenerated from discovery document revision 20250710
6
+
3
7
  ### v0.17.0 (2025-07-06)
4
8
 
5
9
  * Regenerated from discovery document revision 20250628
@@ -1412,6 +1412,33 @@ module Google
1412
1412
  end
1413
1413
  end
1414
1414
 
1415
+ # Represents a developer registration owned by a Merchant account.
1416
+ class DeveloperRegistration
1417
+ include Google::Apis::Core::Hashable
1418
+
1419
+ # Output only. The GCP ids attached to this developer registration
1420
+ # Corresponds to the JSON property `gcpIds`
1421
+ # @return [Array<String>]
1422
+ attr_accessor :gcp_ids
1423
+
1424
+ # Identifier. The `name` (ID) of the developer registration. Generated by the
1425
+ # Content API upon creation of a new `DeveloperRegistration`. The `account`
1426
+ # represents the merchant ID of the merchant that owns the registration.
1427
+ # Corresponds to the JSON property `name`
1428
+ # @return [String]
1429
+ attr_accessor :name
1430
+
1431
+ def initialize(**args)
1432
+ update!(**args)
1433
+ end
1434
+
1435
+ # Update properties of this object
1436
+ def update!(**args)
1437
+ @gcp_ids = args[:gcp_ids] if args.key?(:gcp_ids)
1438
+ @name = args[:name] if args.key?(:name)
1439
+ end
1440
+ end
1441
+
1415
1442
  # Request message for the DisableProgram method.
1416
1443
  class DisableProgramRequest
1417
1444
  include Google::Apis::Core::Hashable
@@ -2637,11 +2664,12 @@ module Google
2637
2664
  # @return [Array<String>]
2638
2665
  attr_accessor :item_conditions
2639
2666
 
2640
- # Required. Immutable. This field represents the unique user-defined label of
2641
- # the return policy. It is important to note that the same label cannot be used
2642
- # in different return policies for the same country. Unless a product specifies
2643
- # a specific label attribute, policies will be automatically labeled as 'default'
2644
- # . To assign a custom return policy to certain product groups, follow the
2667
+ # Optional. Immutable. This field represents the unique user-defined label of
2668
+ # the return policy for the given country. It is important to note that the same
2669
+ # label cannot be used in different return policies for the same country. If not
2670
+ # given, policies will be automatically treated as the 'default' for the country.
2671
+ # When using label, you are creating an exception policy in that country to
2672
+ # assign a custom return policy to certain product groups, follow the
2645
2673
  # instructions provided in the [Return policy label] (https://support.google.com/
2646
2674
  # merchants/answer/9445425). The label can contain up to 50 characters.
2647
2675
  # Corresponds to the JSON property `label`
@@ -3417,6 +3445,31 @@ module Google
3417
3445
  end
3418
3446
  end
3419
3447
 
3448
+ # Request message for the RegisterGCP method.
3449
+ class RegisterGcpRequest
3450
+ include Google::Apis::Core::Hashable
3451
+
3452
+ # Immutable. If the developer email provided is associated with a user in the
3453
+ # merchant account provided, the user will be updated to have "API developer"
3454
+ # access type and the email preference corresponding to that user will be
3455
+ # updated to have the new "API notifications" preference. If the developer email
3456
+ # provided is not associated with any user we will just add it as a contact. The
3457
+ # email preference corresponding to that contact will have the new "API
3458
+ # notifications" preference
3459
+ # Corresponds to the JSON property `developerEmail`
3460
+ # @return [String]
3461
+ attr_accessor :developer_email
3462
+
3463
+ def initialize(**args)
3464
+ update!(**args)
3465
+ end
3466
+
3467
+ # Update properties of this object
3468
+ def update!(**args)
3469
+ @developer_email = args[:developer_email] if args.key?(:developer_email)
3470
+ end
3471
+ end
3472
+
3420
3473
  # Request to reject an account service.
3421
3474
  class RejectAccountServiceRequest
3422
3475
  include Google::Apis::Core::Hashable
@@ -4191,6 +4244,19 @@ module Google
4191
4244
  end
4192
4245
  end
4193
4246
 
4247
+ # Request message for the UnregisterGCP method.
4248
+ class UnregisterGcpRequest
4249
+ include Google::Apis::Core::Hashable
4250
+
4251
+ def initialize(**args)
4252
+ update!(**args)
4253
+ end
4254
+
4255
+ # Update properties of this object
4256
+ def update!(**args)
4257
+ end
4258
+ end
4259
+
4194
4260
  # URL settings for cart or checkout URL.
4195
4261
  class UriSettings
4196
4262
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MerchantapiAccountsV1beta
18
18
  # Version of the google-apis-merchantapi_accounts_v1beta gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.18.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 = "20250628"
25
+ REVISION = "20250710"
26
26
  end
27
27
  end
28
28
  end
@@ -214,6 +214,12 @@ module Google
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
216
 
217
+ class DeveloperRegistration
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
217
223
  class DisableProgramRequest
218
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
225
 
@@ -562,6 +568,12 @@ module Google
562
568
  include Google::Apis::Core::JsonObjectSupport
563
569
  end
564
570
 
571
+ class RegisterGcpRequest
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
565
577
  class RejectAccountServiceRequest
566
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
567
579
 
@@ -694,6 +706,12 @@ module Google
694
706
  include Google::Apis::Core::JsonObjectSupport
695
707
  end
696
708
 
709
+ class UnregisterGcpRequest
710
+ class Representation < Google::Apis::Core::JsonRepresentation; end
711
+
712
+ include Google::Apis::Core::JsonObjectSupport
713
+ end
714
+
697
715
  class UriSettings
698
716
  class Representation < Google::Apis::Core::JsonRepresentation; end
699
717
 
@@ -1083,6 +1101,14 @@ module Google
1083
1101
  end
1084
1102
  end
1085
1103
 
1104
+ class DeveloperRegistration
1105
+ # @private
1106
+ class Representation < Google::Apis::Core::JsonRepresentation
1107
+ collection :gcp_ids, as: 'gcpIds'
1108
+ property :name, as: 'name'
1109
+ end
1110
+ end
1111
+
1086
1112
  class DisableProgramRequest
1087
1113
  # @private
1088
1114
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1631,6 +1657,13 @@ module Google
1631
1657
  end
1632
1658
  end
1633
1659
 
1660
+ class RegisterGcpRequest
1661
+ # @private
1662
+ class Representation < Google::Apis::Core::JsonRepresentation
1663
+ property :developer_email, as: 'developerEmail'
1664
+ end
1665
+ end
1666
+
1634
1667
  class RejectAccountServiceRequest
1635
1668
  # @private
1636
1669
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1849,6 +1882,12 @@ module Google
1849
1882
  end
1850
1883
  end
1851
1884
 
1885
+ class UnregisterGcpRequest
1886
+ # @private
1887
+ class Representation < Google::Apis::Core::JsonRepresentation
1888
+ end
1889
+ end
1890
+
1852
1891
  class UriSettings
1853
1892
  # @private
1854
1893
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -153,6 +153,36 @@ module Google
153
153
  execute_or_queue_command(command, &block)
154
154
  end
155
155
 
156
+ # Retrieves a developer registration for a merchant.
157
+ # @param [String] name
158
+ # Required. The `name` (ID) of the developer registration.
159
+ # @param [String] fields
160
+ # Selector specifying which fields to include in a partial response.
161
+ # @param [String] quota_user
162
+ # Available to use for quota purposes for server-side applications. Can be any
163
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
164
+ # @param [Google::Apis::RequestOptions] options
165
+ # Request-specific options
166
+ #
167
+ # @yield [result, err] Result & error if block supplied
168
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::DeveloperRegistration] parsed result object
169
+ # @yieldparam err [StandardError] error object if request failed
170
+ #
171
+ # @return [Google::Apis::MerchantapiAccountsV1beta::DeveloperRegistration]
172
+ #
173
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
174
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
175
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
176
+ def get_account_developer_registration(name, fields: nil, quota_user: nil, options: nil, &block)
177
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
178
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::DeveloperRegistration::Representation
179
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::DeveloperRegistration
180
+ command.params['name'] = name unless name.nil?
181
+ command.query['fields'] = fields unless fields.nil?
182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
183
+ execute_or_queue_command(command, &block)
184
+ end
185
+
156
186
  # Note: For the `accounts.list` method, quota and limits usage are charged for
157
187
  # each user, and not for the Merchant Center ID or the advanced account ID. To
158
188
  # list several sub-accounts, you should use the `accounts.listSubaccounts`
@@ -565,6 +595,80 @@ module Google
565
595
  execute_or_queue_command(command, &block)
566
596
  end
567
597
 
598
+ # Registers the GCP used for the API call to the shopping account passed in the
599
+ # request. Will create a user with an "API developer" and add the "
600
+ # developer_email" as a contact with "API notifications" email preference on.
601
+ # @param [String] name
602
+ # Required. The name of the developer registration to be created for the
603
+ # merchant account that the GCP will be registered with. Format: `accounts/`
604
+ # account`/developerRegistration`
605
+ # @param [Google::Apis::MerchantapiAccountsV1beta::RegisterGcpRequest] register_gcp_request_object
606
+ # @param [String] fields
607
+ # Selector specifying which fields to include in a partial response.
608
+ # @param [String] quota_user
609
+ # Available to use for quota purposes for server-side applications. Can be any
610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
611
+ # @param [Google::Apis::RequestOptions] options
612
+ # Request-specific options
613
+ #
614
+ # @yield [result, err] Result & error if block supplied
615
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::DeveloperRegistration] parsed result object
616
+ # @yieldparam err [StandardError] error object if request failed
617
+ #
618
+ # @return [Google::Apis::MerchantapiAccountsV1beta::DeveloperRegistration]
619
+ #
620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
623
+ def register_developer_registration_gcp(name, register_gcp_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
624
+ command = make_simple_command(:post, 'accounts/v1beta/{+name}:registerGcp', options)
625
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::RegisterGcpRequest::Representation
626
+ command.request_object = register_gcp_request_object
627
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::DeveloperRegistration::Representation
628
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::DeveloperRegistration
629
+ command.params['name'] = name unless name.nil?
630
+ command.query['fields'] = fields unless fields.nil?
631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
632
+ execute_or_queue_command(command, &block)
633
+ end
634
+
635
+ # Unregister the calling GCP from the calling shopping account. Note that the
636
+ # GCP will still be able to access the API for at most 1 day from the unregister
637
+ # succussful call.
638
+ # @param [String] name
639
+ # Required. The name of the developer registration to be created for the
640
+ # merchant account that the GCP will be registered with. Format: `accounts/`
641
+ # account`/developerRegistration`
642
+ # @param [Google::Apis::MerchantapiAccountsV1beta::UnregisterGcpRequest] unregister_gcp_request_object
643
+ # @param [String] fields
644
+ # Selector specifying which fields to include in a partial response.
645
+ # @param [String] quota_user
646
+ # Available to use for quota purposes for server-side applications. Can be any
647
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
648
+ # @param [Google::Apis::RequestOptions] options
649
+ # Request-specific options
650
+ #
651
+ # @yield [result, err] Result & error if block supplied
652
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Empty] parsed result object
653
+ # @yieldparam err [StandardError] error object if request failed
654
+ #
655
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Empty]
656
+ #
657
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
658
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
659
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
660
+ def unregister_developer_registration_gcp(name, unregister_gcp_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
661
+ command = make_simple_command(:post, 'accounts/v1beta/{+name}:unregisterGcp', options)
662
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::UnregisterGcpRequest::Representation
663
+ command.request_object = unregister_gcp_request_object
664
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Empty::Representation
665
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::Empty
666
+ command.params['name'] = name unless name.nil?
667
+ command.query['fields'] = fields unless fields.nil?
668
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
669
+ execute_or_queue_command(command, &block)
670
+ end
671
+
568
672
  # Returns the email preferences for a Merchant Center account user. This service
569
673
  # only permits retrieving and updating email preferences for the authenticated
570
674
  # user. Use the name=accounts/*/users/me/emailPreferences alias to get
@@ -1334,11 +1438,8 @@ module Google
1334
1438
  # account`/onlineReturnPolicies/`return_policy``
1335
1439
  # @param [Google::Apis::MerchantapiAccountsV1beta::OnlineReturnPolicy] online_return_policy_object
1336
1440
  # @param [String] update_mask
1337
- # Optional. List of fields being updated. The following fields are supported (in
1338
- # both `snake_case` and `lowerCamelCase`): - `accept_defective_only` - `
1339
- # accept_exchange` - `item_conditions` - `policy` - `process_refund_days` - `
1340
- # restocking_fee` - `return_methods` - `return_policy_uri` - `
1341
- # return_shipping_fee`
1441
+ # Optional. Only support updating the entire OnlineReturnPolicy message. For
1442
+ # update_mask, always use `*`.
1342
1443
  # @param [String] fields
1343
1444
  # Selector specifying which fields to include in a partial response.
1344
1445
  # @param [String] quota_user
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_accounts_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.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-merchantapi_accounts_v1beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.17.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.18.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_accounts_v1beta
62
62
  rdoc_options: []
63
63
  require_paths: