Skip to content

Commit 4c93231

Browse files
chore: regenerate merchantapi client
1 parent 5ec85f7 commit 4c93231

File tree

22 files changed

+358
-44
lines changed

22 files changed

+358
-44
lines changed

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

clients/google-api-services-merchantapi/accounts_v1/2.0.0/com/google/api/services/merchantapi/accounts_v1/model/Region.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818

1919
/**
2020
* Represents a geographic region that you can use as a target with both the `RegionalInventory` and
21-
* `ShippingSettings` services. You can define regions as collections of either postal codes or, in
22-
* some countries, using predefined geotargets. For more information, see [Set up regions
23-
* ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region) for more
24-
* information.
21+
* `ShippingSettings` services. You can define regions as collections of either postal codes, radius
22+
* areas or, in some countries, using predefined geotargets. A region must be defined by specifying
23+
* exactly one of `postal_code_area`, `geotarget_area`, or `radius_area`. For more information, see
24+
* [Set up regions ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-
25+
* region) for more information.
2526
*
2627
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2728
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:

clients/google-api-services-merchantapi/accounts_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>accounts_v1-rev20251120-2.0.0</version>
12-
<name>Merchant API accounts_v1-rev20251120-2.0.0</name>
11+
<version>accounts_v1-rev20260203-2.0.0</version>
12+
<name>Merchant API accounts_v1-rev20260203-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

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

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818

1919
/**
2020
* Represents a geographic region that you can use as a target with both the `RegionalInventory` and
21-
* `ShippingSettings` services. You can define regions as collections of either postal codes or, in
22-
* some countries, using predefined geotargets. For more information, see [Set up regions
23-
* ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region) for more
24-
* information.
21+
* `ShippingSettings` services. You can define regions as collections of either postal codes, radius
22+
* areas or, in some countries, using predefined geotargets. A region must be defined by specifying
23+
* exactly one of `postal_code_area`, `geotarget_area`, or `radius_area`. For more information, see
24+
* [Set up regions ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-
25+
* region) for more information.
2526
*
2627
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2728
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:

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

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

clients/google-api-services-merchantapi/promotions_v1/2.0.0/com/google/api/services/merchantapi/promotions_v1/model/Attributes.java

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,25 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
5151
@com.google.api.client.util.Key
5252
private java.lang.String couponValueType;
5353

54+
/**
55+
* Optional. The custom redemption restriction for the promotion. If the `redemption_restriction`
56+
* field is set to `CUSTOM`, this field must be set.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String customRedemptionRestriction;
61+
62+
/**
63+
* Optional. Event applicability for this promotion. When present, this field indicates you are
64+
* creating a [sales
65+
* event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC)
66+
* and not a product promotion. Exactly one of `product_applicability` or `event_applicability`
67+
* must be set.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private java.lang.String eventApplicability;
72+
5473
/**
5574
* Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topi
5675
* c=13773355&sjid=17642868584668136159-NC) for the promotion.
@@ -89,6 +108,16 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
89108
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
90109
private java.lang.Long getThisQuantityDiscounted;
91110

111+
/**
112+
* Optional. A list of Google product categories for this promotion. Set if `EventApplicability`
113+
* is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on
114+
* eligible values for product categories, checkout the `google_product_category` attribute in the
115+
* [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en).
116+
* The value may be {@code null}.
117+
*/
118+
@com.google.api.client.util.Key
119+
private java.util.List<java.lang.String> googleProductCategories;
120+
92121
/**
93122
* Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/1383729
94123
* 8?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies
@@ -142,6 +171,14 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
142171
@com.google.api.client.util.Key
143172
private java.lang.String longTitle;
144173

174+
/**
175+
* Optional. The maximum monetary discount a customer can receive for the promotion. This field is
176+
* only supported with the `Percent off` coupon value type.
177+
* The value may be {@code null}.
178+
*/
179+
@com.google.api.client.util.Key
180+
private Price maxDiscountAmount;
181+
145182
/**
146183
* Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_to
147184
* pic=13773355&sjid=17642868584668136159-NC) for the promotion.
@@ -183,6 +220,9 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
183220
private java.lang.Long percentOff;
184221

185222
/**
223+
* Optional. Applicability of the promotion to either all products or [only specific products](htt
224+
* ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC
225+
* ). Exactly one of `product_applicability` or `event_applicability` must be set.
186226
* The value may be {@code null}.
187227
*/
188228
@com.google.api.client.util.Key
@@ -242,6 +282,13 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
242282
@com.google.api.client.util.Key
243283
private java.lang.String promotionUrl;
244284

285+
/**
286+
* Optional. A restriction customers must meet before they can redeem the promotion.
287+
* The value may be {@code null}.
288+
*/
289+
@com.google.api.client.util.Key
290+
private java.lang.String redemptionRestriction;
291+
245292
/**
246293
* Optional. Whether the promotion applies to [all stores, or only specified
247294
* stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC).
@@ -325,6 +372,50 @@ public Attributes setCouponValueType(java.lang.String couponValueType) {
325372
return this;
326373
}
327374

375+
/**
376+
* Optional. The custom redemption restriction for the promotion. If the `redemption_restriction`
377+
* field is set to `CUSTOM`, this field must be set.
378+
* @return value or {@code null} for none
379+
*/
380+
public java.lang.String getCustomRedemptionRestriction() {
381+
return customRedemptionRestriction;
382+
}
383+
384+
/**
385+
* Optional. The custom redemption restriction for the promotion. If the `redemption_restriction`
386+
* field is set to `CUSTOM`, this field must be set.
387+
* @param customRedemptionRestriction customRedemptionRestriction or {@code null} for none
388+
*/
389+
public Attributes setCustomRedemptionRestriction(java.lang.String customRedemptionRestriction) {
390+
this.customRedemptionRestriction = customRedemptionRestriction;
391+
return this;
392+
}
393+
394+
/**
395+
* Optional. Event applicability for this promotion. When present, this field indicates you are
396+
* creating a [sales
397+
* event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC)
398+
* and not a product promotion. Exactly one of `product_applicability` or `event_applicability`
399+
* must be set.
400+
* @return value or {@code null} for none
401+
*/
402+
public java.lang.String getEventApplicability() {
403+
return eventApplicability;
404+
}
405+
406+
/**
407+
* Optional. Event applicability for this promotion. When present, this field indicates you are
408+
* creating a [sales
409+
* event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC)
410+
* and not a product promotion. Exactly one of `product_applicability` or `event_applicability`
411+
* must be set.
412+
* @param eventApplicability eventApplicability or {@code null} for none
413+
*/
414+
public Attributes setEventApplicability(java.lang.String eventApplicability) {
415+
this.eventApplicability = eventApplicability;
416+
return this;
417+
}
418+
328419
/**
329420
* Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topi
330421
* c=13773355&sjid=17642868584668136159-NC) for the promotion.
@@ -416,6 +507,29 @@ public Attributes setGetThisQuantityDiscounted(java.lang.Long getThisQuantityDis
416507
return this;
417508
}
418509

510+
/**
511+
* Optional. A list of Google product categories for this promotion. Set if `EventApplicability`
512+
* is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on
513+
* eligible values for product categories, checkout the `google_product_category` attribute in the
514+
* [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en).
515+
* @return value or {@code null} for none
516+
*/
517+
public java.util.List<java.lang.String> getGoogleProductCategories() {
518+
return googleProductCategories;
519+
}
520+
521+
/**
522+
* Optional. A list of Google product categories for this promotion. Set if `EventApplicability`
523+
* is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on
524+
* eligible values for product categories, checkout the `google_product_category` attribute in the
525+
* [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en).
526+
* @param googleProductCategories googleProductCategories or {@code null} for none
527+
*/
528+
public Attributes setGoogleProductCategories(java.util.List<java.lang.String> googleProductCategories) {
529+
this.googleProductCategories = googleProductCategories;
530+
return this;
531+
}
532+
419533
/**
420534
* Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/1383729
421535
* 8?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies
@@ -543,6 +657,25 @@ public Attributes setLongTitle(java.lang.String longTitle) {
543657
return this;
544658
}
545659

660+
/**
661+
* Optional. The maximum monetary discount a customer can receive for the promotion. This field is
662+
* only supported with the `Percent off` coupon value type.
663+
* @return value or {@code null} for none
664+
*/
665+
public Price getMaxDiscountAmount() {
666+
return maxDiscountAmount;
667+
}
668+
669+
/**
670+
* Optional. The maximum monetary discount a customer can receive for the promotion. This field is
671+
* only supported with the `Percent off` coupon value type.
672+
* @param maxDiscountAmount maxDiscountAmount or {@code null} for none
673+
*/
674+
public Attributes setMaxDiscountAmount(Price maxDiscountAmount) {
675+
this.maxDiscountAmount = maxDiscountAmount;
676+
return this;
677+
}
678+
546679
/**
547680
* Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_to
548681
* pic=13773355&sjid=17642868584668136159-NC) for the promotion.
@@ -639,13 +772,19 @@ public Attributes setPercentOff(java.lang.Long percentOff) {
639772
}
640773

641774
/**
775+
* Optional. Applicability of the promotion to either all products or [only specific products](htt
776+
* ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC
777+
* ). Exactly one of `product_applicability` or `event_applicability` must be set.
642778
* @return value or {@code null} for none
643779
*/
644780
public java.lang.String getProductApplicability() {
645781
return productApplicability;
646782
}
647783

648784
/**
785+
* Optional. Applicability of the promotion to either all products or [only specific products](htt
786+
* ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC
787+
* ). Exactly one of `product_applicability` or `event_applicability` must be set.
649788
* @param productApplicability productApplicability or {@code null} for none
650789
*/
651790
public Attributes setProductApplicability(java.lang.String productApplicability) {
@@ -779,6 +918,23 @@ public Attributes setPromotionUrl(java.lang.String promotionUrl) {
779918
return this;
780919
}
781920

921+
/**
922+
* Optional. A restriction customers must meet before they can redeem the promotion.
923+
* @return value or {@code null} for none
924+
*/
925+
public java.lang.String getRedemptionRestriction() {
926+
return redemptionRestriction;
927+
}
928+
929+
/**
930+
* Optional. A restriction customers must meet before they can redeem the promotion.
931+
* @param redemptionRestriction redemptionRestriction or {@code null} for none
932+
*/
933+
public Attributes setRedemptionRestriction(java.lang.String redemptionRestriction) {
934+
this.redemptionRestriction = redemptionRestriction;
935+
return this;
936+
}
937+
782938
/**
783939
* Optional. Whether the promotion applies to [all stores, or only specified
784940
* stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC).

0 commit comments

Comments
 (0)