Skip to content

Commit 69da761

Browse files
1 parent 1b79713 commit 69da761

File tree

6 files changed

+180
-9
lines changed

6 files changed

+180
-9
lines changed

clients/google-api-services-merchantapi/accounts_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>accounts_v1beta-rev20241210-2.0.0</version>
25+
<version>accounts_v1beta-rev20250115-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:accounts_v1beta-rev20241210-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20250115-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/CreateUserRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class CreateUserRequest extends com.google.api.client.json.GenericJ
3838
private java.lang.String parent;
3939

4040
/**
41-
* Required. The user to create.
41+
* Optional. The user to create.
4242
* The value may be {@code null}.
4343
*/
4444
@com.google.api.client.util.Key
@@ -71,15 +71,15 @@ public CreateUserRequest setParent(java.lang.String parent) {
7171
}
7272

7373
/**
74-
* Required. The user to create.
74+
* Optional. The user to create.
7575
* @return value or {@code null} for none
7676
*/
7777
public User getUser() {
7878
return user;
7979
}
8080

8181
/**
82-
* Required. The user to create.
82+
* Optional. The user to create.
8383
* @param user user or {@code null} for none
8484
*/
8585
public CreateUserRequest setUser(User user) {

clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/OnlineReturnPolicy.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ public final class OnlineReturnPolicy extends com.google.api.client.json.Generic
136136
@com.google.api.client.util.Key
137137
private ReturnShippingFee returnShippingFee;
138138

139+
/**
140+
* Optional. Overrides to the general policy for orders placed during a specific set of time
141+
* intervals.
142+
* The value may be {@code null}.
143+
*/
144+
@com.google.api.client.util.Key
145+
private java.util.List<SeasonalOverride> seasonalOverrides;
146+
139147
/**
140148
* This field specifies if merchant only accepts defective products for returns, and this field is
141149
* required.
@@ -387,6 +395,25 @@ public OnlineReturnPolicy setReturnShippingFee(ReturnShippingFee returnShippingF
387395
return this;
388396
}
389397

398+
/**
399+
* Optional. Overrides to the general policy for orders placed during a specific set of time
400+
* intervals.
401+
* @return value or {@code null} for none
402+
*/
403+
public java.util.List<SeasonalOverride> getSeasonalOverrides() {
404+
return seasonalOverrides;
405+
}
406+
407+
/**
408+
* Optional. Overrides to the general policy for orders placed during a specific set of time
409+
* intervals.
410+
* @param seasonalOverrides seasonalOverrides or {@code null} for none
411+
*/
412+
public OnlineReturnPolicy setSeasonalOverrides(java.util.List<SeasonalOverride> seasonalOverrides) {
413+
this.seasonalOverrides = seasonalOverrides;
414+
return this;
415+
}
416+
390417
@Override
391418
public OnlineReturnPolicy set(String fieldName, Object value) {
392419
return (OnlineReturnPolicy) super.set(fieldName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
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.accounts_v1beta.model;
18+
19+
/**
20+
* Next: 5
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 SeasonalOverride extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Defines the date range when this seasonal override applies. Both begin and end are
34+
* inclusive and should be in date decimal format, example 20250115. The dates of the seasonal
35+
* overrides should not overlap.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private Date begin;
40+
41+
/**
42+
* Required. seasonal override end date (inclusive).
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private Date end;
47+
48+
/**
49+
* Required. Display name of this seasonal override in Merchant Center.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String label;
54+
55+
/**
56+
* Required. The return policy for the given date range.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private Policy policy;
61+
62+
/**
63+
* Required. Defines the date range when this seasonal override applies. Both begin and end are
64+
* inclusive and should be in date decimal format, example 20250115. The dates of the seasonal
65+
* overrides should not overlap.
66+
* @return value or {@code null} for none
67+
*/
68+
public Date getBegin() {
69+
return begin;
70+
}
71+
72+
/**
73+
* Required. Defines the date range when this seasonal override applies. Both begin and end are
74+
* inclusive and should be in date decimal format, example 20250115. The dates of the seasonal
75+
* overrides should not overlap.
76+
* @param begin begin or {@code null} for none
77+
*/
78+
public SeasonalOverride setBegin(Date begin) {
79+
this.begin = begin;
80+
return this;
81+
}
82+
83+
/**
84+
* Required. seasonal override end date (inclusive).
85+
* @return value or {@code null} for none
86+
*/
87+
public Date getEnd() {
88+
return end;
89+
}
90+
91+
/**
92+
* Required. seasonal override end date (inclusive).
93+
* @param end end or {@code null} for none
94+
*/
95+
public SeasonalOverride setEnd(Date end) {
96+
this.end = end;
97+
return this;
98+
}
99+
100+
/**
101+
* Required. Display name of this seasonal override in Merchant Center.
102+
* @return value or {@code null} for none
103+
*/
104+
public java.lang.String getLabel() {
105+
return label;
106+
}
107+
108+
/**
109+
* Required. Display name of this seasonal override in Merchant Center.
110+
* @param label label or {@code null} for none
111+
*/
112+
public SeasonalOverride setLabel(java.lang.String label) {
113+
this.label = label;
114+
return this;
115+
}
116+
117+
/**
118+
* Required. The return policy for the given date range.
119+
* @return value or {@code null} for none
120+
*/
121+
public Policy getPolicy() {
122+
return policy;
123+
}
124+
125+
/**
126+
* Required. The return policy for the given date range.
127+
* @param policy policy or {@code null} for none
128+
*/
129+
public SeasonalOverride setPolicy(Policy policy) {
130+
this.policy = policy;
131+
return this;
132+
}
133+
134+
@Override
135+
public SeasonalOverride set(String fieldName, Object value) {
136+
return (SeasonalOverride) super.set(fieldName, value);
137+
}
138+
139+
@Override
140+
public SeasonalOverride clone() {
141+
return (SeasonalOverride) super.clone();
142+
}
143+
144+
}

clients/google-api-services-merchantapi/accounts_v1beta/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>accounts_v1beta-rev20241210-2.0.0</version>
12-
<name>Merchant API accounts_v1beta-rev20241210-2.0.0</name>
11+
<version>accounts_v1beta-rev20250115-2.0.0</version>
12+
<name>Merchant API accounts_v1beta-rev20250115-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)