@maxim_mazurok/gapi.client.merchantapi-accounts_v1 0.0.20250804
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 +4004 -0
- package/package.json +20 -0
- package/readme.md +116 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,4004 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Merchant API accounts_v1 0.0 */
|
|
2
|
+
// Project: https://developers.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_v1
|
|
12
|
+
// Revision: 20250804
|
|
13
|
+
|
|
14
|
+
/// <reference types="gapi.client" />
|
|
15
|
+
|
|
16
|
+
declare namespace gapi.client {
|
|
17
|
+
/** Load Merchant API accounts_v1 */
|
|
18
|
+
function load(
|
|
19
|
+
urlOrObject: 'https://merchantapi.googleapis.com/$discovery/rest?version=accounts_v1',
|
|
20
|
+
): Promise<void>;
|
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
22
|
+
function load(name: 'merchantapi', version: 'accounts_v1'): Promise<void>;
|
|
23
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
24
|
+
function load(
|
|
25
|
+
name: 'merchantapi',
|
|
26
|
+
version: 'accounts_v1',
|
|
27
|
+
callback: () => any,
|
|
28
|
+
): void;
|
|
29
|
+
|
|
30
|
+
namespace merchantapi {
|
|
31
|
+
interface About {
|
|
32
|
+
/** Output only. The state of the URI. */
|
|
33
|
+
state?: string;
|
|
34
|
+
/** Required. The about page URI. */
|
|
35
|
+
uri?: string;
|
|
36
|
+
}
|
|
37
|
+
interface Accepted {
|
|
38
|
+
/** Required. The account where the acceptance was recorded. This can be the account itself or, in the case of subaccounts, the advanced account. */
|
|
39
|
+
acceptedBy?: string;
|
|
40
|
+
/** Required. The accepted termsOfService. */
|
|
41
|
+
termsOfService?: string;
|
|
42
|
+
/** Optional. When set, it states that the accepted `TermsOfService` is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required `TermsOfService` is found in the `Required` message. */
|
|
43
|
+
validUntil?: Date;
|
|
44
|
+
}
|
|
45
|
+
interface AcceptTermsOfServiceResponse {
|
|
46
|
+
/** The agreement state after accepting the ToS. */
|
|
47
|
+
termsOfServiceAgreementState?: TermsOfServiceAgreementState;
|
|
48
|
+
}
|
|
49
|
+
interface Account {
|
|
50
|
+
/** Output only. The ID of the account. */
|
|
51
|
+
accountId?: string;
|
|
52
|
+
/** 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. */
|
|
53
|
+
accountName?: string;
|
|
54
|
+
/** Optional. Whether this account contains adult content. */
|
|
55
|
+
adultContent?: boolean;
|
|
56
|
+
/** Required. The account's [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`. */
|
|
57
|
+
languageCode?: string;
|
|
58
|
+
/** Identifier. The resource name of the account. Format: `accounts/{account}` */
|
|
59
|
+
name?: string;
|
|
60
|
+
/** Output only. Whether this is a test account. */
|
|
61
|
+
testAccount?: boolean;
|
|
62
|
+
/** 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. The `version` field is not supported, won't be set in responses and will be silently ignored if specified in requests. */
|
|
63
|
+
timeZone?: TimeZone;
|
|
64
|
+
}
|
|
65
|
+
interface AccountAggregation {}
|
|
66
|
+
interface AccountIssue {
|
|
67
|
+
/** Further localized details about the issue. */
|
|
68
|
+
detail?: string;
|
|
69
|
+
/** Link to Merchant Center Help Center providing further information about the issue and how to fix it. */
|
|
70
|
+
documentationUri?: string;
|
|
71
|
+
/** The impact this issue has on various destinations. */
|
|
72
|
+
impactedDestinations?: ImpactedDestination[];
|
|
73
|
+
/** Identifier. The resource name of the account issue. Format: `accounts/{account}/issues/{id}`. For example, `accounts/123456/issues/misrepresentation-of-self-or-products-unacceptable-business-practice-policy`. */
|
|
74
|
+
name?: string;
|
|
75
|
+
/** The overall severity of the issue. */
|
|
76
|
+
severity?: string;
|
|
77
|
+
/** The localized title of the issue. */
|
|
78
|
+
title?: string;
|
|
79
|
+
}
|
|
80
|
+
interface AccountManagement {}
|
|
81
|
+
interface AccountRelationship {
|
|
82
|
+
/** Optional. An optional alias you can assign to this account relationship. This alias acts as a convenient identifier for your own reference and management. It must be unique among all your account relationships with the same provider. For example, you might use `account_id_alias` to assign a friendly name to this relationship for easier identification in your systems. */
|
|
83
|
+
accountIdAlias?: string;
|
|
84
|
+
/** Identifier. The resource name of the account relationship. Format: `accounts/{account}/relationships/{relationship}`. For example, `accounts/123456/relationships/567890`. */
|
|
85
|
+
name?: string;
|
|
86
|
+
/** Immutable. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). */
|
|
87
|
+
provider?: string;
|
|
88
|
+
/** Output only. The human-readable display name of the provider account. */
|
|
89
|
+
providerDisplayName?: string;
|
|
90
|
+
}
|
|
91
|
+
interface AccountService {
|
|
92
|
+
/** Service type for account aggregation. This enables the provider, which is an advanced account, to manage multiple sub-accounts (client accounts). Through this service, the advanced account provider can perform administrative and operational tasks across all linked sub-accounts. This is useful for agencies, aggregators, or large retailers that need centralized control over many Merchant Center accounts. */
|
|
93
|
+
accountAggregation?: any;
|
|
94
|
+
/** Service type for account management. Enables the provider to perform administrative actions on the business's account, such as configuring account settings, managing users, or updating business information. */
|
|
95
|
+
accountManagement?: any;
|
|
96
|
+
/** Service type for managing advertising campaigns. Grants the provider access to create and manage the business's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance. */
|
|
97
|
+
campaignsManagement?: any;
|
|
98
|
+
/** Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider. */
|
|
99
|
+
externalAccountId?: string;
|
|
100
|
+
/** Output only. Information about the state of the service in terms of establishing it (e.g. is it pending approval or approved). */
|
|
101
|
+
handshake?: Handshake;
|
|
102
|
+
/** Service type for local listings management. The business group associated with the external account id will be used to provide local inventory to this Merchant Center account. */
|
|
103
|
+
localListingManagement?: any;
|
|
104
|
+
/** Output only. Whether the service is mutable (e.g. through Approve / Reject RPCs). A service that was created through another system or API might be immutable. */
|
|
105
|
+
mutability?: string;
|
|
106
|
+
/** Identifier. The resource name of the account service. Format: `accounts/{account}/services/{service}` */
|
|
107
|
+
name?: string;
|
|
108
|
+
/** Service type for managing products. This allows the provider to handle product data on behalf of the business, including reading and writing product listings. It's commonly used when the provider offers inventory management or catalog synchronization services to keep the business's product information up-to-date across platforms. */
|
|
109
|
+
productsManagement?: any;
|
|
110
|
+
/** Output only. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). */
|
|
111
|
+
provider?: string;
|
|
112
|
+
/** Output only. The human-readable display name of the provider account. */
|
|
113
|
+
providerDisplayName?: string;
|
|
114
|
+
}
|
|
115
|
+
interface AddAccountService {
|
|
116
|
+
/** The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation. */
|
|
117
|
+
accountAggregation?: any;
|
|
118
|
+
/** Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). */
|
|
119
|
+
provider?: string;
|
|
120
|
+
}
|
|
121
|
+
interface Address {
|
|
122
|
+
/** Required. Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). */
|
|
123
|
+
administrativeArea?: string;
|
|
124
|
+
/** Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs). */
|
|
125
|
+
city?: string;
|
|
126
|
+
/** Required. Postal code or ZIP (For example "94043"). */
|
|
127
|
+
postalCode?: string;
|
|
128
|
+
/** Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (For example "US"). */
|
|
129
|
+
regionCode?: string;
|
|
130
|
+
/** Street-level part of the address. For example: `111w 31st Street`. */
|
|
131
|
+
streetAddress?: string;
|
|
132
|
+
}
|
|
133
|
+
interface AddUser {
|
|
134
|
+
/** Optional. Details about the user to be added. At the moment, only access rights may be specified. */
|
|
135
|
+
user?: User;
|
|
136
|
+
/** Required. The email address of the user (for example, `john.doe@gmail.com`). */
|
|
137
|
+
userId?: string;
|
|
138
|
+
}
|
|
139
|
+
interface ApproveAccountServiceRequest {}
|
|
140
|
+
interface AutofeedSettings {
|
|
141
|
+
/** Output only. Determines whether the business is eligible for being enrolled into an autofeed. */
|
|
142
|
+
eligible?: boolean;
|
|
143
|
+
/** Required. Enables or disables product crawling through the autofeed for the given account. Autofeed accounts must meet [certain conditions](https://support.google.com/merchants/answer/7538732#Configure_automated_feeds_Standard_Experience), which can be checked through the `eligible` field. The account must **not** be a marketplace. When the autofeed is enabled for the first time, the products usually appear instantly. When re-enabling, it might take up to 24 hours for products to appear. */
|
|
144
|
+
enableProducts?: boolean;
|
|
145
|
+
/** Identifier. The resource name of the autofeed settings. Format: `accounts/{account}/autofeedSettings`. */
|
|
146
|
+
name?: string;
|
|
147
|
+
}
|
|
148
|
+
interface AutomaticImageImprovements {
|
|
149
|
+
/** Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator. */
|
|
150
|
+
accountImageImprovementsSettings?: ImageImprovementsAccountLevelSettings;
|
|
151
|
+
/** Output only. The effective value of allow_automatic_image_improvements. If account_image_improvements_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. Read-only. */
|
|
152
|
+
effectiveAllowAutomaticImageImprovements?: boolean;
|
|
153
|
+
}
|
|
154
|
+
interface AutomaticImprovements {
|
|
155
|
+
/** This improvement will attempt to automatically correct submitted images if they don't meet the [image requirements](https://support.google.com/merchants/answer/6324350), for example, removing overlays. If successful, the image will be replaced and approved. This improvement is only applied to images of disapproved offers. For more information see: [Automatic image improvements](https://support.google.com/merchants/answer/9242973) This field is only updated (cleared) if provided in the update mask. */
|
|
156
|
+
imageImprovements?: AutomaticImageImprovements;
|
|
157
|
+
/** Turning on [item updates](https://support.google.com/merchants/answer/3246284) allows Google to automatically update items for you. When item updates are on, Google uses the structured data markup on the website and advanced data extractors to update the price and availability of the items. When the item updates are off, items with mismatched data aren't shown. This field is only updated (cleared) if provided in the update mask. */
|
|
158
|
+
itemUpdates?: AutomaticItemUpdates;
|
|
159
|
+
/** Identifier. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements`. */
|
|
160
|
+
name?: string;
|
|
161
|
+
/** Not available for [advanced accounts](https://support.google.com/merchants/answer/188487). By turning on [automatic shipping improvements](https://support.google.com/merchants/answer/10027038), you are allowing Google to improve the accuracy of your delivery times shown to shoppers using Google. More accurate delivery times, especially when faster, typically lead to better conversion rates. Google will improve your estimated delivery times based on various factors: * Delivery address of an order * Current handling time and shipping time settings * Estimated weekdays or business days * Parcel tracking data This field is only updated (cleared) if provided in the update mask. */
|
|
162
|
+
shippingImprovements?: AutomaticShippingImprovements;
|
|
163
|
+
}
|
|
164
|
+
interface AutomaticItemUpdates {
|
|
165
|
+
/** Optional. Determines which attributes of the items should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator. */
|
|
166
|
+
accountItemUpdatesSettings?: ItemUpdatesAccountLevelSettings;
|
|
167
|
+
/** Output only. The effective value of allow_availability_updates. If account_item_updates_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. The default value is true if no settings are present. Read-only. */
|
|
168
|
+
effectiveAllowAvailabilityUpdates?: boolean;
|
|
169
|
+
/** Output only. The effective value of allow_condition_updates. If account_item_updates_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. The default value is true if no settings are present. Read-only. */
|
|
170
|
+
effectiveAllowConditionUpdates?: boolean;
|
|
171
|
+
/** Output only. The effective value of allow_price_updates. If account_item_updates_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. The default value is true if no settings are present. Read-only. */
|
|
172
|
+
effectiveAllowPriceUpdates?: boolean;
|
|
173
|
+
/** Output only. The effective value of allow_strict_availability_updates. If account_item_updates_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. The default value is true if no settings are present. Read-only. */
|
|
174
|
+
effectiveAllowStrictAvailabilityUpdates?: boolean;
|
|
175
|
+
}
|
|
176
|
+
interface AutomaticShippingImprovements {
|
|
177
|
+
/** Enables automatic shipping improvements. */
|
|
178
|
+
allowShippingImprovements?: boolean;
|
|
179
|
+
}
|
|
180
|
+
interface BusinessDayConfig {
|
|
181
|
+
/** Required. Regular business days. May not be empty. */
|
|
182
|
+
businessDays?: string[];
|
|
183
|
+
}
|
|
184
|
+
interface BusinessIdentity {
|
|
185
|
+
/** Optional. Specifies whether the business identifies itself as being black-owned. This optional field will only be available for businesses with the business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. */
|
|
186
|
+
blackOwned?: IdentityAttribute;
|
|
187
|
+
/** Optional. Specifies whether the business identifies itself as being latino-owned. This optional field will only be available for businesses with the business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. */
|
|
188
|
+
latinoOwned?: IdentityAttribute;
|
|
189
|
+
/** Identifier. The resource name of the business identity. Format: `accounts/{account}/businessIdentity` */
|
|
190
|
+
name?: string;
|
|
191
|
+
/** Required. Whether the identity attributes may be used for promotions. */
|
|
192
|
+
promotionsConsent?: string;
|
|
193
|
+
/** Optional. Specifies whether the business identifies itself as a small business. This optional field will only be available for businesses with a business country set to `US`. It is also not applicable for marketplaces. */
|
|
194
|
+
smallBusiness?: IdentityAttribute;
|
|
195
|
+
/** Optional. Specifies whether the business identifies itself as being veteran-owned. This optional field will only be available for businesses with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. */
|
|
196
|
+
veteranOwned?: IdentityAttribute;
|
|
197
|
+
/** Optional. Specifies whether the business identifies itself as being women-owned. This optional field will only be available for businesses with a business country set to `US`. It is also not applicable for marketplaces or marketplace sellers. */
|
|
198
|
+
womenOwned?: IdentityAttribute;
|
|
199
|
+
}
|
|
200
|
+
interface BusinessInfo {
|
|
201
|
+
/** Optional. The address of the business. Only `region_code`, `address_lines`, `postal_code`, `administrative_area` and `locality` fields are supported. All other fields are ignored. */
|
|
202
|
+
address?: PostalAddress;
|
|
203
|
+
/** Optional. The customer service of the business. */
|
|
204
|
+
customerService?: CustomerService;
|
|
205
|
+
/** Optional. The 10-digit [Korean business registration number](https://support.google.com/merchants/answer/9037766) separated with dashes in the format: XXX-XX-XXXXX. */
|
|
206
|
+
koreanBusinessRegistrationNumber?: string;
|
|
207
|
+
/** Identifier. The resource name of the business info. Format: `accounts/{account}/businessInfo` */
|
|
208
|
+
name?: string;
|
|
209
|
+
/** Output only. The phone number of the business. */
|
|
210
|
+
phone?: PhoneNumber;
|
|
211
|
+
/** Output only. The phone verification state of the business. */
|
|
212
|
+
phoneVerificationState?: string;
|
|
213
|
+
}
|
|
214
|
+
interface CampaignsManagement {}
|
|
215
|
+
interface CarrierRate {
|
|
216
|
+
/** Required. Carrier service, such as `"UPS"` or `"Fedex"`. */
|
|
217
|
+
carrier?: string;
|
|
218
|
+
/** Required. Carrier service, such as `"ground"` or `"2 days"`. */
|
|
219
|
+
carrierService?: string;
|
|
220
|
+
/** 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. */
|
|
221
|
+
flatAdjustment?: Price;
|
|
222
|
+
/** Required. Name of the carrier rate. Must be unique per rate group. */
|
|
223
|
+
name?: string;
|
|
224
|
+
/** Required. Shipping origin for this carrier rate. */
|
|
225
|
+
originPostalCode?: string;
|
|
226
|
+
/** 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%. */
|
|
227
|
+
percentageAdjustment?: string;
|
|
228
|
+
}
|
|
229
|
+
interface CheckoutSettings {
|
|
230
|
+
/** Output only. The effective value of enrollment_state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers). */
|
|
231
|
+
effectiveEnrollmentState?: string;
|
|
232
|
+
/** Output only. The effective value of `review_state` for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers). */
|
|
233
|
+
effectiveReviewState?: string;
|
|
234
|
+
/** Output only. The effective value of `uri_settings` for a given merchant. If account level settings are present then this value will be a copy of url settings. Otherwise, it will have the value of the parent account (for only marketplace sellers). */
|
|
235
|
+
effectiveUriSettings?: UriSettings;
|
|
236
|
+
/** Optional. The destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) to which the checkout program applies, valid destination values are `SHOPPING_ADS`, `FREE_LISTINGS` */
|
|
237
|
+
eligibleDestinations?: string[];
|
|
238
|
+
/** Output only. Reflects the merchant enrollment state in `Checkout` program. */
|
|
239
|
+
enrollmentState?: string;
|
|
240
|
+
/** Identifier. The resource name of the program configuration settings. Format: `accounts/{account}/programs/{program}/checkoutSettings` */
|
|
241
|
+
name?: string;
|
|
242
|
+
/** Output only. Reflects the merchant review state in `Checkout` program. This is set based on the data quality reviews of the URL provided by the merchant. A merchant with enrollment state as `ENROLLED` can be in the following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of `ENROLLED` before a review can begin for the merchant.For more details, check the help center doc. */
|
|
243
|
+
reviewState?: string;
|
|
244
|
+
/** URI settings for cart or checkout URL. */
|
|
245
|
+
uriSettings?: UriSettings;
|
|
246
|
+
}
|
|
247
|
+
interface ClaimHomepageRequest {
|
|
248
|
+
/** Optional. When set to `true`, this option removes any existing claim on the requested website from any other account to the account making the request, effectively replacing the previous claim. */
|
|
249
|
+
overwrite?: boolean;
|
|
250
|
+
}
|
|
251
|
+
interface CreateAndConfigureAccountRequest {
|
|
252
|
+
/** Required. The account to be created. */
|
|
253
|
+
account?: Account;
|
|
254
|
+
/** Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be `account_aggregation` and `accounts.createAndConfigure` method can be used to create a sub-account under an existing advanced account through this method. Additional `account_management` or `product_management` services may be provided. */
|
|
255
|
+
service?: AddAccountService[];
|
|
256
|
+
/** Optional. Users to be added to the account. */
|
|
257
|
+
user?: AddUser[];
|
|
258
|
+
}
|
|
259
|
+
interface CustomerService {
|
|
260
|
+
/** Optional. The email address where customer service may be reached. */
|
|
261
|
+
email?: string;
|
|
262
|
+
/** Optional. The phone number where customer service may be called. */
|
|
263
|
+
phone?: PhoneNumber;
|
|
264
|
+
/** Optional. The URI where customer service may be found. */
|
|
265
|
+
uri?: string;
|
|
266
|
+
}
|
|
267
|
+
interface CutoffConfig {
|
|
268
|
+
/** Time that local delivery ends for the day. */
|
|
269
|
+
localCutoffTime?: LocalCutoffTime;
|
|
270
|
+
/** Businesses 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. */
|
|
271
|
+
noDeliveryPostCutoff?: boolean;
|
|
272
|
+
/** Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with `local_cutoff_time`. */
|
|
273
|
+
storeCloseOffsetHours?: string;
|
|
274
|
+
}
|
|
275
|
+
interface CutoffTime {
|
|
276
|
+
/** Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day. */
|
|
277
|
+
hour?: number;
|
|
278
|
+
/** Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day. */
|
|
279
|
+
minute?: number;
|
|
280
|
+
/** Required. [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids) For example "Europe/Zurich". */
|
|
281
|
+
timeZone?: string;
|
|
282
|
+
}
|
|
283
|
+
interface Date {
|
|
284
|
+
/** 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. */
|
|
285
|
+
day?: number;
|
|
286
|
+
/** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
|
|
287
|
+
month?: number;
|
|
288
|
+
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
|
|
289
|
+
year?: number;
|
|
290
|
+
}
|
|
291
|
+
interface DeliveryTime {
|
|
292
|
+
/** Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. */
|
|
293
|
+
cutoffTime?: CutoffTime;
|
|
294
|
+
/** The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. */
|
|
295
|
+
handlingBusinessDayConfig?: BusinessDayConfig;
|
|
296
|
+
/** 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`. 'min_handling_days' and 'max_handling_days' should be either set or not set at the same time. */
|
|
297
|
+
maxHandlingDays?: number;
|
|
298
|
+
/** 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`. */
|
|
299
|
+
maxTransitDays?: number;
|
|
300
|
+
/** Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. 'min_handling_days' and 'max_handling_days' should be either set or not set at the same time. */
|
|
301
|
+
minHandlingDays?: number;
|
|
302
|
+
/** 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. */
|
|
303
|
+
minTransitDays?: number;
|
|
304
|
+
/** The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. */
|
|
305
|
+
transitBusinessDayConfig?: BusinessDayConfig;
|
|
306
|
+
/** 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. */
|
|
307
|
+
transitTimeTable?: TransitTable;
|
|
308
|
+
/** 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. */
|
|
309
|
+
warehouseBasedDeliveryTimes?: WarehouseBasedDeliveryTime[];
|
|
310
|
+
}
|
|
311
|
+
interface DeveloperRegistration {
|
|
312
|
+
/** Output only. The GCP ids attached to this developer registration */
|
|
313
|
+
gcpIds?: string[];
|
|
314
|
+
/** Identifier. The `name` (ID) of the developer registration. Generated by the Content API upon creation of a new `DeveloperRegistration`. The `account` represents the merchant ID of the merchant that owns the registration. */
|
|
315
|
+
name?: string;
|
|
316
|
+
}
|
|
317
|
+
interface DisableProgramRequest {}
|
|
318
|
+
interface Distance {
|
|
319
|
+
/** Unit can differ based on country, it is parameterized to include miles and kilometers. */
|
|
320
|
+
unit?: string;
|
|
321
|
+
/** Integer value of distance. */
|
|
322
|
+
value?: string;
|
|
323
|
+
}
|
|
324
|
+
interface EmailPreferences {
|
|
325
|
+
/** Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user. */
|
|
326
|
+
name?: string;
|
|
327
|
+
/** Optional. Updates on new features, tips and best practices. */
|
|
328
|
+
newsAndTips?: string;
|
|
329
|
+
}
|
|
330
|
+
interface Empty {}
|
|
331
|
+
interface EnableProgramRequest {}
|
|
332
|
+
interface FindLfpProvidersResponse {
|
|
333
|
+
/** The LFP providers from the specified merchant in the specified country. */
|
|
334
|
+
lfpProviders?: LfpProvider[];
|
|
335
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
336
|
+
nextPageToken?: string;
|
|
337
|
+
}
|
|
338
|
+
interface GbpAccount {
|
|
339
|
+
/** The id of the GBP account. */
|
|
340
|
+
gbpAccountId?: string;
|
|
341
|
+
/** The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account. */
|
|
342
|
+
gbpAccountName?: string;
|
|
343
|
+
/** Number of listings under this account. */
|
|
344
|
+
listingCount?: string;
|
|
345
|
+
/** Identifier. The resource name of the GBP account. Format: `accounts/{account}/gbpAccount/{gbp_account}` */
|
|
346
|
+
name?: string;
|
|
347
|
+
/** The type of the Business Profile. */
|
|
348
|
+
type?: string;
|
|
349
|
+
}
|
|
350
|
+
interface GeoTargetArea {
|
|
351
|
+
/** 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). */
|
|
352
|
+
geotargetCriteriaIds?: string[];
|
|
353
|
+
}
|
|
354
|
+
interface Handshake {
|
|
355
|
+
/** Output only. The most recent account to modify the account service's `approval_status`. */
|
|
356
|
+
actor?: string;
|
|
357
|
+
/** Output only. The approval state of this handshake. */
|
|
358
|
+
approvalState?: string;
|
|
359
|
+
}
|
|
360
|
+
interface Headers {
|
|
361
|
+
/** Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. */
|
|
362
|
+
locations?: LocationIdSet[];
|
|
363
|
+
/** 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. */
|
|
364
|
+
numberOfItems?: string[];
|
|
365
|
+
/** 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. */
|
|
366
|
+
postalCodeGroupNames?: string[];
|
|
367
|
+
/** 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. */
|
|
368
|
+
prices?: Price[];
|
|
369
|
+
/** 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. */
|
|
370
|
+
weights?: Weight[];
|
|
371
|
+
}
|
|
372
|
+
interface Homepage {
|
|
373
|
+
/** Output only. Whether the homepage is claimed. See https://support.google.com/merchants/answer/176793. */
|
|
374
|
+
claimed?: boolean;
|
|
375
|
+
/** Identifier. The resource name of the store's homepage. Format: `accounts/{account}/homepage` */
|
|
376
|
+
name?: string;
|
|
377
|
+
/** Required. The URI (typically a URL) of the store's homepage. */
|
|
378
|
+
uri?: string;
|
|
379
|
+
}
|
|
380
|
+
interface IdentityAttribute {
|
|
381
|
+
/** Required. The declaration of identity for this attribute. */
|
|
382
|
+
identityDeclaration?: string;
|
|
383
|
+
}
|
|
384
|
+
interface ImageImprovementsAccountLevelSettings {
|
|
385
|
+
/** Enables automatic image improvements. */
|
|
386
|
+
allowAutomaticImageImprovements?: boolean;
|
|
387
|
+
}
|
|
388
|
+
interface Impact {
|
|
389
|
+
/** The [CLDR region code](https://cldr.unicode.org/) where this issue applies. */
|
|
390
|
+
regionCode?: string;
|
|
391
|
+
/** The severity of the issue on the destination and region. */
|
|
392
|
+
severity?: string;
|
|
393
|
+
}
|
|
394
|
+
interface ImpactedDestination {
|
|
395
|
+
/** The (negative) impact for various regions on the given destination. */
|
|
396
|
+
impacts?: Impact[];
|
|
397
|
+
/** The impacted reporting context. */
|
|
398
|
+
reportingContext?: string;
|
|
399
|
+
}
|
|
400
|
+
interface InStock {
|
|
401
|
+
/** Output only. The state of the in-stock serving. */
|
|
402
|
+
state?: string;
|
|
403
|
+
/** Optional. Product landing page URI. It is only used for the review of MHLSF in-stock serving. This URI domain should match with the business's homepage. Required to be empty if the lsf_type is GHLSF, and required when the lsf_type is MHLSF_FULL or MHLSF_BASIC. */
|
|
404
|
+
uri?: string;
|
|
405
|
+
}
|
|
406
|
+
interface InventoryVerification {
|
|
407
|
+
/** Required. The name of the contact for the inventory verification process. */
|
|
408
|
+
contact?: string;
|
|
409
|
+
/** Required. The email address of the contact for the inventory verification process. */
|
|
410
|
+
contactEmail?: string;
|
|
411
|
+
/** Output only. The state of the contact verification. */
|
|
412
|
+
contactState?: string;
|
|
413
|
+
/** Output only. The state of the inventory verification process. */
|
|
414
|
+
state?: string;
|
|
415
|
+
}
|
|
416
|
+
interface ItemUpdatesAccountLevelSettings {
|
|
417
|
+
/** If availability updates are enabled, any previous availability values get overwritten if Google finds an out-of-stock annotation on the offer's page. If additionally `allow_strict_availability_updates` field is set to true, values get overwritten if Google finds an in-stock annotation on the offer’s page. */
|
|
418
|
+
allowAvailabilityUpdates?: boolean;
|
|
419
|
+
/** If condition updates are enabled, Google always updates item condition with the condition detected from the details of your product. */
|
|
420
|
+
allowConditionUpdates?: boolean;
|
|
421
|
+
/** If price updates are enabled, Google always updates the active price with the crawled information. */
|
|
422
|
+
allowPriceUpdates?: boolean;
|
|
423
|
+
/** If `allow_availability_updates` is enabled, items are automatically updated in all your Shopping target countries. By default, availability updates will only be applied to items that are 'out of stock' on your website but 'in stock' on Shopping. Set this to true to also update items that are 'in stock' on your website, but 'out of stock' on Google Shopping. In order for this field to have an effect, you must also set `allow_availability_updates`. */
|
|
424
|
+
allowStrictAvailabilityUpdates?: boolean;
|
|
425
|
+
}
|
|
426
|
+
interface LfpLink {
|
|
427
|
+
/** Required. The account ID by which this merchant is known to the LFP provider. */
|
|
428
|
+
externalAccountId?: string;
|
|
429
|
+
/** Required. The resource name of the LFP provider. Format: `lfpProviders/{lfp_provider}` */
|
|
430
|
+
lfpProvider?: string;
|
|
431
|
+
/** Output only. The state of the LFP link. */
|
|
432
|
+
state?: string;
|
|
433
|
+
}
|
|
434
|
+
interface LfpProvider {
|
|
435
|
+
/** The display name of the LFP provider. */
|
|
436
|
+
displayName?: string;
|
|
437
|
+
/** Identifier. The resource name of the LFP provider. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}` */
|
|
438
|
+
name?: string;
|
|
439
|
+
/** Output only. Region code defined by [CLDR](https://cldr.unicode.org/). */
|
|
440
|
+
regionCode?: string;
|
|
441
|
+
}
|
|
442
|
+
interface LinkGbpAccountRequest {
|
|
443
|
+
/** Required. The email address of the Business Profile account. */
|
|
444
|
+
gbpEmail?: string;
|
|
445
|
+
}
|
|
446
|
+
interface LinkGbpAccountResponse {
|
|
447
|
+
/** Empty response. */
|
|
448
|
+
response?: any;
|
|
449
|
+
}
|
|
450
|
+
interface LinkLfpProviderRequest {
|
|
451
|
+
/** Required. The external account ID by which this merchant is known to the LFP provider. */
|
|
452
|
+
externalAccountId?: string;
|
|
453
|
+
}
|
|
454
|
+
interface LinkLfpProviderResponse {
|
|
455
|
+
/** Empty response. */
|
|
456
|
+
response?: any;
|
|
457
|
+
}
|
|
458
|
+
interface ListAccountIssuesResponse {
|
|
459
|
+
/** The issues from the specified account. */
|
|
460
|
+
accountIssues?: AccountIssue[];
|
|
461
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
462
|
+
nextPageToken?: string;
|
|
463
|
+
}
|
|
464
|
+
interface ListAccountRelationshipsResponse {
|
|
465
|
+
/** The account relationships that match your filter. */
|
|
466
|
+
accountRelationships?: AccountRelationship[];
|
|
467
|
+
/** A page token. You can send the `page_token` to get the next page. Only included in the `list` response if there are more pages. */
|
|
468
|
+
nextPageToken?: string;
|
|
469
|
+
}
|
|
470
|
+
interface ListAccountServicesResponse {
|
|
471
|
+
/** The account services that match your filter. */
|
|
472
|
+
accountServices?: AccountService[];
|
|
473
|
+
/** A page token. You can send the `page_token` to get the next page. Only included in the `list` response if there are more pages. */
|
|
474
|
+
nextPageToken?: string;
|
|
475
|
+
}
|
|
476
|
+
interface ListAccountsResponse {
|
|
477
|
+
/** The accounts matching the `ListAccountsRequest`. */
|
|
478
|
+
accounts?: Account[];
|
|
479
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
480
|
+
nextPageToken?: string;
|
|
481
|
+
}
|
|
482
|
+
interface ListGbpAccountsResponse {
|
|
483
|
+
/** The GBP accounts from the specified merchant in the specified country. */
|
|
484
|
+
gbpAccounts?: GbpAccount[];
|
|
485
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
486
|
+
nextPageToken?: string;
|
|
487
|
+
}
|
|
488
|
+
interface ListOmnichannelSettingsResponse {
|
|
489
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
490
|
+
nextPageToken?: string;
|
|
491
|
+
/** The omnichannel settings from the specified merchant. */
|
|
492
|
+
omnichannelSettings?: OmnichannelSetting[];
|
|
493
|
+
}
|
|
494
|
+
interface ListOnlineReturnPoliciesResponse {
|
|
495
|
+
/** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
496
|
+
nextPageToken?: string;
|
|
497
|
+
/** The retrieved return policies. */
|
|
498
|
+
onlineReturnPolicies?: OnlineReturnPolicy[];
|
|
499
|
+
}
|
|
500
|
+
interface ListProgramsResponse {
|
|
501
|
+
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
502
|
+
nextPageToken?: string;
|
|
503
|
+
/** The programs for the given account. */
|
|
504
|
+
programs?: Program[];
|
|
505
|
+
}
|
|
506
|
+
interface ListRegionsResponse {
|
|
507
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
508
|
+
nextPageToken?: string;
|
|
509
|
+
/** The regions from the specified business. */
|
|
510
|
+
regions?: Region[];
|
|
511
|
+
}
|
|
512
|
+
interface ListSubAccountsResponse {
|
|
513
|
+
/** The accounts for which the given parent account is an aggregator. */
|
|
514
|
+
accounts?: Account[];
|
|
515
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
516
|
+
nextPageToken?: string;
|
|
517
|
+
}
|
|
518
|
+
interface ListUsersResponse {
|
|
519
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
520
|
+
nextPageToken?: string;
|
|
521
|
+
/** The users from the specified account. */
|
|
522
|
+
users?: User[];
|
|
523
|
+
}
|
|
524
|
+
interface LocalCutoffTime {
|
|
525
|
+
/** Hour local delivery orders must be placed by to process the same day. */
|
|
526
|
+
hour?: string;
|
|
527
|
+
/** Minute local delivery orders must be placed by to process the same day. */
|
|
528
|
+
minute?: string;
|
|
529
|
+
}
|
|
530
|
+
interface LocalListingManagement {}
|
|
531
|
+
interface LocationIdSet {
|
|
532
|
+
/** 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). */
|
|
533
|
+
locationIds?: string[];
|
|
534
|
+
}
|
|
535
|
+
interface LoyaltyProgram {
|
|
536
|
+
/** Optional. Loyalty program tier of this shipping service. */
|
|
537
|
+
loyaltyProgramTiers?: LoyaltyProgramTiers[];
|
|
538
|
+
/** 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. */
|
|
539
|
+
programLabel?: string;
|
|
540
|
+
}
|
|
541
|
+
interface LoyaltyProgramTiers {
|
|
542
|
+
/** 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. */
|
|
543
|
+
tierLabel?: string;
|
|
544
|
+
}
|
|
545
|
+
interface MinimumOrderValueTable {
|
|
546
|
+
/** 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. */
|
|
547
|
+
storeCodeSetWithMovs?: StoreCodeSetWithMov[];
|
|
548
|
+
}
|
|
549
|
+
interface OmnichannelSetting {
|
|
550
|
+
/** Optional. The about page URI and state for this country. */
|
|
551
|
+
about?: About;
|
|
552
|
+
/** Optional. The InStock URI and state for this country. */
|
|
553
|
+
inStock?: InStock;
|
|
554
|
+
/** Optional. The inventory verification contact and state for this country. */
|
|
555
|
+
inventoryVerification?: InventoryVerification;
|
|
556
|
+
/** Output only. The established link to a LFP provider. */
|
|
557
|
+
lfpLink?: LfpLink;
|
|
558
|
+
/** Required. The Local Store Front type for this country. */
|
|
559
|
+
lsfType?: string;
|
|
560
|
+
/** Identifier. The resource name of the omnichannel setting. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}` */
|
|
561
|
+
name?: string;
|
|
562
|
+
/** Optional. The On Display to Order (ODO) policy URI and state for this country. */
|
|
563
|
+
odo?: OnDisplayToOrder;
|
|
564
|
+
/** Optional. The Pickup URI and state for this country. */
|
|
565
|
+
pickup?: Pickup;
|
|
566
|
+
/** Required. Immutable. Region code defined by [CLDR](https://cldr.unicode.org/). Must be provided in the Create method, and is immutable. */
|
|
567
|
+
regionCode?: string;
|
|
568
|
+
}
|
|
569
|
+
interface OnDisplayToOrder {
|
|
570
|
+
/** Output only. The state of the URI. */
|
|
571
|
+
state?: string;
|
|
572
|
+
/** Required. The on display to order (ODO) policy URI. */
|
|
573
|
+
uri?: string;
|
|
574
|
+
}
|
|
575
|
+
interface OnlineReturnPolicy {
|
|
576
|
+
/** Optional. This field specifies if business only accepts defective products for returns. */
|
|
577
|
+
acceptDefectiveOnly?: boolean;
|
|
578
|
+
/** Optional. This field specifies if business allows customers to exchange products. */
|
|
579
|
+
acceptExchange?: boolean;
|
|
580
|
+
/** Required. Immutable. The countries of sale where the return policy applies. The values must be a valid 2 letter ISO 3166 code. */
|
|
581
|
+
countries?: string[];
|
|
582
|
+
/** Optional. The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'. */
|
|
583
|
+
itemConditions?: string[];
|
|
584
|
+
/** Optional. Immutable. This field represents the unique user-defined label of the return policy for the given country. It is important to note that the same label cannot be used in different return policies for the same country. If not given, policies will be automatically treated as the 'default' for the country. When using label, you are creating an exception policy in that country 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. */
|
|
585
|
+
label?: string;
|
|
586
|
+
/** Identifier. The name of the `OnlineReturnPolicy` resource. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}` */
|
|
587
|
+
name?: string;
|
|
588
|
+
/** Optional. The return policy. */
|
|
589
|
+
policy?: Policy;
|
|
590
|
+
/** Optional. The field specifies the number of days it takes for business to process refunds. */
|
|
591
|
+
processRefundDays?: number;
|
|
592
|
+
/** Optional. 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. */
|
|
593
|
+
restockingFee?: RestockingFee;
|
|
594
|
+
/** Optional. The field specifies the return label source. */
|
|
595
|
+
returnLabelSource?: string;
|
|
596
|
+
/** Optional. 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. */
|
|
597
|
+
returnMethods?: string[];
|
|
598
|
+
/** Output only. Return policy ID generated by Google. */
|
|
599
|
+
returnPolicyId?: string;
|
|
600
|
+
/** Required. The return policy uri. This can used by Google to do a sanity check for the policy. It must be a valid URL. */
|
|
601
|
+
returnPolicyUri?: string;
|
|
602
|
+
/** Optional. The return shipping fee. Should be set only when customer need to download and print the return label. */
|
|
603
|
+
returnShippingFee?: ReturnShippingFee;
|
|
604
|
+
/** Optional. Overrides to the general policy for orders placed during a specific set of time intervals. */
|
|
605
|
+
seasonalOverrides?: SeasonalOverride[];
|
|
606
|
+
}
|
|
607
|
+
interface PhoneNumber {
|
|
608
|
+
/** 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. For example: - 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 */
|
|
609
|
+
e164Number?: string;
|
|
610
|
+
/** 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. */
|
|
611
|
+
extension?: string;
|
|
612
|
+
/** A short code. Reference(s): - https://wikipedia.org/wiki/Short_code */
|
|
613
|
+
shortCode?: ShortCode;
|
|
614
|
+
}
|
|
615
|
+
interface Pickup {
|
|
616
|
+
/** Output only. The state of the pickup serving. */
|
|
617
|
+
state?: string;
|
|
618
|
+
/** Required. Pickup product page URI. It is only used for the review of pickup serving. This URI domain should match with the business's homepage. */
|
|
619
|
+
uri?: string;
|
|
620
|
+
}
|
|
621
|
+
interface Policy {
|
|
622
|
+
/** 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. */
|
|
623
|
+
days?: string;
|
|
624
|
+
/** Policy type. */
|
|
625
|
+
type?: string;
|
|
626
|
+
}
|
|
627
|
+
interface PostalAddress {
|
|
628
|
+
/** 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 (for example, "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country or region of the address. In places where this can vary (for example, Japan), `address_language` is used to make it explicit (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In 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). */
|
|
629
|
+
addressLines?: string[];
|
|
630
|
+
/** 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. For Spain, this is the province and not the autonomous community (for example, "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated. */
|
|
631
|
+
administrativeArea?: string;
|
|
632
|
+
/** 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". */
|
|
633
|
+
languageCode?: string;
|
|
634
|
+
/** Optional. Generally refers to the city or 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`. */
|
|
635
|
+
locality?: string;
|
|
636
|
+
/** Optional. The name of the organization at the address. */
|
|
637
|
+
organization?: string;
|
|
638
|
+
/** 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 (for example, state or zip code validation in the United States). */
|
|
639
|
+
postalCode?: string;
|
|
640
|
+
/** Optional. The recipient at the address. This field may, under certain circumstances, contain multiline information. For example, it might contain "care of" information. */
|
|
641
|
+
recipients?: string[];
|
|
642
|
+
/** 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. */
|
|
643
|
+
regionCode?: string;
|
|
644
|
+
/** 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. */
|
|
645
|
+
revision?: number;
|
|
646
|
+
/** 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 (for example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). */
|
|
647
|
+
sortingCode?: string;
|
|
648
|
+
/** Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district. */
|
|
649
|
+
sublocality?: string;
|
|
650
|
+
}
|
|
651
|
+
interface PostalCodeArea {
|
|
652
|
+
/** Required. A range of postal codes. */
|
|
653
|
+
postalCodes?: PostalCodeRange[];
|
|
654
|
+
/** 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. */
|
|
655
|
+
regionCode?: string;
|
|
656
|
+
}
|
|
657
|
+
interface PostalCodeRange {
|
|
658
|
+
/** 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*`. */
|
|
659
|
+
begin?: string;
|
|
660
|
+
/** 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. */
|
|
661
|
+
end?: string;
|
|
662
|
+
}
|
|
663
|
+
interface Price {
|
|
664
|
+
/** 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). */
|
|
665
|
+
amountMicros?: string;
|
|
666
|
+
/** The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217). */
|
|
667
|
+
currencyCode?: string;
|
|
668
|
+
}
|
|
669
|
+
interface ProductChange {
|
|
670
|
+
/** The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``) */
|
|
671
|
+
newValue?: string;
|
|
672
|
+
/** The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``) */
|
|
673
|
+
oldValue?: string;
|
|
674
|
+
/** Countries that have the change (if applicable). Represented in the ISO 3166 format. */
|
|
675
|
+
regionCode?: string;
|
|
676
|
+
/** Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) */
|
|
677
|
+
reportingContext?: string;
|
|
678
|
+
}
|
|
679
|
+
interface ProductsManagement {}
|
|
680
|
+
interface ProductStatusChangeMessage {
|
|
681
|
+
/** The target account that owns the entity that changed. Format : `accounts/{merchant_id}` */
|
|
682
|
+
account?: string;
|
|
683
|
+
/** The attribute in the resource that changed, in this case it will be always `Status`. */
|
|
684
|
+
attribute?: string;
|
|
685
|
+
/** A message to describe the change that happened to the product */
|
|
686
|
+
changes?: ProductChange[];
|
|
687
|
+
/** The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications. */
|
|
688
|
+
eventTime?: string;
|
|
689
|
+
/** Optional. The product expiration time. This field will not be set if the notification is sent for a product deletion event. */
|
|
690
|
+
expirationTime?: string;
|
|
691
|
+
/** 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}` */
|
|
692
|
+
managingAccount?: string;
|
|
693
|
+
/** The product name. Format: `accounts/{account}/products/{product}` */
|
|
694
|
+
resource?: string;
|
|
695
|
+
/** The product id. */
|
|
696
|
+
resourceId?: string;
|
|
697
|
+
/** The resource that changed, in this case it will always be `Product`. */
|
|
698
|
+
resourceType?: string;
|
|
699
|
+
}
|
|
700
|
+
interface Program {
|
|
701
|
+
/** 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. */
|
|
702
|
+
activeRegionCodes?: string[];
|
|
703
|
+
/** Output only. The URL of a Merchant Center help page describing the program. */
|
|
704
|
+
documentationUri?: string;
|
|
705
|
+
/** Identifier. The resource name of the program. Format: `accounts/{account}/programs/{program}` */
|
|
706
|
+
name?: string;
|
|
707
|
+
/** Output only. The participation state of the account in the program. */
|
|
708
|
+
state?: string;
|
|
709
|
+
/** Output only. The requirements that the account has not yet satisfied that are affecting participation in the program. */
|
|
710
|
+
unmetRequirements?: Requirement[];
|
|
711
|
+
}
|
|
712
|
+
interface ProposeAccountServiceRequest {
|
|
713
|
+
/** Required. The account service to propose. */
|
|
714
|
+
accountService?: AccountService;
|
|
715
|
+
/** Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). */
|
|
716
|
+
provider?: string;
|
|
717
|
+
}
|
|
718
|
+
interface RateGroup {
|
|
719
|
+
/** 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. */
|
|
720
|
+
applicableShippingLabels?: string[];
|
|
721
|
+
/** Optional. A list of carrier rates that can be referred to by `main_table` or `single_value`. */
|
|
722
|
+
carrierRates?: CarrierRate[];
|
|
723
|
+
/** A table defining the rate group, when `single_value` is not expressive enough. Can only be set if `single_value` is not set. */
|
|
724
|
+
mainTable?: Table;
|
|
725
|
+
/** Optional. Name of the rate group. If set has to be unique within shipping service. */
|
|
726
|
+
name?: string;
|
|
727
|
+
/** The value of the rate group (For example flat rate $10). Can only be set if `main_table` and `subtables` are not set. */
|
|
728
|
+
singleValue?: Value;
|
|
729
|
+
/** Optional. A list of subtables referred to by `main_table`. Can only be set if `main_table` is set. */
|
|
730
|
+
subtables?: Table[];
|
|
731
|
+
}
|
|
732
|
+
interface Region {
|
|
733
|
+
/** Optional. The display name of the region. */
|
|
734
|
+
displayName?: string;
|
|
735
|
+
/** Optional. A list of geotargets that defines the region area. */
|
|
736
|
+
geotargetArea?: GeoTargetArea;
|
|
737
|
+
/** Identifier. The resource name of the region. Format: `accounts/{account}/regions/{region}` */
|
|
738
|
+
name?: string;
|
|
739
|
+
/** Optional. A list of postal codes that defines the region area. */
|
|
740
|
+
postalCodeArea?: PostalCodeArea;
|
|
741
|
+
/** Output only. Indicates if the region is eligible for use in the Regional Inventory configuration. */
|
|
742
|
+
regionalInventoryEligible?: boolean;
|
|
743
|
+
/** Output only. Indicates if the region is eligible for use in the Shipping Services configuration. */
|
|
744
|
+
shippingEligible?: boolean;
|
|
745
|
+
}
|
|
746
|
+
interface RegisterGcpRequest {
|
|
747
|
+
/** Immutable. If the developer email provided is associated with a user in the merchant account provided, the user will be updated to have "API developer" access type and the email preference corresponding to that user will be updated to have the new "API notifications" preference. If the developer email provided is not associated with any user we will just add it as a contact. The email preference corresponding to that contact will have the new "API notifications" preference */
|
|
748
|
+
developerEmail?: string;
|
|
749
|
+
}
|
|
750
|
+
interface RejectAccountServiceRequest {}
|
|
751
|
+
interface RequestInventoryVerificationRequest {}
|
|
752
|
+
interface RequestInventoryVerificationResponse {
|
|
753
|
+
/** The omnichannel setting that was updated. */
|
|
754
|
+
omnichannelSetting?: OmnichannelSetting;
|
|
755
|
+
}
|
|
756
|
+
interface Required {
|
|
757
|
+
/** Required. The `TermsOfService` that need to be accepted. */
|
|
758
|
+
termsOfService?: string;
|
|
759
|
+
/** Required. Full URL to the terms of service file. This field is the same as `TermsOfService.file_uri`, it is added here for convenience only. */
|
|
760
|
+
tosFileUri?: string;
|
|
761
|
+
}
|
|
762
|
+
interface Requirement {
|
|
763
|
+
/** 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. */
|
|
764
|
+
affectedRegionCodes?: string[];
|
|
765
|
+
/** Output only. The URL of a help page describing the requirement. */
|
|
766
|
+
documentationUri?: string;
|
|
767
|
+
/** Output only. Name of the requirement. */
|
|
768
|
+
title?: string;
|
|
769
|
+
}
|
|
770
|
+
interface RestockingFee {
|
|
771
|
+
/** Fixed restocking fee. */
|
|
772
|
+
fixedFee?: Price;
|
|
773
|
+
/** Percent of total price in micros. 15,000,000 means 15% of the total price would be charged. */
|
|
774
|
+
microPercent?: number;
|
|
775
|
+
}
|
|
776
|
+
interface ReturnShippingFee {
|
|
777
|
+
/** 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. */
|
|
778
|
+
fixedFee?: Price;
|
|
779
|
+
/** Required. Type of return shipping fee. */
|
|
780
|
+
type?: string;
|
|
781
|
+
}
|
|
782
|
+
interface Row {
|
|
783
|
+
/** 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. */
|
|
784
|
+
cells?: Value[];
|
|
785
|
+
}
|
|
786
|
+
interface SeasonalOverride {
|
|
787
|
+
/** Required. seasonal override end date (inclusive). */
|
|
788
|
+
endDate?: Date;
|
|
789
|
+
/** Required. Display name of this seasonal override in Merchant Center. */
|
|
790
|
+
label?: string;
|
|
791
|
+
/** Number of days (from the delivery date) that the product can be returned. */
|
|
792
|
+
returnDays?: number;
|
|
793
|
+
/** Fixed end date until which the product can be returned. */
|
|
794
|
+
returnUntilDate?: Date;
|
|
795
|
+
/** Required. Defines the date range when this seasonal override applies. Both start_date and end_date are inclusive. The dates of the seasonal overrides should not overlap. */
|
|
796
|
+
startDate?: Date;
|
|
797
|
+
}
|
|
798
|
+
interface Service {
|
|
799
|
+
/** Required. A boolean exposing the active status of the shipping service. */
|
|
800
|
+
active?: boolean;
|
|
801
|
+
/** Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. */
|
|
802
|
+
currencyCode?: string;
|
|
803
|
+
/** Required. The CLDR territory code of the countries to which the service applies. */
|
|
804
|
+
deliveryCountries?: string[];
|
|
805
|
+
/** Required. Time spent in various aspects from order to the delivery of the product. */
|
|
806
|
+
deliveryTime?: DeliveryTime;
|
|
807
|
+
/** Optional. Loyalty programs that this shipping service is limited to. */
|
|
808
|
+
loyaltyPrograms?: LoyaltyProgram[];
|
|
809
|
+
/** Optional. 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`. */
|
|
810
|
+
minimumOrderValue?: Price;
|
|
811
|
+
/** Optional. Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with `minimum_order_value`. */
|
|
812
|
+
minimumOrderValueTable?: MinimumOrderValueTable;
|
|
813
|
+
/** 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. */
|
|
814
|
+
rateGroups?: RateGroup[];
|
|
815
|
+
/** Required. Free-form name of the service. Must be unique within target account. */
|
|
816
|
+
serviceName?: string;
|
|
817
|
+
/** Optional. Type of locations this service ships orders to. */
|
|
818
|
+
shipmentType?: string;
|
|
819
|
+
/** A list of stores your products are delivered from. This is only valid for the local delivery shipment type. */
|
|
820
|
+
storeConfig?: StoreConfig;
|
|
821
|
+
}
|
|
822
|
+
interface ShippingSettings {
|
|
823
|
+
/** Required. This field helps avoid async issues. It ensures that the shipping setting data doesn't change between the `get` call and the `insert` call. The user should follow these steps: 1. Set the etag field as an empty string for the initial shipping setting creation. 2. After the initial creation, call the `get` method to obtain an etag and the current shipping setting data before calling `insert`. 3. Modify the shipping setting information. 4. Call the `insert` method with the shipping setting information and the etag obtained in step 2. 5. If the shipping setting data changes between step 2 and step 4, the insert request will fail because the etag changes every time the shipping setting data changes. In this case, the user should repeat steps 2-4 with the new etag. */
|
|
824
|
+
etag?: string;
|
|
825
|
+
/** Identifier. The resource name of the shipping settings. Format: `accounts/{account}/shippingSettings`. For example, `accounts/123456/shippingSettings`. */
|
|
826
|
+
name?: string;
|
|
827
|
+
/** Optional. The target account's list of services. */
|
|
828
|
+
services?: Service[];
|
|
829
|
+
/** Optional. A list of warehouses which can be referred to in `services`. */
|
|
830
|
+
warehouses?: Warehouse[];
|
|
831
|
+
}
|
|
832
|
+
interface ShortCode {
|
|
833
|
+
/** Required. The short code digits, without a leading plus ('+') or country calling code. For example "611". */
|
|
834
|
+
number?: string;
|
|
835
|
+
/** 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 */
|
|
836
|
+
regionCode?: string;
|
|
837
|
+
}
|
|
838
|
+
interface StoreCodeSetWithMov {
|
|
839
|
+
/** Optional. A list of unique store codes or empty for the catch all. */
|
|
840
|
+
storeCodes?: string[];
|
|
841
|
+
/** The minimum order value for the given stores. */
|
|
842
|
+
value?: Price;
|
|
843
|
+
}
|
|
844
|
+
interface StoreConfig {
|
|
845
|
+
/** Configs related to local delivery ends for the day. */
|
|
846
|
+
cutoffConfig?: CutoffConfig;
|
|
847
|
+
/** Maximum delivery radius. This is only required for the local delivery shipment type. */
|
|
848
|
+
serviceRadius?: Distance;
|
|
849
|
+
/** Optional. A list of store codes that provide local delivery. If empty, then `all_stores` must be true. */
|
|
850
|
+
storeCodes?: string[];
|
|
851
|
+
/** Indicates whether all stores, or selected stores, listed by this business provide local delivery. */
|
|
852
|
+
storeServiceType?: string;
|
|
853
|
+
}
|
|
854
|
+
interface Table {
|
|
855
|
+
/** Headers of the table's columns. Optional: if not set then the table has only one dimension. */
|
|
856
|
+
columnHeaders?: Headers;
|
|
857
|
+
/** Name of the table. Required for subtables, ignored for the main table. */
|
|
858
|
+
name?: string;
|
|
859
|
+
/** Required. Headers of the table's rows. */
|
|
860
|
+
rowHeaders?: Headers;
|
|
861
|
+
/** Required. The list of rows that constitute the table. Must have the same length as `row_headers`. */
|
|
862
|
+
rows?: Row[];
|
|
863
|
+
}
|
|
864
|
+
interface TermsOfService {
|
|
865
|
+
/** 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. */
|
|
866
|
+
external?: boolean;
|
|
867
|
+
/** URI for terms of service file that needs to be displayed to signing users. */
|
|
868
|
+
fileUri?: string;
|
|
869
|
+
/** The Kind this terms of service version applies to. */
|
|
870
|
+
kind?: string;
|
|
871
|
+
/** Identifier. The resource name of the terms of service version. Format: `termsOfService/{version}` */
|
|
872
|
+
name?: string;
|
|
873
|
+
/** 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). */
|
|
874
|
+
regionCode?: string;
|
|
875
|
+
}
|
|
876
|
+
interface TermsOfServiceAgreementState {
|
|
877
|
+
/** Optional. The accepted terms of service of this kind and for the associated region_code */
|
|
878
|
+
accepted?: Accepted;
|
|
879
|
+
/** Identifier. The resource name of the terms of service version. Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}` The identifier format is: `{TermsOfServiceKind}-{country}` For example, an identifier could be: `MERCHANT_CENTER-EU` or `MERCHANT_CENTER-US`. */
|
|
880
|
+
name?: string;
|
|
881
|
+
/** Required. Region code as defined by https://cldr.unicode.org/. This is the country the current state applies to. */
|
|
882
|
+
regionCode?: string;
|
|
883
|
+
/** Optional. The required terms of service */
|
|
884
|
+
required?: Required;
|
|
885
|
+
/** Required. Terms of Service kind associated with the particular version. */
|
|
886
|
+
termsOfServiceKind?: string;
|
|
887
|
+
}
|
|
888
|
+
interface TimeZone {
|
|
889
|
+
/** IANA Time Zone Database time zone. For example "America/New_York". */
|
|
890
|
+
id?: string;
|
|
891
|
+
/** Optional. IANA Time Zone Database version number. For example "2019a". */
|
|
892
|
+
version?: string;
|
|
893
|
+
}
|
|
894
|
+
interface TransitTable {
|
|
895
|
+
/** 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. */
|
|
896
|
+
postalCodeGroupNames?: string[];
|
|
897
|
+
/** 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`. */
|
|
898
|
+
rows?: TransitTimeRow[];
|
|
899
|
+
/** Required. A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. */
|
|
900
|
+
transitTimeLabels?: string[];
|
|
901
|
+
}
|
|
902
|
+
interface TransitTimeRow {
|
|
903
|
+
/** Required. Transit time range (min-max) in business days. */
|
|
904
|
+
values?: TransitTimeValue[];
|
|
905
|
+
}
|
|
906
|
+
interface TransitTimeValue {
|
|
907
|
+
/** Must be greater than or equal to `min_transit_days`. */
|
|
908
|
+
maxTransitDays?: number;
|
|
909
|
+
/** Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery. */
|
|
910
|
+
minTransitDays?: number;
|
|
911
|
+
}
|
|
912
|
+
interface UnclaimHomepageRequest {}
|
|
913
|
+
interface UnregisterGcpRequest {}
|
|
914
|
+
interface UriSettings {
|
|
915
|
+
/** Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check the [help center doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting) */
|
|
916
|
+
cartUriTemplate?: string;
|
|
917
|
+
/** Checkout URL template. When the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. For more details, check the [help center doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting) */
|
|
918
|
+
checkoutUriTemplate?: string;
|
|
919
|
+
}
|
|
920
|
+
interface User {
|
|
921
|
+
/** Required. The [access rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) the user has. */
|
|
922
|
+
accessRights?: string[];
|
|
923
|
+
/** 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`. */
|
|
924
|
+
name?: string;
|
|
925
|
+
/** Output only. The state of the user. */
|
|
926
|
+
state?: string;
|
|
927
|
+
}
|
|
928
|
+
interface Value {
|
|
929
|
+
/** 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. */
|
|
930
|
+
carrierRate?: string;
|
|
931
|
+
/** A flat rate. Can only be set if all other fields are not set. */
|
|
932
|
+
flatRate?: Price;
|
|
933
|
+
/** 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. */
|
|
934
|
+
noShipping?: boolean;
|
|
935
|
+
/** 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. */
|
|
936
|
+
pricePercentage?: string;
|
|
937
|
+
/** 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. */
|
|
938
|
+
subtable?: string;
|
|
939
|
+
}
|
|
940
|
+
interface Warehouse {
|
|
941
|
+
/** Business days of the warehouse. If not set, will be Monday to Friday by default. */
|
|
942
|
+
businessDayConfig?: BusinessDayConfig;
|
|
943
|
+
/** 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. */
|
|
944
|
+
cutoffTime?: WarehouseCutoffTime;
|
|
945
|
+
/** 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. */
|
|
946
|
+
handlingDays?: string;
|
|
947
|
+
/** Required. The name of the warehouse. Must be unique within account. */
|
|
948
|
+
name?: string;
|
|
949
|
+
/** Required. Shipping address of the warehouse. */
|
|
950
|
+
shippingAddress?: Address;
|
|
951
|
+
}
|
|
952
|
+
interface WarehouseBasedDeliveryTime {
|
|
953
|
+
/** Required. Carrier, such as `"UPS"` or `"Fedex"`. [supported carriers](https://support.google.com/merchants/answer/7050921#zippy=%2Ccarrier-rates-au-de-uk-and-us-only) */
|
|
954
|
+
carrier?: string;
|
|
955
|
+
/** Required. Carrier service, such as `"ground"` or `"2 days"`. The name of the service must be in the eddSupportedServices list. */
|
|
956
|
+
carrierService?: string;
|
|
957
|
+
/** Required. Warehouse name. This should match warehouse. */
|
|
958
|
+
warehouse?: string;
|
|
959
|
+
}
|
|
960
|
+
interface WarehouseCutoffTime {
|
|
961
|
+
/** 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. */
|
|
962
|
+
hour?: number;
|
|
963
|
+
/** 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. */
|
|
964
|
+
minute?: number;
|
|
965
|
+
}
|
|
966
|
+
interface Weight {
|
|
967
|
+
/** 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. */
|
|
968
|
+
amountMicros?: string;
|
|
969
|
+
/** Required. The weight unit. Acceptable values are: kg and lb */
|
|
970
|
+
unit?: string;
|
|
971
|
+
}
|
|
972
|
+
interface AutofeedSettingsResource {
|
|
973
|
+
/** Retrieves the autofeed settings of an account. */
|
|
974
|
+
getAutofeedSettings(request?: {
|
|
975
|
+
/** V1 error format. */
|
|
976
|
+
'$.xgafv'?: string;
|
|
977
|
+
/** OAuth access token. */
|
|
978
|
+
access_token?: string;
|
|
979
|
+
/** Data format for response. */
|
|
980
|
+
alt?: string;
|
|
981
|
+
/** JSONP */
|
|
982
|
+
callback?: string;
|
|
983
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
984
|
+
fields?: string;
|
|
985
|
+
/** 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. */
|
|
986
|
+
key?: string;
|
|
987
|
+
/** Required. The resource name of the autofeed settings. Format: `accounts/{account}/autofeedSettings` */
|
|
988
|
+
name: string;
|
|
989
|
+
/** OAuth 2.0 token for the current user. */
|
|
990
|
+
oauth_token?: string;
|
|
991
|
+
/** Returns response with indentations and line breaks. */
|
|
992
|
+
prettyPrint?: boolean;
|
|
993
|
+
/** 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. */
|
|
994
|
+
quotaUser?: string;
|
|
995
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
996
|
+
upload_protocol?: string;
|
|
997
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
998
|
+
uploadType?: string;
|
|
999
|
+
}): Request<AutofeedSettings>;
|
|
1000
|
+
/** Updates the autofeed settings of an account. */
|
|
1001
|
+
updateAutofeedSettings(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
|
+
/** Identifier. The resource name of the autofeed settings. Format: `accounts/{account}/autofeedSettings`. */
|
|
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
|
+
/** Required. List of fields being updated. */
|
|
1023
|
+
updateMask?: string;
|
|
1024
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1025
|
+
upload_protocol?: string;
|
|
1026
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1027
|
+
uploadType?: string;
|
|
1028
|
+
/** Request body */
|
|
1029
|
+
resource: AutofeedSettings;
|
|
1030
|
+
}): Request<AutofeedSettings>;
|
|
1031
|
+
updateAutofeedSettings(
|
|
1032
|
+
request: {
|
|
1033
|
+
/** V1 error format. */
|
|
1034
|
+
'$.xgafv'?: string;
|
|
1035
|
+
/** OAuth access token. */
|
|
1036
|
+
access_token?: string;
|
|
1037
|
+
/** Data format for response. */
|
|
1038
|
+
alt?: string;
|
|
1039
|
+
/** JSONP */
|
|
1040
|
+
callback?: string;
|
|
1041
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1042
|
+
fields?: string;
|
|
1043
|
+
/** 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. */
|
|
1044
|
+
key?: string;
|
|
1045
|
+
/** Identifier. The resource name of the autofeed settings. Format: `accounts/{account}/autofeedSettings`. */
|
|
1046
|
+
name: string;
|
|
1047
|
+
/** OAuth 2.0 token for the current user. */
|
|
1048
|
+
oauth_token?: 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
|
+
/** Required. List of fields being updated. */
|
|
1054
|
+
updateMask?: string;
|
|
1055
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1056
|
+
upload_protocol?: string;
|
|
1057
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1058
|
+
uploadType?: string;
|
|
1059
|
+
},
|
|
1060
|
+
body: AutofeedSettings,
|
|
1061
|
+
): Request<AutofeedSettings>;
|
|
1062
|
+
}
|
|
1063
|
+
interface AutomaticImprovementsResource {
|
|
1064
|
+
/** Retrieves the automatic improvements of an account. */
|
|
1065
|
+
getAutomaticImprovements(request?: {
|
|
1066
|
+
/** V1 error format. */
|
|
1067
|
+
'$.xgafv'?: string;
|
|
1068
|
+
/** OAuth access token. */
|
|
1069
|
+
access_token?: string;
|
|
1070
|
+
/** Data format for response. */
|
|
1071
|
+
alt?: string;
|
|
1072
|
+
/** JSONP */
|
|
1073
|
+
callback?: string;
|
|
1074
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1075
|
+
fields?: string;
|
|
1076
|
+
/** 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. */
|
|
1077
|
+
key?: string;
|
|
1078
|
+
/** Required. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements` */
|
|
1079
|
+
name: string;
|
|
1080
|
+
/** OAuth 2.0 token for the current user. */
|
|
1081
|
+
oauth_token?: string;
|
|
1082
|
+
/** Returns response with indentations and line breaks. */
|
|
1083
|
+
prettyPrint?: boolean;
|
|
1084
|
+
/** 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. */
|
|
1085
|
+
quotaUser?: string;
|
|
1086
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1087
|
+
upload_protocol?: string;
|
|
1088
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1089
|
+
uploadType?: string;
|
|
1090
|
+
}): Request<AutomaticImprovements>;
|
|
1091
|
+
/** Updates the automatic improvements of an account. */
|
|
1092
|
+
updateAutomaticImprovements(request: {
|
|
1093
|
+
/** V1 error format. */
|
|
1094
|
+
'$.xgafv'?: string;
|
|
1095
|
+
/** OAuth access token. */
|
|
1096
|
+
access_token?: string;
|
|
1097
|
+
/** Data format for response. */
|
|
1098
|
+
alt?: string;
|
|
1099
|
+
/** JSONP */
|
|
1100
|
+
callback?: string;
|
|
1101
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1102
|
+
fields?: string;
|
|
1103
|
+
/** 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. */
|
|
1104
|
+
key?: string;
|
|
1105
|
+
/** Identifier. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements`. */
|
|
1106
|
+
name: string;
|
|
1107
|
+
/** OAuth 2.0 token for the current user. */
|
|
1108
|
+
oauth_token?: string;
|
|
1109
|
+
/** Returns response with indentations and line breaks. */
|
|
1110
|
+
prettyPrint?: boolean;
|
|
1111
|
+
/** 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. */
|
|
1112
|
+
quotaUser?: string;
|
|
1113
|
+
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements` */
|
|
1114
|
+
updateMask?: string;
|
|
1115
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1116
|
+
upload_protocol?: string;
|
|
1117
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1118
|
+
uploadType?: string;
|
|
1119
|
+
/** Request body */
|
|
1120
|
+
resource: AutomaticImprovements;
|
|
1121
|
+
}): Request<AutomaticImprovements>;
|
|
1122
|
+
updateAutomaticImprovements(
|
|
1123
|
+
request: {
|
|
1124
|
+
/** V1 error format. */
|
|
1125
|
+
'$.xgafv'?: string;
|
|
1126
|
+
/** OAuth access token. */
|
|
1127
|
+
access_token?: string;
|
|
1128
|
+
/** Data format for response. */
|
|
1129
|
+
alt?: string;
|
|
1130
|
+
/** JSONP */
|
|
1131
|
+
callback?: string;
|
|
1132
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1133
|
+
fields?: string;
|
|
1134
|
+
/** 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. */
|
|
1135
|
+
key?: string;
|
|
1136
|
+
/** Identifier. The resource name of the automatic improvements. Format: `accounts/{account}/automaticImprovements`. */
|
|
1137
|
+
name: string;
|
|
1138
|
+
/** OAuth 2.0 token for the current user. */
|
|
1139
|
+
oauth_token?: string;
|
|
1140
|
+
/** Returns response with indentations and line breaks. */
|
|
1141
|
+
prettyPrint?: boolean;
|
|
1142
|
+
/** 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. */
|
|
1143
|
+
quotaUser?: string;
|
|
1144
|
+
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements` */
|
|
1145
|
+
updateMask?: string;
|
|
1146
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1147
|
+
upload_protocol?: string;
|
|
1148
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1149
|
+
uploadType?: string;
|
|
1150
|
+
},
|
|
1151
|
+
body: AutomaticImprovements,
|
|
1152
|
+
): Request<AutomaticImprovements>;
|
|
1153
|
+
}
|
|
1154
|
+
interface BusinessIdentityResource {
|
|
1155
|
+
/** Retrieves the business identity of an account. */
|
|
1156
|
+
getBusinessIdentity(request?: {
|
|
1157
|
+
/** V1 error format. */
|
|
1158
|
+
'$.xgafv'?: string;
|
|
1159
|
+
/** OAuth access token. */
|
|
1160
|
+
access_token?: string;
|
|
1161
|
+
/** Data format for response. */
|
|
1162
|
+
alt?: string;
|
|
1163
|
+
/** JSONP */
|
|
1164
|
+
callback?: string;
|
|
1165
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1166
|
+
fields?: string;
|
|
1167
|
+
/** 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. */
|
|
1168
|
+
key?: string;
|
|
1169
|
+
/** Required. The resource name of the business identity. Format: `accounts/{account}/businessIdentity`. For example, `accounts/123456/businessIdentity`. */
|
|
1170
|
+
name: string;
|
|
1171
|
+
/** OAuth 2.0 token for the current user. */
|
|
1172
|
+
oauth_token?: string;
|
|
1173
|
+
/** Returns response with indentations and line breaks. */
|
|
1174
|
+
prettyPrint?: boolean;
|
|
1175
|
+
/** 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. */
|
|
1176
|
+
quotaUser?: string;
|
|
1177
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1178
|
+
upload_protocol?: string;
|
|
1179
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1180
|
+
uploadType?: string;
|
|
1181
|
+
}): Request<BusinessIdentity>;
|
|
1182
|
+
/** Updates the business identity of an account. Executing this method requires admin access. */
|
|
1183
|
+
updateBusinessIdentity(request: {
|
|
1184
|
+
/** V1 error format. */
|
|
1185
|
+
'$.xgafv'?: string;
|
|
1186
|
+
/** OAuth access token. */
|
|
1187
|
+
access_token?: string;
|
|
1188
|
+
/** Data format for response. */
|
|
1189
|
+
alt?: string;
|
|
1190
|
+
/** JSONP */
|
|
1191
|
+
callback?: string;
|
|
1192
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1193
|
+
fields?: string;
|
|
1194
|
+
/** 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. */
|
|
1195
|
+
key?: string;
|
|
1196
|
+
/** Identifier. The resource name of the business identity. Format: `accounts/{account}/businessIdentity` */
|
|
1197
|
+
name: string;
|
|
1198
|
+
/** OAuth 2.0 token for the current user. */
|
|
1199
|
+
oauth_token?: string;
|
|
1200
|
+
/** Returns response with indentations and line breaks. */
|
|
1201
|
+
prettyPrint?: boolean;
|
|
1202
|
+
/** 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. */
|
|
1203
|
+
quotaUser?: string;
|
|
1204
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `black_owned` - `latino_owned` - `promotions_consent` - `small_business` - `veteran_owned` - `women_owned` */
|
|
1205
|
+
updateMask?: string;
|
|
1206
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1207
|
+
upload_protocol?: string;
|
|
1208
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1209
|
+
uploadType?: string;
|
|
1210
|
+
/** Request body */
|
|
1211
|
+
resource: BusinessIdentity;
|
|
1212
|
+
}): Request<BusinessIdentity>;
|
|
1213
|
+
updateBusinessIdentity(
|
|
1214
|
+
request: {
|
|
1215
|
+
/** V1 error format. */
|
|
1216
|
+
'$.xgafv'?: string;
|
|
1217
|
+
/** OAuth access token. */
|
|
1218
|
+
access_token?: string;
|
|
1219
|
+
/** Data format for response. */
|
|
1220
|
+
alt?: string;
|
|
1221
|
+
/** JSONP */
|
|
1222
|
+
callback?: string;
|
|
1223
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1224
|
+
fields?: string;
|
|
1225
|
+
/** 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. */
|
|
1226
|
+
key?: string;
|
|
1227
|
+
/** Identifier. The resource name of the business identity. Format: `accounts/{account}/businessIdentity` */
|
|
1228
|
+
name: string;
|
|
1229
|
+
/** OAuth 2.0 token for the current user. */
|
|
1230
|
+
oauth_token?: string;
|
|
1231
|
+
/** Returns response with indentations and line breaks. */
|
|
1232
|
+
prettyPrint?: boolean;
|
|
1233
|
+
/** 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. */
|
|
1234
|
+
quotaUser?: string;
|
|
1235
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `black_owned` - `latino_owned` - `promotions_consent` - `small_business` - `veteran_owned` - `women_owned` */
|
|
1236
|
+
updateMask?: string;
|
|
1237
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1238
|
+
upload_protocol?: string;
|
|
1239
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1240
|
+
uploadType?: string;
|
|
1241
|
+
},
|
|
1242
|
+
body: BusinessIdentity,
|
|
1243
|
+
): Request<BusinessIdentity>;
|
|
1244
|
+
}
|
|
1245
|
+
interface BusinessInfoResource {
|
|
1246
|
+
/** Retrieves the business info of an account. */
|
|
1247
|
+
getBusinessInfo(request?: {
|
|
1248
|
+
/** V1 error format. */
|
|
1249
|
+
'$.xgafv'?: string;
|
|
1250
|
+
/** OAuth access token. */
|
|
1251
|
+
access_token?: string;
|
|
1252
|
+
/** Data format for response. */
|
|
1253
|
+
alt?: string;
|
|
1254
|
+
/** JSONP */
|
|
1255
|
+
callback?: string;
|
|
1256
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1257
|
+
fields?: string;
|
|
1258
|
+
/** 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. */
|
|
1259
|
+
key?: string;
|
|
1260
|
+
/** Required. The resource name of the business info. Format: `accounts/{account}/businessInfo`. For example, `accounts/123456/businessInfo`. */
|
|
1261
|
+
name: string;
|
|
1262
|
+
/** OAuth 2.0 token for the current user. */
|
|
1263
|
+
oauth_token?: string;
|
|
1264
|
+
/** Returns response with indentations and line breaks. */
|
|
1265
|
+
prettyPrint?: boolean;
|
|
1266
|
+
/** 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. */
|
|
1267
|
+
quotaUser?: string;
|
|
1268
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1269
|
+
upload_protocol?: string;
|
|
1270
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1271
|
+
uploadType?: string;
|
|
1272
|
+
}): Request<BusinessInfo>;
|
|
1273
|
+
/** Updates the business info of an account. Executing this method requires admin access. */
|
|
1274
|
+
updateBusinessInfo(request: {
|
|
1275
|
+
/** V1 error format. */
|
|
1276
|
+
'$.xgafv'?: string;
|
|
1277
|
+
/** OAuth access token. */
|
|
1278
|
+
access_token?: string;
|
|
1279
|
+
/** Data format for response. */
|
|
1280
|
+
alt?: string;
|
|
1281
|
+
/** JSONP */
|
|
1282
|
+
callback?: string;
|
|
1283
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1284
|
+
fields?: string;
|
|
1285
|
+
/** 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. */
|
|
1286
|
+
key?: string;
|
|
1287
|
+
/** Identifier. The resource name of the business info. Format: `accounts/{account}/businessInfo` */
|
|
1288
|
+
name: string;
|
|
1289
|
+
/** OAuth 2.0 token for the current user. */
|
|
1290
|
+
oauth_token?: string;
|
|
1291
|
+
/** Returns response with indentations and line breaks. */
|
|
1292
|
+
prettyPrint?: boolean;
|
|
1293
|
+
/** 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. */
|
|
1294
|
+
quotaUser?: string;
|
|
1295
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `address` - `customer_service` - `korean_business_registration_number` */
|
|
1296
|
+
updateMask?: string;
|
|
1297
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1298
|
+
upload_protocol?: string;
|
|
1299
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1300
|
+
uploadType?: string;
|
|
1301
|
+
/** Request body */
|
|
1302
|
+
resource: BusinessInfo;
|
|
1303
|
+
}): Request<BusinessInfo>;
|
|
1304
|
+
updateBusinessInfo(
|
|
1305
|
+
request: {
|
|
1306
|
+
/** V1 error format. */
|
|
1307
|
+
'$.xgafv'?: string;
|
|
1308
|
+
/** OAuth access token. */
|
|
1309
|
+
access_token?: string;
|
|
1310
|
+
/** Data format for response. */
|
|
1311
|
+
alt?: string;
|
|
1312
|
+
/** JSONP */
|
|
1313
|
+
callback?: string;
|
|
1314
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1315
|
+
fields?: string;
|
|
1316
|
+
/** 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. */
|
|
1317
|
+
key?: string;
|
|
1318
|
+
/** Identifier. The resource name of the business info. Format: `accounts/{account}/businessInfo` */
|
|
1319
|
+
name: string;
|
|
1320
|
+
/** OAuth 2.0 token for the current user. */
|
|
1321
|
+
oauth_token?: string;
|
|
1322
|
+
/** Returns response with indentations and line breaks. */
|
|
1323
|
+
prettyPrint?: boolean;
|
|
1324
|
+
/** 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. */
|
|
1325
|
+
quotaUser?: string;
|
|
1326
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `address` - `customer_service` - `korean_business_registration_number` */
|
|
1327
|
+
updateMask?: string;
|
|
1328
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1329
|
+
upload_protocol?: string;
|
|
1330
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1331
|
+
uploadType?: string;
|
|
1332
|
+
},
|
|
1333
|
+
body: BusinessInfo,
|
|
1334
|
+
): Request<BusinessInfo>;
|
|
1335
|
+
}
|
|
1336
|
+
interface DeveloperRegistrationResource {
|
|
1337
|
+
/** Retrieves a developer registration for a merchant. */
|
|
1338
|
+
getDeveloperRegistration(request?: {
|
|
1339
|
+
/** V1 error format. */
|
|
1340
|
+
'$.xgafv'?: string;
|
|
1341
|
+
/** OAuth access token. */
|
|
1342
|
+
access_token?: string;
|
|
1343
|
+
/** Data format for response. */
|
|
1344
|
+
alt?: string;
|
|
1345
|
+
/** JSONP */
|
|
1346
|
+
callback?: string;
|
|
1347
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1348
|
+
fields?: string;
|
|
1349
|
+
/** 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. */
|
|
1350
|
+
key?: string;
|
|
1351
|
+
/** Required. The `name` (ID) of the developer registration. */
|
|
1352
|
+
name: string;
|
|
1353
|
+
/** OAuth 2.0 token for the current user. */
|
|
1354
|
+
oauth_token?: string;
|
|
1355
|
+
/** Returns response with indentations and line breaks. */
|
|
1356
|
+
prettyPrint?: boolean;
|
|
1357
|
+
/** 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. */
|
|
1358
|
+
quotaUser?: string;
|
|
1359
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1360
|
+
upload_protocol?: string;
|
|
1361
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1362
|
+
uploadType?: string;
|
|
1363
|
+
}): Request<DeveloperRegistration>;
|
|
1364
|
+
/** Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an "API developer" and add the "developer_email" as a contact with "API notifications" email preference on. */
|
|
1365
|
+
registerGcp(request: {
|
|
1366
|
+
/** V1 error format. */
|
|
1367
|
+
'$.xgafv'?: string;
|
|
1368
|
+
/** OAuth access token. */
|
|
1369
|
+
access_token?: string;
|
|
1370
|
+
/** Data format for response. */
|
|
1371
|
+
alt?: string;
|
|
1372
|
+
/** JSONP */
|
|
1373
|
+
callback?: string;
|
|
1374
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1375
|
+
fields?: string;
|
|
1376
|
+
/** 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. */
|
|
1377
|
+
key?: string;
|
|
1378
|
+
/** Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` */
|
|
1379
|
+
name: string;
|
|
1380
|
+
/** OAuth 2.0 token for the current user. */
|
|
1381
|
+
oauth_token?: string;
|
|
1382
|
+
/** Returns response with indentations and line breaks. */
|
|
1383
|
+
prettyPrint?: boolean;
|
|
1384
|
+
/** 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. */
|
|
1385
|
+
quotaUser?: string;
|
|
1386
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1387
|
+
upload_protocol?: string;
|
|
1388
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1389
|
+
uploadType?: string;
|
|
1390
|
+
/** Request body */
|
|
1391
|
+
resource: RegisterGcpRequest;
|
|
1392
|
+
}): Request<DeveloperRegistration>;
|
|
1393
|
+
registerGcp(
|
|
1394
|
+
request: {
|
|
1395
|
+
/** V1 error format. */
|
|
1396
|
+
'$.xgafv'?: string;
|
|
1397
|
+
/** OAuth access token. */
|
|
1398
|
+
access_token?: string;
|
|
1399
|
+
/** Data format for response. */
|
|
1400
|
+
alt?: string;
|
|
1401
|
+
/** JSONP */
|
|
1402
|
+
callback?: string;
|
|
1403
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1404
|
+
fields?: string;
|
|
1405
|
+
/** 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. */
|
|
1406
|
+
key?: string;
|
|
1407
|
+
/** Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` */
|
|
1408
|
+
name: string;
|
|
1409
|
+
/** OAuth 2.0 token for the current user. */
|
|
1410
|
+
oauth_token?: string;
|
|
1411
|
+
/** Returns response with indentations and line breaks. */
|
|
1412
|
+
prettyPrint?: boolean;
|
|
1413
|
+
/** 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. */
|
|
1414
|
+
quotaUser?: string;
|
|
1415
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1416
|
+
upload_protocol?: string;
|
|
1417
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1418
|
+
uploadType?: string;
|
|
1419
|
+
},
|
|
1420
|
+
body: RegisterGcpRequest,
|
|
1421
|
+
): Request<DeveloperRegistration>;
|
|
1422
|
+
/** Unregister the calling GCP from the calling shopping account. Note that the GCP will still be able to access the API for at most 1 day from the unregister succussful call. */
|
|
1423
|
+
unregisterGcp(request: {
|
|
1424
|
+
/** V1 error format. */
|
|
1425
|
+
'$.xgafv'?: string;
|
|
1426
|
+
/** OAuth access token. */
|
|
1427
|
+
access_token?: string;
|
|
1428
|
+
/** Data format for response. */
|
|
1429
|
+
alt?: string;
|
|
1430
|
+
/** JSONP */
|
|
1431
|
+
callback?: string;
|
|
1432
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1433
|
+
fields?: string;
|
|
1434
|
+
/** 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. */
|
|
1435
|
+
key?: string;
|
|
1436
|
+
/** Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` */
|
|
1437
|
+
name: string;
|
|
1438
|
+
/** OAuth 2.0 token for the current user. */
|
|
1439
|
+
oauth_token?: string;
|
|
1440
|
+
/** Returns response with indentations and line breaks. */
|
|
1441
|
+
prettyPrint?: boolean;
|
|
1442
|
+
/** 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. */
|
|
1443
|
+
quotaUser?: string;
|
|
1444
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1445
|
+
upload_protocol?: string;
|
|
1446
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1447
|
+
uploadType?: string;
|
|
1448
|
+
/** Request body */
|
|
1449
|
+
resource: UnregisterGcpRequest;
|
|
1450
|
+
}): Request<{}>;
|
|
1451
|
+
unregisterGcp(
|
|
1452
|
+
request: {
|
|
1453
|
+
/** V1 error format. */
|
|
1454
|
+
'$.xgafv'?: string;
|
|
1455
|
+
/** OAuth access token. */
|
|
1456
|
+
access_token?: string;
|
|
1457
|
+
/** Data format for response. */
|
|
1458
|
+
alt?: string;
|
|
1459
|
+
/** JSONP */
|
|
1460
|
+
callback?: string;
|
|
1461
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1462
|
+
fields?: string;
|
|
1463
|
+
/** 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. */
|
|
1464
|
+
key?: string;
|
|
1465
|
+
/** Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` */
|
|
1466
|
+
name: string;
|
|
1467
|
+
/** OAuth 2.0 token for the current user. */
|
|
1468
|
+
oauth_token?: string;
|
|
1469
|
+
/** Returns response with indentations and line breaks. */
|
|
1470
|
+
prettyPrint?: boolean;
|
|
1471
|
+
/** 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. */
|
|
1472
|
+
quotaUser?: string;
|
|
1473
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1474
|
+
upload_protocol?: string;
|
|
1475
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1476
|
+
uploadType?: string;
|
|
1477
|
+
},
|
|
1478
|
+
body: UnregisterGcpRequest,
|
|
1479
|
+
): Request<{}>;
|
|
1480
|
+
}
|
|
1481
|
+
interface EmailPreferencesResource {
|
|
1482
|
+
/** Returns the email preferences for a Merchant Center account user. This service only permits retrieving and updating email preferences for the authenticated user. Use the name=accounts/*/users/me/emailPreferences alias to get preferences for the authenticated user. */
|
|
1483
|
+
getEmailPreferences(request?: {
|
|
1484
|
+
/** V1 error format. */
|
|
1485
|
+
'$.xgafv'?: string;
|
|
1486
|
+
/** OAuth access token. */
|
|
1487
|
+
access_token?: string;
|
|
1488
|
+
/** Data format for response. */
|
|
1489
|
+
alt?: string;
|
|
1490
|
+
/** JSONP */
|
|
1491
|
+
callback?: string;
|
|
1492
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1493
|
+
fields?: string;
|
|
1494
|
+
/** 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. */
|
|
1495
|
+
key?: string;
|
|
1496
|
+
/** Required. The name of the `EmailPreferences` resource. Format: `accounts/{account}/users/{email}/emailPreferences` */
|
|
1497
|
+
name: string;
|
|
1498
|
+
/** OAuth 2.0 token for the current user. */
|
|
1499
|
+
oauth_token?: string;
|
|
1500
|
+
/** Returns response with indentations and line breaks. */
|
|
1501
|
+
prettyPrint?: boolean;
|
|
1502
|
+
/** 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. */
|
|
1503
|
+
quotaUser?: string;
|
|
1504
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1505
|
+
upload_protocol?: string;
|
|
1506
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1507
|
+
uploadType?: string;
|
|
1508
|
+
}): Request<EmailPreferences>;
|
|
1509
|
+
/** Updates the email preferences for a Merchant Center account user. Advanced account users should specify the advanced account rather than a sub-account of the advanced account. 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. */
|
|
1510
|
+
updateEmailPreferences(request: {
|
|
1511
|
+
/** V1 error format. */
|
|
1512
|
+
'$.xgafv'?: string;
|
|
1513
|
+
/** OAuth access token. */
|
|
1514
|
+
access_token?: string;
|
|
1515
|
+
/** Data format for response. */
|
|
1516
|
+
alt?: string;
|
|
1517
|
+
/** JSONP */
|
|
1518
|
+
callback?: string;
|
|
1519
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1520
|
+
fields?: string;
|
|
1521
|
+
/** 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. */
|
|
1522
|
+
key?: string;
|
|
1523
|
+
/** Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user. */
|
|
1524
|
+
name: string;
|
|
1525
|
+
/** OAuth 2.0 token for the current user. */
|
|
1526
|
+
oauth_token?: string;
|
|
1527
|
+
/** Returns response with indentations and line breaks. */
|
|
1528
|
+
prettyPrint?: boolean;
|
|
1529
|
+
/** 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. */
|
|
1530
|
+
quotaUser?: string;
|
|
1531
|
+
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `news_and_tips` */
|
|
1532
|
+
updateMask?: string;
|
|
1533
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1534
|
+
upload_protocol?: string;
|
|
1535
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1536
|
+
uploadType?: string;
|
|
1537
|
+
/** Request body */
|
|
1538
|
+
resource: EmailPreferences;
|
|
1539
|
+
}): Request<EmailPreferences>;
|
|
1540
|
+
updateEmailPreferences(
|
|
1541
|
+
request: {
|
|
1542
|
+
/** V1 error format. */
|
|
1543
|
+
'$.xgafv'?: string;
|
|
1544
|
+
/** OAuth access token. */
|
|
1545
|
+
access_token?: string;
|
|
1546
|
+
/** Data format for response. */
|
|
1547
|
+
alt?: string;
|
|
1548
|
+
/** JSONP */
|
|
1549
|
+
callback?: string;
|
|
1550
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1551
|
+
fields?: string;
|
|
1552
|
+
/** 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. */
|
|
1553
|
+
key?: string;
|
|
1554
|
+
/** Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user. */
|
|
1555
|
+
name: string;
|
|
1556
|
+
/** OAuth 2.0 token for the current user. */
|
|
1557
|
+
oauth_token?: string;
|
|
1558
|
+
/** Returns response with indentations and line breaks. */
|
|
1559
|
+
prettyPrint?: boolean;
|
|
1560
|
+
/** 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. */
|
|
1561
|
+
quotaUser?: string;
|
|
1562
|
+
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `news_and_tips` */
|
|
1563
|
+
updateMask?: string;
|
|
1564
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1565
|
+
upload_protocol?: string;
|
|
1566
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1567
|
+
uploadType?: string;
|
|
1568
|
+
},
|
|
1569
|
+
body: EmailPreferences,
|
|
1570
|
+
): Request<EmailPreferences>;
|
|
1571
|
+
}
|
|
1572
|
+
interface GbpAccountsResource {
|
|
1573
|
+
/** Link the specified merchant to a GBP account for all countries. To run this method, you must have admin access to the Merchant Center account. If you don't have admin access, the request fails with the error message `User is not an administrator of account {ACCOUNT_ID}`. */
|
|
1574
|
+
linkGbpAccount(request: {
|
|
1575
|
+
/** V1 error format. */
|
|
1576
|
+
'$.xgafv'?: string;
|
|
1577
|
+
/** OAuth access token. */
|
|
1578
|
+
access_token?: string;
|
|
1579
|
+
/** Data format for response. */
|
|
1580
|
+
alt?: string;
|
|
1581
|
+
/** JSONP */
|
|
1582
|
+
callback?: string;
|
|
1583
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1584
|
+
fields?: string;
|
|
1585
|
+
/** 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. */
|
|
1586
|
+
key?: string;
|
|
1587
|
+
/** OAuth 2.0 token for the current user. */
|
|
1588
|
+
oauth_token?: string;
|
|
1589
|
+
/** Required. The name of the parent resource to which the GBP account is linked. Format: `accounts/{account}`. */
|
|
1590
|
+
parent: string;
|
|
1591
|
+
/** Returns response with indentations and line breaks. */
|
|
1592
|
+
prettyPrint?: boolean;
|
|
1593
|
+
/** 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. */
|
|
1594
|
+
quotaUser?: string;
|
|
1595
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1596
|
+
upload_protocol?: string;
|
|
1597
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1598
|
+
uploadType?: string;
|
|
1599
|
+
/** Request body */
|
|
1600
|
+
resource: LinkGbpAccountRequest;
|
|
1601
|
+
}): Request<LinkGbpAccountResponse>;
|
|
1602
|
+
linkGbpAccount(
|
|
1603
|
+
request: {
|
|
1604
|
+
/** V1 error format. */
|
|
1605
|
+
'$.xgafv'?: string;
|
|
1606
|
+
/** OAuth access token. */
|
|
1607
|
+
access_token?: string;
|
|
1608
|
+
/** Data format for response. */
|
|
1609
|
+
alt?: string;
|
|
1610
|
+
/** JSONP */
|
|
1611
|
+
callback?: string;
|
|
1612
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1613
|
+
fields?: string;
|
|
1614
|
+
/** 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. */
|
|
1615
|
+
key?: string;
|
|
1616
|
+
/** OAuth 2.0 token for the current user. */
|
|
1617
|
+
oauth_token?: string;
|
|
1618
|
+
/** Required. The name of the parent resource to which the GBP account is linked. Format: `accounts/{account}`. */
|
|
1619
|
+
parent: string;
|
|
1620
|
+
/** Returns response with indentations and line breaks. */
|
|
1621
|
+
prettyPrint?: boolean;
|
|
1622
|
+
/** 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. */
|
|
1623
|
+
quotaUser?: string;
|
|
1624
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1625
|
+
upload_protocol?: string;
|
|
1626
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1627
|
+
uploadType?: string;
|
|
1628
|
+
},
|
|
1629
|
+
body: LinkGbpAccountRequest,
|
|
1630
|
+
): Request<LinkGbpAccountResponse>;
|
|
1631
|
+
/** List the GBP accounts for a given merchant. */
|
|
1632
|
+
list(request?: {
|
|
1633
|
+
/** V1 error format. */
|
|
1634
|
+
'$.xgafv'?: string;
|
|
1635
|
+
/** OAuth access token. */
|
|
1636
|
+
access_token?: string;
|
|
1637
|
+
/** Data format for response. */
|
|
1638
|
+
alt?: string;
|
|
1639
|
+
/** JSONP */
|
|
1640
|
+
callback?: string;
|
|
1641
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1642
|
+
fields?: string;
|
|
1643
|
+
/** 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. */
|
|
1644
|
+
key?: string;
|
|
1645
|
+
/** OAuth 2.0 token for the current user. */
|
|
1646
|
+
oauth_token?: string;
|
|
1647
|
+
/** Optional. The maximum number of `GbpAccount` resources to return. The service returns fewer than this value if the number of gbp accounts is less that than the `pageSize`. The default value is 50. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum. */
|
|
1648
|
+
pageSize?: number;
|
|
1649
|
+
/** Optional. A page token, received from a previous `ListGbpAccounts` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListGbpAccounts` must match the call that provided the page token. */
|
|
1650
|
+
pageToken?: string;
|
|
1651
|
+
/** Required. The name of the parent resource under which the GBP accounts are listed. Format: `accounts/{account}`. */
|
|
1652
|
+
parent: string;
|
|
1653
|
+
/** Returns response with indentations and line breaks. */
|
|
1654
|
+
prettyPrint?: boolean;
|
|
1655
|
+
/** 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. */
|
|
1656
|
+
quotaUser?: string;
|
|
1657
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1658
|
+
upload_protocol?: string;
|
|
1659
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1660
|
+
uploadType?: string;
|
|
1661
|
+
}): Request<ListGbpAccountsResponse>;
|
|
1662
|
+
}
|
|
1663
|
+
interface HomepageResource {
|
|
1664
|
+
/** Claims a store's homepage. Executing this method requires admin access. If the homepage is already claimed, this will recheck the verification (unless the business 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 is returned: * PERMISSION_DENIED: User doesn't have the necessary permissions on this Merchant Center account. * FAILED_PRECONDITION: - The account is not a Merchant Center account. - Merchant Center account doesn't have a homepage. - Claiming failed (in this case the error message contains more details). */
|
|
1665
|
+
claim(request: {
|
|
1666
|
+
/** V1 error format. */
|
|
1667
|
+
'$.xgafv'?: string;
|
|
1668
|
+
/** OAuth access token. */
|
|
1669
|
+
access_token?: string;
|
|
1670
|
+
/** Data format for response. */
|
|
1671
|
+
alt?: string;
|
|
1672
|
+
/** JSONP */
|
|
1673
|
+
callback?: string;
|
|
1674
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1675
|
+
fields?: string;
|
|
1676
|
+
/** 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. */
|
|
1677
|
+
key?: string;
|
|
1678
|
+
/** Required. The name of the homepage to claim. Format: `accounts/{account}/homepage` */
|
|
1679
|
+
name: string;
|
|
1680
|
+
/** OAuth 2.0 token for the current user. */
|
|
1681
|
+
oauth_token?: string;
|
|
1682
|
+
/** Returns response with indentations and line breaks. */
|
|
1683
|
+
prettyPrint?: boolean;
|
|
1684
|
+
/** 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. */
|
|
1685
|
+
quotaUser?: string;
|
|
1686
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1687
|
+
upload_protocol?: string;
|
|
1688
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1689
|
+
uploadType?: string;
|
|
1690
|
+
/** Request body */
|
|
1691
|
+
resource: ClaimHomepageRequest;
|
|
1692
|
+
}): Request<Homepage>;
|
|
1693
|
+
claim(
|
|
1694
|
+
request: {
|
|
1695
|
+
/** V1 error format. */
|
|
1696
|
+
'$.xgafv'?: string;
|
|
1697
|
+
/** OAuth access token. */
|
|
1698
|
+
access_token?: string;
|
|
1699
|
+
/** Data format for response. */
|
|
1700
|
+
alt?: string;
|
|
1701
|
+
/** JSONP */
|
|
1702
|
+
callback?: string;
|
|
1703
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1704
|
+
fields?: string;
|
|
1705
|
+
/** 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. */
|
|
1706
|
+
key?: string;
|
|
1707
|
+
/** Required. The name of the homepage to claim. Format: `accounts/{account}/homepage` */
|
|
1708
|
+
name: string;
|
|
1709
|
+
/** OAuth 2.0 token for the current user. */
|
|
1710
|
+
oauth_token?: string;
|
|
1711
|
+
/** Returns response with indentations and line breaks. */
|
|
1712
|
+
prettyPrint?: boolean;
|
|
1713
|
+
/** 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. */
|
|
1714
|
+
quotaUser?: string;
|
|
1715
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1716
|
+
upload_protocol?: string;
|
|
1717
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1718
|
+
uploadType?: string;
|
|
1719
|
+
},
|
|
1720
|
+
body: ClaimHomepageRequest,
|
|
1721
|
+
): Request<Homepage>;
|
|
1722
|
+
/** Retrieves a store's homepage. */
|
|
1723
|
+
getHomepage(request?: {
|
|
1724
|
+
/** V1 error format. */
|
|
1725
|
+
'$.xgafv'?: string;
|
|
1726
|
+
/** OAuth access token. */
|
|
1727
|
+
access_token?: string;
|
|
1728
|
+
/** Data format for response. */
|
|
1729
|
+
alt?: string;
|
|
1730
|
+
/** JSONP */
|
|
1731
|
+
callback?: string;
|
|
1732
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1733
|
+
fields?: string;
|
|
1734
|
+
/** 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. */
|
|
1735
|
+
key?: string;
|
|
1736
|
+
/** Required. The name of the homepage to retrieve. Format: `accounts/{account}/homepage` */
|
|
1737
|
+
name: string;
|
|
1738
|
+
/** OAuth 2.0 token for the current user. */
|
|
1739
|
+
oauth_token?: string;
|
|
1740
|
+
/** Returns response with indentations and line breaks. */
|
|
1741
|
+
prettyPrint?: boolean;
|
|
1742
|
+
/** 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. */
|
|
1743
|
+
quotaUser?: string;
|
|
1744
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1745
|
+
upload_protocol?: string;
|
|
1746
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1747
|
+
uploadType?: string;
|
|
1748
|
+
}): Request<Homepage>;
|
|
1749
|
+
/** Unclaims a store's homepage. Executing this method requires admin access. */
|
|
1750
|
+
unclaim(request: {
|
|
1751
|
+
/** V1 error format. */
|
|
1752
|
+
'$.xgafv'?: string;
|
|
1753
|
+
/** OAuth access token. */
|
|
1754
|
+
access_token?: string;
|
|
1755
|
+
/** Data format for response. */
|
|
1756
|
+
alt?: string;
|
|
1757
|
+
/** JSONP */
|
|
1758
|
+
callback?: string;
|
|
1759
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1760
|
+
fields?: string;
|
|
1761
|
+
/** 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. */
|
|
1762
|
+
key?: string;
|
|
1763
|
+
/** Required. The name of the homepage to unclaim. Format: `accounts/{account}/homepage` */
|
|
1764
|
+
name: string;
|
|
1765
|
+
/** OAuth 2.0 token for the current user. */
|
|
1766
|
+
oauth_token?: string;
|
|
1767
|
+
/** Returns response with indentations and line breaks. */
|
|
1768
|
+
prettyPrint?: boolean;
|
|
1769
|
+
/** 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. */
|
|
1770
|
+
quotaUser?: string;
|
|
1771
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1772
|
+
upload_protocol?: string;
|
|
1773
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1774
|
+
uploadType?: string;
|
|
1775
|
+
/** Request body */
|
|
1776
|
+
resource: UnclaimHomepageRequest;
|
|
1777
|
+
}): Request<Homepage>;
|
|
1778
|
+
unclaim(
|
|
1779
|
+
request: {
|
|
1780
|
+
/** V1 error format. */
|
|
1781
|
+
'$.xgafv'?: string;
|
|
1782
|
+
/** OAuth access token. */
|
|
1783
|
+
access_token?: string;
|
|
1784
|
+
/** Data format for response. */
|
|
1785
|
+
alt?: string;
|
|
1786
|
+
/** JSONP */
|
|
1787
|
+
callback?: string;
|
|
1788
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1789
|
+
fields?: string;
|
|
1790
|
+
/** 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. */
|
|
1791
|
+
key?: string;
|
|
1792
|
+
/** Required. The name of the homepage to unclaim. Format: `accounts/{account}/homepage` */
|
|
1793
|
+
name: string;
|
|
1794
|
+
/** OAuth 2.0 token for the current user. */
|
|
1795
|
+
oauth_token?: string;
|
|
1796
|
+
/** Returns response with indentations and line breaks. */
|
|
1797
|
+
prettyPrint?: boolean;
|
|
1798
|
+
/** 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. */
|
|
1799
|
+
quotaUser?: string;
|
|
1800
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1801
|
+
upload_protocol?: string;
|
|
1802
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1803
|
+
uploadType?: string;
|
|
1804
|
+
},
|
|
1805
|
+
body: UnclaimHomepageRequest,
|
|
1806
|
+
): Request<Homepage>;
|
|
1807
|
+
/** Updates a store's homepage. Executing this method requires admin access. */
|
|
1808
|
+
updateHomepage(request: {
|
|
1809
|
+
/** V1 error format. */
|
|
1810
|
+
'$.xgafv'?: string;
|
|
1811
|
+
/** OAuth access token. */
|
|
1812
|
+
access_token?: string;
|
|
1813
|
+
/** Data format for response. */
|
|
1814
|
+
alt?: string;
|
|
1815
|
+
/** JSONP */
|
|
1816
|
+
callback?: string;
|
|
1817
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1818
|
+
fields?: string;
|
|
1819
|
+
/** 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. */
|
|
1820
|
+
key?: string;
|
|
1821
|
+
/** Identifier. The resource name of the store's homepage. Format: `accounts/{account}/homepage` */
|
|
1822
|
+
name: string;
|
|
1823
|
+
/** OAuth 2.0 token for the current user. */
|
|
1824
|
+
oauth_token?: string;
|
|
1825
|
+
/** Returns response with indentations and line breaks. */
|
|
1826
|
+
prettyPrint?: boolean;
|
|
1827
|
+
/** 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. */
|
|
1828
|
+
quotaUser?: string;
|
|
1829
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `uri` */
|
|
1830
|
+
updateMask?: string;
|
|
1831
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1832
|
+
upload_protocol?: string;
|
|
1833
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1834
|
+
uploadType?: string;
|
|
1835
|
+
/** Request body */
|
|
1836
|
+
resource: Homepage;
|
|
1837
|
+
}): Request<Homepage>;
|
|
1838
|
+
updateHomepage(
|
|
1839
|
+
request: {
|
|
1840
|
+
/** V1 error format. */
|
|
1841
|
+
'$.xgafv'?: string;
|
|
1842
|
+
/** OAuth access token. */
|
|
1843
|
+
access_token?: string;
|
|
1844
|
+
/** Data format for response. */
|
|
1845
|
+
alt?: string;
|
|
1846
|
+
/** JSONP */
|
|
1847
|
+
callback?: string;
|
|
1848
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1849
|
+
fields?: string;
|
|
1850
|
+
/** 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. */
|
|
1851
|
+
key?: string;
|
|
1852
|
+
/** Identifier. The resource name of the store's homepage. Format: `accounts/{account}/homepage` */
|
|
1853
|
+
name: string;
|
|
1854
|
+
/** OAuth 2.0 token for the current user. */
|
|
1855
|
+
oauth_token?: string;
|
|
1856
|
+
/** Returns response with indentations and line breaks. */
|
|
1857
|
+
prettyPrint?: boolean;
|
|
1858
|
+
/** 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. */
|
|
1859
|
+
quotaUser?: string;
|
|
1860
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `uri` */
|
|
1861
|
+
updateMask?: string;
|
|
1862
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1863
|
+
upload_protocol?: string;
|
|
1864
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1865
|
+
uploadType?: string;
|
|
1866
|
+
},
|
|
1867
|
+
body: Homepage,
|
|
1868
|
+
): Request<Homepage>;
|
|
1869
|
+
}
|
|
1870
|
+
interface IssuesResource {
|
|
1871
|
+
/** Lists all account issues of a Merchant Center account. When called on a multi-client account, this method only returns issues belonging to that account, not its sub-accounts. To retrieve issues for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.issues.list` for each sub-account individually. */
|
|
1872
|
+
list(request?: {
|
|
1873
|
+
/** V1 error format. */
|
|
1874
|
+
'$.xgafv'?: string;
|
|
1875
|
+
/** OAuth access token. */
|
|
1876
|
+
access_token?: string;
|
|
1877
|
+
/** Data format for response. */
|
|
1878
|
+
alt?: string;
|
|
1879
|
+
/** JSONP */
|
|
1880
|
+
callback?: string;
|
|
1881
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1882
|
+
fields?: string;
|
|
1883
|
+
/** 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. */
|
|
1884
|
+
key?: string;
|
|
1885
|
+
/** 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. */
|
|
1886
|
+
languageCode?: string;
|
|
1887
|
+
/** OAuth 2.0 token for the current user. */
|
|
1888
|
+
oauth_token?: string;
|
|
1889
|
+
/** Optional. The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 100; values above 100 will be coerced to 100 */
|
|
1890
|
+
pageSize?: number;
|
|
1891
|
+
/** 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. */
|
|
1892
|
+
pageToken?: string;
|
|
1893
|
+
/** Required. The parent, which owns this collection of issues. Format: `accounts/{account}` */
|
|
1894
|
+
parent: string;
|
|
1895
|
+
/** Returns response with indentations and line breaks. */
|
|
1896
|
+
prettyPrint?: boolean;
|
|
1897
|
+
/** 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. */
|
|
1898
|
+
quotaUser?: string;
|
|
1899
|
+
/** Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in human-readable fields. For example 'America/Los_Angeles'. If not set, 'America/Los_Angeles' will be used. */
|
|
1900
|
+
timeZone?: string;
|
|
1901
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1902
|
+
upload_protocol?: string;
|
|
1903
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1904
|
+
uploadType?: string;
|
|
1905
|
+
}): Request<ListAccountIssuesResponse>;
|
|
1906
|
+
}
|
|
1907
|
+
interface LfpProvidersResource {
|
|
1908
|
+
/** Find the LFP provider candidates in a given country. */
|
|
1909
|
+
find(request?: {
|
|
1910
|
+
/** V1 error format. */
|
|
1911
|
+
'$.xgafv'?: string;
|
|
1912
|
+
/** OAuth access token. */
|
|
1913
|
+
access_token?: string;
|
|
1914
|
+
/** Data format for response. */
|
|
1915
|
+
alt?: string;
|
|
1916
|
+
/** JSONP */
|
|
1917
|
+
callback?: string;
|
|
1918
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1919
|
+
fields?: string;
|
|
1920
|
+
/** 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. */
|
|
1921
|
+
key?: string;
|
|
1922
|
+
/** OAuth 2.0 token for the current user. */
|
|
1923
|
+
oauth_token?: string;
|
|
1924
|
+
/** Optional. The maximum number of `LfpProvider` resources to return. The service returns fewer than this value if the number of lfp providers is less that than the `pageSize`. The default value is 50. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum. */
|
|
1925
|
+
pageSize?: number;
|
|
1926
|
+
/** Optional. A page token, received from a previous `FindLfpProviders` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `FindLfpProviders` must match the call that provided the page token. */
|
|
1927
|
+
pageToken?: string;
|
|
1928
|
+
/** Required. The name of the parent resource under which the LFP providers are found. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. */
|
|
1929
|
+
parent: string;
|
|
1930
|
+
/** Returns response with indentations and line breaks. */
|
|
1931
|
+
prettyPrint?: boolean;
|
|
1932
|
+
/** 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. */
|
|
1933
|
+
quotaUser?: string;
|
|
1934
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1935
|
+
upload_protocol?: string;
|
|
1936
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1937
|
+
uploadType?: string;
|
|
1938
|
+
}): Request<FindLfpProvidersResponse>;
|
|
1939
|
+
/** Link the specified merchant to a LFP provider for the specified country. */
|
|
1940
|
+
linkLfpProvider(request: {
|
|
1941
|
+
/** V1 error format. */
|
|
1942
|
+
'$.xgafv'?: string;
|
|
1943
|
+
/** OAuth access token. */
|
|
1944
|
+
access_token?: string;
|
|
1945
|
+
/** Data format for response. */
|
|
1946
|
+
alt?: string;
|
|
1947
|
+
/** JSONP */
|
|
1948
|
+
callback?: string;
|
|
1949
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1950
|
+
fields?: string;
|
|
1951
|
+
/** 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. */
|
|
1952
|
+
key?: string;
|
|
1953
|
+
/** Required. The name of the LFP provider resource to link. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}`. The `lfp_provider` is the LFP provider ID. */
|
|
1954
|
+
name: string;
|
|
1955
|
+
/** OAuth 2.0 token for the current user. */
|
|
1956
|
+
oauth_token?: string;
|
|
1957
|
+
/** Returns response with indentations and line breaks. */
|
|
1958
|
+
prettyPrint?: boolean;
|
|
1959
|
+
/** 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. */
|
|
1960
|
+
quotaUser?: string;
|
|
1961
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1962
|
+
upload_protocol?: string;
|
|
1963
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1964
|
+
uploadType?: string;
|
|
1965
|
+
/** Request body */
|
|
1966
|
+
resource: LinkLfpProviderRequest;
|
|
1967
|
+
}): Request<LinkLfpProviderResponse>;
|
|
1968
|
+
linkLfpProvider(
|
|
1969
|
+
request: {
|
|
1970
|
+
/** V1 error format. */
|
|
1971
|
+
'$.xgafv'?: string;
|
|
1972
|
+
/** OAuth access token. */
|
|
1973
|
+
access_token?: string;
|
|
1974
|
+
/** Data format for response. */
|
|
1975
|
+
alt?: string;
|
|
1976
|
+
/** JSONP */
|
|
1977
|
+
callback?: string;
|
|
1978
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1979
|
+
fields?: string;
|
|
1980
|
+
/** 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. */
|
|
1981
|
+
key?: string;
|
|
1982
|
+
/** Required. The name of the LFP provider resource to link. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}`. The `lfp_provider` is the LFP provider ID. */
|
|
1983
|
+
name: string;
|
|
1984
|
+
/** OAuth 2.0 token for the current user. */
|
|
1985
|
+
oauth_token?: string;
|
|
1986
|
+
/** Returns response with indentations and line breaks. */
|
|
1987
|
+
prettyPrint?: boolean;
|
|
1988
|
+
/** 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. */
|
|
1989
|
+
quotaUser?: string;
|
|
1990
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1991
|
+
upload_protocol?: string;
|
|
1992
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1993
|
+
uploadType?: string;
|
|
1994
|
+
},
|
|
1995
|
+
body: LinkLfpProviderRequest,
|
|
1996
|
+
): Request<LinkLfpProviderResponse>;
|
|
1997
|
+
}
|
|
1998
|
+
interface OmnichannelSettingsResource {
|
|
1999
|
+
/** Create the omnichannel settings for a given merchant. */
|
|
2000
|
+
create(request: {
|
|
2001
|
+
/** V1 error format. */
|
|
2002
|
+
'$.xgafv'?: string;
|
|
2003
|
+
/** OAuth access token. */
|
|
2004
|
+
access_token?: string;
|
|
2005
|
+
/** Data format for response. */
|
|
2006
|
+
alt?: string;
|
|
2007
|
+
/** JSONP */
|
|
2008
|
+
callback?: string;
|
|
2009
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2010
|
+
fields?: string;
|
|
2011
|
+
/** 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. */
|
|
2012
|
+
key?: string;
|
|
2013
|
+
/** OAuth 2.0 token for the current user. */
|
|
2014
|
+
oauth_token?: string;
|
|
2015
|
+
/** Required. The parent resource where this omnichannel setting will be created. Format: `accounts/{account}` */
|
|
2016
|
+
parent: string;
|
|
2017
|
+
/** Returns response with indentations and line breaks. */
|
|
2018
|
+
prettyPrint?: boolean;
|
|
2019
|
+
/** 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. */
|
|
2020
|
+
quotaUser?: string;
|
|
2021
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2022
|
+
upload_protocol?: string;
|
|
2023
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2024
|
+
uploadType?: string;
|
|
2025
|
+
/** Request body */
|
|
2026
|
+
resource: OmnichannelSetting;
|
|
2027
|
+
}): Request<OmnichannelSetting>;
|
|
2028
|
+
create(
|
|
2029
|
+
request: {
|
|
2030
|
+
/** V1 error format. */
|
|
2031
|
+
'$.xgafv'?: string;
|
|
2032
|
+
/** OAuth access token. */
|
|
2033
|
+
access_token?: string;
|
|
2034
|
+
/** Data format for response. */
|
|
2035
|
+
alt?: string;
|
|
2036
|
+
/** JSONP */
|
|
2037
|
+
callback?: string;
|
|
2038
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2039
|
+
fields?: string;
|
|
2040
|
+
/** 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. */
|
|
2041
|
+
key?: string;
|
|
2042
|
+
/** OAuth 2.0 token for the current user. */
|
|
2043
|
+
oauth_token?: string;
|
|
2044
|
+
/** Required. The parent resource where this omnichannel setting will be created. Format: `accounts/{account}` */
|
|
2045
|
+
parent: string;
|
|
2046
|
+
/** Returns response with indentations and line breaks. */
|
|
2047
|
+
prettyPrint?: boolean;
|
|
2048
|
+
/** 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. */
|
|
2049
|
+
quotaUser?: string;
|
|
2050
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2051
|
+
upload_protocol?: string;
|
|
2052
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2053
|
+
uploadType?: string;
|
|
2054
|
+
},
|
|
2055
|
+
body: OmnichannelSetting,
|
|
2056
|
+
): Request<OmnichannelSetting>;
|
|
2057
|
+
/** Get the omnichannel settings for a given merchant. */
|
|
2058
|
+
get(request?: {
|
|
2059
|
+
/** V1 error format. */
|
|
2060
|
+
'$.xgafv'?: string;
|
|
2061
|
+
/** OAuth access token. */
|
|
2062
|
+
access_token?: string;
|
|
2063
|
+
/** Data format for response. */
|
|
2064
|
+
alt?: string;
|
|
2065
|
+
/** JSONP */
|
|
2066
|
+
callback?: string;
|
|
2067
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2068
|
+
fields?: string;
|
|
2069
|
+
/** 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. */
|
|
2070
|
+
key?: string;
|
|
2071
|
+
/** Required. The name of the omnichannel setting to retrieve. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}` */
|
|
2072
|
+
name: string;
|
|
2073
|
+
/** OAuth 2.0 token for the current user. */
|
|
2074
|
+
oauth_token?: string;
|
|
2075
|
+
/** Returns response with indentations and line breaks. */
|
|
2076
|
+
prettyPrint?: boolean;
|
|
2077
|
+
/** 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. */
|
|
2078
|
+
quotaUser?: string;
|
|
2079
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2080
|
+
upload_protocol?: string;
|
|
2081
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2082
|
+
uploadType?: string;
|
|
2083
|
+
}): Request<OmnichannelSetting>;
|
|
2084
|
+
/** List all the omnichannel settings for a given merchant. */
|
|
2085
|
+
list(request?: {
|
|
2086
|
+
/** V1 error format. */
|
|
2087
|
+
'$.xgafv'?: string;
|
|
2088
|
+
/** OAuth access token. */
|
|
2089
|
+
access_token?: string;
|
|
2090
|
+
/** Data format for response. */
|
|
2091
|
+
alt?: string;
|
|
2092
|
+
/** JSONP */
|
|
2093
|
+
callback?: string;
|
|
2094
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2095
|
+
fields?: string;
|
|
2096
|
+
/** 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. */
|
|
2097
|
+
key?: string;
|
|
2098
|
+
/** OAuth 2.0 token for the current user. */
|
|
2099
|
+
oauth_token?: string;
|
|
2100
|
+
/** Optional. The maximum number of omnichannel settings to return. The service may return fewer than this value. If unspecified, at most 50 omnichannel settings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. */
|
|
2101
|
+
pageSize?: number;
|
|
2102
|
+
/** Optional. A page token, received from a previous `ListOmnichannelSettings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListOmnichannelSettings` must match the call that provided the page token. */
|
|
2103
|
+
pageToken?: string;
|
|
2104
|
+
/** Required. The parent, which owns this collection of omnichannel settings. Format: `accounts/{account}` */
|
|
2105
|
+
parent: string;
|
|
2106
|
+
/** Returns response with indentations and line breaks. */
|
|
2107
|
+
prettyPrint?: boolean;
|
|
2108
|
+
/** 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. */
|
|
2109
|
+
quotaUser?: string;
|
|
2110
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2111
|
+
upload_protocol?: string;
|
|
2112
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2113
|
+
uploadType?: string;
|
|
2114
|
+
}): Request<ListOmnichannelSettingsResponse>;
|
|
2115
|
+
/** Update the omnichannel setting for a given merchant in a given country. */
|
|
2116
|
+
patch(request: {
|
|
2117
|
+
/** V1 error format. */
|
|
2118
|
+
'$.xgafv'?: string;
|
|
2119
|
+
/** OAuth access token. */
|
|
2120
|
+
access_token?: string;
|
|
2121
|
+
/** Data format for response. */
|
|
2122
|
+
alt?: string;
|
|
2123
|
+
/** JSONP */
|
|
2124
|
+
callback?: string;
|
|
2125
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2126
|
+
fields?: string;
|
|
2127
|
+
/** 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. */
|
|
2128
|
+
key?: string;
|
|
2129
|
+
/** Identifier. The resource name of the omnichannel setting. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}` */
|
|
2130
|
+
name: string;
|
|
2131
|
+
/** OAuth 2.0 token for the current user. */
|
|
2132
|
+
oauth_token?: string;
|
|
2133
|
+
/** Returns response with indentations and line breaks. */
|
|
2134
|
+
prettyPrint?: boolean;
|
|
2135
|
+
/** 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. */
|
|
2136
|
+
quotaUser?: string;
|
|
2137
|
+
/** Required. The list of fields to be updated. The following fields are supported in snake_case only: - `lsf_type` - `in_stock` - `pickup` - `odo` - `about` - `inventory_verification` Full replacement with wildcard `*`is supported, while empty/implied update mask is not. */
|
|
2138
|
+
updateMask?: string;
|
|
2139
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2140
|
+
upload_protocol?: string;
|
|
2141
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2142
|
+
uploadType?: string;
|
|
2143
|
+
/** Request body */
|
|
2144
|
+
resource: OmnichannelSetting;
|
|
2145
|
+
}): Request<OmnichannelSetting>;
|
|
2146
|
+
patch(
|
|
2147
|
+
request: {
|
|
2148
|
+
/** V1 error format. */
|
|
2149
|
+
'$.xgafv'?: string;
|
|
2150
|
+
/** OAuth access token. */
|
|
2151
|
+
access_token?: string;
|
|
2152
|
+
/** Data format for response. */
|
|
2153
|
+
alt?: string;
|
|
2154
|
+
/** JSONP */
|
|
2155
|
+
callback?: string;
|
|
2156
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2157
|
+
fields?: string;
|
|
2158
|
+
/** 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. */
|
|
2159
|
+
key?: string;
|
|
2160
|
+
/** Identifier. The resource name of the omnichannel setting. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}` */
|
|
2161
|
+
name: string;
|
|
2162
|
+
/** OAuth 2.0 token for the current user. */
|
|
2163
|
+
oauth_token?: string;
|
|
2164
|
+
/** Returns response with indentations and line breaks. */
|
|
2165
|
+
prettyPrint?: boolean;
|
|
2166
|
+
/** 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. */
|
|
2167
|
+
quotaUser?: string;
|
|
2168
|
+
/** Required. The list of fields to be updated. The following fields are supported in snake_case only: - `lsf_type` - `in_stock` - `pickup` - `odo` - `about` - `inventory_verification` Full replacement with wildcard `*`is supported, while empty/implied update mask is not. */
|
|
2169
|
+
updateMask?: string;
|
|
2170
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2171
|
+
upload_protocol?: string;
|
|
2172
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2173
|
+
uploadType?: string;
|
|
2174
|
+
},
|
|
2175
|
+
body: OmnichannelSetting,
|
|
2176
|
+
): Request<OmnichannelSetting>;
|
|
2177
|
+
/** Requests inventory verification for a given merchant in a given country. */
|
|
2178
|
+
requestInventoryVerification(request: {
|
|
2179
|
+
/** V1 error format. */
|
|
2180
|
+
'$.xgafv'?: string;
|
|
2181
|
+
/** OAuth access token. */
|
|
2182
|
+
access_token?: string;
|
|
2183
|
+
/** Data format for response. */
|
|
2184
|
+
alt?: string;
|
|
2185
|
+
/** JSONP */
|
|
2186
|
+
callback?: string;
|
|
2187
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2188
|
+
fields?: string;
|
|
2189
|
+
/** 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. */
|
|
2190
|
+
key?: string;
|
|
2191
|
+
/** Required. The name of the omnichannel setting to request inventory verification. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}` */
|
|
2192
|
+
name: string;
|
|
2193
|
+
/** OAuth 2.0 token for the current user. */
|
|
2194
|
+
oauth_token?: string;
|
|
2195
|
+
/** Returns response with indentations and line breaks. */
|
|
2196
|
+
prettyPrint?: boolean;
|
|
2197
|
+
/** 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. */
|
|
2198
|
+
quotaUser?: string;
|
|
2199
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2200
|
+
upload_protocol?: string;
|
|
2201
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2202
|
+
uploadType?: string;
|
|
2203
|
+
/** Request body */
|
|
2204
|
+
resource: RequestInventoryVerificationRequest;
|
|
2205
|
+
}): Request<RequestInventoryVerificationResponse>;
|
|
2206
|
+
requestInventoryVerification(
|
|
2207
|
+
request: {
|
|
2208
|
+
/** V1 error format. */
|
|
2209
|
+
'$.xgafv'?: string;
|
|
2210
|
+
/** OAuth access token. */
|
|
2211
|
+
access_token?: string;
|
|
2212
|
+
/** Data format for response. */
|
|
2213
|
+
alt?: string;
|
|
2214
|
+
/** JSONP */
|
|
2215
|
+
callback?: string;
|
|
2216
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2217
|
+
fields?: string;
|
|
2218
|
+
/** 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. */
|
|
2219
|
+
key?: string;
|
|
2220
|
+
/** Required. The name of the omnichannel setting to request inventory verification. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}` */
|
|
2221
|
+
name: string;
|
|
2222
|
+
/** OAuth 2.0 token for the current user. */
|
|
2223
|
+
oauth_token?: string;
|
|
2224
|
+
/** Returns response with indentations and line breaks. */
|
|
2225
|
+
prettyPrint?: boolean;
|
|
2226
|
+
/** 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. */
|
|
2227
|
+
quotaUser?: string;
|
|
2228
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2229
|
+
upload_protocol?: string;
|
|
2230
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2231
|
+
uploadType?: string;
|
|
2232
|
+
},
|
|
2233
|
+
body: RequestInventoryVerificationRequest,
|
|
2234
|
+
): Request<RequestInventoryVerificationResponse>;
|
|
2235
|
+
lfpProviders: LfpProvidersResource;
|
|
2236
|
+
}
|
|
2237
|
+
interface OnlineReturnPoliciesResource {
|
|
2238
|
+
/** Creates a new return policy for a given business. */
|
|
2239
|
+
create(request: {
|
|
2240
|
+
/** V1 error format. */
|
|
2241
|
+
'$.xgafv'?: string;
|
|
2242
|
+
/** OAuth access token. */
|
|
2243
|
+
access_token?: string;
|
|
2244
|
+
/** Data format for response. */
|
|
2245
|
+
alt?: string;
|
|
2246
|
+
/** JSONP */
|
|
2247
|
+
callback?: string;
|
|
2248
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2249
|
+
fields?: string;
|
|
2250
|
+
/** 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. */
|
|
2251
|
+
key?: string;
|
|
2252
|
+
/** OAuth 2.0 token for the current user. */
|
|
2253
|
+
oauth_token?: string;
|
|
2254
|
+
/** Required. The Merchant Center account for which the return policy will be created. Format: `accounts/{account}` */
|
|
2255
|
+
parent: string;
|
|
2256
|
+
/** Returns response with indentations and line breaks. */
|
|
2257
|
+
prettyPrint?: boolean;
|
|
2258
|
+
/** 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. */
|
|
2259
|
+
quotaUser?: string;
|
|
2260
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2261
|
+
upload_protocol?: string;
|
|
2262
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2263
|
+
uploadType?: string;
|
|
2264
|
+
/** Request body */
|
|
2265
|
+
resource: OnlineReturnPolicy;
|
|
2266
|
+
}): Request<OnlineReturnPolicy>;
|
|
2267
|
+
create(
|
|
2268
|
+
request: {
|
|
2269
|
+
/** V1 error format. */
|
|
2270
|
+
'$.xgafv'?: string;
|
|
2271
|
+
/** OAuth access token. */
|
|
2272
|
+
access_token?: string;
|
|
2273
|
+
/** Data format for response. */
|
|
2274
|
+
alt?: string;
|
|
2275
|
+
/** JSONP */
|
|
2276
|
+
callback?: string;
|
|
2277
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2278
|
+
fields?: string;
|
|
2279
|
+
/** 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. */
|
|
2280
|
+
key?: string;
|
|
2281
|
+
/** OAuth 2.0 token for the current user. */
|
|
2282
|
+
oauth_token?: string;
|
|
2283
|
+
/** Required. The Merchant Center account for which the return policy will be created. Format: `accounts/{account}` */
|
|
2284
|
+
parent: string;
|
|
2285
|
+
/** Returns response with indentations and line breaks. */
|
|
2286
|
+
prettyPrint?: boolean;
|
|
2287
|
+
/** 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. */
|
|
2288
|
+
quotaUser?: 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
|
+
},
|
|
2294
|
+
body: OnlineReturnPolicy,
|
|
2295
|
+
): Request<OnlineReturnPolicy>;
|
|
2296
|
+
/** Deletes an existing return policy. */
|
|
2297
|
+
delete(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
|
+
/** Required. The name of the return policy to delete. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}` */
|
|
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
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2319
|
+
upload_protocol?: string;
|
|
2320
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2321
|
+
uploadType?: string;
|
|
2322
|
+
}): Request<{}>;
|
|
2323
|
+
/** Gets an existing return policy for a given business. */
|
|
2324
|
+
get(request?: {
|
|
2325
|
+
/** V1 error format. */
|
|
2326
|
+
'$.xgafv'?: string;
|
|
2327
|
+
/** OAuth access token. */
|
|
2328
|
+
access_token?: string;
|
|
2329
|
+
/** Data format for response. */
|
|
2330
|
+
alt?: string;
|
|
2331
|
+
/** JSONP */
|
|
2332
|
+
callback?: string;
|
|
2333
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2334
|
+
fields?: string;
|
|
2335
|
+
/** 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. */
|
|
2336
|
+
key?: string;
|
|
2337
|
+
/** Required. The name of the return policy to retrieve. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}` */
|
|
2338
|
+
name: string;
|
|
2339
|
+
/** OAuth 2.0 token for the current user. */
|
|
2340
|
+
oauth_token?: string;
|
|
2341
|
+
/** Returns response with indentations and line breaks. */
|
|
2342
|
+
prettyPrint?: boolean;
|
|
2343
|
+
/** 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. */
|
|
2344
|
+
quotaUser?: string;
|
|
2345
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2346
|
+
upload_protocol?: string;
|
|
2347
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2348
|
+
uploadType?: string;
|
|
2349
|
+
}): Request<OnlineReturnPolicy>;
|
|
2350
|
+
/** Lists all existing return policies for a given business. */
|
|
2351
|
+
list(request?: {
|
|
2352
|
+
/** V1 error format. */
|
|
2353
|
+
'$.xgafv'?: string;
|
|
2354
|
+
/** OAuth access token. */
|
|
2355
|
+
access_token?: string;
|
|
2356
|
+
/** Data format for response. */
|
|
2357
|
+
alt?: string;
|
|
2358
|
+
/** JSONP */
|
|
2359
|
+
callback?: string;
|
|
2360
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2361
|
+
fields?: string;
|
|
2362
|
+
/** 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. */
|
|
2363
|
+
key?: string;
|
|
2364
|
+
/** OAuth 2.0 token for the current user. */
|
|
2365
|
+
oauth_token?: string;
|
|
2366
|
+
/** 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 business 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 */
|
|
2367
|
+
pageSize?: number;
|
|
2368
|
+
/** 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. */
|
|
2369
|
+
pageToken?: string;
|
|
2370
|
+
/** Required. The Merchant Center account for which to list return policies. Format: `accounts/{account}` */
|
|
2371
|
+
parent: string;
|
|
2372
|
+
/** Returns response with indentations and line breaks. */
|
|
2373
|
+
prettyPrint?: boolean;
|
|
2374
|
+
/** 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. */
|
|
2375
|
+
quotaUser?: string;
|
|
2376
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2377
|
+
upload_protocol?: string;
|
|
2378
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2379
|
+
uploadType?: string;
|
|
2380
|
+
}): Request<ListOnlineReturnPoliciesResponse>;
|
|
2381
|
+
}
|
|
2382
|
+
interface CheckoutSettingsResource {
|
|
2383
|
+
/** Creates `CheckoutSettings` for the given merchant. */
|
|
2384
|
+
create(request: {
|
|
2385
|
+
/** V1 error format. */
|
|
2386
|
+
'$.xgafv'?: string;
|
|
2387
|
+
/** OAuth access token. */
|
|
2388
|
+
access_token?: string;
|
|
2389
|
+
/** Data format for response. */
|
|
2390
|
+
alt?: string;
|
|
2391
|
+
/** JSONP */
|
|
2392
|
+
callback?: string;
|
|
2393
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2394
|
+
fields?: string;
|
|
2395
|
+
/** 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. */
|
|
2396
|
+
key?: string;
|
|
2397
|
+
/** OAuth 2.0 token for the current user. */
|
|
2398
|
+
oauth_token?: string;
|
|
2399
|
+
/** Required. The merchant account for which the `CheckoutSettings` will be created. */
|
|
2400
|
+
parent: string;
|
|
2401
|
+
/** Returns response with indentations and line breaks. */
|
|
2402
|
+
prettyPrint?: boolean;
|
|
2403
|
+
/** 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. */
|
|
2404
|
+
quotaUser?: string;
|
|
2405
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2406
|
+
upload_protocol?: string;
|
|
2407
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2408
|
+
uploadType?: string;
|
|
2409
|
+
/** Request body */
|
|
2410
|
+
resource: CheckoutSettings;
|
|
2411
|
+
}): Request<CheckoutSettings>;
|
|
2412
|
+
create(
|
|
2413
|
+
request: {
|
|
2414
|
+
/** V1 error format. */
|
|
2415
|
+
'$.xgafv'?: string;
|
|
2416
|
+
/** OAuth access token. */
|
|
2417
|
+
access_token?: string;
|
|
2418
|
+
/** Data format for response. */
|
|
2419
|
+
alt?: string;
|
|
2420
|
+
/** JSONP */
|
|
2421
|
+
callback?: string;
|
|
2422
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2423
|
+
fields?: string;
|
|
2424
|
+
/** 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. */
|
|
2425
|
+
key?: string;
|
|
2426
|
+
/** OAuth 2.0 token for the current user. */
|
|
2427
|
+
oauth_token?: string;
|
|
2428
|
+
/** Required. The merchant account for which the `CheckoutSettings` will be created. */
|
|
2429
|
+
parent: string;
|
|
2430
|
+
/** Returns response with indentations and line breaks. */
|
|
2431
|
+
prettyPrint?: boolean;
|
|
2432
|
+
/** 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. */
|
|
2433
|
+
quotaUser?: string;
|
|
2434
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2435
|
+
upload_protocol?: string;
|
|
2436
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2437
|
+
uploadType?: string;
|
|
2438
|
+
},
|
|
2439
|
+
body: CheckoutSettings,
|
|
2440
|
+
): Request<CheckoutSettings>;
|
|
2441
|
+
/** Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program. */
|
|
2442
|
+
deleteCheckoutSettings(request?: {
|
|
2443
|
+
/** V1 error format. */
|
|
2444
|
+
'$.xgafv'?: string;
|
|
2445
|
+
/** OAuth access token. */
|
|
2446
|
+
access_token?: string;
|
|
2447
|
+
/** Data format for response. */
|
|
2448
|
+
alt?: string;
|
|
2449
|
+
/** JSONP */
|
|
2450
|
+
callback?: string;
|
|
2451
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2452
|
+
fields?: string;
|
|
2453
|
+
/** 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. */
|
|
2454
|
+
key?: string;
|
|
2455
|
+
/** Required. The name/identifier of the merchant account. Format: `accounts/{account}/programs/{program}/checkoutSettings` */
|
|
2456
|
+
name: string;
|
|
2457
|
+
/** OAuth 2.0 token for the current user. */
|
|
2458
|
+
oauth_token?: string;
|
|
2459
|
+
/** Returns response with indentations and line breaks. */
|
|
2460
|
+
prettyPrint?: boolean;
|
|
2461
|
+
/** 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. */
|
|
2462
|
+
quotaUser?: string;
|
|
2463
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2464
|
+
upload_protocol?: string;
|
|
2465
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2466
|
+
uploadType?: string;
|
|
2467
|
+
}): Request<{}>;
|
|
2468
|
+
/** Gets `CheckoutSettings` for the given merchant. This includes information about review state, enrollment state and URL settings. */
|
|
2469
|
+
getCheckoutSettings(request?: {
|
|
2470
|
+
/** V1 error format. */
|
|
2471
|
+
'$.xgafv'?: string;
|
|
2472
|
+
/** OAuth access token. */
|
|
2473
|
+
access_token?: string;
|
|
2474
|
+
/** Data format for response. */
|
|
2475
|
+
alt?: string;
|
|
2476
|
+
/** JSONP */
|
|
2477
|
+
callback?: string;
|
|
2478
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2479
|
+
fields?: string;
|
|
2480
|
+
/** 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. */
|
|
2481
|
+
key?: string;
|
|
2482
|
+
/** Required. The name/identifier of the merchant account. Format: `accounts/{account}/programs/{program}/checkoutSettings` */
|
|
2483
|
+
name: string;
|
|
2484
|
+
/** OAuth 2.0 token for the current user. */
|
|
2485
|
+
oauth_token?: string;
|
|
2486
|
+
/** Returns response with indentations and line breaks. */
|
|
2487
|
+
prettyPrint?: boolean;
|
|
2488
|
+
/** 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. */
|
|
2489
|
+
quotaUser?: string;
|
|
2490
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2491
|
+
upload_protocol?: string;
|
|
2492
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2493
|
+
uploadType?: string;
|
|
2494
|
+
}): Request<CheckoutSettings>;
|
|
2495
|
+
/** Updates `CheckoutSettings` for the given merchant. */
|
|
2496
|
+
updateCheckoutSettings(request: {
|
|
2497
|
+
/** V1 error format. */
|
|
2498
|
+
'$.xgafv'?: string;
|
|
2499
|
+
/** OAuth access token. */
|
|
2500
|
+
access_token?: string;
|
|
2501
|
+
/** Data format for response. */
|
|
2502
|
+
alt?: string;
|
|
2503
|
+
/** JSONP */
|
|
2504
|
+
callback?: string;
|
|
2505
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2506
|
+
fields?: string;
|
|
2507
|
+
/** 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. */
|
|
2508
|
+
key?: string;
|
|
2509
|
+
/** Identifier. The resource name of the program configuration settings. Format: `accounts/{account}/programs/{program}/checkoutSettings` */
|
|
2510
|
+
name: string;
|
|
2511
|
+
/** OAuth 2.0 token for the current user. */
|
|
2512
|
+
oauth_token?: string;
|
|
2513
|
+
/** Returns response with indentations and line breaks. */
|
|
2514
|
+
prettyPrint?: boolean;
|
|
2515
|
+
/** 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. */
|
|
2516
|
+
quotaUser?: string;
|
|
2517
|
+
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `eligible_destinations` - `uri_settings` */
|
|
2518
|
+
updateMask?: string;
|
|
2519
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2520
|
+
upload_protocol?: string;
|
|
2521
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2522
|
+
uploadType?: string;
|
|
2523
|
+
/** Request body */
|
|
2524
|
+
resource: CheckoutSettings;
|
|
2525
|
+
}): Request<CheckoutSettings>;
|
|
2526
|
+
updateCheckoutSettings(
|
|
2527
|
+
request: {
|
|
2528
|
+
/** V1 error format. */
|
|
2529
|
+
'$.xgafv'?: string;
|
|
2530
|
+
/** OAuth access token. */
|
|
2531
|
+
access_token?: string;
|
|
2532
|
+
/** Data format for response. */
|
|
2533
|
+
alt?: string;
|
|
2534
|
+
/** JSONP */
|
|
2535
|
+
callback?: string;
|
|
2536
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2537
|
+
fields?: string;
|
|
2538
|
+
/** 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. */
|
|
2539
|
+
key?: string;
|
|
2540
|
+
/** Identifier. The resource name of the program configuration settings. Format: `accounts/{account}/programs/{program}/checkoutSettings` */
|
|
2541
|
+
name: string;
|
|
2542
|
+
/** OAuth 2.0 token for the current user. */
|
|
2543
|
+
oauth_token?: string;
|
|
2544
|
+
/** Returns response with indentations and line breaks. */
|
|
2545
|
+
prettyPrint?: boolean;
|
|
2546
|
+
/** 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. */
|
|
2547
|
+
quotaUser?: string;
|
|
2548
|
+
/** Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `eligible_destinations` - `uri_settings` */
|
|
2549
|
+
updateMask?: string;
|
|
2550
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2551
|
+
upload_protocol?: string;
|
|
2552
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2553
|
+
uploadType?: string;
|
|
2554
|
+
},
|
|
2555
|
+
body: CheckoutSettings,
|
|
2556
|
+
): Request<CheckoutSettings>;
|
|
2557
|
+
}
|
|
2558
|
+
interface ProgramsResource {
|
|
2559
|
+
/** Disable participation in the specified program for the account. */
|
|
2560
|
+
disable(request: {
|
|
2561
|
+
/** V1 error format. */
|
|
2562
|
+
'$.xgafv'?: string;
|
|
2563
|
+
/** OAuth access token. */
|
|
2564
|
+
access_token?: string;
|
|
2565
|
+
/** Data format for response. */
|
|
2566
|
+
alt?: string;
|
|
2567
|
+
/** JSONP */
|
|
2568
|
+
callback?: string;
|
|
2569
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2570
|
+
fields?: string;
|
|
2571
|
+
/** 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. */
|
|
2572
|
+
key?: string;
|
|
2573
|
+
/** Required. The name of the program for which to disable participation for the given account. Format: `accounts/{account}/programs/{program}`. For example, `accounts/123456/programs/free-listings`. */
|
|
2574
|
+
name: string;
|
|
2575
|
+
/** OAuth 2.0 token for the current user. */
|
|
2576
|
+
oauth_token?: string;
|
|
2577
|
+
/** Returns response with indentations and line breaks. */
|
|
2578
|
+
prettyPrint?: boolean;
|
|
2579
|
+
/** 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. */
|
|
2580
|
+
quotaUser?: string;
|
|
2581
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2582
|
+
upload_protocol?: string;
|
|
2583
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2584
|
+
uploadType?: string;
|
|
2585
|
+
/** Request body */
|
|
2586
|
+
resource: DisableProgramRequest;
|
|
2587
|
+
}): Request<Program>;
|
|
2588
|
+
disable(
|
|
2589
|
+
request: {
|
|
2590
|
+
/** V1 error format. */
|
|
2591
|
+
'$.xgafv'?: string;
|
|
2592
|
+
/** OAuth access token. */
|
|
2593
|
+
access_token?: string;
|
|
2594
|
+
/** Data format for response. */
|
|
2595
|
+
alt?: string;
|
|
2596
|
+
/** JSONP */
|
|
2597
|
+
callback?: string;
|
|
2598
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2599
|
+
fields?: string;
|
|
2600
|
+
/** 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. */
|
|
2601
|
+
key?: string;
|
|
2602
|
+
/** Required. The name of the program for which to disable participation for the given account. Format: `accounts/{account}/programs/{program}`. For example, `accounts/123456/programs/free-listings`. */
|
|
2603
|
+
name: string;
|
|
2604
|
+
/** OAuth 2.0 token for the current user. */
|
|
2605
|
+
oauth_token?: string;
|
|
2606
|
+
/** Returns response with indentations and line breaks. */
|
|
2607
|
+
prettyPrint?: boolean;
|
|
2608
|
+
/** 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. */
|
|
2609
|
+
quotaUser?: string;
|
|
2610
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2611
|
+
upload_protocol?: string;
|
|
2612
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2613
|
+
uploadType?: string;
|
|
2614
|
+
},
|
|
2615
|
+
body: DisableProgramRequest,
|
|
2616
|
+
): Request<Program>;
|
|
2617
|
+
/** Enable participation in the specified program for the account. */
|
|
2618
|
+
enable(request: {
|
|
2619
|
+
/** V1 error format. */
|
|
2620
|
+
'$.xgafv'?: string;
|
|
2621
|
+
/** OAuth access token. */
|
|
2622
|
+
access_token?: string;
|
|
2623
|
+
/** Data format for response. */
|
|
2624
|
+
alt?: string;
|
|
2625
|
+
/** JSONP */
|
|
2626
|
+
callback?: string;
|
|
2627
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2628
|
+
fields?: string;
|
|
2629
|
+
/** 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. */
|
|
2630
|
+
key?: string;
|
|
2631
|
+
/** Required. The name of the program for which to enable participation for the given account. Format: `accounts/{account}/programs/{program}`. For example, `accounts/123456/programs/free-listings`. */
|
|
2632
|
+
name: string;
|
|
2633
|
+
/** OAuth 2.0 token for the current user. */
|
|
2634
|
+
oauth_token?: string;
|
|
2635
|
+
/** Returns response with indentations and line breaks. */
|
|
2636
|
+
prettyPrint?: boolean;
|
|
2637
|
+
/** 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. */
|
|
2638
|
+
quotaUser?: string;
|
|
2639
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2640
|
+
upload_protocol?: string;
|
|
2641
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2642
|
+
uploadType?: string;
|
|
2643
|
+
/** Request body */
|
|
2644
|
+
resource: EnableProgramRequest;
|
|
2645
|
+
}): Request<Program>;
|
|
2646
|
+
enable(
|
|
2647
|
+
request: {
|
|
2648
|
+
/** V1 error format. */
|
|
2649
|
+
'$.xgafv'?: string;
|
|
2650
|
+
/** OAuth access token. */
|
|
2651
|
+
access_token?: string;
|
|
2652
|
+
/** Data format for response. */
|
|
2653
|
+
alt?: string;
|
|
2654
|
+
/** JSONP */
|
|
2655
|
+
callback?: string;
|
|
2656
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2657
|
+
fields?: string;
|
|
2658
|
+
/** 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. */
|
|
2659
|
+
key?: string;
|
|
2660
|
+
/** Required. The name of the program for which to enable participation for the given account. Format: `accounts/{account}/programs/{program}`. For example, `accounts/123456/programs/free-listings`. */
|
|
2661
|
+
name: string;
|
|
2662
|
+
/** OAuth 2.0 token for the current user. */
|
|
2663
|
+
oauth_token?: string;
|
|
2664
|
+
/** Returns response with indentations and line breaks. */
|
|
2665
|
+
prettyPrint?: boolean;
|
|
2666
|
+
/** 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. */
|
|
2667
|
+
quotaUser?: string;
|
|
2668
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2669
|
+
upload_protocol?: string;
|
|
2670
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2671
|
+
uploadType?: string;
|
|
2672
|
+
},
|
|
2673
|
+
body: EnableProgramRequest,
|
|
2674
|
+
): Request<Program>;
|
|
2675
|
+
/** Retrieves the specified program for the account. */
|
|
2676
|
+
get(request?: {
|
|
2677
|
+
/** V1 error format. */
|
|
2678
|
+
'$.xgafv'?: string;
|
|
2679
|
+
/** OAuth access token. */
|
|
2680
|
+
access_token?: string;
|
|
2681
|
+
/** Data format for response. */
|
|
2682
|
+
alt?: string;
|
|
2683
|
+
/** JSONP */
|
|
2684
|
+
callback?: string;
|
|
2685
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2686
|
+
fields?: string;
|
|
2687
|
+
/** 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. */
|
|
2688
|
+
key?: string;
|
|
2689
|
+
/** Required. The name of the program to retrieve. Format: `accounts/{account}/programs/{program}`. For example, `accounts/123456/programs/free-listings`. */
|
|
2690
|
+
name: string;
|
|
2691
|
+
/** OAuth 2.0 token for the current user. */
|
|
2692
|
+
oauth_token?: string;
|
|
2693
|
+
/** Returns response with indentations and line breaks. */
|
|
2694
|
+
prettyPrint?: boolean;
|
|
2695
|
+
/** 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. */
|
|
2696
|
+
quotaUser?: string;
|
|
2697
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2698
|
+
upload_protocol?: string;
|
|
2699
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2700
|
+
uploadType?: string;
|
|
2701
|
+
}): Request<Program>;
|
|
2702
|
+
/** Retrieves all programs for the account. */
|
|
2703
|
+
list(request?: {
|
|
2704
|
+
/** V1 error format. */
|
|
2705
|
+
'$.xgafv'?: string;
|
|
2706
|
+
/** OAuth access token. */
|
|
2707
|
+
access_token?: string;
|
|
2708
|
+
/** Data format for response. */
|
|
2709
|
+
alt?: string;
|
|
2710
|
+
/** JSONP */
|
|
2711
|
+
callback?: string;
|
|
2712
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2713
|
+
fields?: string;
|
|
2714
|
+
/** 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. */
|
|
2715
|
+
key?: string;
|
|
2716
|
+
/** OAuth 2.0 token for the current user. */
|
|
2717
|
+
oauth_token?: string;
|
|
2718
|
+
/** 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. */
|
|
2719
|
+
pageSize?: number;
|
|
2720
|
+
/** Optional. A continuation token, received from a previous `ListPrograms` call. Provide this to retrieve the next page. */
|
|
2721
|
+
pageToken?: string;
|
|
2722
|
+
/** Required. The name of the account for which to retrieve all programs. Format: `accounts/{account}` */
|
|
2723
|
+
parent: string;
|
|
2724
|
+
/** Returns response with indentations and line breaks. */
|
|
2725
|
+
prettyPrint?: boolean;
|
|
2726
|
+
/** 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. */
|
|
2727
|
+
quotaUser?: string;
|
|
2728
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2729
|
+
upload_protocol?: string;
|
|
2730
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2731
|
+
uploadType?: string;
|
|
2732
|
+
}): Request<ListProgramsResponse>;
|
|
2733
|
+
checkoutSettings: CheckoutSettingsResource;
|
|
2734
|
+
}
|
|
2735
|
+
interface RegionsResource {
|
|
2736
|
+
/** Creates a region definition in your Merchant Center account. Executing this method requires admin access. */
|
|
2737
|
+
create(request: {
|
|
2738
|
+
/** V1 error format. */
|
|
2739
|
+
'$.xgafv'?: string;
|
|
2740
|
+
/** OAuth access token. */
|
|
2741
|
+
access_token?: string;
|
|
2742
|
+
/** Data format for response. */
|
|
2743
|
+
alt?: string;
|
|
2744
|
+
/** JSONP */
|
|
2745
|
+
callback?: string;
|
|
2746
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2747
|
+
fields?: string;
|
|
2748
|
+
/** 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. */
|
|
2749
|
+
key?: string;
|
|
2750
|
+
/** OAuth 2.0 token for the current user. */
|
|
2751
|
+
oauth_token?: string;
|
|
2752
|
+
/** Required. The account to create a region for. Format: `accounts/{account}` */
|
|
2753
|
+
parent: string;
|
|
2754
|
+
/** Returns response with indentations and line breaks. */
|
|
2755
|
+
prettyPrint?: boolean;
|
|
2756
|
+
/** 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. */
|
|
2757
|
+
quotaUser?: string;
|
|
2758
|
+
/** Required. The identifier for the region, unique over all regions of the same account. */
|
|
2759
|
+
regionId?: string;
|
|
2760
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2761
|
+
upload_protocol?: string;
|
|
2762
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2763
|
+
uploadType?: string;
|
|
2764
|
+
/** Request body */
|
|
2765
|
+
resource: Region;
|
|
2766
|
+
}): Request<Region>;
|
|
2767
|
+
create(
|
|
2768
|
+
request: {
|
|
2769
|
+
/** V1 error format. */
|
|
2770
|
+
'$.xgafv'?: string;
|
|
2771
|
+
/** OAuth access token. */
|
|
2772
|
+
access_token?: string;
|
|
2773
|
+
/** Data format for response. */
|
|
2774
|
+
alt?: string;
|
|
2775
|
+
/** JSONP */
|
|
2776
|
+
callback?: string;
|
|
2777
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2778
|
+
fields?: string;
|
|
2779
|
+
/** 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. */
|
|
2780
|
+
key?: string;
|
|
2781
|
+
/** OAuth 2.0 token for the current user. */
|
|
2782
|
+
oauth_token?: string;
|
|
2783
|
+
/** Required. The account to create a region for. Format: `accounts/{account}` */
|
|
2784
|
+
parent: string;
|
|
2785
|
+
/** Returns response with indentations and line breaks. */
|
|
2786
|
+
prettyPrint?: boolean;
|
|
2787
|
+
/** 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. */
|
|
2788
|
+
quotaUser?: string;
|
|
2789
|
+
/** Required. The identifier for the region, unique over all regions of the same account. */
|
|
2790
|
+
regionId?: string;
|
|
2791
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2792
|
+
upload_protocol?: string;
|
|
2793
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2794
|
+
uploadType?: string;
|
|
2795
|
+
},
|
|
2796
|
+
body: Region,
|
|
2797
|
+
): Request<Region>;
|
|
2798
|
+
/** Deletes a region definition from your Merchant Center account. Executing this method requires admin access. */
|
|
2799
|
+
delete(request?: {
|
|
2800
|
+
/** V1 error format. */
|
|
2801
|
+
'$.xgafv'?: string;
|
|
2802
|
+
/** OAuth access token. */
|
|
2803
|
+
access_token?: string;
|
|
2804
|
+
/** Data format for response. */
|
|
2805
|
+
alt?: string;
|
|
2806
|
+
/** JSONP */
|
|
2807
|
+
callback?: string;
|
|
2808
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2809
|
+
fields?: string;
|
|
2810
|
+
/** 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. */
|
|
2811
|
+
key?: string;
|
|
2812
|
+
/** Required. The name of the region to delete. Format: `accounts/{account}/regions/{region}` */
|
|
2813
|
+
name: string;
|
|
2814
|
+
/** OAuth 2.0 token for the current user. */
|
|
2815
|
+
oauth_token?: string;
|
|
2816
|
+
/** Returns response with indentations and line breaks. */
|
|
2817
|
+
prettyPrint?: boolean;
|
|
2818
|
+
/** 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. */
|
|
2819
|
+
quotaUser?: string;
|
|
2820
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2821
|
+
upload_protocol?: string;
|
|
2822
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2823
|
+
uploadType?: string;
|
|
2824
|
+
}): Request<{}>;
|
|
2825
|
+
/** Retrieves a region defined in your Merchant Center account. */
|
|
2826
|
+
get(request?: {
|
|
2827
|
+
/** V1 error format. */
|
|
2828
|
+
'$.xgafv'?: string;
|
|
2829
|
+
/** OAuth access token. */
|
|
2830
|
+
access_token?: string;
|
|
2831
|
+
/** Data format for response. */
|
|
2832
|
+
alt?: string;
|
|
2833
|
+
/** JSONP */
|
|
2834
|
+
callback?: string;
|
|
2835
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2836
|
+
fields?: string;
|
|
2837
|
+
/** 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. */
|
|
2838
|
+
key?: string;
|
|
2839
|
+
/** Required. The name of the region to retrieve. Format: `accounts/{account}/regions/{region}` */
|
|
2840
|
+
name: string;
|
|
2841
|
+
/** OAuth 2.0 token for the current user. */
|
|
2842
|
+
oauth_token?: string;
|
|
2843
|
+
/** Returns response with indentations and line breaks. */
|
|
2844
|
+
prettyPrint?: boolean;
|
|
2845
|
+
/** 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. */
|
|
2846
|
+
quotaUser?: string;
|
|
2847
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2848
|
+
upload_protocol?: string;
|
|
2849
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2850
|
+
uploadType?: string;
|
|
2851
|
+
}): Request<Region>;
|
|
2852
|
+
/** Lists the regions in your Merchant Center account. */
|
|
2853
|
+
list(request?: {
|
|
2854
|
+
/** V1 error format. */
|
|
2855
|
+
'$.xgafv'?: string;
|
|
2856
|
+
/** OAuth access token. */
|
|
2857
|
+
access_token?: string;
|
|
2858
|
+
/** Data format for response. */
|
|
2859
|
+
alt?: string;
|
|
2860
|
+
/** JSONP */
|
|
2861
|
+
callback?: string;
|
|
2862
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2863
|
+
fields?: string;
|
|
2864
|
+
/** 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. */
|
|
2865
|
+
key?: string;
|
|
2866
|
+
/** OAuth 2.0 token for the current user. */
|
|
2867
|
+
oauth_token?: string;
|
|
2868
|
+
/** 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. */
|
|
2869
|
+
pageSize?: number;
|
|
2870
|
+
/** 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. */
|
|
2871
|
+
pageToken?: string;
|
|
2872
|
+
/** Required. The account to list regions for. Format: `accounts/{account}` */
|
|
2873
|
+
parent: string;
|
|
2874
|
+
/** Returns response with indentations and line breaks. */
|
|
2875
|
+
prettyPrint?: boolean;
|
|
2876
|
+
/** 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. */
|
|
2877
|
+
quotaUser?: string;
|
|
2878
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2879
|
+
upload_protocol?: string;
|
|
2880
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2881
|
+
uploadType?: string;
|
|
2882
|
+
}): Request<ListRegionsResponse>;
|
|
2883
|
+
/** Updates a region definition in your Merchant Center account. Executing this method requires admin access. */
|
|
2884
|
+
patch(request: {
|
|
2885
|
+
/** V1 error format. */
|
|
2886
|
+
'$.xgafv'?: string;
|
|
2887
|
+
/** OAuth access token. */
|
|
2888
|
+
access_token?: string;
|
|
2889
|
+
/** Data format for response. */
|
|
2890
|
+
alt?: string;
|
|
2891
|
+
/** JSONP */
|
|
2892
|
+
callback?: string;
|
|
2893
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2894
|
+
fields?: string;
|
|
2895
|
+
/** 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. */
|
|
2896
|
+
key?: string;
|
|
2897
|
+
/** Identifier. The resource name of the region. Format: `accounts/{account}/regions/{region}` */
|
|
2898
|
+
name: string;
|
|
2899
|
+
/** OAuth 2.0 token for the current user. */
|
|
2900
|
+
oauth_token?: string;
|
|
2901
|
+
/** Returns response with indentations and line breaks. */
|
|
2902
|
+
prettyPrint?: boolean;
|
|
2903
|
+
/** 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. */
|
|
2904
|
+
quotaUser?: string;
|
|
2905
|
+
/** Optional. The comma-separated field mask indicating the fields to update. Example: `"displayName,postalCodeArea.regionCode"`. */
|
|
2906
|
+
updateMask?: string;
|
|
2907
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2908
|
+
upload_protocol?: string;
|
|
2909
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2910
|
+
uploadType?: string;
|
|
2911
|
+
/** Request body */
|
|
2912
|
+
resource: Region;
|
|
2913
|
+
}): Request<Region>;
|
|
2914
|
+
patch(
|
|
2915
|
+
request: {
|
|
2916
|
+
/** V1 error format. */
|
|
2917
|
+
'$.xgafv'?: string;
|
|
2918
|
+
/** OAuth access token. */
|
|
2919
|
+
access_token?: string;
|
|
2920
|
+
/** Data format for response. */
|
|
2921
|
+
alt?: string;
|
|
2922
|
+
/** JSONP */
|
|
2923
|
+
callback?: string;
|
|
2924
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2925
|
+
fields?: string;
|
|
2926
|
+
/** 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. */
|
|
2927
|
+
key?: string;
|
|
2928
|
+
/** Identifier. The resource name of the region. Format: `accounts/{account}/regions/{region}` */
|
|
2929
|
+
name: string;
|
|
2930
|
+
/** OAuth 2.0 token for the current user. */
|
|
2931
|
+
oauth_token?: string;
|
|
2932
|
+
/** Returns response with indentations and line breaks. */
|
|
2933
|
+
prettyPrint?: boolean;
|
|
2934
|
+
/** 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. */
|
|
2935
|
+
quotaUser?: string;
|
|
2936
|
+
/** Optional. The comma-separated field mask indicating the fields to update. Example: `"displayName,postalCodeArea.regionCode"`. */
|
|
2937
|
+
updateMask?: string;
|
|
2938
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2939
|
+
upload_protocol?: string;
|
|
2940
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2941
|
+
uploadType?: string;
|
|
2942
|
+
},
|
|
2943
|
+
body: Region,
|
|
2944
|
+
): Request<Region>;
|
|
2945
|
+
}
|
|
2946
|
+
interface RelationshipsResource {
|
|
2947
|
+
/** Retrieve an account relationship. */
|
|
2948
|
+
get(request?: {
|
|
2949
|
+
/** V1 error format. */
|
|
2950
|
+
'$.xgafv'?: string;
|
|
2951
|
+
/** OAuth access token. */
|
|
2952
|
+
access_token?: string;
|
|
2953
|
+
/** Data format for response. */
|
|
2954
|
+
alt?: string;
|
|
2955
|
+
/** JSONP */
|
|
2956
|
+
callback?: string;
|
|
2957
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2958
|
+
fields?: string;
|
|
2959
|
+
/** 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. */
|
|
2960
|
+
key?: string;
|
|
2961
|
+
/** Required. The resource name of the account relationship to get. Format: `accounts/{account}/relationships/{relationship}`. For example, `accounts/123456/relationships/567890`. */
|
|
2962
|
+
name: string;
|
|
2963
|
+
/** OAuth 2.0 token for the current user. */
|
|
2964
|
+
oauth_token?: string;
|
|
2965
|
+
/** Returns response with indentations and line breaks. */
|
|
2966
|
+
prettyPrint?: boolean;
|
|
2967
|
+
/** 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. */
|
|
2968
|
+
quotaUser?: string;
|
|
2969
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2970
|
+
upload_protocol?: string;
|
|
2971
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2972
|
+
uploadType?: string;
|
|
2973
|
+
}): Request<AccountRelationship>;
|
|
2974
|
+
/** List account relationships for the specified account. */
|
|
2975
|
+
list(request?: {
|
|
2976
|
+
/** V1 error format. */
|
|
2977
|
+
'$.xgafv'?: string;
|
|
2978
|
+
/** OAuth access token. */
|
|
2979
|
+
access_token?: string;
|
|
2980
|
+
/** Data format for response. */
|
|
2981
|
+
alt?: string;
|
|
2982
|
+
/** JSONP */
|
|
2983
|
+
callback?: string;
|
|
2984
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2985
|
+
fields?: string;
|
|
2986
|
+
/** 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. */
|
|
2987
|
+
key?: string;
|
|
2988
|
+
/** OAuth 2.0 token for the current user. */
|
|
2989
|
+
oauth_token?: string;
|
|
2990
|
+
/** Optional. The maximum number of elements to return in the response. Use for paging. If no `page_size` is specified, `100` is used as the default value. The maximum allowed value is `1000`. */
|
|
2991
|
+
pageSize?: number;
|
|
2992
|
+
/** Optional. The token returned by the previous `list` request. */
|
|
2993
|
+
pageToken?: string;
|
|
2994
|
+
/** Required. The parent account of the account relationship to filter by. Format: `accounts/{account}` */
|
|
2995
|
+
parent: string;
|
|
2996
|
+
/** Returns response with indentations and line breaks. */
|
|
2997
|
+
prettyPrint?: boolean;
|
|
2998
|
+
/** 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. */
|
|
2999
|
+
quotaUser?: string;
|
|
3000
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3001
|
+
upload_protocol?: string;
|
|
3002
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3003
|
+
uploadType?: string;
|
|
3004
|
+
}): Request<ListAccountRelationshipsResponse>;
|
|
3005
|
+
/** Updates the account relationship. Executing this method requires admin access. */
|
|
3006
|
+
patch(request: {
|
|
3007
|
+
/** V1 error format. */
|
|
3008
|
+
'$.xgafv'?: string;
|
|
3009
|
+
/** OAuth access token. */
|
|
3010
|
+
access_token?: string;
|
|
3011
|
+
/** Data format for response. */
|
|
3012
|
+
alt?: string;
|
|
3013
|
+
/** JSONP */
|
|
3014
|
+
callback?: string;
|
|
3015
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3016
|
+
fields?: string;
|
|
3017
|
+
/** 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. */
|
|
3018
|
+
key?: string;
|
|
3019
|
+
/** Identifier. The resource name of the account relationship. Format: `accounts/{account}/relationships/{relationship}`. For example, `accounts/123456/relationships/567890`. */
|
|
3020
|
+
name: string;
|
|
3021
|
+
/** OAuth 2.0 token for the current user. */
|
|
3022
|
+
oauth_token?: string;
|
|
3023
|
+
/** Returns response with indentations and line breaks. */
|
|
3024
|
+
prettyPrint?: boolean;
|
|
3025
|
+
/** 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. */
|
|
3026
|
+
quotaUser?: string;
|
|
3027
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_id_alias` */
|
|
3028
|
+
updateMask?: string;
|
|
3029
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3030
|
+
upload_protocol?: string;
|
|
3031
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3032
|
+
uploadType?: string;
|
|
3033
|
+
/** Request body */
|
|
3034
|
+
resource: AccountRelationship;
|
|
3035
|
+
}): Request<AccountRelationship>;
|
|
3036
|
+
patch(
|
|
3037
|
+
request: {
|
|
3038
|
+
/** V1 error format. */
|
|
3039
|
+
'$.xgafv'?: string;
|
|
3040
|
+
/** OAuth access token. */
|
|
3041
|
+
access_token?: string;
|
|
3042
|
+
/** Data format for response. */
|
|
3043
|
+
alt?: string;
|
|
3044
|
+
/** JSONP */
|
|
3045
|
+
callback?: string;
|
|
3046
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3047
|
+
fields?: string;
|
|
3048
|
+
/** 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. */
|
|
3049
|
+
key?: string;
|
|
3050
|
+
/** Identifier. The resource name of the account relationship. Format: `accounts/{account}/relationships/{relationship}`. For example, `accounts/123456/relationships/567890`. */
|
|
3051
|
+
name: string;
|
|
3052
|
+
/** OAuth 2.0 token for the current user. */
|
|
3053
|
+
oauth_token?: string;
|
|
3054
|
+
/** Returns response with indentations and line breaks. */
|
|
3055
|
+
prettyPrint?: boolean;
|
|
3056
|
+
/** 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. */
|
|
3057
|
+
quotaUser?: string;
|
|
3058
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_id_alias` */
|
|
3059
|
+
updateMask?: string;
|
|
3060
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3061
|
+
upload_protocol?: string;
|
|
3062
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3063
|
+
uploadType?: string;
|
|
3064
|
+
},
|
|
3065
|
+
body: AccountRelationship,
|
|
3066
|
+
): Request<AccountRelationship>;
|
|
3067
|
+
}
|
|
3068
|
+
interface ServicesResource {
|
|
3069
|
+
/** Approve an account service proposal. */
|
|
3070
|
+
approve(request: {
|
|
3071
|
+
/** V1 error format. */
|
|
3072
|
+
'$.xgafv'?: string;
|
|
3073
|
+
/** OAuth access token. */
|
|
3074
|
+
access_token?: string;
|
|
3075
|
+
/** Data format for response. */
|
|
3076
|
+
alt?: string;
|
|
3077
|
+
/** JSONP */
|
|
3078
|
+
callback?: string;
|
|
3079
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3080
|
+
fields?: string;
|
|
3081
|
+
/** 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. */
|
|
3082
|
+
key?: string;
|
|
3083
|
+
/** Required. The resource name of the account service to approve. Format: `accounts/{account}/services/{service}` */
|
|
3084
|
+
name: string;
|
|
3085
|
+
/** OAuth 2.0 token for the current user. */
|
|
3086
|
+
oauth_token?: string;
|
|
3087
|
+
/** Returns response with indentations and line breaks. */
|
|
3088
|
+
prettyPrint?: boolean;
|
|
3089
|
+
/** 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. */
|
|
3090
|
+
quotaUser?: string;
|
|
3091
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3092
|
+
upload_protocol?: string;
|
|
3093
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3094
|
+
uploadType?: string;
|
|
3095
|
+
/** Request body */
|
|
3096
|
+
resource: ApproveAccountServiceRequest;
|
|
3097
|
+
}): Request<AccountService>;
|
|
3098
|
+
approve(
|
|
3099
|
+
request: {
|
|
3100
|
+
/** V1 error format. */
|
|
3101
|
+
'$.xgafv'?: string;
|
|
3102
|
+
/** OAuth access token. */
|
|
3103
|
+
access_token?: string;
|
|
3104
|
+
/** Data format for response. */
|
|
3105
|
+
alt?: string;
|
|
3106
|
+
/** JSONP */
|
|
3107
|
+
callback?: string;
|
|
3108
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3109
|
+
fields?: string;
|
|
3110
|
+
/** 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. */
|
|
3111
|
+
key?: string;
|
|
3112
|
+
/** Required. The resource name of the account service to approve. Format: `accounts/{account}/services/{service}` */
|
|
3113
|
+
name: string;
|
|
3114
|
+
/** OAuth 2.0 token for the current user. */
|
|
3115
|
+
oauth_token?: string;
|
|
3116
|
+
/** Returns response with indentations and line breaks. */
|
|
3117
|
+
prettyPrint?: boolean;
|
|
3118
|
+
/** 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. */
|
|
3119
|
+
quotaUser?: string;
|
|
3120
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3121
|
+
upload_protocol?: string;
|
|
3122
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3123
|
+
uploadType?: string;
|
|
3124
|
+
},
|
|
3125
|
+
body: ApproveAccountServiceRequest,
|
|
3126
|
+
): Request<AccountService>;
|
|
3127
|
+
/** Retrieve an account service. */
|
|
3128
|
+
get(request?: {
|
|
3129
|
+
/** V1 error format. */
|
|
3130
|
+
'$.xgafv'?: string;
|
|
3131
|
+
/** OAuth access token. */
|
|
3132
|
+
access_token?: string;
|
|
3133
|
+
/** Data format for response. */
|
|
3134
|
+
alt?: string;
|
|
3135
|
+
/** JSONP */
|
|
3136
|
+
callback?: string;
|
|
3137
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3138
|
+
fields?: string;
|
|
3139
|
+
/** 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. */
|
|
3140
|
+
key?: string;
|
|
3141
|
+
/** Required. The resource name of the account service to get. Format: `accounts/{account}/services/{service}` */
|
|
3142
|
+
name: string;
|
|
3143
|
+
/** OAuth 2.0 token for the current user. */
|
|
3144
|
+
oauth_token?: string;
|
|
3145
|
+
/** Returns response with indentations and line breaks. */
|
|
3146
|
+
prettyPrint?: boolean;
|
|
3147
|
+
/** 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. */
|
|
3148
|
+
quotaUser?: string;
|
|
3149
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3150
|
+
upload_protocol?: string;
|
|
3151
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3152
|
+
uploadType?: string;
|
|
3153
|
+
}): Request<AccountService>;
|
|
3154
|
+
/** List account services for the specified accounts. Supports filtering. */
|
|
3155
|
+
list(request?: {
|
|
3156
|
+
/** V1 error format. */
|
|
3157
|
+
'$.xgafv'?: string;
|
|
3158
|
+
/** OAuth access token. */
|
|
3159
|
+
access_token?: string;
|
|
3160
|
+
/** Data format for response. */
|
|
3161
|
+
alt?: string;
|
|
3162
|
+
/** JSONP */
|
|
3163
|
+
callback?: string;
|
|
3164
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3165
|
+
fields?: string;
|
|
3166
|
+
/** 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. */
|
|
3167
|
+
key?: string;
|
|
3168
|
+
/** OAuth 2.0 token for the current user. */
|
|
3169
|
+
oauth_token?: string;
|
|
3170
|
+
/** Optional. The maximum number of elements to return in the response. Use for paging. If no `page_size` is specified, `100` is used as the default value. The maximum allowed value is `1000`. */
|
|
3171
|
+
pageSize?: number;
|
|
3172
|
+
/** Optional. The token returned by the previous `list` request. */
|
|
3173
|
+
pageToken?: string;
|
|
3174
|
+
/** Required. The parent account of the account service to filter by. Format: `accounts/{account}` */
|
|
3175
|
+
parent: string;
|
|
3176
|
+
/** Returns response with indentations and line breaks. */
|
|
3177
|
+
prettyPrint?: boolean;
|
|
3178
|
+
/** 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. */
|
|
3179
|
+
quotaUser?: string;
|
|
3180
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3181
|
+
upload_protocol?: string;
|
|
3182
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3183
|
+
uploadType?: string;
|
|
3184
|
+
}): Request<ListAccountServicesResponse>;
|
|
3185
|
+
/** Propose an account service. */
|
|
3186
|
+
propose(request: {
|
|
3187
|
+
/** V1 error format. */
|
|
3188
|
+
'$.xgafv'?: string;
|
|
3189
|
+
/** OAuth access token. */
|
|
3190
|
+
access_token?: string;
|
|
3191
|
+
/** Data format for response. */
|
|
3192
|
+
alt?: string;
|
|
3193
|
+
/** JSONP */
|
|
3194
|
+
callback?: string;
|
|
3195
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3196
|
+
fields?: string;
|
|
3197
|
+
/** 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. */
|
|
3198
|
+
key?: string;
|
|
3199
|
+
/** OAuth 2.0 token for the current user. */
|
|
3200
|
+
oauth_token?: string;
|
|
3201
|
+
/** Required. The resource name of the parent account for the service. Format: `accounts/{account}` */
|
|
3202
|
+
parent: string;
|
|
3203
|
+
/** Returns response with indentations and line breaks. */
|
|
3204
|
+
prettyPrint?: boolean;
|
|
3205
|
+
/** 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. */
|
|
3206
|
+
quotaUser?: string;
|
|
3207
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3208
|
+
upload_protocol?: string;
|
|
3209
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3210
|
+
uploadType?: string;
|
|
3211
|
+
/** Request body */
|
|
3212
|
+
resource: ProposeAccountServiceRequest;
|
|
3213
|
+
}): Request<AccountService>;
|
|
3214
|
+
propose(
|
|
3215
|
+
request: {
|
|
3216
|
+
/** V1 error format. */
|
|
3217
|
+
'$.xgafv'?: string;
|
|
3218
|
+
/** OAuth access token. */
|
|
3219
|
+
access_token?: string;
|
|
3220
|
+
/** Data format for response. */
|
|
3221
|
+
alt?: string;
|
|
3222
|
+
/** JSONP */
|
|
3223
|
+
callback?: string;
|
|
3224
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3225
|
+
fields?: string;
|
|
3226
|
+
/** 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. */
|
|
3227
|
+
key?: string;
|
|
3228
|
+
/** OAuth 2.0 token for the current user. */
|
|
3229
|
+
oauth_token?: string;
|
|
3230
|
+
/** Required. The resource name of the parent account for the service. Format: `accounts/{account}` */
|
|
3231
|
+
parent: string;
|
|
3232
|
+
/** Returns response with indentations and line breaks. */
|
|
3233
|
+
prettyPrint?: boolean;
|
|
3234
|
+
/** 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. */
|
|
3235
|
+
quotaUser?: string;
|
|
3236
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3237
|
+
upload_protocol?: string;
|
|
3238
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3239
|
+
uploadType?: string;
|
|
3240
|
+
},
|
|
3241
|
+
body: ProposeAccountServiceRequest,
|
|
3242
|
+
): Request<AccountService>;
|
|
3243
|
+
/** Reject an account service (both proposed and approve services can be rejected). */
|
|
3244
|
+
reject(request: {
|
|
3245
|
+
/** V1 error format. */
|
|
3246
|
+
'$.xgafv'?: string;
|
|
3247
|
+
/** OAuth access token. */
|
|
3248
|
+
access_token?: string;
|
|
3249
|
+
/** Data format for response. */
|
|
3250
|
+
alt?: string;
|
|
3251
|
+
/** JSONP */
|
|
3252
|
+
callback?: string;
|
|
3253
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3254
|
+
fields?: string;
|
|
3255
|
+
/** 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. */
|
|
3256
|
+
key?: string;
|
|
3257
|
+
/** Required. The resource name of the account service to reject. Format: `accounts/{account}/services/{service}` */
|
|
3258
|
+
name: string;
|
|
3259
|
+
/** OAuth 2.0 token for the current user. */
|
|
3260
|
+
oauth_token?: string;
|
|
3261
|
+
/** Returns response with indentations and line breaks. */
|
|
3262
|
+
prettyPrint?: boolean;
|
|
3263
|
+
/** 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. */
|
|
3264
|
+
quotaUser?: string;
|
|
3265
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3266
|
+
upload_protocol?: string;
|
|
3267
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3268
|
+
uploadType?: string;
|
|
3269
|
+
/** Request body */
|
|
3270
|
+
resource: RejectAccountServiceRequest;
|
|
3271
|
+
}): Request<{}>;
|
|
3272
|
+
reject(
|
|
3273
|
+
request: {
|
|
3274
|
+
/** V1 error format. */
|
|
3275
|
+
'$.xgafv'?: string;
|
|
3276
|
+
/** OAuth access token. */
|
|
3277
|
+
access_token?: string;
|
|
3278
|
+
/** Data format for response. */
|
|
3279
|
+
alt?: string;
|
|
3280
|
+
/** JSONP */
|
|
3281
|
+
callback?: string;
|
|
3282
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3283
|
+
fields?: string;
|
|
3284
|
+
/** 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. */
|
|
3285
|
+
key?: string;
|
|
3286
|
+
/** Required. The resource name of the account service to reject. Format: `accounts/{account}/services/{service}` */
|
|
3287
|
+
name: string;
|
|
3288
|
+
/** OAuth 2.0 token for the current user. */
|
|
3289
|
+
oauth_token?: string;
|
|
3290
|
+
/** Returns response with indentations and line breaks. */
|
|
3291
|
+
prettyPrint?: boolean;
|
|
3292
|
+
/** 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. */
|
|
3293
|
+
quotaUser?: string;
|
|
3294
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3295
|
+
upload_protocol?: string;
|
|
3296
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3297
|
+
uploadType?: string;
|
|
3298
|
+
},
|
|
3299
|
+
body: RejectAccountServiceRequest,
|
|
3300
|
+
): Request<{}>;
|
|
3301
|
+
}
|
|
3302
|
+
interface ShippingSettingsResource {
|
|
3303
|
+
/** Retrieve shipping setting information. */
|
|
3304
|
+
getShippingSettings(request?: {
|
|
3305
|
+
/** V1 error format. */
|
|
3306
|
+
'$.xgafv'?: string;
|
|
3307
|
+
/** OAuth access token. */
|
|
3308
|
+
access_token?: string;
|
|
3309
|
+
/** Data format for response. */
|
|
3310
|
+
alt?: string;
|
|
3311
|
+
/** JSONP */
|
|
3312
|
+
callback?: string;
|
|
3313
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3314
|
+
fields?: string;
|
|
3315
|
+
/** 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. */
|
|
3316
|
+
key?: string;
|
|
3317
|
+
/** Required. The name of the shipping setting to retrieve. Format: `accounts/{account}/shippingsettings` */
|
|
3318
|
+
name: string;
|
|
3319
|
+
/** OAuth 2.0 token for the current user. */
|
|
3320
|
+
oauth_token?: string;
|
|
3321
|
+
/** Returns response with indentations and line breaks. */
|
|
3322
|
+
prettyPrint?: boolean;
|
|
3323
|
+
/** 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. */
|
|
3324
|
+
quotaUser?: string;
|
|
3325
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3326
|
+
upload_protocol?: string;
|
|
3327
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3328
|
+
uploadType?: string;
|
|
3329
|
+
}): Request<ShippingSettings>;
|
|
3330
|
+
/** Replace the shipping setting of a business with the request shipping setting. Executing this method requires admin access. */
|
|
3331
|
+
insert(request: {
|
|
3332
|
+
/** V1 error format. */
|
|
3333
|
+
'$.xgafv'?: string;
|
|
3334
|
+
/** OAuth access token. */
|
|
3335
|
+
access_token?: string;
|
|
3336
|
+
/** Data format for response. */
|
|
3337
|
+
alt?: string;
|
|
3338
|
+
/** JSONP */
|
|
3339
|
+
callback?: string;
|
|
3340
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3341
|
+
fields?: string;
|
|
3342
|
+
/** 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. */
|
|
3343
|
+
key?: string;
|
|
3344
|
+
/** OAuth 2.0 token for the current user. */
|
|
3345
|
+
oauth_token?: string;
|
|
3346
|
+
/** Required. The account for which this shipping setting will be inserted. If you are using an advanced account, you must specify the unique identifier of the sub-account for which you want to insert the shipping setting. Format: `accounts/{ACCOUNT_ID}` */
|
|
3347
|
+
parent: string;
|
|
3348
|
+
/** Returns response with indentations and line breaks. */
|
|
3349
|
+
prettyPrint?: boolean;
|
|
3350
|
+
/** 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. */
|
|
3351
|
+
quotaUser?: string;
|
|
3352
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3353
|
+
upload_protocol?: string;
|
|
3354
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3355
|
+
uploadType?: string;
|
|
3356
|
+
/** Request body */
|
|
3357
|
+
resource: ShippingSettings;
|
|
3358
|
+
}): Request<ShippingSettings>;
|
|
3359
|
+
insert(
|
|
3360
|
+
request: {
|
|
3361
|
+
/** V1 error format. */
|
|
3362
|
+
'$.xgafv'?: string;
|
|
3363
|
+
/** OAuth access token. */
|
|
3364
|
+
access_token?: string;
|
|
3365
|
+
/** Data format for response. */
|
|
3366
|
+
alt?: string;
|
|
3367
|
+
/** JSONP */
|
|
3368
|
+
callback?: string;
|
|
3369
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3370
|
+
fields?: string;
|
|
3371
|
+
/** 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. */
|
|
3372
|
+
key?: string;
|
|
3373
|
+
/** OAuth 2.0 token for the current user. */
|
|
3374
|
+
oauth_token?: string;
|
|
3375
|
+
/** Required. The account for which this shipping setting will be inserted. If you are using an advanced account, you must specify the unique identifier of the sub-account for which you want to insert the shipping setting. Format: `accounts/{ACCOUNT_ID}` */
|
|
3376
|
+
parent: string;
|
|
3377
|
+
/** Returns response with indentations and line breaks. */
|
|
3378
|
+
prettyPrint?: boolean;
|
|
3379
|
+
/** 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. */
|
|
3380
|
+
quotaUser?: string;
|
|
3381
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3382
|
+
upload_protocol?: string;
|
|
3383
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3384
|
+
uploadType?: string;
|
|
3385
|
+
},
|
|
3386
|
+
body: ShippingSettings,
|
|
3387
|
+
): Request<ShippingSettings>;
|
|
3388
|
+
}
|
|
3389
|
+
interface TermsOfServiceAgreementStatesResource {
|
|
3390
|
+
/** Returns the state of a terms of service agreement. */
|
|
3391
|
+
get(request?: {
|
|
3392
|
+
/** V1 error format. */
|
|
3393
|
+
'$.xgafv'?: string;
|
|
3394
|
+
/** OAuth access token. */
|
|
3395
|
+
access_token?: string;
|
|
3396
|
+
/** Data format for response. */
|
|
3397
|
+
alt?: string;
|
|
3398
|
+
/** JSONP */
|
|
3399
|
+
callback?: string;
|
|
3400
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3401
|
+
fields?: string;
|
|
3402
|
+
/** 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. */
|
|
3403
|
+
key?: string;
|
|
3404
|
+
/** Required. The resource name of the terms of service version. Format: `accounts/{account}/termsOfServiceAgreementStates/{identifier}` The identifier format is: `{TermsOfServiceKind}-{country}` */
|
|
3405
|
+
name: string;
|
|
3406
|
+
/** OAuth 2.0 token for the current user. */
|
|
3407
|
+
oauth_token?: string;
|
|
3408
|
+
/** Returns response with indentations and line breaks. */
|
|
3409
|
+
prettyPrint?: boolean;
|
|
3410
|
+
/** 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. */
|
|
3411
|
+
quotaUser?: string;
|
|
3412
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3413
|
+
upload_protocol?: string;
|
|
3414
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3415
|
+
uploadType?: string;
|
|
3416
|
+
}): Request<TermsOfServiceAgreementState>;
|
|
3417
|
+
/** Retrieves the state of the agreement for the application terms of service. Application terms of service covers permissions related to the usage of data provided through Merchant Center, CSS Center, Manufacturer Center, and more. */
|
|
3418
|
+
retrieveForApplication(request?: {
|
|
3419
|
+
/** V1 error format. */
|
|
3420
|
+
'$.xgafv'?: string;
|
|
3421
|
+
/** OAuth access token. */
|
|
3422
|
+
access_token?: string;
|
|
3423
|
+
/** Data format for response. */
|
|
3424
|
+
alt?: string;
|
|
3425
|
+
/** JSONP */
|
|
3426
|
+
callback?: string;
|
|
3427
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3428
|
+
fields?: string;
|
|
3429
|
+
/** 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. */
|
|
3430
|
+
key?: string;
|
|
3431
|
+
/** OAuth 2.0 token for the current user. */
|
|
3432
|
+
oauth_token?: string;
|
|
3433
|
+
/** Required. The account for which to get a TermsOfServiceAgreementState Format: `accounts/{account}` */
|
|
3434
|
+
parent: string;
|
|
3435
|
+
/** Returns response with indentations and line breaks. */
|
|
3436
|
+
prettyPrint?: boolean;
|
|
3437
|
+
/** 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. */
|
|
3438
|
+
quotaUser?: string;
|
|
3439
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3440
|
+
upload_protocol?: string;
|
|
3441
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3442
|
+
uploadType?: string;
|
|
3443
|
+
}): Request<TermsOfServiceAgreementState>;
|
|
3444
|
+
}
|
|
3445
|
+
interface UsersResource {
|
|
3446
|
+
/** Creates a Merchant Center account user. Executing this method requires admin access. */
|
|
3447
|
+
create(request: {
|
|
3448
|
+
/** V1 error format. */
|
|
3449
|
+
'$.xgafv'?: string;
|
|
3450
|
+
/** OAuth access token. */
|
|
3451
|
+
access_token?: string;
|
|
3452
|
+
/** Data format for response. */
|
|
3453
|
+
alt?: string;
|
|
3454
|
+
/** JSONP */
|
|
3455
|
+
callback?: string;
|
|
3456
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3457
|
+
fields?: string;
|
|
3458
|
+
/** 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. */
|
|
3459
|
+
key?: string;
|
|
3460
|
+
/** OAuth 2.0 token for the current user. */
|
|
3461
|
+
oauth_token?: string;
|
|
3462
|
+
/** Required. The resource name of the account for which a user will be created. Format: `accounts/{account}` */
|
|
3463
|
+
parent: string;
|
|
3464
|
+
/** Returns response with indentations and line breaks. */
|
|
3465
|
+
prettyPrint?: boolean;
|
|
3466
|
+
/** 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. */
|
|
3467
|
+
quotaUser?: string;
|
|
3468
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3469
|
+
upload_protocol?: string;
|
|
3470
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3471
|
+
uploadType?: string;
|
|
3472
|
+
/** Required. The email address of the user (for example, `john.doe@gmail.com`). */
|
|
3473
|
+
userId?: string;
|
|
3474
|
+
/** Request body */
|
|
3475
|
+
resource: User;
|
|
3476
|
+
}): Request<User>;
|
|
3477
|
+
create(
|
|
3478
|
+
request: {
|
|
3479
|
+
/** V1 error format. */
|
|
3480
|
+
'$.xgafv'?: string;
|
|
3481
|
+
/** OAuth access token. */
|
|
3482
|
+
access_token?: string;
|
|
3483
|
+
/** Data format for response. */
|
|
3484
|
+
alt?: string;
|
|
3485
|
+
/** JSONP */
|
|
3486
|
+
callback?: string;
|
|
3487
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3488
|
+
fields?: string;
|
|
3489
|
+
/** 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. */
|
|
3490
|
+
key?: string;
|
|
3491
|
+
/** OAuth 2.0 token for the current user. */
|
|
3492
|
+
oauth_token?: string;
|
|
3493
|
+
/** Required. The resource name of the account for which a user will be created. Format: `accounts/{account}` */
|
|
3494
|
+
parent: string;
|
|
3495
|
+
/** Returns response with indentations and line breaks. */
|
|
3496
|
+
prettyPrint?: boolean;
|
|
3497
|
+
/** 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. */
|
|
3498
|
+
quotaUser?: string;
|
|
3499
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3500
|
+
upload_protocol?: string;
|
|
3501
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3502
|
+
uploadType?: string;
|
|
3503
|
+
/** Required. The email address of the user (for example, `john.doe@gmail.com`). */
|
|
3504
|
+
userId?: string;
|
|
3505
|
+
},
|
|
3506
|
+
body: User,
|
|
3507
|
+
): Request<User>;
|
|
3508
|
+
/** Deletes a Merchant Center account user. Executing this method requires admin access. The user to be deleted can't be the last admin user of that account. Also a user is protected from deletion if it is managed by Business Manager" */
|
|
3509
|
+
delete(request?: {
|
|
3510
|
+
/** V1 error format. */
|
|
3511
|
+
'$.xgafv'?: string;
|
|
3512
|
+
/** OAuth access token. */
|
|
3513
|
+
access_token?: string;
|
|
3514
|
+
/** Data format for response. */
|
|
3515
|
+
alt?: string;
|
|
3516
|
+
/** JSONP */
|
|
3517
|
+
callback?: string;
|
|
3518
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3519
|
+
fields?: string;
|
|
3520
|
+
/** 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. */
|
|
3521
|
+
key?: string;
|
|
3522
|
+
/** 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`. */
|
|
3523
|
+
name: string;
|
|
3524
|
+
/** OAuth 2.0 token for the current user. */
|
|
3525
|
+
oauth_token?: string;
|
|
3526
|
+
/** Returns response with indentations and line breaks. */
|
|
3527
|
+
prettyPrint?: boolean;
|
|
3528
|
+
/** 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. */
|
|
3529
|
+
quotaUser?: string;
|
|
3530
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3531
|
+
upload_protocol?: string;
|
|
3532
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3533
|
+
uploadType?: string;
|
|
3534
|
+
}): Request<{}>;
|
|
3535
|
+
/** Retrieves a Merchant Center account user. */
|
|
3536
|
+
get(request?: {
|
|
3537
|
+
/** V1 error format. */
|
|
3538
|
+
'$.xgafv'?: string;
|
|
3539
|
+
/** OAuth access token. */
|
|
3540
|
+
access_token?: string;
|
|
3541
|
+
/** Data format for response. */
|
|
3542
|
+
alt?: string;
|
|
3543
|
+
/** JSONP */
|
|
3544
|
+
callback?: string;
|
|
3545
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3546
|
+
fields?: string;
|
|
3547
|
+
/** 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. */
|
|
3548
|
+
key?: string;
|
|
3549
|
+
/** 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`. */
|
|
3550
|
+
name: string;
|
|
3551
|
+
/** OAuth 2.0 token for the current user. */
|
|
3552
|
+
oauth_token?: string;
|
|
3553
|
+
/** Returns response with indentations and line breaks. */
|
|
3554
|
+
prettyPrint?: boolean;
|
|
3555
|
+
/** 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. */
|
|
3556
|
+
quotaUser?: string;
|
|
3557
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3558
|
+
upload_protocol?: string;
|
|
3559
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3560
|
+
uploadType?: string;
|
|
3561
|
+
}): Request<User>;
|
|
3562
|
+
/** Lists all users of a Merchant Center account. */
|
|
3563
|
+
list(request?: {
|
|
3564
|
+
/** V1 error format. */
|
|
3565
|
+
'$.xgafv'?: string;
|
|
3566
|
+
/** OAuth access token. */
|
|
3567
|
+
access_token?: string;
|
|
3568
|
+
/** Data format for response. */
|
|
3569
|
+
alt?: string;
|
|
3570
|
+
/** JSONP */
|
|
3571
|
+
callback?: string;
|
|
3572
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3573
|
+
fields?: string;
|
|
3574
|
+
/** 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. */
|
|
3575
|
+
key?: string;
|
|
3576
|
+
/** OAuth 2.0 token for the current user. */
|
|
3577
|
+
oauth_token?: string;
|
|
3578
|
+
/** 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 */
|
|
3579
|
+
pageSize?: number;
|
|
3580
|
+
/** 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. */
|
|
3581
|
+
pageToken?: string;
|
|
3582
|
+
/** Required. The parent, which owns this collection of users. Format: `accounts/{account}` */
|
|
3583
|
+
parent: string;
|
|
3584
|
+
/** Returns response with indentations and line breaks. */
|
|
3585
|
+
prettyPrint?: boolean;
|
|
3586
|
+
/** 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. */
|
|
3587
|
+
quotaUser?: string;
|
|
3588
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3589
|
+
upload_protocol?: string;
|
|
3590
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3591
|
+
uploadType?: string;
|
|
3592
|
+
}): Request<ListUsersResponse>;
|
|
3593
|
+
/** Updates a Merchant Center account user. Executing this method requires admin access. */
|
|
3594
|
+
patch(request: {
|
|
3595
|
+
/** V1 error format. */
|
|
3596
|
+
'$.xgafv'?: string;
|
|
3597
|
+
/** OAuth access token. */
|
|
3598
|
+
access_token?: string;
|
|
3599
|
+
/** Data format for response. */
|
|
3600
|
+
alt?: string;
|
|
3601
|
+
/** JSONP */
|
|
3602
|
+
callback?: string;
|
|
3603
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3604
|
+
fields?: string;
|
|
3605
|
+
/** 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. */
|
|
3606
|
+
key?: string;
|
|
3607
|
+
/** 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`. */
|
|
3608
|
+
name: string;
|
|
3609
|
+
/** OAuth 2.0 token for the current user. */
|
|
3610
|
+
oauth_token?: string;
|
|
3611
|
+
/** Returns response with indentations and line breaks. */
|
|
3612
|
+
prettyPrint?: boolean;
|
|
3613
|
+
/** 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. */
|
|
3614
|
+
quotaUser?: string;
|
|
3615
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `access_rights` */
|
|
3616
|
+
updateMask?: string;
|
|
3617
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3618
|
+
upload_protocol?: string;
|
|
3619
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3620
|
+
uploadType?: string;
|
|
3621
|
+
/** Request body */
|
|
3622
|
+
resource: User;
|
|
3623
|
+
}): Request<User>;
|
|
3624
|
+
patch(
|
|
3625
|
+
request: {
|
|
3626
|
+
/** V1 error format. */
|
|
3627
|
+
'$.xgafv'?: string;
|
|
3628
|
+
/** OAuth access token. */
|
|
3629
|
+
access_token?: string;
|
|
3630
|
+
/** Data format for response. */
|
|
3631
|
+
alt?: string;
|
|
3632
|
+
/** JSONP */
|
|
3633
|
+
callback?: string;
|
|
3634
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3635
|
+
fields?: string;
|
|
3636
|
+
/** 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. */
|
|
3637
|
+
key?: string;
|
|
3638
|
+
/** 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`. */
|
|
3639
|
+
name: string;
|
|
3640
|
+
/** OAuth 2.0 token for the current user. */
|
|
3641
|
+
oauth_token?: string;
|
|
3642
|
+
/** Returns response with indentations and line breaks. */
|
|
3643
|
+
prettyPrint?: boolean;
|
|
3644
|
+
/** 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. */
|
|
3645
|
+
quotaUser?: string;
|
|
3646
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `access_rights` */
|
|
3647
|
+
updateMask?: string;
|
|
3648
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3649
|
+
upload_protocol?: string;
|
|
3650
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3651
|
+
uploadType?: string;
|
|
3652
|
+
},
|
|
3653
|
+
body: User,
|
|
3654
|
+
): Request<User>;
|
|
3655
|
+
}
|
|
3656
|
+
interface AccountsResource {
|
|
3657
|
+
/** Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account. */
|
|
3658
|
+
createAndConfigure(request: {
|
|
3659
|
+
/** V1 error format. */
|
|
3660
|
+
'$.xgafv'?: string;
|
|
3661
|
+
/** OAuth access token. */
|
|
3662
|
+
access_token?: string;
|
|
3663
|
+
/** Data format for response. */
|
|
3664
|
+
alt?: string;
|
|
3665
|
+
/** JSONP */
|
|
3666
|
+
callback?: string;
|
|
3667
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3668
|
+
fields?: string;
|
|
3669
|
+
/** 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. */
|
|
3670
|
+
key?: string;
|
|
3671
|
+
/** OAuth 2.0 token for the current user. */
|
|
3672
|
+
oauth_token?: string;
|
|
3673
|
+
/** Returns response with indentations and line breaks. */
|
|
3674
|
+
prettyPrint?: boolean;
|
|
3675
|
+
/** 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. */
|
|
3676
|
+
quotaUser?: string;
|
|
3677
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3678
|
+
upload_protocol?: string;
|
|
3679
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3680
|
+
uploadType?: string;
|
|
3681
|
+
/** Request body */
|
|
3682
|
+
resource: CreateAndConfigureAccountRequest;
|
|
3683
|
+
}): Request<Account>;
|
|
3684
|
+
createAndConfigure(
|
|
3685
|
+
request: {
|
|
3686
|
+
/** V1 error format. */
|
|
3687
|
+
'$.xgafv'?: string;
|
|
3688
|
+
/** OAuth access token. */
|
|
3689
|
+
access_token?: string;
|
|
3690
|
+
/** Data format for response. */
|
|
3691
|
+
alt?: string;
|
|
3692
|
+
/** JSONP */
|
|
3693
|
+
callback?: string;
|
|
3694
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3695
|
+
fields?: string;
|
|
3696
|
+
/** 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. */
|
|
3697
|
+
key?: string;
|
|
3698
|
+
/** OAuth 2.0 token for the current user. */
|
|
3699
|
+
oauth_token?: string;
|
|
3700
|
+
/** Returns response with indentations and line breaks. */
|
|
3701
|
+
prettyPrint?: boolean;
|
|
3702
|
+
/** 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. */
|
|
3703
|
+
quotaUser?: string;
|
|
3704
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3705
|
+
upload_protocol?: string;
|
|
3706
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3707
|
+
uploadType?: string;
|
|
3708
|
+
},
|
|
3709
|
+
body: CreateAndConfigureAccountRequest,
|
|
3710
|
+
): Request<Account>;
|
|
3711
|
+
/** Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this. */
|
|
3712
|
+
delete(request?: {
|
|
3713
|
+
/** V1 error format. */
|
|
3714
|
+
'$.xgafv'?: string;
|
|
3715
|
+
/** OAuth access token. */
|
|
3716
|
+
access_token?: string;
|
|
3717
|
+
/** Data format for response. */
|
|
3718
|
+
alt?: string;
|
|
3719
|
+
/** JSONP */
|
|
3720
|
+
callback?: string;
|
|
3721
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3722
|
+
fields?: string;
|
|
3723
|
+
/** Optional. If set to `true`, the account is deleted even if it provides services to other accounts or has processed offers. */
|
|
3724
|
+
force?: boolean;
|
|
3725
|
+
/** 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. */
|
|
3726
|
+
key?: string;
|
|
3727
|
+
/** Required. The name of the account to delete. Format: `accounts/{account}` */
|
|
3728
|
+
name: string;
|
|
3729
|
+
/** OAuth 2.0 token for the current user. */
|
|
3730
|
+
oauth_token?: string;
|
|
3731
|
+
/** Returns response with indentations and line breaks. */
|
|
3732
|
+
prettyPrint?: boolean;
|
|
3733
|
+
/** 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. */
|
|
3734
|
+
quotaUser?: string;
|
|
3735
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3736
|
+
upload_protocol?: string;
|
|
3737
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3738
|
+
uploadType?: string;
|
|
3739
|
+
}): Request<{}>;
|
|
3740
|
+
/** Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect. */
|
|
3741
|
+
get(request?: {
|
|
3742
|
+
/** V1 error format. */
|
|
3743
|
+
'$.xgafv'?: string;
|
|
3744
|
+
/** OAuth access token. */
|
|
3745
|
+
access_token?: string;
|
|
3746
|
+
/** Data format for response. */
|
|
3747
|
+
alt?: string;
|
|
3748
|
+
/** JSONP */
|
|
3749
|
+
callback?: string;
|
|
3750
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3751
|
+
fields?: string;
|
|
3752
|
+
/** 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. */
|
|
3753
|
+
key?: string;
|
|
3754
|
+
/** Required. The name of the account to retrieve. Format: `accounts/{account}` */
|
|
3755
|
+
name: string;
|
|
3756
|
+
/** OAuth 2.0 token for the current user. */
|
|
3757
|
+
oauth_token?: string;
|
|
3758
|
+
/** Returns response with indentations and line breaks. */
|
|
3759
|
+
prettyPrint?: boolean;
|
|
3760
|
+
/** 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. */
|
|
3761
|
+
quotaUser?: string;
|
|
3762
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3763
|
+
upload_protocol?: string;
|
|
3764
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3765
|
+
uploadType?: string;
|
|
3766
|
+
}): Request<Account>;
|
|
3767
|
+
/** Note: For the `accounts.list` method, quota and limits usage are charged for each user, and not for the Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the `accounts.listSubaccounts` method, which is more suitable for advanced accounts use case. */
|
|
3768
|
+
list(request?: {
|
|
3769
|
+
/** V1 error format. */
|
|
3770
|
+
'$.xgafv'?: string;
|
|
3771
|
+
/** OAuth access token. */
|
|
3772
|
+
access_token?: string;
|
|
3773
|
+
/** Data format for response. */
|
|
3774
|
+
alt?: string;
|
|
3775
|
+
/** JSONP */
|
|
3776
|
+
callback?: string;
|
|
3777
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3778
|
+
fields?: string;
|
|
3779
|
+
/** Optional. Returns only accounts that match the [filter](https://developers.google.com/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](https://developers.google.com/merchant/api/guides/accounts/filter-syntax). */
|
|
3780
|
+
filter?: string;
|
|
3781
|
+
/** 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. */
|
|
3782
|
+
key?: string;
|
|
3783
|
+
/** OAuth 2.0 token for the current user. */
|
|
3784
|
+
oauth_token?: string;
|
|
3785
|
+
/** 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. */
|
|
3786
|
+
pageSize?: number;
|
|
3787
|
+
/** Optional. A page token, received from a previous `accounts.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided in the `accounts.list` request must match the call that provided the page token. */
|
|
3788
|
+
pageToken?: string;
|
|
3789
|
+
/** Returns response with indentations and line breaks. */
|
|
3790
|
+
prettyPrint?: boolean;
|
|
3791
|
+
/** 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. */
|
|
3792
|
+
quotaUser?: string;
|
|
3793
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3794
|
+
upload_protocol?: string;
|
|
3795
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3796
|
+
uploadType?: string;
|
|
3797
|
+
}): Request<ListAccountsResponse>;
|
|
3798
|
+
/** List all sub-accounts for a given advanced account. This is a convenience wrapper for the more powerful `accounts.list` method. This method will produce the same results as calling `ListsAccounts` with the following filter: `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))` */
|
|
3799
|
+
listSubaccounts(request?: {
|
|
3800
|
+
/** V1 error format. */
|
|
3801
|
+
'$.xgafv'?: string;
|
|
3802
|
+
/** OAuth access token. */
|
|
3803
|
+
access_token?: string;
|
|
3804
|
+
/** Data format for response. */
|
|
3805
|
+
alt?: string;
|
|
3806
|
+
/** JSONP */
|
|
3807
|
+
callback?: string;
|
|
3808
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3809
|
+
fields?: string;
|
|
3810
|
+
/** 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. */
|
|
3811
|
+
key?: string;
|
|
3812
|
+
/** OAuth 2.0 token for the current user. */
|
|
3813
|
+
oauth_token?: string;
|
|
3814
|
+
/** 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. */
|
|
3815
|
+
pageSize?: number;
|
|
3816
|
+
/** Optional. A page token, received from a previous `accounts.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided in the `accounts.list` request must match the call that provided the page token. */
|
|
3817
|
+
pageToken?: string;
|
|
3818
|
+
/** Returns response with indentations and line breaks. */
|
|
3819
|
+
prettyPrint?: boolean;
|
|
3820
|
+
/** Required. The aggregation service provider. Format: `accounts/{accountId}` */
|
|
3821
|
+
provider: string;
|
|
3822
|
+
/** 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. */
|
|
3823
|
+
quotaUser?: string;
|
|
3824
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3825
|
+
upload_protocol?: string;
|
|
3826
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3827
|
+
uploadType?: string;
|
|
3828
|
+
}): Request<ListSubAccountsResponse>;
|
|
3829
|
+
/** Updates an account regardless of its type: standalone, advanced account or sub-account. Executing this method requires admin access. */
|
|
3830
|
+
patch(request: {
|
|
3831
|
+
/** V1 error format. */
|
|
3832
|
+
'$.xgafv'?: string;
|
|
3833
|
+
/** OAuth access token. */
|
|
3834
|
+
access_token?: string;
|
|
3835
|
+
/** Data format for response. */
|
|
3836
|
+
alt?: string;
|
|
3837
|
+
/** JSONP */
|
|
3838
|
+
callback?: string;
|
|
3839
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3840
|
+
fields?: string;
|
|
3841
|
+
/** 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. */
|
|
3842
|
+
key?: string;
|
|
3843
|
+
/** Identifier. The resource name of the account. Format: `accounts/{account}` */
|
|
3844
|
+
name: string;
|
|
3845
|
+
/** OAuth 2.0 token for the current user. */
|
|
3846
|
+
oauth_token?: string;
|
|
3847
|
+
/** Returns response with indentations and line breaks. */
|
|
3848
|
+
prettyPrint?: boolean;
|
|
3849
|
+
/** 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. */
|
|
3850
|
+
quotaUser?: string;
|
|
3851
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_name` - `adult_content` - `language_code` - `time_zone` */
|
|
3852
|
+
updateMask?: string;
|
|
3853
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3854
|
+
upload_protocol?: string;
|
|
3855
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3856
|
+
uploadType?: string;
|
|
3857
|
+
/** Request body */
|
|
3858
|
+
resource: Account;
|
|
3859
|
+
}): Request<Account>;
|
|
3860
|
+
patch(
|
|
3861
|
+
request: {
|
|
3862
|
+
/** V1 error format. */
|
|
3863
|
+
'$.xgafv'?: string;
|
|
3864
|
+
/** OAuth access token. */
|
|
3865
|
+
access_token?: string;
|
|
3866
|
+
/** Data format for response. */
|
|
3867
|
+
alt?: string;
|
|
3868
|
+
/** JSONP */
|
|
3869
|
+
callback?: string;
|
|
3870
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3871
|
+
fields?: string;
|
|
3872
|
+
/** 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. */
|
|
3873
|
+
key?: string;
|
|
3874
|
+
/** Identifier. The resource name of the account. Format: `accounts/{account}` */
|
|
3875
|
+
name: string;
|
|
3876
|
+
/** OAuth 2.0 token for the current user. */
|
|
3877
|
+
oauth_token?: string;
|
|
3878
|
+
/** Returns response with indentations and line breaks. */
|
|
3879
|
+
prettyPrint?: boolean;
|
|
3880
|
+
/** 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. */
|
|
3881
|
+
quotaUser?: string;
|
|
3882
|
+
/** Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_name` - `adult_content` - `language_code` - `time_zone` */
|
|
3883
|
+
updateMask?: string;
|
|
3884
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3885
|
+
upload_protocol?: string;
|
|
3886
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3887
|
+
uploadType?: string;
|
|
3888
|
+
},
|
|
3889
|
+
body: Account,
|
|
3890
|
+
): Request<Account>;
|
|
3891
|
+
autofeedSettings: AutofeedSettingsResource;
|
|
3892
|
+
automaticImprovements: AutomaticImprovementsResource;
|
|
3893
|
+
businessIdentity: BusinessIdentityResource;
|
|
3894
|
+
businessInfo: BusinessInfoResource;
|
|
3895
|
+
developerRegistration: DeveloperRegistrationResource;
|
|
3896
|
+
emailPreferences: EmailPreferencesResource;
|
|
3897
|
+
gbpAccounts: GbpAccountsResource;
|
|
3898
|
+
homepage: HomepageResource;
|
|
3899
|
+
issues: IssuesResource;
|
|
3900
|
+
omnichannelSettings: OmnichannelSettingsResource;
|
|
3901
|
+
onlineReturnPolicies: OnlineReturnPoliciesResource;
|
|
3902
|
+
programs: ProgramsResource;
|
|
3903
|
+
regions: RegionsResource;
|
|
3904
|
+
relationships: RelationshipsResource;
|
|
3905
|
+
services: ServicesResource;
|
|
3906
|
+
shippingSettings: ShippingSettingsResource;
|
|
3907
|
+
termsOfServiceAgreementStates: TermsOfServiceAgreementStatesResource;
|
|
3908
|
+
users: UsersResource;
|
|
3909
|
+
}
|
|
3910
|
+
interface TermsOfServiceResource {
|
|
3911
|
+
/** Accepts a `TermsOfService`. Executing this method requires admin access. */
|
|
3912
|
+
accept(request?: {
|
|
3913
|
+
/** V1 error format. */
|
|
3914
|
+
'$.xgafv'?: string;
|
|
3915
|
+
/** OAuth access token. */
|
|
3916
|
+
access_token?: string;
|
|
3917
|
+
/** Required. The account for which to accept the ToS. Format: `accounts/{account}` */
|
|
3918
|
+
account?: string;
|
|
3919
|
+
/** Data format for response. */
|
|
3920
|
+
alt?: string;
|
|
3921
|
+
/** JSONP */
|
|
3922
|
+
callback?: string;
|
|
3923
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3924
|
+
fields?: string;
|
|
3925
|
+
/** 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. */
|
|
3926
|
+
key?: string;
|
|
3927
|
+
/** Required. The resource name of the terms of service version. Format: `termsOfService/{version}` */
|
|
3928
|
+
name: string;
|
|
3929
|
+
/** OAuth 2.0 token for the current user. */
|
|
3930
|
+
oauth_token?: string;
|
|
3931
|
+
/** Returns response with indentations and line breaks. */
|
|
3932
|
+
prettyPrint?: boolean;
|
|
3933
|
+
/** 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. */
|
|
3934
|
+
quotaUser?: string;
|
|
3935
|
+
/** 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. */
|
|
3936
|
+
regionCode?: string;
|
|
3937
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3938
|
+
upload_protocol?: string;
|
|
3939
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3940
|
+
uploadType?: string;
|
|
3941
|
+
}): Request<AcceptTermsOfServiceResponse>;
|
|
3942
|
+
/** Retrieves the `TermsOfService` associated with the provided version. */
|
|
3943
|
+
get(request?: {
|
|
3944
|
+
/** V1 error format. */
|
|
3945
|
+
'$.xgafv'?: string;
|
|
3946
|
+
/** OAuth access token. */
|
|
3947
|
+
access_token?: string;
|
|
3948
|
+
/** Data format for response. */
|
|
3949
|
+
alt?: string;
|
|
3950
|
+
/** JSONP */
|
|
3951
|
+
callback?: string;
|
|
3952
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3953
|
+
fields?: string;
|
|
3954
|
+
/** 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. */
|
|
3955
|
+
key?: string;
|
|
3956
|
+
/** Required. The resource name of the terms of service version. Format: `termsOfService/{version}` */
|
|
3957
|
+
name: string;
|
|
3958
|
+
/** OAuth 2.0 token for the current user. */
|
|
3959
|
+
oauth_token?: string;
|
|
3960
|
+
/** Returns response with indentations and line breaks. */
|
|
3961
|
+
prettyPrint?: boolean;
|
|
3962
|
+
/** 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. */
|
|
3963
|
+
quotaUser?: string;
|
|
3964
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3965
|
+
upload_protocol?: string;
|
|
3966
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3967
|
+
uploadType?: string;
|
|
3968
|
+
}): Request<TermsOfService>;
|
|
3969
|
+
/** Retrieves the latest version of the `TermsOfService` for a given `kind` and `region_code`. */
|
|
3970
|
+
retrieveLatest(request?: {
|
|
3971
|
+
/** V1 error format. */
|
|
3972
|
+
'$.xgafv'?: string;
|
|
3973
|
+
/** OAuth access token. */
|
|
3974
|
+
access_token?: string;
|
|
3975
|
+
/** Data format for response. */
|
|
3976
|
+
alt?: string;
|
|
3977
|
+
/** JSONP */
|
|
3978
|
+
callback?: string;
|
|
3979
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3980
|
+
fields?: string;
|
|
3981
|
+
/** 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. */
|
|
3982
|
+
key?: string;
|
|
3983
|
+
/** Required. The Kind this terms of service version applies to. */
|
|
3984
|
+
kind?: string;
|
|
3985
|
+
/** OAuth 2.0 token for the current user. */
|
|
3986
|
+
oauth_token?: string;
|
|
3987
|
+
/** Returns response with indentations and line breaks. */
|
|
3988
|
+
prettyPrint?: boolean;
|
|
3989
|
+
/** 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. */
|
|
3990
|
+
quotaUser?: string;
|
|
3991
|
+
/** 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. */
|
|
3992
|
+
regionCode?: string;
|
|
3993
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3994
|
+
upload_protocol?: string;
|
|
3995
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3996
|
+
uploadType?: string;
|
|
3997
|
+
}): Request<TermsOfService>;
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
const accounts: AccountsResource;
|
|
4001
|
+
|
|
4002
|
+
const termsOfService: TermsOfServiceResource;
|
|
4003
|
+
}
|
|
4004
|
+
}
|