@googleapis/merchantapi 10.1.0 → 12.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.
Files changed (101) hide show
  1. package/CHANGELOG.md +232 -0
  2. package/accounts_v1.ts +13566 -0
  3. package/accounts_v1beta.ts +7 -7
  4. package/build/accounts_v1.d.ts +7784 -0
  5. package/build/accounts_v1.js +2504 -0
  6. package/build/accounts_v1.js.map +1 -0
  7. package/build/accounts_v1beta.d.ts +7 -8
  8. package/build/accounts_v1beta.js +46 -1
  9. package/build/accounts_v1beta.js.map +1 -1
  10. package/build/conversions_v1.d.ts +748 -0
  11. package/build/conversions_v1.js +256 -0
  12. package/build/conversions_v1.js.map +1 -0
  13. package/build/conversions_v1beta.d.ts +0 -1
  14. package/build/conversions_v1beta.js +6 -1
  15. package/build/conversions_v1beta.js.map +1 -1
  16. package/build/datasources_v1.d.ts +1075 -0
  17. package/build/datasources_v1.js +297 -0
  18. package/build/datasources_v1.js.map +1 -0
  19. package/build/datasources_v1beta.d.ts +0 -1
  20. package/build/datasources_v1beta.js +8 -1
  21. package/build/datasources_v1beta.js.map +1 -1
  22. package/build/index.d.ts +60 -0
  23. package/build/index.js +38 -2
  24. package/build/index.js.map +1 -1
  25. package/build/inventories_v1.d.ts +766 -0
  26. package/build/inventories_v1.js +280 -0
  27. package/build/inventories_v1.js.map +1 -0
  28. package/build/inventories_v1beta.d.ts +6 -7
  29. package/build/inventories_v1beta.js +10 -1
  30. package/build/inventories_v1beta.js.map +1 -1
  31. package/build/issueresolution_v1.d.ts +1026 -0
  32. package/build/issueresolution_v1.js +202 -0
  33. package/build/issueresolution_v1.js.map +1 -0
  34. package/build/issueresolution_v1beta.d.ts +0 -1
  35. package/build/issueresolution_v1beta.js +8 -1
  36. package/build/issueresolution_v1beta.js.map +1 -1
  37. package/build/lfp_v1.d.ts +1047 -0
  38. package/build/lfp_v1.js +315 -0
  39. package/build/lfp_v1.js.map +1 -0
  40. package/build/lfp_v1beta.d.ts +1 -2
  41. package/build/lfp_v1beta.js +12 -1
  42. package/build/lfp_v1beta.js.map +1 -1
  43. package/build/notifications_v1.d.ts +579 -0
  44. package/build/notifications_v1.js +227 -0
  45. package/build/notifications_v1.js.map +1 -0
  46. package/build/notifications_v1beta.d.ts +0 -1
  47. package/build/notifications_v1beta.js +6 -1
  48. package/build/notifications_v1beta.js.map +1 -1
  49. package/build/ordertracking_v1.d.ts +458 -0
  50. package/build/ordertracking_v1.js +96 -0
  51. package/build/ordertracking_v1.js.map +1 -0
  52. package/build/ordertracking_v1beta.d.ts +6 -3
  53. package/build/ordertracking_v1beta.js +8 -3
  54. package/build/ordertracking_v1beta.js.map +1 -1
  55. package/build/products_v1.d.ts +1555 -0
  56. package/build/products_v1.js +233 -0
  57. package/build/products_v1.js.map +1 -0
  58. package/build/products_v1beta.d.ts +13 -14
  59. package/build/products_v1beta.js +8 -1
  60. package/build/products_v1beta.js.map +1 -1
  61. package/build/promotions_v1.d.ts +698 -0
  62. package/build/promotions_v1.js +160 -0
  63. package/build/promotions_v1.js.map +1 -0
  64. package/build/promotions_v1beta.d.ts +5 -6
  65. package/build/promotions_v1beta.js +6 -1
  66. package/build/promotions_v1beta.js.map +1 -1
  67. package/build/quota_v1.d.ts +283 -0
  68. package/build/quota_v1.js +96 -0
  69. package/build/quota_v1.js.map +1 -0
  70. package/build/quota_v1beta.d.ts +0 -1
  71. package/build/quota_v1beta.js +6 -1
  72. package/build/quota_v1beta.js.map +1 -1
  73. package/build/reports_v1.d.ts +1065 -0
  74. package/build/reports_v1.js +96 -0
  75. package/build/reports_v1.js.map +1 -0
  76. package/build/reports_v1beta.d.ts +1 -2
  77. package/build/reports_v1beta.js +6 -1
  78. package/build/reports_v1beta.js.map +1 -1
  79. package/build/reviews_v1beta.d.ts +0 -1
  80. package/build/reviews_v1beta.js +8 -1
  81. package/build/reviews_v1beta.js.map +1 -1
  82. package/build/tsconfig.tsbuildinfo +1 -0
  83. package/conversions_v1.ts +1284 -0
  84. package/datasources_v1.ts +1690 -0
  85. package/index.ts +142 -0
  86. package/inventories_v1.ts +1321 -0
  87. package/inventories_v1beta.ts +6 -6
  88. package/issueresolution_v1.ts +1425 -0
  89. package/lfp_v1.ts +1666 -0
  90. package/lfp_v1beta.ts +1 -1
  91. package/notifications_v1.ts +1052 -0
  92. package/ordertracking_v1.ts +599 -0
  93. package/ordertracking_v1beta.ts +8 -4
  94. package/package.json +4 -4
  95. package/products_v1.ts +2013 -0
  96. package/products_v1beta.ts +13 -13
  97. package/promotions_v1.ts +995 -0
  98. package/promotions_v1beta.ts +5 -5
  99. package/quota_v1.ts +424 -0
  100. package/reports_v1.ts +1205 -0
  101. package/reports_v1beta.ts +1 -1
package/lfp_v1.ts ADDED
@@ -0,0 +1,1666 @@
1
+ // Copyright 2020 Google LLC
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+
14
+ /* eslint-disable @typescript-eslint/no-explicit-any */
15
+ /* eslint-disable @typescript-eslint/no-unused-vars */
16
+ /* eslint-disable @typescript-eslint/no-empty-interface */
17
+ /* eslint-disable @typescript-eslint/no-namespace */
18
+ /* eslint-disable no-irregular-whitespace */
19
+
20
+ import {
21
+ OAuth2Client,
22
+ JWT,
23
+ Compute,
24
+ UserRefreshClient,
25
+ BaseExternalAccountClient,
26
+ GaxiosResponseWithHTTP2,
27
+ GoogleConfigurable,
28
+ createAPIRequest,
29
+ MethodOptions,
30
+ StreamMethodOptions,
31
+ GlobalOptions,
32
+ GoogleAuth,
33
+ BodyResponseCallback,
34
+ APIRequestContext,
35
+ } from 'googleapis-common';
36
+ import {Readable} from 'stream';
37
+
38
+ export namespace merchantapi_lfp_v1 {
39
+ export interface Options extends GlobalOptions {
40
+ version: 'lfp_v1';
41
+ }
42
+
43
+ interface StandardParameters {
44
+ /**
45
+ * Auth client or API Key for the request
46
+ */
47
+ auth?:
48
+ | string
49
+ | OAuth2Client
50
+ | JWT
51
+ | Compute
52
+ | UserRefreshClient
53
+ | BaseExternalAccountClient
54
+ | GoogleAuth;
55
+
56
+ /**
57
+ * V1 error format.
58
+ */
59
+ '$.xgafv'?: string;
60
+ /**
61
+ * OAuth access token.
62
+ */
63
+ access_token?: string;
64
+ /**
65
+ * Data format for response.
66
+ */
67
+ alt?: string;
68
+ /**
69
+ * JSONP
70
+ */
71
+ callback?: string;
72
+ /**
73
+ * Selector specifying which fields to include in a partial response.
74
+ */
75
+ fields?: string;
76
+ /**
77
+ * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
78
+ */
79
+ key?: string;
80
+ /**
81
+ * OAuth 2.0 token for the current user.
82
+ */
83
+ oauth_token?: string;
84
+ /**
85
+ * Returns response with indentations and line breaks.
86
+ */
87
+ prettyPrint?: boolean;
88
+ /**
89
+ * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
90
+ */
91
+ quotaUser?: string;
92
+ /**
93
+ * Legacy upload protocol for media (e.g. "media", "multipart").
94
+ */
95
+ uploadType?: string;
96
+ /**
97
+ * Upload protocol for media (e.g. "raw", "multipart").
98
+ */
99
+ upload_protocol?: string;
100
+ }
101
+
102
+ /**
103
+ * Merchant API
104
+ *
105
+ * Programmatically manage your Merchant Center Accounts.
106
+ *
107
+ * @example
108
+ * ```js
109
+ * const {google} = require('googleapis');
110
+ * const merchantapi = google.merchantapi('lfp_v1');
111
+ * ```
112
+ */
113
+ export class Merchantapi {
114
+ context: APIRequestContext;
115
+ accounts: Resource$Accounts;
116
+
117
+ constructor(options: GlobalOptions, google?: GoogleConfigurable) {
118
+ this.context = {
119
+ _options: options || {},
120
+ google,
121
+ };
122
+
123
+ this.accounts = new Resource$Accounts(this.context);
124
+ }
125
+ }
126
+
127
+ /**
128
+ * Country-specific settings for the merchant.
129
+ */
130
+ export interface Schema$CountrySettings {
131
+ /**
132
+ * True if this merchant has enabled free local listings in MC.
133
+ */
134
+ freeLocalListingsEnabled?: boolean | null;
135
+ /**
136
+ * Output only. The verification state of this merchant's instock serving feature.
137
+ */
138
+ instockServingVerificationState?: string | null;
139
+ /**
140
+ * Output only. The verification state of this merchant's inventory check.
141
+ */
142
+ inventoryVerificationState?: string | null;
143
+ /**
144
+ * True if this merchant has enabled local inventory ads in MC.
145
+ */
146
+ localInventoryAdsEnabled?: boolean | null;
147
+ /**
148
+ * Output only. The verification state of this merchant's pickup serving feature.
149
+ */
150
+ pickupServingVerificationState?: string | null;
151
+ /**
152
+ * Output only. The product page type selected by this merchant.
153
+ */
154
+ productPageType?: string | null;
155
+ /**
156
+ * Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country for which these settings are defined.
157
+ */
158
+ regionCode?: string | null;
159
+ }
160
+ /**
161
+ * 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); \}
162
+ */
163
+ export interface Schema$Empty {}
164
+ /**
165
+ * The inventory statistics for a merchant.
166
+ */
167
+ export interface Schema$InventoryStats {
168
+ /**
169
+ * Number of entries (understanding entry as a pair of product and store) that were built based on provided inventories/sales and submitted to Google.
170
+ */
171
+ submittedEntries?: string | null;
172
+ /**
173
+ * Number of submitted in stock entries.
174
+ */
175
+ submittedInStockEntries?: string | null;
176
+ /**
177
+ * Number of products from provided inventories/sales that were created from matches to existing online products provided by the merchant or to the Google catalog.
178
+ */
179
+ submittedProducts?: string | null;
180
+ /**
181
+ * Number of entries that were built based on provided inventories/sales and couldn't be submitted to Google due to errors like missing product.
182
+ */
183
+ unsubmittedEntries?: string | null;
184
+ }
185
+ /**
186
+ * Local Inventory for the merchant.
187
+ */
188
+ export interface Schema$LfpInventory {
189
+ /**
190
+ * Required. Availability of the product at this store. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342)
191
+ */
192
+ availability?: string | null;
193
+ /**
194
+ * Optional. The time when the inventory is collected. If not set, it will be set to the time when the inventory is submitted.
195
+ */
196
+ collectionTime?: string | null;
197
+ /**
198
+ * Required. The two-letter ISO 639-1 language code for the item.
199
+ */
200
+ contentLanguage?: string | null;
201
+ /**
202
+ * Optional. The [feed label](https://developers.google.com/shopping-content/guides/products/feed-labels) for the product. If this is not set, it will default to `regionCode`.
203
+ */
204
+ feedLabel?: string | null;
205
+ /**
206
+ * Optional. The Global Trade Item Number of the product.
207
+ */
208
+ gtin?: string | null;
209
+ /**
210
+ * Output only. Identifier. The name for the `LfpInventory` resource. Format: `accounts/{account\}/lfpInventories/{target_merchant\}~{store_code\}~{offer\}`
211
+ */
212
+ name?: string | null;
213
+ /**
214
+ * Required. Immutable. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product. **Note**: if the merchant sells the same product new and used, they should have different IDs.
215
+ */
216
+ offerId?: string | null;
217
+ /**
218
+ * Optional. Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342).
219
+ */
220
+ pickupMethod?: string | null;
221
+ /**
222
+ * Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the [local product inventory data specification](https://support.google.com/merchants/answer/3061342).
223
+ */
224
+ pickupSla?: string | null;
225
+ /**
226
+ * Optional. The current price of the product.
227
+ */
228
+ price?: Schema$Price;
229
+ /**
230
+ * Optional. Quantity of the product available at this store. Must be greater than or equal to zero.
231
+ */
232
+ quantity?: string | null;
233
+ /**
234
+ * Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country where the product is sold.
235
+ */
236
+ regionCode?: string | null;
237
+ /**
238
+ * Required. The identifier of the merchant's store. Either the store code inserted through `InsertLfpStore` or the store code in the Business Profile.
239
+ */
240
+ storeCode?: string | null;
241
+ /**
242
+ * Required. The Merchant Center ID of the merchant to submit the inventory for.
243
+ */
244
+ targetAccount?: string | null;
245
+ }
246
+ /**
247
+ * The LFP state of a merchant.
248
+ */
249
+ export interface Schema$LfpMerchantState {
250
+ /**
251
+ * Country-specific settings for the merchant.
252
+ */
253
+ countrySettings?: Schema$CountrySettings[];
254
+ /**
255
+ * The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.
256
+ */
257
+ inventoryStats?: Schema$InventoryStats;
258
+ /**
259
+ * Number of [GBPs](https://www.google.com/business/) this merchant has access to.
260
+ */
261
+ linkedGbps?: string | null;
262
+ /**
263
+ * Identifier. The name of the `LfpMerchantState` resource. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`. For example, `accounts/123456/lfpMerchantStates/567890`.
264
+ */
265
+ name?: string | null;
266
+ /**
267
+ * Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.
268
+ */
269
+ storeStates?: Schema$LfpStoreState[];
270
+ }
271
+ /**
272
+ * A sale for the merchant.
273
+ */
274
+ export interface Schema$LfpSale {
275
+ /**
276
+ * Required. The two-letter ISO 639-1 language code for the item.
277
+ */
278
+ contentLanguage?: string | null;
279
+ /**
280
+ * Optional. The [feed label](https://developers.google.com/shopping-content/guides/products/feed-labels) for the product. If this is not set, it will default to `regionCode`.
281
+ */
282
+ feedLabel?: string | null;
283
+ /**
284
+ * Required. The Global Trade Item Number of the sold product.
285
+ */
286
+ gtin?: string | null;
287
+ /**
288
+ * Output only. Identifier. The name of the `LfpSale` resource. Format: `accounts/{account\}/lfpSales/{sale\}`
289
+ */
290
+ name?: string | null;
291
+ /**
292
+ * Required. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product. **Note**: if the merchant sells the same product new and used, they should have different IDs.
293
+ */
294
+ offerId?: string | null;
295
+ /**
296
+ * Required. The unit price of the product.
297
+ */
298
+ price?: Schema$Price;
299
+ /**
300
+ * Required. The relative change of the available quantity. Negative for items returned.
301
+ */
302
+ quantity?: string | null;
303
+ /**
304
+ * Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country where the product is sold.
305
+ */
306
+ regionCode?: string | null;
307
+ /**
308
+ * Required. The timestamp for the sale.
309
+ */
310
+ saleTime?: string | null;
311
+ /**
312
+ * Required. The identifier of the merchant's store. Either a `storeCode` inserted through the API or the code of the store in the Business Profile.
313
+ */
314
+ storeCode?: string | null;
315
+ /**
316
+ * Required. The Merchant Center ID of the merchant to submit the sale for.
317
+ */
318
+ targetAccount?: string | null;
319
+ /**
320
+ * Output only. System generated globally unique ID for the `LfpSale`.
321
+ */
322
+ uid?: string | null;
323
+ }
324
+ /**
325
+ * A store for the merchant. This will be used to match to a store under the Google Business Profile of the target merchant. If a matching store can't be found, the inventories or sales submitted with the store code will not be used.
326
+ */
327
+ export interface Schema$LfpStore {
328
+ /**
329
+ * Optional. [Google My Business category id](https://support.google.com/business/answer/7249669).
330
+ */
331
+ gcidCategory?: string[] | null;
332
+ /**
333
+ * Optional. Output only. The state of matching to a Google Business Profile. See matchingStateHint for further details if no match is found.
334
+ */
335
+ matchingState?: string | null;
336
+ /**
337
+ * Optional. Output only. The hint of why the matching has failed. This is only set when matchingState=`STORE_MATCHING_STATE_FAILED`. Possible values are: - "`linked-store-not-found`": There aren't any Google Business Profile stores available for matching. - "`store-match-not-found`": The provided `LfpStore` couldn't be matched to any of the connected Google Business Profile stores. Merchant Center account is connected correctly and stores are available on Google Business Profile, but the `LfpStore` location address does not match with Google Business Profile stores' addresses. Update the `LfpStore` address or Google Business Profile store address to match correctly. - "`store-match-unverified`": The provided `LfpStore` couldn't be matched to any of the connected Google Business Profile stores, as the matched Google Business Profile store is unverified. Go through the Google Business Profile verification process to match correctly.
338
+ */
339
+ matchingStateHint?: string | null;
340
+ /**
341
+ * Output only. Identifier. The name of the `LfpStore` resource. Format: `accounts/{account\}/lfpStores/{target_merchant\}~{store_code\}`
342
+ */
343
+ name?: string | null;
344
+ /**
345
+ * Optional. The store phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format. Example: `+15556767888`
346
+ */
347
+ phoneNumber?: string | null;
348
+ /**
349
+ * Optional. The [Google Place Id](https://developers.google.com/maps/documentation/places/web-service/place-id#id-overview) of the store location.
350
+ */
351
+ placeId?: string | null;
352
+ /**
353
+ * Required. The street address of the store. Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA.
354
+ */
355
+ storeAddress?: string | null;
356
+ /**
357
+ * Required. Immutable. A store identifier that is unique for the target merchant.
358
+ */
359
+ storeCode?: string | null;
360
+ /**
361
+ * Optional. The merchant or store name.
362
+ */
363
+ storeName?: string | null;
364
+ /**
365
+ * Required. The Merchant Center id of the merchant to submit the store for.
366
+ */
367
+ targetAccount?: string | null;
368
+ /**
369
+ * Optional. The website URL for the store or merchant.
370
+ */
371
+ websiteUri?: string | null;
372
+ }
373
+ /**
374
+ * The state of a specific merchant's store.
375
+ */
376
+ export interface Schema$LfpStoreState {
377
+ /**
378
+ * Output only. The store matching state.
379
+ */
380
+ matchingState?: string | null;
381
+ /**
382
+ * The hint of why the matching has failed (only set if matching_state is FAILED).
383
+ */
384
+ matchingStateHint?: string | null;
385
+ /**
386
+ * Required. Immutable. The identifier of this store.
387
+ */
388
+ storeCode?: string | null;
389
+ }
390
+ /**
391
+ * Response message for the ListLfpStores method.
392
+ */
393
+ export interface Schema$ListLfpStoresResponse {
394
+ /**
395
+ * The stores from the specified merchant.
396
+ */
397
+ lfpStores?: Schema$LfpStore[];
398
+ /**
399
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages.
400
+ */
401
+ nextPageToken?: string | null;
402
+ }
403
+ /**
404
+ * The price represented as a number and currency.
405
+ */
406
+ export interface Schema$Price {
407
+ /**
408
+ * The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).
409
+ */
410
+ amountMicros?: string | null;
411
+ /**
412
+ * The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
413
+ */
414
+ currencyCode?: string | null;
415
+ }
416
+ /**
417
+ * The change that happened to the product including old value, new value, country code as the region code and reporting context.
418
+ */
419
+ export interface Schema$ProductChange {
420
+ /**
421
+ * 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`, ``)
422
+ */
423
+ newValue?: string | null;
424
+ /**
425
+ * 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`, ``)
426
+ */
427
+ oldValue?: string | null;
428
+ /**
429
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
430
+ */
431
+ regionCode?: string | null;
432
+ /**
433
+ * 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)
434
+ */
435
+ reportingContext?: string | null;
436
+ }
437
+ /**
438
+ * The message that the merchant will receive to notify about product status change event
439
+ */
440
+ export interface Schema$ProductStatusChangeMessage {
441
+ /**
442
+ * The target account that owns the entity that changed. Format : `accounts/{merchant_id\}`
443
+ */
444
+ account?: string | null;
445
+ /**
446
+ * The attribute in the resource that changed, in this case it will be always `Status`.
447
+ */
448
+ attribute?: string | null;
449
+ /**
450
+ * A message to describe the change that happened to the product
451
+ */
452
+ changes?: Schema$ProductChange[];
453
+ /**
454
+ * 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.
455
+ */
456
+ eventTime?: string | null;
457
+ /**
458
+ * Optional. The product expiration time. This field will not be set if the notification is sent for a product deletion event.
459
+ */
460
+ expirationTime?: string | null;
461
+ /**
462
+ * 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\}`
463
+ */
464
+ managingAccount?: string | null;
465
+ /**
466
+ * The product name. Format: `accounts/{account\}/products/{product\}`
467
+ */
468
+ resource?: string | null;
469
+ /**
470
+ * The product id.
471
+ */
472
+ resourceId?: string | null;
473
+ /**
474
+ * The resource that changed, in this case it will always be `Product`.
475
+ */
476
+ resourceType?: string | null;
477
+ }
478
+
479
+ export class Resource$Accounts {
480
+ context: APIRequestContext;
481
+ lfpInventories: Resource$Accounts$Lfpinventories;
482
+ lfpMerchantStates: Resource$Accounts$Lfpmerchantstates;
483
+ lfpSales: Resource$Accounts$Lfpsales;
484
+ lfpStores: Resource$Accounts$Lfpstores;
485
+ constructor(context: APIRequestContext) {
486
+ this.context = context;
487
+ this.lfpInventories = new Resource$Accounts$Lfpinventories(this.context);
488
+ this.lfpMerchantStates = new Resource$Accounts$Lfpmerchantstates(
489
+ this.context
490
+ );
491
+ this.lfpSales = new Resource$Accounts$Lfpsales(this.context);
492
+ this.lfpStores = new Resource$Accounts$Lfpstores(this.context);
493
+ }
494
+ }
495
+
496
+ export class Resource$Accounts$Lfpinventories {
497
+ context: APIRequestContext;
498
+ constructor(context: APIRequestContext) {
499
+ this.context = context;
500
+ }
501
+
502
+ /**
503
+ * Inserts a `LfpInventory` resource for the given target merchant account. If the resource already exists, it will be replaced. The inventory automatically expires after 30 days.
504
+ * @example
505
+ * ```js
506
+ * // Before running the sample:
507
+ * // - Enable the API at:
508
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
509
+ * // - Login into gcloud by running:
510
+ * // ```sh
511
+ * // $ gcloud auth application-default login
512
+ * // ```
513
+ * // - Install the npm module by running:
514
+ * // ```sh
515
+ * // $ npm install googleapis
516
+ * // ```
517
+ *
518
+ * const {google} = require('googleapis');
519
+ * const merchantapi = google.merchantapi('lfp_v1');
520
+ *
521
+ * async function main() {
522
+ * const auth = new google.auth.GoogleAuth({
523
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
524
+ * scopes: ['https://www.googleapis.com/auth/content'],
525
+ * });
526
+ *
527
+ * // Acquire an auth client, and bind it to all future calls
528
+ * const authClient = await auth.getClient();
529
+ * google.options({auth: authClient});
530
+ *
531
+ * // Do the magic
532
+ * const res = await merchantapi.accounts.lfpInventories.insert({
533
+ * // Required. The LFP provider account. Format: `accounts/{account\}`
534
+ * parent: 'accounts/my-account',
535
+ *
536
+ * // Request body metadata
537
+ * requestBody: {
538
+ * // request body parameters
539
+ * // {
540
+ * // "availability": "my_availability",
541
+ * // "collectionTime": "my_collectionTime",
542
+ * // "contentLanguage": "my_contentLanguage",
543
+ * // "feedLabel": "my_feedLabel",
544
+ * // "gtin": "my_gtin",
545
+ * // "name": "my_name",
546
+ * // "offerId": "my_offerId",
547
+ * // "pickupMethod": "my_pickupMethod",
548
+ * // "pickupSla": "my_pickupSla",
549
+ * // "price": {},
550
+ * // "quantity": "my_quantity",
551
+ * // "regionCode": "my_regionCode",
552
+ * // "storeCode": "my_storeCode",
553
+ * // "targetAccount": "my_targetAccount"
554
+ * // }
555
+ * },
556
+ * });
557
+ * console.log(res.data);
558
+ *
559
+ * // Example response
560
+ * // {
561
+ * // "availability": "my_availability",
562
+ * // "collectionTime": "my_collectionTime",
563
+ * // "contentLanguage": "my_contentLanguage",
564
+ * // "feedLabel": "my_feedLabel",
565
+ * // "gtin": "my_gtin",
566
+ * // "name": "my_name",
567
+ * // "offerId": "my_offerId",
568
+ * // "pickupMethod": "my_pickupMethod",
569
+ * // "pickupSla": "my_pickupSla",
570
+ * // "price": {},
571
+ * // "quantity": "my_quantity",
572
+ * // "regionCode": "my_regionCode",
573
+ * // "storeCode": "my_storeCode",
574
+ * // "targetAccount": "my_targetAccount"
575
+ * // }
576
+ * }
577
+ *
578
+ * main().catch(e => {
579
+ * console.error(e);
580
+ * throw e;
581
+ * });
582
+ *
583
+ * ```
584
+ *
585
+ * @param params - Parameters for request
586
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
587
+ * @param callback - Optional callback that handles the response.
588
+ * @returns A promise if used with async/await, or void if used with a callback.
589
+ */
590
+ insert(
591
+ params: Params$Resource$Accounts$Lfpinventories$Insert,
592
+ options: StreamMethodOptions
593
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
594
+ insert(
595
+ params?: Params$Resource$Accounts$Lfpinventories$Insert,
596
+ options?: MethodOptions
597
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpInventory>>;
598
+ insert(
599
+ params: Params$Resource$Accounts$Lfpinventories$Insert,
600
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
601
+ callback: BodyResponseCallback<Readable>
602
+ ): void;
603
+ insert(
604
+ params: Params$Resource$Accounts$Lfpinventories$Insert,
605
+ options: MethodOptions | BodyResponseCallback<Schema$LfpInventory>,
606
+ callback: BodyResponseCallback<Schema$LfpInventory>
607
+ ): void;
608
+ insert(
609
+ params: Params$Resource$Accounts$Lfpinventories$Insert,
610
+ callback: BodyResponseCallback<Schema$LfpInventory>
611
+ ): void;
612
+ insert(callback: BodyResponseCallback<Schema$LfpInventory>): void;
613
+ insert(
614
+ paramsOrCallback?:
615
+ | Params$Resource$Accounts$Lfpinventories$Insert
616
+ | BodyResponseCallback<Schema$LfpInventory>
617
+ | BodyResponseCallback<Readable>,
618
+ optionsOrCallback?:
619
+ | MethodOptions
620
+ | StreamMethodOptions
621
+ | BodyResponseCallback<Schema$LfpInventory>
622
+ | BodyResponseCallback<Readable>,
623
+ callback?:
624
+ | BodyResponseCallback<Schema$LfpInventory>
625
+ | BodyResponseCallback<Readable>
626
+ ):
627
+ | void
628
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpInventory>>
629
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
630
+ let params = (paramsOrCallback ||
631
+ {}) as Params$Resource$Accounts$Lfpinventories$Insert;
632
+ let options = (optionsOrCallback || {}) as MethodOptions;
633
+
634
+ if (typeof paramsOrCallback === 'function') {
635
+ callback = paramsOrCallback;
636
+ params = {} as Params$Resource$Accounts$Lfpinventories$Insert;
637
+ options = {};
638
+ }
639
+
640
+ if (typeof optionsOrCallback === 'function') {
641
+ callback = optionsOrCallback;
642
+ options = {};
643
+ }
644
+
645
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
646
+ const parameters = {
647
+ options: Object.assign(
648
+ {
649
+ url: (rootUrl + '/lfp/v1/{+parent}/lfpInventories:insert').replace(
650
+ /([^:]\/)\/+/g,
651
+ '$1'
652
+ ),
653
+ method: 'POST',
654
+ apiVersion: '',
655
+ },
656
+ options
657
+ ),
658
+ params,
659
+ requiredParams: ['parent'],
660
+ pathParams: ['parent'],
661
+ context: this.context,
662
+ };
663
+ if (callback) {
664
+ createAPIRequest<Schema$LfpInventory>(
665
+ parameters,
666
+ callback as BodyResponseCallback<unknown>
667
+ );
668
+ } else {
669
+ return createAPIRequest<Schema$LfpInventory>(parameters);
670
+ }
671
+ }
672
+ }
673
+
674
+ export interface Params$Resource$Accounts$Lfpinventories$Insert
675
+ extends StandardParameters {
676
+ /**
677
+ * Required. The LFP provider account. Format: `accounts/{account\}`
678
+ */
679
+ parent?: string;
680
+
681
+ /**
682
+ * Request body metadata
683
+ */
684
+ requestBody?: Schema$LfpInventory;
685
+ }
686
+
687
+ export class Resource$Accounts$Lfpmerchantstates {
688
+ context: APIRequestContext;
689
+ constructor(context: APIRequestContext) {
690
+ this.context = context;
691
+ }
692
+
693
+ /**
694
+ * Gets the LFP state of a merchant
695
+ * @example
696
+ * ```js
697
+ * // Before running the sample:
698
+ * // - Enable the API at:
699
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
700
+ * // - Login into gcloud by running:
701
+ * // ```sh
702
+ * // $ gcloud auth application-default login
703
+ * // ```
704
+ * // - Install the npm module by running:
705
+ * // ```sh
706
+ * // $ npm install googleapis
707
+ * // ```
708
+ *
709
+ * const {google} = require('googleapis');
710
+ * const merchantapi = google.merchantapi('lfp_v1');
711
+ *
712
+ * async function main() {
713
+ * const auth = new google.auth.GoogleAuth({
714
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
715
+ * scopes: ['https://www.googleapis.com/auth/content'],
716
+ * });
717
+ *
718
+ * // Acquire an auth client, and bind it to all future calls
719
+ * const authClient = await auth.getClient();
720
+ * google.options({auth: authClient});
721
+ *
722
+ * // Do the magic
723
+ * const res = await merchantapi.accounts.lfpMerchantStates.get({
724
+ * // Required. The name of the state to retrieve. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`. For example, `accounts/123456/lfpMerchantStates/567890`.
725
+ * name: 'accounts/my-account/lfpMerchantStates/my-lfpMerchantState',
726
+ * });
727
+ * console.log(res.data);
728
+ *
729
+ * // Example response
730
+ * // {
731
+ * // "countrySettings": [],
732
+ * // "inventoryStats": {},
733
+ * // "linkedGbps": "my_linkedGbps",
734
+ * // "name": "my_name",
735
+ * // "storeStates": []
736
+ * // }
737
+ * }
738
+ *
739
+ * main().catch(e => {
740
+ * console.error(e);
741
+ * throw e;
742
+ * });
743
+ *
744
+ * ```
745
+ *
746
+ * @param params - Parameters for request
747
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
748
+ * @param callback - Optional callback that handles the response.
749
+ * @returns A promise if used with async/await, or void if used with a callback.
750
+ */
751
+ get(
752
+ params: Params$Resource$Accounts$Lfpmerchantstates$Get,
753
+ options: StreamMethodOptions
754
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
755
+ get(
756
+ params?: Params$Resource$Accounts$Lfpmerchantstates$Get,
757
+ options?: MethodOptions
758
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpMerchantState>>;
759
+ get(
760
+ params: Params$Resource$Accounts$Lfpmerchantstates$Get,
761
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
762
+ callback: BodyResponseCallback<Readable>
763
+ ): void;
764
+ get(
765
+ params: Params$Resource$Accounts$Lfpmerchantstates$Get,
766
+ options: MethodOptions | BodyResponseCallback<Schema$LfpMerchantState>,
767
+ callback: BodyResponseCallback<Schema$LfpMerchantState>
768
+ ): void;
769
+ get(
770
+ params: Params$Resource$Accounts$Lfpmerchantstates$Get,
771
+ callback: BodyResponseCallback<Schema$LfpMerchantState>
772
+ ): void;
773
+ get(callback: BodyResponseCallback<Schema$LfpMerchantState>): void;
774
+ get(
775
+ paramsOrCallback?:
776
+ | Params$Resource$Accounts$Lfpmerchantstates$Get
777
+ | BodyResponseCallback<Schema$LfpMerchantState>
778
+ | BodyResponseCallback<Readable>,
779
+ optionsOrCallback?:
780
+ | MethodOptions
781
+ | StreamMethodOptions
782
+ | BodyResponseCallback<Schema$LfpMerchantState>
783
+ | BodyResponseCallback<Readable>,
784
+ callback?:
785
+ | BodyResponseCallback<Schema$LfpMerchantState>
786
+ | BodyResponseCallback<Readable>
787
+ ):
788
+ | void
789
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpMerchantState>>
790
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
791
+ let params = (paramsOrCallback ||
792
+ {}) as Params$Resource$Accounts$Lfpmerchantstates$Get;
793
+ let options = (optionsOrCallback || {}) as MethodOptions;
794
+
795
+ if (typeof paramsOrCallback === 'function') {
796
+ callback = paramsOrCallback;
797
+ params = {} as Params$Resource$Accounts$Lfpmerchantstates$Get;
798
+ options = {};
799
+ }
800
+
801
+ if (typeof optionsOrCallback === 'function') {
802
+ callback = optionsOrCallback;
803
+ options = {};
804
+ }
805
+
806
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
807
+ const parameters = {
808
+ options: Object.assign(
809
+ {
810
+ url: (rootUrl + '/lfp/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
811
+ method: 'GET',
812
+ apiVersion: '',
813
+ },
814
+ options
815
+ ),
816
+ params,
817
+ requiredParams: ['name'],
818
+ pathParams: ['name'],
819
+ context: this.context,
820
+ };
821
+ if (callback) {
822
+ createAPIRequest<Schema$LfpMerchantState>(
823
+ parameters,
824
+ callback as BodyResponseCallback<unknown>
825
+ );
826
+ } else {
827
+ return createAPIRequest<Schema$LfpMerchantState>(parameters);
828
+ }
829
+ }
830
+ }
831
+
832
+ export interface Params$Resource$Accounts$Lfpmerchantstates$Get
833
+ extends StandardParameters {
834
+ /**
835
+ * Required. The name of the state to retrieve. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`. For example, `accounts/123456/lfpMerchantStates/567890`.
836
+ */
837
+ name?: string;
838
+ }
839
+
840
+ export class Resource$Accounts$Lfpsales {
841
+ context: APIRequestContext;
842
+ constructor(context: APIRequestContext) {
843
+ this.context = context;
844
+ }
845
+
846
+ /**
847
+ * Inserts a `LfpSale` for the given merchant.
848
+ * @example
849
+ * ```js
850
+ * // Before running the sample:
851
+ * // - Enable the API at:
852
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
853
+ * // - Login into gcloud by running:
854
+ * // ```sh
855
+ * // $ gcloud auth application-default login
856
+ * // ```
857
+ * // - Install the npm module by running:
858
+ * // ```sh
859
+ * // $ npm install googleapis
860
+ * // ```
861
+ *
862
+ * const {google} = require('googleapis');
863
+ * const merchantapi = google.merchantapi('lfp_v1');
864
+ *
865
+ * async function main() {
866
+ * const auth = new google.auth.GoogleAuth({
867
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
868
+ * scopes: ['https://www.googleapis.com/auth/content'],
869
+ * });
870
+ *
871
+ * // Acquire an auth client, and bind it to all future calls
872
+ * const authClient = await auth.getClient();
873
+ * google.options({auth: authClient});
874
+ *
875
+ * // Do the magic
876
+ * const res = await merchantapi.accounts.lfpSales.insert({
877
+ * // Required. The LFP provider account. Format: `accounts/{lfp_partner\}`
878
+ * parent: 'accounts/my-account',
879
+ *
880
+ * // Request body metadata
881
+ * requestBody: {
882
+ * // request body parameters
883
+ * // {
884
+ * // "contentLanguage": "my_contentLanguage",
885
+ * // "feedLabel": "my_feedLabel",
886
+ * // "gtin": "my_gtin",
887
+ * // "name": "my_name",
888
+ * // "offerId": "my_offerId",
889
+ * // "price": {},
890
+ * // "quantity": "my_quantity",
891
+ * // "regionCode": "my_regionCode",
892
+ * // "saleTime": "my_saleTime",
893
+ * // "storeCode": "my_storeCode",
894
+ * // "targetAccount": "my_targetAccount",
895
+ * // "uid": "my_uid"
896
+ * // }
897
+ * },
898
+ * });
899
+ * console.log(res.data);
900
+ *
901
+ * // Example response
902
+ * // {
903
+ * // "contentLanguage": "my_contentLanguage",
904
+ * // "feedLabel": "my_feedLabel",
905
+ * // "gtin": "my_gtin",
906
+ * // "name": "my_name",
907
+ * // "offerId": "my_offerId",
908
+ * // "price": {},
909
+ * // "quantity": "my_quantity",
910
+ * // "regionCode": "my_regionCode",
911
+ * // "saleTime": "my_saleTime",
912
+ * // "storeCode": "my_storeCode",
913
+ * // "targetAccount": "my_targetAccount",
914
+ * // "uid": "my_uid"
915
+ * // }
916
+ * }
917
+ *
918
+ * main().catch(e => {
919
+ * console.error(e);
920
+ * throw e;
921
+ * });
922
+ *
923
+ * ```
924
+ *
925
+ * @param params - Parameters for request
926
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
927
+ * @param callback - Optional callback that handles the response.
928
+ * @returns A promise if used with async/await, or void if used with a callback.
929
+ */
930
+ insert(
931
+ params: Params$Resource$Accounts$Lfpsales$Insert,
932
+ options: StreamMethodOptions
933
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
934
+ insert(
935
+ params?: Params$Resource$Accounts$Lfpsales$Insert,
936
+ options?: MethodOptions
937
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpSale>>;
938
+ insert(
939
+ params: Params$Resource$Accounts$Lfpsales$Insert,
940
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
941
+ callback: BodyResponseCallback<Readable>
942
+ ): void;
943
+ insert(
944
+ params: Params$Resource$Accounts$Lfpsales$Insert,
945
+ options: MethodOptions | BodyResponseCallback<Schema$LfpSale>,
946
+ callback: BodyResponseCallback<Schema$LfpSale>
947
+ ): void;
948
+ insert(
949
+ params: Params$Resource$Accounts$Lfpsales$Insert,
950
+ callback: BodyResponseCallback<Schema$LfpSale>
951
+ ): void;
952
+ insert(callback: BodyResponseCallback<Schema$LfpSale>): void;
953
+ insert(
954
+ paramsOrCallback?:
955
+ | Params$Resource$Accounts$Lfpsales$Insert
956
+ | BodyResponseCallback<Schema$LfpSale>
957
+ | BodyResponseCallback<Readable>,
958
+ optionsOrCallback?:
959
+ | MethodOptions
960
+ | StreamMethodOptions
961
+ | BodyResponseCallback<Schema$LfpSale>
962
+ | BodyResponseCallback<Readable>,
963
+ callback?:
964
+ | BodyResponseCallback<Schema$LfpSale>
965
+ | BodyResponseCallback<Readable>
966
+ ):
967
+ | void
968
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpSale>>
969
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
970
+ let params = (paramsOrCallback ||
971
+ {}) as Params$Resource$Accounts$Lfpsales$Insert;
972
+ let options = (optionsOrCallback || {}) as MethodOptions;
973
+
974
+ if (typeof paramsOrCallback === 'function') {
975
+ callback = paramsOrCallback;
976
+ params = {} as Params$Resource$Accounts$Lfpsales$Insert;
977
+ options = {};
978
+ }
979
+
980
+ if (typeof optionsOrCallback === 'function') {
981
+ callback = optionsOrCallback;
982
+ options = {};
983
+ }
984
+
985
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
986
+ const parameters = {
987
+ options: Object.assign(
988
+ {
989
+ url: (rootUrl + '/lfp/v1/{+parent}/lfpSales:insert').replace(
990
+ /([^:]\/)\/+/g,
991
+ '$1'
992
+ ),
993
+ method: 'POST',
994
+ apiVersion: '',
995
+ },
996
+ options
997
+ ),
998
+ params,
999
+ requiredParams: ['parent'],
1000
+ pathParams: ['parent'],
1001
+ context: this.context,
1002
+ };
1003
+ if (callback) {
1004
+ createAPIRequest<Schema$LfpSale>(
1005
+ parameters,
1006
+ callback as BodyResponseCallback<unknown>
1007
+ );
1008
+ } else {
1009
+ return createAPIRequest<Schema$LfpSale>(parameters);
1010
+ }
1011
+ }
1012
+ }
1013
+
1014
+ export interface Params$Resource$Accounts$Lfpsales$Insert
1015
+ extends StandardParameters {
1016
+ /**
1017
+ * Required. The LFP provider account. Format: `accounts/{lfp_partner\}`
1018
+ */
1019
+ parent?: string;
1020
+
1021
+ /**
1022
+ * Request body metadata
1023
+ */
1024
+ requestBody?: Schema$LfpSale;
1025
+ }
1026
+
1027
+ export class Resource$Accounts$Lfpstores {
1028
+ context: APIRequestContext;
1029
+ constructor(context: APIRequestContext) {
1030
+ this.context = context;
1031
+ }
1032
+
1033
+ /**
1034
+ * Deletes a store for a target merchant.
1035
+ * @example
1036
+ * ```js
1037
+ * // Before running the sample:
1038
+ * // - Enable the API at:
1039
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
1040
+ * // - Login into gcloud by running:
1041
+ * // ```sh
1042
+ * // $ gcloud auth application-default login
1043
+ * // ```
1044
+ * // - Install the npm module by running:
1045
+ * // ```sh
1046
+ * // $ npm install googleapis
1047
+ * // ```
1048
+ *
1049
+ * const {google} = require('googleapis');
1050
+ * const merchantapi = google.merchantapi('lfp_v1');
1051
+ *
1052
+ * async function main() {
1053
+ * const auth = new google.auth.GoogleAuth({
1054
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1055
+ * scopes: ['https://www.googleapis.com/auth/content'],
1056
+ * });
1057
+ *
1058
+ * // Acquire an auth client, and bind it to all future calls
1059
+ * const authClient = await auth.getClient();
1060
+ * google.options({auth: authClient});
1061
+ *
1062
+ * // Do the magic
1063
+ * const res = await merchantapi.accounts.lfpStores.delete({
1064
+ * // Required. The name of the store to delete for the target merchant account. Format: `accounts/{account\}/lfpStores/{target_merchant\}~{store_code\}`
1065
+ * name: 'accounts/my-account/lfpStores/my-lfpStore',
1066
+ * });
1067
+ * console.log(res.data);
1068
+ *
1069
+ * // Example response
1070
+ * // {}
1071
+ * }
1072
+ *
1073
+ * main().catch(e => {
1074
+ * console.error(e);
1075
+ * throw e;
1076
+ * });
1077
+ *
1078
+ * ```
1079
+ *
1080
+ * @param params - Parameters for request
1081
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1082
+ * @param callback - Optional callback that handles the response.
1083
+ * @returns A promise if used with async/await, or void if used with a callback.
1084
+ */
1085
+ delete(
1086
+ params: Params$Resource$Accounts$Lfpstores$Delete,
1087
+ options: StreamMethodOptions
1088
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1089
+ delete(
1090
+ params?: Params$Resource$Accounts$Lfpstores$Delete,
1091
+ options?: MethodOptions
1092
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1093
+ delete(
1094
+ params: Params$Resource$Accounts$Lfpstores$Delete,
1095
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
1096
+ callback: BodyResponseCallback<Readable>
1097
+ ): void;
1098
+ delete(
1099
+ params: Params$Resource$Accounts$Lfpstores$Delete,
1100
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
1101
+ callback: BodyResponseCallback<Schema$Empty>
1102
+ ): void;
1103
+ delete(
1104
+ params: Params$Resource$Accounts$Lfpstores$Delete,
1105
+ callback: BodyResponseCallback<Schema$Empty>
1106
+ ): void;
1107
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
1108
+ delete(
1109
+ paramsOrCallback?:
1110
+ | Params$Resource$Accounts$Lfpstores$Delete
1111
+ | BodyResponseCallback<Schema$Empty>
1112
+ | BodyResponseCallback<Readable>,
1113
+ optionsOrCallback?:
1114
+ | MethodOptions
1115
+ | StreamMethodOptions
1116
+ | BodyResponseCallback<Schema$Empty>
1117
+ | BodyResponseCallback<Readable>,
1118
+ callback?:
1119
+ | BodyResponseCallback<Schema$Empty>
1120
+ | BodyResponseCallback<Readable>
1121
+ ):
1122
+ | void
1123
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
1124
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1125
+ let params = (paramsOrCallback ||
1126
+ {}) as Params$Resource$Accounts$Lfpstores$Delete;
1127
+ let options = (optionsOrCallback || {}) as MethodOptions;
1128
+
1129
+ if (typeof paramsOrCallback === 'function') {
1130
+ callback = paramsOrCallback;
1131
+ params = {} as Params$Resource$Accounts$Lfpstores$Delete;
1132
+ options = {};
1133
+ }
1134
+
1135
+ if (typeof optionsOrCallback === 'function') {
1136
+ callback = optionsOrCallback;
1137
+ options = {};
1138
+ }
1139
+
1140
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1141
+ const parameters = {
1142
+ options: Object.assign(
1143
+ {
1144
+ url: (rootUrl + '/lfp/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1145
+ method: 'DELETE',
1146
+ apiVersion: '',
1147
+ },
1148
+ options
1149
+ ),
1150
+ params,
1151
+ requiredParams: ['name'],
1152
+ pathParams: ['name'],
1153
+ context: this.context,
1154
+ };
1155
+ if (callback) {
1156
+ createAPIRequest<Schema$Empty>(
1157
+ parameters,
1158
+ callback as BodyResponseCallback<unknown>
1159
+ );
1160
+ } else {
1161
+ return createAPIRequest<Schema$Empty>(parameters);
1162
+ }
1163
+ }
1164
+
1165
+ /**
1166
+ * Retrieves information about a store.
1167
+ * @example
1168
+ * ```js
1169
+ * // Before running the sample:
1170
+ * // - Enable the API at:
1171
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
1172
+ * // - Login into gcloud by running:
1173
+ * // ```sh
1174
+ * // $ gcloud auth application-default login
1175
+ * // ```
1176
+ * // - Install the npm module by running:
1177
+ * // ```sh
1178
+ * // $ npm install googleapis
1179
+ * // ```
1180
+ *
1181
+ * const {google} = require('googleapis');
1182
+ * const merchantapi = google.merchantapi('lfp_v1');
1183
+ *
1184
+ * async function main() {
1185
+ * const auth = new google.auth.GoogleAuth({
1186
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1187
+ * scopes: ['https://www.googleapis.com/auth/content'],
1188
+ * });
1189
+ *
1190
+ * // Acquire an auth client, and bind it to all future calls
1191
+ * const authClient = await auth.getClient();
1192
+ * google.options({auth: authClient});
1193
+ *
1194
+ * // Do the magic
1195
+ * const res = await merchantapi.accounts.lfpStores.get({
1196
+ * // Required. The name of the store to retrieve. Format: `accounts/{account\}/lfpStores/{target_merchant\}~{store_code\}`
1197
+ * name: 'accounts/my-account/lfpStores/my-lfpStore',
1198
+ * });
1199
+ * console.log(res.data);
1200
+ *
1201
+ * // Example response
1202
+ * // {
1203
+ * // "gcidCategory": [],
1204
+ * // "matchingState": "my_matchingState",
1205
+ * // "matchingStateHint": "my_matchingStateHint",
1206
+ * // "name": "my_name",
1207
+ * // "phoneNumber": "my_phoneNumber",
1208
+ * // "placeId": "my_placeId",
1209
+ * // "storeAddress": "my_storeAddress",
1210
+ * // "storeCode": "my_storeCode",
1211
+ * // "storeName": "my_storeName",
1212
+ * // "targetAccount": "my_targetAccount",
1213
+ * // "websiteUri": "my_websiteUri"
1214
+ * // }
1215
+ * }
1216
+ *
1217
+ * main().catch(e => {
1218
+ * console.error(e);
1219
+ * throw e;
1220
+ * });
1221
+ *
1222
+ * ```
1223
+ *
1224
+ * @param params - Parameters for request
1225
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1226
+ * @param callback - Optional callback that handles the response.
1227
+ * @returns A promise if used with async/await, or void if used with a callback.
1228
+ */
1229
+ get(
1230
+ params: Params$Resource$Accounts$Lfpstores$Get,
1231
+ options: StreamMethodOptions
1232
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1233
+ get(
1234
+ params?: Params$Resource$Accounts$Lfpstores$Get,
1235
+ options?: MethodOptions
1236
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>;
1237
+ get(
1238
+ params: Params$Resource$Accounts$Lfpstores$Get,
1239
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
1240
+ callback: BodyResponseCallback<Readable>
1241
+ ): void;
1242
+ get(
1243
+ params: Params$Resource$Accounts$Lfpstores$Get,
1244
+ options: MethodOptions | BodyResponseCallback<Schema$LfpStore>,
1245
+ callback: BodyResponseCallback<Schema$LfpStore>
1246
+ ): void;
1247
+ get(
1248
+ params: Params$Resource$Accounts$Lfpstores$Get,
1249
+ callback: BodyResponseCallback<Schema$LfpStore>
1250
+ ): void;
1251
+ get(callback: BodyResponseCallback<Schema$LfpStore>): void;
1252
+ get(
1253
+ paramsOrCallback?:
1254
+ | Params$Resource$Accounts$Lfpstores$Get
1255
+ | BodyResponseCallback<Schema$LfpStore>
1256
+ | BodyResponseCallback<Readable>,
1257
+ optionsOrCallback?:
1258
+ | MethodOptions
1259
+ | StreamMethodOptions
1260
+ | BodyResponseCallback<Schema$LfpStore>
1261
+ | BodyResponseCallback<Readable>,
1262
+ callback?:
1263
+ | BodyResponseCallback<Schema$LfpStore>
1264
+ | BodyResponseCallback<Readable>
1265
+ ):
1266
+ | void
1267
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>
1268
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1269
+ let params = (paramsOrCallback ||
1270
+ {}) as Params$Resource$Accounts$Lfpstores$Get;
1271
+ let options = (optionsOrCallback || {}) as MethodOptions;
1272
+
1273
+ if (typeof paramsOrCallback === 'function') {
1274
+ callback = paramsOrCallback;
1275
+ params = {} as Params$Resource$Accounts$Lfpstores$Get;
1276
+ options = {};
1277
+ }
1278
+
1279
+ if (typeof optionsOrCallback === 'function') {
1280
+ callback = optionsOrCallback;
1281
+ options = {};
1282
+ }
1283
+
1284
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1285
+ const parameters = {
1286
+ options: Object.assign(
1287
+ {
1288
+ url: (rootUrl + '/lfp/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1289
+ method: 'GET',
1290
+ apiVersion: '',
1291
+ },
1292
+ options
1293
+ ),
1294
+ params,
1295
+ requiredParams: ['name'],
1296
+ pathParams: ['name'],
1297
+ context: this.context,
1298
+ };
1299
+ if (callback) {
1300
+ createAPIRequest<Schema$LfpStore>(
1301
+ parameters,
1302
+ callback as BodyResponseCallback<unknown>
1303
+ );
1304
+ } else {
1305
+ return createAPIRequest<Schema$LfpStore>(parameters);
1306
+ }
1307
+ }
1308
+
1309
+ /**
1310
+ * Inserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.
1311
+ * @example
1312
+ * ```js
1313
+ * // Before running the sample:
1314
+ * // - Enable the API at:
1315
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
1316
+ * // - Login into gcloud by running:
1317
+ * // ```sh
1318
+ * // $ gcloud auth application-default login
1319
+ * // ```
1320
+ * // - Install the npm module by running:
1321
+ * // ```sh
1322
+ * // $ npm install googleapis
1323
+ * // ```
1324
+ *
1325
+ * const {google} = require('googleapis');
1326
+ * const merchantapi = google.merchantapi('lfp_v1');
1327
+ *
1328
+ * async function main() {
1329
+ * const auth = new google.auth.GoogleAuth({
1330
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1331
+ * scopes: ['https://www.googleapis.com/auth/content'],
1332
+ * });
1333
+ *
1334
+ * // Acquire an auth client, and bind it to all future calls
1335
+ * const authClient = await auth.getClient();
1336
+ * google.options({auth: authClient});
1337
+ *
1338
+ * // Do the magic
1339
+ * const res = await merchantapi.accounts.lfpStores.insert({
1340
+ * // Required. The LFP provider account Format: `accounts/{account\}`
1341
+ * parent: 'accounts/my-account',
1342
+ *
1343
+ * // Request body metadata
1344
+ * requestBody: {
1345
+ * // request body parameters
1346
+ * // {
1347
+ * // "gcidCategory": [],
1348
+ * // "matchingState": "my_matchingState",
1349
+ * // "matchingStateHint": "my_matchingStateHint",
1350
+ * // "name": "my_name",
1351
+ * // "phoneNumber": "my_phoneNumber",
1352
+ * // "placeId": "my_placeId",
1353
+ * // "storeAddress": "my_storeAddress",
1354
+ * // "storeCode": "my_storeCode",
1355
+ * // "storeName": "my_storeName",
1356
+ * // "targetAccount": "my_targetAccount",
1357
+ * // "websiteUri": "my_websiteUri"
1358
+ * // }
1359
+ * },
1360
+ * });
1361
+ * console.log(res.data);
1362
+ *
1363
+ * // Example response
1364
+ * // {
1365
+ * // "gcidCategory": [],
1366
+ * // "matchingState": "my_matchingState",
1367
+ * // "matchingStateHint": "my_matchingStateHint",
1368
+ * // "name": "my_name",
1369
+ * // "phoneNumber": "my_phoneNumber",
1370
+ * // "placeId": "my_placeId",
1371
+ * // "storeAddress": "my_storeAddress",
1372
+ * // "storeCode": "my_storeCode",
1373
+ * // "storeName": "my_storeName",
1374
+ * // "targetAccount": "my_targetAccount",
1375
+ * // "websiteUri": "my_websiteUri"
1376
+ * // }
1377
+ * }
1378
+ *
1379
+ * main().catch(e => {
1380
+ * console.error(e);
1381
+ * throw e;
1382
+ * });
1383
+ *
1384
+ * ```
1385
+ *
1386
+ * @param params - Parameters for request
1387
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1388
+ * @param callback - Optional callback that handles the response.
1389
+ * @returns A promise if used with async/await, or void if used with a callback.
1390
+ */
1391
+ insert(
1392
+ params: Params$Resource$Accounts$Lfpstores$Insert,
1393
+ options: StreamMethodOptions
1394
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1395
+ insert(
1396
+ params?: Params$Resource$Accounts$Lfpstores$Insert,
1397
+ options?: MethodOptions
1398
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>;
1399
+ insert(
1400
+ params: Params$Resource$Accounts$Lfpstores$Insert,
1401
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
1402
+ callback: BodyResponseCallback<Readable>
1403
+ ): void;
1404
+ insert(
1405
+ params: Params$Resource$Accounts$Lfpstores$Insert,
1406
+ options: MethodOptions | BodyResponseCallback<Schema$LfpStore>,
1407
+ callback: BodyResponseCallback<Schema$LfpStore>
1408
+ ): void;
1409
+ insert(
1410
+ params: Params$Resource$Accounts$Lfpstores$Insert,
1411
+ callback: BodyResponseCallback<Schema$LfpStore>
1412
+ ): void;
1413
+ insert(callback: BodyResponseCallback<Schema$LfpStore>): void;
1414
+ insert(
1415
+ paramsOrCallback?:
1416
+ | Params$Resource$Accounts$Lfpstores$Insert
1417
+ | BodyResponseCallback<Schema$LfpStore>
1418
+ | BodyResponseCallback<Readable>,
1419
+ optionsOrCallback?:
1420
+ | MethodOptions
1421
+ | StreamMethodOptions
1422
+ | BodyResponseCallback<Schema$LfpStore>
1423
+ | BodyResponseCallback<Readable>,
1424
+ callback?:
1425
+ | BodyResponseCallback<Schema$LfpStore>
1426
+ | BodyResponseCallback<Readable>
1427
+ ):
1428
+ | void
1429
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>
1430
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1431
+ let params = (paramsOrCallback ||
1432
+ {}) as Params$Resource$Accounts$Lfpstores$Insert;
1433
+ let options = (optionsOrCallback || {}) as MethodOptions;
1434
+
1435
+ if (typeof paramsOrCallback === 'function') {
1436
+ callback = paramsOrCallback;
1437
+ params = {} as Params$Resource$Accounts$Lfpstores$Insert;
1438
+ options = {};
1439
+ }
1440
+
1441
+ if (typeof optionsOrCallback === 'function') {
1442
+ callback = optionsOrCallback;
1443
+ options = {};
1444
+ }
1445
+
1446
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1447
+ const parameters = {
1448
+ options: Object.assign(
1449
+ {
1450
+ url: (rootUrl + '/lfp/v1/{+parent}/lfpStores:insert').replace(
1451
+ /([^:]\/)\/+/g,
1452
+ '$1'
1453
+ ),
1454
+ method: 'POST',
1455
+ apiVersion: '',
1456
+ },
1457
+ options
1458
+ ),
1459
+ params,
1460
+ requiredParams: ['parent'],
1461
+ pathParams: ['parent'],
1462
+ context: this.context,
1463
+ };
1464
+ if (callback) {
1465
+ createAPIRequest<Schema$LfpStore>(
1466
+ parameters,
1467
+ callback as BodyResponseCallback<unknown>
1468
+ );
1469
+ } else {
1470
+ return createAPIRequest<Schema$LfpStore>(parameters);
1471
+ }
1472
+ }
1473
+
1474
+ /**
1475
+ * Lists the stores of the target merchant, specified by the filter in `ListLfpStoresRequest`.
1476
+ * @example
1477
+ * ```js
1478
+ * // Before running the sample:
1479
+ * // - Enable the API at:
1480
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
1481
+ * // - Login into gcloud by running:
1482
+ * // ```sh
1483
+ * // $ gcloud auth application-default login
1484
+ * // ```
1485
+ * // - Install the npm module by running:
1486
+ * // ```sh
1487
+ * // $ npm install googleapis
1488
+ * // ```
1489
+ *
1490
+ * const {google} = require('googleapis');
1491
+ * const merchantapi = google.merchantapi('lfp_v1');
1492
+ *
1493
+ * async function main() {
1494
+ * const auth = new google.auth.GoogleAuth({
1495
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1496
+ * scopes: ['https://www.googleapis.com/auth/content'],
1497
+ * });
1498
+ *
1499
+ * // Acquire an auth client, and bind it to all future calls
1500
+ * const authClient = await auth.getClient();
1501
+ * google.options({auth: authClient});
1502
+ *
1503
+ * // Do the magic
1504
+ * const res = await merchantapi.accounts.lfpStores.list({
1505
+ * // Optional. The maximum number of `LfpStore` resources for the given account to return. The service returns fewer than this value if the number of stores for the given account is less than the `pageSize`. The default value is 250. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.
1506
+ * pageSize: 'placeholder-value',
1507
+ * // Optional. A page token, received from a previous `ListLfpStoresRequest` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListLfpStoresRequest` must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request.
1508
+ * pageToken: 'placeholder-value',
1509
+ * // Required. The LFP partner. Format: `accounts/{account\}`
1510
+ * parent: 'accounts/my-account',
1511
+ * // Required. The Merchant Center id of the merchant to list stores for.
1512
+ * targetAccount: 'placeholder-value',
1513
+ * });
1514
+ * console.log(res.data);
1515
+ *
1516
+ * // Example response
1517
+ * // {
1518
+ * // "lfpStores": [],
1519
+ * // "nextPageToken": "my_nextPageToken"
1520
+ * // }
1521
+ * }
1522
+ *
1523
+ * main().catch(e => {
1524
+ * console.error(e);
1525
+ * throw e;
1526
+ * });
1527
+ *
1528
+ * ```
1529
+ *
1530
+ * @param params - Parameters for request
1531
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1532
+ * @param callback - Optional callback that handles the response.
1533
+ * @returns A promise if used with async/await, or void if used with a callback.
1534
+ */
1535
+ list(
1536
+ params: Params$Resource$Accounts$Lfpstores$List,
1537
+ options: StreamMethodOptions
1538
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1539
+ list(
1540
+ params?: Params$Resource$Accounts$Lfpstores$List,
1541
+ options?: MethodOptions
1542
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListLfpStoresResponse>>;
1543
+ list(
1544
+ params: Params$Resource$Accounts$Lfpstores$List,
1545
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
1546
+ callback: BodyResponseCallback<Readable>
1547
+ ): void;
1548
+ list(
1549
+ params: Params$Resource$Accounts$Lfpstores$List,
1550
+ options:
1551
+ | MethodOptions
1552
+ | BodyResponseCallback<Schema$ListLfpStoresResponse>,
1553
+ callback: BodyResponseCallback<Schema$ListLfpStoresResponse>
1554
+ ): void;
1555
+ list(
1556
+ params: Params$Resource$Accounts$Lfpstores$List,
1557
+ callback: BodyResponseCallback<Schema$ListLfpStoresResponse>
1558
+ ): void;
1559
+ list(callback: BodyResponseCallback<Schema$ListLfpStoresResponse>): void;
1560
+ list(
1561
+ paramsOrCallback?:
1562
+ | Params$Resource$Accounts$Lfpstores$List
1563
+ | BodyResponseCallback<Schema$ListLfpStoresResponse>
1564
+ | BodyResponseCallback<Readable>,
1565
+ optionsOrCallback?:
1566
+ | MethodOptions
1567
+ | StreamMethodOptions
1568
+ | BodyResponseCallback<Schema$ListLfpStoresResponse>
1569
+ | BodyResponseCallback<Readable>,
1570
+ callback?:
1571
+ | BodyResponseCallback<Schema$ListLfpStoresResponse>
1572
+ | BodyResponseCallback<Readable>
1573
+ ):
1574
+ | void
1575
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListLfpStoresResponse>>
1576
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1577
+ let params = (paramsOrCallback ||
1578
+ {}) as Params$Resource$Accounts$Lfpstores$List;
1579
+ let options = (optionsOrCallback || {}) as MethodOptions;
1580
+
1581
+ if (typeof paramsOrCallback === 'function') {
1582
+ callback = paramsOrCallback;
1583
+ params = {} as Params$Resource$Accounts$Lfpstores$List;
1584
+ options = {};
1585
+ }
1586
+
1587
+ if (typeof optionsOrCallback === 'function') {
1588
+ callback = optionsOrCallback;
1589
+ options = {};
1590
+ }
1591
+
1592
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1593
+ const parameters = {
1594
+ options: Object.assign(
1595
+ {
1596
+ url: (rootUrl + '/lfp/v1/{+parent}/lfpStores').replace(
1597
+ /([^:]\/)\/+/g,
1598
+ '$1'
1599
+ ),
1600
+ method: 'GET',
1601
+ apiVersion: '',
1602
+ },
1603
+ options
1604
+ ),
1605
+ params,
1606
+ requiredParams: ['parent'],
1607
+ pathParams: ['parent'],
1608
+ context: this.context,
1609
+ };
1610
+ if (callback) {
1611
+ createAPIRequest<Schema$ListLfpStoresResponse>(
1612
+ parameters,
1613
+ callback as BodyResponseCallback<unknown>
1614
+ );
1615
+ } else {
1616
+ return createAPIRequest<Schema$ListLfpStoresResponse>(parameters);
1617
+ }
1618
+ }
1619
+ }
1620
+
1621
+ export interface Params$Resource$Accounts$Lfpstores$Delete
1622
+ extends StandardParameters {
1623
+ /**
1624
+ * Required. The name of the store to delete for the target merchant account. Format: `accounts/{account\}/lfpStores/{target_merchant\}~{store_code\}`
1625
+ */
1626
+ name?: string;
1627
+ }
1628
+ export interface Params$Resource$Accounts$Lfpstores$Get
1629
+ extends StandardParameters {
1630
+ /**
1631
+ * Required. The name of the store to retrieve. Format: `accounts/{account\}/lfpStores/{target_merchant\}~{store_code\}`
1632
+ */
1633
+ name?: string;
1634
+ }
1635
+ export interface Params$Resource$Accounts$Lfpstores$Insert
1636
+ extends StandardParameters {
1637
+ /**
1638
+ * Required. The LFP provider account Format: `accounts/{account\}`
1639
+ */
1640
+ parent?: string;
1641
+
1642
+ /**
1643
+ * Request body metadata
1644
+ */
1645
+ requestBody?: Schema$LfpStore;
1646
+ }
1647
+ export interface Params$Resource$Accounts$Lfpstores$List
1648
+ extends StandardParameters {
1649
+ /**
1650
+ * Optional. The maximum number of `LfpStore` resources for the given account to return. The service returns fewer than this value if the number of stores for the given account is less than the `pageSize`. The default value is 250. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.
1651
+ */
1652
+ pageSize?: number;
1653
+ /**
1654
+ * Optional. A page token, received from a previous `ListLfpStoresRequest` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListLfpStoresRequest` must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request.
1655
+ */
1656
+ pageToken?: string;
1657
+ /**
1658
+ * Required. The LFP partner. Format: `accounts/{account\}`
1659
+ */
1660
+ parent?: string;
1661
+ /**
1662
+ * Required. The Merchant Center id of the merchant to list stores for.
1663
+ */
1664
+ targetAccount?: string;
1665
+ }
1666
+ }