google-apis-merchantapi_accounts_v1beta 0.10.0 → 0.11.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 +4 -0
- data/lib/google/apis/merchantapi_accounts_v1beta/classes.rb +31 -0
- data/lib/google/apis/merchantapi_accounts_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/merchantapi_accounts_v1beta/representations.rb +14 -0
- data/lib/google/apis/merchantapi_accounts_v1beta/service.rb +11 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 798b3a1c29d0436e564e9707162d2a577360b89da7979bebaf902c6c0898a38c
|
4
|
+
data.tar.gz: 738039d72353471f73c2532e3a991c60bf4742232e0bc9fcc64aa8720e5aedc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51423924797dba90c9a887128d11708d00c1790ffafe8574e0b864f7239b8fce2ad8b793179445f8ee9d3d3a885c071c941e419f48ba5fb143024b891e4476df
|
7
|
+
data.tar.gz: 7adc8c929dfe8ef4a4f5653c66a7e7fb44e9d191bb3b9b69a4e01053c649322585cda1d71548e224bc4f0b6ed3d842a3679cafb4616e360758b53d92b93f185e
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,37 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module MerchantapiAccountsV1beta
|
24
24
|
|
25
|
+
# Response message for the `AcceptTermsOfService` method.
|
26
|
+
class AcceptTermsOfServiceResponse
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# This resource represents the agreement state for a given account and terms of
|
30
|
+
# service kind. The state is as follows: * If the merchant has accepted a terms
|
31
|
+
# of service, `accepted` will be populated, otherwise it will be empty * If the
|
32
|
+
# merchant must sign a terms of service, `required` will be populated, otherwise
|
33
|
+
# it will be empty. Note that both `required` and `accepted` can be present. In
|
34
|
+
# this case the `accepted` terms of services will have an expiration date set in
|
35
|
+
# the `valid_until` field. The `required` terms of services need to be accepted
|
36
|
+
# before `valid_until` in order for the account to continue having a valid
|
37
|
+
# agreement. When accepting new terms of services we expect 3Ps to display the
|
38
|
+
# text associated with the given terms of service agreement (the url to the file
|
39
|
+
# containing the text is added in the Required message below as `tos_file_uri`.
|
40
|
+
# The actual acceptance of the terms of service is done by calling accept on the
|
41
|
+
# `TermsOfService` resource.
|
42
|
+
# Corresponds to the JSON property `termsOfServiceAgreementState`
|
43
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState]
|
44
|
+
attr_accessor :terms_of_service_agreement_state
|
45
|
+
|
46
|
+
def initialize(**args)
|
47
|
+
update!(**args)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Update properties of this object
|
51
|
+
def update!(**args)
|
52
|
+
@terms_of_service_agreement_state = args[:terms_of_service_agreement_state] if args.key?(:terms_of_service_agreement_state)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
25
56
|
# Describes the accepted terms of service.
|
26
57
|
class Accepted
|
27
58
|
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.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250422"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module MerchantapiAccountsV1beta
|
24
24
|
|
25
|
+
class AcceptTermsOfServiceResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class Accepted
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -538,6 +544,14 @@ module Google
|
|
538
544
|
include Google::Apis::Core::JsonObjectSupport
|
539
545
|
end
|
540
546
|
|
547
|
+
class AcceptTermsOfServiceResponse
|
548
|
+
# @private
|
549
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
550
|
+
property :terms_of_service_agreement_state, as: 'termsOfServiceAgreementState', class: Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState, decorator: Google::Apis::MerchantapiAccountsV1beta::TermsOfServiceAgreementState::Representation
|
551
|
+
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
541
555
|
class Accepted
|
542
556
|
# @private
|
543
557
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -210,7 +210,7 @@ module Google
|
|
210
210
|
# the same results as calling `ListsAccounts` with the following filter: `
|
211
211
|
# relationship(providerId=`parent` AND service(type="ACCOUNT_AGGREGATION"))`
|
212
212
|
# @param [String] provider
|
213
|
-
# Required. The aggregation service provider. Format: `
|
213
|
+
# Required. The aggregation service provider. Format: `accounts/`providerId``
|
214
214
|
# @param [Fixnum] page_size
|
215
215
|
# Optional. The maximum number of accounts to return. The service may return
|
216
216
|
# fewer than this value. If unspecified, at most 250 accounts are returned. The
|
@@ -791,7 +791,11 @@ module Google
|
|
791
791
|
execute_or_queue_command(command, &block)
|
792
792
|
end
|
793
793
|
|
794
|
-
# Lists all account issues of a Merchant Center account.
|
794
|
+
# Lists all account issues of a Merchant Center account. When called on a multi-
|
795
|
+
# client account, this method only returns issues belonging to that account, not
|
796
|
+
# its sub-accounts. To retrieve issues for sub-accounts, you must first call the
|
797
|
+
# accounts.listSubaccounts method to obtain a list of sub-accounts, and then
|
798
|
+
# call `accounts.issues.list` for each sub-account individually.
|
795
799
|
# @param [String] parent
|
796
800
|
# Required. The parent, which owns this collection of issues. Format: `accounts/`
|
797
801
|
# account``
|
@@ -1575,18 +1579,18 @@ module Google
|
|
1575
1579
|
# Request-specific options
|
1576
1580
|
#
|
1577
1581
|
# @yield [result, err] Result & error if block supplied
|
1578
|
-
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::
|
1582
|
+
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfServiceResponse] parsed result object
|
1579
1583
|
# @yieldparam err [StandardError] error object if request failed
|
1580
1584
|
#
|
1581
|
-
# @return [Google::Apis::MerchantapiAccountsV1beta::
|
1585
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfServiceResponse]
|
1582
1586
|
#
|
1583
1587
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1584
1588
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1585
1589
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1586
1590
|
def accept_terms_of_service(name, account: nil, region_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1587
|
-
command = make_simple_command(:
|
1588
|
-
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::
|
1589
|
-
command.response_class = Google::Apis::MerchantapiAccountsV1beta::
|
1591
|
+
command = make_simple_command(:post, 'accounts/v1beta/{+name}:accept', options)
|
1592
|
+
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfServiceResponse::Representation
|
1593
|
+
command.response_class = Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfServiceResponse
|
1590
1594
|
command.params['name'] = name unless name.nil?
|
1591
1595
|
command.query['account'] = account unless account.nil?
|
1592
1596
|
command.query['regionCode'] = region_code unless region_code.nil?
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-04-
|
10
|
+
date: 2025-04-27 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -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.11.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:
|