google-apis-merchantapi_accounts_v1beta 0.16.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/merchantapi_accounts_v1beta/classes.rb +179 -5
- data/lib/google/apis/merchantapi_accounts_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/merchantapi_accounts_v1beta/representations.rb +75 -0
- data/lib/google/apis/merchantapi_accounts_v1beta/service.rb +242 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a99a2ef16fb4606fbf90a403e3b1fbfc534768ba8cf1a27a1e7f8913c0d765e6
|
4
|
+
data.tar.gz: 9c294c4a9ae46d5c02acafa81ba4f29df5c05c29f86c2ea8d911143de9141cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5003a339c4db994b1c29069019f41d4ffd1f2ef16d3347c0441987c5aebb1bc9581514c0775341939dde17c0b44ffcc635c697a2685c57ae5281f9c9cd559c42
|
7
|
+
data.tar.gz: 065d369f543f2444b9b35f4822e17a0febffc2437def889a934c411ca1d85d68850c4bd23eb40ad4b881188bd6844be686ad1501242535c053f0e64d9c789832
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
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
|
+
|
7
|
+
### v0.17.0 (2025-07-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250628
|
10
|
+
|
3
11
|
### v0.16.0 (2025-06-29)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250621
|
@@ -990,6 +990,81 @@ module Google
|
|
990
990
|
end
|
991
991
|
end
|
992
992
|
|
993
|
+
# [CheckoutSettings](https://support.google.com/merchants/answer/13945960) for a
|
994
|
+
# specific merchant.
|
995
|
+
class CheckoutSettings
|
996
|
+
include Google::Apis::Core::Hashable
|
997
|
+
|
998
|
+
# Output only. The effective value of enrollment_state for a given merchant ID.
|
999
|
+
# If account level settings are present then this value will be a copy of the
|
1000
|
+
# account level settings. Otherwise, it will have the value of the parent
|
1001
|
+
# account (for only marketplace sellers).
|
1002
|
+
# Corresponds to the JSON property `effectiveEnrollmentState`
|
1003
|
+
# @return [String]
|
1004
|
+
attr_accessor :effective_enrollment_state
|
1005
|
+
|
1006
|
+
# Output only. The effective value of `review_state` for a given merchant ID. If
|
1007
|
+
# account level settings are present then this value will be a copy of the
|
1008
|
+
# account level settings. Otherwise, it will have the value of the parent
|
1009
|
+
# account (for only marketplace sellers).
|
1010
|
+
# Corresponds to the JSON property `effectiveReviewState`
|
1011
|
+
# @return [String]
|
1012
|
+
attr_accessor :effective_review_state
|
1013
|
+
|
1014
|
+
# URL settings for cart or checkout URL.
|
1015
|
+
# Corresponds to the JSON property `effectiveUriSettings`
|
1016
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::UriSettings]
|
1017
|
+
attr_accessor :effective_uri_settings
|
1018
|
+
|
1019
|
+
# Optional. The destinations to which the checkout program applies, valid
|
1020
|
+
# destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
|
1021
|
+
# Corresponds to the JSON property `eligibleDestinations`
|
1022
|
+
# @return [Array<String>]
|
1023
|
+
attr_accessor :eligible_destinations
|
1024
|
+
|
1025
|
+
# Output only. Reflects the merchant enrollment state in `Checkout` program.
|
1026
|
+
# Corresponds to the JSON property `enrollmentState`
|
1027
|
+
# @return [String]
|
1028
|
+
attr_accessor :enrollment_state
|
1029
|
+
|
1030
|
+
# Identifier. The resource name of the program configuration settings. Format: `
|
1031
|
+
# accounts/`account`/programs/`program`/checkoutSettings`
|
1032
|
+
# Corresponds to the JSON property `name`
|
1033
|
+
# @return [String]
|
1034
|
+
attr_accessor :name
|
1035
|
+
|
1036
|
+
# Output only. Reflects the merchant review state in `Checkout` program. This is
|
1037
|
+
# set based on the data quality reviews of the URL provided by the merchant. A
|
1038
|
+
# merchant with enrollment state as `ENROLLED` can be in the following review
|
1039
|
+
# states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A merchant must be in an `
|
1040
|
+
# enrollment_state` of `ENROLLED` before a review can begin for the merchant.For
|
1041
|
+
# more details, check the help center doc.
|
1042
|
+
# Corresponds to the JSON property `reviewState`
|
1043
|
+
# @return [String]
|
1044
|
+
attr_accessor :review_state
|
1045
|
+
|
1046
|
+
# URL settings for cart or checkout URL.
|
1047
|
+
# Corresponds to the JSON property `uriSettings`
|
1048
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::UriSettings]
|
1049
|
+
attr_accessor :uri_settings
|
1050
|
+
|
1051
|
+
def initialize(**args)
|
1052
|
+
update!(**args)
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
# Update properties of this object
|
1056
|
+
def update!(**args)
|
1057
|
+
@effective_enrollment_state = args[:effective_enrollment_state] if args.key?(:effective_enrollment_state)
|
1058
|
+
@effective_review_state = args[:effective_review_state] if args.key?(:effective_review_state)
|
1059
|
+
@effective_uri_settings = args[:effective_uri_settings] if args.key?(:effective_uri_settings)
|
1060
|
+
@eligible_destinations = args[:eligible_destinations] if args.key?(:eligible_destinations)
|
1061
|
+
@enrollment_state = args[:enrollment_state] if args.key?(:enrollment_state)
|
1062
|
+
@name = args[:name] if args.key?(:name)
|
1063
|
+
@review_state = args[:review_state] if args.key?(:review_state)
|
1064
|
+
@uri_settings = args[:uri_settings] if args.key?(:uri_settings)
|
1065
|
+
end
|
1066
|
+
end
|
1067
|
+
|
993
1068
|
# Request message for the `ClaimHomepage` method.
|
994
1069
|
class ClaimHomepageRequest
|
995
1070
|
include Google::Apis::Core::Hashable
|
@@ -1337,6 +1412,33 @@ module Google
|
|
1337
1412
|
end
|
1338
1413
|
end
|
1339
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
|
+
|
1340
1442
|
# Request message for the DisableProgram method.
|
1341
1443
|
class DisableProgramRequest
|
1342
1444
|
include Google::Apis::Core::Hashable
|
@@ -2562,11 +2664,12 @@ module Google
|
|
2562
2664
|
# @return [Array<String>]
|
2563
2665
|
attr_accessor :item_conditions
|
2564
2666
|
|
2565
|
-
#
|
2566
|
-
# the return policy. It is important to note that the same
|
2567
|
-
# in different return policies for the same country.
|
2568
|
-
#
|
2569
|
-
#
|
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
|
2570
2673
|
# instructions provided in the [Return policy label] (https://support.google.com/
|
2571
2674
|
# merchants/answer/9445425). The label can contain up to 50 characters.
|
2572
2675
|
# Corresponds to the JSON property `label`
|
@@ -3342,6 +3445,31 @@ module Google
|
|
3342
3445
|
end
|
3343
3446
|
end
|
3344
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
|
+
|
3345
3473
|
# Request to reject an account service.
|
3346
3474
|
class RejectAccountServiceRequest
|
3347
3475
|
include Google::Apis::Core::Hashable
|
@@ -4116,6 +4244,52 @@ module Google
|
|
4116
4244
|
end
|
4117
4245
|
end
|
4118
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
|
+
|
4260
|
+
# URL settings for cart or checkout URL.
|
4261
|
+
class UriSettings
|
4262
|
+
include Google::Apis::Core::Hashable
|
4263
|
+
|
4264
|
+
# Cart URL template. When the placeholders are expanded will redirect the buyer
|
4265
|
+
# to the cart page on the merchant website with the selected item in cart. For
|
4266
|
+
# more details, check the [help center doc](https://support.google.com/merchants/
|
4267
|
+
# answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-
|
4268
|
+
# url-formatting)
|
4269
|
+
# Corresponds to the JSON property `cartUriTemplate`
|
4270
|
+
# @return [String]
|
4271
|
+
attr_accessor :cart_uri_template
|
4272
|
+
|
4273
|
+
# Checkout URL template. When the placeholders are expanded will redirect the
|
4274
|
+
# buyer to the merchant checkout page with the item in the cart. For more
|
4275
|
+
# details, check the [help center doc](https://support.google.com/merchants/
|
4276
|
+
# answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-
|
4277
|
+
# url-formatting)
|
4278
|
+
# Corresponds to the JSON property `checkoutUriTemplate`
|
4279
|
+
# @return [String]
|
4280
|
+
attr_accessor :checkout_uri_template
|
4281
|
+
|
4282
|
+
def initialize(**args)
|
4283
|
+
update!(**args)
|
4284
|
+
end
|
4285
|
+
|
4286
|
+
# Update properties of this object
|
4287
|
+
def update!(**args)
|
4288
|
+
@cart_uri_template = args[:cart_uri_template] if args.key?(:cart_uri_template)
|
4289
|
+
@checkout_uri_template = args[:checkout_uri_template] if args.key?(:checkout_uri_template)
|
4290
|
+
end
|
4291
|
+
end
|
4292
|
+
|
4119
4293
|
# The `User` message represents a user associated with a Merchant Center account.
|
4120
4294
|
# It is used to manage user permissions and access rights within the account.
|
4121
4295
|
# For more information, see [Frequently asked questions about people and access
|
@@ -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.
|
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 = "
|
25
|
+
REVISION = "20250710"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -160,6 +160,12 @@ module Google
|
|
160
160
|
include Google::Apis::Core::JsonObjectSupport
|
161
161
|
end
|
162
162
|
|
163
|
+
class CheckoutSettings
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
163
169
|
class ClaimHomepageRequest
|
164
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
171
|
|
@@ -208,6 +214,12 @@ module Google
|
|
208
214
|
include Google::Apis::Core::JsonObjectSupport
|
209
215
|
end
|
210
216
|
|
217
|
+
class DeveloperRegistration
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
211
223
|
class DisableProgramRequest
|
212
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
225
|
|
@@ -556,6 +568,12 @@ module Google
|
|
556
568
|
include Google::Apis::Core::JsonObjectSupport
|
557
569
|
end
|
558
570
|
|
571
|
+
class RegisterGcpRequest
|
572
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
|
+
|
574
|
+
include Google::Apis::Core::JsonObjectSupport
|
575
|
+
end
|
576
|
+
|
559
577
|
class RejectAccountServiceRequest
|
560
578
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
561
579
|
|
@@ -688,6 +706,18 @@ module Google
|
|
688
706
|
include Google::Apis::Core::JsonObjectSupport
|
689
707
|
end
|
690
708
|
|
709
|
+
class UnregisterGcpRequest
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
715
|
+
class UriSettings
|
716
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
717
|
+
|
718
|
+
include Google::Apis::Core::JsonObjectSupport
|
719
|
+
end
|
720
|
+
|
691
721
|
class User
|
692
722
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
693
723
|
|
@@ -966,6 +996,22 @@ module Google
|
|
966
996
|
end
|
967
997
|
end
|
968
998
|
|
999
|
+
class CheckoutSettings
|
1000
|
+
# @private
|
1001
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1002
|
+
property :effective_enrollment_state, as: 'effectiveEnrollmentState'
|
1003
|
+
property :effective_review_state, as: 'effectiveReviewState'
|
1004
|
+
property :effective_uri_settings, as: 'effectiveUriSettings', class: Google::Apis::MerchantapiAccountsV1beta::UriSettings, decorator: Google::Apis::MerchantapiAccountsV1beta::UriSettings::Representation
|
1005
|
+
|
1006
|
+
collection :eligible_destinations, as: 'eligibleDestinations'
|
1007
|
+
property :enrollment_state, as: 'enrollmentState'
|
1008
|
+
property :name, as: 'name'
|
1009
|
+
property :review_state, as: 'reviewState'
|
1010
|
+
property :uri_settings, as: 'uriSettings', class: Google::Apis::MerchantapiAccountsV1beta::UriSettings, decorator: Google::Apis::MerchantapiAccountsV1beta::UriSettings::Representation
|
1011
|
+
|
1012
|
+
end
|
1013
|
+
end
|
1014
|
+
|
969
1015
|
class ClaimHomepageRequest
|
970
1016
|
# @private
|
971
1017
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1055,6 +1101,14 @@ module Google
|
|
1055
1101
|
end
|
1056
1102
|
end
|
1057
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
|
+
|
1058
1112
|
class DisableProgramRequest
|
1059
1113
|
# @private
|
1060
1114
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1603,6 +1657,13 @@ module Google
|
|
1603
1657
|
end
|
1604
1658
|
end
|
1605
1659
|
|
1660
|
+
class RegisterGcpRequest
|
1661
|
+
# @private
|
1662
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1663
|
+
property :developer_email, as: 'developerEmail'
|
1664
|
+
end
|
1665
|
+
end
|
1666
|
+
|
1606
1667
|
class RejectAccountServiceRequest
|
1607
1668
|
# @private
|
1608
1669
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1821,6 +1882,20 @@ module Google
|
|
1821
1882
|
end
|
1822
1883
|
end
|
1823
1884
|
|
1885
|
+
class UnregisterGcpRequest
|
1886
|
+
# @private
|
1887
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1888
|
+
end
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
class UriSettings
|
1892
|
+
# @private
|
1893
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1894
|
+
property :cart_uri_template, as: 'cartUriTemplate'
|
1895
|
+
property :checkout_uri_template, as: 'checkoutUriTemplate'
|
1896
|
+
end
|
1897
|
+
end
|
1898
|
+
|
1824
1899
|
class User
|
1825
1900
|
# @private
|
1826
1901
|
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.
|
1338
|
-
#
|
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
|
@@ -1510,6 +1611,142 @@ module Google
|
|
1510
1611
|
execute_or_queue_command(command, &block)
|
1511
1612
|
end
|
1512
1613
|
|
1614
|
+
# Creates `CheckoutSettings` for the given merchant.
|
1615
|
+
# @param [String] parent
|
1616
|
+
# Required. The merchant account for which the `CheckoutSettings` will be
|
1617
|
+
# created.
|
1618
|
+
# @param [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] checkout_settings_object
|
1619
|
+
# @param [String] fields
|
1620
|
+
# Selector specifying which fields to include in a partial response.
|
1621
|
+
# @param [String] quota_user
|
1622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1624
|
+
# @param [Google::Apis::RequestOptions] options
|
1625
|
+
# Request-specific options
|
1626
|
+
#
|
1627
|
+
# @yield [result, err] Result & error if block supplied
|
1628
|
+
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] parsed result object
|
1629
|
+
# @yieldparam err [StandardError] error object if request failed
|
1630
|
+
#
|
1631
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings]
|
1632
|
+
#
|
1633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1636
|
+
def create_account_program_checkout_setting(parent, checkout_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1637
|
+
command = make_simple_command(:post, 'accounts/v1beta/{+parent}/checkoutSettings', options)
|
1638
|
+
command.request_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
|
1639
|
+
command.request_object = checkout_settings_object
|
1640
|
+
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
|
1641
|
+
command.response_class = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings
|
1642
|
+
command.params['parent'] = parent unless parent.nil?
|
1643
|
+
command.query['fields'] = fields unless fields.nil?
|
1644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1645
|
+
execute_or_queue_command(command, &block)
|
1646
|
+
end
|
1647
|
+
|
1648
|
+
# Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program.
|
1649
|
+
# @param [String] name
|
1650
|
+
# Required. The name/identifier of the merchant account. Format: `accounts/`
|
1651
|
+
# account`/programs/`program`/checkoutSettings`
|
1652
|
+
# @param [String] fields
|
1653
|
+
# Selector specifying which fields to include in a partial response.
|
1654
|
+
# @param [String] quota_user
|
1655
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1656
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1657
|
+
# @param [Google::Apis::RequestOptions] options
|
1658
|
+
# Request-specific options
|
1659
|
+
#
|
1660
|
+
# @yield [result, err] Result & error if block supplied
|
1661
|
+
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Empty] parsed result object
|
1662
|
+
# @yieldparam err [StandardError] error object if request failed
|
1663
|
+
#
|
1664
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::Empty]
|
1665
|
+
#
|
1666
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1667
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1668
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1669
|
+
def delete_account_program_checkout_setting_checkout_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1670
|
+
command = make_simple_command(:delete, 'accounts/v1beta/{+name}', options)
|
1671
|
+
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Empty::Representation
|
1672
|
+
command.response_class = Google::Apis::MerchantapiAccountsV1beta::Empty
|
1673
|
+
command.params['name'] = name unless name.nil?
|
1674
|
+
command.query['fields'] = fields unless fields.nil?
|
1675
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1676
|
+
execute_or_queue_command(command, &block)
|
1677
|
+
end
|
1678
|
+
|
1679
|
+
# Gets `CheckoutSettings` for the given merchant. This includes information
|
1680
|
+
# about review state, enrollment state and URL settings.
|
1681
|
+
# @param [String] name
|
1682
|
+
# Required. The name/identifier of the merchant account. Format: `accounts/`
|
1683
|
+
# account`/programs/`program`/checkoutSettings`
|
1684
|
+
# @param [String] fields
|
1685
|
+
# Selector specifying which fields to include in a partial response.
|
1686
|
+
# @param [String] quota_user
|
1687
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1688
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1689
|
+
# @param [Google::Apis::RequestOptions] options
|
1690
|
+
# Request-specific options
|
1691
|
+
#
|
1692
|
+
# @yield [result, err] Result & error if block supplied
|
1693
|
+
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] parsed result object
|
1694
|
+
# @yieldparam err [StandardError] error object if request failed
|
1695
|
+
#
|
1696
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings]
|
1697
|
+
#
|
1698
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1699
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1700
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1701
|
+
def get_account_program_checkout_setting_checkout_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1702
|
+
command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
|
1703
|
+
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
|
1704
|
+
command.response_class = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings
|
1705
|
+
command.params['name'] = name unless name.nil?
|
1706
|
+
command.query['fields'] = fields unless fields.nil?
|
1707
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1708
|
+
execute_or_queue_command(command, &block)
|
1709
|
+
end
|
1710
|
+
|
1711
|
+
# Updates `CheckoutSettings` for the given merchant.
|
1712
|
+
# @param [String] name
|
1713
|
+
# Identifier. The resource name of the program configuration settings. Format: `
|
1714
|
+
# accounts/`account`/programs/`program`/checkoutSettings`
|
1715
|
+
# @param [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] checkout_settings_object
|
1716
|
+
# @param [String] update_mask
|
1717
|
+
# Required. List of fields being updated. The following fields are supported (in
|
1718
|
+
# both `snake_case` and `lowerCamelCase`): - `eligible_destinations` - `
|
1719
|
+
# uri_settings`
|
1720
|
+
# @param [String] fields
|
1721
|
+
# Selector specifying which fields to include in a partial response.
|
1722
|
+
# @param [String] quota_user
|
1723
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1724
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1725
|
+
# @param [Google::Apis::RequestOptions] options
|
1726
|
+
# Request-specific options
|
1727
|
+
#
|
1728
|
+
# @yield [result, err] Result & error if block supplied
|
1729
|
+
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] parsed result object
|
1730
|
+
# @yieldparam err [StandardError] error object if request failed
|
1731
|
+
#
|
1732
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings]
|
1733
|
+
#
|
1734
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1735
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1736
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1737
|
+
def update_account_program_checkout_setting_checkout_settings(name, checkout_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1738
|
+
command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
|
1739
|
+
command.request_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
|
1740
|
+
command.request_object = checkout_settings_object
|
1741
|
+
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
|
1742
|
+
command.response_class = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings
|
1743
|
+
command.params['name'] = name unless name.nil?
|
1744
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1745
|
+
command.query['fields'] = fields unless fields.nil?
|
1746
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1747
|
+
execute_or_queue_command(command, &block)
|
1748
|
+
end
|
1749
|
+
|
1513
1750
|
# Creates a region definition in your Merchant Center account. Executing this
|
1514
1751
|
# method requires admin access.
|
1515
1752
|
# @param [String] parent
|
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.
|
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.
|
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:
|