@googleapis/merchantapi 1.1.0 → 4.1.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 +45 -0
- package/accounts_v1beta.ts +675 -87
- package/build/accounts_v1beta.d.ts +344 -85
- package/build/accounts_v1beta.js +138 -1
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +15 -10
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +187 -19
- package/build/datasources_v1beta.js +39 -0
- package/build/datasources_v1beta.js.map +1 -1
- package/build/index.d.ts +5 -0
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/build/inventories_v1beta.d.ts +13 -5
- package/build/inventories_v1beta.js.map +1 -1
- package/build/lfp_v1beta.d.ts +13 -5
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +14 -6
- package/build/notifications_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +81 -16
- package/build/products_v1beta.js +32 -0
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +14 -6
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +14 -6
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +13 -5
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +786 -0
- package/build/reviews_v1beta.js +322 -0
- package/build/reviews_v1beta.js.map +1 -0
- package/conversions_v1beta.ts +15 -10
- package/datasources_v1beta.ts +267 -19
- package/index.ts +13 -1
- package/inventories_v1beta.ts +13 -5
- package/lfp_v1beta.ts +13 -5
- package/notifications_v1beta.ts +14 -6
- package/package.json +1 -1
- package/products_v1beta.ts +157 -16
- package/promotions_v1beta.ts +14 -6
- package/quota_v1beta.ts +14 -6
- package/reports_v1beta.ts +13 -5
- package/reviews_v1beta.ts +1465 -0
|
@@ -92,30 +92,77 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
92
92
|
*/
|
|
93
93
|
input?: string | null;
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* The [local inventory](https://support.google.com/merchants/answer/7023001) data source.
|
|
96
96
|
*/
|
|
97
97
|
localInventoryDataSource?: Schema$LocalInventoryDataSource;
|
|
98
|
+
/**
|
|
99
|
+
* The [merchant review](https://support.google.com/merchants/answer/7045996) data source.
|
|
100
|
+
*/
|
|
101
|
+
merchantReviewDataSource?: Schema$MerchantReviewDataSource;
|
|
98
102
|
/**
|
|
99
103
|
* Identifier. The name of the data source. Format: `{datasource.name=accounts/{account\}/dataSources/{datasource\}\}`
|
|
100
104
|
*/
|
|
101
105
|
name?: string | null;
|
|
102
106
|
/**
|
|
103
|
-
*
|
|
107
|
+
* The [primary data source](https://support.google.com/merchants/answer/7439058) for local and online products.
|
|
104
108
|
*/
|
|
105
109
|
primaryProductDataSource?: Schema$PrimaryProductDataSource;
|
|
106
110
|
/**
|
|
107
|
-
*
|
|
111
|
+
* The [product review](https://support.google.com/merchants/answer/7045996) data source.
|
|
112
|
+
*/
|
|
113
|
+
productReviewDataSource?: Schema$ProductReviewDataSource;
|
|
114
|
+
/**
|
|
115
|
+
* The [promotion](https://support.google.com/merchants/answer/2906014) data source.
|
|
108
116
|
*/
|
|
109
117
|
promotionDataSource?: Schema$PromotionDataSource;
|
|
110
118
|
/**
|
|
111
|
-
*
|
|
119
|
+
* The [regional inventory](https://support.google.com/merchants/answer/7439058) data source.
|
|
112
120
|
*/
|
|
113
121
|
regionalInventoryDataSource?: Schema$RegionalInventoryDataSource;
|
|
114
122
|
/**
|
|
115
|
-
*
|
|
123
|
+
* The [supplemental data source](https://support.google.com/merchants/answer/7439058) for local and online products.
|
|
116
124
|
*/
|
|
117
125
|
supplementalProductDataSource?: Schema$SupplementalProductDataSource;
|
|
118
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Data source reference can be used to manage related data sources within the data source service.
|
|
129
|
+
*/
|
|
130
|
+
export interface Schema$DataSourceReference {
|
|
131
|
+
/**
|
|
132
|
+
* Optional. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
133
|
+
*/
|
|
134
|
+
primaryDataSourceName?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* Self should be used to reference the primary data source itself.
|
|
137
|
+
*/
|
|
138
|
+
self?: boolean | null;
|
|
139
|
+
/**
|
|
140
|
+
* Optional. The name of the supplemental data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
141
|
+
*/
|
|
142
|
+
supplementalDataSourceName?: string | null;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Default rule management of the data source.
|
|
146
|
+
*/
|
|
147
|
+
export interface Schema$DefaultRule {
|
|
148
|
+
/**
|
|
149
|
+
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`.
|
|
150
|
+
*/
|
|
151
|
+
takeFromDataSources?: Schema$DataSourceReference[];
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Destinations also known as [Marketing methods](https://support.google.com/merchants/answer/15130232) selections.
|
|
155
|
+
*/
|
|
156
|
+
export interface Schema$Destination {
|
|
157
|
+
/**
|
|
158
|
+
* [Marketing methods](https://support.google.com/merchants/answer/15130232) (also known as destination) selections.
|
|
159
|
+
*/
|
|
160
|
+
destination?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* The state of the destination.
|
|
163
|
+
*/
|
|
164
|
+
state?: string | null;
|
|
165
|
+
}
|
|
119
166
|
/**
|
|
120
167
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
121
168
|
*/
|
|
@@ -151,7 +198,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
151
198
|
*/
|
|
152
199
|
frequency?: string | null;
|
|
153
200
|
/**
|
|
154
|
-
* Optional. An optional password for
|
|
201
|
+
* Optional. An optional password for fetch_uri. Used for [submitting data sources through SFTP](https://support.google.com/merchants/answer/13813117).
|
|
155
202
|
*/
|
|
156
203
|
password?: string | null;
|
|
157
204
|
/**
|
|
@@ -163,7 +210,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
163
210
|
*/
|
|
164
211
|
timeZone?: string | null;
|
|
165
212
|
/**
|
|
166
|
-
* Optional. An optional user name for
|
|
213
|
+
* Optional. An optional user name for fetch_uri. Used for [submitting data sources through SFTP](https://support.google.com/merchants/answer/13813117).
|
|
167
214
|
*/
|
|
168
215
|
username?: string | null;
|
|
169
216
|
}
|
|
@@ -184,6 +231,72 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
184
231
|
*/
|
|
185
232
|
fileName?: string | null;
|
|
186
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* The file upload of a specific data source, that is, the result of the retrieval of the data source at a certain timestamp computed asynchronously when the data source processing is finished. Only applicable to file data sources.
|
|
236
|
+
*/
|
|
237
|
+
export interface Schema$FileUpload {
|
|
238
|
+
/**
|
|
239
|
+
* Output only. The data source id.
|
|
240
|
+
*/
|
|
241
|
+
dataSourceId?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
* Output only. The list of issues occurring in the data source.
|
|
244
|
+
*/
|
|
245
|
+
issues?: Schema$Issue[];
|
|
246
|
+
/**
|
|
247
|
+
* Output only. The number of items in the data source that were created.
|
|
248
|
+
*/
|
|
249
|
+
itemsCreated?: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* Output only. The number of items in the data source that were processed.
|
|
252
|
+
*/
|
|
253
|
+
itemsTotal?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Output only. The number of items in the data source that were updated.
|
|
256
|
+
*/
|
|
257
|
+
itemsUpdated?: string | null;
|
|
258
|
+
/**
|
|
259
|
+
* Identifier. The name of the data source file upload. Format: `{datasource.name=accounts/{account\}/dataSources/{datasource\}/fileUploads/{fileupload\}\}`
|
|
260
|
+
*/
|
|
261
|
+
name?: string | null;
|
|
262
|
+
/**
|
|
263
|
+
* Output only. The processing state of the data source.
|
|
264
|
+
*/
|
|
265
|
+
processingState?: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Output only. The date at which the file of the data source was uploaded.
|
|
268
|
+
*/
|
|
269
|
+
uploadTime?: string | null;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* An error occurring in the data source, like "invalid price".
|
|
273
|
+
*/
|
|
274
|
+
export interface Schema$Issue {
|
|
275
|
+
/**
|
|
276
|
+
* Output only. The code of the error, for example, "validation/invalid_value". Returns "?" if the code is unknown.
|
|
277
|
+
*/
|
|
278
|
+
code?: string | null;
|
|
279
|
+
/**
|
|
280
|
+
* Output only. The number of occurrences of the error in the file upload.
|
|
281
|
+
*/
|
|
282
|
+
count?: string | null;
|
|
283
|
+
/**
|
|
284
|
+
* Output only. The error description, for example, "Your data source contains items which have too many attributes, or are too big. These items will be dropped".
|
|
285
|
+
*/
|
|
286
|
+
description?: string | null;
|
|
287
|
+
/**
|
|
288
|
+
* Output only. Link to the documentation explaining the issue in more details, if available.
|
|
289
|
+
*/
|
|
290
|
+
documentationUri?: string | null;
|
|
291
|
+
/**
|
|
292
|
+
* Output only. The severity of the issue.
|
|
293
|
+
*/
|
|
294
|
+
severity?: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Output only. The title of the issue, for example, "Item too big".
|
|
297
|
+
*/
|
|
298
|
+
title?: string | null;
|
|
299
|
+
}
|
|
187
300
|
/**
|
|
188
301
|
* Response message for the ListDataSources method.
|
|
189
302
|
*/
|
|
@@ -210,12 +323,17 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
210
323
|
*/
|
|
211
324
|
feedLabel?: string | null;
|
|
212
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* The merchant review data source.
|
|
328
|
+
*/
|
|
329
|
+
export interface Schema$MerchantReviewDataSource {
|
|
330
|
+
}
|
|
213
331
|
/**
|
|
214
332
|
* The primary data source for local and online products.
|
|
215
333
|
*/
|
|
216
334
|
export interface Schema$PrimaryProductDataSource {
|
|
217
335
|
/**
|
|
218
|
-
*
|
|
336
|
+
* Optional. Immutable. Specifies the type of data source channel.
|
|
219
337
|
*/
|
|
220
338
|
channel?: string | null;
|
|
221
339
|
/**
|
|
@@ -226,6 +344,14 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
226
344
|
* Optional. The countries where the items may be displayed. Represented as a [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml).
|
|
227
345
|
*/
|
|
228
346
|
countries?: string[] | null;
|
|
347
|
+
/**
|
|
348
|
+
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
|
|
349
|
+
*/
|
|
350
|
+
defaultRule?: Schema$DefaultRule;
|
|
351
|
+
/**
|
|
352
|
+
* Optional. A list of destinations describing where products of the data source can be shown. When retrieving the data source, the list contains all the destinations that can be used for the data source, including the ones that are disabled for the data source but enabled for the account. Only destinations that are enabled on the account, for example through program participation, can be enabled on the data source. If unset, during creation, the destinations will be inherited based on the account level program participation. If set, during creation or update, the data source will be set only for the specified destinations. Updating this field requires at least one destination.
|
|
353
|
+
*/
|
|
354
|
+
destinations?: Schema$Destination[];
|
|
229
355
|
/**
|
|
230
356
|
* Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction.
|
|
231
357
|
*/
|
|
@@ -236,22 +362,27 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
236
362
|
*/
|
|
237
363
|
export interface Schema$ProductChange {
|
|
238
364
|
/**
|
|
239
|
-
* The new value of the changed resource or attribute.
|
|
365
|
+
* 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`, ``)
|
|
240
366
|
*/
|
|
241
367
|
newValue?: string | null;
|
|
242
368
|
/**
|
|
243
|
-
* The old value of the changed resource or attribute.
|
|
369
|
+
* 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`, ``)
|
|
244
370
|
*/
|
|
245
371
|
oldValue?: string | null;
|
|
246
372
|
/**
|
|
247
|
-
* Countries that have the change (if applicable)
|
|
373
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
248
374
|
*/
|
|
249
375
|
regionCode?: string | null;
|
|
250
376
|
/**
|
|
251
|
-
* Reporting contexts that have the change (if applicable)
|
|
377
|
+
* 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)
|
|
252
378
|
*/
|
|
253
379
|
reportingContext?: string | null;
|
|
254
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* The product review data source.
|
|
383
|
+
*/
|
|
384
|
+
export interface Schema$ProductReviewDataSource {
|
|
385
|
+
}
|
|
255
386
|
/**
|
|
256
387
|
* The message that the merchant will receive to notify about product status change event
|
|
257
388
|
*/
|
|
@@ -268,12 +399,20 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
268
399
|
* A message to describe the change that happened to the product
|
|
269
400
|
*/
|
|
270
401
|
changes?: Schema$ProductChange[];
|
|
402
|
+
/**
|
|
403
|
+
* 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.
|
|
404
|
+
*/
|
|
405
|
+
eventTime?: string | null;
|
|
406
|
+
/**
|
|
407
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
408
|
+
*/
|
|
409
|
+
expirationTime?: string | null;
|
|
271
410
|
/**
|
|
272
411
|
* 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\}`
|
|
273
412
|
*/
|
|
274
413
|
managingAccount?: string | null;
|
|
275
414
|
/**
|
|
276
|
-
* The product name. Format: `
|
|
415
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
277
416
|
*/
|
|
278
417
|
resource?: string | null;
|
|
279
418
|
/**
|
|
@@ -312,7 +451,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
312
451
|
feedLabel?: string | null;
|
|
313
452
|
}
|
|
314
453
|
/**
|
|
315
|
-
* The supplemental data source for local and online products.
|
|
454
|
+
* The supplemental data source for local and online products. After creation, you should make sure to link the supplemental product data source into one or more primary product data sources.
|
|
316
455
|
*/
|
|
317
456
|
export interface Schema$SupplementalProductDataSource {
|
|
318
457
|
/**
|
|
@@ -320,28 +459,32 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
320
459
|
*/
|
|
321
460
|
contentLanguage?: string | null;
|
|
322
461
|
/**
|
|
323
|
-
* Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.
|
|
462
|
+
* Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. The fields must be unset for data sources without file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.
|
|
324
463
|
*/
|
|
325
464
|
feedLabel?: string | null;
|
|
465
|
+
/**
|
|
466
|
+
* Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.
|
|
467
|
+
*/
|
|
468
|
+
referencingPrimaryDataSources?: Schema$DataSourceReference[];
|
|
326
469
|
}
|
|
327
470
|
/**
|
|
328
471
|
* Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
|
|
329
472
|
*/
|
|
330
473
|
export interface Schema$TimeOfDay {
|
|
331
474
|
/**
|
|
332
|
-
* Hours of day in 24 hour format.
|
|
475
|
+
* Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
|
|
333
476
|
*/
|
|
334
477
|
hours?: number | null;
|
|
335
478
|
/**
|
|
336
|
-
* Minutes of hour
|
|
479
|
+
* Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
|
|
337
480
|
*/
|
|
338
481
|
minutes?: number | null;
|
|
339
482
|
/**
|
|
340
|
-
* Fractions of seconds in nanoseconds. Must be
|
|
483
|
+
* Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
|
|
341
484
|
*/
|
|
342
485
|
nanos?: number | null;
|
|
343
486
|
/**
|
|
344
|
-
* Seconds of
|
|
487
|
+
* Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
|
|
345
488
|
*/
|
|
346
489
|
seconds?: number | null;
|
|
347
490
|
}
|
|
@@ -352,6 +495,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
352
495
|
}
|
|
353
496
|
export class Resource$Accounts$Datasources {
|
|
354
497
|
context: APIRequestContext;
|
|
498
|
+
fileUploads: Resource$Accounts$Datasources$Fileuploads;
|
|
355
499
|
constructor(context: APIRequestContext);
|
|
356
500
|
/**
|
|
357
501
|
* Creates the new data source configuration for the given account.
|
|
@@ -498,5 +642,29 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
498
642
|
*/
|
|
499
643
|
requestBody?: Schema$DataSource;
|
|
500
644
|
}
|
|
645
|
+
export class Resource$Accounts$Datasources$Fileuploads {
|
|
646
|
+
context: APIRequestContext;
|
|
647
|
+
constructor(context: APIRequestContext);
|
|
648
|
+
/**
|
|
649
|
+
* Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.
|
|
650
|
+
*
|
|
651
|
+
* @param params - Parameters for request
|
|
652
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
653
|
+
* @param callback - Optional callback that handles the response.
|
|
654
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
655
|
+
*/
|
|
656
|
+
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
657
|
+
get(params?: Params$Resource$Accounts$Datasources$Fileuploads$Get, options?: MethodOptions): GaxiosPromise<Schema$FileUpload>;
|
|
658
|
+
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
659
|
+
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, options: MethodOptions | BodyResponseCallback<Schema$FileUpload>, callback: BodyResponseCallback<Schema$FileUpload>): void;
|
|
660
|
+
get(params: Params$Resource$Accounts$Datasources$Fileuploads$Get, callback: BodyResponseCallback<Schema$FileUpload>): void;
|
|
661
|
+
get(callback: BodyResponseCallback<Schema$FileUpload>): void;
|
|
662
|
+
}
|
|
663
|
+
export interface Params$Resource$Accounts$Datasources$Fileuploads$Get extends StandardParameters {
|
|
664
|
+
/**
|
|
665
|
+
* Required. The name of the data source file upload to retrieve. Format: `accounts/{account\}/dataSources/{datasource\}/fileUploads/latest`
|
|
666
|
+
*/
|
|
667
|
+
name?: string;
|
|
668
|
+
}
|
|
501
669
|
export {};
|
|
502
670
|
}
|
|
@@ -52,6 +52,7 @@ var merchantapi_datasources_v1beta;
|
|
|
52
52
|
class Resource$Accounts$Datasources {
|
|
53
53
|
constructor(context) {
|
|
54
54
|
this.context = context;
|
|
55
|
+
this.fileUploads = new Resource$Accounts$Datasources$Fileuploads(this.context);
|
|
55
56
|
}
|
|
56
57
|
create(paramsOrCallback, optionsOrCallback, callback) {
|
|
57
58
|
let params = (paramsOrCallback ||
|
|
@@ -247,5 +248,43 @@ var merchantapi_datasources_v1beta;
|
|
|
247
248
|
}
|
|
248
249
|
}
|
|
249
250
|
merchantapi_datasources_v1beta.Resource$Accounts$Datasources = Resource$Accounts$Datasources;
|
|
251
|
+
class Resource$Accounts$Datasources$Fileuploads {
|
|
252
|
+
constructor(context) {
|
|
253
|
+
this.context = context;
|
|
254
|
+
}
|
|
255
|
+
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
256
|
+
let params = (paramsOrCallback ||
|
|
257
|
+
{});
|
|
258
|
+
let options = (optionsOrCallback || {});
|
|
259
|
+
if (typeof paramsOrCallback === 'function') {
|
|
260
|
+
callback = paramsOrCallback;
|
|
261
|
+
params = {};
|
|
262
|
+
options = {};
|
|
263
|
+
}
|
|
264
|
+
if (typeof optionsOrCallback === 'function') {
|
|
265
|
+
callback = optionsOrCallback;
|
|
266
|
+
options = {};
|
|
267
|
+
}
|
|
268
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
269
|
+
const parameters = {
|
|
270
|
+
options: Object.assign({
|
|
271
|
+
url: (rootUrl + '/datasources/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
272
|
+
method: 'GET',
|
|
273
|
+
apiVersion: '',
|
|
274
|
+
}, options),
|
|
275
|
+
params,
|
|
276
|
+
requiredParams: ['name'],
|
|
277
|
+
pathParams: ['name'],
|
|
278
|
+
context: this.context,
|
|
279
|
+
};
|
|
280
|
+
if (callback) {
|
|
281
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
merchantapi_datasources_v1beta.Resource$Accounts$Datasources$Fileuploads = Resource$Accounts$Datasources$Fileuploads;
|
|
250
289
|
})(merchantapi_datasources_v1beta = exports.merchantapi_datasources_v1beta || (exports.merchantapi_datasources_v1beta = {}));
|
|
251
290
|
//# sourceMappingURL=datasources_v1beta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasources_v1beta.js","sourceRoot":"","sources":["../datasources_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,8BAA8B,
|
|
1
|
+
{"version":3,"file":"datasources_v1beta.js","sourceRoot":"","sources":["../datasources_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,8BAA8B,CA0sC9C;AA1sCD,WAAiB,8BAA8B;IAgE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aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;YACzE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,6BAA6B,CAAC,CAAC,OAAO,CACpD,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;oBACb,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,MAAM,CAAC;gBACxB,UAAU,EAAE,CAAC,MAAM,CAAC;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAoB,UAAU,CAAC,CAAC;aACxD;QACH,CAAC;KACF;IA7FY,wEAAyC,4CA6FrD,CAAA;AASH,CAAC,EA1sCgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QA0sC9C"}
|
package/build/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { merchantapi_products_v1beta } from './products_v1beta';
|
|
|
10
10
|
import { merchantapi_promotions_v1beta } from './promotions_v1beta';
|
|
11
11
|
import { merchantapi_quota_v1beta } from './quota_v1beta';
|
|
12
12
|
import { merchantapi_reports_v1beta } from './reports_v1beta';
|
|
13
|
+
import { merchantapi_reviews_v1beta } from './reviews_v1beta';
|
|
13
14
|
export declare const VERSIONS: {
|
|
14
15
|
accounts_v1beta: typeof merchantapi_accounts_v1beta.Merchantapi;
|
|
15
16
|
conversions_v1beta: typeof merchantapi_conversions_v1beta.Merchantapi;
|
|
@@ -21,6 +22,7 @@ export declare const VERSIONS: {
|
|
|
21
22
|
promotions_v1beta: typeof merchantapi_promotions_v1beta.Merchantapi;
|
|
22
23
|
quota_v1beta: typeof merchantapi_quota_v1beta.Merchantapi;
|
|
23
24
|
reports_v1beta: typeof merchantapi_reports_v1beta.Merchantapi;
|
|
25
|
+
reviews_v1beta: typeof merchantapi_reviews_v1beta.Merchantapi;
|
|
24
26
|
};
|
|
25
27
|
export declare function merchantapi(version: 'accounts_v1beta'): merchantapi_accounts_v1beta.Merchantapi;
|
|
26
28
|
export declare function merchantapi(options: merchantapi_accounts_v1beta.Options): merchantapi_accounts_v1beta.Merchantapi;
|
|
@@ -42,6 +44,8 @@ export declare function merchantapi(version: 'quota_v1beta'): merchantapi_quota_
|
|
|
42
44
|
export declare function merchantapi(options: merchantapi_quota_v1beta.Options): merchantapi_quota_v1beta.Merchantapi;
|
|
43
45
|
export declare function merchantapi(version: 'reports_v1beta'): merchantapi_reports_v1beta.Merchantapi;
|
|
44
46
|
export declare function merchantapi(options: merchantapi_reports_v1beta.Options): merchantapi_reports_v1beta.Merchantapi;
|
|
47
|
+
export declare function merchantapi(version: 'reviews_v1beta'): merchantapi_reviews_v1beta.Merchantapi;
|
|
48
|
+
export declare function merchantapi(options: merchantapi_reviews_v1beta.Options): merchantapi_reviews_v1beta.Merchantapi;
|
|
45
49
|
declare const auth: AuthPlus;
|
|
46
50
|
export { auth };
|
|
47
51
|
export { merchantapi_accounts_v1beta };
|
|
@@ -54,4 +58,5 @@ export { merchantapi_products_v1beta };
|
|
|
54
58
|
export { merchantapi_promotions_v1beta };
|
|
55
59
|
export { merchantapi_quota_v1beta };
|
|
56
60
|
export { merchantapi_reports_v1beta };
|
|
61
|
+
export { merchantapi_reviews_v1beta };
|
|
57
62
|
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
package/build/index.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AuthPlus = exports.merchantapi_reports_v1beta = exports.merchantapi_quota_v1beta = exports.merchantapi_promotions_v1beta = exports.merchantapi_products_v1beta = exports.merchantapi_notifications_v1beta = exports.merchantapi_lfp_v1beta = exports.merchantapi_inventories_v1beta = exports.merchantapi_datasources_v1beta = exports.merchantapi_conversions_v1beta = exports.merchantapi_accounts_v1beta = exports.auth = exports.merchantapi = exports.VERSIONS = void 0;
|
|
15
|
+
exports.AuthPlus = exports.merchantapi_reviews_v1beta = exports.merchantapi_reports_v1beta = exports.merchantapi_quota_v1beta = exports.merchantapi_promotions_v1beta = exports.merchantapi_products_v1beta = exports.merchantapi_notifications_v1beta = exports.merchantapi_lfp_v1beta = exports.merchantapi_inventories_v1beta = exports.merchantapi_datasources_v1beta = exports.merchantapi_conversions_v1beta = exports.merchantapi_accounts_v1beta = exports.auth = exports.merchantapi = exports.VERSIONS = void 0;
|
|
16
16
|
/*! THIS FILE IS AUTO-GENERATED */
|
|
17
17
|
const googleapis_common_1 = require("googleapis-common");
|
|
18
18
|
const accounts_v1beta_1 = require("./accounts_v1beta");
|
|
@@ -35,6 +35,8 @@ const quota_v1beta_1 = require("./quota_v1beta");
|
|
|
35
35
|
Object.defineProperty(exports, "merchantapi_quota_v1beta", { enumerable: true, get: function () { return quota_v1beta_1.merchantapi_quota_v1beta; } });
|
|
36
36
|
const reports_v1beta_1 = require("./reports_v1beta");
|
|
37
37
|
Object.defineProperty(exports, "merchantapi_reports_v1beta", { enumerable: true, get: function () { return reports_v1beta_1.merchantapi_reports_v1beta; } });
|
|
38
|
+
const reviews_v1beta_1 = require("./reviews_v1beta");
|
|
39
|
+
Object.defineProperty(exports, "merchantapi_reviews_v1beta", { enumerable: true, get: function () { return reviews_v1beta_1.merchantapi_reviews_v1beta; } });
|
|
38
40
|
exports.VERSIONS = {
|
|
39
41
|
accounts_v1beta: accounts_v1beta_1.merchantapi_accounts_v1beta.Merchantapi,
|
|
40
42
|
conversions_v1beta: conversions_v1beta_1.merchantapi_conversions_v1beta.Merchantapi,
|
|
@@ -46,6 +48,7 @@ exports.VERSIONS = {
|
|
|
46
48
|
promotions_v1beta: promotions_v1beta_1.merchantapi_promotions_v1beta.Merchantapi,
|
|
47
49
|
quota_v1beta: quota_v1beta_1.merchantapi_quota_v1beta.Merchantapi,
|
|
48
50
|
reports_v1beta: reports_v1beta_1.merchantapi_reports_v1beta.Merchantapi,
|
|
51
|
+
reviews_v1beta: reviews_v1beta_1.merchantapi_reviews_v1beta.Merchantapi,
|
|
49
52
|
};
|
|
50
53
|
function merchantapi(versionOrOptions) {
|
|
51
54
|
return (0, googleapis_common_1.getAPI)('merchantapi', versionOrOptions, exports.VERSIONS, this);
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,uDAA8D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,uDAA8D;AAwItD,4GAxIA,6CAA2B,OAwIA;AAvInC,6DAAoE;AAwI5D,+GAxIA,mDAA8B,OAwIA;AAvItC,6DAAoE;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/
|
|
204
204
|
export interface Schema$ProductChange {
|
|
205
205
|
/**
|
|
206
|
-
* The new value of the changed resource or attribute.
|
|
206
|
+
* 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`, ``)
|
|
207
207
|
*/
|
|
208
208
|
newValue?: string | null;
|
|
209
209
|
/**
|
|
210
|
-
* The old value of the changed resource or attribute.
|
|
210
|
+
* 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`, ``)
|
|
211
211
|
*/
|
|
212
212
|
oldValue?: string | null;
|
|
213
213
|
/**
|
|
214
|
-
* Countries that have the change (if applicable)
|
|
214
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
215
215
|
*/
|
|
216
216
|
regionCode?: string | null;
|
|
217
217
|
/**
|
|
218
|
-
* Reporting contexts that have the change (if applicable)
|
|
218
|
+
* 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)
|
|
219
219
|
*/
|
|
220
220
|
reportingContext?: string | null;
|
|
221
221
|
}
|
|
@@ -235,12 +235,20 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
235
235
|
* A message to describe the change that happened to the product
|
|
236
236
|
*/
|
|
237
237
|
changes?: Schema$ProductChange[];
|
|
238
|
+
/**
|
|
239
|
+
* 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.
|
|
240
|
+
*/
|
|
241
|
+
eventTime?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
244
|
+
*/
|
|
245
|
+
expirationTime?: string | null;
|
|
238
246
|
/**
|
|
239
247
|
* 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\}`
|
|
240
248
|
*/
|
|
241
249
|
managingAccount?: string | null;
|
|
242
250
|
/**
|
|
243
|
-
* The product name. Format: `
|
|
251
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
244
252
|
*/
|
|
245
253
|
resource?: string | null;
|
|
246
254
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventories_v1beta.js","sourceRoot":"","sources":["../inventories_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,8BAA8B,
|
|
1
|
+
{"version":3,"file":"inventories_v1beta.js","sourceRoot":"","sources":["../inventories_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,8BAA8B,CA48B9C;AA58BD,WAAiB,8BAA8B;IAgE7C;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QAItB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC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O,GAAG,CAAC,iBAAiB,IAAI,EAAE,CAAkB,CAAC;YAEzD,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM;oBACJ,EAAgE,CAAC;gBACnE,OAAO,GAAG,EAAE,CAAC;aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;YACzE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CACH,OAAO,GAAG,mDAAmD,CAC9D,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC/B,MAAM,EAAE,KAAK;oBACb,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,QAAQ,CAAC;gBAC1B,UAAU,EAAE,CAAC,QAAQ,CAAC;gBACtB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IA3RY,6EAA8C,iDA2R1D,CAAA;AAoCH,CAAC,EA58BgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QA48B9C"}
|
package/build/lfp_v1beta.d.ts
CHANGED
|
@@ -270,19 +270,19 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
270
270
|
*/
|
|
271
271
|
export interface Schema$ProductChange {
|
|
272
272
|
/**
|
|
273
|
-
* The new value of the changed resource or attribute.
|
|
273
|
+
* 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`, ``)
|
|
274
274
|
*/
|
|
275
275
|
newValue?: string | null;
|
|
276
276
|
/**
|
|
277
|
-
* The old value of the changed resource or attribute.
|
|
277
|
+
* 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`, ``)
|
|
278
278
|
*/
|
|
279
279
|
oldValue?: string | null;
|
|
280
280
|
/**
|
|
281
|
-
* Countries that have the change (if applicable)
|
|
281
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
282
282
|
*/
|
|
283
283
|
regionCode?: string | null;
|
|
284
284
|
/**
|
|
285
|
-
* Reporting contexts that have the change (if applicable)
|
|
285
|
+
* 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)
|
|
286
286
|
*/
|
|
287
287
|
reportingContext?: string | null;
|
|
288
288
|
}
|
|
@@ -302,12 +302,20 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
302
302
|
* A message to describe the change that happened to the product
|
|
303
303
|
*/
|
|
304
304
|
changes?: Schema$ProductChange[];
|
|
305
|
+
/**
|
|
306
|
+
* 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.
|
|
307
|
+
*/
|
|
308
|
+
eventTime?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
311
|
+
*/
|
|
312
|
+
expirationTime?: string | null;
|
|
305
313
|
/**
|
|
306
314
|
* 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\}`
|
|
307
315
|
*/
|
|
308
316
|
managingAccount?: string | null;
|
|
309
317
|
/**
|
|
310
|
-
* The product name. Format: `
|
|
318
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
311
319
|
*/
|
|
312
320
|
resource?: string | null;
|
|
313
321
|
/**
|