@maxim_mazurok/gapi.client.merchantapi-products_v1 0.0.20250924 → 0.0.20251002
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 +31 -1
- 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=products_v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251002
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -36,6 +36,34 @@ declare namespace gapi.client {
|
|
|
36
36
|
/** The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available. */
|
|
37
37
|
priorPriceProgressive?: Price;
|
|
38
38
|
}
|
|
39
|
+
interface CarrierShipping {
|
|
40
|
+
/** Selected carrier to calculate the shipping price from. Select a carrier from the [available carriers list](https://support.google.com/merchants/answer/15449142#Supported), for example `AUSTRALIA_POST_REGULAR`. Price will be calculated by this selected carrier, the location expressed in originPostalCode, along with the user location to determine the accurate shipping price. Carrier is represented by a carrier service name or a carrier service ID. Cannot be set together with flatPrice. */
|
|
41
|
+
carrierPrice?: string;
|
|
42
|
+
/** A flat adjustment on the carrier price. Can be either positive or negative. Cannot be zero. Requires `carrier_price` to be present. Cannot be set together with flatPrice and carrierPricePercentageAdjustment. */
|
|
43
|
+
carrierPriceFlatAdjustment?: Price;
|
|
44
|
+
/** A percentual adjustment on the carrier price. Can be either positive or negative. Cannot be zero. Requires `carrier_price` to be present. Cannot be set together with flatPrice and carrierPriceFlatAdjustment. */
|
|
45
|
+
carrierPricePercentageAdjustment?: number;
|
|
46
|
+
/** Selected carrier to calculate the shipping speed from. Select a carrier from the [available carriers list](https://support.google.com/merchants/answer/15449142#Supported), for example `AUSTRALIA_POST_REGULAR`. Speed will be calculated by this selected carrier, the location expressed in originPostalCode, along with the user location to determine the accurate delivery speed. Carrier is represented by a carrier service name or a carrier service ID. Cannot be set together with fixedMaxTransitTime or fixedMinTransitTime. */
|
|
47
|
+
carrierTransitTime?: string;
|
|
48
|
+
/** The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of the country to which an item will ship. */
|
|
49
|
+
country?: string;
|
|
50
|
+
/** Maximum transit time (inclusive) between when the order has shipped and when it is delivered in business days. 0 means that the order is delivered on the same day as it ships. Needs to be provided together with maxHandlingTime. Cannot be set if carrierTransitTime is present. */
|
|
51
|
+
fixedMaxTransitTime?: string;
|
|
52
|
+
/** Minimum transit time (inclusive) between when the order has shipped and when it is delivered in business days. 0 means that the order is delivered on the same day as it ships. fixedMinTransitTime can only be set if fixedMaxTransitTime is set. Cannot be set if carrierTransitTime is present. */
|
|
53
|
+
fixedMinTransitTime?: string;
|
|
54
|
+
/** Fixed shipping price, represented as a number with currency. Cannot be set together with carrierPrice or its adjustments (carrierPriceFlatAdjustment, carrierPricePercentageAdjustment). */
|
|
55
|
+
flatPrice?: Price;
|
|
56
|
+
/** Maximum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it is received if it happens before the cut-off time. Both maxHandlingTime and fixedMaxTransitTime or carrierTransitTime are required if providing shipping speeds. */
|
|
57
|
+
maxHandlingTime?: string;
|
|
58
|
+
/** Minimum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it is received if it happens before the cut-off time. minHandlingTime can only be set if maxHandlingTime is also set. */
|
|
59
|
+
minHandlingTime?: string;
|
|
60
|
+
/** The source location postal code from which this offer ships. Represented only by a full-length postal code. */
|
|
61
|
+
originPostalCode?: string;
|
|
62
|
+
/** The postal code range that the shipping rate applies to, represented by a postal code (eg. `94043`), a postal code prefix followed by a * wildcard (eg. `94*`), a range between two postal codes (eg. `94043-98033`) or two postal code prefixes of equal length (eg. `94*-98*`). */
|
|
63
|
+
postalCode?: string;
|
|
64
|
+
/** The geographic region to which a shipping rate applies. See [region](https://support.google.com/merchants/answer/6324484) for more information. */
|
|
65
|
+
region?: string;
|
|
66
|
+
}
|
|
39
67
|
interface CloudExportAdditionalProperties {
|
|
40
68
|
/** Boolean value of the given property. For example for a TV product, "True" or "False" if the screen is UHD. */
|
|
41
69
|
boolValue?: boolean;
|
|
@@ -188,6 +216,8 @@ declare namespace gapi.client {
|
|
|
188
216
|
brand?: string;
|
|
189
217
|
/** URL for the canonical version of your item's landing page. */
|
|
190
218
|
canonicalLink?: string;
|
|
219
|
+
/** Rules for carrier-based shipping. */
|
|
220
|
+
carrierShipping?: CarrierShipping[];
|
|
191
221
|
/** Product Certifications, for example for energy efficiency labeling of products recorded in the [EU EPREL](https://eprel.ec.europa.eu/screen/home) database. See the [Help Center](https://support.google.com/merchants/answer/13528839) article for more information. */
|
|
192
222
|
certifications?: ProductCertification[];
|
|
193
223
|
/** Extra fields to export to the Cloud Retail program. */
|