@maxim_mazurok/gapi.client.merchantapi-accounts_v1 0.0.20251115 → 0.0.20251120
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/index.d.ts +19 -82
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://merchantapi.googleapis.com/$discovery/rest?version=accounts_v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251120
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -77,12 +77,6 @@ declare namespace gapi.client {
|
|
|
77
77
|
/** The localized title of the issue. */
|
|
78
78
|
title?: string;
|
|
79
79
|
}
|
|
80
|
-
interface AccountLimit {
|
|
81
|
-
/** Identifier. The limit part of the name will be a combination of the type and the scope. For example: `accounts/123/limits/products~ADS_NON_EEA` Format: `accounts/{account}/limits/{limit}` */
|
|
82
|
-
name?: string;
|
|
83
|
-
/** The limit for products. */
|
|
84
|
-
products?: ProductLimit;
|
|
85
|
-
}
|
|
86
80
|
interface AccountManagement {}
|
|
87
81
|
interface AccountRelationship {
|
|
88
82
|
/** Optional. An optional alias you can assign to this account relationship. This alias acts as a convenient identifier for your own reference and management. It must be unique among all your account relationships with the same provider. For example, you might use `account_id_alias` to assign a friendly name to this relationship for easier identification in your systems. */
|
|
@@ -482,6 +476,12 @@ declare namespace gapi.client {
|
|
|
482
476
|
/** If `allow_availability_updates` is enabled, items are automatically updated in all your Shopping target countries. By default, availability updates will only be applied to items that are 'out of stock' on your website but 'in stock' on Shopping. Set this to true to also update items that are 'in stock' on your website, but 'out of stock' on Google Shopping. In order for this field to have an effect, you must also set `allow_availability_updates`. */
|
|
483
477
|
allowStrictAvailabilityUpdates?: boolean;
|
|
484
478
|
}
|
|
479
|
+
interface LatLng {
|
|
480
|
+
/** The latitude in degrees. It must be in the range [-90.0, +90.0]. */
|
|
481
|
+
latitude?: number;
|
|
482
|
+
/** The longitude in degrees. It must be in the range [-180.0, +180.0]. */
|
|
483
|
+
longitude?: number;
|
|
484
|
+
}
|
|
485
485
|
interface LfpLink {
|
|
486
486
|
/** Required. The account ID by which this merchant is known to the LFP provider. */
|
|
487
487
|
externalAccountId?: string;
|
|
@@ -520,12 +520,6 @@ declare namespace gapi.client {
|
|
|
520
520
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
521
521
|
nextPageToken?: string;
|
|
522
522
|
}
|
|
523
|
-
interface ListAccountLimitsResponse {
|
|
524
|
-
/** The limits for the given account. */
|
|
525
|
-
accountLimits?: AccountLimit[];
|
|
526
|
-
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
527
|
-
nextPageToken?: string;
|
|
528
|
-
}
|
|
529
523
|
interface ListAccountRelationshipsResponse {
|
|
530
524
|
/** The account relationships that match your filter. */
|
|
531
525
|
accountRelationships?: AccountRelationship[];
|
|
@@ -741,12 +735,6 @@ declare namespace gapi.client {
|
|
|
741
735
|
/** 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) */
|
|
742
736
|
reportingContext?: string;
|
|
743
737
|
}
|
|
744
|
-
interface ProductLimit {
|
|
745
|
-
/** Required. The maximum number of products that are allowed in the account in the given scope. */
|
|
746
|
-
limit?: string;
|
|
747
|
-
/** Required. The scope of the product limit. */
|
|
748
|
-
scope?: string;
|
|
749
|
-
}
|
|
750
738
|
interface ProductsManagement {}
|
|
751
739
|
interface ProductStatusChangeMessage {
|
|
752
740
|
/** The target account that owns the entity that changed. Format : `accounts/{merchant_id}` */
|
|
@@ -786,6 +774,16 @@ declare namespace gapi.client {
|
|
|
786
774
|
/** 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`). */
|
|
787
775
|
provider?: string;
|
|
788
776
|
}
|
|
777
|
+
interface RadiusArea {
|
|
778
|
+
/** Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format. */
|
|
779
|
+
latLng?: LatLng;
|
|
780
|
+
/** Required. The radius distance of the area. */
|
|
781
|
+
radius?: number;
|
|
782
|
+
/** Optional. The unit of the radius. */
|
|
783
|
+
radiusUnits?: string;
|
|
784
|
+
/** Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the radius area applies to. */
|
|
785
|
+
regionCode?: string;
|
|
786
|
+
}
|
|
789
787
|
interface RateGroup {
|
|
790
788
|
/** Required. A list of [shipping labels](https://support.google.com/merchants/answer/6324504) defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. */
|
|
791
789
|
applicableShippingLabels?: string[];
|
|
@@ -809,6 +807,8 @@ declare namespace gapi.client {
|
|
|
809
807
|
name?: string;
|
|
810
808
|
/** Optional. A list of postal codes that defines the region area. */
|
|
811
809
|
postalCodeArea?: PostalCodeArea;
|
|
810
|
+
/** Optional. A radius area that defines the region area. */
|
|
811
|
+
radiusArea?: RadiusArea;
|
|
812
812
|
/** Output only. Indicates if the region is eligible for use in the Regional Inventory configuration. */
|
|
813
813
|
regionalInventoryEligible?: boolean;
|
|
814
814
|
/** Output only. Indicates if the region is eligible for use in the Shipping Services configuration. */
|
|
@@ -2017,68 +2017,6 @@ declare namespace gapi.client {
|
|
|
2017
2017
|
uploadType?: string;
|
|
2018
2018
|
}): Request<ListAccountIssuesResponse>;
|
|
2019
2019
|
}
|
|
2020
|
-
interface LimitsResource {
|
|
2021
|
-
/** Retrieves an account limit. */
|
|
2022
|
-
get(request?: {
|
|
2023
|
-
/** V1 error format. */
|
|
2024
|
-
'$.xgafv'?: string;
|
|
2025
|
-
/** OAuth access token. */
|
|
2026
|
-
access_token?: string;
|
|
2027
|
-
/** Data format for response. */
|
|
2028
|
-
alt?: string;
|
|
2029
|
-
/** JSONP */
|
|
2030
|
-
callback?: string;
|
|
2031
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2032
|
-
fields?: string;
|
|
2033
|
-
/** 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. */
|
|
2034
|
-
key?: string;
|
|
2035
|
-
/** Required. The name of the limit to retrieve. Format: `accounts/{account}/limits/{limit}` For example: `accounts/123/limits/products~ADS_NON_EEA` */
|
|
2036
|
-
name: string;
|
|
2037
|
-
/** OAuth 2.0 token for the current user. */
|
|
2038
|
-
oauth_token?: string;
|
|
2039
|
-
/** Returns response with indentations and line breaks. */
|
|
2040
|
-
prettyPrint?: boolean;
|
|
2041
|
-
/** 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. */
|
|
2042
|
-
quotaUser?: string;
|
|
2043
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2044
|
-
upload_protocol?: string;
|
|
2045
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2046
|
-
uploadType?: string;
|
|
2047
|
-
}): Request<AccountLimit>;
|
|
2048
|
-
/** Lists the limits of an account. */
|
|
2049
|
-
list(request?: {
|
|
2050
|
-
/** V1 error format. */
|
|
2051
|
-
'$.xgafv'?: string;
|
|
2052
|
-
/** OAuth access token. */
|
|
2053
|
-
access_token?: string;
|
|
2054
|
-
/** Data format for response. */
|
|
2055
|
-
alt?: string;
|
|
2056
|
-
/** JSONP */
|
|
2057
|
-
callback?: string;
|
|
2058
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2059
|
-
fields?: string;
|
|
2060
|
-
/** Required. A filter on the limit `type` is required, for example, `type = "products"`. */
|
|
2061
|
-
filter?: string;
|
|
2062
|
-
/** 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. */
|
|
2063
|
-
key?: string;
|
|
2064
|
-
/** OAuth 2.0 token for the current user. */
|
|
2065
|
-
oauth_token?: string;
|
|
2066
|
-
/** Optional. The maximum number of limits to return. The service may return fewer than this value. If unspecified, at most 100 limits will be returned. The maximum value is 100; values above 100 will be coerced to 100. */
|
|
2067
|
-
pageSize?: number;
|
|
2068
|
-
/** Optional. A page token, received from a previous `ListAccountLimits` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLimits` must match the call that provided the page token. */
|
|
2069
|
-
pageToken?: string;
|
|
2070
|
-
/** Required. The parent account. Format: `accounts/{account}` */
|
|
2071
|
-
parent: string;
|
|
2072
|
-
/** Returns response with indentations and line breaks. */
|
|
2073
|
-
prettyPrint?: boolean;
|
|
2074
|
-
/** 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. */
|
|
2075
|
-
quotaUser?: string;
|
|
2076
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2077
|
-
upload_protocol?: string;
|
|
2078
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2079
|
-
uploadType?: string;
|
|
2080
|
-
}): Request<ListAccountLimitsResponse>;
|
|
2081
|
-
}
|
|
2082
2020
|
interface LfpProvidersResource {
|
|
2083
2021
|
/** Find the LFP provider candidates in a given country. */
|
|
2084
2022
|
find(request?: {
|
|
@@ -4307,7 +4245,6 @@ declare namespace gapi.client {
|
|
|
4307
4245
|
gbpAccounts: GbpAccountsResource;
|
|
4308
4246
|
homepage: HomepageResource;
|
|
4309
4247
|
issues: IssuesResource;
|
|
4310
|
-
limits: LimitsResource;
|
|
4311
4248
|
omnichannelSettings: OmnichannelSettingsResource;
|
|
4312
4249
|
onlineReturnPolicies: OnlineReturnPoliciesResource;
|
|
4313
4250
|
programs: ProgramsResource;
|