Skip to content

Commit c9b52c1

Browse files
1 parent d9cc121 commit c9b52c1

15 files changed

Lines changed: 399 additions & 54 deletions

File tree

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-rev20260611-2.0.0</version>
25+
<version>products_v1-rev20260715-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-rev20260611-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20260715-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,13 @@ public final class ProductAttributes extends com.google.api.client.json.GenericJ
874874
@com.google.api.client.util.Key
875875
private java.lang.String returnPolicyLabel;
876876

877+
/**
878+
* Optional. [Return rules](https://support.google.com/merchants/answer/17081382) for the product.
879+
* The value may be {@code null}.
880+
*/
881+
@com.google.api.client.util.Key
882+
private java.util.List<Returns> returns;
883+
877884
/**
878885
* Advertised sale price of the item.
879886
* The value may be {@code null}.
@@ -3120,6 +3127,23 @@ public ProductAttributes setReturnPolicyLabel(java.lang.String returnPolicyLabel
31203127
return this;
31213128
}
31223129

3130+
/**
3131+
* Optional. [Return rules](https://support.google.com/merchants/answer/17081382) for the product.
3132+
* @return value or {@code null} for none
3133+
*/
3134+
public java.util.List<Returns> getReturns() {
3135+
return returns;
3136+
}
3137+
3138+
/**
3139+
* Optional. [Return rules](https://support.google.com/merchants/answer/17081382) for the product.
3140+
* @param returns returns or {@code null} for none
3141+
*/
3142+
public ProductAttributes setReturns(java.util.List<Returns> returns) {
3143+
this.returns = returns;
3144+
return this;
3145+
}
3146+
31233147
/**
31243148
* Advertised sale price of the item.
31253149
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,309 @@
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+
* The returns of the product.
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 Returns 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 countries to which an item can be returned.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<java.lang.String> countries;
39+
40+
/**
41+
* The condition the item must be in to be accepted.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<java.lang.String> itemConditions;
46+
47+
/**
48+
* The physical methods by which the item can be returned.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.util.List<java.lang.String> methods;
53+
54+
/**
55+
* The financial outcomes available for a return.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.util.List<java.lang.String> outcomes;
60+
61+
/**
62+
* The URL of the return policy.
63+
* The value may be {@code null}.
64+
*/
65+
@com.google.api.client.util.Key
66+
private java.lang.String policyUrl;
67+
68+
/**
69+
* A flat restocking fee penalty.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key
73+
private Price restockingFee;
74+
75+
/**
76+
* A percentage restocking fee penalty.
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private java.lang.Double restockingPercentageFee;
81+
82+
/**
83+
* The fixed cost out-of-pocket for a customer to return an item.
84+
* The value may be {@code null}.
85+
*/
86+
@com.google.api.client.util.Key
87+
private Price shippingFee;
88+
89+
/**
90+
* The type of return shipping fee.
91+
* The value may be {@code null}.
92+
*/
93+
@com.google.api.client.util.Key
94+
private java.lang.String shippingFeeType;
95+
96+
/**
97+
* The duration of the return window in days.
98+
* The value may be {@code null}.
99+
*/
100+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
101+
private java.lang.Long windowDays;
102+
103+
/**
104+
* Special return window behavior.
105+
* The value may be {@code null}.
106+
*/
107+
@com.google.api.client.util.Key
108+
private java.lang.String windowType;
109+
110+
/**
111+
* The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of
112+
* the countries to which an item can be returned.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.util.List<java.lang.String> getCountries() {
116+
return countries;
117+
}
118+
119+
/**
120+
* The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of
121+
* the countries to which an item can be returned.
122+
* @param countries countries or {@code null} for none
123+
*/
124+
public Returns setCountries(java.util.List<java.lang.String> countries) {
125+
this.countries = countries;
126+
return this;
127+
}
128+
129+
/**
130+
* The condition the item must be in to be accepted.
131+
* @return value or {@code null} for none
132+
*/
133+
public java.util.List<java.lang.String> getItemConditions() {
134+
return itemConditions;
135+
}
136+
137+
/**
138+
* The condition the item must be in to be accepted.
139+
* @param itemConditions itemConditions or {@code null} for none
140+
*/
141+
public Returns setItemConditions(java.util.List<java.lang.String> itemConditions) {
142+
this.itemConditions = itemConditions;
143+
return this;
144+
}
145+
146+
/**
147+
* The physical methods by which the item can be returned.
148+
* @return value or {@code null} for none
149+
*/
150+
public java.util.List<java.lang.String> getMethods() {
151+
return methods;
152+
}
153+
154+
/**
155+
* The physical methods by which the item can be returned.
156+
* @param methods methods or {@code null} for none
157+
*/
158+
public Returns setMethods(java.util.List<java.lang.String> methods) {
159+
this.methods = methods;
160+
return this;
161+
}
162+
163+
/**
164+
* The financial outcomes available for a return.
165+
* @return value or {@code null} for none
166+
*/
167+
public java.util.List<java.lang.String> getOutcomes() {
168+
return outcomes;
169+
}
170+
171+
/**
172+
* The financial outcomes available for a return.
173+
* @param outcomes outcomes or {@code null} for none
174+
*/
175+
public Returns setOutcomes(java.util.List<java.lang.String> outcomes) {
176+
this.outcomes = outcomes;
177+
return this;
178+
}
179+
180+
/**
181+
* The URL of the return policy.
182+
* @return value or {@code null} for none
183+
*/
184+
public java.lang.String getPolicyUrl() {
185+
return policyUrl;
186+
}
187+
188+
/**
189+
* The URL of the return policy.
190+
* @param policyUrl policyUrl or {@code null} for none
191+
*/
192+
public Returns setPolicyUrl(java.lang.String policyUrl) {
193+
this.policyUrl = policyUrl;
194+
return this;
195+
}
196+
197+
/**
198+
* A flat restocking fee penalty.
199+
* @return value or {@code null} for none
200+
*/
201+
public Price getRestockingFee() {
202+
return restockingFee;
203+
}
204+
205+
/**
206+
* A flat restocking fee penalty.
207+
* @param restockingFee restockingFee or {@code null} for none
208+
*/
209+
public Returns setRestockingFee(Price restockingFee) {
210+
this.restockingFee = restockingFee;
211+
return this;
212+
}
213+
214+
/**
215+
* A percentage restocking fee penalty.
216+
* @return value or {@code null} for none
217+
*/
218+
public java.lang.Double getRestockingPercentageFee() {
219+
return restockingPercentageFee;
220+
}
221+
222+
/**
223+
* A percentage restocking fee penalty.
224+
* @param restockingPercentageFee restockingPercentageFee or {@code null} for none
225+
*/
226+
public Returns setRestockingPercentageFee(java.lang.Double restockingPercentageFee) {
227+
this.restockingPercentageFee = restockingPercentageFee;
228+
return this;
229+
}
230+
231+
/**
232+
* The fixed cost out-of-pocket for a customer to return an item.
233+
* @return value or {@code null} for none
234+
*/
235+
public Price getShippingFee() {
236+
return shippingFee;
237+
}
238+
239+
/**
240+
* The fixed cost out-of-pocket for a customer to return an item.
241+
* @param shippingFee shippingFee or {@code null} for none
242+
*/
243+
public Returns setShippingFee(Price shippingFee) {
244+
this.shippingFee = shippingFee;
245+
return this;
246+
}
247+
248+
/**
249+
* The type of return shipping fee.
250+
* @return value or {@code null} for none
251+
*/
252+
public java.lang.String getShippingFeeType() {
253+
return shippingFeeType;
254+
}
255+
256+
/**
257+
* The type of return shipping fee.
258+
* @param shippingFeeType shippingFeeType or {@code null} for none
259+
*/
260+
public Returns setShippingFeeType(java.lang.String shippingFeeType) {
261+
this.shippingFeeType = shippingFeeType;
262+
return this;
263+
}
264+
265+
/**
266+
* The duration of the return window in days.
267+
* @return value or {@code null} for none
268+
*/
269+
public java.lang.Long getWindowDays() {
270+
return windowDays;
271+
}
272+
273+
/**
274+
* The duration of the return window in days.
275+
* @param windowDays windowDays or {@code null} for none
276+
*/
277+
public Returns setWindowDays(java.lang.Long windowDays) {
278+
this.windowDays = windowDays;
279+
return this;
280+
}
281+
282+
/**
283+
* Special return window behavior.
284+
* @return value or {@code null} for none
285+
*/
286+
public java.lang.String getWindowType() {
287+
return windowType;
288+
}
289+
290+
/**
291+
* Special return window behavior.
292+
* @param windowType windowType or {@code null} for none
293+
*/
294+
public Returns setWindowType(java.lang.String windowType) {
295+
this.windowType = windowType;
296+
return this;
297+
}
298+
299+
@Override
300+
public Returns set(String fieldName, Object value) {
301+
return (Returns) super.set(fieldName, value);
302+
}
303+
304+
@Override
305+
public Returns clone() {
306+
return (Returns) super.clone();
307+
}
308+
309+
}

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-rev20260611-2.0.0</version>
12-
<name>Merchant API products_v1-rev20260611-2.0.0</name>
11+
<version>products_v1-rev20260715-2.0.0</version>
12+
<name>Merchant API products_v1-rev20260715-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-rev20260611-2.0.0</version>
25+
<version>products_v1-rev20260715-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-rev20260611-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:products_v1-rev20260715-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)