diff --git a/clients/google-api-services-merchantapi/accounts_v1/2.0.0/README.md b/clients/google-api-services-merchantapi/accounts_v1/2.0.0/README.md index 83ed5673792..7d013f783fa 100644 --- a/clients/google-api-services-merchantapi/accounts_v1/2.0.0/README.md +++ b/clients/google-api-services-merchantapi/accounts_v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - accounts_v1-rev20251120-2.0.0 + accounts_v1-rev20260203-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20251120-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20260203-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/accounts_v1/2.0.0/com/google/api/services/merchantapi/accounts_v1/model/Region.java b/clients/google-api-services-merchantapi/accounts_v1/2.0.0/com/google/api/services/merchantapi/accounts_v1/model/Region.java index 043307eda01..58fd36544c0 100644 --- a/clients/google-api-services-merchantapi/accounts_v1/2.0.0/com/google/api/services/merchantapi/accounts_v1/model/Region.java +++ b/clients/google-api-services-merchantapi/accounts_v1/2.0.0/com/google/api/services/merchantapi/accounts_v1/model/Region.java @@ -18,10 +18,11 @@ /** * Represents a geographic region that you can use as a target with both the `RegionalInventory` and - * `ShippingSettings` services. You can define regions as collections of either postal codes or, in - * some countries, using predefined geotargets. For more information, see [Set up regions - * ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region) for more - * information. + * `ShippingSettings` services. You can define regions as collections of either postal codes, radius + * areas or, in some countries, using predefined geotargets. A region must be defined by specifying + * exactly one of `postal_code_area`, `geotarget_area`, or `radius_area`. For more information, see + * [Set up regions ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new- + * region) for more information. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Merchant API. For a detailed explanation see: diff --git a/clients/google-api-services-merchantapi/accounts_v1/2.0.0/pom.xml b/clients/google-api-services-merchantapi/accounts_v1/2.0.0/pom.xml index f2f3f65a453..5adde1337b8 100644 --- a/clients/google-api-services-merchantapi/accounts_v1/2.0.0/pom.xml +++ b/clients/google-api-services-merchantapi/accounts_v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-merchantapi - accounts_v1-rev20251120-2.0.0 - Merchant API accounts_v1-rev20251120-2.0.0 + accounts_v1-rev20260203-2.0.0 + Merchant API accounts_v1-rev20260203-2.0.0 jar 2011 diff --git a/clients/google-api-services-merchantapi/accounts_v1/README.md b/clients/google-api-services-merchantapi/accounts_v1/README.md index 83ed5673792..7d013f783fa 100644 --- a/clients/google-api-services-merchantapi/accounts_v1/README.md +++ b/clients/google-api-services-merchantapi/accounts_v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - accounts_v1-rev20251120-2.0.0 + accounts_v1-rev20260203-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20251120-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20260203-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/README.md b/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/README.md index 5a9c1ada22d..e248d35c4ea 100644 --- a/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/README.md +++ b/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - accounts_v1beta-rev20251120-2.0.0 + accounts_v1beta-rev20260203-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20251120-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20260203-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/Region.java b/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/Region.java index 21752f06a8c..8abe5474457 100644 --- a/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/Region.java +++ b/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/Region.java @@ -18,10 +18,11 @@ /** * Represents a geographic region that you can use as a target with both the `RegionalInventory` and - * `ShippingSettings` services. You can define regions as collections of either postal codes or, in - * some countries, using predefined geotargets. For more information, see [Set up regions - * ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region) for more - * information. + * `ShippingSettings` services. You can define regions as collections of either postal codes, radius + * areas or, in some countries, using predefined geotargets. A region must be defined by specifying + * exactly one of `postal_code_area`, `geotarget_area`, or `radius_area`. For more information, see + * [Set up regions ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new- + * region) for more information. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Merchant API. For a detailed explanation see: diff --git a/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/pom.xml b/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/pom.xml index 12c514ec1d9..5b642321e76 100644 --- a/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-merchantapi - accounts_v1beta-rev20251120-2.0.0 - Merchant API accounts_v1beta-rev20251120-2.0.0 + accounts_v1beta-rev20260203-2.0.0 + Merchant API accounts_v1beta-rev20260203-2.0.0 jar 2011 diff --git a/clients/google-api-services-merchantapi/accounts_v1beta/README.md b/clients/google-api-services-merchantapi/accounts_v1beta/README.md index 5a9c1ada22d..e248d35c4ea 100644 --- a/clients/google-api-services-merchantapi/accounts_v1beta/README.md +++ b/clients/google-api-services-merchantapi/accounts_v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - accounts_v1beta-rev20251120-2.0.0 + accounts_v1beta-rev20260203-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20251120-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20260203-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/promotions_v1/2.0.0/README.md b/clients/google-api-services-merchantapi/promotions_v1/2.0.0/README.md index 180a9245e57..3e7086f460c 100644 --- a/clients/google-api-services-merchantapi/promotions_v1/2.0.0/README.md +++ b/clients/google-api-services-merchantapi/promotions_v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - promotions_v1-rev20250805-2.0.0 + promotions_v1-rev20260204-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1-rev20250805-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1-rev20260204-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/promotions_v1/2.0.0/com/google/api/services/merchantapi/promotions_v1/model/Attributes.java b/clients/google-api-services-merchantapi/promotions_v1/2.0.0/com/google/api/services/merchantapi/promotions_v1/model/Attributes.java index 318dae6107a..db23bbe41da 100644 --- a/clients/google-api-services-merchantapi/promotions_v1/2.0.0/com/google/api/services/merchantapi/promotions_v1/model/Attributes.java +++ b/clients/google-api-services-merchantapi/promotions_v1/2.0.0/com/google/api/services/merchantapi/promotions_v1/model/Attributes.java @@ -51,6 +51,25 @@ public final class Attributes extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String couponValueType; + /** + * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` + * field is set to `CUSTOM`, this field must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customRedemptionRestriction; + + /** + * Optional. Event applicability for this promotion. When present, this field indicates you are + * creating a [sales + * event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC) + * and not a product promotion. Exactly one of `product_applicability` or `event_applicability` + * must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventApplicability; + /** * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topi * c=13773355&sjid=17642868584668136159-NC) for the promotion. @@ -89,6 +108,16 @@ public final class Attributes extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long getThisQuantityDiscounted; + /** + * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` + * is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on + * eligible values for product categories, checkout the `google_product_category` attribute in the + * [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List googleProductCategories; + /** * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/1383729 * 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 { @com.google.api.client.util.Key private java.lang.String longTitle; + /** + * Optional. The maximum monetary discount a customer can receive for the promotion. This field is + * only supported with the `Percent off` coupon value type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Price maxDiscountAmount; + /** * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_to * pic=13773355&sjid=17642868584668136159-NC) for the promotion. @@ -183,6 +220,9 @@ public final class Attributes extends com.google.api.client.json.GenericJson { private java.lang.Long percentOff; /** + * Optional. Applicability of the promotion to either all products or [only specific products](htt + * ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC + * ). Exactly one of `product_applicability` or `event_applicability` must be set. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -242,6 +282,13 @@ public final class Attributes extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String promotionUrl; + /** + * Optional. A restriction customers must meet before they can redeem the promotion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String redemptionRestriction; + /** * Optional. Whether the promotion applies to [all stores, or only specified * stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC). @@ -325,6 +372,50 @@ public Attributes setCouponValueType(java.lang.String couponValueType) { return this; } + /** + * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` + * field is set to `CUSTOM`, this field must be set. + * @return value or {@code null} for none + */ + public java.lang.String getCustomRedemptionRestriction() { + return customRedemptionRestriction; + } + + /** + * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` + * field is set to `CUSTOM`, this field must be set. + * @param customRedemptionRestriction customRedemptionRestriction or {@code null} for none + */ + public Attributes setCustomRedemptionRestriction(java.lang.String customRedemptionRestriction) { + this.customRedemptionRestriction = customRedemptionRestriction; + return this; + } + + /** + * Optional. Event applicability for this promotion. When present, this field indicates you are + * creating a [sales + * event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC) + * and not a product promotion. Exactly one of `product_applicability` or `event_applicability` + * must be set. + * @return value or {@code null} for none + */ + public java.lang.String getEventApplicability() { + return eventApplicability; + } + + /** + * Optional. Event applicability for this promotion. When present, this field indicates you are + * creating a [sales + * event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC) + * and not a product promotion. Exactly one of `product_applicability` or `event_applicability` + * must be set. + * @param eventApplicability eventApplicability or {@code null} for none + */ + public Attributes setEventApplicability(java.lang.String eventApplicability) { + this.eventApplicability = eventApplicability; + return this; + } + /** * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topi * c=13773355&sjid=17642868584668136159-NC) for the promotion. @@ -416,6 +507,29 @@ public Attributes setGetThisQuantityDiscounted(java.lang.Long getThisQuantityDis return this; } + /** + * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` + * is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on + * eligible values for product categories, checkout the `google_product_category` attribute in the + * [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en). + * @return value or {@code null} for none + */ + public java.util.List getGoogleProductCategories() { + return googleProductCategories; + } + + /** + * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` + * is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on + * eligible values for product categories, checkout the `google_product_category` attribute in the + * [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en). + * @param googleProductCategories googleProductCategories or {@code null} for none + */ + public Attributes setGoogleProductCategories(java.util.List googleProductCategories) { + this.googleProductCategories = googleProductCategories; + return this; + } + /** * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/1383729 * 8?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies @@ -543,6 +657,25 @@ public Attributes setLongTitle(java.lang.String longTitle) { return this; } + /** + * Optional. The maximum monetary discount a customer can receive for the promotion. This field is + * only supported with the `Percent off` coupon value type. + * @return value or {@code null} for none + */ + public Price getMaxDiscountAmount() { + return maxDiscountAmount; + } + + /** + * Optional. The maximum monetary discount a customer can receive for the promotion. This field is + * only supported with the `Percent off` coupon value type. + * @param maxDiscountAmount maxDiscountAmount or {@code null} for none + */ + public Attributes setMaxDiscountAmount(Price maxDiscountAmount) { + this.maxDiscountAmount = maxDiscountAmount; + return this; + } + /** * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_to * pic=13773355&sjid=17642868584668136159-NC) for the promotion. @@ -639,6 +772,9 @@ public Attributes setPercentOff(java.lang.Long percentOff) { } /** + * Optional. Applicability of the promotion to either all products or [only specific products](htt + * ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC + * ). Exactly one of `product_applicability` or `event_applicability` must be set. * @return value or {@code null} for none */ public java.lang.String getProductApplicability() { @@ -646,6 +782,9 @@ public java.lang.String getProductApplicability() { } /** + * Optional. Applicability of the promotion to either all products or [only specific products](htt + * ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC + * ). Exactly one of `product_applicability` or `event_applicability` must be set. * @param productApplicability productApplicability or {@code null} for none */ public Attributes setProductApplicability(java.lang.String productApplicability) { @@ -779,6 +918,23 @@ public Attributes setPromotionUrl(java.lang.String promotionUrl) { return this; } + /** + * Optional. A restriction customers must meet before they can redeem the promotion. + * @return value or {@code null} for none + */ + public java.lang.String getRedemptionRestriction() { + return redemptionRestriction; + } + + /** + * Optional. A restriction customers must meet before they can redeem the promotion. + * @param redemptionRestriction redemptionRestriction or {@code null} for none + */ + public Attributes setRedemptionRestriction(java.lang.String redemptionRestriction) { + this.redemptionRestriction = redemptionRestriction; + return this; + } + /** * Optional. Whether the promotion applies to [all stores, or only specified * stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC). diff --git a/clients/google-api-services-merchantapi/promotions_v1/2.0.0/pom.xml b/clients/google-api-services-merchantapi/promotions_v1/2.0.0/pom.xml index 51306da05f5..fbb4031a52b 100644 --- a/clients/google-api-services-merchantapi/promotions_v1/2.0.0/pom.xml +++ b/clients/google-api-services-merchantapi/promotions_v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-merchantapi - promotions_v1-rev20250805-2.0.0 - Merchant API promotions_v1-rev20250805-2.0.0 + promotions_v1-rev20260204-2.0.0 + Merchant API promotions_v1-rev20260204-2.0.0 jar 2011 diff --git a/clients/google-api-services-merchantapi/promotions_v1/README.md b/clients/google-api-services-merchantapi/promotions_v1/README.md index 180a9245e57..3e7086f460c 100644 --- a/clients/google-api-services-merchantapi/promotions_v1/README.md +++ b/clients/google-api-services-merchantapi/promotions_v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - promotions_v1-rev20250805-2.0.0 + promotions_v1-rev20260204-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1-rev20250805-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1-rev20260204-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/README.md b/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/README.md index 321062af44f..7a0c4d54eeb 100644 --- a/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/README.md +++ b/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - promotions_v1beta-rev20250805-2.0.0 + promotions_v1beta-rev20260204-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1beta-rev20250805-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1beta-rev20260204-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/com/google/api/services/merchantapi/promotions_v1beta/model/Attributes.java b/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/com/google/api/services/merchantapi/promotions_v1beta/model/Attributes.java index 03751caabdb..eac0dc5b4b9 100644 --- a/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/com/google/api/services/merchantapi/promotions_v1beta/model/Attributes.java +++ b/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/com/google/api/services/merchantapi/promotions_v1beta/model/Attributes.java @@ -51,6 +51,25 @@ public final class Attributes extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String couponValueType; + /** + * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` + * field is set to `CUSTOM`, this field must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customRedemptionRestriction; + + /** + * Optional. Event applicability for this promotion. When present, this field indicates you are + * creating a [sales + * event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC) + * and not a product promotion. Exactly one of `product_applicability` or `event_applicability` + * must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventApplicability; + /** * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topi * c=13773355&sjid=17642868584668136159-NC) for the promotion. @@ -89,6 +108,16 @@ public final class Attributes extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long getThisQuantityDiscounted; + /** + * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` + * is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on + * eligible values for product categories, checkout the `google_product_category` attribute in the + * [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List googleProductCategories; + /** * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/1383729 * 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 { @com.google.api.client.util.Key private java.lang.String longTitle; + /** + * Optional. The maximum monetary discount a customer can receive for the promotion. This field is + * only supported with the `Percent off` coupon value type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Price maxDiscountAmount; + /** * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_to * pic=13773355&sjid=17642868584668136159-NC) for the promotion. @@ -183,6 +220,9 @@ public final class Attributes extends com.google.api.client.json.GenericJson { private java.lang.Long percentOff; /** + * Optional. Applicability of the promotion to either all products or [only specific products](htt + * ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC + * ). Exactly one of `product_applicability` or `event_applicability` must be set. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -242,6 +282,13 @@ public final class Attributes extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String promotionUrl; + /** + * Optional. A restriction customers must meet before they can redeem the promotion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String redemptionRestriction; + /** * Optional. Whether the promotion applies to [all stores, or only specified * stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC). @@ -325,6 +372,50 @@ public Attributes setCouponValueType(java.lang.String couponValueType) { return this; } + /** + * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` + * field is set to `CUSTOM`, this field must be set. + * @return value or {@code null} for none + */ + public java.lang.String getCustomRedemptionRestriction() { + return customRedemptionRestriction; + } + + /** + * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` + * field is set to `CUSTOM`, this field must be set. + * @param customRedemptionRestriction customRedemptionRestriction or {@code null} for none + */ + public Attributes setCustomRedemptionRestriction(java.lang.String customRedemptionRestriction) { + this.customRedemptionRestriction = customRedemptionRestriction; + return this; + } + + /** + * Optional. Event applicability for this promotion. When present, this field indicates you are + * creating a [sales + * event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC) + * and not a product promotion. Exactly one of `product_applicability` or `event_applicability` + * must be set. + * @return value or {@code null} for none + */ + public java.lang.String getEventApplicability() { + return eventApplicability; + } + + /** + * Optional. Event applicability for this promotion. When present, this field indicates you are + * creating a [sales + * event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC) + * and not a product promotion. Exactly one of `product_applicability` or `event_applicability` + * must be set. + * @param eventApplicability eventApplicability or {@code null} for none + */ + public Attributes setEventApplicability(java.lang.String eventApplicability) { + this.eventApplicability = eventApplicability; + return this; + } + /** * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topi * c=13773355&sjid=17642868584668136159-NC) for the promotion. @@ -416,6 +507,29 @@ public Attributes setGetThisQuantityDiscounted(java.lang.Long getThisQuantityDis return this; } + /** + * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` + * is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on + * eligible values for product categories, checkout the `google_product_category` attribute in the + * [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en). + * @return value or {@code null} for none + */ + public java.util.List getGoogleProductCategories() { + return googleProductCategories; + } + + /** + * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` + * is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on + * eligible values for product categories, checkout the `google_product_category` attribute in the + * [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en). + * @param googleProductCategories googleProductCategories or {@code null} for none + */ + public Attributes setGoogleProductCategories(java.util.List googleProductCategories) { + this.googleProductCategories = googleProductCategories; + return this; + } + /** * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/1383729 * 8?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies @@ -543,6 +657,25 @@ public Attributes setLongTitle(java.lang.String longTitle) { return this; } + /** + * Optional. The maximum monetary discount a customer can receive for the promotion. This field is + * only supported with the `Percent off` coupon value type. + * @return value or {@code null} for none + */ + public Price getMaxDiscountAmount() { + return maxDiscountAmount; + } + + /** + * Optional. The maximum monetary discount a customer can receive for the promotion. This field is + * only supported with the `Percent off` coupon value type. + * @param maxDiscountAmount maxDiscountAmount or {@code null} for none + */ + public Attributes setMaxDiscountAmount(Price maxDiscountAmount) { + this.maxDiscountAmount = maxDiscountAmount; + return this; + } + /** * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_to * pic=13773355&sjid=17642868584668136159-NC) for the promotion. @@ -639,6 +772,9 @@ public Attributes setPercentOff(java.lang.Long percentOff) { } /** + * Optional. Applicability of the promotion to either all products or [only specific products](htt + * ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC + * ). Exactly one of `product_applicability` or `event_applicability` must be set. * @return value or {@code null} for none */ public java.lang.String getProductApplicability() { @@ -646,6 +782,9 @@ public java.lang.String getProductApplicability() { } /** + * Optional. Applicability of the promotion to either all products or [only specific products](htt + * ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC + * ). Exactly one of `product_applicability` or `event_applicability` must be set. * @param productApplicability productApplicability or {@code null} for none */ public Attributes setProductApplicability(java.lang.String productApplicability) { @@ -779,6 +918,23 @@ public Attributes setPromotionUrl(java.lang.String promotionUrl) { return this; } + /** + * Optional. A restriction customers must meet before they can redeem the promotion. + * @return value or {@code null} for none + */ + public java.lang.String getRedemptionRestriction() { + return redemptionRestriction; + } + + /** + * Optional. A restriction customers must meet before they can redeem the promotion. + * @param redemptionRestriction redemptionRestriction or {@code null} for none + */ + public Attributes setRedemptionRestriction(java.lang.String redemptionRestriction) { + this.redemptionRestriction = redemptionRestriction; + return this; + } + /** * Optional. Whether the promotion applies to [all stores, or only specified * stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC). diff --git a/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/pom.xml b/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/pom.xml index aff70deccd1..e339e441feb 100644 --- a/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-merchantapi/promotions_v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-merchantapi - promotions_v1beta-rev20250805-2.0.0 - Merchant API promotions_v1beta-rev20250805-2.0.0 + promotions_v1beta-rev20260204-2.0.0 + Merchant API promotions_v1beta-rev20260204-2.0.0 jar 2011 diff --git a/clients/google-api-services-merchantapi/promotions_v1beta/README.md b/clients/google-api-services-merchantapi/promotions_v1beta/README.md index 321062af44f..7a0c4d54eeb 100644 --- a/clients/google-api-services-merchantapi/promotions_v1beta/README.md +++ b/clients/google-api-services-merchantapi/promotions_v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - promotions_v1beta-rev20250805-2.0.0 + promotions_v1beta-rev20260204-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1beta-rev20250805-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1beta-rev20260204-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/reports_v1/2.0.0/README.md b/clients/google-api-services-merchantapi/reports_v1/2.0.0/README.md index dc20a9634f4..6307f01945a 100644 --- a/clients/google-api-services-merchantapi/reports_v1/2.0.0/README.md +++ b/clients/google-api-services-merchantapi/reports_v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - reports_v1-rev20260106-2.0.0 + reports_v1-rev20260202-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:reports_v1-rev20260106-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:reports_v1-rev20260202-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/reports_v1/2.0.0/pom.xml b/clients/google-api-services-merchantapi/reports_v1/2.0.0/pom.xml index 47ce65bbbf6..7c65700e8a5 100644 --- a/clients/google-api-services-merchantapi/reports_v1/2.0.0/pom.xml +++ b/clients/google-api-services-merchantapi/reports_v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-merchantapi - reports_v1-rev20260106-2.0.0 - Merchant API reports_v1-rev20260106-2.0.0 + reports_v1-rev20260202-2.0.0 + Merchant API reports_v1-rev20260202-2.0.0 jar 2011 diff --git a/clients/google-api-services-merchantapi/reports_v1/README.md b/clients/google-api-services-merchantapi/reports_v1/README.md index dc20a9634f4..6307f01945a 100644 --- a/clients/google-api-services-merchantapi/reports_v1/README.md +++ b/clients/google-api-services-merchantapi/reports_v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - reports_v1-rev20260106-2.0.0 + reports_v1-rev20260202-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:reports_v1-rev20260106-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:reports_v1-rev20260202-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/reports_v1beta/2.0.0/README.md b/clients/google-api-services-merchantapi/reports_v1beta/2.0.0/README.md index d6355c117dd..78992d6c40b 100644 --- a/clients/google-api-services-merchantapi/reports_v1beta/2.0.0/README.md +++ b/clients/google-api-services-merchantapi/reports_v1beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - reports_v1beta-rev20260106-2.0.0 + reports_v1beta-rev20260202-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:reports_v1beta-rev20260106-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:reports_v1beta-rev20260202-2.0.0' } ``` diff --git a/clients/google-api-services-merchantapi/reports_v1beta/2.0.0/pom.xml b/clients/google-api-services-merchantapi/reports_v1beta/2.0.0/pom.xml index 3f5a7786559..1b9f7167142 100644 --- a/clients/google-api-services-merchantapi/reports_v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-merchantapi/reports_v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-merchantapi - reports_v1beta-rev20260106-2.0.0 - Merchant API reports_v1beta-rev20260106-2.0.0 + reports_v1beta-rev20260202-2.0.0 + Merchant API reports_v1beta-rev20260202-2.0.0 jar 2011 diff --git a/clients/google-api-services-merchantapi/reports_v1beta/README.md b/clients/google-api-services-merchantapi/reports_v1beta/README.md index d6355c117dd..78992d6c40b 100644 --- a/clients/google-api-services-merchantapi/reports_v1beta/README.md +++ b/clients/google-api-services-merchantapi/reports_v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-merchantapi - reports_v1beta-rev20260106-2.0.0 + reports_v1beta-rev20260202-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-merchantapi:reports_v1beta-rev20260106-2.0.0' + implementation 'com.google.apis:google-api-services-merchantapi:reports_v1beta-rev20260202-2.0.0' } ```