@maxim_mazurok/gapi.client.merchantapi-accounts_v1beta 0.0.20240611
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.
- package/index.d.ts +2493 -0
- package/package.json +20 -0
- package/readme.md +151 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,2493 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Merchant API accounts_v1beta 0.0 */
|
|
2
|
+
// Project: https://developers.devsite.corp.google.com/merchant/api
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
|
|
8
|
+
// IMPORTANT
|
|
9
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
|
+
// Generated from: https://merchantapi.googleapis.com/$discovery/rest?version=accounts_v1beta
|
|
12
|
+
// Revision: 20240611
|
|
13
|
+
|
|
14
|
+
/// <reference types="gapi.client" />
|
|
15
|
+
|
|
16
|
+
declare namespace gapi.client {
|
|
17
|
+
/** Load Merchant API accounts_v1beta */
|
|
18
|
+
function load(
|
|
19
|
+
urlOrObject: 'https://merchantapi.googleapis.com/$discovery/rest?version=accounts_v1beta'
|
|
20
|
+
): Promise<void>;
|
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
22
|
+
function load(name: 'merchantapi', version: 'accounts_v1beta'): Promise<void>;
|
|
23
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
24
|
+
function load(
|
|
25
|
+
name: 'merchantapi',
|
|
26
|
+
version: 'accounts_v1beta',
|
|
27
|
+
callback: () => any
|
|
28
|
+
): void;
|
|
29
|
+
|
|
30
|
+
namespace merchantapi {
|
|
31
|
+
interface Accepted {
|
|
32
|
+
/** The account where the acceptance was recorded. This can be the account itself or, in the case of subaccounts, the MCA account. */
|
|
33
|
+
acceptedBy?: string;
|
|
34
|
+
/** The accepted [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService). */
|
|
35
|
+
termsOfService?: string;
|
|
36
|
+
/** When set, it states that the accepted [TermsOfService](google.shopping.merchant.accounts.v1main.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](google.shopping.merchant.accounts.v1main.TermsOfService) is found in the [Required](Required) message. */
|
|
37
|
+
validUntil?: Date;
|
|
38
|
+
}
|
|
39
|
+
interface AcceptTermsOfService {
|
|
40
|
+
/** Required. The resource name of the terms of service version. */
|
|
41
|
+
name?: string;
|
|
42
|
+
/** 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. */
|
|
43
|
+
regionCode?: string;
|
|
44
|
+
}
|
|
45
|
+
interface Account {
|
|
46
|
+
/** Output only. The ID of the account. */
|
|
47
|
+
accountId?: string;
|
|
48
|
+
/** Required. A human-readable name of the account. See [store name](https://support.google.com/merchants/answer/160556) and [business name](https://support.google.com/merchants/answer/12159159) for more information. */
|
|
49
|
+
accountName?: string;
|
|
50
|
+
/** Whether this account contains adult content. */
|
|
51
|
+
adultContent?: boolean;
|
|
52
|
+
/** Required. The account's [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`. */
|
|
53
|
+
languageCode?: string;
|
|
54
|
+
/** Identifier. The resource name of the account. Format: `accounts/{account}` */
|
|
55
|
+
name?: string;
|
|
56
|
+
/** Output only. Whether this is a test account. */
|
|
57
|
+
testAccount?: boolean;
|
|
58
|
+
/** Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is empty. */
|
|
59
|
+
timeZone?: TimeZone;
|
|
60
|
+
}
|
|
61
|
+
interface AccountIssue {
|
|
62
|
+
/** Further localized details about the issue. */
|
|
63
|
+
detail?: string;
|
|
64
|
+
/** Link to Merchant Center Help Center providing further information about the issue and how to fix it. */
|
|
65
|
+
documentationUri?: string;
|
|
66
|
+
/** The impact this issue has on various destinations. */
|
|
67
|
+
impactedDestinations?: ImpactedDestination[];
|
|
68
|
+
/** Identifier. The resource name of the account issue. Format: `accounts/{account}/issues/{id}` */
|
|
69
|
+
name?: string;
|
|
70
|
+
/** The overall severity of the issue. */
|
|
71
|
+
severity?: string;
|
|
72
|
+
/** The localized title of the issue. */
|
|
73
|
+
title?: string;
|
|
74
|
+
}
|
|
75
|
+
interface AccountTax {
|
|
76
|
+
/** Output only. The ID of the account to which these account tax settings belong. */
|
|
77
|
+
account?: string;
|
|
78
|
+
/** Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}" */
|
|
79
|
+
name?: string;
|
|
80
|
+
/** Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule." */
|
|
81
|
+
taxRules?: TaxRule[];
|
|
82
|
+
}
|
|
83
|
+
interface AddAccountService {
|
|
84
|
+
/** The provider is an aggregator for the account. */
|
|
85
|
+
accountAggregation?: any;
|
|
86
|
+
/** Optional. The provider of the service. Format: `accounts/{account}` */
|
|
87
|
+
provider?: string;
|
|
88
|
+
}
|
|
89
|
+
interface Address {
|
|
90
|
+
/** Required. Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). */
|
|
91
|
+
administrativeArea?: string;
|
|
92
|
+
/** Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs). */
|
|
93
|
+
city?: string;
|
|
94
|
+
/** Required. Postal code or ZIP (For example "94043"). */
|
|
95
|
+
postalCode?: string;
|
|
96
|
+
/** Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (For example "US"). */
|
|
97
|
+
regionCode?: string;
|
|
98
|
+
/** Street-level part of the address. For example: `111w 31st Street`. */
|
|
99
|
+
streetAddress?: string;
|
|
100
|
+
}
|
|
101
|
+
interface BusinessDayConfig {
|
|
102
|
+
/** Required. Regular business days. May not be empty. */
|
|
103
|
+
businessDays?: string[];
|
|
104
|
+
}
|
|
105
|
+
interface BusinessIdentity {
|
|
106
|
+
/** Optional. Specifies whether the business identifies itself as being black-owned. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. */
|
|
107
|
+
blackOwned?: IdentityAttribute;
|
|
108
|
+
/** Optional. Specifies whether the business identifies itself as being latino-owned. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. */
|
|
109
|
+
latinoOwned?: IdentityAttribute;
|
|
110
|
+
/** Identifier. The resource name of the business identity. Format: `accounts/{account}/businessIdentity` */
|
|
111
|
+
name?: string;
|
|
112
|
+
/** Optional. Whether the identity attributes may be used for promotions. */
|
|
113
|
+
promotionsConsent?: string;
|
|
114
|
+
/** Optional. Specifies whether the business identifies itself as a small business. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces. */
|
|
115
|
+
smallBusiness?: IdentityAttribute;
|
|
116
|
+
/** Optional. Specifies whether the business identifies itself as being veteran-owned. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. */
|
|
117
|
+
veteranOwned?: IdentityAttribute;
|
|
118
|
+
/** Optional. Specifies whether the business identifies itself as being women-owned. This optional field will only be available for merchants with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. */
|
|
119
|
+
womenOwned?: IdentityAttribute;
|
|
120
|
+
}
|
|
121
|
+
interface BusinessInfo {
|
|
122
|
+
/** Optional. The address of the business. */
|
|
123
|
+
address?: PostalAddress;
|
|
124
|
+
/** Optional. The customer service of the business. */
|
|
125
|
+
customerService?: CustomerService;
|
|
126
|
+
/** Identifier. The resource name of the business info. Format: `accounts/{account}/businessInfo` */
|
|
127
|
+
name?: string;
|
|
128
|
+
/** Output only. The phone number of the business. */
|
|
129
|
+
phone?: PhoneNumber;
|
|
130
|
+
/** Output only. The phone verification state of the business. */
|
|
131
|
+
phoneVerificationState?: string;
|
|
132
|
+
}
|
|
133
|
+
interface CarrierRate {
|
|
134
|
+
/** Required. Carrier service, such as `"UPS"` or `"Fedex"`. */
|
|
135
|
+
carrier?: string;
|
|
136
|
+
/** Required. Carrier service, such as `"ground"` or `"2 days"`. */
|
|
137
|
+
carrierService?: string;
|
|
138
|
+
/** Optional. Additive shipping rate modifier. Can be negative. For example `{ "amount_micros": 1, "currency_code" : "USD" }` adds $1 to the rate, `{ "amount_micros": -3, "currency_code" : "USD" }` removes $3 from the rate. */
|
|
139
|
+
flatAdjustment?: Price;
|
|
140
|
+
/** Required. Name of the carrier rate. Must be unique per rate group. */
|
|
141
|
+
name?: string;
|
|
142
|
+
/** Required. Shipping origin for this carrier rate. */
|
|
143
|
+
originPostalCode?: string;
|
|
144
|
+
/** Optional. Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `"5.4"` increases the rate by 5.4%, `"-3"` decreases the rate by 3%. */
|
|
145
|
+
percentageAdjustment?: string;
|
|
146
|
+
}
|
|
147
|
+
interface ClaimHomepageRequest {}
|
|
148
|
+
interface CreateAndConfigureAccountRequest {
|
|
149
|
+
/** Optional. The Terms of Service (ToS) to be accepted immediately upon account creation. */
|
|
150
|
+
acceptTermsOfService?: AcceptTermsOfService;
|
|
151
|
+
/** Required. The account to be created. */
|
|
152
|
+
account?: Account;
|
|
153
|
+
/** Optional. If specified, an account service between the account to be created and the provider account is initialized as part of the creation. */
|
|
154
|
+
service?: AddAccountService[];
|
|
155
|
+
/** Optional. Users to be added to the account. */
|
|
156
|
+
users?: CreateUserRequest[];
|
|
157
|
+
}
|
|
158
|
+
interface CreateUserRequest {
|
|
159
|
+
/** Required. The resource name of the account for which a user will be created. Format: `accounts/{account}` */
|
|
160
|
+
parent?: string;
|
|
161
|
+
/** Required. The user to create. */
|
|
162
|
+
user?: User;
|
|
163
|
+
/** Required. The email address of the user (for example, `john.doe@gmail.com`). */
|
|
164
|
+
userId?: string;
|
|
165
|
+
}
|
|
166
|
+
interface CustomerService {
|
|
167
|
+
/** Optional. The email address where customer service may be reached. */
|
|
168
|
+
email?: string;
|
|
169
|
+
/** Optional. The phone number where customer service may be called. */
|
|
170
|
+
phone?: PhoneNumber;
|
|
171
|
+
/** Optional. The URI where customer service may be found. */
|
|
172
|
+
uri?: string;
|
|
173
|
+
}
|
|
174
|
+
interface CutoffConfig {
|
|
175
|
+
/** Time that local delivery ends for the day. */
|
|
176
|
+
localCutoffTime?: LocalCutoffTime;
|
|
177
|
+
/** Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to `true` results in the calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the same example, setting this field to `false` results in the calculated shipping time being one day. This is only for local delivery. */
|
|
178
|
+
noDeliveryPostCutoff?: boolean;
|
|
179
|
+
/** Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with `local_cutoff_time`. */
|
|
180
|
+
storeCloseOffsetHours?: string;
|
|
181
|
+
}
|
|
182
|
+
interface CutoffTime {
|
|
183
|
+
/** Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day. */
|
|
184
|
+
hour?: number;
|
|
185
|
+
/** Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day. */
|
|
186
|
+
minute?: number;
|
|
187
|
+
/** Required. [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids) For example "Europe/Zurich". */
|
|
188
|
+
timeZone?: string;
|
|
189
|
+
}
|
|
190
|
+
interface Date {
|
|
191
|
+
/** 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't significant. */
|
|
192
|
+
day?: number;
|
|
193
|
+
/** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
|
|
194
|
+
month?: number;
|
|
195
|
+
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
|
|
196
|
+
year?: number;
|
|
197
|
+
}
|
|
198
|
+
interface DeliveryTime {
|
|
199
|
+
/** Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. */
|
|
200
|
+
cutoffTime?: CutoffTime;
|
|
201
|
+
/** The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. */
|
|
202
|
+
handlingBusinessDayConfig?: BusinessDayConfig;
|
|
203
|
+
/** Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `min_handling_days`. */
|
|
204
|
+
maxHandlingDays?: number;
|
|
205
|
+
/** Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to `min_transit_days`. */
|
|
206
|
+
maxTransitDays?: number;
|
|
207
|
+
/** Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. */
|
|
208
|
+
minHandlingDays?: number;
|
|
209
|
+
/** Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `min_transit_days`, `max_transit_days` or `transit_time_table` must be set, but not both. */
|
|
210
|
+
minTransitDays?: number;
|
|
211
|
+
/** The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. */
|
|
212
|
+
transitBusinessDayConfig?: BusinessDayConfig;
|
|
213
|
+
/** Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both. */
|
|
214
|
+
transitTimeTable?: TransitTable;
|
|
215
|
+
/** Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set. */
|
|
216
|
+
warehouseBasedDeliveryTimes?: WarehouseBasedDeliveryTime[];
|
|
217
|
+
}
|
|
218
|
+
interface DisableProgramRequest {}
|
|
219
|
+
interface Distance {
|
|
220
|
+
/** Unit can differ based on country, it is parameterized to include miles and kilometers. */
|
|
221
|
+
unit?: string;
|
|
222
|
+
/** Integer value of distance. */
|
|
223
|
+
value?: string;
|
|
224
|
+
}
|
|
225
|
+
interface EmailPreferences {
|
|
226
|
+
/** Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user. */
|
|
227
|
+
name?: string;
|
|
228
|
+
/** Optional. Updates on new features, tips and best practices. */
|
|
229
|
+
newsAndTips?: string;
|
|
230
|
+
}
|
|
231
|
+
interface Empty {}
|
|
232
|
+
interface EnableProgramRequest {}
|
|
233
|
+
interface GeoTargetArea {
|
|
234
|
+
/** Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (for example, state). */
|
|
235
|
+
geotargetCriteriaIds?: string[];
|
|
236
|
+
}
|
|
237
|
+
interface Headers {
|
|
238
|
+
/** Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. */
|
|
239
|
+
locations?: LocationIdSet[];
|
|
240
|
+
/** Required. A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set. */
|
|
241
|
+
numberOfItems?: string[];
|
|
242
|
+
/** Required. A list of postal group names. The last value can be `"all other locations"`. Example: `["zone 1", "zone 2", "all other locations"]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set. */
|
|
243
|
+
postalCodeGroupNames?: string[];
|
|
244
|
+
/** Required. A list of inclusive order price upper bounds. The last price's value can be infinity by setting price amount_micros = -1. For example `[{"amount_micros": 10000000, "currency_code": "USD"}, {"amount_micros": 500000000, "currency_code": "USD"}, {"amount_micros": -1, "currency_code": "USD"}]` represents the headers "<= $10", "<= $500", and "> $500". All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set. */
|
|
245
|
+
prices?: Price[];
|
|
246
|
+
/** Required. A list of inclusive order weight upper bounds. The last weight's value can be infinity by setting price amount_micros = -1. For example `[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000, "unit": "kg"}, {"amount_micros": -1, "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set. */
|
|
247
|
+
weights?: Weight[];
|
|
248
|
+
}
|
|
249
|
+
interface Homepage {
|
|
250
|
+
/** Output only. Whether the homepage is claimed. See https://support.google.com/merchants/answer/176793. */
|
|
251
|
+
claimed?: boolean;
|
|
252
|
+
/** Identifier. The resource name of the store's homepage. Format: `accounts/{account}/homepage` */
|
|
253
|
+
name?: string;
|
|
254
|
+
/** Required. The URI (typically a URL) of the store's homepage. */
|
|
255
|
+
uri?: string;
|
|
256
|
+
}
|
|
257
|
+
interface IdentityAttribute {
|
|
258
|
+
/** Required. The declaration of identity for this attribute. */
|
|
259
|
+
identityDeclaration?: string;
|
|
260
|
+
}
|
|
261
|
+
interface Impact {
|
|
262
|
+
/** The [CLDR region code](https://cldr.unicode.org/) where this issue applies. */
|
|
263
|
+
regionCode?: string;
|
|
264
|
+
/** The severity of the issue on the destination and region. */
|
|
265
|
+
severity?: string;
|
|
266
|
+
}
|
|
267
|
+
interface ImpactedDestination {
|
|
268
|
+
/** The (negative) impact for various regions on the given destination. */
|
|
269
|
+
impacts?: Impact[];
|
|
270
|
+
/** The impacted reporting context. */
|
|
271
|
+
reportingContext?: string;
|
|
272
|
+
}
|
|
273
|
+
interface Interval {
|
|
274
|
+
/** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. */
|
|
275
|
+
endTime?: string;
|
|
276
|
+
/** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. */
|
|
277
|
+
startTime?: string;
|
|
278
|
+
}
|
|
279
|
+
interface ListAccountIssuesResponse {
|
|
280
|
+
/** The issues from the specified account. */
|
|
281
|
+
accountIssues?: AccountIssue[];
|
|
282
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
283
|
+
nextPageToken?: string;
|
|
284
|
+
}
|
|
285
|
+
interface ListAccountsResponse {
|
|
286
|
+
/** The accounts matching the `ListAccountsRequest`. */
|
|
287
|
+
accounts?: Account[];
|
|
288
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
289
|
+
nextPageToken?: string;
|
|
290
|
+
}
|
|
291
|
+
interface ListAccountTaxResponse {
|
|
292
|
+
/** Page of accounttax settings */
|
|
293
|
+
accountTaxes?: AccountTax[];
|
|
294
|
+
/** The token for the retrieval of the next page of account tax settings. */
|
|
295
|
+
nextPageToken?: string;
|
|
296
|
+
}
|
|
297
|
+
interface ListOnlineReturnPoliciesResponse {
|
|
298
|
+
/** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
299
|
+
nextPageToken?: string;
|
|
300
|
+
/** The retrieved return policies. */
|
|
301
|
+
onlineReturnPolicies?: OnlineReturnPolicy[];
|
|
302
|
+
}
|
|
303
|
+
interface ListProgramsResponse {
|
|
304
|
+
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
305
|
+
nextPageToken?: string;
|
|
306
|
+
/** The programs for the given account. */
|
|
307
|
+
programs?: Program[];
|
|
308
|
+
}
|
|
309
|
+
interface ListRegionsResponse {
|
|
310
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
311
|
+
nextPageToken?: string;
|
|
312
|
+
/** The regions from the specified merchant. */
|
|
313
|
+
regions?: Region[];
|
|
314
|
+
}
|
|
315
|
+
interface ListSubAccountsResponse {
|
|
316
|
+
/** The accounts for which the given parent account is an aggregator. */
|
|
317
|
+
accounts?: Account[];
|
|
318
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
319
|
+
nextPageToken?: string;
|
|
320
|
+
}
|
|
321
|
+
interface ListUsersResponse {
|
|
322
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
323
|
+
nextPageToken?: string;
|
|
324
|
+
/** The users from the specified account. */
|
|
325
|
+
users?: User[];
|
|
326
|
+
}
|
|
327
|
+
interface LocalCutoffTime {
|
|
328
|
+
/** Hour local delivery orders must be placed by to process the same day. */
|
|
329
|
+
hour?: string;
|
|
330
|
+
/** Minute local delivery orders must be placed by to process the same day. */
|
|
331
|
+
minute?: string;
|
|
332
|
+
}
|
|
333
|
+
interface LocationIdSet {
|
|
334
|
+
/** Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state). */
|
|
335
|
+
locationIds?: string[];
|
|
336
|
+
}
|
|
337
|
+
interface LoyaltyProgram {
|
|
338
|
+
/** Optional. Loyalty program tier of this shipping service. */
|
|
339
|
+
loyaltyProgramTiers?: LoyaltyProgramTiers[];
|
|
340
|
+
/** This is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers. */
|
|
341
|
+
programLabel?: string;
|
|
342
|
+
}
|
|
343
|
+
interface LoyaltyProgramTiers {
|
|
344
|
+
/** The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier. */
|
|
345
|
+
tierLabel?: string;
|
|
346
|
+
}
|
|
347
|
+
interface MinimumOrderValueTable {
|
|
348
|
+
/** Required. A list of store code sets sharing the same minimum order value (MOV). At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency. */
|
|
349
|
+
storeCodeSetWithMovs?: StoreCodeSetWithMov[];
|
|
350
|
+
}
|
|
351
|
+
interface OnlineReturnPolicy {
|
|
352
|
+
/** This field specifies if merchant only accepts defective products for returns, and this field is required. */
|
|
353
|
+
acceptDefectiveOnly?: boolean;
|
|
354
|
+
/** This field specifies if merchant allows customers to exchange products, this field is required. */
|
|
355
|
+
acceptExchange?: boolean;
|
|
356
|
+
/** The countries of sale where the return policy applies. The values must be a valid 2 letter ISO 3166 code. */
|
|
357
|
+
countries?: string[];
|
|
358
|
+
/** The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'. */
|
|
359
|
+
itemConditions?: string[];
|
|
360
|
+
/** This field represents the unique user-defined label of the return policy. It is important to note that the same label cannot be used in different return policies for the same country. Unless a product specifies a specific label attribute, policies will be automatically labeled as 'default'. To assign a custom return policy to certain product groups, follow the instructions provided in the [Return policy label] (https://support.google.com/merchants/answer/9445425). The label can contain up to 50 characters. */
|
|
361
|
+
label?: string;
|
|
362
|
+
/** Identifier. The name of the `OnlineReturnPolicy` resource. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}` */
|
|
363
|
+
name?: string;
|
|
364
|
+
/** The return policy. */
|
|
365
|
+
policy?: Policy;
|
|
366
|
+
/** The field specifies the number of days it takes for merchants to process refunds, field is optional. */
|
|
367
|
+
processRefundDays?: number;
|
|
368
|
+
/** The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set. */
|
|
369
|
+
restockingFee?: RestockingFee;
|
|
370
|
+
/** The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns. */
|
|
371
|
+
returnMethods?: string[];
|
|
372
|
+
/** Output only. Return policy ID generated by Google. */
|
|
373
|
+
returnPolicyId?: string;
|
|
374
|
+
/** The return policy uri. This can used by Google to do a sanity check for the policy. It must be a valid URL. */
|
|
375
|
+
returnPolicyUri?: string;
|
|
376
|
+
/** The return shipping fee. Should be set only when customer need to download and print the return label. */
|
|
377
|
+
returnShippingFee?: ReturnShippingFee;
|
|
378
|
+
}
|
|
379
|
+
interface PhoneNumber {
|
|
380
|
+
/** The phone number, represented as a leading plus sign ('+'), followed by a phone number that uses a relaxed ITU E.164 format consisting of the country calling code (1 to 3 digits) and the subscriber number, with no additional spaces or formatting, e.g.: - correct: "+15552220123" - incorrect: "+1 (555) 222-01234 x123". The ITU E.164 format limits the latter to 12 digits, but in practice not all countries respect that, so we relax that restriction here. National-only numbers are not allowed. References: - https://www.itu.int/rec/T-REC-E.164-201011-I - https://en.wikipedia.org/wiki/E.164. - https://en.wikipedia.org/wiki/List_of_country_calling_codes */
|
|
381
|
+
e164Number?: string;
|
|
382
|
+
/** The phone number's extension. The extension is not standardized in ITU recommendations, except for being defined as a series of numbers with a maximum length of 40 digits. Other than digits, some other dialing characters such as ',' (indicating a wait) or '#' may be stored here. Note that no regions currently use extensions with short codes, so this field is normally only set in conjunction with an E.164 number. It is held separately from the E.164 number to allow for short code extensions in the future. */
|
|
383
|
+
extension?: string;
|
|
384
|
+
/** A short code. Reference(s): - https://en.wikipedia.org/wiki/Short_code */
|
|
385
|
+
shortCode?: ShortCode;
|
|
386
|
+
}
|
|
387
|
+
interface Policy {
|
|
388
|
+
/** The number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp. Required for `NUMBER_OF_DAYS_AFTER_DELIVERY` returns. */
|
|
389
|
+
days?: string;
|
|
390
|
+
/** Policy type. */
|
|
391
|
+
type?: string;
|
|
392
|
+
}
|
|
393
|
+
interface PostalAddress {
|
|
394
|
+
/** Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (e.g. "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country/region of the address. In places where this can vary (e.g. Japan), address_language is used to make it explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas). */
|
|
395
|
+
addressLines?: string[];
|
|
396
|
+
/** Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated. */
|
|
397
|
+
administrativeArea?: string;
|
|
398
|
+
/** Optional. BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. If this value is not known, it should be omitted (rather than specifying a possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en". */
|
|
399
|
+
languageCode?: string;
|
|
400
|
+
/** Optional. Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use address_lines. */
|
|
401
|
+
locality?: string;
|
|
402
|
+
/** Optional. The name of the organization at the address. */
|
|
403
|
+
organization?: string;
|
|
404
|
+
/** Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (e.g. state/zip validation in the U.S.A.). */
|
|
405
|
+
postalCode?: string;
|
|
406
|
+
/** Optional. The recipient at the address. This field may, under certain circumstances, contain multiline information. For example, it might contain "care of" information. */
|
|
407
|
+
recipients?: string[];
|
|
408
|
+
/** Required. CLDR region code of the country/region of the address. This is never inferred and it is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: "CH" for Switzerland. */
|
|
409
|
+
regionCode?: string;
|
|
410
|
+
/** The schema revision of the `PostalAddress`. This must be set to 0, which is the latest revision. All new revisions **must** be backward compatible with old revisions. */
|
|
411
|
+
revision?: number;
|
|
412
|
+
/** Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). */
|
|
413
|
+
sortingCode?: string;
|
|
414
|
+
/** Optional. Sublocality of the address. For example, this can be neighborhoods, boroughs, districts. */
|
|
415
|
+
sublocality?: string;
|
|
416
|
+
}
|
|
417
|
+
interface PostalCodeArea {
|
|
418
|
+
/** Required. A range of postal codes. */
|
|
419
|
+
postalCodes?: PostalCodeRange[];
|
|
420
|
+
/** Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the postal code group applies to. */
|
|
421
|
+
regionCode?: string;
|
|
422
|
+
}
|
|
423
|
+
interface PostalCodeRange {
|
|
424
|
+
/** Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: `94108`, `9410*`, `9*`. */
|
|
425
|
+
begin?: string;
|
|
426
|
+
/** Optional. A postal code or a pattern of the form `prefix*` denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin. */
|
|
427
|
+
end?: string;
|
|
428
|
+
}
|
|
429
|
+
interface Price {
|
|
430
|
+
/** The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros). */
|
|
431
|
+
amountMicros?: string;
|
|
432
|
+
/** The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217). */
|
|
433
|
+
currencyCode?: string;
|
|
434
|
+
}
|
|
435
|
+
interface ProductChange {
|
|
436
|
+
/** The new value of the changed resource or attribute. */
|
|
437
|
+
newValue?: string;
|
|
438
|
+
/** The old value of the changed resource or attribute. */
|
|
439
|
+
oldValue?: string;
|
|
440
|
+
/** Countries that have the change (if applicable) */
|
|
441
|
+
regionCode?: string;
|
|
442
|
+
/** Reporting contexts that have the change (if applicable) */
|
|
443
|
+
reportingContext?: string;
|
|
444
|
+
}
|
|
445
|
+
interface ProductStatusChangeMessage {
|
|
446
|
+
/** The target account that owns the entity that changed. Format : `accounts/{merchant_id}` */
|
|
447
|
+
account?: string;
|
|
448
|
+
/** The attribute in the resource that changed, in this case it will be always `Status`. */
|
|
449
|
+
attribute?: string;
|
|
450
|
+
/** A message to describe the change that happened to the product */
|
|
451
|
+
changes?: ProductChange[];
|
|
452
|
+
/** The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id}` */
|
|
453
|
+
managingAccount?: string;
|
|
454
|
+
/** The product name. Format: `{product.name=accounts/{account}/products/{product}}` */
|
|
455
|
+
resource?: string;
|
|
456
|
+
/** The product id. */
|
|
457
|
+
resourceId?: string;
|
|
458
|
+
/** The resource that changed, in this case it will always be `Product`. */
|
|
459
|
+
resourceType?: string;
|
|
460
|
+
}
|
|
461
|
+
interface Program {
|
|
462
|
+
/** Output only. The regions in which the account is actively participating in the program. Active regions are defined as those where all program requirements affecting the regions have been met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally. */
|
|
463
|
+
activeRegionCodes?: string[];
|
|
464
|
+
/** Output only. The URL of a Merchant Center help page describing the program. */
|
|
465
|
+
documentationUri?: string;
|
|
466
|
+
/** Identifier. The resource name of the program. Format: `accounts/{account}/programs/{program}` */
|
|
467
|
+
name?: string;
|
|
468
|
+
/** Output only. The participation state of the account in the program. */
|
|
469
|
+
state?: string;
|
|
470
|
+
/** Output only. The requirements that the account has not yet satisfied that are affecting participation in the program. */
|
|
471
|
+
unmetRequirements?: Requirement[];
|
|
472
|
+
}
|
|
473
|
+
interface RateGroup {
|
|
474
|
+
/** Required. A list of [shipping labels](https://support.google.com/merchants/answer/6324504) defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. */
|
|
475
|
+
applicableShippingLabels?: string[];
|
|
476
|
+
/** Optional. A list of carrier rates that can be referred to by `main_table` or `single_value`. */
|
|
477
|
+
carrierRates?: CarrierRate[];
|
|
478
|
+
/** A table defining the rate group, when `single_value` is not expressive enough. Can only be set if `single_value` is not set. */
|
|
479
|
+
mainTable?: Table;
|
|
480
|
+
/** Optional. Name of the rate group. If set has to be unique within shipping service. */
|
|
481
|
+
name?: string;
|
|
482
|
+
/** The value of the rate group (For example flat rate $10). Can only be set if `main_table` and `subtables` are not set. */
|
|
483
|
+
singleValue?: Value;
|
|
484
|
+
/** Optional. A list of subtables referred to by `main_table`. Can only be set if `main_table` is set. */
|
|
485
|
+
subtables?: Table[];
|
|
486
|
+
}
|
|
487
|
+
interface Region {
|
|
488
|
+
/** Optional. The display name of the region. */
|
|
489
|
+
displayName?: string;
|
|
490
|
+
/** Optional. A list of geotargets that defines the region area. */
|
|
491
|
+
geotargetArea?: GeoTargetArea;
|
|
492
|
+
/** Identifier. The resource name of the region. Format: `accounts/{account}/regions/{region}` */
|
|
493
|
+
name?: string;
|
|
494
|
+
/** Optional. A list of postal codes that defines the region area. */
|
|
495
|
+
postalCodeArea?: PostalCodeArea;
|
|
496
|
+
/** Output only. Indicates if the region is eligible for use in the Regional Inventory configuration. */
|
|
497
|
+
regionalInventoryEligible?: boolean;
|
|
498
|
+
/** Output only. Indicates if the region is eligible for use in the Shipping Services configuration. */
|
|
499
|
+
shippingEligible?: boolean;
|
|
500
|
+
}
|
|
501
|
+
interface Required {
|
|
502
|
+
/** The [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) that need to be accepted. */
|
|
503
|
+
termsOfService?: string;
|
|
504
|
+
/** Full URL to the terms of service file. This field is the same as [TermsOfService.file_uri](TermsOfService.file_uri), it is added here for convenience only. */
|
|
505
|
+
tosFileUri?: string;
|
|
506
|
+
}
|
|
507
|
+
interface Requirement {
|
|
508
|
+
/** Output only. The regions that are currently affected by this requirement not being met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally. */
|
|
509
|
+
affectedRegionCodes?: string[];
|
|
510
|
+
/** Output only. The URL of a help page describing the requirement. */
|
|
511
|
+
documentationUri?: string;
|
|
512
|
+
/** Output only. Name of the requirement. */
|
|
513
|
+
title?: string;
|
|
514
|
+
}
|
|
515
|
+
interface RestockingFee {
|
|
516
|
+
/** Fixed restocking fee. */
|
|
517
|
+
fixedFee?: Price;
|
|
518
|
+
/** Percent of total price in micros. 15,000,000 means 15% of the total price would be charged. */
|
|
519
|
+
microPercent?: number;
|
|
520
|
+
}
|
|
521
|
+
interface ReturnShippingFee {
|
|
522
|
+
/** Fixed return shipping fee amount. This value is only applicable when type is `FIXED`. We will treat the return shipping fee as free if type is `FIXED` and this value is not set. */
|
|
523
|
+
fixedFee?: Price;
|
|
524
|
+
/** Type of return shipping fee. */
|
|
525
|
+
type?: string;
|
|
526
|
+
}
|
|
527
|
+
interface Row {
|
|
528
|
+
/** Required. The list of cells that constitute the row. Must have the same length as `columnHeaders` for two-dimensional tables, a length of 1 for one-dimensional tables. */
|
|
529
|
+
cells?: Value[];
|
|
530
|
+
}
|
|
531
|
+
interface Service {
|
|
532
|
+
/** Required. A boolean exposing the active status of the shipping service. */
|
|
533
|
+
active?: boolean;
|
|
534
|
+
/** The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. */
|
|
535
|
+
currencyCode?: string;
|
|
536
|
+
/** Required. The CLDR territory code of the countries to which the service applies. */
|
|
537
|
+
deliveryCountries?: string[];
|
|
538
|
+
/** Required. Time spent in various aspects from order to the delivery of the product. */
|
|
539
|
+
deliveryTime?: DeliveryTime;
|
|
540
|
+
/** Optional. Loyalty programs that this shipping service is limited to. */
|
|
541
|
+
loyaltyPrograms?: LoyaltyProgram[];
|
|
542
|
+
/** Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table. */
|
|
543
|
+
minimumOrderValue?: Price;
|
|
544
|
+
/** Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value. */
|
|
545
|
+
minimumOrderValueTable?: MinimumOrderValueTable;
|
|
546
|
+
/** Optional. Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means "everything else". The other `applicable_shipping_labels` must not overlap. */
|
|
547
|
+
rateGroups?: RateGroup[];
|
|
548
|
+
/** Required. Free-form name of the service. Must be unique within target account. */
|
|
549
|
+
serviceName?: string;
|
|
550
|
+
/** Type of locations this service ships orders to. */
|
|
551
|
+
shipmentType?: string;
|
|
552
|
+
/** A list of stores your products are delivered from. This is only valid for the local delivery shipment type. */
|
|
553
|
+
storeConfig?: StoreConfig;
|
|
554
|
+
}
|
|
555
|
+
interface ShippingSettings {
|
|
556
|
+
/** Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps: 1. Set etag field as empty string for initial shipping setting creation. 2. After initial creation, call get method to obtain an etag and current shipping setting data before call insert. 3. Modify to wanted shipping setting information. 4. Call insert method with the wanted shipping setting information with the etag obtained from step 2. 5. If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag. */
|
|
557
|
+
etag?: string;
|
|
558
|
+
/** Identifier. The resource name of the shipping setting. Format: `accounts/{account}/shippingSetting` */
|
|
559
|
+
name?: string;
|
|
560
|
+
/** Optional. The target account's list of services. */
|
|
561
|
+
services?: Service[];
|
|
562
|
+
/** Optional. A list of warehouses which can be referred to in `services`. */
|
|
563
|
+
warehouses?: Warehouse[];
|
|
564
|
+
}
|
|
565
|
+
interface ShortCode {
|
|
566
|
+
/** Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611". */
|
|
567
|
+
number?: string;
|
|
568
|
+
/** Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB". Reference(s): - http://www.unicode.org/reports/tr35/#unicode_region_subtag */
|
|
569
|
+
regionCode?: string;
|
|
570
|
+
}
|
|
571
|
+
interface StoreCodeSetWithMov {
|
|
572
|
+
/** Optional. A list of unique store codes or empty for the catch all. */
|
|
573
|
+
storeCodes?: string[];
|
|
574
|
+
/** The minimum order value for the given stores. */
|
|
575
|
+
value?: Price;
|
|
576
|
+
}
|
|
577
|
+
interface StoreConfig {
|
|
578
|
+
/** Configs related to local delivery ends for the day. */
|
|
579
|
+
cutoffConfig?: CutoffConfig;
|
|
580
|
+
/** Maximum delivery radius. This is only required for the local delivery shipment type. */
|
|
581
|
+
serviceRadius?: Distance;
|
|
582
|
+
/** Optional. A list of store codes that provide local delivery. If empty, then `all_stores` must be true. */
|
|
583
|
+
storeCodes?: string[];
|
|
584
|
+
/** Indicates whether all stores, or selected stores, listed by this merchant provide local delivery. */
|
|
585
|
+
storeServiceType?: string;
|
|
586
|
+
}
|
|
587
|
+
interface Table {
|
|
588
|
+
/** Headers of the table's columns. Optional: if not set then the table has only one dimension. */
|
|
589
|
+
columnHeaders?: Headers;
|
|
590
|
+
/** Name of the table. Required for subtables, ignored for the main table. */
|
|
591
|
+
name?: string;
|
|
592
|
+
/** Required. Headers of the table's rows. */
|
|
593
|
+
rowHeaders?: Headers;
|
|
594
|
+
/** Required. The list of rows that constitute the table. Must have the same length as `row_headers`. */
|
|
595
|
+
rows?: Row[];
|
|
596
|
+
}
|
|
597
|
+
interface TaxPostalCodeRange {
|
|
598
|
+
/** The end of the postal code range. Will be the same as start if not specified. */
|
|
599
|
+
end?: string;
|
|
600
|
+
/** Required. The start of the postal code range, which is also the smallest in the range. */
|
|
601
|
+
start?: string;
|
|
602
|
+
}
|
|
603
|
+
interface TaxRule {
|
|
604
|
+
/** Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive. */
|
|
605
|
+
effectiveTimePeriod?: Interval;
|
|
606
|
+
/** The admin_id or criteria_id of the region in which this rule is applicable. */
|
|
607
|
+
locationId?: string;
|
|
608
|
+
/** The range of postal codes in which this rule is applicable. */
|
|
609
|
+
postCodeRange?: TaxPostalCodeRange;
|
|
610
|
+
/** Region code in which this rule is applicable */
|
|
611
|
+
regionCode?: string;
|
|
612
|
+
/** A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states. */
|
|
613
|
+
selfSpecifiedRateMicros?: string;
|
|
614
|
+
/** If set, shipping charge is taxed (at the same rate as product) when delivering to this admin's area. Can only be set on US states without category. */
|
|
615
|
+
shippingTaxed?: boolean;
|
|
616
|
+
/** Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up. */
|
|
617
|
+
useGoogleRate?: boolean;
|
|
618
|
+
}
|
|
619
|
+
interface TermsOfService {
|
|
620
|
+
/** 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. */
|
|
621
|
+
external?: boolean;
|
|
622
|
+
/** URI for terms of service file that needs to be displayed to signing users. */
|
|
623
|
+
fileUri?: string;
|
|
624
|
+
/** The Kind this terms of service version applies to. */
|
|
625
|
+
kind?: string;
|
|
626
|
+
/** Identifier. The resource name of the terms of service version. Format: `termsOfService/{version}` */
|
|
627
|
+
name?: string;
|
|
628
|
+
/** 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). */
|
|
629
|
+
regionCode?: string;
|
|
630
|
+
}
|
|
631
|
+
interface TermsOfServiceAgreementState {
|
|
632
|
+
/** The accepted terms of service of this kind and for the associated region_code */
|
|
633
|
+
accepted?: Accepted;
|
|
634
|
+
/** Identifier. The resource name of the terms of service version. Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}` */
|
|
635
|
+
name?: string;
|
|
636
|
+
/** Region code as defined by https://cldr.unicode.org/. This is the country the current state applies to. */
|
|
637
|
+
regionCode?: string;
|
|
638
|
+
/** The required terms of service */
|
|
639
|
+
required?: Required;
|
|
640
|
+
/** Terms of Service kind associated with the particular version. */
|
|
641
|
+
termsOfServiceKind?: string;
|
|
642
|
+
}
|
|
643
|
+
interface TimeZone {
|
|
644
|
+
/** IANA Time Zone Database time zone, e.g. "America/New_York". */
|
|
645
|
+
id?: string;
|
|
646
|
+
/** Optional. IANA Time Zone Database version number, e.g. "2019a". */
|
|
647
|
+
version?: string;
|
|
648
|
+
}
|
|
649
|
+
interface TransitTable {
|
|
650
|
+
/** Required. A list of region names Region.name . The last value can be `"all other locations"`. Example: `["zone 1", "zone 2", "all other locations"]`. The referred postal code groups must match the delivery country of the service. */
|
|
651
|
+
postalCodeGroupNames?: string[];
|
|
652
|
+
/** Required. If there's only one dimension set of `postal_code_group_names` or `transit_time_labels`, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a `postal_code_group_names`, and columns (values) to a `transit_time_labels`. */
|
|
653
|
+
rows?: TransitTimeRow[];
|
|
654
|
+
/** Required. A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. */
|
|
655
|
+
transitTimeLabels?: string[];
|
|
656
|
+
}
|
|
657
|
+
interface TransitTimeRow {
|
|
658
|
+
/** Required. Transit time range (min-max) in business days. */
|
|
659
|
+
values?: TransitTimeValue[];
|
|
660
|
+
}
|
|
661
|
+
interface TransitTimeValue {
|
|
662
|
+
/** Must be greater than or equal to `min_transit_days`. */
|
|
663
|
+
maxTransitDays?: number;
|
|
664
|
+
/** Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery. */
|
|
665
|
+
minTransitDays?: number;
|
|
666
|
+
}
|
|
667
|
+
interface UnclaimHomepageRequest {}
|
|
668
|
+
interface User {
|
|
669
|
+
/** Optional. The [access rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) the user has. */
|
|
670
|
+
accessRights?: string[];
|
|
671
|
+
/** Identifier. The resource name of the user. Format: `accounts/{account}/user/{email}` Use `me` to refer to your own email address, for example `accounts/{account}/users/me`. */
|
|
672
|
+
name?: string;
|
|
673
|
+
/** Output only. The state of the user. */
|
|
674
|
+
state?: string;
|
|
675
|
+
}
|
|
676
|
+
interface Value {
|
|
677
|
+
/** The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set. */
|
|
678
|
+
carrierRate?: string;
|
|
679
|
+
/** A flat rate. Can only be set if all other fields are not set. */
|
|
680
|
+
flatRate?: Price;
|
|
681
|
+
/** If true, then the product can't be shipped. Must be true when set, can only be set if all other fields are not set. */
|
|
682
|
+
noShipping?: boolean;
|
|
683
|
+
/** A percentage of the price represented as a number in decimal notation (For example, `"5.4"`). Can only be set if all other fields are not set. */
|
|
684
|
+
pricePercentage?: string;
|
|
685
|
+
/** The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set. */
|
|
686
|
+
subtable?: string;
|
|
687
|
+
}
|
|
688
|
+
interface Warehouse {
|
|
689
|
+
/** Business days of the warehouse. If not set, will be Monday to Friday by default. */
|
|
690
|
+
businessDayConfig?: BusinessDayConfig;
|
|
691
|
+
/** Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code. */
|
|
692
|
+
cutoffTime?: WarehouseCutoffTime;
|
|
693
|
+
/** Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item. */
|
|
694
|
+
handlingDays?: string;
|
|
695
|
+
/** Required. The name of the warehouse. Must be unique within account. */
|
|
696
|
+
name?: string;
|
|
697
|
+
/** Required. Shipping address of the warehouse. */
|
|
698
|
+
shippingAddress?: Address;
|
|
699
|
+
}
|
|
700
|
+
interface WarehouseBasedDeliveryTime {
|
|
701
|
+
/** Required. Carrier, such as `"UPS"` or `"Fedex"`. */
|
|
702
|
+
carrier?: string;
|
|
703
|
+
/** Required. Carrier service, such as `"ground"` or `"2 days"`. The name of the service must be in the eddSupportedServices list. */
|
|
704
|
+
carrierService?: string;
|
|
705
|
+
/** Required. Warehouse name. This should match warehouse */
|
|
706
|
+
warehouse?: string;
|
|
707
|
+
}
|
|
708
|
+
interface WarehouseCutoffTime {
|
|
709
|
+
/** Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Hour is based on the timezone of warehouse. */
|
|
710
|
+
hour?: number;
|
|
711
|
+
/** Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Minute is based on the timezone of warehouse. */
|
|
712
|
+
minute?: number;
|
|
713
|
+
}
|
|
714
|
+
interface Weight {
|
|
715
|
+
/** Required. The weight represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value. */
|
|
716
|
+
amountMicros?: string;
|
|
717
|
+
/** Required. The weight unit. Acceptable values are: kg and lb */
|
|
718
|
+
unit?: string;
|
|
719
|
+
}
|
|
720
|
+
interface AccounttaxResource {
|
|
721
|
+
/** Returns the tax rules that match the conditions of GetAccountTaxRequest */
|
|
722
|
+
get(request?: {
|
|
723
|
+
/** V1 error format. */
|
|
724
|
+
'$.xgafv'?: string;
|
|
725
|
+
/** OAuth access token. */
|
|
726
|
+
access_token?: string;
|
|
727
|
+
/** Data format for response. */
|
|
728
|
+
alt?: string;
|
|
729
|
+
/** JSONP */
|
|
730
|
+
callback?: string;
|
|
731
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
732
|
+
fields?: string;
|
|
733
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
734
|
+
key?: string;
|
|
735
|
+
/** Required. The name from which tax settings will be retrieved */
|
|
736
|
+
name: string;
|
|
737
|
+
/** OAuth 2.0 token for the current user. */
|
|
738
|
+
oauth_token?: string;
|
|
739
|
+
/** Returns response with indentations and line breaks. */
|
|
740
|
+
prettyPrint?: boolean;
|
|
741
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
742
|
+
quotaUser?: string;
|
|
743
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
744
|
+
upload_protocol?: string;
|
|
745
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
746
|
+
uploadType?: string;
|
|
747
|
+
}): Request<AccountTax>;
|
|
748
|
+
/** Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error. */
|
|
749
|
+
list(request?: {
|
|
750
|
+
/** V1 error format. */
|
|
751
|
+
'$.xgafv'?: string;
|
|
752
|
+
/** OAuth access token. */
|
|
753
|
+
access_token?: string;
|
|
754
|
+
/** Data format for response. */
|
|
755
|
+
alt?: string;
|
|
756
|
+
/** JSONP */
|
|
757
|
+
callback?: string;
|
|
758
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
759
|
+
fields?: string;
|
|
760
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
761
|
+
key?: string;
|
|
762
|
+
/** OAuth 2.0 token for the current user. */
|
|
763
|
+
oauth_token?: string;
|
|
764
|
+
/** The maximum number of tax settings to return in the response, used for paging. */
|
|
765
|
+
pageSize?: number;
|
|
766
|
+
/** The token returned by the previous request. */
|
|
767
|
+
pageToken?: string;
|
|
768
|
+
/** Required. The parent, which owns this collection of account tax. Format: accounts/{account} */
|
|
769
|
+
parent: string;
|
|
770
|
+
/** Returns response with indentations and line breaks. */
|
|
771
|
+
prettyPrint?: boolean;
|
|
772
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
773
|
+
quotaUser?: string;
|
|
774
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
775
|
+
upload_protocol?: string;
|
|
776
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
777
|
+
uploadType?: string;
|
|
778
|
+
}): Request<ListAccountTaxResponse>;
|
|
779
|
+
/** Updates the tax settings of the account. */
|
|
780
|
+
patch(request: {
|
|
781
|
+
/** V1 error format. */
|
|
782
|
+
'$.xgafv'?: string;
|
|
783
|
+
/** OAuth access token. */
|
|
784
|
+
access_token?: string;
|
|
785
|
+
/** Data format for response. */
|
|
786
|
+
alt?: string;
|
|
787
|
+
/** JSONP */
|
|
788
|
+
callback?: string;
|
|
789
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
790
|
+
fields?: string;
|
|
791
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
792
|
+
key?: string;
|
|
793
|
+
/** Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}" */
|
|
794
|
+
name: string;
|
|
795
|
+
/** OAuth 2.0 token for the current user. */
|
|
796
|
+
oauth_token?: string;
|
|
797
|
+
/** Returns response with indentations and line breaks. */
|
|
798
|
+
prettyPrint?: boolean;
|
|
799
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
800
|
+
quotaUser?: string;
|
|
801
|
+
/** The list of fields to be updated */
|
|
802
|
+
updateMask?: string;
|
|
803
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
804
|
+
upload_protocol?: string;
|
|
805
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
806
|
+
uploadType?: string;
|
|
807
|
+
/** Request body */
|
|
808
|
+
resource: AccountTax;
|
|
809
|
+
}): Request<AccountTax>;
|
|
810
|
+
patch(
|
|
811
|
+
request: {
|
|
812
|
+
/** V1 error format. */
|
|
813
|
+
'$.xgafv'?: string;
|
|
814
|
+
/** OAuth access token. */
|
|
815
|
+
access_token?: string;
|
|
816
|
+
/** Data format for response. */
|
|
817
|
+
alt?: string;
|
|
818
|
+
/** JSONP */
|
|
819
|
+
callback?: string;
|
|
820
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
821
|
+
fields?: string;
|
|
822
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
823
|
+
key?: string;
|
|
824
|
+
/** Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}" */
|
|
825
|
+
name: string;
|
|
826
|
+
/** OAuth 2.0 token for the current user. */
|
|
827
|
+
oauth_token?: string;
|
|
828
|
+
/** Returns response with indentations and line breaks. */
|
|
829
|
+
prettyPrint?: boolean;
|
|
830
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
831
|
+
quotaUser?: string;
|
|
832
|
+
/** The list of fields to be updated */
|
|
833
|
+
updateMask?: string;
|
|
834
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
835
|
+
upload_protocol?: string;
|
|
836
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
837
|
+
uploadType?: string;
|
|
838
|
+
},
|
|
839
|
+
body: AccountTax
|
|
840
|
+
): Request<AccountTax>;
|
|
841
|
+
}
|
|
842
|
+
interface HomepageResource {
|
|
843
|
+
/** Claims a store's homepage. Executing this method requires admin access. If the homepage is already claimed, this will recheck the verification (unless the merchant is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message will be returned: * PERMISSION_DENIED: user doesn't have the necessary permissions on this MC account; * FAILED_PRECONDITION: - The account is not a Merchant Center account; - MC account doesn't have a homepage; - claiming failed (in this case the error message will contain more details). */
|
|
844
|
+
claim(request: {
|
|
845
|
+
/** V1 error format. */
|
|
846
|
+
'$.xgafv'?: string;
|
|
847
|
+
/** OAuth access token. */
|
|
848
|
+
access_token?: string;
|
|
849
|
+
/** Data format for response. */
|
|
850
|
+
alt?: string;
|
|
851
|
+
/** JSONP */
|
|
852
|
+
callback?: string;
|
|
853
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
854
|
+
fields?: string;
|
|
855
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
856
|
+
key?: string;
|
|
857
|
+
/** Required. The name of the homepage to claim. Format: `accounts/{account}/homepage` */
|
|
858
|
+
name: string;
|
|
859
|
+
/** OAuth 2.0 token for the current user. */
|
|
860
|
+
oauth_token?: string;
|
|
861
|
+
/** Returns response with indentations and line breaks. */
|
|
862
|
+
prettyPrint?: boolean;
|
|
863
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
864
|
+
quotaUser?: string;
|
|
865
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
866
|
+
upload_protocol?: string;
|
|
867
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
868
|
+
uploadType?: string;
|
|
869
|
+
/** Request body */
|
|
870
|
+
resource: ClaimHomepageRequest;
|
|
871
|
+
}): Request<Homepage>;
|
|
872
|
+
claim(
|
|
873
|
+
request: {
|
|
874
|
+
/** V1 error format. */
|
|
875
|
+
'$.xgafv'?: string;
|
|
876
|
+
/** OAuth access token. */
|
|
877
|
+
access_token?: string;
|
|
878
|
+
/** Data format for response. */
|
|
879
|
+
alt?: string;
|
|
880
|
+
/** JSONP */
|
|
881
|
+
callback?: string;
|
|
882
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
883
|
+
fields?: string;
|
|
884
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
885
|
+
key?: string;
|
|
886
|
+
/** Required. The name of the homepage to claim. Format: `accounts/{account}/homepage` */
|
|
887
|
+
name: string;
|
|
888
|
+
/** OAuth 2.0 token for the current user. */
|
|
889
|
+
oauth_token?: string;
|
|
890
|
+
/** Returns response with indentations and line breaks. */
|
|
891
|
+
prettyPrint?: boolean;
|
|
892
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
893
|
+
quotaUser?: string;
|
|
894
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
895
|
+
upload_protocol?: string;
|
|
896
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
897
|
+
uploadType?: string;
|
|
898
|
+
},
|
|
899
|
+
body: ClaimHomepageRequest
|
|
900
|
+
): Request<Homepage>;
|
|
901
|
+
/** Unclaims a store's homepage. Executing this method requires admin access. */
|
|
902
|
+
unclaim(request: {
|
|
903
|
+
/** V1 error format. */
|
|
904
|
+
'$.xgafv'?: string;
|
|
905
|
+
/** OAuth access token. */
|
|
906
|
+
access_token?: string;
|
|
907
|
+
/** Data format for response. */
|
|
908
|
+
alt?: string;
|
|
909
|
+
/** JSONP */
|
|
910
|
+
callback?: string;
|
|
911
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
912
|
+
fields?: string;
|
|
913
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
914
|
+
key?: string;
|
|
915
|
+
/** Required. The name of the homepage to unclaim. Format: `accounts/{account}/homepage` */
|
|
916
|
+
name: string;
|
|
917
|
+
/** OAuth 2.0 token for the current user. */
|
|
918
|
+
oauth_token?: string;
|
|
919
|
+
/** Returns response with indentations and line breaks. */
|
|
920
|
+
prettyPrint?: boolean;
|
|
921
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
922
|
+
quotaUser?: string;
|
|
923
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
924
|
+
upload_protocol?: string;
|
|
925
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
926
|
+
uploadType?: string;
|
|
927
|
+
/** Request body */
|
|
928
|
+
resource: UnclaimHomepageRequest;
|
|
929
|
+
}): Request<Homepage>;
|
|
930
|
+
unclaim(
|
|
931
|
+
request: {
|
|
932
|
+
/** V1 error format. */
|
|
933
|
+
'$.xgafv'?: string;
|
|
934
|
+
/** OAuth access token. */
|
|
935
|
+
access_token?: string;
|
|
936
|
+
/** Data format for response. */
|
|
937
|
+
alt?: string;
|
|
938
|
+
/** JSONP */
|
|
939
|
+
callback?: string;
|
|
940
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
941
|
+
fields?: string;
|
|
942
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
943
|
+
key?: string;
|
|
944
|
+
/** Required. The name of the homepage to unclaim. Format: `accounts/{account}/homepage` */
|
|
945
|
+
name: string;
|
|
946
|
+
/** OAuth 2.0 token for the current user. */
|
|
947
|
+
oauth_token?: string;
|
|
948
|
+
/** Returns response with indentations and line breaks. */
|
|
949
|
+
prettyPrint?: boolean;
|
|
950
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
951
|
+
quotaUser?: string;
|
|
952
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
953
|
+
upload_protocol?: string;
|
|
954
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
955
|
+
uploadType?: string;
|
|
956
|
+
},
|
|
957
|
+
body: UnclaimHomepageRequest
|
|
958
|
+
): Request<Homepage>;
|
|
959
|
+
}
|
|
960
|
+
interface IssuesResource {
|
|
961
|
+
/** Lists all account issues of a Merchant Center account. */
|
|
962
|
+
list(request?: {
|
|
963
|
+
/** V1 error format. */
|
|
964
|
+
'$.xgafv'?: string;
|
|
965
|
+
/** OAuth access token. */
|
|
966
|
+
access_token?: string;
|
|
967
|
+
/** Data format for response. */
|
|
968
|
+
alt?: string;
|
|
969
|
+
/** JSONP */
|
|
970
|
+
callback?: string;
|
|
971
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
972
|
+
fields?: string;
|
|
973
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
974
|
+
key?: string;
|
|
975
|
+
/** Optional. The issues in the response will have human-readable fields in the given language. The format is [BCP-47](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`. If not value is provided, `en-US` will be used. */
|
|
976
|
+
languageCode?: string;
|
|
977
|
+
/** OAuth 2.0 token for the current user. */
|
|
978
|
+
oauth_token?: string;
|
|
979
|
+
/** Optional. The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 users will be returned. The maximum value is 100; values above 100 will be coerced to 100 */
|
|
980
|
+
pageSize?: number;
|
|
981
|
+
/** Optional. A page token, received from a previous `ListAccountIssues` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountIssues` must match the call that provided the page token. */
|
|
982
|
+
pageToken?: string;
|
|
983
|
+
/** Required. The parent, which owns this collection of issues. Format: `accounts/{account}` */
|
|
984
|
+
parent: string;
|
|
985
|
+
/** Returns response with indentations and line breaks. */
|
|
986
|
+
prettyPrint?: boolean;
|
|
987
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
988
|
+
quotaUser?: string;
|
|
989
|
+
/** IANA Time Zone Database time zone, e.g. "America/New_York". */
|
|
990
|
+
'timeZone.id'?: string;
|
|
991
|
+
/** Optional. IANA Time Zone Database version number, e.g. "2019a". */
|
|
992
|
+
'timeZone.version'?: string;
|
|
993
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
994
|
+
upload_protocol?: string;
|
|
995
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
996
|
+
uploadType?: string;
|
|
997
|
+
}): Request<ListAccountIssuesResponse>;
|
|
998
|
+
}
|
|
999
|
+
interface OnlineReturnPoliciesResource {
|
|
1000
|
+
/** Gets an existing return policy. */
|
|
1001
|
+
get(request?: {
|
|
1002
|
+
/** V1 error format. */
|
|
1003
|
+
'$.xgafv'?: string;
|
|
1004
|
+
/** OAuth access token. */
|
|
1005
|
+
access_token?: string;
|
|
1006
|
+
/** Data format for response. */
|
|
1007
|
+
alt?: string;
|
|
1008
|
+
/** JSONP */
|
|
1009
|
+
callback?: string;
|
|
1010
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1011
|
+
fields?: string;
|
|
1012
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1013
|
+
key?: string;
|
|
1014
|
+
/** Required. The name of the return policy to retrieve. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}` */
|
|
1015
|
+
name: string;
|
|
1016
|
+
/** OAuth 2.0 token for the current user. */
|
|
1017
|
+
oauth_token?: string;
|
|
1018
|
+
/** Returns response with indentations and line breaks. */
|
|
1019
|
+
prettyPrint?: boolean;
|
|
1020
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1021
|
+
quotaUser?: string;
|
|
1022
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1023
|
+
upload_protocol?: string;
|
|
1024
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1025
|
+
uploadType?: string;
|
|
1026
|
+
}): Request<OnlineReturnPolicy>;
|
|
1027
|
+
/** Lists all existing return policies. */
|
|
1028
|
+
list(request?: {
|
|
1029
|
+
/** V1 error format. */
|
|
1030
|
+
'$.xgafv'?: string;
|
|
1031
|
+
/** OAuth access token. */
|
|
1032
|
+
access_token?: string;
|
|
1033
|
+
/** Data format for response. */
|
|
1034
|
+
alt?: string;
|
|
1035
|
+
/** JSONP */
|
|
1036
|
+
callback?: string;
|
|
1037
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1038
|
+
fields?: string;
|
|
1039
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1040
|
+
key?: string;
|
|
1041
|
+
/** OAuth 2.0 token for the current user. */
|
|
1042
|
+
oauth_token?: string;
|
|
1043
|
+
/** Optional. The maximum number of `OnlineReturnPolicy` resources to return. The service returns fewer than this value if the number of return policies for the given merchant is less that than the `pageSize`. The default value is 10. The maximum value is 100; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum */
|
|
1044
|
+
pageSize?: number;
|
|
1045
|
+
/** Optional. A page token, received from a previous `ListOnlineReturnPolicies` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListOnlineReturnPolicies` must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request. */
|
|
1046
|
+
pageToken?: string;
|
|
1047
|
+
/** Required. The merchant account for which to list return policies. Format: `accounts/{account}` */
|
|
1048
|
+
parent: string;
|
|
1049
|
+
/** Returns response with indentations and line breaks. */
|
|
1050
|
+
prettyPrint?: boolean;
|
|
1051
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1052
|
+
quotaUser?: string;
|
|
1053
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1054
|
+
upload_protocol?: string;
|
|
1055
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1056
|
+
uploadType?: string;
|
|
1057
|
+
}): Request<ListOnlineReturnPoliciesResponse>;
|
|
1058
|
+
}
|
|
1059
|
+
interface ProgramsResource {
|
|
1060
|
+
/** Disable participation in the specified program for the account. Executing this method requires admin access. */
|
|
1061
|
+
disable(request: {
|
|
1062
|
+
/** V1 error format. */
|
|
1063
|
+
'$.xgafv'?: string;
|
|
1064
|
+
/** OAuth access token. */
|
|
1065
|
+
access_token?: string;
|
|
1066
|
+
/** Data format for response. */
|
|
1067
|
+
alt?: string;
|
|
1068
|
+
/** JSONP */
|
|
1069
|
+
callback?: string;
|
|
1070
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1071
|
+
fields?: string;
|
|
1072
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1073
|
+
key?: string;
|
|
1074
|
+
/** Required. The name of the program for which to disable participation for the given account. Format: `accounts/{account}/programs/{program}` */
|
|
1075
|
+
name: string;
|
|
1076
|
+
/** OAuth 2.0 token for the current user. */
|
|
1077
|
+
oauth_token?: string;
|
|
1078
|
+
/** Returns response with indentations and line breaks. */
|
|
1079
|
+
prettyPrint?: boolean;
|
|
1080
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1081
|
+
quotaUser?: string;
|
|
1082
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1083
|
+
upload_protocol?: string;
|
|
1084
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1085
|
+
uploadType?: string;
|
|
1086
|
+
/** Request body */
|
|
1087
|
+
resource: DisableProgramRequest;
|
|
1088
|
+
}): Request<Program>;
|
|
1089
|
+
disable(
|
|
1090
|
+
request: {
|
|
1091
|
+
/** V1 error format. */
|
|
1092
|
+
'$.xgafv'?: string;
|
|
1093
|
+
/** OAuth access token. */
|
|
1094
|
+
access_token?: string;
|
|
1095
|
+
/** Data format for response. */
|
|
1096
|
+
alt?: string;
|
|
1097
|
+
/** JSONP */
|
|
1098
|
+
callback?: string;
|
|
1099
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1100
|
+
fields?: string;
|
|
1101
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1102
|
+
key?: string;
|
|
1103
|
+
/** Required. The name of the program for which to disable participation for the given account. Format: `accounts/{account}/programs/{program}` */
|
|
1104
|
+
name: string;
|
|
1105
|
+
/** OAuth 2.0 token for the current user. */
|
|
1106
|
+
oauth_token?: string;
|
|
1107
|
+
/** Returns response with indentations and line breaks. */
|
|
1108
|
+
prettyPrint?: boolean;
|
|
1109
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1110
|
+
quotaUser?: string;
|
|
1111
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1112
|
+
upload_protocol?: string;
|
|
1113
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1114
|
+
uploadType?: string;
|
|
1115
|
+
},
|
|
1116
|
+
body: DisableProgramRequest
|
|
1117
|
+
): Request<Program>;
|
|
1118
|
+
/** Enable participation in the specified program for the account. Executing this method requires admin access. */
|
|
1119
|
+
enable(request: {
|
|
1120
|
+
/** V1 error format. */
|
|
1121
|
+
'$.xgafv'?: string;
|
|
1122
|
+
/** OAuth access token. */
|
|
1123
|
+
access_token?: string;
|
|
1124
|
+
/** Data format for response. */
|
|
1125
|
+
alt?: string;
|
|
1126
|
+
/** JSONP */
|
|
1127
|
+
callback?: string;
|
|
1128
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1129
|
+
fields?: string;
|
|
1130
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1131
|
+
key?: string;
|
|
1132
|
+
/** Required. The name of the program for which to enable participation for the given account. Format: `accounts/{account}/programs/{program}` */
|
|
1133
|
+
name: string;
|
|
1134
|
+
/** OAuth 2.0 token for the current user. */
|
|
1135
|
+
oauth_token?: string;
|
|
1136
|
+
/** Returns response with indentations and line breaks. */
|
|
1137
|
+
prettyPrint?: boolean;
|
|
1138
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1139
|
+
quotaUser?: string;
|
|
1140
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1141
|
+
upload_protocol?: string;
|
|
1142
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1143
|
+
uploadType?: string;
|
|
1144
|
+
/** Request body */
|
|
1145
|
+
resource: EnableProgramRequest;
|
|
1146
|
+
}): Request<Program>;
|
|
1147
|
+
enable(
|
|
1148
|
+
request: {
|
|
1149
|
+
/** V1 error format. */
|
|
1150
|
+
'$.xgafv'?: string;
|
|
1151
|
+
/** OAuth access token. */
|
|
1152
|
+
access_token?: string;
|
|
1153
|
+
/** Data format for response. */
|
|
1154
|
+
alt?: string;
|
|
1155
|
+
/** JSONP */
|
|
1156
|
+
callback?: string;
|
|
1157
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1158
|
+
fields?: string;
|
|
1159
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1160
|
+
key?: string;
|
|
1161
|
+
/** Required. The name of the program for which to enable participation for the given account. Format: `accounts/{account}/programs/{program}` */
|
|
1162
|
+
name: string;
|
|
1163
|
+
/** OAuth 2.0 token for the current user. */
|
|
1164
|
+
oauth_token?: string;
|
|
1165
|
+
/** Returns response with indentations and line breaks. */
|
|
1166
|
+
prettyPrint?: boolean;
|
|
1167
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1168
|
+
quotaUser?: string;
|
|
1169
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1170
|
+
upload_protocol?: string;
|
|
1171
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1172
|
+
uploadType?: string;
|
|
1173
|
+
},
|
|
1174
|
+
body: EnableProgramRequest
|
|
1175
|
+
): Request<Program>;
|
|
1176
|
+
/** Retrieves the specified program for the account. */
|
|
1177
|
+
get(request?: {
|
|
1178
|
+
/** V1 error format. */
|
|
1179
|
+
'$.xgafv'?: string;
|
|
1180
|
+
/** OAuth access token. */
|
|
1181
|
+
access_token?: string;
|
|
1182
|
+
/** Data format for response. */
|
|
1183
|
+
alt?: string;
|
|
1184
|
+
/** JSONP */
|
|
1185
|
+
callback?: string;
|
|
1186
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1187
|
+
fields?: string;
|
|
1188
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1189
|
+
key?: string;
|
|
1190
|
+
/** Required. The name of the program to retrieve. Format: `accounts/{account}/programs/{program}` */
|
|
1191
|
+
name: string;
|
|
1192
|
+
/** OAuth 2.0 token for the current user. */
|
|
1193
|
+
oauth_token?: string;
|
|
1194
|
+
/** Returns response with indentations and line breaks. */
|
|
1195
|
+
prettyPrint?: boolean;
|
|
1196
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1197
|
+
quotaUser?: string;
|
|
1198
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1199
|
+
upload_protocol?: string;
|
|
1200
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1201
|
+
uploadType?: string;
|
|
1202
|
+
}): Request<Program>;
|
|
1203
|
+
/** Retrieves all programs for the account. */
|
|
1204
|
+
list(request?: {
|
|
1205
|
+
/** V1 error format. */
|
|
1206
|
+
'$.xgafv'?: string;
|
|
1207
|
+
/** OAuth access token. */
|
|
1208
|
+
access_token?: string;
|
|
1209
|
+
/** Data format for response. */
|
|
1210
|
+
alt?: string;
|
|
1211
|
+
/** JSONP */
|
|
1212
|
+
callback?: string;
|
|
1213
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1214
|
+
fields?: string;
|
|
1215
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1216
|
+
key?: string;
|
|
1217
|
+
/** OAuth 2.0 token for the current user. */
|
|
1218
|
+
oauth_token?: string;
|
|
1219
|
+
/** Optional. The maximum number of programs to return in a single response. If unspecified (or 0), a default size of 1000 is used. The maximum value is 1000; values above 1000 will be coerced to 1000. */
|
|
1220
|
+
pageSize?: number;
|
|
1221
|
+
/** Optional. A continuation token, received from a previous `ListPrograms` call. Provide this to retrieve the next page. */
|
|
1222
|
+
pageToken?: string;
|
|
1223
|
+
/** Required. The name of the account for which to retrieve all programs. Format: `accounts/{account}` */
|
|
1224
|
+
parent: string;
|
|
1225
|
+
/** Returns response with indentations and line breaks. */
|
|
1226
|
+
prettyPrint?: boolean;
|
|
1227
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1228
|
+
quotaUser?: string;
|
|
1229
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1230
|
+
upload_protocol?: string;
|
|
1231
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1232
|
+
uploadType?: string;
|
|
1233
|
+
}): Request<ListProgramsResponse>;
|
|
1234
|
+
}
|
|
1235
|
+
interface RegionsResource {
|
|
1236
|
+
/** Creates a region definition in your Merchant Center account. Executing this method requires admin access. */
|
|
1237
|
+
create(request: {
|
|
1238
|
+
/** V1 error format. */
|
|
1239
|
+
'$.xgafv'?: string;
|
|
1240
|
+
/** OAuth access token. */
|
|
1241
|
+
access_token?: string;
|
|
1242
|
+
/** Data format for response. */
|
|
1243
|
+
alt?: string;
|
|
1244
|
+
/** JSONP */
|
|
1245
|
+
callback?: string;
|
|
1246
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1247
|
+
fields?: string;
|
|
1248
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1249
|
+
key?: string;
|
|
1250
|
+
/** OAuth 2.0 token for the current user. */
|
|
1251
|
+
oauth_token?: string;
|
|
1252
|
+
/** Required. The account to create a region for. Format: `accounts/{account}` */
|
|
1253
|
+
parent: string;
|
|
1254
|
+
/** Returns response with indentations and line breaks. */
|
|
1255
|
+
prettyPrint?: boolean;
|
|
1256
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1257
|
+
quotaUser?: string;
|
|
1258
|
+
/** Required. The identifier for the region, unique over all regions of the same account. */
|
|
1259
|
+
regionId?: string;
|
|
1260
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1261
|
+
upload_protocol?: string;
|
|
1262
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1263
|
+
uploadType?: string;
|
|
1264
|
+
/** Request body */
|
|
1265
|
+
resource: Region;
|
|
1266
|
+
}): Request<Region>;
|
|
1267
|
+
create(
|
|
1268
|
+
request: {
|
|
1269
|
+
/** V1 error format. */
|
|
1270
|
+
'$.xgafv'?: string;
|
|
1271
|
+
/** OAuth access token. */
|
|
1272
|
+
access_token?: string;
|
|
1273
|
+
/** Data format for response. */
|
|
1274
|
+
alt?: string;
|
|
1275
|
+
/** JSONP */
|
|
1276
|
+
callback?: string;
|
|
1277
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1278
|
+
fields?: string;
|
|
1279
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1280
|
+
key?: string;
|
|
1281
|
+
/** OAuth 2.0 token for the current user. */
|
|
1282
|
+
oauth_token?: string;
|
|
1283
|
+
/** Required. The account to create a region for. Format: `accounts/{account}` */
|
|
1284
|
+
parent: string;
|
|
1285
|
+
/** Returns response with indentations and line breaks. */
|
|
1286
|
+
prettyPrint?: boolean;
|
|
1287
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1288
|
+
quotaUser?: string;
|
|
1289
|
+
/** Required. The identifier for the region, unique over all regions of the same account. */
|
|
1290
|
+
regionId?: string;
|
|
1291
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1292
|
+
upload_protocol?: string;
|
|
1293
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1294
|
+
uploadType?: string;
|
|
1295
|
+
},
|
|
1296
|
+
body: Region
|
|
1297
|
+
): Request<Region>;
|
|
1298
|
+
/** Deletes a region definition from your Merchant Center account. Executing this method requires admin access. */
|
|
1299
|
+
delete(request?: {
|
|
1300
|
+
/** V1 error format. */
|
|
1301
|
+
'$.xgafv'?: string;
|
|
1302
|
+
/** OAuth access token. */
|
|
1303
|
+
access_token?: string;
|
|
1304
|
+
/** Data format for response. */
|
|
1305
|
+
alt?: string;
|
|
1306
|
+
/** JSONP */
|
|
1307
|
+
callback?: string;
|
|
1308
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1309
|
+
fields?: string;
|
|
1310
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1311
|
+
key?: string;
|
|
1312
|
+
/** Required. The name of the region to delete. Format: `accounts/{account}/regions/{region}` */
|
|
1313
|
+
name: string;
|
|
1314
|
+
/** OAuth 2.0 token for the current user. */
|
|
1315
|
+
oauth_token?: string;
|
|
1316
|
+
/** Returns response with indentations and line breaks. */
|
|
1317
|
+
prettyPrint?: boolean;
|
|
1318
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1319
|
+
quotaUser?: string;
|
|
1320
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1321
|
+
upload_protocol?: string;
|
|
1322
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1323
|
+
uploadType?: string;
|
|
1324
|
+
}): Request<{}>;
|
|
1325
|
+
/** Retrieves a region defined in your Merchant Center account. */
|
|
1326
|
+
get(request?: {
|
|
1327
|
+
/** V1 error format. */
|
|
1328
|
+
'$.xgafv'?: string;
|
|
1329
|
+
/** OAuth access token. */
|
|
1330
|
+
access_token?: string;
|
|
1331
|
+
/** Data format for response. */
|
|
1332
|
+
alt?: string;
|
|
1333
|
+
/** JSONP */
|
|
1334
|
+
callback?: string;
|
|
1335
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1336
|
+
fields?: string;
|
|
1337
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1338
|
+
key?: string;
|
|
1339
|
+
/** Required. The name of the region to retrieve. Format: `accounts/{account}/regions/{region}` */
|
|
1340
|
+
name: string;
|
|
1341
|
+
/** OAuth 2.0 token for the current user. */
|
|
1342
|
+
oauth_token?: string;
|
|
1343
|
+
/** Returns response with indentations and line breaks. */
|
|
1344
|
+
prettyPrint?: boolean;
|
|
1345
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1346
|
+
quotaUser?: string;
|
|
1347
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1348
|
+
upload_protocol?: string;
|
|
1349
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1350
|
+
uploadType?: string;
|
|
1351
|
+
}): Request<Region>;
|
|
1352
|
+
/** Lists the regions in your Merchant Center account. */
|
|
1353
|
+
list(request?: {
|
|
1354
|
+
/** V1 error format. */
|
|
1355
|
+
'$.xgafv'?: string;
|
|
1356
|
+
/** OAuth access token. */
|
|
1357
|
+
access_token?: string;
|
|
1358
|
+
/** Data format for response. */
|
|
1359
|
+
alt?: string;
|
|
1360
|
+
/** JSONP */
|
|
1361
|
+
callback?: string;
|
|
1362
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1363
|
+
fields?: string;
|
|
1364
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1365
|
+
key?: string;
|
|
1366
|
+
/** OAuth 2.0 token for the current user. */
|
|
1367
|
+
oauth_token?: string;
|
|
1368
|
+
/** Optional. The maximum number of regions to return. The service may return fewer than this value. If unspecified, at most 50 regions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. */
|
|
1369
|
+
pageSize?: number;
|
|
1370
|
+
/** Optional. A page token, received from a previous `ListRegions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRegions` must match the call that provided the page token. */
|
|
1371
|
+
pageToken?: string;
|
|
1372
|
+
/** Required. The account to list regions for. Format: `accounts/{account}` */
|
|
1373
|
+
parent: string;
|
|
1374
|
+
/** Returns response with indentations and line breaks. */
|
|
1375
|
+
prettyPrint?: boolean;
|
|
1376
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1377
|
+
quotaUser?: string;
|
|
1378
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1379
|
+
upload_protocol?: string;
|
|
1380
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1381
|
+
uploadType?: string;
|
|
1382
|
+
}): Request<ListRegionsResponse>;
|
|
1383
|
+
/** Updates a region definition in your Merchant Center account. Executing this method requires admin access. */
|
|
1384
|
+
patch(request: {
|
|
1385
|
+
/** V1 error format. */
|
|
1386
|
+
'$.xgafv'?: string;
|
|
1387
|
+
/** OAuth access token. */
|
|
1388
|
+
access_token?: string;
|
|
1389
|
+
/** Data format for response. */
|
|
1390
|
+
alt?: string;
|
|
1391
|
+
/** JSONP */
|
|
1392
|
+
callback?: string;
|
|
1393
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1394
|
+
fields?: string;
|
|
1395
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1396
|
+
key?: string;
|
|
1397
|
+
/** Identifier. The resource name of the region. Format: `accounts/{account}/regions/{region}` */
|
|
1398
|
+
name: string;
|
|
1399
|
+
/** OAuth 2.0 token for the current user. */
|
|
1400
|
+
oauth_token?: string;
|
|
1401
|
+
/** Returns response with indentations and line breaks. */
|
|
1402
|
+
prettyPrint?: boolean;
|
|
1403
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1404
|
+
quotaUser?: string;
|
|
1405
|
+
/** Optional. The comma-separated field mask indicating the fields to update. Example: `"displayName,postalCodeArea.regionCode"`. */
|
|
1406
|
+
updateMask?: string;
|
|
1407
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1408
|
+
upload_protocol?: string;
|
|
1409
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1410
|
+
uploadType?: string;
|
|
1411
|
+
/** Request body */
|
|
1412
|
+
resource: Region;
|
|
1413
|
+
}): Request<Region>;
|
|
1414
|
+
patch(
|
|
1415
|
+
request: {
|
|
1416
|
+
/** V1 error format. */
|
|
1417
|
+
'$.xgafv'?: string;
|
|
1418
|
+
/** OAuth access token. */
|
|
1419
|
+
access_token?: string;
|
|
1420
|
+
/** Data format for response. */
|
|
1421
|
+
alt?: string;
|
|
1422
|
+
/** JSONP */
|
|
1423
|
+
callback?: string;
|
|
1424
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1425
|
+
fields?: string;
|
|
1426
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1427
|
+
key?: string;
|
|
1428
|
+
/** Identifier. The resource name of the region. Format: `accounts/{account}/regions/{region}` */
|
|
1429
|
+
name: string;
|
|
1430
|
+
/** OAuth 2.0 token for the current user. */
|
|
1431
|
+
oauth_token?: string;
|
|
1432
|
+
/** Returns response with indentations and line breaks. */
|
|
1433
|
+
prettyPrint?: boolean;
|
|
1434
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1435
|
+
quotaUser?: string;
|
|
1436
|
+
/** Optional. The comma-separated field mask indicating the fields to update. Example: `"displayName,postalCodeArea.regionCode"`. */
|
|
1437
|
+
updateMask?: string;
|
|
1438
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1439
|
+
upload_protocol?: string;
|
|
1440
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1441
|
+
uploadType?: string;
|
|
1442
|
+
},
|
|
1443
|
+
body: Region
|
|
1444
|
+
): Request<Region>;
|
|
1445
|
+
}
|
|
1446
|
+
interface ShippingSettingsResource {
|
|
1447
|
+
/** Replace the shipping setting of a merchant with the request shipping setting. Executing this method requires admin access. */
|
|
1448
|
+
insert(request: {
|
|
1449
|
+
/** V1 error format. */
|
|
1450
|
+
'$.xgafv'?: string;
|
|
1451
|
+
/** OAuth access token. */
|
|
1452
|
+
access_token?: string;
|
|
1453
|
+
/** Data format for response. */
|
|
1454
|
+
alt?: string;
|
|
1455
|
+
/** JSONP */
|
|
1456
|
+
callback?: string;
|
|
1457
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1458
|
+
fields?: string;
|
|
1459
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1460
|
+
key?: string;
|
|
1461
|
+
/** OAuth 2.0 token for the current user. */
|
|
1462
|
+
oauth_token?: string;
|
|
1463
|
+
/** Required. The account where this product will be inserted. Format: accounts/{account} */
|
|
1464
|
+
parent: string;
|
|
1465
|
+
/** Returns response with indentations and line breaks. */
|
|
1466
|
+
prettyPrint?: boolean;
|
|
1467
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1468
|
+
quotaUser?: string;
|
|
1469
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1470
|
+
upload_protocol?: string;
|
|
1471
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1472
|
+
uploadType?: string;
|
|
1473
|
+
/** Request body */
|
|
1474
|
+
resource: ShippingSettings;
|
|
1475
|
+
}): Request<ShippingSettings>;
|
|
1476
|
+
insert(
|
|
1477
|
+
request: {
|
|
1478
|
+
/** V1 error format. */
|
|
1479
|
+
'$.xgafv'?: string;
|
|
1480
|
+
/** OAuth access token. */
|
|
1481
|
+
access_token?: string;
|
|
1482
|
+
/** Data format for response. */
|
|
1483
|
+
alt?: string;
|
|
1484
|
+
/** JSONP */
|
|
1485
|
+
callback?: string;
|
|
1486
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1487
|
+
fields?: string;
|
|
1488
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1489
|
+
key?: string;
|
|
1490
|
+
/** OAuth 2.0 token for the current user. */
|
|
1491
|
+
oauth_token?: string;
|
|
1492
|
+
/** Required. The account where this product will be inserted. Format: accounts/{account} */
|
|
1493
|
+
parent: string;
|
|
1494
|
+
/** Returns response with indentations and line breaks. */
|
|
1495
|
+
prettyPrint?: boolean;
|
|
1496
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1497
|
+
quotaUser?: string;
|
|
1498
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1499
|
+
upload_protocol?: string;
|
|
1500
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1501
|
+
uploadType?: string;
|
|
1502
|
+
},
|
|
1503
|
+
body: ShippingSettings
|
|
1504
|
+
): Request<ShippingSettings>;
|
|
1505
|
+
}
|
|
1506
|
+
interface TermsOfServiceAgreementStatesResource {
|
|
1507
|
+
/** Returns the state of a terms of service agreement. */
|
|
1508
|
+
get(request?: {
|
|
1509
|
+
/** V1 error format. */
|
|
1510
|
+
'$.xgafv'?: string;
|
|
1511
|
+
/** OAuth access token. */
|
|
1512
|
+
access_token?: string;
|
|
1513
|
+
/** Data format for response. */
|
|
1514
|
+
alt?: string;
|
|
1515
|
+
/** JSONP */
|
|
1516
|
+
callback?: string;
|
|
1517
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1518
|
+
fields?: string;
|
|
1519
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1520
|
+
key?: string;
|
|
1521
|
+
/** Required. The resource name of the terms of service version. Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}` */
|
|
1522
|
+
name: string;
|
|
1523
|
+
/** OAuth 2.0 token for the current user. */
|
|
1524
|
+
oauth_token?: string;
|
|
1525
|
+
/** Returns response with indentations and line breaks. */
|
|
1526
|
+
prettyPrint?: boolean;
|
|
1527
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1528
|
+
quotaUser?: string;
|
|
1529
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1530
|
+
upload_protocol?: string;
|
|
1531
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1532
|
+
uploadType?: string;
|
|
1533
|
+
}): Request<TermsOfServiceAgreementState>;
|
|
1534
|
+
/** Retrieves the state of the agreement for the application terms of service. */
|
|
1535
|
+
retrieveForApplication(request?: {
|
|
1536
|
+
/** V1 error format. */
|
|
1537
|
+
'$.xgafv'?: string;
|
|
1538
|
+
/** OAuth access token. */
|
|
1539
|
+
access_token?: string;
|
|
1540
|
+
/** Data format for response. */
|
|
1541
|
+
alt?: string;
|
|
1542
|
+
/** JSONP */
|
|
1543
|
+
callback?: string;
|
|
1544
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1545
|
+
fields?: string;
|
|
1546
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1547
|
+
key?: string;
|
|
1548
|
+
/** OAuth 2.0 token for the current user. */
|
|
1549
|
+
oauth_token?: string;
|
|
1550
|
+
/** Required. The account for which to get a TermsOfServiceAgreementState Format: `accounts/{account}` */
|
|
1551
|
+
parent: string;
|
|
1552
|
+
/** Returns response with indentations and line breaks. */
|
|
1553
|
+
prettyPrint?: boolean;
|
|
1554
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1555
|
+
quotaUser?: string;
|
|
1556
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1557
|
+
upload_protocol?: string;
|
|
1558
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1559
|
+
uploadType?: string;
|
|
1560
|
+
}): Request<TermsOfServiceAgreementState>;
|
|
1561
|
+
}
|
|
1562
|
+
interface UsersResource {
|
|
1563
|
+
/** Creates a Merchant Center account user. Executing this method requires admin access. */
|
|
1564
|
+
create(request: {
|
|
1565
|
+
/** V1 error format. */
|
|
1566
|
+
'$.xgafv'?: string;
|
|
1567
|
+
/** OAuth access token. */
|
|
1568
|
+
access_token?: string;
|
|
1569
|
+
/** Data format for response. */
|
|
1570
|
+
alt?: string;
|
|
1571
|
+
/** JSONP */
|
|
1572
|
+
callback?: string;
|
|
1573
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1574
|
+
fields?: string;
|
|
1575
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1576
|
+
key?: string;
|
|
1577
|
+
/** OAuth 2.0 token for the current user. */
|
|
1578
|
+
oauth_token?: string;
|
|
1579
|
+
/** Required. The resource name of the account for which a user will be created. Format: `accounts/{account}` */
|
|
1580
|
+
parent: string;
|
|
1581
|
+
/** Returns response with indentations and line breaks. */
|
|
1582
|
+
prettyPrint?: boolean;
|
|
1583
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1584
|
+
quotaUser?: string;
|
|
1585
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1586
|
+
upload_protocol?: string;
|
|
1587
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1588
|
+
uploadType?: string;
|
|
1589
|
+
/** Required. The email address of the user (for example, `john.doe@gmail.com`). */
|
|
1590
|
+
userId?: string;
|
|
1591
|
+
/** Request body */
|
|
1592
|
+
resource: User;
|
|
1593
|
+
}): Request<User>;
|
|
1594
|
+
create(
|
|
1595
|
+
request: {
|
|
1596
|
+
/** V1 error format. */
|
|
1597
|
+
'$.xgafv'?: string;
|
|
1598
|
+
/** OAuth access token. */
|
|
1599
|
+
access_token?: string;
|
|
1600
|
+
/** Data format for response. */
|
|
1601
|
+
alt?: string;
|
|
1602
|
+
/** JSONP */
|
|
1603
|
+
callback?: string;
|
|
1604
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1605
|
+
fields?: string;
|
|
1606
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1607
|
+
key?: string;
|
|
1608
|
+
/** OAuth 2.0 token for the current user. */
|
|
1609
|
+
oauth_token?: string;
|
|
1610
|
+
/** Required. The resource name of the account for which a user will be created. Format: `accounts/{account}` */
|
|
1611
|
+
parent: string;
|
|
1612
|
+
/** Returns response with indentations and line breaks. */
|
|
1613
|
+
prettyPrint?: boolean;
|
|
1614
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1615
|
+
quotaUser?: string;
|
|
1616
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1617
|
+
upload_protocol?: string;
|
|
1618
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1619
|
+
uploadType?: string;
|
|
1620
|
+
/** Required. The email address of the user (for example, `john.doe@gmail.com`). */
|
|
1621
|
+
userId?: string;
|
|
1622
|
+
},
|
|
1623
|
+
body: User
|
|
1624
|
+
): Request<User>;
|
|
1625
|
+
/** Deletes a Merchant Center account user. Executing this method requires admin access. */
|
|
1626
|
+
delete(request?: {
|
|
1627
|
+
/** V1 error format. */
|
|
1628
|
+
'$.xgafv'?: string;
|
|
1629
|
+
/** OAuth access token. */
|
|
1630
|
+
access_token?: string;
|
|
1631
|
+
/** Data format for response. */
|
|
1632
|
+
alt?: string;
|
|
1633
|
+
/** JSONP */
|
|
1634
|
+
callback?: string;
|
|
1635
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1636
|
+
fields?: string;
|
|
1637
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1638
|
+
key?: string;
|
|
1639
|
+
/** Required. The name of the user to delete. Format: `accounts/{account}/users/{email}` It is also possible to delete the user corresponding to the caller by using `me` rather than an email address as in `accounts/{account}/users/me`. */
|
|
1640
|
+
name: string;
|
|
1641
|
+
/** OAuth 2.0 token for the current user. */
|
|
1642
|
+
oauth_token?: string;
|
|
1643
|
+
/** Returns response with indentations and line breaks. */
|
|
1644
|
+
prettyPrint?: boolean;
|
|
1645
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1646
|
+
quotaUser?: string;
|
|
1647
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1648
|
+
upload_protocol?: string;
|
|
1649
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1650
|
+
uploadType?: string;
|
|
1651
|
+
}): Request<{}>;
|
|
1652
|
+
/** Retrieves a Merchant Center account user. */
|
|
1653
|
+
get(request?: {
|
|
1654
|
+
/** V1 error format. */
|
|
1655
|
+
'$.xgafv'?: string;
|
|
1656
|
+
/** OAuth access token. */
|
|
1657
|
+
access_token?: string;
|
|
1658
|
+
/** Data format for response. */
|
|
1659
|
+
alt?: string;
|
|
1660
|
+
/** JSONP */
|
|
1661
|
+
callback?: string;
|
|
1662
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1663
|
+
fields?: string;
|
|
1664
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1665
|
+
key?: string;
|
|
1666
|
+
/** Required. The name of the user to retrieve. Format: `accounts/{account}/users/{email}` It is also possible to retrieve the user corresponding to the caller by using `me` rather than an email address as in `accounts/{account}/users/me`. */
|
|
1667
|
+
name: string;
|
|
1668
|
+
/** OAuth 2.0 token for the current user. */
|
|
1669
|
+
oauth_token?: string;
|
|
1670
|
+
/** Returns response with indentations and line breaks. */
|
|
1671
|
+
prettyPrint?: boolean;
|
|
1672
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1673
|
+
quotaUser?: string;
|
|
1674
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1675
|
+
upload_protocol?: string;
|
|
1676
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1677
|
+
uploadType?: string;
|
|
1678
|
+
}): Request<User>;
|
|
1679
|
+
/** Returns the email preferences for a Merchant Center account user. Use the name=accounts/*/users/me/emailPreferences alias to get preferences for the authenticated user. */
|
|
1680
|
+
getEmailPreferences(request?: {
|
|
1681
|
+
/** V1 error format. */
|
|
1682
|
+
'$.xgafv'?: string;
|
|
1683
|
+
/** OAuth access token. */
|
|
1684
|
+
access_token?: string;
|
|
1685
|
+
/** Data format for response. */
|
|
1686
|
+
alt?: string;
|
|
1687
|
+
/** JSONP */
|
|
1688
|
+
callback?: string;
|
|
1689
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1690
|
+
fields?: string;
|
|
1691
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1692
|
+
key?: string;
|
|
1693
|
+
/** Required. The name of the `EmailPreferences` resource. Format: `accounts/{account}/users/{email}/emailPreferences` */
|
|
1694
|
+
name: string;
|
|
1695
|
+
/** OAuth 2.0 token for the current user. */
|
|
1696
|
+
oauth_token?: string;
|
|
1697
|
+
/** Returns response with indentations and line breaks. */
|
|
1698
|
+
prettyPrint?: boolean;
|
|
1699
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1700
|
+
quotaUser?: string;
|
|
1701
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1702
|
+
upload_protocol?: string;
|
|
1703
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1704
|
+
uploadType?: string;
|
|
1705
|
+
}): Request<EmailPreferences>;
|
|
1706
|
+
/** Lists all users of a Merchant Center account. */
|
|
1707
|
+
list(request?: {
|
|
1708
|
+
/** V1 error format. */
|
|
1709
|
+
'$.xgafv'?: string;
|
|
1710
|
+
/** OAuth access token. */
|
|
1711
|
+
access_token?: string;
|
|
1712
|
+
/** Data format for response. */
|
|
1713
|
+
alt?: string;
|
|
1714
|
+
/** JSONP */
|
|
1715
|
+
callback?: string;
|
|
1716
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1717
|
+
fields?: string;
|
|
1718
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1719
|
+
key?: string;
|
|
1720
|
+
/** OAuth 2.0 token for the current user. */
|
|
1721
|
+
oauth_token?: string;
|
|
1722
|
+
/** Optional. The maximum number of users to return. The service may return fewer than this value. If unspecified, at most 50 users will be returned. The maximum value is 100; values above 100 will be coerced to 100 */
|
|
1723
|
+
pageSize?: number;
|
|
1724
|
+
/** Optional. A page token, received from a previous `ListUsers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUsers` must match the call that provided the page token. */
|
|
1725
|
+
pageToken?: string;
|
|
1726
|
+
/** Required. The parent, which owns this collection of users. Format: `accounts/{account}` */
|
|
1727
|
+
parent: string;
|
|
1728
|
+
/** Returns response with indentations and line breaks. */
|
|
1729
|
+
prettyPrint?: boolean;
|
|
1730
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1731
|
+
quotaUser?: string;
|
|
1732
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1733
|
+
upload_protocol?: string;
|
|
1734
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1735
|
+
uploadType?: string;
|
|
1736
|
+
}): Request<ListUsersResponse>;
|
|
1737
|
+
/** Updates a Merchant Center account user. Executing this method requires admin access. */
|
|
1738
|
+
patch(request: {
|
|
1739
|
+
/** V1 error format. */
|
|
1740
|
+
'$.xgafv'?: string;
|
|
1741
|
+
/** OAuth access token. */
|
|
1742
|
+
access_token?: string;
|
|
1743
|
+
/** Data format for response. */
|
|
1744
|
+
alt?: string;
|
|
1745
|
+
/** JSONP */
|
|
1746
|
+
callback?: string;
|
|
1747
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1748
|
+
fields?: string;
|
|
1749
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1750
|
+
key?: string;
|
|
1751
|
+
/** Identifier. The resource name of the user. Format: `accounts/{account}/user/{email}` Use `me` to refer to your own email address, for example `accounts/{account}/users/me`. */
|
|
1752
|
+
name: string;
|
|
1753
|
+
/** OAuth 2.0 token for the current user. */
|
|
1754
|
+
oauth_token?: string;
|
|
1755
|
+
/** Returns response with indentations and line breaks. */
|
|
1756
|
+
prettyPrint?: boolean;
|
|
1757
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1758
|
+
quotaUser?: string;
|
|
1759
|
+
/** Required. List of fields being updated. */
|
|
1760
|
+
updateMask?: string;
|
|
1761
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1762
|
+
upload_protocol?: string;
|
|
1763
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1764
|
+
uploadType?: string;
|
|
1765
|
+
/** Request body */
|
|
1766
|
+
resource: User;
|
|
1767
|
+
}): Request<User>;
|
|
1768
|
+
patch(
|
|
1769
|
+
request: {
|
|
1770
|
+
/** V1 error format. */
|
|
1771
|
+
'$.xgafv'?: string;
|
|
1772
|
+
/** OAuth access token. */
|
|
1773
|
+
access_token?: string;
|
|
1774
|
+
/** Data format for response. */
|
|
1775
|
+
alt?: string;
|
|
1776
|
+
/** JSONP */
|
|
1777
|
+
callback?: string;
|
|
1778
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1779
|
+
fields?: string;
|
|
1780
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1781
|
+
key?: string;
|
|
1782
|
+
/** Identifier. The resource name of the user. Format: `accounts/{account}/user/{email}` Use `me` to refer to your own email address, for example `accounts/{account}/users/me`. */
|
|
1783
|
+
name: string;
|
|
1784
|
+
/** OAuth 2.0 token for the current user. */
|
|
1785
|
+
oauth_token?: string;
|
|
1786
|
+
/** Returns response with indentations and line breaks. */
|
|
1787
|
+
prettyPrint?: boolean;
|
|
1788
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1789
|
+
quotaUser?: string;
|
|
1790
|
+
/** Required. List of fields being updated. */
|
|
1791
|
+
updateMask?: string;
|
|
1792
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1793
|
+
upload_protocol?: string;
|
|
1794
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1795
|
+
uploadType?: string;
|
|
1796
|
+
},
|
|
1797
|
+
body: User
|
|
1798
|
+
): Request<User>;
|
|
1799
|
+
/** Updates the email preferences for a Merchant Center account user. MCA users should specify the MCA account rather than a sub-account of the MCA. Preferences which are not explicitly selected in the update mask will not be updated. It is invalid for updates to specify an UNCONFIRMED opt-in status value. Use the name=accounts/*/users/me/emailPreferences alias to update preferences for the authenticated user. */
|
|
1800
|
+
updateEmailPreferences(request: {
|
|
1801
|
+
/** V1 error format. */
|
|
1802
|
+
'$.xgafv'?: string;
|
|
1803
|
+
/** OAuth access token. */
|
|
1804
|
+
access_token?: string;
|
|
1805
|
+
/** Data format for response. */
|
|
1806
|
+
alt?: string;
|
|
1807
|
+
/** JSONP */
|
|
1808
|
+
callback?: string;
|
|
1809
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1810
|
+
fields?: string;
|
|
1811
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1812
|
+
key?: string;
|
|
1813
|
+
/** Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user. */
|
|
1814
|
+
name: string;
|
|
1815
|
+
/** OAuth 2.0 token for the current user. */
|
|
1816
|
+
oauth_token?: string;
|
|
1817
|
+
/** Returns response with indentations and line breaks. */
|
|
1818
|
+
prettyPrint?: boolean;
|
|
1819
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1820
|
+
quotaUser?: string;
|
|
1821
|
+
/** Required. List of fields being updated. */
|
|
1822
|
+
updateMask?: string;
|
|
1823
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1824
|
+
upload_protocol?: string;
|
|
1825
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1826
|
+
uploadType?: string;
|
|
1827
|
+
/** Request body */
|
|
1828
|
+
resource: EmailPreferences;
|
|
1829
|
+
}): Request<EmailPreferences>;
|
|
1830
|
+
updateEmailPreferences(
|
|
1831
|
+
request: {
|
|
1832
|
+
/** V1 error format. */
|
|
1833
|
+
'$.xgafv'?: string;
|
|
1834
|
+
/** OAuth access token. */
|
|
1835
|
+
access_token?: string;
|
|
1836
|
+
/** Data format for response. */
|
|
1837
|
+
alt?: string;
|
|
1838
|
+
/** JSONP */
|
|
1839
|
+
callback?: string;
|
|
1840
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1841
|
+
fields?: string;
|
|
1842
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1843
|
+
key?: string;
|
|
1844
|
+
/** Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user. */
|
|
1845
|
+
name: string;
|
|
1846
|
+
/** OAuth 2.0 token for the current user. */
|
|
1847
|
+
oauth_token?: string;
|
|
1848
|
+
/** Returns response with indentations and line breaks. */
|
|
1849
|
+
prettyPrint?: boolean;
|
|
1850
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1851
|
+
quotaUser?: string;
|
|
1852
|
+
/** Required. List of fields being updated. */
|
|
1853
|
+
updateMask?: string;
|
|
1854
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1855
|
+
upload_protocol?: string;
|
|
1856
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1857
|
+
uploadType?: string;
|
|
1858
|
+
},
|
|
1859
|
+
body: EmailPreferences
|
|
1860
|
+
): Request<EmailPreferences>;
|
|
1861
|
+
}
|
|
1862
|
+
interface AccountsResource {
|
|
1863
|
+
/** Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account. */
|
|
1864
|
+
createAndConfigure(request: {
|
|
1865
|
+
/** V1 error format. */
|
|
1866
|
+
'$.xgafv'?: string;
|
|
1867
|
+
/** OAuth access token. */
|
|
1868
|
+
access_token?: string;
|
|
1869
|
+
/** Data format for response. */
|
|
1870
|
+
alt?: string;
|
|
1871
|
+
/** JSONP */
|
|
1872
|
+
callback?: string;
|
|
1873
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1874
|
+
fields?: string;
|
|
1875
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1876
|
+
key?: string;
|
|
1877
|
+
/** OAuth 2.0 token for the current user. */
|
|
1878
|
+
oauth_token?: string;
|
|
1879
|
+
/** Returns response with indentations and line breaks. */
|
|
1880
|
+
prettyPrint?: boolean;
|
|
1881
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1882
|
+
quotaUser?: string;
|
|
1883
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1884
|
+
upload_protocol?: string;
|
|
1885
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1886
|
+
uploadType?: string;
|
|
1887
|
+
/** Request body */
|
|
1888
|
+
resource: CreateAndConfigureAccountRequest;
|
|
1889
|
+
}): Request<Account>;
|
|
1890
|
+
createAndConfigure(
|
|
1891
|
+
request: {
|
|
1892
|
+
/** V1 error format. */
|
|
1893
|
+
'$.xgafv'?: string;
|
|
1894
|
+
/** OAuth access token. */
|
|
1895
|
+
access_token?: string;
|
|
1896
|
+
/** Data format for response. */
|
|
1897
|
+
alt?: string;
|
|
1898
|
+
/** JSONP */
|
|
1899
|
+
callback?: string;
|
|
1900
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1901
|
+
fields?: string;
|
|
1902
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1903
|
+
key?: string;
|
|
1904
|
+
/** OAuth 2.0 token for the current user. */
|
|
1905
|
+
oauth_token?: string;
|
|
1906
|
+
/** Returns response with indentations and line breaks. */
|
|
1907
|
+
prettyPrint?: boolean;
|
|
1908
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1909
|
+
quotaUser?: string;
|
|
1910
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1911
|
+
upload_protocol?: string;
|
|
1912
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1913
|
+
uploadType?: string;
|
|
1914
|
+
},
|
|
1915
|
+
body: CreateAndConfigureAccountRequest
|
|
1916
|
+
): Request<Account>;
|
|
1917
|
+
/** Deletes the specified account regardless of its type: standalone, MCA or sub-account. Deleting an MCA leads to the deletion of all of its sub-accounts. Executing this method requires admin access. */
|
|
1918
|
+
delete(request?: {
|
|
1919
|
+
/** V1 error format. */
|
|
1920
|
+
'$.xgafv'?: string;
|
|
1921
|
+
/** OAuth access token. */
|
|
1922
|
+
access_token?: string;
|
|
1923
|
+
/** Data format for response. */
|
|
1924
|
+
alt?: string;
|
|
1925
|
+
/** JSONP */
|
|
1926
|
+
callback?: string;
|
|
1927
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1928
|
+
fields?: string;
|
|
1929
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1930
|
+
key?: string;
|
|
1931
|
+
/** Required. The name of the account to delete. Format: `accounts/{account}` */
|
|
1932
|
+
name: string;
|
|
1933
|
+
/** OAuth 2.0 token for the current user. */
|
|
1934
|
+
oauth_token?: string;
|
|
1935
|
+
/** Returns response with indentations and line breaks. */
|
|
1936
|
+
prettyPrint?: boolean;
|
|
1937
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1938
|
+
quotaUser?: string;
|
|
1939
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1940
|
+
upload_protocol?: string;
|
|
1941
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1942
|
+
uploadType?: string;
|
|
1943
|
+
}): Request<{}>;
|
|
1944
|
+
/** Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect. */
|
|
1945
|
+
get(request?: {
|
|
1946
|
+
/** V1 error format. */
|
|
1947
|
+
'$.xgafv'?: string;
|
|
1948
|
+
/** OAuth access token. */
|
|
1949
|
+
access_token?: string;
|
|
1950
|
+
/** Data format for response. */
|
|
1951
|
+
alt?: string;
|
|
1952
|
+
/** JSONP */
|
|
1953
|
+
callback?: string;
|
|
1954
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1955
|
+
fields?: string;
|
|
1956
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1957
|
+
key?: string;
|
|
1958
|
+
/** Required. The name of the account to retrieve. Format: `accounts/{account}` */
|
|
1959
|
+
name: string;
|
|
1960
|
+
/** OAuth 2.0 token for the current user. */
|
|
1961
|
+
oauth_token?: string;
|
|
1962
|
+
/** Returns response with indentations and line breaks. */
|
|
1963
|
+
prettyPrint?: boolean;
|
|
1964
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1965
|
+
quotaUser?: string;
|
|
1966
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1967
|
+
upload_protocol?: string;
|
|
1968
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1969
|
+
uploadType?: string;
|
|
1970
|
+
}): Request<Account>;
|
|
1971
|
+
/** Retrieves the business identity of an account. */
|
|
1972
|
+
getBusinessIdentity(request?: {
|
|
1973
|
+
/** V1 error format. */
|
|
1974
|
+
'$.xgafv'?: string;
|
|
1975
|
+
/** OAuth access token. */
|
|
1976
|
+
access_token?: string;
|
|
1977
|
+
/** Data format for response. */
|
|
1978
|
+
alt?: string;
|
|
1979
|
+
/** JSONP */
|
|
1980
|
+
callback?: string;
|
|
1981
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1982
|
+
fields?: string;
|
|
1983
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1984
|
+
key?: string;
|
|
1985
|
+
/** Required. The resource name of the business identity. Format: `accounts/{account}/businessIdentity` */
|
|
1986
|
+
name: string;
|
|
1987
|
+
/** OAuth 2.0 token for the current user. */
|
|
1988
|
+
oauth_token?: string;
|
|
1989
|
+
/** Returns response with indentations and line breaks. */
|
|
1990
|
+
prettyPrint?: boolean;
|
|
1991
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1992
|
+
quotaUser?: string;
|
|
1993
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1994
|
+
upload_protocol?: string;
|
|
1995
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1996
|
+
uploadType?: string;
|
|
1997
|
+
}): Request<BusinessIdentity>;
|
|
1998
|
+
/** Retrieves the business info of an account. */
|
|
1999
|
+
getBusinessInfo(request?: {
|
|
2000
|
+
/** V1 error format. */
|
|
2001
|
+
'$.xgafv'?: string;
|
|
2002
|
+
/** OAuth access token. */
|
|
2003
|
+
access_token?: string;
|
|
2004
|
+
/** Data format for response. */
|
|
2005
|
+
alt?: string;
|
|
2006
|
+
/** JSONP */
|
|
2007
|
+
callback?: string;
|
|
2008
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2009
|
+
fields?: string;
|
|
2010
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2011
|
+
key?: string;
|
|
2012
|
+
/** Required. The resource name of the business info. Format: `accounts/{account}/businessInfo` */
|
|
2013
|
+
name: string;
|
|
2014
|
+
/** OAuth 2.0 token for the current user. */
|
|
2015
|
+
oauth_token?: string;
|
|
2016
|
+
/** Returns response with indentations and line breaks. */
|
|
2017
|
+
prettyPrint?: boolean;
|
|
2018
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2019
|
+
quotaUser?: string;
|
|
2020
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2021
|
+
upload_protocol?: string;
|
|
2022
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2023
|
+
uploadType?: string;
|
|
2024
|
+
}): Request<BusinessInfo>;
|
|
2025
|
+
/** Retrieves a store's homepage. */
|
|
2026
|
+
getHomepage(request?: {
|
|
2027
|
+
/** V1 error format. */
|
|
2028
|
+
'$.xgafv'?: string;
|
|
2029
|
+
/** OAuth access token. */
|
|
2030
|
+
access_token?: string;
|
|
2031
|
+
/** Data format for response. */
|
|
2032
|
+
alt?: string;
|
|
2033
|
+
/** JSONP */
|
|
2034
|
+
callback?: string;
|
|
2035
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2036
|
+
fields?: string;
|
|
2037
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2038
|
+
key?: string;
|
|
2039
|
+
/** Required. The name of the homepage to retrieve. Format: `accounts/{account}/homepage` */
|
|
2040
|
+
name: string;
|
|
2041
|
+
/** OAuth 2.0 token for the current user. */
|
|
2042
|
+
oauth_token?: string;
|
|
2043
|
+
/** Returns response with indentations and line breaks. */
|
|
2044
|
+
prettyPrint?: boolean;
|
|
2045
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2046
|
+
quotaUser?: string;
|
|
2047
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2048
|
+
upload_protocol?: string;
|
|
2049
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2050
|
+
uploadType?: string;
|
|
2051
|
+
}): Request<Homepage>;
|
|
2052
|
+
/** Retrieve shipping setting information. */
|
|
2053
|
+
getShippingSettings(request?: {
|
|
2054
|
+
/** V1 error format. */
|
|
2055
|
+
'$.xgafv'?: string;
|
|
2056
|
+
/** OAuth access token. */
|
|
2057
|
+
access_token?: string;
|
|
2058
|
+
/** Data format for response. */
|
|
2059
|
+
alt?: string;
|
|
2060
|
+
/** JSONP */
|
|
2061
|
+
callback?: string;
|
|
2062
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2063
|
+
fields?: string;
|
|
2064
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2065
|
+
key?: string;
|
|
2066
|
+
/** Required. The name of the shipping setting to retrieve. Format: `accounts/{account}/shippingsetting` */
|
|
2067
|
+
name: string;
|
|
2068
|
+
/** OAuth 2.0 token for the current user. */
|
|
2069
|
+
oauth_token?: string;
|
|
2070
|
+
/** Returns response with indentations and line breaks. */
|
|
2071
|
+
prettyPrint?: boolean;
|
|
2072
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2073
|
+
quotaUser?: string;
|
|
2074
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2075
|
+
upload_protocol?: string;
|
|
2076
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2077
|
+
uploadType?: string;
|
|
2078
|
+
}): Request<ShippingSettings>;
|
|
2079
|
+
/** Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. */
|
|
2080
|
+
list(request?: {
|
|
2081
|
+
/** V1 error format. */
|
|
2082
|
+
'$.xgafv'?: string;
|
|
2083
|
+
/** OAuth access token. */
|
|
2084
|
+
access_token?: string;
|
|
2085
|
+
/** Data format for response. */
|
|
2086
|
+
alt?: string;
|
|
2087
|
+
/** JSONP */
|
|
2088
|
+
callback?: string;
|
|
2089
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2090
|
+
fields?: string;
|
|
2091
|
+
/** Optional. Returns only accounts that match the [filter](/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](/merchant/api/guides/accounts/filter-syntax). */
|
|
2092
|
+
filter?: string;
|
|
2093
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2094
|
+
key?: string;
|
|
2095
|
+
/** OAuth 2.0 token for the current user. */
|
|
2096
|
+
oauth_token?: string;
|
|
2097
|
+
/** Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500. */
|
|
2098
|
+
pageSize?: number;
|
|
2099
|
+
/** Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token. */
|
|
2100
|
+
pageToken?: string;
|
|
2101
|
+
/** Returns response with indentations and line breaks. */
|
|
2102
|
+
prettyPrint?: boolean;
|
|
2103
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2104
|
+
quotaUser?: string;
|
|
2105
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2106
|
+
upload_protocol?: string;
|
|
2107
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2108
|
+
uploadType?: string;
|
|
2109
|
+
}): Request<ListAccountsResponse>;
|
|
2110
|
+
/** List all sub-accounts for a given multi client account. This is a convenience wrapper for the more powerful `ListAccounts` method. This method will produce the same results as calling `ListsAccounts` with the following filter: `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))` */
|
|
2111
|
+
listSubaccounts(request?: {
|
|
2112
|
+
/** V1 error format. */
|
|
2113
|
+
'$.xgafv'?: string;
|
|
2114
|
+
/** OAuth access token. */
|
|
2115
|
+
access_token?: string;
|
|
2116
|
+
/** Data format for response. */
|
|
2117
|
+
alt?: string;
|
|
2118
|
+
/** JSONP */
|
|
2119
|
+
callback?: string;
|
|
2120
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2121
|
+
fields?: string;
|
|
2122
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2123
|
+
key?: string;
|
|
2124
|
+
/** OAuth 2.0 token for the current user. */
|
|
2125
|
+
oauth_token?: string;
|
|
2126
|
+
/** Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500. */
|
|
2127
|
+
pageSize?: number;
|
|
2128
|
+
/** Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token. */
|
|
2129
|
+
pageToken?: string;
|
|
2130
|
+
/** Returns response with indentations and line breaks. */
|
|
2131
|
+
prettyPrint?: boolean;
|
|
2132
|
+
/** Required. The parent account. Format: `accounts/{account}` */
|
|
2133
|
+
provider: string;
|
|
2134
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2135
|
+
quotaUser?: string;
|
|
2136
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2137
|
+
upload_protocol?: string;
|
|
2138
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2139
|
+
uploadType?: string;
|
|
2140
|
+
}): Request<ListSubAccountsResponse>;
|
|
2141
|
+
/** Updates an account regardless of its type: standalone, MCA or sub-account. Executing this method requires admin access. */
|
|
2142
|
+
patch(request: {
|
|
2143
|
+
/** V1 error format. */
|
|
2144
|
+
'$.xgafv'?: string;
|
|
2145
|
+
/** OAuth access token. */
|
|
2146
|
+
access_token?: string;
|
|
2147
|
+
/** Data format for response. */
|
|
2148
|
+
alt?: string;
|
|
2149
|
+
/** JSONP */
|
|
2150
|
+
callback?: string;
|
|
2151
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2152
|
+
fields?: string;
|
|
2153
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2154
|
+
key?: string;
|
|
2155
|
+
/** Identifier. The resource name of the account. Format: `accounts/{account}` */
|
|
2156
|
+
name: string;
|
|
2157
|
+
/** OAuth 2.0 token for the current user. */
|
|
2158
|
+
oauth_token?: string;
|
|
2159
|
+
/** Returns response with indentations and line breaks. */
|
|
2160
|
+
prettyPrint?: boolean;
|
|
2161
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2162
|
+
quotaUser?: string;
|
|
2163
|
+
/** Required. List of fields being updated. */
|
|
2164
|
+
updateMask?: string;
|
|
2165
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2166
|
+
upload_protocol?: string;
|
|
2167
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2168
|
+
uploadType?: string;
|
|
2169
|
+
/** Request body */
|
|
2170
|
+
resource: Account;
|
|
2171
|
+
}): Request<Account>;
|
|
2172
|
+
patch(
|
|
2173
|
+
request: {
|
|
2174
|
+
/** V1 error format. */
|
|
2175
|
+
'$.xgafv'?: string;
|
|
2176
|
+
/** OAuth access token. */
|
|
2177
|
+
access_token?: string;
|
|
2178
|
+
/** Data format for response. */
|
|
2179
|
+
alt?: string;
|
|
2180
|
+
/** JSONP */
|
|
2181
|
+
callback?: string;
|
|
2182
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2183
|
+
fields?: string;
|
|
2184
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2185
|
+
key?: string;
|
|
2186
|
+
/** Identifier. The resource name of the account. Format: `accounts/{account}` */
|
|
2187
|
+
name: string;
|
|
2188
|
+
/** OAuth 2.0 token for the current user. */
|
|
2189
|
+
oauth_token?: string;
|
|
2190
|
+
/** Returns response with indentations and line breaks. */
|
|
2191
|
+
prettyPrint?: boolean;
|
|
2192
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2193
|
+
quotaUser?: string;
|
|
2194
|
+
/** Required. List of fields being updated. */
|
|
2195
|
+
updateMask?: string;
|
|
2196
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2197
|
+
upload_protocol?: string;
|
|
2198
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2199
|
+
uploadType?: string;
|
|
2200
|
+
},
|
|
2201
|
+
body: Account
|
|
2202
|
+
): Request<Account>;
|
|
2203
|
+
/** Updates the business identity of an account. Executing this method requires admin access. */
|
|
2204
|
+
updateBusinessIdentity(request: {
|
|
2205
|
+
/** V1 error format. */
|
|
2206
|
+
'$.xgafv'?: string;
|
|
2207
|
+
/** OAuth access token. */
|
|
2208
|
+
access_token?: string;
|
|
2209
|
+
/** Data format for response. */
|
|
2210
|
+
alt?: string;
|
|
2211
|
+
/** JSONP */
|
|
2212
|
+
callback?: string;
|
|
2213
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2214
|
+
fields?: string;
|
|
2215
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2216
|
+
key?: string;
|
|
2217
|
+
/** Identifier. The resource name of the business identity. Format: `accounts/{account}/businessIdentity` */
|
|
2218
|
+
name: string;
|
|
2219
|
+
/** OAuth 2.0 token for the current user. */
|
|
2220
|
+
oauth_token?: string;
|
|
2221
|
+
/** Returns response with indentations and line breaks. */
|
|
2222
|
+
prettyPrint?: boolean;
|
|
2223
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2224
|
+
quotaUser?: string;
|
|
2225
|
+
/** Required. List of fields being updated. */
|
|
2226
|
+
updateMask?: string;
|
|
2227
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2228
|
+
upload_protocol?: string;
|
|
2229
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2230
|
+
uploadType?: string;
|
|
2231
|
+
/** Request body */
|
|
2232
|
+
resource: BusinessIdentity;
|
|
2233
|
+
}): Request<BusinessIdentity>;
|
|
2234
|
+
updateBusinessIdentity(
|
|
2235
|
+
request: {
|
|
2236
|
+
/** V1 error format. */
|
|
2237
|
+
'$.xgafv'?: string;
|
|
2238
|
+
/** OAuth access token. */
|
|
2239
|
+
access_token?: string;
|
|
2240
|
+
/** Data format for response. */
|
|
2241
|
+
alt?: string;
|
|
2242
|
+
/** JSONP */
|
|
2243
|
+
callback?: string;
|
|
2244
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2245
|
+
fields?: string;
|
|
2246
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2247
|
+
key?: string;
|
|
2248
|
+
/** Identifier. The resource name of the business identity. Format: `accounts/{account}/businessIdentity` */
|
|
2249
|
+
name: string;
|
|
2250
|
+
/** OAuth 2.0 token for the current user. */
|
|
2251
|
+
oauth_token?: string;
|
|
2252
|
+
/** Returns response with indentations and line breaks. */
|
|
2253
|
+
prettyPrint?: boolean;
|
|
2254
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2255
|
+
quotaUser?: string;
|
|
2256
|
+
/** Required. List of fields being updated. */
|
|
2257
|
+
updateMask?: string;
|
|
2258
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2259
|
+
upload_protocol?: string;
|
|
2260
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2261
|
+
uploadType?: string;
|
|
2262
|
+
},
|
|
2263
|
+
body: BusinessIdentity
|
|
2264
|
+
): Request<BusinessIdentity>;
|
|
2265
|
+
/** Updates the business info of an account. Executing this method requires admin access. */
|
|
2266
|
+
updateBusinessInfo(request: {
|
|
2267
|
+
/** V1 error format. */
|
|
2268
|
+
'$.xgafv'?: string;
|
|
2269
|
+
/** OAuth access token. */
|
|
2270
|
+
access_token?: string;
|
|
2271
|
+
/** Data format for response. */
|
|
2272
|
+
alt?: string;
|
|
2273
|
+
/** JSONP */
|
|
2274
|
+
callback?: string;
|
|
2275
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2276
|
+
fields?: string;
|
|
2277
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2278
|
+
key?: string;
|
|
2279
|
+
/** Identifier. The resource name of the business info. Format: `accounts/{account}/businessInfo` */
|
|
2280
|
+
name: string;
|
|
2281
|
+
/** OAuth 2.0 token for the current user. */
|
|
2282
|
+
oauth_token?: string;
|
|
2283
|
+
/** Returns response with indentations and line breaks. */
|
|
2284
|
+
prettyPrint?: boolean;
|
|
2285
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2286
|
+
quotaUser?: string;
|
|
2287
|
+
/** Required. List of fields being updated. */
|
|
2288
|
+
updateMask?: string;
|
|
2289
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2290
|
+
upload_protocol?: string;
|
|
2291
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2292
|
+
uploadType?: string;
|
|
2293
|
+
/** Request body */
|
|
2294
|
+
resource: BusinessInfo;
|
|
2295
|
+
}): Request<BusinessInfo>;
|
|
2296
|
+
updateBusinessInfo(
|
|
2297
|
+
request: {
|
|
2298
|
+
/** V1 error format. */
|
|
2299
|
+
'$.xgafv'?: string;
|
|
2300
|
+
/** OAuth access token. */
|
|
2301
|
+
access_token?: string;
|
|
2302
|
+
/** Data format for response. */
|
|
2303
|
+
alt?: string;
|
|
2304
|
+
/** JSONP */
|
|
2305
|
+
callback?: string;
|
|
2306
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2307
|
+
fields?: string;
|
|
2308
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2309
|
+
key?: string;
|
|
2310
|
+
/** Identifier. The resource name of the business info. Format: `accounts/{account}/businessInfo` */
|
|
2311
|
+
name: string;
|
|
2312
|
+
/** OAuth 2.0 token for the current user. */
|
|
2313
|
+
oauth_token?: string;
|
|
2314
|
+
/** Returns response with indentations and line breaks. */
|
|
2315
|
+
prettyPrint?: boolean;
|
|
2316
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2317
|
+
quotaUser?: string;
|
|
2318
|
+
/** Required. List of fields being updated. */
|
|
2319
|
+
updateMask?: string;
|
|
2320
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2321
|
+
upload_protocol?: string;
|
|
2322
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2323
|
+
uploadType?: string;
|
|
2324
|
+
},
|
|
2325
|
+
body: BusinessInfo
|
|
2326
|
+
): Request<BusinessInfo>;
|
|
2327
|
+
/** Updates a store's homepage. Executing this method requires admin access. */
|
|
2328
|
+
updateHomepage(request: {
|
|
2329
|
+
/** V1 error format. */
|
|
2330
|
+
'$.xgafv'?: string;
|
|
2331
|
+
/** OAuth access token. */
|
|
2332
|
+
access_token?: string;
|
|
2333
|
+
/** Data format for response. */
|
|
2334
|
+
alt?: string;
|
|
2335
|
+
/** JSONP */
|
|
2336
|
+
callback?: string;
|
|
2337
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2338
|
+
fields?: string;
|
|
2339
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2340
|
+
key?: string;
|
|
2341
|
+
/** Identifier. The resource name of the store's homepage. Format: `accounts/{account}/homepage` */
|
|
2342
|
+
name: string;
|
|
2343
|
+
/** OAuth 2.0 token for the current user. */
|
|
2344
|
+
oauth_token?: string;
|
|
2345
|
+
/** Returns response with indentations and line breaks. */
|
|
2346
|
+
prettyPrint?: boolean;
|
|
2347
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2348
|
+
quotaUser?: string;
|
|
2349
|
+
/** Required. List of fields being updated. */
|
|
2350
|
+
updateMask?: string;
|
|
2351
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2352
|
+
upload_protocol?: string;
|
|
2353
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2354
|
+
uploadType?: string;
|
|
2355
|
+
/** Request body */
|
|
2356
|
+
resource: Homepage;
|
|
2357
|
+
}): Request<Homepage>;
|
|
2358
|
+
updateHomepage(
|
|
2359
|
+
request: {
|
|
2360
|
+
/** V1 error format. */
|
|
2361
|
+
'$.xgafv'?: string;
|
|
2362
|
+
/** OAuth access token. */
|
|
2363
|
+
access_token?: string;
|
|
2364
|
+
/** Data format for response. */
|
|
2365
|
+
alt?: string;
|
|
2366
|
+
/** JSONP */
|
|
2367
|
+
callback?: string;
|
|
2368
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2369
|
+
fields?: string;
|
|
2370
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2371
|
+
key?: string;
|
|
2372
|
+
/** Identifier. The resource name of the store's homepage. Format: `accounts/{account}/homepage` */
|
|
2373
|
+
name: string;
|
|
2374
|
+
/** OAuth 2.0 token for the current user. */
|
|
2375
|
+
oauth_token?: string;
|
|
2376
|
+
/** Returns response with indentations and line breaks. */
|
|
2377
|
+
prettyPrint?: boolean;
|
|
2378
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2379
|
+
quotaUser?: string;
|
|
2380
|
+
/** Required. List of fields being updated. */
|
|
2381
|
+
updateMask?: string;
|
|
2382
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2383
|
+
upload_protocol?: string;
|
|
2384
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2385
|
+
uploadType?: string;
|
|
2386
|
+
},
|
|
2387
|
+
body: Homepage
|
|
2388
|
+
): Request<Homepage>;
|
|
2389
|
+
accounttax: AccounttaxResource;
|
|
2390
|
+
homepage: HomepageResource;
|
|
2391
|
+
issues: IssuesResource;
|
|
2392
|
+
onlineReturnPolicies: OnlineReturnPoliciesResource;
|
|
2393
|
+
programs: ProgramsResource;
|
|
2394
|
+
regions: RegionsResource;
|
|
2395
|
+
shippingSettings: ShippingSettingsResource;
|
|
2396
|
+
termsOfServiceAgreementStates: TermsOfServiceAgreementStatesResource;
|
|
2397
|
+
users: UsersResource;
|
|
2398
|
+
}
|
|
2399
|
+
interface TermsOfServiceResource {
|
|
2400
|
+
/** Accepts a `TermsOfService`. Executing this method requires admin access. */
|
|
2401
|
+
accept(request?: {
|
|
2402
|
+
/** V1 error format. */
|
|
2403
|
+
'$.xgafv'?: string;
|
|
2404
|
+
/** OAuth access token. */
|
|
2405
|
+
access_token?: string;
|
|
2406
|
+
/** Required. The account for which to accept the ToS. */
|
|
2407
|
+
account?: string;
|
|
2408
|
+
/** Data format for response. */
|
|
2409
|
+
alt?: string;
|
|
2410
|
+
/** JSONP */
|
|
2411
|
+
callback?: string;
|
|
2412
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2413
|
+
fields?: string;
|
|
2414
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2415
|
+
key?: string;
|
|
2416
|
+
/** Required. The resource name of the terms of service version. Format: `termsOfService/{version}` */
|
|
2417
|
+
name: string;
|
|
2418
|
+
/** OAuth 2.0 token for the current user. */
|
|
2419
|
+
oauth_token?: string;
|
|
2420
|
+
/** Returns response with indentations and line breaks. */
|
|
2421
|
+
prettyPrint?: boolean;
|
|
2422
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2423
|
+
quotaUser?: string;
|
|
2424
|
+
/** 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. */
|
|
2425
|
+
regionCode?: string;
|
|
2426
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2427
|
+
upload_protocol?: string;
|
|
2428
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2429
|
+
uploadType?: string;
|
|
2430
|
+
}): Request<{}>;
|
|
2431
|
+
/** Retrieves the `TermsOfService` associated with the provided version. */
|
|
2432
|
+
get(request?: {
|
|
2433
|
+
/** V1 error format. */
|
|
2434
|
+
'$.xgafv'?: string;
|
|
2435
|
+
/** OAuth access token. */
|
|
2436
|
+
access_token?: string;
|
|
2437
|
+
/** Data format for response. */
|
|
2438
|
+
alt?: string;
|
|
2439
|
+
/** JSONP */
|
|
2440
|
+
callback?: string;
|
|
2441
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2442
|
+
fields?: string;
|
|
2443
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2444
|
+
key?: string;
|
|
2445
|
+
/** Required. The resource name of the terms of service version. Format: `termsOfService/{version}` */
|
|
2446
|
+
name: string;
|
|
2447
|
+
/** OAuth 2.0 token for the current user. */
|
|
2448
|
+
oauth_token?: string;
|
|
2449
|
+
/** Returns response with indentations and line breaks. */
|
|
2450
|
+
prettyPrint?: boolean;
|
|
2451
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2452
|
+
quotaUser?: string;
|
|
2453
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2454
|
+
upload_protocol?: string;
|
|
2455
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2456
|
+
uploadType?: string;
|
|
2457
|
+
}): Request<TermsOfService>;
|
|
2458
|
+
/** Retrieves the latest version of the `TermsOfService` for a given `kind` and `region_code`. */
|
|
2459
|
+
retrieveLatest(request?: {
|
|
2460
|
+
/** V1 error format. */
|
|
2461
|
+
'$.xgafv'?: string;
|
|
2462
|
+
/** OAuth access token. */
|
|
2463
|
+
access_token?: string;
|
|
2464
|
+
/** Data format for response. */
|
|
2465
|
+
alt?: string;
|
|
2466
|
+
/** JSONP */
|
|
2467
|
+
callback?: string;
|
|
2468
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2469
|
+
fields?: string;
|
|
2470
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2471
|
+
key?: string;
|
|
2472
|
+
/** The Kind this terms of service version applies to. */
|
|
2473
|
+
kind?: string;
|
|
2474
|
+
/** OAuth 2.0 token for the current user. */
|
|
2475
|
+
oauth_token?: string;
|
|
2476
|
+
/** Returns response with indentations and line breaks. */
|
|
2477
|
+
prettyPrint?: boolean;
|
|
2478
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2479
|
+
quotaUser?: string;
|
|
2480
|
+
/** 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. */
|
|
2481
|
+
regionCode?: string;
|
|
2482
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2483
|
+
upload_protocol?: string;
|
|
2484
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2485
|
+
uploadType?: string;
|
|
2486
|
+
}): Request<TermsOfService>;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
const accounts: AccountsResource;
|
|
2490
|
+
|
|
2491
|
+
const termsOfService: TermsOfServiceResource;
|
|
2492
|
+
}
|
|
2493
|
+
}
|