@googleapis/merchantapi 16.1.0 → 17.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 +23 -0
- package/accounts_v1.ts +344 -501
- package/accounts_v1beta.ts +342 -136
- package/build/accounts_v1.d.ts +194 -196
- package/build/accounts_v1.js +41 -73
- package/build/accounts_v1.js.map +1 -1
- package/build/accounts_v1beta.d.ts +194 -0
- package/build/accounts_v1beta.js +41 -0
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1.js.map +1 -1
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1.js.map +1 -1
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1.d.ts +14 -50
- package/build/inventories_v1.js.map +1 -1
- package/build/inventories_v1beta.d.ts +14 -50
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1.d.ts +2 -8
- package/build/issueresolution_v1.js.map +1 -1
- package/build/issueresolution_v1beta.d.ts +2 -8
- package/build/issueresolution_v1beta.js.map +1 -1
- package/build/lfp_v1.js.map +1 -1
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1.js.map +1 -1
- package/build/notifications_v1beta.js.map +1 -1
- package/build/ordertracking_v1.js.map +1 -1
- package/build/ordertracking_v1beta.js.map +1 -1
- package/build/products_v1.d.ts +11 -29
- package/build/products_v1.js.map +1 -1
- package/build/products_v1beta.d.ts +11 -29
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1.js.map +1 -1
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1.d.ts +196 -0
- package/build/quota_v1.js +73 -0
- package/build/quota_v1.js.map +1 -1
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1.js.map +1 -1
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/conversions_v1.ts +6 -12
- package/conversions_v1beta.ts +6 -12
- package/datasources_v1.ts +7 -14
- package/datasources_v1beta.ts +7 -14
- package/inventories_v1.ts +20 -62
- package/inventories_v1beta.ts +20 -62
- package/issueresolution_v1.ts +6 -16
- package/issueresolution_v1beta.ts +6 -16
- package/lfp_v1.ts +7 -14
- package/lfp_v1beta.ts +7 -14
- package/notifications_v1.ts +5 -10
- package/notifications_v1beta.ts +5 -10
- package/ordertracking_v1.ts +1 -2
- package/ordertracking_v1beta.ts +1 -2
- package/package.json +1 -1
- package/products_v1.ts +16 -39
- package/products_v1beta.ts +16 -39
- package/promotions_v1.ts +3 -6
- package/promotions_v1beta.ts +3 -6
- package/quota_v1.ts +357 -2
- package/quota_v1beta.ts +1 -2
- package/reports_v1.ts +1 -2
- package/reports_v1beta.ts +1 -2
- package/reviews_v1beta.ts +8 -16
|
@@ -219,6 +219,10 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
219
219
|
* Service type for managing advertising campaigns. Grants the provider access to create and manage the business's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance.
|
|
220
220
|
*/
|
|
221
221
|
campaignsManagement?: Schema$CampaignsManagement;
|
|
222
|
+
/**
|
|
223
|
+
* Service type for comparison shopping. The provider is a CSS (Comparison Shopping Service) managing the account. See https://support.google.com/merchants/answer/12653197
|
|
224
|
+
*/
|
|
225
|
+
comparisonShopping?: Schema$ComparisonShopping;
|
|
222
226
|
/**
|
|
223
227
|
* Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider.
|
|
224
228
|
*/
|
|
@@ -260,6 +264,26 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
260
264
|
* The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation.
|
|
261
265
|
*/
|
|
262
266
|
accountAggregation?: Schema$AccountAggregation;
|
|
267
|
+
/**
|
|
268
|
+
* The provider manages this account. Payload for service type Account Management.
|
|
269
|
+
*/
|
|
270
|
+
accountManagement?: Schema$AccountManagement;
|
|
271
|
+
/**
|
|
272
|
+
* The provider manages campaigns for this account. Payload for service type campaigns management.
|
|
273
|
+
*/
|
|
274
|
+
campaignsManagement?: Schema$CampaignsManagement;
|
|
275
|
+
/**
|
|
276
|
+
* The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.
|
|
277
|
+
*/
|
|
278
|
+
comparisonShopping?: Schema$ComparisonShopping;
|
|
279
|
+
/**
|
|
280
|
+
* Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider. The external account ID must be specified for the campaigns management service type. The external account ID must not be specified for the account aggregation service type. The external account ID is optional / may be specified for all other service types.
|
|
281
|
+
*/
|
|
282
|
+
externalAccountId?: string | null;
|
|
283
|
+
/**
|
|
284
|
+
* The provider manages products for this account. Payload for service type products management.
|
|
285
|
+
*/
|
|
286
|
+
productsManagement?: Schema$ProductsManagement;
|
|
263
287
|
/**
|
|
264
288
|
* Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).
|
|
265
289
|
*/
|
|
@@ -302,6 +326,10 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
302
326
|
* Required. The email address of the user (for example, `john.doe@gmail.com`).
|
|
303
327
|
*/
|
|
304
328
|
userId?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* Optional. Settings related to configuring the verification email that is sent after adding a user.
|
|
331
|
+
*/
|
|
332
|
+
verificationMailSettings?: Schema$VerificationMailSettings;
|
|
305
333
|
}
|
|
306
334
|
/**
|
|
307
335
|
* Request to approve an account service.
|
|
@@ -544,6 +572,11 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
544
572
|
*/
|
|
545
573
|
overwrite?: boolean | null;
|
|
546
574
|
}
|
|
575
|
+
/**
|
|
576
|
+
* `ComparisonShopping` payload.
|
|
577
|
+
*/
|
|
578
|
+
export interface Schema$ComparisonShopping {
|
|
579
|
+
}
|
|
547
580
|
/**
|
|
548
581
|
* Request message for the `CreateAndConfigureAccount` method.
|
|
549
582
|
*/
|
|
@@ -556,6 +589,10 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
556
589
|
* Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be `account_aggregation` and `accounts.createAndConfigure` method can be used to create a sub-account under an existing advanced account through this method. Additional `account_management` or `product_management` services may be provided.
|
|
557
590
|
*/
|
|
558
591
|
service?: Schema$AddAccountService[];
|
|
592
|
+
/**
|
|
593
|
+
* Optional. If a relationship is created with a provider, you can set an alias for it with this field. The calling user must be an admin on the provider to be able to set an alias.
|
|
594
|
+
*/
|
|
595
|
+
setAlias?: Schema$SetAliasForRelationship[];
|
|
559
596
|
/**
|
|
560
597
|
* Optional. Users to be added to the account.
|
|
561
598
|
*/
|
|
@@ -955,6 +992,19 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
955
992
|
*/
|
|
956
993
|
allowStrictAvailabilityUpdates?: boolean | null;
|
|
957
994
|
}
|
|
995
|
+
/**
|
|
996
|
+
* An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.
|
|
997
|
+
*/
|
|
998
|
+
export interface Schema$LatLng {
|
|
999
|
+
/**
|
|
1000
|
+
* The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
1001
|
+
*/
|
|
1002
|
+
latitude?: number | null;
|
|
1003
|
+
/**
|
|
1004
|
+
* The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
1005
|
+
*/
|
|
1006
|
+
longitude?: number | null;
|
|
1007
|
+
}
|
|
958
1008
|
/**
|
|
959
1009
|
* Collection of information related to the LFP link.
|
|
960
1010
|
*/
|
|
@@ -1581,6 +1631,27 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1581
1631
|
*/
|
|
1582
1632
|
provider?: string | null;
|
|
1583
1633
|
}
|
|
1634
|
+
/**
|
|
1635
|
+
* A radius area that defines the region area.
|
|
1636
|
+
*/
|
|
1637
|
+
export interface Schema$RadiusArea {
|
|
1638
|
+
/**
|
|
1639
|
+
* Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.
|
|
1640
|
+
*/
|
|
1641
|
+
latLng?: Schema$LatLng;
|
|
1642
|
+
/**
|
|
1643
|
+
* Required. The radius distance of the area.
|
|
1644
|
+
*/
|
|
1645
|
+
radius?: number | null;
|
|
1646
|
+
/**
|
|
1647
|
+
* Optional. The unit of the radius.
|
|
1648
|
+
*/
|
|
1649
|
+
radiusUnits?: string | null;
|
|
1650
|
+
/**
|
|
1651
|
+
* Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the radius area applies to.
|
|
1652
|
+
*/
|
|
1653
|
+
regionCode?: string | null;
|
|
1654
|
+
}
|
|
1584
1655
|
/**
|
|
1585
1656
|
* Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means "everything else". The other `applicable_shipping_labels` must not overlap.
|
|
1586
1657
|
*/
|
|
@@ -1630,6 +1701,10 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1630
1701
|
* Optional. A list of postal codes that defines the region area.
|
|
1631
1702
|
*/
|
|
1632
1703
|
postalCodeArea?: Schema$PostalCodeArea;
|
|
1704
|
+
/**
|
|
1705
|
+
* Optional. A radius area that defines the region area.
|
|
1706
|
+
*/
|
|
1707
|
+
radiusArea?: Schema$RadiusArea;
|
|
1633
1708
|
/**
|
|
1634
1709
|
* Output only. Indicates if the region is eligible for use in the Regional Inventory configuration.
|
|
1635
1710
|
*/
|
|
@@ -1803,6 +1878,19 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1803
1878
|
*/
|
|
1804
1879
|
storeConfig?: Schema$StoreConfig;
|
|
1805
1880
|
}
|
|
1881
|
+
/**
|
|
1882
|
+
* Set an alias for a relationship between a provider and the account to be created.
|
|
1883
|
+
*/
|
|
1884
|
+
export interface Schema$SetAliasForRelationship {
|
|
1885
|
+
/**
|
|
1886
|
+
* Required. The unique ID of this account in the provider's system. The value must be unique across all accounts on the platform for this provider.
|
|
1887
|
+
*/
|
|
1888
|
+
accountIdAlias?: string | null;
|
|
1889
|
+
/**
|
|
1890
|
+
* Required. The provider of the service. This is a reference to an account such as `providers/123` or `accounts/123`. The same provider must be specified in at least one of the `service` fields.
|
|
1891
|
+
*/
|
|
1892
|
+
provider?: string | null;
|
|
1893
|
+
}
|
|
1806
1894
|
/**
|
|
1807
1895
|
* The Merchant Center account's [shipping settings](https://support.google.com/merchants/answer/6069284). The `ShippingSettings` resource lets you retrieve and update the shipping settings of your advanced account and all its associated sub-accounts.
|
|
1808
1896
|
*/
|
|
@@ -2059,6 +2147,20 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2059
2147
|
*/
|
|
2060
2148
|
subtable?: string | null;
|
|
2061
2149
|
}
|
|
2150
|
+
/**
|
|
2151
|
+
* Settings related to the verification email that is sent after adding a user.
|
|
2152
|
+
*/
|
|
2153
|
+
export interface Schema$VerificationMailSettings {
|
|
2154
|
+
/**
|
|
2155
|
+
* Optional. Mode of the verification mail. If not set, the default is `SEND_VERIFICATION_MAIL`.
|
|
2156
|
+
*/
|
|
2157
|
+
verificationMailMode?: string | null;
|
|
2158
|
+
}
|
|
2159
|
+
/**
|
|
2160
|
+
* Request message for the `VerifySelf` method.
|
|
2161
|
+
*/
|
|
2162
|
+
export interface Schema$VerifySelfRequest {
|
|
2163
|
+
}
|
|
2062
2164
|
/**
|
|
2063
2165
|
* A fulfillment warehouse, which stores and handles inventory.
|
|
2064
2166
|
*/
|
|
@@ -2185,6 +2287,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2185
2287
|
* // {
|
|
2186
2288
|
* // "account": {},
|
|
2187
2289
|
* // "service": [],
|
|
2290
|
+
* // "setAlias": [],
|
|
2188
2291
|
* // "user": [],
|
|
2189
2292
|
* // "users": []
|
|
2190
2293
|
* // }
|
|
@@ -6053,6 +6156,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
6053
6156
|
* // "geotargetArea": {},
|
|
6054
6157
|
* // "name": "my_name",
|
|
6055
6158
|
* // "postalCodeArea": {},
|
|
6159
|
+
* // "radiusArea": {},
|
|
6056
6160
|
* // "regionalInventoryEligible": false,
|
|
6057
6161
|
* // "shippingEligible": false
|
|
6058
6162
|
* // }
|
|
@@ -6066,6 +6170,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
6066
6170
|
* // "geotargetArea": {},
|
|
6067
6171
|
* // "name": "my_name",
|
|
6068
6172
|
* // "postalCodeArea": {},
|
|
6173
|
+
* // "radiusArea": {},
|
|
6069
6174
|
* // "regionalInventoryEligible": false,
|
|
6070
6175
|
* // "shippingEligible": false
|
|
6071
6176
|
* // }
|
|
@@ -6189,6 +6294,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
6189
6294
|
* // "geotargetArea": {},
|
|
6190
6295
|
* // "name": "my_name",
|
|
6191
6296
|
* // "postalCodeArea": {},
|
|
6297
|
+
* // "radiusArea": {},
|
|
6192
6298
|
* // "regionalInventoryEligible": false,
|
|
6193
6299
|
* // "shippingEligible": false
|
|
6194
6300
|
* // }
|
|
@@ -6321,6 +6427,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
6321
6427
|
* // "geotargetArea": {},
|
|
6322
6428
|
* // "name": "my_name",
|
|
6323
6429
|
* // "postalCodeArea": {},
|
|
6430
|
+
* // "radiusArea": {},
|
|
6324
6431
|
* // "regionalInventoryEligible": false,
|
|
6325
6432
|
* // "shippingEligible": false
|
|
6326
6433
|
* // }
|
|
@@ -6334,6 +6441,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
6334
6441
|
* // "geotargetArea": {},
|
|
6335
6442
|
* // "name": "my_name",
|
|
6336
6443
|
* // "postalCodeArea": {},
|
|
6444
|
+
* // "radiusArea": {},
|
|
6337
6445
|
* // "regionalInventoryEligible": false,
|
|
6338
6446
|
* // "shippingEligible": false
|
|
6339
6447
|
* // }
|
|
@@ -6704,6 +6812,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
6704
6812
|
* // "accountAggregation": {},
|
|
6705
6813
|
* // "accountManagement": {},
|
|
6706
6814
|
* // "campaignsManagement": {},
|
|
6815
|
+
* // "comparisonShopping": {},
|
|
6707
6816
|
* // "externalAccountId": "my_externalAccountId",
|
|
6708
6817
|
* // "handshake": {},
|
|
6709
6818
|
* // "localListingManagement": {},
|
|
@@ -6774,6 +6883,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
6774
6883
|
* // "accountAggregation": {},
|
|
6775
6884
|
* // "accountManagement": {},
|
|
6776
6885
|
* // "campaignsManagement": {},
|
|
6886
|
+
* // "comparisonShopping": {},
|
|
6777
6887
|
* // "externalAccountId": "my_externalAccountId",
|
|
6778
6888
|
* // "handshake": {},
|
|
6779
6889
|
* // "localListingManagement": {},
|
|
@@ -6918,6 +7028,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
6918
7028
|
* // "accountAggregation": {},
|
|
6919
7029
|
* // "accountManagement": {},
|
|
6920
7030
|
* // "campaignsManagement": {},
|
|
7031
|
+
* // "comparisonShopping": {},
|
|
6921
7032
|
* // "externalAccountId": "my_externalAccountId",
|
|
6922
7033
|
* // "handshake": {},
|
|
6923
7034
|
* // "localListingManagement": {},
|
|
@@ -7368,6 +7479,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
7368
7479
|
}
|
|
7369
7480
|
export class Resource$Accounts$Users {
|
|
7370
7481
|
context: APIRequestContext;
|
|
7482
|
+
me: Resource$Accounts$Users$Me;
|
|
7371
7483
|
constructor(context: APIRequestContext);
|
|
7372
7484
|
/**
|
|
7373
7485
|
* Creates a Merchant Center account user. Executing this method requires admin access.
|
|
@@ -7757,6 +7869,88 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
7757
7869
|
*/
|
|
7758
7870
|
requestBody?: Schema$User;
|
|
7759
7871
|
}
|
|
7872
|
+
export class Resource$Accounts$Users$Me {
|
|
7873
|
+
context: APIRequestContext;
|
|
7874
|
+
constructor(context: APIRequestContext);
|
|
7875
|
+
/**
|
|
7876
|
+
* Updates the user that is represented by the caller from pending to verified.
|
|
7877
|
+
* @example
|
|
7878
|
+
* ```js
|
|
7879
|
+
* // Before running the sample:
|
|
7880
|
+
* // - Enable the API at:
|
|
7881
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
7882
|
+
* // - Login into gcloud by running:
|
|
7883
|
+
* // ```sh
|
|
7884
|
+
* // $ gcloud auth application-default login
|
|
7885
|
+
* // ```
|
|
7886
|
+
* // - Install the npm module by running:
|
|
7887
|
+
* // ```sh
|
|
7888
|
+
* // $ npm install googleapis
|
|
7889
|
+
* // ```
|
|
7890
|
+
*
|
|
7891
|
+
* const {google} = require('googleapis');
|
|
7892
|
+
* const merchantapi = google.merchantapi('accounts_v1beta');
|
|
7893
|
+
*
|
|
7894
|
+
* async function main() {
|
|
7895
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7896
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7897
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
7898
|
+
* });
|
|
7899
|
+
*
|
|
7900
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7901
|
+
* const authClient = await auth.getClient();
|
|
7902
|
+
* google.options({auth: authClient});
|
|
7903
|
+
*
|
|
7904
|
+
* // Do the magic
|
|
7905
|
+
* const res = await merchantapi.accounts.users.me.verifySelf({
|
|
7906
|
+
* // Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
|
|
7907
|
+
* account: 'accounts/my-account',
|
|
7908
|
+
*
|
|
7909
|
+
* // Request body metadata
|
|
7910
|
+
* requestBody: {
|
|
7911
|
+
* // request body parameters
|
|
7912
|
+
* // {}
|
|
7913
|
+
* },
|
|
7914
|
+
* });
|
|
7915
|
+
* console.log(res.data);
|
|
7916
|
+
*
|
|
7917
|
+
* // Example response
|
|
7918
|
+
* // {
|
|
7919
|
+
* // "accessRights": [],
|
|
7920
|
+
* // "name": "my_name",
|
|
7921
|
+
* // "state": "my_state"
|
|
7922
|
+
* // }
|
|
7923
|
+
* }
|
|
7924
|
+
*
|
|
7925
|
+
* main().catch(e => {
|
|
7926
|
+
* console.error(e);
|
|
7927
|
+
* throw e;
|
|
7928
|
+
* });
|
|
7929
|
+
*
|
|
7930
|
+
* ```
|
|
7931
|
+
*
|
|
7932
|
+
* @param params - Parameters for request
|
|
7933
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7934
|
+
* @param callback - Optional callback that handles the response.
|
|
7935
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7936
|
+
*/
|
|
7937
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7938
|
+
verifySelf(params?: Params$Resource$Accounts$Users$Me$Verifyself, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
|
|
7939
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
7940
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
|
|
7941
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, callback: BodyResponseCallback<Schema$User>): void;
|
|
7942
|
+
verifySelf(callback: BodyResponseCallback<Schema$User>): void;
|
|
7943
|
+
}
|
|
7944
|
+
export interface Params$Resource$Accounts$Users$Me$Verifyself extends StandardParameters {
|
|
7945
|
+
/**
|
|
7946
|
+
* Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
|
|
7947
|
+
*/
|
|
7948
|
+
account?: string;
|
|
7949
|
+
/**
|
|
7950
|
+
* Request body metadata
|
|
7951
|
+
*/
|
|
7952
|
+
requestBody?: Schema$VerifySelfRequest;
|
|
7953
|
+
}
|
|
7760
7954
|
export class Resource$Termsofservice {
|
|
7761
7955
|
context: APIRequestContext;
|
|
7762
7956
|
constructor(context: APIRequestContext);
|
package/build/accounts_v1beta.js
CHANGED
|
@@ -2297,8 +2297,10 @@ var merchantapi_accounts_v1beta;
|
|
|
2297
2297
|
merchantapi_accounts_v1beta.Resource$Accounts$Termsofserviceagreementstates = Resource$Accounts$Termsofserviceagreementstates;
|
|
2298
2298
|
class Resource$Accounts$Users {
|
|
2299
2299
|
context;
|
|
2300
|
+
me;
|
|
2300
2301
|
constructor(context) {
|
|
2301
2302
|
this.context = context;
|
|
2303
|
+
this.me = new Resource$Accounts$Users$Me(this.context);
|
|
2302
2304
|
}
|
|
2303
2305
|
create(paramsOrCallback, optionsOrCallback, callback) {
|
|
2304
2306
|
let params = (paramsOrCallback ||
|
|
@@ -2462,6 +2464,45 @@ var merchantapi_accounts_v1beta;
|
|
|
2462
2464
|
}
|
|
2463
2465
|
}
|
|
2464
2466
|
merchantapi_accounts_v1beta.Resource$Accounts$Users = Resource$Accounts$Users;
|
|
2467
|
+
class Resource$Accounts$Users$Me {
|
|
2468
|
+
context;
|
|
2469
|
+
constructor(context) {
|
|
2470
|
+
this.context = context;
|
|
2471
|
+
}
|
|
2472
|
+
verifySelf(paramsOrCallback, optionsOrCallback, callback) {
|
|
2473
|
+
let params = (paramsOrCallback ||
|
|
2474
|
+
{});
|
|
2475
|
+
let options = (optionsOrCallback || {});
|
|
2476
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2477
|
+
callback = paramsOrCallback;
|
|
2478
|
+
params = {};
|
|
2479
|
+
options = {};
|
|
2480
|
+
}
|
|
2481
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2482
|
+
callback = optionsOrCallback;
|
|
2483
|
+
options = {};
|
|
2484
|
+
}
|
|
2485
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
2486
|
+
const parameters = {
|
|
2487
|
+
options: Object.assign({
|
|
2488
|
+
url: (rootUrl + '/accounts/v1beta/{+account}/users/me:verifySelf').replace(/([^:]\/)\/+/g, '$1'),
|
|
2489
|
+
method: 'PATCH',
|
|
2490
|
+
apiVersion: '',
|
|
2491
|
+
}, options),
|
|
2492
|
+
params,
|
|
2493
|
+
requiredParams: ['account'],
|
|
2494
|
+
pathParams: ['account'],
|
|
2495
|
+
context: this.context,
|
|
2496
|
+
};
|
|
2497
|
+
if (callback) {
|
|
2498
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
2499
|
+
}
|
|
2500
|
+
else {
|
|
2501
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
merchantapi_accounts_v1beta.Resource$Accounts$Users$Me = Resource$Accounts$Users$Me;
|
|
2465
2506
|
class Resource$Termsofservice {
|
|
2466
2507
|
context;
|
|
2467
2508
|
constructor(context) {
|