@googleapis/merchantapi 16.0.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/accounts_v1.ts +344 -140
- package/accounts_v1beta.ts +342 -136
- package/build/accounts_v1.d.ts +194 -0
- package/build/accounts_v1.js +41 -0
- 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 -14
- package/build/inventories_v1.js.map +1 -1
- package/build/inventories_v1beta.d.ts +14 -14
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1.d.ts +2 -2
- package/build/issueresolution_v1.js.map +1 -1
- package/build/issueresolution_v1beta.d.ts +2 -2
- 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 +9 -9
- package/build/products_v1.js.map +1 -1
- package/build/products_v1beta.d.ts +9 -9
- 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 -26
- package/inventories_v1beta.ts +20 -26
- package/issueresolution_v1.ts +6 -10
- package/issueresolution_v1beta.ts +6 -10
- 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 +14 -19
- package/products_v1beta.ts +14 -19
- 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
package/build/accounts_v1.d.ts
CHANGED
|
@@ -219,6 +219,10 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
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_v1 {
|
|
|
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_v1 {
|
|
|
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.
|
|
@@ -589,6 +617,11 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
589
617
|
*/
|
|
590
618
|
overwrite?: boolean | null;
|
|
591
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* `ComparisonShopping` payload.
|
|
622
|
+
*/
|
|
623
|
+
export interface Schema$ComparisonShopping {
|
|
624
|
+
}
|
|
592
625
|
/**
|
|
593
626
|
* Request message for the `CreateAndConfigureAccount` method.
|
|
594
627
|
*/
|
|
@@ -601,6 +634,10 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
601
634
|
* 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.
|
|
602
635
|
*/
|
|
603
636
|
service?: Schema$AddAccountService[];
|
|
637
|
+
/**
|
|
638
|
+
* 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.
|
|
639
|
+
*/
|
|
640
|
+
setAlias?: Schema$SetAliasForRelationship[];
|
|
604
641
|
/**
|
|
605
642
|
* Optional. Users to be added to the account.
|
|
606
643
|
*/
|
|
@@ -1005,6 +1042,19 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1005
1042
|
*/
|
|
1006
1043
|
allowStrictAvailabilityUpdates?: boolean | null;
|
|
1007
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* 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.
|
|
1047
|
+
*/
|
|
1048
|
+
export interface Schema$LatLng {
|
|
1049
|
+
/**
|
|
1050
|
+
* The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
1051
|
+
*/
|
|
1052
|
+
latitude?: number | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
1055
|
+
*/
|
|
1056
|
+
longitude?: number | null;
|
|
1057
|
+
}
|
|
1008
1058
|
/**
|
|
1009
1059
|
* Collection of information related to the LFP link.
|
|
1010
1060
|
*/
|
|
@@ -1631,6 +1681,27 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1631
1681
|
*/
|
|
1632
1682
|
provider?: string | null;
|
|
1633
1683
|
}
|
|
1684
|
+
/**
|
|
1685
|
+
* A radius area that defines the region area.
|
|
1686
|
+
*/
|
|
1687
|
+
export interface Schema$RadiusArea {
|
|
1688
|
+
/**
|
|
1689
|
+
* Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.
|
|
1690
|
+
*/
|
|
1691
|
+
latLng?: Schema$LatLng;
|
|
1692
|
+
/**
|
|
1693
|
+
* Required. The radius distance of the area.
|
|
1694
|
+
*/
|
|
1695
|
+
radius?: number | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Optional. The unit of the radius.
|
|
1698
|
+
*/
|
|
1699
|
+
radiusUnits?: string | null;
|
|
1700
|
+
/**
|
|
1701
|
+
* Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the radius area applies to.
|
|
1702
|
+
*/
|
|
1703
|
+
regionCode?: string | null;
|
|
1704
|
+
}
|
|
1634
1705
|
/**
|
|
1635
1706
|
* 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.
|
|
1636
1707
|
*/
|
|
@@ -1680,6 +1751,10 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1680
1751
|
* Optional. A list of postal codes that defines the region area.
|
|
1681
1752
|
*/
|
|
1682
1753
|
postalCodeArea?: Schema$PostalCodeArea;
|
|
1754
|
+
/**
|
|
1755
|
+
* Optional. A radius area that defines the region area.
|
|
1756
|
+
*/
|
|
1757
|
+
radiusArea?: Schema$RadiusArea;
|
|
1683
1758
|
/**
|
|
1684
1759
|
* Output only. Indicates if the region is eligible for use in the Regional Inventory configuration.
|
|
1685
1760
|
*/
|
|
@@ -1853,6 +1928,19 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1853
1928
|
*/
|
|
1854
1929
|
storeConfig?: Schema$StoreConfig;
|
|
1855
1930
|
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Set an alias for a relationship between a provider and the account to be created.
|
|
1933
|
+
*/
|
|
1934
|
+
export interface Schema$SetAliasForRelationship {
|
|
1935
|
+
/**
|
|
1936
|
+
* 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.
|
|
1937
|
+
*/
|
|
1938
|
+
accountIdAlias?: string | null;
|
|
1939
|
+
/**
|
|
1940
|
+
* 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.
|
|
1941
|
+
*/
|
|
1942
|
+
provider?: string | null;
|
|
1943
|
+
}
|
|
1856
1944
|
/**
|
|
1857
1945
|
* 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.
|
|
1858
1946
|
*/
|
|
@@ -2122,6 +2210,20 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
2122
2210
|
*/
|
|
2123
2211
|
subtable?: string | null;
|
|
2124
2212
|
}
|
|
2213
|
+
/**
|
|
2214
|
+
* Settings related to the verification email that is sent after adding a user.
|
|
2215
|
+
*/
|
|
2216
|
+
export interface Schema$VerificationMailSettings {
|
|
2217
|
+
/**
|
|
2218
|
+
* Optional. Mode of the verification mail. If not set, the default is `SEND_VERIFICATION_MAIL`.
|
|
2219
|
+
*/
|
|
2220
|
+
verificationMailMode?: string | null;
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
* Request message for the `VerifySelf` method.
|
|
2224
|
+
*/
|
|
2225
|
+
export interface Schema$VerifySelfRequest {
|
|
2226
|
+
}
|
|
2125
2227
|
/**
|
|
2126
2228
|
* A fulfillment warehouse, which stores and handles inventory.
|
|
2127
2229
|
*/
|
|
@@ -2248,6 +2350,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
2248
2350
|
* // {
|
|
2249
2351
|
* // "account": {},
|
|
2250
2352
|
* // "service": [],
|
|
2353
|
+
* // "setAlias": [],
|
|
2251
2354
|
* // "user": []
|
|
2252
2355
|
* // }
|
|
2253
2356
|
* },
|
|
@@ -6205,6 +6308,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6205
6308
|
* // "geotargetArea": {},
|
|
6206
6309
|
* // "name": "my_name",
|
|
6207
6310
|
* // "postalCodeArea": {},
|
|
6311
|
+
* // "radiusArea": {},
|
|
6208
6312
|
* // "regionalInventoryEligible": false,
|
|
6209
6313
|
* // "shippingEligible": false
|
|
6210
6314
|
* // }
|
|
@@ -6218,6 +6322,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6218
6322
|
* // "geotargetArea": {},
|
|
6219
6323
|
* // "name": "my_name",
|
|
6220
6324
|
* // "postalCodeArea": {},
|
|
6325
|
+
* // "radiusArea": {},
|
|
6221
6326
|
* // "regionalInventoryEligible": false,
|
|
6222
6327
|
* // "shippingEligible": false
|
|
6223
6328
|
* // }
|
|
@@ -6341,6 +6446,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6341
6446
|
* // "geotargetArea": {},
|
|
6342
6447
|
* // "name": "my_name",
|
|
6343
6448
|
* // "postalCodeArea": {},
|
|
6449
|
+
* // "radiusArea": {},
|
|
6344
6450
|
* // "regionalInventoryEligible": false,
|
|
6345
6451
|
* // "shippingEligible": false
|
|
6346
6452
|
* // }
|
|
@@ -6473,6 +6579,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6473
6579
|
* // "geotargetArea": {},
|
|
6474
6580
|
* // "name": "my_name",
|
|
6475
6581
|
* // "postalCodeArea": {},
|
|
6582
|
+
* // "radiusArea": {},
|
|
6476
6583
|
* // "regionalInventoryEligible": false,
|
|
6477
6584
|
* // "shippingEligible": false
|
|
6478
6585
|
* // }
|
|
@@ -6486,6 +6593,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6486
6593
|
* // "geotargetArea": {},
|
|
6487
6594
|
* // "name": "my_name",
|
|
6488
6595
|
* // "postalCodeArea": {},
|
|
6596
|
+
* // "radiusArea": {},
|
|
6489
6597
|
* // "regionalInventoryEligible": false,
|
|
6490
6598
|
* // "shippingEligible": false
|
|
6491
6599
|
* // }
|
|
@@ -6886,6 +6994,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6886
6994
|
* // "accountAggregation": {},
|
|
6887
6995
|
* // "accountManagement": {},
|
|
6888
6996
|
* // "campaignsManagement": {},
|
|
6997
|
+
* // "comparisonShopping": {},
|
|
6889
6998
|
* // "externalAccountId": "my_externalAccountId",
|
|
6890
6999
|
* // "handshake": {},
|
|
6891
7000
|
* // "localListingManagement": {},
|
|
@@ -6956,6 +7065,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6956
7065
|
* // "accountAggregation": {},
|
|
6957
7066
|
* // "accountManagement": {},
|
|
6958
7067
|
* // "campaignsManagement": {},
|
|
7068
|
+
* // "comparisonShopping": {},
|
|
6959
7069
|
* // "externalAccountId": "my_externalAccountId",
|
|
6960
7070
|
* // "handshake": {},
|
|
6961
7071
|
* // "localListingManagement": {},
|
|
@@ -7100,6 +7210,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
7100
7210
|
* // "accountAggregation": {},
|
|
7101
7211
|
* // "accountManagement": {},
|
|
7102
7212
|
* // "campaignsManagement": {},
|
|
7213
|
+
* // "comparisonShopping": {},
|
|
7103
7214
|
* // "externalAccountId": "my_externalAccountId",
|
|
7104
7215
|
* // "handshake": {},
|
|
7105
7216
|
* // "localListingManagement": {},
|
|
@@ -7550,6 +7661,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
7550
7661
|
}
|
|
7551
7662
|
export class Resource$Accounts$Users {
|
|
7552
7663
|
context: APIRequestContext;
|
|
7664
|
+
me: Resource$Accounts$Users$Me;
|
|
7553
7665
|
constructor(context: APIRequestContext);
|
|
7554
7666
|
/**
|
|
7555
7667
|
* Creates a Merchant Center account user. Executing this method requires admin access.
|
|
@@ -7939,6 +8051,88 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
7939
8051
|
*/
|
|
7940
8052
|
requestBody?: Schema$User;
|
|
7941
8053
|
}
|
|
8054
|
+
export class Resource$Accounts$Users$Me {
|
|
8055
|
+
context: APIRequestContext;
|
|
8056
|
+
constructor(context: APIRequestContext);
|
|
8057
|
+
/**
|
|
8058
|
+
* Updates the user that is represented by the caller from pending to verified.
|
|
8059
|
+
* @example
|
|
8060
|
+
* ```js
|
|
8061
|
+
* // Before running the sample:
|
|
8062
|
+
* // - Enable the API at:
|
|
8063
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
8064
|
+
* // - Login into gcloud by running:
|
|
8065
|
+
* // ```sh
|
|
8066
|
+
* // $ gcloud auth application-default login
|
|
8067
|
+
* // ```
|
|
8068
|
+
* // - Install the npm module by running:
|
|
8069
|
+
* // ```sh
|
|
8070
|
+
* // $ npm install googleapis
|
|
8071
|
+
* // ```
|
|
8072
|
+
*
|
|
8073
|
+
* const {google} = require('googleapis');
|
|
8074
|
+
* const merchantapi = google.merchantapi('accounts_v1');
|
|
8075
|
+
*
|
|
8076
|
+
* async function main() {
|
|
8077
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8078
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8079
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
8080
|
+
* });
|
|
8081
|
+
*
|
|
8082
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8083
|
+
* const authClient = await auth.getClient();
|
|
8084
|
+
* google.options({auth: authClient});
|
|
8085
|
+
*
|
|
8086
|
+
* // Do the magic
|
|
8087
|
+
* const res = await merchantapi.accounts.users.me.verifySelf({
|
|
8088
|
+
* // Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
|
|
8089
|
+
* account: 'accounts/my-account',
|
|
8090
|
+
*
|
|
8091
|
+
* // Request body metadata
|
|
8092
|
+
* requestBody: {
|
|
8093
|
+
* // request body parameters
|
|
8094
|
+
* // {}
|
|
8095
|
+
* },
|
|
8096
|
+
* });
|
|
8097
|
+
* console.log(res.data);
|
|
8098
|
+
*
|
|
8099
|
+
* // Example response
|
|
8100
|
+
* // {
|
|
8101
|
+
* // "accessRights": [],
|
|
8102
|
+
* // "name": "my_name",
|
|
8103
|
+
* // "state": "my_state"
|
|
8104
|
+
* // }
|
|
8105
|
+
* }
|
|
8106
|
+
*
|
|
8107
|
+
* main().catch(e => {
|
|
8108
|
+
* console.error(e);
|
|
8109
|
+
* throw e;
|
|
8110
|
+
* });
|
|
8111
|
+
*
|
|
8112
|
+
* ```
|
|
8113
|
+
*
|
|
8114
|
+
* @param params - Parameters for request
|
|
8115
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8116
|
+
* @param callback - Optional callback that handles the response.
|
|
8117
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8118
|
+
*/
|
|
8119
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
8120
|
+
verifySelf(params?: Params$Resource$Accounts$Users$Me$Verifyself, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
|
|
8121
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
8122
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
|
|
8123
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, callback: BodyResponseCallback<Schema$User>): void;
|
|
8124
|
+
verifySelf(callback: BodyResponseCallback<Schema$User>): void;
|
|
8125
|
+
}
|
|
8126
|
+
export interface Params$Resource$Accounts$Users$Me$Verifyself extends StandardParameters {
|
|
8127
|
+
/**
|
|
8128
|
+
* Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
|
|
8129
|
+
*/
|
|
8130
|
+
account?: string;
|
|
8131
|
+
/**
|
|
8132
|
+
* Request body metadata
|
|
8133
|
+
*/
|
|
8134
|
+
requestBody?: Schema$VerifySelfRequest;
|
|
8135
|
+
}
|
|
7942
8136
|
export class Resource$Termsofservice {
|
|
7943
8137
|
context: APIRequestContext;
|
|
7944
8138
|
constructor(context: APIRequestContext);
|
package/build/accounts_v1.js
CHANGED
|
@@ -2361,8 +2361,10 @@ var merchantapi_accounts_v1;
|
|
|
2361
2361
|
merchantapi_accounts_v1.Resource$Accounts$Termsofserviceagreementstates = Resource$Accounts$Termsofserviceagreementstates;
|
|
2362
2362
|
class Resource$Accounts$Users {
|
|
2363
2363
|
context;
|
|
2364
|
+
me;
|
|
2364
2365
|
constructor(context) {
|
|
2365
2366
|
this.context = context;
|
|
2367
|
+
this.me = new Resource$Accounts$Users$Me(this.context);
|
|
2366
2368
|
}
|
|
2367
2369
|
create(paramsOrCallback, optionsOrCallback, callback) {
|
|
2368
2370
|
let params = (paramsOrCallback ||
|
|
@@ -2526,6 +2528,45 @@ var merchantapi_accounts_v1;
|
|
|
2526
2528
|
}
|
|
2527
2529
|
}
|
|
2528
2530
|
merchantapi_accounts_v1.Resource$Accounts$Users = Resource$Accounts$Users;
|
|
2531
|
+
class Resource$Accounts$Users$Me {
|
|
2532
|
+
context;
|
|
2533
|
+
constructor(context) {
|
|
2534
|
+
this.context = context;
|
|
2535
|
+
}
|
|
2536
|
+
verifySelf(paramsOrCallback, optionsOrCallback, callback) {
|
|
2537
|
+
let params = (paramsOrCallback ||
|
|
2538
|
+
{});
|
|
2539
|
+
let options = (optionsOrCallback || {});
|
|
2540
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2541
|
+
callback = paramsOrCallback;
|
|
2542
|
+
params = {};
|
|
2543
|
+
options = {};
|
|
2544
|
+
}
|
|
2545
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2546
|
+
callback = optionsOrCallback;
|
|
2547
|
+
options = {};
|
|
2548
|
+
}
|
|
2549
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
2550
|
+
const parameters = {
|
|
2551
|
+
options: Object.assign({
|
|
2552
|
+
url: (rootUrl + '/accounts/v1/{+account}/users/me:verifySelf').replace(/([^:]\/)\/+/g, '$1'),
|
|
2553
|
+
method: 'PATCH',
|
|
2554
|
+
apiVersion: '',
|
|
2555
|
+
}, options),
|
|
2556
|
+
params,
|
|
2557
|
+
requiredParams: ['account'],
|
|
2558
|
+
pathParams: ['account'],
|
|
2559
|
+
context: this.context,
|
|
2560
|
+
};
|
|
2561
|
+
if (callback) {
|
|
2562
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
2563
|
+
}
|
|
2564
|
+
else {
|
|
2565
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
merchantapi_accounts_v1.Resource$Accounts$Users$Me = Resource$Accounts$Users$Me;
|
|
2529
2570
|
class Resource$Termsofservice {
|
|
2530
2571
|
context;
|
|
2531
2572
|
constructor(context) {
|