Skip to content

Commit 7417227

Browse files
1 parent 8ad37db commit 7417227

File tree

10 files changed

+333
-12
lines changed

10 files changed

+333
-12
lines changed

clients/google-api-services-merchantapi/products_v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-merchantapi</artifactId>
25-
<version>products_v1-rev20251002-2.0.0</version>
25+
<version>products_v1-rev20251007-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20251002-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20251007-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.merchantapi.products_v1.model;
18+
19+
/**
20+
* Configuration for offer or offer-country level shipping handling cutoff time.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class HandlingCutoffTime extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of
34+
* the country to which the handling cutoff time applies.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String country;
39+
40+
/**
41+
* The handling cutoff time until which an order has to be placed to be processed in the same day.
42+
* This is a string in format of HHMM (e.g. `1530`) for 3:30 PM. If not configured, the cutoff
43+
* time will be defaulted to 8AM PST.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String cutoffTime;
48+
49+
/**
50+
* [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-
51+
* formats#timezone-ids) For example 'Europe/Zurich'. If not set, the shipping destination
52+
* timezone will be used.
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.String cutoffTimezone;
57+
58+
/**
59+
* This field only applies to same-day delivery. If true, prevents next-day delivery from being
60+
* shown for this offer after the cutoff time. This field only applies to same-day delivery
61+
* offers, for merchants who want to explicitly disable it.
62+
* The value may be {@code null}.
63+
*/
64+
@com.google.api.client.util.Key
65+
private java.lang.Boolean disableDeliveryAfterCutoff;
66+
67+
/**
68+
* The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of
69+
* the country to which the handling cutoff time applies.
70+
* @return value or {@code null} for none
71+
*/
72+
public java.lang.String getCountry() {
73+
return country;
74+
}
75+
76+
/**
77+
* The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of
78+
* the country to which the handling cutoff time applies.
79+
* @param country country or {@code null} for none
80+
*/
81+
public HandlingCutoffTime setCountry(java.lang.String country) {
82+
this.country = country;
83+
return this;
84+
}
85+
86+
/**
87+
* The handling cutoff time until which an order has to be placed to be processed in the same day.
88+
* This is a string in format of HHMM (e.g. `1530`) for 3:30 PM. If not configured, the cutoff
89+
* time will be defaulted to 8AM PST.
90+
* @return value or {@code null} for none
91+
*/
92+
public java.lang.String getCutoffTime() {
93+
return cutoffTime;
94+
}
95+
96+
/**
97+
* The handling cutoff time until which an order has to be placed to be processed in the same day.
98+
* This is a string in format of HHMM (e.g. `1530`) for 3:30 PM. If not configured, the cutoff
99+
* time will be defaulted to 8AM PST.
100+
* @param cutoffTime cutoffTime or {@code null} for none
101+
*/
102+
public HandlingCutoffTime setCutoffTime(java.lang.String cutoffTime) {
103+
this.cutoffTime = cutoffTime;
104+
return this;
105+
}
106+
107+
/**
108+
* [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-
109+
* formats#timezone-ids) For example 'Europe/Zurich'. If not set, the shipping destination
110+
* timezone will be used.
111+
* @return value or {@code null} for none
112+
*/
113+
public java.lang.String getCutoffTimezone() {
114+
return cutoffTimezone;
115+
}
116+
117+
/**
118+
* [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-
119+
* formats#timezone-ids) For example 'Europe/Zurich'. If not set, the shipping destination
120+
* timezone will be used.
121+
* @param cutoffTimezone cutoffTimezone or {@code null} for none
122+
*/
123+
public HandlingCutoffTime setCutoffTimezone(java.lang.String cutoffTimezone) {
124+
this.cutoffTimezone = cutoffTimezone;
125+
return this;
126+
}
127+
128+
/**
129+
* This field only applies to same-day delivery. If true, prevents next-day delivery from being
130+
* shown for this offer after the cutoff time. This field only applies to same-day delivery
131+
* offers, for merchants who want to explicitly disable it.
132+
* @return value or {@code null} for none
133+
*/
134+
public java.lang.Boolean getDisableDeliveryAfterCutoff() {
135+
return disableDeliveryAfterCutoff;
136+
}
137+
138+
/**
139+
* This field only applies to same-day delivery. If true, prevents next-day delivery from being
140+
* shown for this offer after the cutoff time. This field only applies to same-day delivery
141+
* offers, for merchants who want to explicitly disable it.
142+
* @param disableDeliveryAfterCutoff disableDeliveryAfterCutoff or {@code null} for none
143+
*/
144+
public HandlingCutoffTime setDisableDeliveryAfterCutoff(java.lang.Boolean disableDeliveryAfterCutoff) {
145+
this.disableDeliveryAfterCutoff = disableDeliveryAfterCutoff;
146+
return this;
147+
}
148+
149+
@Override
150+
public HandlingCutoffTime set(String fieldName, Object value) {
151+
return (HandlingCutoffTime) super.set(fieldName, value);
152+
}
153+
154+
@Override
155+
public HandlingCutoffTime clone() {
156+
return (HandlingCutoffTime) super.clone();
157+
}
158+
159+
}

clients/google-api-services-merchantapi/products_v1/2.0.0/com/google/api/services/merchantapi/products_v1/model/ProductAttributes.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,19 @@ public final class ProductAttributes extends com.google.api.client.json.GenericJ
338338
@com.google.api.client.util.Key
339339
private java.util.List<java.lang.String> gtins;
340340

341+
/**
342+
* The handling cutoff times for shipping.
343+
* The value may be {@code null}.
344+
*/
345+
@com.google.api.client.util.Key
346+
private java.util.List<HandlingCutoffTime> handlingCutoffTimes;
347+
348+
static {
349+
// hack to force ProGuard to consider HandlingCutoffTime used, since otherwise it would be stripped out
350+
// see https://github.com/google/google-api-java-client/issues/543
351+
com.google.api.client.util.Data.nullOf(HandlingCutoffTime.class);
352+
}
353+
341354
/**
342355
* Set this value to false when the item does not have unique product identifiers appropriate to
343356
* its category, such as GTIN, MPN, and brand. Defaults to true, if not provided.
@@ -1467,6 +1480,23 @@ public ProductAttributes setGtins(java.util.List<java.lang.String> gtins) {
14671480
return this;
14681481
}
14691482

1483+
/**
1484+
* The handling cutoff times for shipping.
1485+
* @return value or {@code null} for none
1486+
*/
1487+
public java.util.List<HandlingCutoffTime> getHandlingCutoffTimes() {
1488+
return handlingCutoffTimes;
1489+
}
1490+
1491+
/**
1492+
* The handling cutoff times for shipping.
1493+
* @param handlingCutoffTimes handlingCutoffTimes or {@code null} for none
1494+
*/
1495+
public ProductAttributes setHandlingCutoffTimes(java.util.List<HandlingCutoffTime> handlingCutoffTimes) {
1496+
this.handlingCutoffTimes = handlingCutoffTimes;
1497+
return this;
1498+
}
1499+
14701500
/**
14711501
* Set this value to false when the item does not have unique product identifiers appropriate to
14721502
* its category, such as GTIN, MPN, and brand. Defaults to true, if not provided.

clients/google-api-services-merchantapi/products_v1/2.0.0/com/google/api/services/merchantapi/products_v1/model/Shipping.java

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,26 @@ public final class Shipping extends com.google.api.client.json.GenericJson {
3737
@com.google.api.client.util.Key
3838
private java.lang.String country;
3939

40+
/**
41+
* The handling cutoff time until which an order has to be placed to be processed in the same day.
42+
* This is a string in format of HHMM (e.g. `1530`) for 3:30 PM. If not configured, the cutoff
43+
* time will be defaulted to 8AM PST and `handling_cutoff_timezone` will be ignored.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String handlingCutoffTime;
48+
49+
/**
50+
* [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-
51+
* formats#timezone-ids) For example `Europe/Zurich`. This field only applies if
52+
* `handling_cutoff_time` is set. If `handling_cutoff_time` is set but this field is not set, the
53+
* shipping destination timezone will be used. If both fields are not set, the handling cutoff
54+
* time will default to 8AM PST.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String handlingCutoffTimezone;
59+
4060
/**
4161
* The location where the shipping is applicable, represented by a location group name.
4262
* The value may be {@code null}.
@@ -142,6 +162,52 @@ public Shipping setCountry(java.lang.String country) {
142162
return this;
143163
}
144164

165+
/**
166+
* The handling cutoff time until which an order has to be placed to be processed in the same day.
167+
* This is a string in format of HHMM (e.g. `1530`) for 3:30 PM. If not configured, the cutoff
168+
* time will be defaulted to 8AM PST and `handling_cutoff_timezone` will be ignored.
169+
* @return value or {@code null} for none
170+
*/
171+
public java.lang.String getHandlingCutoffTime() {
172+
return handlingCutoffTime;
173+
}
174+
175+
/**
176+
* The handling cutoff time until which an order has to be placed to be processed in the same day.
177+
* This is a string in format of HHMM (e.g. `1530`) for 3:30 PM. If not configured, the cutoff
178+
* time will be defaulted to 8AM PST and `handling_cutoff_timezone` will be ignored.
179+
* @param handlingCutoffTime handlingCutoffTime or {@code null} for none
180+
*/
181+
public Shipping setHandlingCutoffTime(java.lang.String handlingCutoffTime) {
182+
this.handlingCutoffTime = handlingCutoffTime;
183+
return this;
184+
}
185+
186+
/**
187+
* [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-
188+
* formats#timezone-ids) For example `Europe/Zurich`. This field only applies if
189+
* `handling_cutoff_time` is set. If `handling_cutoff_time` is set but this field is not set, the
190+
* shipping destination timezone will be used. If both fields are not set, the handling cutoff
191+
* time will default to 8AM PST.
192+
* @return value or {@code null} for none
193+
*/
194+
public java.lang.String getHandlingCutoffTimezone() {
195+
return handlingCutoffTimezone;
196+
}
197+
198+
/**
199+
* [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-
200+
* formats#timezone-ids) For example `Europe/Zurich`. This field only applies if
201+
* `handling_cutoff_time` is set. If `handling_cutoff_time` is set but this field is not set, the
202+
* shipping destination timezone will be used. If both fields are not set, the handling cutoff
203+
* time will default to 8AM PST.
204+
* @param handlingCutoffTimezone handlingCutoffTimezone or {@code null} for none
205+
*/
206+
public Shipping setHandlingCutoffTimezone(java.lang.String handlingCutoffTimezone) {
207+
this.handlingCutoffTimezone = handlingCutoffTimezone;
208+
return this;
209+
}
210+
145211
/**
146212
* The location where the shipping is applicable, represented by a location group name.
147213
* @return value or {@code null} for none

clients/google-api-services-merchantapi/products_v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-merchantapi</artifactId>
11-
<version>products_v1-rev20251002-2.0.0</version>
12-
<name>Merchant API products_v1-rev20251002-2.0.0</name>
11+
<version>products_v1-rev20251007-2.0.0</version>
12+
<name>Merchant API products_v1-rev20251007-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-merchantapi/products_v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-merchantapi</artifactId>
25-
<version>products_v1-rev20251002-2.0.0</version>
25+
<version>products_v1-rev20251007-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20251002-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20251007-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-merchantapi/products_v1beta/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-merchantapi</artifactId>
25-
<version>products_v1beta-rev20250811-2.0.0</version>
25+
<version>products_v1beta-rev20251007-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-merchantapi:products_v1beta-rev20250811-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:products_v1beta-rev20251007-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)