Debian Codegraph @

docs/dyn/merchantapi_accounts_v1.termsOfService.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="merchantapi_accounts_v1.html">Merchant API</a> . <a href="merchantapi_accounts_v1.termsOfService.html">termsOfService</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#accept">accept(name, account=None, regionCode=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Accepts a `TermsOfService`. Executing this method requires admin access.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Retrieves the `TermsOfService` associated with the provided version.</p>
86 <p class="toc_element">
87 <code><a href="#retrieveLatest">retrieveLatest(kind=None, regionCode=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Retrieves the latest version of the `TermsOfService` for a given `kind` and `region_code`.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="accept">accept(name, account=None, regionCode=None, x__xgafv=None)</code>
92 <pre>Accepts a `TermsOfService`. Executing this method requires admin access.
93
94 Args:
95 name: string, Required. The resource name of the terms of service version. Format: `termsOfService/{version}` (required)
96 account: string, Required. The account for which to accept the ToS. Format: `accounts/{account}`
97 regionCode: string, Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when the ToS applies specifically to that country or 001 when it applies globally.
98 x__xgafv: string, V1 error format.
99 Allowed values
100 1 - v1 error format
101 2 - v2 error format
102
103 Returns:
104 An object of the form:
105
106 { # Response message for the `AcceptTermsOfService` method.
107 &quot;termsOfServiceAgreementState&quot;: { # This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the business has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the business must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect third-party providers to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`). The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource. `valid_until` field. # The agreement state after accepting the ToS.
108 &quot;accepted&quot;: { # Describes the [accepted terms of service](https://developers.google.com/merchant/api/guides/accounts/create-and-configure#accept_the_merchant_center_terms_of_service). # Optional. The accepted terms of service of this kind and for the associated region_code
109 &quot;acceptedBy&quot;: &quot;A String&quot;, # Required. The account where the acceptance was recorded. This can be the account itself or, in the case of subaccounts, the advanced account.
110 &quot;termsOfService&quot;: &quot;A String&quot;, # Required. The accepted termsOfService.
111 &quot;validUntil&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Optional. When set, it states that the accepted `TermsOfService` is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required `TermsOfService` is found in the `Required` message.
112 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
113 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
114 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
115 },
116 },
117 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the terms of service version. Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}` The identifier format is: `{TermsOfServiceKind}-{country}` For example, an identifier could be: `MERCHANT_CENTER-EU` or `MERCHANT_CENTER-US`.
118 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Region code as defined by https://cldr.unicode.org/. This is the country the current state applies to.
119 &quot;required&quot;: { # Describes the terms of service which are required to be accepted. # Optional. The required terms of service
120 &quot;termsOfService&quot;: &quot;A String&quot;, # Required. The `TermsOfService` that need to be accepted.
121 &quot;tosFileUri&quot;: &quot;A String&quot;, # Required. Full URL to the terms of service file. This field is the same as `TermsOfService.file_uri`, it is added here for convenience only.
122 },
123 &quot;termsOfServiceKind&quot;: &quot;A String&quot;, # Required. Terms of Service kind associated with the particular version.
124 },
125 }</pre>
126 </div>
127
128 <div class="method">
129 <code class="details" id="close">close()</code>
130 <pre>Close httplib2 connections.</pre>
131 </div>
132
133 <div class="method">
134 <code class="details" id="get">get(name, x__xgafv=None)</code>
135 <pre>Retrieves the `TermsOfService` associated with the provided version.
136
137 Args:
138 name: string, Required. The resource name of the terms of service version. Format: `termsOfService/{version}` (required)
139 x__xgafv: string, V1 error format.
140 Allowed values
141 1 - v1 error format
142 2 - v2 error format
143
144 Returns:
145 An object of the form:
146
147 { # The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services. For more information, see [Terms of Service](https://support.google.com/merchants/answer/160173). This message is important for the onboarding process, ensuring that merchants agree to the necessary legal agreements for using the service. Merchants can retrieve the latest terms of service for a given `kind` and `region` through `RetrieveLatestTermsOfService`, and accept them as required through `AcceptTermsOfService`.
148 &quot;external&quot;: True or False, # Whether this terms of service version is external. External terms of service versions can only be agreed through external processes and not directly by the merchant through UI or API.
149 &quot;fileUri&quot;: &quot;A String&quot;, # URI for terms of service file that needs to be displayed to signing users.
150 &quot;kind&quot;: &quot;A String&quot;, # The Kind this terms of service version applies to.
151 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the terms of service version. Format: `termsOfService/{version}`
152 &quot;regionCode&quot;: &quot;A String&quot;, # Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country where the ToS applies specifically to that country or `001` when the same `TermsOfService` can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation).
153 }</pre>
154 </div>
155
156 <div class="method">
157 <code class="details" id="retrieveLatest">retrieveLatest(kind=None, regionCode=None, x__xgafv=None)</code>
158 <pre>Retrieves the latest version of the `TermsOfService` for a given `kind` and `region_code`.
159
160 Args:
161 kind: string, Required. The Kind this terms of service version applies to.
162 Allowed values
163 TERMS_OF_SERVICE_KIND_UNSPECIFIED - Default value. This value is unused.
164 MERCHANT_CENTER - Terms of service for the Merchant Center application.
165 regionCode: string, Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when the ToS applies specifically to that country or 001 when it applies globally.
166 x__xgafv: string, V1 error format.
167 Allowed values
168 1 - v1 error format
169 2 - v2 error format
170
171 Returns:
172 An object of the form:
173
174 { # The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services. For more information, see [Terms of Service](https://support.google.com/merchants/answer/160173). This message is important for the onboarding process, ensuring that merchants agree to the necessary legal agreements for using the service. Merchants can retrieve the latest terms of service for a given `kind` and `region` through `RetrieveLatestTermsOfService`, and accept them as required through `AcceptTermsOfService`.
175 &quot;external&quot;: True or False, # Whether this terms of service version is external. External terms of service versions can only be agreed through external processes and not directly by the merchant through UI or API.
176 &quot;fileUri&quot;: &quot;A String&quot;, # URI for terms of service file that needs to be displayed to signing users.
177 &quot;kind&quot;: &quot;A String&quot;, # The Kind this terms of service version applies to.
178 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the terms of service version. Format: `termsOfService/{version}`
179 &quot;regionCode&quot;: &quot;A String&quot;, # Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country where the ToS applies specifically to that country or `001` when the same `TermsOfService` can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation).
180 }</pre>
181 </div>
182
183 </body></html>