Skip to content

Commit 016964f

Browse files
1 parent 6e26de5 commit 016964f

File tree

21 files changed

+183
-100
lines changed

21 files changed

+183
-100
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-rev20240916-2.0.0</version>
25+
<version>accounts_v1beta-rev20240930-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-rev20240916-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20240930-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: 55 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ public CreateAndConfigure set(String parameterName, Object value) {
257257
/**
258258
* Deletes the specified account regardless of its type: standalone, MCA or sub-account. Deleting an
259259
* MCA leads to the deletion of all of its sub-accounts. Executing this method requires admin
260-
* access.
260+
* access. The deletion succeeds only if the account does not provide services to any other account
261+
* and has no processed offers. You can use the `force` parameter to override this.
261262
*
262263
* Create a request for the method "accounts.delete".
263264
*
@@ -283,7 +284,8 @@ public class Delete extends MerchantRequest<com.google.api.services.merchantapi.
283284
/**
284285
* Deletes the specified account regardless of its type: standalone, MCA or sub-account. Deleting
285286
* an MCA leads to the deletion of all of its sub-accounts. Executing this method requires admin
286-
* access.
287+
* access. The deletion succeeds only if the account does not provide services to any other
288+
* account and has no processed offers. You can use the `force` parameter to override this.
287289
*
288290
* Create a request for the method "accounts.delete".
289291
*
@@ -382,6 +384,29 @@ public Delete setName(java.lang.String name) {
382384
return this;
383385
}
384386

387+
/**
388+
* Optional. If set to `true`, the account is deleted even if it provides services to other
389+
* accounts or has processed offers.
390+
*/
391+
@com.google.api.client.util.Key
392+
private java.lang.Boolean force;
393+
394+
/** Optional. If set to `true`, the account is deleted even if it provides services to other accounts
395+
or has processed offers.
396+
*/
397+
public java.lang.Boolean getForce() {
398+
return force;
399+
}
400+
401+
/**
402+
* Optional. If set to `true`, the account is deleted even if it provides services to other
403+
* accounts or has processed offers.
404+
*/
405+
public Delete setForce(java.lang.Boolean force) {
406+
this.force = force;
407+
return this;
408+
}
409+
385410
@Override
386411
public Delete set(String parameterName, Object value) {
387412
return (Delete) super.set(parameterName, value);
@@ -531,6 +556,7 @@ public Get set(String parameterName, Object value) {
531556
* Lists accounts accessible to the calling user and matching the constraints of the request such as
532557
* page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the
533558
* calling user has access to including other MCAs, linked accounts, standalone accounts and so on.
559+
* If no filter is provided, then it returns accounts the user is directly added to.
534560
*
535561
* Create a request for the method "accounts.list".
536562
*
@@ -553,7 +579,7 @@ public class List extends MerchantRequest<com.google.api.services.merchantapi.ac
553579
* Lists accounts accessible to the calling user and matching the constraints of the request such
554580
* as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts
555581
* the calling user has access to including other MCAs, linked accounts, standalone accounts and
556-
* so on.
582+
* so on. If no filter is provided, then it returns accounts the user is directly added to.
557583
*
558584
* Create a request for the method "accounts.list".
559585
*
@@ -3196,35 +3222,28 @@ public List setPageToken(java.lang.String pageToken) {
31963222
return this;
31973223
}
31983224

3199-
/** IANA Time Zone Database time zone, e.g. "America/New_York". */
3200-
@com.google.api.client.util.Key("timeZone.id")
3201-
private java.lang.String timeZoneId;
3202-
3203-
/** IANA Time Zone Database time zone, e.g. "America/New_York".
3225+
/**
3226+
* Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in
3227+
* human-readable fields. For example 'America/Los_Angeles'. If not set,
3228+
* 'America/Los_Angeles' will be used.
32043229
*/
3205-
public java.lang.String getTimeZoneId() {
3206-
return timeZoneId;
3207-
}
3208-
3209-
/** IANA Time Zone Database time zone, e.g. "America/New_York". */
3210-
public List setTimeZoneId(java.lang.String timeZoneId) {
3211-
this.timeZoneId = timeZoneId;
3212-
return this;
3213-
}
3214-
3215-
/** Optional. IANA Time Zone Database version number, e.g. "2019a". */
3216-
@com.google.api.client.util.Key("timeZone.version")
3217-
private java.lang.String timeZoneVersion;
3230+
@com.google.api.client.util.Key
3231+
private java.lang.String timeZone;
32183232

3219-
/** Optional. IANA Time Zone Database version number, e.g. "2019a".
3233+
/** Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in human-
3234+
readable fields. For example 'America/Los_Angeles'. If not set, 'America/Los_Angeles' will be used.
32203235
*/
3221-
public java.lang.String getTimeZoneVersion() {
3222-
return timeZoneVersion;
3236+
public java.lang.String getTimeZone() {
3237+
return timeZone;
32233238
}
32243239

3225-
/** Optional. IANA Time Zone Database version number, e.g. "2019a". */
3226-
public List setTimeZoneVersion(java.lang.String timeZoneVersion) {
3227-
this.timeZoneVersion = timeZoneVersion;
3240+
/**
3241+
* Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in
3242+
* human-readable fields. For example 'America/Los_Angeles'. If not set,
3243+
* 'America/Los_Angeles' will be used.
3244+
*/
3245+
public List setTimeZone(java.lang.String timeZone) {
3246+
this.timeZone = timeZone;
32283247
return this;
32293248
}
32303249

@@ -6956,39 +6975,39 @@ public RetrieveLatest setUploadProtocol(java.lang.String uploadProtocol) {
69566975
return (RetrieveLatest) super.setUploadProtocol(uploadProtocol);
69576976
}
69586977

6959-
/** The Kind this terms of service version applies to. */
6978+
/** Required. The Kind this terms of service version applies to. */
69606979
@com.google.api.client.util.Key
69616980
private java.lang.String kind;
69626981

6963-
/** The Kind this terms of service version applies to.
6982+
/** Required. The Kind this terms of service version applies to.
69646983
*/
69656984
public java.lang.String getKind() {
69666985
return kind;
69676986
}
69686987

6969-
/** The Kind this terms of service version applies to. */
6988+
/** Required. The Kind this terms of service version applies to. */
69706989
public RetrieveLatest setKind(java.lang.String kind) {
69716990
this.kind = kind;
69726991
return this;
69736992
}
69746993

69756994
/**
6976-
* Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when
6977-
* the ToS applies specifically to that country or 001 when it applies globally.
6995+
* Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a
6996+
* country when the ToS applies specifically to that country or 001 when it applies globally.
69786997
*/
69796998
@com.google.api.client.util.Key
69806999
private java.lang.String regionCode;
69817000

6982-
/** Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when the ToS
6983-
applies specifically to that country or 001 when it applies globally.
7001+
/** Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country
7002+
when the ToS applies specifically to that country or 001 when it applies globally.
69847003
*/
69857004
public java.lang.String getRegionCode() {
69867005
return regionCode;
69877006
}
69887007

69897008
/**
6990-
* Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when
6991-
* the ToS applies specifically to that country or 001 when it applies globally.
7009+
* Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a
7010+
* country when the ToS applies specifically to that country or 001 when it applies globally.
69927011
*/
69937012
public RetrieveLatest setRegionCode(java.lang.String regionCode) {
69947013
this.regionCode = regionCode;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
* `AccountAggregation` payload.
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 AccountAggregation extends com.google.api.client.json.GenericJson {
31+
32+
@Override
33+
public AccountAggregation set(String fieldName, Object value) {
34+
return (AccountAggregation) super.set(fieldName, value);
35+
}
36+
37+
@Override
38+
public AccountAggregation clone() {
39+
return (AccountAggregation) super.clone();
40+
}
41+
42+
}

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@
3030
public final class AddAccountService extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* The provider is an aggregator for the account.
33+
* The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the
34+
* account. Payload for service type Account Aggregation.
3435
* The value may be {@code null}.
3536
*/
3637
@com.google.api.client.util.Key
37-
private Empty accountAggregation;
38+
private AccountAggregation accountAggregation;
3839

3940
/**
4041
* Optional. The provider of the service. Format: `accounts/{account}`
@@ -44,18 +45,20 @@ public final class AddAccountService extends com.google.api.client.json.GenericJ
4445
private java.lang.String provider;
4546

4647
/**
47-
* The provider is an aggregator for the account.
48+
* The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the
49+
* account. Payload for service type Account Aggregation.
4850
* @return value or {@code null} for none
4951
*/
50-
public Empty getAccountAggregation() {
52+
public AccountAggregation getAccountAggregation() {
5153
return accountAggregation;
5254
}
5355

5456
/**
55-
* The provider is an aggregator for the account.
57+
* The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the
58+
* account. Payload for service type Account Aggregation.
5659
* @param accountAggregation accountAggregation or {@code null} for none
5760
*/
58-
public AddAccountService setAccountAggregation(Empty accountAggregation) {
61+
public AddAccountService setAccountAggregation(AccountAggregation accountAggregation) {
5962
this.accountAggregation = accountAggregation;
6063
return this;
6164
}

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ public final class CreateAndConfigureAccountRequest extends com.google.api.clien
4646
/**
4747
* Required. An account service between the account to be created and the provider account is
4848
* initialized as part of the creation. At least one such service needs to be provided. Currently
49-
* only `account_aggregation` is supported which means the newly created account will be a
50-
* subaccount of the provider defined in the `account_aggregation` service.
49+
* exactly one of these needs to be `account_aggregation`, which means you can only create sub
50+
* accounts, not standalone account through this method. Additional `account_management` or
51+
* `product_management` services may be provided.
5152
* The value may be {@code null}.
5253
*/
5354
@com.google.api.client.util.Key
@@ -103,8 +104,9 @@ public CreateAndConfigureAccountRequest setAccount(Account account) {
103104
/**
104105
* Required. An account service between the account to be created and the provider account is
105106
* initialized as part of the creation. At least one such service needs to be provided. Currently
106-
* only `account_aggregation` is supported which means the newly created account will be a
107-
* subaccount of the provider defined in the `account_aggregation` service.
107+
* exactly one of these needs to be `account_aggregation`, which means you can only create sub
108+
* accounts, not standalone account through this method. Additional `account_management` or
109+
* `product_management` services may be provided.
108110
* @return value or {@code null} for none
109111
*/
110112
public java.util.List<AddAccountService> getService() {
@@ -114,8 +116,9 @@ public java.util.List<AddAccountService> getService() {
114116
/**
115117
* Required. An account service between the account to be created and the provider account is
116118
* initialized as part of the creation. At least one such service needs to be provided. Currently
117-
* only `account_aggregation` is supported which means the newly created account will be a
118-
* subaccount of the provider defined in the `account_aggregation` service.
119+
* exactly one of these needs to be `account_aggregation`, which means you can only create sub
120+
* accounts, not standalone account through this method. Additional `account_management` or
121+
* `product_management` services may be provided.
119122
* @param service service or {@code null} for none
120123
*/
121124
public CreateAndConfigureAccountRequest setService(java.util.List<AddAccountService> service) {

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

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ public Delete set(String parameterName, Object value) {
461461
* parameters, call the {@link Get#execute()} method to invoke the remote operation.
462462
*
463463
* @param name Required. The name of the conversion source to be fetched. Format:
464-
* accounts/{account}/conversionsources/{conversion_source}
464+
* accounts/{account}/conversionSources/{conversion_source}
465465
* @return the request
466466
*/
467467
public Get get(java.lang.String name) throws java.io.IOException {
@@ -488,7 +488,7 @@ public class Get extends MerchantRequest<com.google.api.services.merchantapi.con
488488
* must be called to initialize this instance immediately after invoking the constructor. </p>
489489
*
490490
* @param name Required. The name of the conversion source to be fetched. Format:
491-
* accounts/{account}/conversionsources/{conversion_source}
491+
* accounts/{account}/conversionSources/{conversion_source}
492492
* @since 1.13
493493
*/
494494
protected Get(java.lang.String name) {
@@ -568,21 +568,21 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) {
568568

569569
/**
570570
* Required. The name of the conversion source to be fetched. Format:
571-
* accounts/{account}/conversionsources/{conversion_source}
571+
* accounts/{account}/conversionSources/{conversion_source}
572572
*/
573573
@com.google.api.client.util.Key
574574
private java.lang.String name;
575575

576576
/** Required. The name of the conversion source to be fetched. Format:
577-
accounts/{account}/conversionsources/{conversion_source}
577+
accounts/{account}/conversionSources/{conversion_source}
578578
*/
579579
public java.lang.String getName() {
580580
return name;
581581
}
582582

583583
/**
584584
* Required. The name of the conversion source to be fetched. Format:
585-
* accounts/{account}/conversionsources/{conversion_source}
585+
* accounts/{account}/conversionSources/{conversion_source}
586586
*/
587587
public Get setName(java.lang.String name) {
588588
if (!getSuppressPatternChecks()) {

0 commit comments

Comments
 (0)