@maxim_mazurok/gapi.client.merchantapi-products_v1 0.0.20250925 → 0.0.20251007
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 +47 -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: 20251007
|
|
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;
|
|
@@ -79,6 +107,16 @@ declare namespace gapi.client {
|
|
|
79
107
|
/** The minimum product price for the shipping cost to become free. Represented as a number. */
|
|
80
108
|
priceThreshold?: Price;
|
|
81
109
|
}
|
|
110
|
+
interface HandlingCutoffTime {
|
|
111
|
+
/** The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of the country to which the handling cutoff time applies. */
|
|
112
|
+
country?: string;
|
|
113
|
+
/** The handling cutoff time until which an order has to be placed to be processed in the same day. This is a string in format of HHMM (e.g. `1530`) for 3:30 PM. If not configured, the cutoff time will be defaulted to 8AM PST. */
|
|
114
|
+
cutoffTime?: string;
|
|
115
|
+
/** [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids) For example 'Europe/Zurich'. If not set, the shipping destination timezone will be used. */
|
|
116
|
+
cutoffTimezone?: string;
|
|
117
|
+
/** This field only applies to same-day delivery. If true, prevents next-day delivery from being shown for this offer after the cutoff time. This field only applies to same-day delivery offers, for merchants who want to explicitly disable it. */
|
|
118
|
+
disableDeliveryAfterCutoff?: boolean;
|
|
119
|
+
}
|
|
82
120
|
interface Interval {
|
|
83
121
|
/** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. */
|
|
84
122
|
endTime?: string;
|
|
@@ -188,6 +226,8 @@ declare namespace gapi.client {
|
|
|
188
226
|
brand?: string;
|
|
189
227
|
/** URL for the canonical version of your item's landing page. */
|
|
190
228
|
canonicalLink?: string;
|
|
229
|
+
/** Rules for carrier-based shipping. */
|
|
230
|
+
carrierShipping?: CarrierShipping[];
|
|
191
231
|
/** 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
232
|
certifications?: ProductCertification[];
|
|
193
233
|
/** Extra fields to export to the Cloud Retail program. */
|
|
@@ -238,6 +278,8 @@ declare namespace gapi.client {
|
|
|
238
278
|
googleProductCategory?: string;
|
|
239
279
|
/** Global Trade Item Numbers ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the item. You can provide up to 10 GTINs. */
|
|
240
280
|
gtins?: string[];
|
|
281
|
+
/** The handling cutoff times for shipping. */
|
|
282
|
+
handlingCutoffTimes?: HandlingCutoffTime[];
|
|
241
283
|
/** Set this value to false when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Defaults to true, if not provided. */
|
|
242
284
|
identifierExists?: boolean;
|
|
243
285
|
/** URL of an image of the item. */
|
|
@@ -464,6 +506,10 @@ declare namespace gapi.client {
|
|
|
464
506
|
interface Shipping {
|
|
465
507
|
/** 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. */
|
|
466
508
|
country?: string;
|
|
509
|
+
/** The handling cutoff time until which an order has to be placed to be processed in the same day. This is a string in format of HHMM (e.g. `1530`) for 3:30 PM. If not configured, the cutoff time will be defaulted to 8AM PST and `handling_cutoff_timezone` will be ignored. */
|
|
510
|
+
handlingCutoffTime?: string;
|
|
511
|
+
/** [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids) For example `Europe/Zurich`. This field only applies if `handling_cutoff_time` is set. If `handling_cutoff_time` is set but this field is not set, the shipping destination timezone will be used. If both fields are not set, the handling cutoff time will default to 8AM PST. */
|
|
512
|
+
handlingCutoffTimezone?: string;
|
|
467
513
|
/** The location where the shipping is applicable, represented by a location group name. */
|
|
468
514
|
locationGroupName?: string;
|
|
469
515
|
/** The numeric ID of a location that the shipping rate applies to as defined in the [AdWords API](https://developers.google.com/adwords/api/docs/appendix/geotargeting). */
|