@googleapis/merchantapi 3.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/accounts_v1beta.ts +1518 -170
- package/build/accounts_v1beta.d.ts +593 -58
- package/build/accounts_v1beta.js +344 -1
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +25 -18
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +31 -10
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1beta.d.ts +11 -7
- package/build/inventories_v1beta.js.map +1 -1
- package/build/lfp_v1beta.d.ts +131 -6
- package/build/lfp_v1beta.js +39 -0
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +10 -6
- package/build/notifications_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +76 -19
- package/build/products_v1beta.js +32 -0
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +10 -6
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +10 -6
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +11 -7
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +12 -8
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +25 -18
- package/datasources_v1beta.ts +31 -10
- package/inventories_v1beta.ts +11 -7
- package/lfp_v1beta.ts +213 -6
- package/notifications_v1beta.ts +10 -6
- package/package.json +1 -1
- package/products_v1beta.ts +152 -19
- package/promotions_v1beta.ts +10 -6
- package/quota_v1beta.ts +10 -6
- package/reports_v1beta.ts +11 -7
- package/reviews_v1beta.ts +12 -8
|
@@ -81,14 +81,23 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
81
81
|
*/
|
|
82
82
|
acceptedBy?: string | null;
|
|
83
83
|
/**
|
|
84
|
-
* The accepted
|
|
84
|
+
* The accepted termsOfService.
|
|
85
85
|
*/
|
|
86
86
|
termsOfService?: string | null;
|
|
87
87
|
/**
|
|
88
|
-
* When set, it states that the accepted
|
|
88
|
+
* 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.
|
|
89
89
|
*/
|
|
90
90
|
validUntil?: Schema$Date;
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Response message for the `AcceptTermsOfService` method.
|
|
94
|
+
*/
|
|
95
|
+
export interface Schema$AcceptTermsOfServiceResponse {
|
|
96
|
+
/**
|
|
97
|
+
* The agreement state after accepting the ToS.
|
|
98
|
+
*/
|
|
99
|
+
termsOfServiceAgreementState?: Schema$TermsOfServiceAgreementState;
|
|
100
|
+
}
|
|
92
101
|
/**
|
|
93
102
|
* The `Account` message represents a merchant's account within Shopping Ads. It's the primary entity for managing product data, settings, and interactions with Google's services and external providers. Accounts can operate as standalone entities or be part of a multi-client account (MCA) structure. In an MCA setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
|
|
94
103
|
*/
|
|
@@ -102,7 +111,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
102
111
|
*/
|
|
103
112
|
accountName?: string | null;
|
|
104
113
|
/**
|
|
105
|
-
* Whether this account contains adult content.
|
|
114
|
+
* Optional. Whether this account contains adult content.
|
|
106
115
|
*/
|
|
107
116
|
adultContent?: boolean | null;
|
|
108
117
|
/**
|
|
@@ -118,7 +127,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
118
127
|
*/
|
|
119
128
|
testAccount?: boolean | null;
|
|
120
129
|
/**
|
|
121
|
-
* 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.
|
|
130
|
+
* 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.
|
|
122
131
|
*/
|
|
123
132
|
timeZone?: Schema$TimeZone;
|
|
124
133
|
}
|
|
@@ -156,6 +165,77 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
156
165
|
*/
|
|
157
166
|
title?: string | null;
|
|
158
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* `AccountManagement` payload.
|
|
170
|
+
*/
|
|
171
|
+
export interface Schema$AccountManagement {
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The `AccountRelationship` message defines a formal connection between a merchant's account and a service provider's account. This relationship enables the provider to offer specific services to the merchant, such as product management or campaign management. It specifies the access rights and permissions to the merchant's data relevant to those services. Establishing an account relationship involves linking the merchant's account with a provider's account. The provider could be another Google account (like Google Ads or Google My Business) or a third-party platform (such as Shopify or WooCommerce).
|
|
175
|
+
*/
|
|
176
|
+
export interface Schema$AccountRelationship {
|
|
177
|
+
/**
|
|
178
|
+
* 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.
|
|
179
|
+
*/
|
|
180
|
+
accountIdAlias?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Identifier. The resource name of the account relationship.
|
|
183
|
+
*/
|
|
184
|
+
name?: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* 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`).
|
|
187
|
+
*/
|
|
188
|
+
provider?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Output only. The human-readable display name of the provider account.
|
|
191
|
+
*/
|
|
192
|
+
providerDisplayName?: string | null;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* The `AccountService` message represents a specific service that a provider account offers to a merchant account. `AccountService` defines the permissions and capabilities granted to the provider, allowing for operations such as product management or campaign management. The lifecycle of an `AccountService` involves a proposal phase, where one party suggests the service, and an approval phase, where the other party accepts or rejects it. This handshake mechanism ensures mutual consent before any access is granted. This mechanism safeguards both parties by ensuring that access rights are granted appropriately and that both the merchant and provider are aware of the services enabled. In scenarios where a user is an admin of both accounts, the approval can happen automatically. The mutability of a service is also managed through `AccountService`. Some services might be immutable, for example, if they were established through other systems or APIs, and you cannot alter them through this API.
|
|
196
|
+
*/
|
|
197
|
+
export interface Schema$AccountService {
|
|
198
|
+
/**
|
|
199
|
+
* Service type for account aggregation. This enables the provider, which is a Multi-Client Account (MCA), to manage multiple sub-accounts (client accounts). Through this service, the MCA 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 accounts.
|
|
200
|
+
*/
|
|
201
|
+
accountAggregation?: Schema$AccountAggregation;
|
|
202
|
+
/**
|
|
203
|
+
* Service type for account management. Enables the provider to perform administrative actions on the merchant's account, such as configuring account settings, managing users, or updating business information.
|
|
204
|
+
*/
|
|
205
|
+
accountManagement?: Schema$AccountManagement;
|
|
206
|
+
/**
|
|
207
|
+
* Service type for managing advertising campaigns. Grants the provider access to create and manage the merchant's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance.
|
|
208
|
+
*/
|
|
209
|
+
campaignsManagement?: Schema$CampaignsManagement;
|
|
210
|
+
/**
|
|
211
|
+
* 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.
|
|
212
|
+
*/
|
|
213
|
+
externalAccountId?: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* Output only. Information about the state of the service in terms of establishing it (e.g. is it pending approval or approved).
|
|
216
|
+
*/
|
|
217
|
+
handshake?: Schema$Handshake;
|
|
218
|
+
/**
|
|
219
|
+
* 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.
|
|
220
|
+
*/
|
|
221
|
+
mutability?: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* Identifier. The resource name of the account service.
|
|
224
|
+
*/
|
|
225
|
+
name?: string | null;
|
|
226
|
+
/**
|
|
227
|
+
* Service type for managing products. This allows the provider to handle product data on behalf of the merchant, including reading and writing product listings. It's commonly used when the provider offers inventory management or catalog synchronization services to keep the merchant's product information up-to-date across platforms.
|
|
228
|
+
*/
|
|
229
|
+
productsManagement?: Schema$ProductsManagement;
|
|
230
|
+
/**
|
|
231
|
+
* 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`).
|
|
232
|
+
*/
|
|
233
|
+
provider?: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* Output only. The human-readable display name of the provider account.
|
|
236
|
+
*/
|
|
237
|
+
providerDisplayName?: string | null;
|
|
238
|
+
}
|
|
159
239
|
/**
|
|
160
240
|
* Additional instructions to add account services during creation of the account.
|
|
161
241
|
*/
|
|
@@ -194,6 +274,24 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
194
274
|
*/
|
|
195
275
|
streetAddress?: string | null;
|
|
196
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Instruction for adding a user to the account during creation.
|
|
279
|
+
*/
|
|
280
|
+
export interface Schema$AddUser {
|
|
281
|
+
/**
|
|
282
|
+
* Optional. Details about the user to be added. At the moment, only access rights may be specified.
|
|
283
|
+
*/
|
|
284
|
+
user?: Schema$User;
|
|
285
|
+
/**
|
|
286
|
+
* Required. The email address of the user (for example, `john.doe@gmail.com`).
|
|
287
|
+
*/
|
|
288
|
+
userId?: string | null;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Request to approve an account service.
|
|
292
|
+
*/
|
|
293
|
+
export interface Schema$ApproveAccountServiceRequest {
|
|
294
|
+
}
|
|
197
295
|
/**
|
|
198
296
|
* Collection of information related to the [autofeed](https://support.google.com/merchants/answer/7538732) settings.
|
|
199
297
|
*/
|
|
@@ -211,6 +309,74 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
211
309
|
*/
|
|
212
310
|
name?: string | null;
|
|
213
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* 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)
|
|
314
|
+
*/
|
|
315
|
+
export interface Schema$AutomaticImageImprovements {
|
|
316
|
+
/**
|
|
317
|
+
* 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.
|
|
318
|
+
*/
|
|
319
|
+
accountImageImprovementsSettings?: Schema$ImageImprovementsAccountLevelSettings;
|
|
320
|
+
/**
|
|
321
|
+
* 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.
|
|
322
|
+
*/
|
|
323
|
+
effectiveAllowAutomaticImageImprovements?: boolean | null;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Collection of information related to the [automatic improvements](https://developers.google.com/shopping-content/guides/automatic-improvements) of an account.
|
|
327
|
+
*/
|
|
328
|
+
export interface Schema$AutomaticImprovements {
|
|
329
|
+
/**
|
|
330
|
+
* 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.
|
|
331
|
+
*/
|
|
332
|
+
imageImprovements?: Schema$AutomaticImageImprovements;
|
|
333
|
+
/**
|
|
334
|
+
* 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.
|
|
335
|
+
*/
|
|
336
|
+
itemUpdates?: Schema$AutomaticItemUpdates;
|
|
337
|
+
/**
|
|
338
|
+
* Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
|
|
339
|
+
*/
|
|
340
|
+
name?: string | null;
|
|
341
|
+
/**
|
|
342
|
+
* Not available for MCAs [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.
|
|
343
|
+
*/
|
|
344
|
+
shippingImprovements?: Schema$AutomaticShippingImprovements;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* 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.
|
|
348
|
+
*/
|
|
349
|
+
export interface Schema$AutomaticItemUpdates {
|
|
350
|
+
/**
|
|
351
|
+
* 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.
|
|
352
|
+
*/
|
|
353
|
+
accountItemUpdatesSettings?: Schema$ItemUpdatesAccountLevelSettings;
|
|
354
|
+
/**
|
|
355
|
+
* 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.
|
|
356
|
+
*/
|
|
357
|
+
effectiveAllowAvailabilityUpdates?: boolean | null;
|
|
358
|
+
/**
|
|
359
|
+
* 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.
|
|
360
|
+
*/
|
|
361
|
+
effectiveAllowConditionUpdates?: boolean | null;
|
|
362
|
+
/**
|
|
363
|
+
* 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.
|
|
364
|
+
*/
|
|
365
|
+
effectiveAllowPriceUpdates?: boolean | null;
|
|
366
|
+
/**
|
|
367
|
+
* 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.
|
|
368
|
+
*/
|
|
369
|
+
effectiveAllowStrictAvailabilityUpdates?: boolean | null;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Not available for MCAs [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
|
|
373
|
+
*/
|
|
374
|
+
export interface Schema$AutomaticShippingImprovements {
|
|
375
|
+
/**
|
|
376
|
+
* Enables automatic shipping improvements.
|
|
377
|
+
*/
|
|
378
|
+
allowShippingImprovements?: boolean | null;
|
|
379
|
+
}
|
|
214
380
|
/**
|
|
215
381
|
* Business days of the warehouse.
|
|
216
382
|
*/
|
|
@@ -282,6 +448,11 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
282
448
|
*/
|
|
283
449
|
phoneVerificationState?: string | null;
|
|
284
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* `CampaignManagement` payload.
|
|
453
|
+
*/
|
|
454
|
+
export interface Schema$CampaignsManagement {
|
|
455
|
+
}
|
|
285
456
|
/**
|
|
286
457
|
* A list of carrier rates that can be referred to by `main_table` or `single_value`. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?ref_topic=12570808&sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.
|
|
287
458
|
*/
|
|
@@ -335,6 +506,10 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
335
506
|
/**
|
|
336
507
|
* Optional. Users to be added to the account.
|
|
337
508
|
*/
|
|
509
|
+
user?: Schema$AddUser[];
|
|
510
|
+
/**
|
|
511
|
+
* Optional. Users to be added to the account. This field is deprecated and will not exist after the API evolves out of beta. Use the `user` field instead.
|
|
512
|
+
*/
|
|
338
513
|
users?: Schema$CreateUserRequest[];
|
|
339
514
|
}
|
|
340
515
|
/**
|
|
@@ -513,6 +688,19 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
513
688
|
*/
|
|
514
689
|
geotargetCriteriaIds?: string[] | null;
|
|
515
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* The current status of establishing of the service. (for example, pending approval or approved).
|
|
693
|
+
*/
|
|
694
|
+
export interface Schema$Handshake {
|
|
695
|
+
/**
|
|
696
|
+
* Output only. The most recent account to modify the account service's `approval_status`.
|
|
697
|
+
*/
|
|
698
|
+
actor?: string | null;
|
|
699
|
+
/**
|
|
700
|
+
* Output only. The approval state of this handshake.
|
|
701
|
+
*/
|
|
702
|
+
approvalState?: string | null;
|
|
703
|
+
}
|
|
516
704
|
/**
|
|
517
705
|
* A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set.
|
|
518
706
|
*/
|
|
@@ -564,6 +752,15 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
564
752
|
*/
|
|
565
753
|
identityDeclaration?: string | null;
|
|
566
754
|
}
|
|
755
|
+
/**
|
|
756
|
+
* Settings for the Automatic Image Improvements.
|
|
757
|
+
*/
|
|
758
|
+
export interface Schema$ImageImprovementsAccountLevelSettings {
|
|
759
|
+
/**
|
|
760
|
+
* Enables automatic image improvements.
|
|
761
|
+
*/
|
|
762
|
+
allowAutomaticImageImprovements?: boolean | null;
|
|
763
|
+
}
|
|
567
764
|
/**
|
|
568
765
|
* The impact of the issue on a region.
|
|
569
766
|
*/
|
|
@@ -590,6 +787,27 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
590
787
|
*/
|
|
591
788
|
reportingContext?: string | null;
|
|
592
789
|
}
|
|
790
|
+
/**
|
|
791
|
+
* Settings for the Automatic Item Updates.
|
|
792
|
+
*/
|
|
793
|
+
export interface Schema$ItemUpdatesAccountLevelSettings {
|
|
794
|
+
/**
|
|
795
|
+
* 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.
|
|
796
|
+
*/
|
|
797
|
+
allowAvailabilityUpdates?: boolean | null;
|
|
798
|
+
/**
|
|
799
|
+
* If condition updates are enabled, Google always updates item condition with the condition detected from the details of your product.
|
|
800
|
+
*/
|
|
801
|
+
allowConditionUpdates?: boolean | null;
|
|
802
|
+
/**
|
|
803
|
+
* If price updates are enabled, Google always updates the active price with the crawled information.
|
|
804
|
+
*/
|
|
805
|
+
allowPriceUpdates?: boolean | null;
|
|
806
|
+
/**
|
|
807
|
+
* 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`.
|
|
808
|
+
*/
|
|
809
|
+
allowStrictAvailabilityUpdates?: boolean | null;
|
|
810
|
+
}
|
|
593
811
|
/**
|
|
594
812
|
* Response message for the `ListAccountIssues` method.
|
|
595
813
|
*/
|
|
@@ -603,6 +821,32 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
603
821
|
*/
|
|
604
822
|
nextPageToken?: string | null;
|
|
605
823
|
}
|
|
824
|
+
/**
|
|
825
|
+
* Response after trying to list account relationships.
|
|
826
|
+
*/
|
|
827
|
+
export interface Schema$ListAccountRelationshipsResponse {
|
|
828
|
+
/**
|
|
829
|
+
* The account relationships that match your filter.
|
|
830
|
+
*/
|
|
831
|
+
accountRelationships?: Schema$AccountRelationship[];
|
|
832
|
+
/**
|
|
833
|
+
* 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.
|
|
834
|
+
*/
|
|
835
|
+
nextPageToken?: string | null;
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* Response after trying to list account services.
|
|
839
|
+
*/
|
|
840
|
+
export interface Schema$ListAccountServicesResponse {
|
|
841
|
+
/**
|
|
842
|
+
* The account services that match your filter.
|
|
843
|
+
*/
|
|
844
|
+
accountServices?: Schema$AccountService[];
|
|
845
|
+
/**
|
|
846
|
+
* 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.
|
|
847
|
+
*/
|
|
848
|
+
nextPageToken?: string | null;
|
|
849
|
+
}
|
|
606
850
|
/**
|
|
607
851
|
* Response message for the `ListAccounts` method.
|
|
608
852
|
*/
|
|
@@ -739,11 +983,11 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
739
983
|
*/
|
|
740
984
|
export interface Schema$OnlineReturnPolicy {
|
|
741
985
|
/**
|
|
742
|
-
* This field specifies if merchant only accepts defective products for returns
|
|
986
|
+
* Optional. This field specifies if merchant only accepts defective products for returns.
|
|
743
987
|
*/
|
|
744
988
|
acceptDefectiveOnly?: boolean | null;
|
|
745
989
|
/**
|
|
746
|
-
* This field specifies if merchant allows customers to exchange products
|
|
990
|
+
* Optional. This field specifies if merchant allows customers to exchange products.
|
|
747
991
|
*/
|
|
748
992
|
acceptExchange?: boolean | null;
|
|
749
993
|
/**
|
|
@@ -751,7 +995,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
751
995
|
*/
|
|
752
996
|
countries?: string[] | null;
|
|
753
997
|
/**
|
|
754
|
-
* The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'.
|
|
998
|
+
* Optional. The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'.
|
|
755
999
|
*/
|
|
756
1000
|
itemConditions?: string[] | null;
|
|
757
1001
|
/**
|
|
@@ -763,19 +1007,23 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
763
1007
|
*/
|
|
764
1008
|
name?: string | null;
|
|
765
1009
|
/**
|
|
766
|
-
* The return policy.
|
|
1010
|
+
* Optional. The return policy.
|
|
767
1011
|
*/
|
|
768
1012
|
policy?: Schema$Policy;
|
|
769
1013
|
/**
|
|
770
|
-
* The field specifies the number of days it takes for merchants to process refunds
|
|
1014
|
+
* Optional. The field specifies the number of days it takes for merchants to process refunds.
|
|
771
1015
|
*/
|
|
772
1016
|
processRefundDays?: number | null;
|
|
773
1017
|
/**
|
|
774
|
-
* 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.
|
|
1018
|
+
* 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.
|
|
775
1019
|
*/
|
|
776
1020
|
restockingFee?: Schema$RestockingFee;
|
|
777
1021
|
/**
|
|
778
|
-
*
|
|
1022
|
+
* Optional. The field specifies the return label source.
|
|
1023
|
+
*/
|
|
1024
|
+
returnLabelSource?: string | null;
|
|
1025
|
+
/**
|
|
1026
|
+
* 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.
|
|
779
1027
|
*/
|
|
780
1028
|
returnMethods?: string[] | null;
|
|
781
1029
|
/**
|
|
@@ -787,7 +1035,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
787
1035
|
*/
|
|
788
1036
|
returnPolicyUri?: string | null;
|
|
789
1037
|
/**
|
|
790
|
-
* The return shipping fee. Should be set only when customer need to download and print the return label.
|
|
1038
|
+
* Optional. The return shipping fee. Should be set only when customer need to download and print the return label.
|
|
791
1039
|
*/
|
|
792
1040
|
returnShippingFee?: Schema$ReturnShippingFee;
|
|
793
1041
|
/**
|
|
@@ -826,15 +1074,15 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
826
1074
|
type?: string | null;
|
|
827
1075
|
}
|
|
828
1076
|
/**
|
|
829
|
-
* Represents a postal address
|
|
1077
|
+
* Represents a postal address (for example, for postal delivery or payments addresses). Given a postal address, a postal service can deliver items to a premise, P.O. box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage, an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input or editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput. - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478.
|
|
830
1078
|
*/
|
|
831
1079
|
export interface Schema$PostalAddress {
|
|
832
1080
|
/**
|
|
833
|
-
* 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 (
|
|
1081
|
+
* 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).
|
|
834
1082
|
*/
|
|
835
1083
|
addressLines?: string[] | null;
|
|
836
1084
|
/**
|
|
837
|
-
* 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.
|
|
1085
|
+
* 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.
|
|
838
1086
|
*/
|
|
839
1087
|
administrativeArea?: string | null;
|
|
840
1088
|
/**
|
|
@@ -842,7 +1090,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
842
1090
|
*/
|
|
843
1091
|
languageCode?: string | null;
|
|
844
1092
|
/**
|
|
845
|
-
* Optional. Generally refers to the city
|
|
1093
|
+
* 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`.
|
|
846
1094
|
*/
|
|
847
1095
|
locality?: string | null;
|
|
848
1096
|
/**
|
|
@@ -850,7 +1098,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
850
1098
|
*/
|
|
851
1099
|
organization?: string | null;
|
|
852
1100
|
/**
|
|
853
|
-
* 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 (
|
|
1101
|
+
* 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).
|
|
854
1102
|
*/
|
|
855
1103
|
postalCode?: string | null;
|
|
856
1104
|
/**
|
|
@@ -866,11 +1114,11 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
866
1114
|
*/
|
|
867
1115
|
revision?: number | null;
|
|
868
1116
|
/**
|
|
869
|
-
* 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 (
|
|
1117
|
+
* 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).
|
|
870
1118
|
*/
|
|
871
1119
|
sortingCode?: string | null;
|
|
872
1120
|
/**
|
|
873
|
-
* Optional. Sublocality of the address. For example, this can be
|
|
1121
|
+
* Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district.
|
|
874
1122
|
*/
|
|
875
1123
|
sublocality?: string | null;
|
|
876
1124
|
}
|
|
@@ -918,22 +1166,27 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
918
1166
|
*/
|
|
919
1167
|
export interface Schema$ProductChange {
|
|
920
1168
|
/**
|
|
921
|
-
* The new value of the changed resource or attribute.
|
|
1169
|
+
* 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`, ``)
|
|
922
1170
|
*/
|
|
923
1171
|
newValue?: string | null;
|
|
924
1172
|
/**
|
|
925
|
-
* The old value of the changed resource or attribute.
|
|
1173
|
+
* 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`, ``)
|
|
926
1174
|
*/
|
|
927
1175
|
oldValue?: string | null;
|
|
928
1176
|
/**
|
|
929
|
-
* Countries that have the change (if applicable)
|
|
1177
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
930
1178
|
*/
|
|
931
1179
|
regionCode?: string | null;
|
|
932
1180
|
/**
|
|
933
|
-
* Reporting contexts that have the change (if applicable)
|
|
1181
|
+
* 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)
|
|
934
1182
|
*/
|
|
935
1183
|
reportingContext?: string | null;
|
|
936
1184
|
}
|
|
1185
|
+
/**
|
|
1186
|
+
* `ProductsManagement` payload.
|
|
1187
|
+
*/
|
|
1188
|
+
export interface Schema$ProductsManagement {
|
|
1189
|
+
}
|
|
937
1190
|
/**
|
|
938
1191
|
* The message that the merchant will receive to notify about product status change event
|
|
939
1192
|
*/
|
|
@@ -951,7 +1204,11 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
951
1204
|
*/
|
|
952
1205
|
changes?: Schema$ProductChange[];
|
|
953
1206
|
/**
|
|
954
|
-
* The
|
|
1207
|
+
* 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.
|
|
1208
|
+
*/
|
|
1209
|
+
eventTime?: string | null;
|
|
1210
|
+
/**
|
|
1211
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
955
1212
|
*/
|
|
956
1213
|
expirationTime?: string | null;
|
|
957
1214
|
/**
|
|
@@ -959,7 +1216,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
959
1216
|
*/
|
|
960
1217
|
managingAccount?: string | null;
|
|
961
1218
|
/**
|
|
962
|
-
* The product name. Format: `
|
|
1219
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
963
1220
|
*/
|
|
964
1221
|
resource?: string | null;
|
|
965
1222
|
/**
|
|
@@ -972,7 +1229,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
972
1229
|
resourceType?: string | null;
|
|
973
1230
|
}
|
|
974
1231
|
/**
|
|
975
|
-
* Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU) program, which enables products from a merchant's store to be shown across Google for free.
|
|
1232
|
+
* Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU) program, which enables products from a merchant's store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `free-listings` * `shopping-ads` * `youtube-shopping-checkout`
|
|
976
1233
|
*/
|
|
977
1234
|
export interface Schema$Program {
|
|
978
1235
|
/**
|
|
@@ -996,6 +1253,19 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
996
1253
|
*/
|
|
997
1254
|
unmetRequirements?: Schema$Requirement[];
|
|
998
1255
|
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Request to propose an account service.
|
|
1258
|
+
*/
|
|
1259
|
+
export interface Schema$ProposeAccountServiceRequest {
|
|
1260
|
+
/**
|
|
1261
|
+
* Required. The account service to propose.
|
|
1262
|
+
*/
|
|
1263
|
+
accountService?: Schema$AccountService;
|
|
1264
|
+
/**
|
|
1265
|
+
* 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`).
|
|
1266
|
+
*/
|
|
1267
|
+
provider?: string | null;
|
|
1268
|
+
}
|
|
999
1269
|
/**
|
|
1000
1270
|
* 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.
|
|
1001
1271
|
*/
|
|
@@ -1054,16 +1324,21 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1054
1324
|
*/
|
|
1055
1325
|
shippingEligible?: boolean | null;
|
|
1056
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Request to reject an account service.
|
|
1329
|
+
*/
|
|
1330
|
+
export interface Schema$RejectAccountServiceRequest {
|
|
1331
|
+
}
|
|
1057
1332
|
/**
|
|
1058
1333
|
* Describes the terms of service which are required to be accepted.
|
|
1059
1334
|
*/
|
|
1060
1335
|
export interface Schema$Required {
|
|
1061
1336
|
/**
|
|
1062
|
-
* The
|
|
1337
|
+
* The `TermsOfService` that need to be accepted.
|
|
1063
1338
|
*/
|
|
1064
1339
|
termsOfService?: string | null;
|
|
1065
1340
|
/**
|
|
1066
|
-
* Full URL to the terms of service file. This field is the same as
|
|
1341
|
+
* Full URL to the terms of service file. This field is the same as `TermsOfService.file_uri`, it is added here for convenience only.
|
|
1067
1342
|
*/
|
|
1068
1343
|
tosFileUri?: string | null;
|
|
1069
1344
|
}
|
|
@@ -1119,26 +1394,27 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1119
1394
|
*/
|
|
1120
1395
|
cells?: Schema$Value[];
|
|
1121
1396
|
}
|
|
1122
|
-
/**
|
|
1123
|
-
* Next: 5
|
|
1124
|
-
*/
|
|
1125
1397
|
export interface Schema$SeasonalOverride {
|
|
1126
|
-
/**
|
|
1127
|
-
* Required. Defines the date range when this seasonal override applies. Both begin and end are inclusive and should be in date decimal format, example 20250115. The dates of the seasonal overrides should not overlap.
|
|
1128
|
-
*/
|
|
1129
|
-
begin?: Schema$Date;
|
|
1130
1398
|
/**
|
|
1131
1399
|
* Required. seasonal override end date (inclusive).
|
|
1132
1400
|
*/
|
|
1133
|
-
|
|
1401
|
+
endDate?: Schema$Date;
|
|
1134
1402
|
/**
|
|
1135
1403
|
* Required. Display name of this seasonal override in Merchant Center.
|
|
1136
1404
|
*/
|
|
1137
1405
|
label?: string | null;
|
|
1138
1406
|
/**
|
|
1139
|
-
*
|
|
1407
|
+
* Number of days (from the delivery date) that the product can be returned.
|
|
1140
1408
|
*/
|
|
1141
|
-
|
|
1409
|
+
returnDays?: number | null;
|
|
1410
|
+
/**
|
|
1411
|
+
* Fixed end date until which the product can be returned.
|
|
1412
|
+
*/
|
|
1413
|
+
returnUntilDate?: Schema$Date;
|
|
1414
|
+
/**
|
|
1415
|
+
* 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.
|
|
1416
|
+
*/
|
|
1417
|
+
startDate?: Schema$Date;
|
|
1142
1418
|
}
|
|
1143
1419
|
/**
|
|
1144
1420
|
* Shipping service.
|
|
@@ -1149,7 +1425,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1149
1425
|
*/
|
|
1150
1426
|
active?: boolean | null;
|
|
1151
1427
|
/**
|
|
1152
|
-
* The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
|
|
1428
|
+
* Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
|
|
1153
1429
|
*/
|
|
1154
1430
|
currencyCode?: string | null;
|
|
1155
1431
|
/**
|
|
@@ -1190,7 +1466,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1190
1466
|
storeConfig?: Schema$StoreConfig;
|
|
1191
1467
|
}
|
|
1192
1468
|
/**
|
|
1193
|
-
* The merchant account's [shipping
|
|
1469
|
+
* The merchant account's [shipping settings](https://support.google.com/merchants/answer/6069284).
|
|
1194
1470
|
*/
|
|
1195
1471
|
export interface Schema$ShippingSettings {
|
|
1196
1472
|
/**
|
|
@@ -1198,7 +1474,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1198
1474
|
*/
|
|
1199
1475
|
etag?: string | null;
|
|
1200
1476
|
/**
|
|
1201
|
-
* Identifier. The resource name of the shipping
|
|
1477
|
+
* Identifier. The resource name of the shipping settings. Format: `accounts/{account\}/shippingSettings`
|
|
1202
1478
|
*/
|
|
1203
1479
|
name?: string | null;
|
|
1204
1480
|
/**
|
|
@@ -1279,7 +1555,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1279
1555
|
rows?: Schema$Row[];
|
|
1280
1556
|
}
|
|
1281
1557
|
/**
|
|
1282
|
-
* The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services
|
|
1558
|
+
* The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services. For more information, see [Terms of Service](https://support.google.com/merchants/answer/160173). This message is important for the onboarding process, ensuring that merchants agree to the necessary legal agreements for using the service. Merchants can retrieve the latest terms of service for a given `kind` and `region` through `RetrieveLatestTermsOfService`, and accept them as required through `AcceptTermsOfService`.
|
|
1283
1559
|
*/
|
|
1284
1560
|
export interface Schema$TermsOfService {
|
|
1285
1561
|
/**
|
|
@@ -1304,7 +1580,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1304
1580
|
regionCode?: string | null;
|
|
1305
1581
|
}
|
|
1306
1582
|
/**
|
|
1307
|
-
* This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service
|
|
1583
|
+
* This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the merchant must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect 3Ps to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`). The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource.
|
|
1308
1584
|
*/
|
|
1309
1585
|
export interface Schema$TermsOfServiceAgreementState {
|
|
1310
1586
|
/**
|
|
@@ -1390,7 +1666,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1390
1666
|
*/
|
|
1391
1667
|
export interface Schema$User {
|
|
1392
1668
|
/**
|
|
1393
|
-
*
|
|
1669
|
+
* Required. The [access rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) the user has.
|
|
1394
1670
|
*/
|
|
1395
1671
|
accessRights?: string[] | null;
|
|
1396
1672
|
/**
|
|
@@ -1498,6 +1774,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1498
1774
|
export class Resource$Accounts {
|
|
1499
1775
|
context: APIRequestContext;
|
|
1500
1776
|
autofeedSettings: Resource$Accounts$Autofeedsettings;
|
|
1777
|
+
automaticImprovements: Resource$Accounts$Automaticimprovements;
|
|
1501
1778
|
businessIdentity: Resource$Accounts$Businessidentity;
|
|
1502
1779
|
businessInfo: Resource$Accounts$Businessinfo;
|
|
1503
1780
|
emailPreferences: Resource$Accounts$Emailpreferences;
|
|
@@ -1506,12 +1783,14 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1506
1783
|
onlineReturnPolicies: Resource$Accounts$Onlinereturnpolicies;
|
|
1507
1784
|
programs: Resource$Accounts$Programs;
|
|
1508
1785
|
regions: Resource$Accounts$Regions;
|
|
1786
|
+
relationships: Resource$Accounts$Relationships;
|
|
1787
|
+
services: Resource$Accounts$Services;
|
|
1509
1788
|
shippingSettings: Resource$Accounts$Shippingsettings;
|
|
1510
1789
|
termsOfServiceAgreementStates: Resource$Accounts$Termsofserviceagreementstates;
|
|
1511
1790
|
users: Resource$Accounts$Users;
|
|
1512
1791
|
constructor(context: APIRequestContext);
|
|
1513
1792
|
/**
|
|
1514
|
-
* Creates a
|
|
1793
|
+
* Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
|
|
1515
1794
|
*
|
|
1516
1795
|
* @param params - Parameters for request
|
|
1517
1796
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1553,7 +1832,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1553
1832
|
get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$Account>): void;
|
|
1554
1833
|
get(callback: BodyResponseCallback<Schema$Account>): void;
|
|
1555
1834
|
/**
|
|
1556
|
-
* Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns accounts the user is
|
|
1835
|
+
* Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns all the accounts the user has access to. This method is eventually consistent, meaning changes such as creating, updating an account or a change of relationships between accounts may not show up in the results immediately. Instead, these changes propagate over a short period, after which the updated information can match the associated predicates. That means, that searching by account name might not return a recently changed account even though it satisfies the predicate.
|
|
1557
1836
|
*
|
|
1558
1837
|
* @param params - Parameters for request
|
|
1559
1838
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1619,7 +1898,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1619
1898
|
}
|
|
1620
1899
|
export interface Params$Resource$Accounts$List extends StandardParameters {
|
|
1621
1900
|
/**
|
|
1622
|
-
* Optional. Returns only accounts that match the [filter](/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](/merchant/api/guides/accounts/filter-syntax).
|
|
1901
|
+
* 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).
|
|
1623
1902
|
*/
|
|
1624
1903
|
filter?: string;
|
|
1625
1904
|
/**
|
|
@@ -1641,7 +1920,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1641
1920
|
*/
|
|
1642
1921
|
pageToken?: string;
|
|
1643
1922
|
/**
|
|
1644
|
-
* Required. The aggregation service provider. Format: `
|
|
1923
|
+
* Required. The aggregation service provider. Format: `accounts/{accountId\}`
|
|
1645
1924
|
*/
|
|
1646
1925
|
provider?: string;
|
|
1647
1926
|
}
|
|
@@ -1711,6 +1990,58 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1711
1990
|
*/
|
|
1712
1991
|
requestBody?: Schema$AutofeedSettings;
|
|
1713
1992
|
}
|
|
1993
|
+
export class Resource$Accounts$Automaticimprovements {
|
|
1994
|
+
context: APIRequestContext;
|
|
1995
|
+
constructor(context: APIRequestContext);
|
|
1996
|
+
/**
|
|
1997
|
+
* Retrieves the automatic improvements of an account.
|
|
1998
|
+
*
|
|
1999
|
+
* @param params - Parameters for request
|
|
2000
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2001
|
+
* @param callback - Optional callback that handles the response.
|
|
2002
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2003
|
+
*/
|
|
2004
|
+
getAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2005
|
+
getAutomaticImprovements(params?: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, options?: MethodOptions): GaxiosPromise<Schema$AutomaticImprovements>;
|
|
2006
|
+
getAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2007
|
+
getAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, options: MethodOptions | BodyResponseCallback<Schema$AutomaticImprovements>, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
2008
|
+
getAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
2009
|
+
getAutomaticImprovements(callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
2010
|
+
/**
|
|
2011
|
+
* Updates the automatic improvements of an account.
|
|
2012
|
+
*
|
|
2013
|
+
* @param params - Parameters for request
|
|
2014
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2015
|
+
* @param callback - Optional callback that handles the response.
|
|
2016
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2017
|
+
*/
|
|
2018
|
+
updateAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2019
|
+
updateAutomaticImprovements(params?: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, options?: MethodOptions): GaxiosPromise<Schema$AutomaticImprovements>;
|
|
2020
|
+
updateAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2021
|
+
updateAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, options: MethodOptions | BodyResponseCallback<Schema$AutomaticImprovements>, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
2022
|
+
updateAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
2023
|
+
updateAutomaticImprovements(callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
2024
|
+
}
|
|
2025
|
+
export interface Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements extends StandardParameters {
|
|
2026
|
+
/**
|
|
2027
|
+
* Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
|
|
2028
|
+
*/
|
|
2029
|
+
name?: string;
|
|
2030
|
+
}
|
|
2031
|
+
export interface Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements extends StandardParameters {
|
|
2032
|
+
/**
|
|
2033
|
+
* Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
|
|
2034
|
+
*/
|
|
2035
|
+
name?: string;
|
|
2036
|
+
/**
|
|
2037
|
+
* 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`
|
|
2038
|
+
*/
|
|
2039
|
+
updateMask?: string;
|
|
2040
|
+
/**
|
|
2041
|
+
* Request body metadata
|
|
2042
|
+
*/
|
|
2043
|
+
requestBody?: Schema$AutomaticImprovements;
|
|
2044
|
+
}
|
|
1714
2045
|
export class Resource$Accounts$Businessidentity {
|
|
1715
2046
|
context: APIRequestContext;
|
|
1716
2047
|
constructor(context: APIRequestContext);
|
|
@@ -1971,7 +2302,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1971
2302
|
context: APIRequestContext;
|
|
1972
2303
|
constructor(context: APIRequestContext);
|
|
1973
2304
|
/**
|
|
1974
|
-
* Lists all account issues of a Merchant Center account.
|
|
2305
|
+
* 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.
|
|
1975
2306
|
*
|
|
1976
2307
|
* @param params - Parameters for request
|
|
1977
2308
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1991,7 +2322,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1991
2322
|
*/
|
|
1992
2323
|
languageCode?: string;
|
|
1993
2324
|
/**
|
|
1994
|
-
* Optional. The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50
|
|
2325
|
+
* 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
|
|
1995
2326
|
*/
|
|
1996
2327
|
pageSize?: number;
|
|
1997
2328
|
/**
|
|
@@ -2287,6 +2618,210 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2287
2618
|
*/
|
|
2288
2619
|
requestBody?: Schema$Region;
|
|
2289
2620
|
}
|
|
2621
|
+
export class Resource$Accounts$Relationships {
|
|
2622
|
+
context: APIRequestContext;
|
|
2623
|
+
constructor(context: APIRequestContext);
|
|
2624
|
+
/**
|
|
2625
|
+
* Retrieve an account relationship.
|
|
2626
|
+
*
|
|
2627
|
+
* @param params - Parameters for request
|
|
2628
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2629
|
+
* @param callback - Optional callback that handles the response.
|
|
2630
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2631
|
+
*/
|
|
2632
|
+
get(params: Params$Resource$Accounts$Relationships$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2633
|
+
get(params?: Params$Resource$Accounts$Relationships$Get, options?: MethodOptions): GaxiosPromise<Schema$AccountRelationship>;
|
|
2634
|
+
get(params: Params$Resource$Accounts$Relationships$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2635
|
+
get(params: Params$Resource$Accounts$Relationships$Get, options: MethodOptions | BodyResponseCallback<Schema$AccountRelationship>, callback: BodyResponseCallback<Schema$AccountRelationship>): void;
|
|
2636
|
+
get(params: Params$Resource$Accounts$Relationships$Get, callback: BodyResponseCallback<Schema$AccountRelationship>): void;
|
|
2637
|
+
get(callback: BodyResponseCallback<Schema$AccountRelationship>): void;
|
|
2638
|
+
/**
|
|
2639
|
+
* List account relationships for the specified account.
|
|
2640
|
+
*
|
|
2641
|
+
* @param params - Parameters for request
|
|
2642
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2643
|
+
* @param callback - Optional callback that handles the response.
|
|
2644
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2645
|
+
*/
|
|
2646
|
+
list(params: Params$Resource$Accounts$Relationships$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2647
|
+
list(params?: Params$Resource$Accounts$Relationships$List, options?: MethodOptions): GaxiosPromise<Schema$ListAccountRelationshipsResponse>;
|
|
2648
|
+
list(params: Params$Resource$Accounts$Relationships$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2649
|
+
list(params: Params$Resource$Accounts$Relationships$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccountRelationshipsResponse>, callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>): void;
|
|
2650
|
+
list(params: Params$Resource$Accounts$Relationships$List, callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>): void;
|
|
2651
|
+
list(callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>): void;
|
|
2652
|
+
/**
|
|
2653
|
+
* Updates the account relationship. Executing this method requires admin access.
|
|
2654
|
+
*
|
|
2655
|
+
* @param params - Parameters for request
|
|
2656
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2657
|
+
* @param callback - Optional callback that handles the response.
|
|
2658
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2659
|
+
*/
|
|
2660
|
+
patch(params: Params$Resource$Accounts$Relationships$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2661
|
+
patch(params?: Params$Resource$Accounts$Relationships$Patch, options?: MethodOptions): GaxiosPromise<Schema$AccountRelationship>;
|
|
2662
|
+
patch(params: Params$Resource$Accounts$Relationships$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2663
|
+
patch(params: Params$Resource$Accounts$Relationships$Patch, options: MethodOptions | BodyResponseCallback<Schema$AccountRelationship>, callback: BodyResponseCallback<Schema$AccountRelationship>): void;
|
|
2664
|
+
patch(params: Params$Resource$Accounts$Relationships$Patch, callback: BodyResponseCallback<Schema$AccountRelationship>): void;
|
|
2665
|
+
patch(callback: BodyResponseCallback<Schema$AccountRelationship>): void;
|
|
2666
|
+
}
|
|
2667
|
+
export interface Params$Resource$Accounts$Relationships$Get extends StandardParameters {
|
|
2668
|
+
/**
|
|
2669
|
+
* Required. The resource name of the account relationship to get.
|
|
2670
|
+
*/
|
|
2671
|
+
name?: string;
|
|
2672
|
+
}
|
|
2673
|
+
export interface Params$Resource$Accounts$Relationships$List extends StandardParameters {
|
|
2674
|
+
/**
|
|
2675
|
+
* 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`.
|
|
2676
|
+
*/
|
|
2677
|
+
pageSize?: number;
|
|
2678
|
+
/**
|
|
2679
|
+
* Optional. The token returned by the previous `list` request.
|
|
2680
|
+
*/
|
|
2681
|
+
pageToken?: string;
|
|
2682
|
+
/**
|
|
2683
|
+
* Required. The parent account of the account relationship to filter by.
|
|
2684
|
+
*/
|
|
2685
|
+
parent?: string;
|
|
2686
|
+
}
|
|
2687
|
+
export interface Params$Resource$Accounts$Relationships$Patch extends StandardParameters {
|
|
2688
|
+
/**
|
|
2689
|
+
* Identifier. The resource name of the account relationship.
|
|
2690
|
+
*/
|
|
2691
|
+
name?: string;
|
|
2692
|
+
/**
|
|
2693
|
+
* Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_id_alias`
|
|
2694
|
+
*/
|
|
2695
|
+
updateMask?: string;
|
|
2696
|
+
/**
|
|
2697
|
+
* Request body metadata
|
|
2698
|
+
*/
|
|
2699
|
+
requestBody?: Schema$AccountRelationship;
|
|
2700
|
+
}
|
|
2701
|
+
export class Resource$Accounts$Services {
|
|
2702
|
+
context: APIRequestContext;
|
|
2703
|
+
constructor(context: APIRequestContext);
|
|
2704
|
+
/**
|
|
2705
|
+
* Approve an account service proposal.
|
|
2706
|
+
*
|
|
2707
|
+
* @param params - Parameters for request
|
|
2708
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2709
|
+
* @param callback - Optional callback that handles the response.
|
|
2710
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2711
|
+
*/
|
|
2712
|
+
approve(params: Params$Resource$Accounts$Services$Approve, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2713
|
+
approve(params?: Params$Resource$Accounts$Services$Approve, options?: MethodOptions): GaxiosPromise<Schema$AccountService>;
|
|
2714
|
+
approve(params: Params$Resource$Accounts$Services$Approve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2715
|
+
approve(params: Params$Resource$Accounts$Services$Approve, options: MethodOptions | BodyResponseCallback<Schema$AccountService>, callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2716
|
+
approve(params: Params$Resource$Accounts$Services$Approve, callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2717
|
+
approve(callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2718
|
+
/**
|
|
2719
|
+
* Retrieve an account service.
|
|
2720
|
+
*
|
|
2721
|
+
* @param params - Parameters for request
|
|
2722
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2723
|
+
* @param callback - Optional callback that handles the response.
|
|
2724
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2725
|
+
*/
|
|
2726
|
+
get(params: Params$Resource$Accounts$Services$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2727
|
+
get(params?: Params$Resource$Accounts$Services$Get, options?: MethodOptions): GaxiosPromise<Schema$AccountService>;
|
|
2728
|
+
get(params: Params$Resource$Accounts$Services$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2729
|
+
get(params: Params$Resource$Accounts$Services$Get, options: MethodOptions | BodyResponseCallback<Schema$AccountService>, callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2730
|
+
get(params: Params$Resource$Accounts$Services$Get, callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2731
|
+
get(callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2732
|
+
/**
|
|
2733
|
+
* List account services for the specified accounts. Supports filtering.
|
|
2734
|
+
*
|
|
2735
|
+
* @param params - Parameters for request
|
|
2736
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2737
|
+
* @param callback - Optional callback that handles the response.
|
|
2738
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2739
|
+
*/
|
|
2740
|
+
list(params: Params$Resource$Accounts$Services$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2741
|
+
list(params?: Params$Resource$Accounts$Services$List, options?: MethodOptions): GaxiosPromise<Schema$ListAccountServicesResponse>;
|
|
2742
|
+
list(params: Params$Resource$Accounts$Services$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2743
|
+
list(params: Params$Resource$Accounts$Services$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccountServicesResponse>, callback: BodyResponseCallback<Schema$ListAccountServicesResponse>): void;
|
|
2744
|
+
list(params: Params$Resource$Accounts$Services$List, callback: BodyResponseCallback<Schema$ListAccountServicesResponse>): void;
|
|
2745
|
+
list(callback: BodyResponseCallback<Schema$ListAccountServicesResponse>): void;
|
|
2746
|
+
/**
|
|
2747
|
+
* Propose an account service.
|
|
2748
|
+
*
|
|
2749
|
+
* @param params - Parameters for request
|
|
2750
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2751
|
+
* @param callback - Optional callback that handles the response.
|
|
2752
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2753
|
+
*/
|
|
2754
|
+
propose(params: Params$Resource$Accounts$Services$Propose, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2755
|
+
propose(params?: Params$Resource$Accounts$Services$Propose, options?: MethodOptions): GaxiosPromise<Schema$AccountService>;
|
|
2756
|
+
propose(params: Params$Resource$Accounts$Services$Propose, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2757
|
+
propose(params: Params$Resource$Accounts$Services$Propose, options: MethodOptions | BodyResponseCallback<Schema$AccountService>, callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2758
|
+
propose(params: Params$Resource$Accounts$Services$Propose, callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2759
|
+
propose(callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
2760
|
+
/**
|
|
2761
|
+
* Reject an account service (both proposed and approve services can be rejected).
|
|
2762
|
+
*
|
|
2763
|
+
* @param params - Parameters for request
|
|
2764
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2765
|
+
* @param callback - Optional callback that handles the response.
|
|
2766
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2767
|
+
*/
|
|
2768
|
+
reject(params: Params$Resource$Accounts$Services$Reject, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2769
|
+
reject(params?: Params$Resource$Accounts$Services$Reject, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
|
|
2770
|
+
reject(params: Params$Resource$Accounts$Services$Reject, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2771
|
+
reject(params: Params$Resource$Accounts$Services$Reject, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2772
|
+
reject(params: Params$Resource$Accounts$Services$Reject, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2773
|
+
reject(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
2774
|
+
}
|
|
2775
|
+
export interface Params$Resource$Accounts$Services$Approve extends StandardParameters {
|
|
2776
|
+
/**
|
|
2777
|
+
* Required. The resource name of the account service to approve.
|
|
2778
|
+
*/
|
|
2779
|
+
name?: string;
|
|
2780
|
+
/**
|
|
2781
|
+
* Request body metadata
|
|
2782
|
+
*/
|
|
2783
|
+
requestBody?: Schema$ApproveAccountServiceRequest;
|
|
2784
|
+
}
|
|
2785
|
+
export interface Params$Resource$Accounts$Services$Get extends StandardParameters {
|
|
2786
|
+
/**
|
|
2787
|
+
* Required. The resource name of the account service to get.
|
|
2788
|
+
*/
|
|
2789
|
+
name?: string;
|
|
2790
|
+
}
|
|
2791
|
+
export interface Params$Resource$Accounts$Services$List extends StandardParameters {
|
|
2792
|
+
/**
|
|
2793
|
+
* 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`.
|
|
2794
|
+
*/
|
|
2795
|
+
pageSize?: number;
|
|
2796
|
+
/**
|
|
2797
|
+
* Optional. The token returned by the previous `list` request.
|
|
2798
|
+
*/
|
|
2799
|
+
pageToken?: string;
|
|
2800
|
+
/**
|
|
2801
|
+
* Required. The parent account of the account service to filter by.
|
|
2802
|
+
*/
|
|
2803
|
+
parent?: string;
|
|
2804
|
+
}
|
|
2805
|
+
export interface Params$Resource$Accounts$Services$Propose extends StandardParameters {
|
|
2806
|
+
/**
|
|
2807
|
+
* Required. The resource name of the parent account for the service.
|
|
2808
|
+
*/
|
|
2809
|
+
parent?: string;
|
|
2810
|
+
/**
|
|
2811
|
+
* Request body metadata
|
|
2812
|
+
*/
|
|
2813
|
+
requestBody?: Schema$ProposeAccountServiceRequest;
|
|
2814
|
+
}
|
|
2815
|
+
export interface Params$Resource$Accounts$Services$Reject extends StandardParameters {
|
|
2816
|
+
/**
|
|
2817
|
+
* Required. The resource name of the account service to reject.
|
|
2818
|
+
*/
|
|
2819
|
+
name?: string;
|
|
2820
|
+
/**
|
|
2821
|
+
* Request body metadata
|
|
2822
|
+
*/
|
|
2823
|
+
requestBody?: Schema$RejectAccountServiceRequest;
|
|
2824
|
+
}
|
|
2290
2825
|
export class Resource$Accounts$Shippingsettings {
|
|
2291
2826
|
context: APIRequestContext;
|
|
2292
2827
|
constructor(context: APIRequestContext);
|
|
@@ -2321,13 +2856,13 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2321
2856
|
}
|
|
2322
2857
|
export interface Params$Resource$Accounts$Shippingsettings$Getshippingsettings extends StandardParameters {
|
|
2323
2858
|
/**
|
|
2324
|
-
* Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/
|
|
2859
|
+
* Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/shippingsettings`
|
|
2325
2860
|
*/
|
|
2326
2861
|
name?: string;
|
|
2327
2862
|
}
|
|
2328
2863
|
export interface Params$Resource$Accounts$Shippingsettings$Insert extends StandardParameters {
|
|
2329
2864
|
/**
|
|
2330
|
-
* Required. The account
|
|
2865
|
+
* 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\}`
|
|
2331
2866
|
*/
|
|
2332
2867
|
parent?: string;
|
|
2333
2868
|
/**
|
|
@@ -2369,7 +2904,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2369
2904
|
}
|
|
2370
2905
|
export interface Params$Resource$Accounts$Termsofserviceagreementstates$Get extends StandardParameters {
|
|
2371
2906
|
/**
|
|
2372
|
-
* Required. The resource name of the terms of service version. Format: `accounts/{account\}/
|
|
2907
|
+
* Required. The resource name of the terms of service version. Format: `accounts/{account\}/termsOfServiceAgreementStates/{identifier\}` The identifier format is: `{TermsOfServiceKind\}-{country\}`
|
|
2373
2908
|
*/
|
|
2374
2909
|
name?: string;
|
|
2375
2910
|
}
|
|
@@ -2519,11 +3054,11 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2519
3054
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2520
3055
|
*/
|
|
2521
3056
|
accept(params: Params$Resource$Termsofservice$Accept, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2522
|
-
accept(params?: Params$Resource$Termsofservice$Accept, options?: MethodOptions): GaxiosPromise<Schema$
|
|
3057
|
+
accept(params?: Params$Resource$Termsofservice$Accept, options?: MethodOptions): GaxiosPromise<Schema$AcceptTermsOfServiceResponse>;
|
|
2523
3058
|
accept(params: Params$Resource$Termsofservice$Accept, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2524
|
-
accept(params: Params$Resource$Termsofservice$Accept, options: MethodOptions | BodyResponseCallback<Schema$
|
|
2525
|
-
accept(params: Params$Resource$Termsofservice$Accept, callback: BodyResponseCallback<Schema$
|
|
2526
|
-
accept(callback: BodyResponseCallback<Schema$
|
|
3059
|
+
accept(params: Params$Resource$Termsofservice$Accept, options: MethodOptions | BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>, callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>): void;
|
|
3060
|
+
accept(params: Params$Resource$Termsofservice$Accept, callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>): void;
|
|
3061
|
+
accept(callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>): void;
|
|
2527
3062
|
/**
|
|
2528
3063
|
* Retrieves the `TermsOfService` associated with the provided version.
|
|
2529
3064
|
*
|
|
@@ -2555,7 +3090,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2555
3090
|
}
|
|
2556
3091
|
export interface Params$Resource$Termsofservice$Accept extends StandardParameters {
|
|
2557
3092
|
/**
|
|
2558
|
-
* Required. The account for which to accept the ToS.
|
|
3093
|
+
* Required. The account for which to accept the ToS. Format: `accounts/{account\}`
|
|
2559
3094
|
*/
|
|
2560
3095
|
account?: string;
|
|
2561
3096
|
/**
|