Skip to content

Commit 29b16ac

Browse files
1 parent 278feb3 commit 29b16ac

File tree

10 files changed

+996
-18
lines changed

10 files changed

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

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

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
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+
* [CheckoutSettings](https://support.google.com/merchants/answer/13945960) for a specific merchant.
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 CheckoutSettings extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Output only. The effective value of enrollment_state for a given merchant ID. If account level
34+
* settings are present then this value will be a copy of the account level settings. Otherwise,
35+
* it will have the value of the parent account (for only marketplace sellers).
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String effectiveEnrollmentState;
40+
41+
/**
42+
* Output only. The effective value of `review_state` for a given merchant ID. If account level
43+
* settings are present then this value will be a copy of the account level settings. Otherwise,
44+
* it will have the value of the parent account (for only marketplace sellers).
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String effectiveReviewState;
49+
50+
/**
51+
* Output only. The effective value of `uri_settings` for a given merchant. If account level
52+
* settings are present then this value will be a copy of url settings. Otherwise, it will have
53+
* the value of the parent account (for only marketplace sellers).
54+
* The value may be {@code null}.
55+
*/
56+
@com.google.api.client.util.Key
57+
private UriSettings effectiveUriSettings;
58+
59+
/**
60+
* Optional. The destinations to which the checkout program applies, valid destination values are
61+
* `SHOPPING_ADS`, `FREE_LISTINGS`
62+
* The value may be {@code null}.
63+
*/
64+
@com.google.api.client.util.Key
65+
private java.util.List<java.lang.String> eligibleDestinations;
66+
67+
/**
68+
* Output only. Reflects the merchant enrollment state in `Checkout` program.
69+
* The value may be {@code null}.
70+
*/
71+
@com.google.api.client.util.Key
72+
private java.lang.String enrollmentState;
73+
74+
/**
75+
* Identifier. The resource name of the program configuration settings. Format:
76+
* `accounts/{account}/programs/{program}/checkoutSettings`
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private java.lang.String name;
81+
82+
/**
83+
* Output only. Reflects the merchant review state in `Checkout` program. This is set based on the
84+
* data quality reviews of the URL provided by the merchant. A merchant with enrollment state as
85+
* `ENROLLED` can be in the following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A
86+
* merchant must be in an `enrollment_state` of `ENROLLED` before a review can begin for the
87+
* merchant.For more details, check the help center doc.
88+
* The value may be {@code null}.
89+
*/
90+
@com.google.api.client.util.Key
91+
private java.lang.String reviewState;
92+
93+
/**
94+
* URI settings for cart or checkout URL.
95+
* The value may be {@code null}.
96+
*/
97+
@com.google.api.client.util.Key
98+
private UriSettings uriSettings;
99+
100+
/**
101+
* Output only. The effective value of enrollment_state for a given merchant ID. If account level
102+
* settings are present then this value will be a copy of the account level settings. Otherwise,
103+
* it will have the value of the parent account (for only marketplace sellers).
104+
* @return value or {@code null} for none
105+
*/
106+
public java.lang.String getEffectiveEnrollmentState() {
107+
return effectiveEnrollmentState;
108+
}
109+
110+
/**
111+
* Output only. The effective value of enrollment_state for a given merchant ID. If account level
112+
* settings are present then this value will be a copy of the account level settings. Otherwise,
113+
* it will have the value of the parent account (for only marketplace sellers).
114+
* @param effectiveEnrollmentState effectiveEnrollmentState or {@code null} for none
115+
*/
116+
public CheckoutSettings setEffectiveEnrollmentState(java.lang.String effectiveEnrollmentState) {
117+
this.effectiveEnrollmentState = effectiveEnrollmentState;
118+
return this;
119+
}
120+
121+
/**
122+
* Output only. The effective value of `review_state` for a given merchant ID. If account level
123+
* settings are present then this value will be a copy of the account level settings. Otherwise,
124+
* it will have the value of the parent account (for only marketplace sellers).
125+
* @return value or {@code null} for none
126+
*/
127+
public java.lang.String getEffectiveReviewState() {
128+
return effectiveReviewState;
129+
}
130+
131+
/**
132+
* Output only. The effective value of `review_state` for a given merchant ID. If account level
133+
* settings are present then this value will be a copy of the account level settings. Otherwise,
134+
* it will have the value of the parent account (for only marketplace sellers).
135+
* @param effectiveReviewState effectiveReviewState or {@code null} for none
136+
*/
137+
public CheckoutSettings setEffectiveReviewState(java.lang.String effectiveReviewState) {
138+
this.effectiveReviewState = effectiveReviewState;
139+
return this;
140+
}
141+
142+
/**
143+
* Output only. The effective value of `uri_settings` for a given merchant. If account level
144+
* settings are present then this value will be a copy of url settings. Otherwise, it will have
145+
* the value of the parent account (for only marketplace sellers).
146+
* @return value or {@code null} for none
147+
*/
148+
public UriSettings getEffectiveUriSettings() {
149+
return effectiveUriSettings;
150+
}
151+
152+
/**
153+
* Output only. The effective value of `uri_settings` for a given merchant. If account level
154+
* settings are present then this value will be a copy of url settings. Otherwise, it will have
155+
* the value of the parent account (for only marketplace sellers).
156+
* @param effectiveUriSettings effectiveUriSettings or {@code null} for none
157+
*/
158+
public CheckoutSettings setEffectiveUriSettings(UriSettings effectiveUriSettings) {
159+
this.effectiveUriSettings = effectiveUriSettings;
160+
return this;
161+
}
162+
163+
/**
164+
* Optional. The destinations to which the checkout program applies, valid destination values are
165+
* `SHOPPING_ADS`, `FREE_LISTINGS`
166+
* @return value or {@code null} for none
167+
*/
168+
public java.util.List<java.lang.String> getEligibleDestinations() {
169+
return eligibleDestinations;
170+
}
171+
172+
/**
173+
* Optional. The destinations to which the checkout program applies, valid destination values are
174+
* `SHOPPING_ADS`, `FREE_LISTINGS`
175+
* @param eligibleDestinations eligibleDestinations or {@code null} for none
176+
*/
177+
public CheckoutSettings setEligibleDestinations(java.util.List<java.lang.String> eligibleDestinations) {
178+
this.eligibleDestinations = eligibleDestinations;
179+
return this;
180+
}
181+
182+
/**
183+
* Output only. Reflects the merchant enrollment state in `Checkout` program.
184+
* @return value or {@code null} for none
185+
*/
186+
public java.lang.String getEnrollmentState() {
187+
return enrollmentState;
188+
}
189+
190+
/**
191+
* Output only. Reflects the merchant enrollment state in `Checkout` program.
192+
* @param enrollmentState enrollmentState or {@code null} for none
193+
*/
194+
public CheckoutSettings setEnrollmentState(java.lang.String enrollmentState) {
195+
this.enrollmentState = enrollmentState;
196+
return this;
197+
}
198+
199+
/**
200+
* Identifier. The resource name of the program configuration settings. Format:
201+
* `accounts/{account}/programs/{program}/checkoutSettings`
202+
* @return value or {@code null} for none
203+
*/
204+
public java.lang.String getName() {
205+
return name;
206+
}
207+
208+
/**
209+
* Identifier. The resource name of the program configuration settings. Format:
210+
* `accounts/{account}/programs/{program}/checkoutSettings`
211+
* @param name name or {@code null} for none
212+
*/
213+
public CheckoutSettings setName(java.lang.String name) {
214+
this.name = name;
215+
return this;
216+
}
217+
218+
/**
219+
* Output only. Reflects the merchant review state in `Checkout` program. This is set based on the
220+
* data quality reviews of the URL provided by the merchant. A merchant with enrollment state as
221+
* `ENROLLED` can be in the following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A
222+
* merchant must be in an `enrollment_state` of `ENROLLED` before a review can begin for the
223+
* merchant.For more details, check the help center doc.
224+
* @return value or {@code null} for none
225+
*/
226+
public java.lang.String getReviewState() {
227+
return reviewState;
228+
}
229+
230+
/**
231+
* Output only. Reflects the merchant review state in `Checkout` program. This is set based on the
232+
* data quality reviews of the URL provided by the merchant. A merchant with enrollment state as
233+
* `ENROLLED` can be in the following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A
234+
* merchant must be in an `enrollment_state` of `ENROLLED` before a review can begin for the
235+
* merchant.For more details, check the help center doc.
236+
* @param reviewState reviewState or {@code null} for none
237+
*/
238+
public CheckoutSettings setReviewState(java.lang.String reviewState) {
239+
this.reviewState = reviewState;
240+
return this;
241+
}
242+
243+
/**
244+
* URI settings for cart or checkout URL.
245+
* @return value or {@code null} for none
246+
*/
247+
public UriSettings getUriSettings() {
248+
return uriSettings;
249+
}
250+
251+
/**
252+
* URI settings for cart or checkout URL.
253+
* @param uriSettings uriSettings or {@code null} for none
254+
*/
255+
public CheckoutSettings setUriSettings(UriSettings uriSettings) {
256+
this.uriSettings = uriSettings;
257+
return this;
258+
}
259+
260+
@Override
261+
public CheckoutSettings set(String fieldName, Object value) {
262+
return (CheckoutSettings) super.set(fieldName, value);
263+
}
264+
265+
@Override
266+
public CheckoutSettings clone() {
267+
return (CheckoutSettings) super.clone();
268+
}
269+
270+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
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+
* URL settings for cart or checkout URL.
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 UriSettings extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page
34+
* on the merchant website with the selected item in cart. For more details, check the [help
35+
* center doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-
36+
* level-url-formatting%2Caccount-level-url-formatting)
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String cartUriTemplate;
41+
42+
/**
43+
* Checkout URL template. When the placeholders are expanded will redirect the buyer to the
44+
* merchant checkout page with the item in the cart. For more details, check the [help center
45+
* doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-
46+
* formatting%2Caccount-level-url-formatting)
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.lang.String checkoutUriTemplate;
51+
52+
/**
53+
* Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page
54+
* on the merchant website with the selected item in cart. For more details, check the [help
55+
* center doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-
56+
* level-url-formatting%2Caccount-level-url-formatting)
57+
* @return value or {@code null} for none
58+
*/
59+
public java.lang.String getCartUriTemplate() {
60+
return cartUriTemplate;
61+
}
62+
63+
/**
64+
* Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page
65+
* on the merchant website with the selected item in cart. For more details, check the [help
66+
* center doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-
67+
* level-url-formatting%2Caccount-level-url-formatting)
68+
* @param cartUriTemplate cartUriTemplate or {@code null} for none
69+
*/
70+
public UriSettings setCartUriTemplate(java.lang.String cartUriTemplate) {
71+
this.cartUriTemplate = cartUriTemplate;
72+
return this;
73+
}
74+
75+
/**
76+
* Checkout URL template. When the placeholders are expanded will redirect the buyer to the
77+
* merchant checkout page with the item in the cart. For more details, check the [help center
78+
* doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-
79+
* formatting%2Caccount-level-url-formatting)
80+
* @return value or {@code null} for none
81+
*/
82+
public java.lang.String getCheckoutUriTemplate() {
83+
return checkoutUriTemplate;
84+
}
85+
86+
/**
87+
* Checkout URL template. When the placeholders are expanded will redirect the buyer to the
88+
* merchant checkout page with the item in the cart. For more details, check the [help center
89+
* doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-
90+
* formatting%2Caccount-level-url-formatting)
91+
* @param checkoutUriTemplate checkoutUriTemplate or {@code null} for none
92+
*/
93+
public UriSettings setCheckoutUriTemplate(java.lang.String checkoutUriTemplate) {
94+
this.checkoutUriTemplate = checkoutUriTemplate;
95+
return this;
96+
}
97+
98+
@Override
99+
public UriSettings set(String fieldName, Object value) {
100+
return (UriSettings) super.set(fieldName, value);
101+
}
102+
103+
@Override
104+
public UriSettings clone() {
105+
return (UriSettings) super.clone();
106+
}
107+
108+
}

0 commit comments

Comments
 (0)