Skip to content

Commit 401da1f

Browse files
1 parent 6a0f160 commit 401da1f

File tree

40 files changed

+488
-124
lines changed

40 files changed

+488
-124
lines changed

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
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.inventories_v1.model;
18+
19+
/**
20+
* A message that represents loyalty program.
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 InventoryLoyaltyProgram extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The cashback that can be used for future purchases.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private Price cashbackForFutureUse;
38+
39+
/**
40+
* The amount of loyalty points earned on a purchase.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
44+
private java.lang.Long loyaltyPoints;
45+
46+
/**
47+
* A date range during which the item is eligible for member price. If not specified, the member
48+
* price is always applicable. The date range is represented by a pair of ISO 8601 dates separated
49+
* by a space, comma, or slash.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private Interval memberPriceEffectiveInterval;
54+
55+
/**
56+
* The price for members of the given tier, that is, the instant discount price. Must be smaller
57+
* or equal to the regular price.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private Price price;
62+
63+
/**
64+
* The label of the loyalty program. This is an internal label that uniquely identifies the
65+
* relationship between a business entity and a loyalty program entity. The label must be provided
66+
* if there are multiple loyalty programs available for the merchant, so that the system can
67+
* associate the assets below (for example, price and points) with the correct business. The
68+
* corresponding program must be linked to the Merchant Center account.
69+
* The value may be {@code null}.
70+
*/
71+
@com.google.api.client.util.Key
72+
private java.lang.String programLabel;
73+
74+
/**
75+
* The label of the shipping benefit. If the field has value, this offer has loyalty shipping
76+
* benefit. If the field value isn't provided, the item is not eligible for loyalty shipping for
77+
* the given loyalty tier.
78+
* The value may be {@code null}.
79+
*/
80+
@com.google.api.client.util.Key
81+
private java.lang.String shippingLabel;
82+
83+
/**
84+
* The label of the tier within the loyalty program. Must match one of the labels within the
85+
* program.
86+
* The value may be {@code null}.
87+
*/
88+
@com.google.api.client.util.Key
89+
private java.lang.String tierLabel;
90+
91+
/**
92+
* The cashback that can be used for future purchases.
93+
* @return value or {@code null} for none
94+
*/
95+
public Price getCashbackForFutureUse() {
96+
return cashbackForFutureUse;
97+
}
98+
99+
/**
100+
* The cashback that can be used for future purchases.
101+
* @param cashbackForFutureUse cashbackForFutureUse or {@code null} for none
102+
*/
103+
public InventoryLoyaltyProgram setCashbackForFutureUse(Price cashbackForFutureUse) {
104+
this.cashbackForFutureUse = cashbackForFutureUse;
105+
return this;
106+
}
107+
108+
/**
109+
* The amount of loyalty points earned on a purchase.
110+
* @return value or {@code null} for none
111+
*/
112+
public java.lang.Long getLoyaltyPoints() {
113+
return loyaltyPoints;
114+
}
115+
116+
/**
117+
* The amount of loyalty points earned on a purchase.
118+
* @param loyaltyPoints loyaltyPoints or {@code null} for none
119+
*/
120+
public InventoryLoyaltyProgram setLoyaltyPoints(java.lang.Long loyaltyPoints) {
121+
this.loyaltyPoints = loyaltyPoints;
122+
return this;
123+
}
124+
125+
/**
126+
* A date range during which the item is eligible for member price. If not specified, the member
127+
* price is always applicable. The date range is represented by a pair of ISO 8601 dates separated
128+
* by a space, comma, or slash.
129+
* @return value or {@code null} for none
130+
*/
131+
public Interval getMemberPriceEffectiveInterval() {
132+
return memberPriceEffectiveInterval;
133+
}
134+
135+
/**
136+
* A date range during which the item is eligible for member price. If not specified, the member
137+
* price is always applicable. The date range is represented by a pair of ISO 8601 dates separated
138+
* by a space, comma, or slash.
139+
* @param memberPriceEffectiveInterval memberPriceEffectiveInterval or {@code null} for none
140+
*/
141+
public InventoryLoyaltyProgram setMemberPriceEffectiveInterval(Interval memberPriceEffectiveInterval) {
142+
this.memberPriceEffectiveInterval = memberPriceEffectiveInterval;
143+
return this;
144+
}
145+
146+
/**
147+
* The price for members of the given tier, that is, the instant discount price. Must be smaller
148+
* or equal to the regular price.
149+
* @return value or {@code null} for none
150+
*/
151+
public Price getPrice() {
152+
return price;
153+
}
154+
155+
/**
156+
* The price for members of the given tier, that is, the instant discount price. Must be smaller
157+
* or equal to the regular price.
158+
* @param price price or {@code null} for none
159+
*/
160+
public InventoryLoyaltyProgram setPrice(Price price) {
161+
this.price = price;
162+
return this;
163+
}
164+
165+
/**
166+
* The label of the loyalty program. This is an internal label that uniquely identifies the
167+
* relationship between a business entity and a loyalty program entity. The label must be provided
168+
* if there are multiple loyalty programs available for the merchant, so that the system can
169+
* associate the assets below (for example, price and points) with the correct business. The
170+
* corresponding program must be linked to the Merchant Center account.
171+
* @return value or {@code null} for none
172+
*/
173+
public java.lang.String getProgramLabel() {
174+
return programLabel;
175+
}
176+
177+
/**
178+
* The label of the loyalty program. This is an internal label that uniquely identifies the
179+
* relationship between a business entity and a loyalty program entity. The label must be provided
180+
* if there are multiple loyalty programs available for the merchant, so that the system can
181+
* associate the assets below (for example, price and points) with the correct business. The
182+
* corresponding program must be linked to the Merchant Center account.
183+
* @param programLabel programLabel or {@code null} for none
184+
*/
185+
public InventoryLoyaltyProgram setProgramLabel(java.lang.String programLabel) {
186+
this.programLabel = programLabel;
187+
return this;
188+
}
189+
190+
/**
191+
* The label of the shipping benefit. If the field has value, this offer has loyalty shipping
192+
* benefit. If the field value isn't provided, the item is not eligible for loyalty shipping for
193+
* the given loyalty tier.
194+
* @return value or {@code null} for none
195+
*/
196+
public java.lang.String getShippingLabel() {
197+
return shippingLabel;
198+
}
199+
200+
/**
201+
* The label of the shipping benefit. If the field has value, this offer has loyalty shipping
202+
* benefit. If the field value isn't provided, the item is not eligible for loyalty shipping for
203+
* the given loyalty tier.
204+
* @param shippingLabel shippingLabel or {@code null} for none
205+
*/
206+
public InventoryLoyaltyProgram setShippingLabel(java.lang.String shippingLabel) {
207+
this.shippingLabel = shippingLabel;
208+
return this;
209+
}
210+
211+
/**
212+
* The label of the tier within the loyalty program. Must match one of the labels within the
213+
* program.
214+
* @return value or {@code null} for none
215+
*/
216+
public java.lang.String getTierLabel() {
217+
return tierLabel;
218+
}
219+
220+
/**
221+
* The label of the tier within the loyalty program. Must match one of the labels within the
222+
* program.
223+
* @param tierLabel tierLabel or {@code null} for none
224+
*/
225+
public InventoryLoyaltyProgram setTierLabel(java.lang.String tierLabel) {
226+
this.tierLabel = tierLabel;
227+
return this;
228+
}
229+
230+
@Override
231+
public InventoryLoyaltyProgram set(String fieldName, Object value) {
232+
return (InventoryLoyaltyProgram) super.set(fieldName, value);
233+
}
234+
235+
@Override
236+
public InventoryLoyaltyProgram clone() {
237+
return (InventoryLoyaltyProgram) super.clone();
238+
}
239+
240+
}

clients/google-api-services-merchantapi/inventories_v1/2.0.0/com/google/api/services/merchantapi/inventories_v1/model/LocalInventoryAttributes.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@ public final class LocalInventoryAttributes extends com.google.api.client.json.G
4444
@com.google.api.client.util.Key
4545
private java.lang.String instoreProductLocation;
4646

47+
/**
48+
* Optional. An optional list of loyalty programs containing applicable loyalty member prices for
49+
* this product at this store. This field is used to show store-specific member prices on Local
50+
* Inventory Ads (LIA). To use this, the loyalty program must be configured in Google Merchant
51+
* Center. The benefits provided must match the merchant's website and be clear to members. This
52+
* is only applicable for merchants in supported countries. See [Loyalty
53+
* program](https://support.google.com/merchants/answer/12922446) for details on supported
54+
* countries and loyalty program configuration. For local inventory specific details, see the
55+
* [Local inventory data specification](https://support.google.com/merchants/answer/3061342).
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.util.List<InventoryLoyaltyProgram> loyaltyPrograms;
60+
61+
static {
62+
// hack to force ProGuard to consider InventoryLoyaltyProgram used, since otherwise it would be stripped out
63+
// see https://github.com/google/google-api-java-client/issues/543
64+
com.google.api.client.util.Data.nullOf(InventoryLoyaltyProgram.class);
65+
}
66+
4767
/**
4868
* Optional. Supported [pickup method](https://support.google.com/merchants/answer/3061342) for
4969
* this product. Unless the value is `"not supported"`, this field must be submitted together with
@@ -128,6 +148,37 @@ public LocalInventoryAttributes setInstoreProductLocation(java.lang.String insto
128148
return this;
129149
}
130150

151+
/**
152+
* Optional. An optional list of loyalty programs containing applicable loyalty member prices for
153+
* this product at this store. This field is used to show store-specific member prices on Local
154+
* Inventory Ads (LIA). To use this, the loyalty program must be configured in Google Merchant
155+
* Center. The benefits provided must match the merchant's website and be clear to members. This
156+
* is only applicable for merchants in supported countries. See [Loyalty
157+
* program](https://support.google.com/merchants/answer/12922446) for details on supported
158+
* countries and loyalty program configuration. For local inventory specific details, see the
159+
* [Local inventory data specification](https://support.google.com/merchants/answer/3061342).
160+
* @return value or {@code null} for none
161+
*/
162+
public java.util.List<InventoryLoyaltyProgram> getLoyaltyPrograms() {
163+
return loyaltyPrograms;
164+
}
165+
166+
/**
167+
* Optional. An optional list of loyalty programs containing applicable loyalty member prices for
168+
* this product at this store. This field is used to show store-specific member prices on Local
169+
* Inventory Ads (LIA). To use this, the loyalty program must be configured in Google Merchant
170+
* Center. The benefits provided must match the merchant's website and be clear to members. This
171+
* is only applicable for merchants in supported countries. See [Loyalty
172+
* program](https://support.google.com/merchants/answer/12922446) for details on supported
173+
* countries and loyalty program configuration. For local inventory specific details, see the
174+
* [Local inventory data specification](https://support.google.com/merchants/answer/3061342).
175+
* @param loyaltyPrograms loyaltyPrograms or {@code null} for none
176+
*/
177+
public LocalInventoryAttributes setLoyaltyPrograms(java.util.List<InventoryLoyaltyProgram> loyaltyPrograms) {
178+
this.loyaltyPrograms = loyaltyPrograms;
179+
return this;
180+
}
181+
131182
/**
132183
* Optional. Supported [pickup method](https://support.google.com/merchants/answer/3061342) for
133184
* this product. Unless the value is `"not supported"`, this field must be submitted together with

clients/google-api-services-merchantapi/inventories_v1/2.0.0/com/google/api/services/merchantapi/inventories_v1/model/RegionalInventoryAttributes.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,28 @@ public final class RegionalInventoryAttributes extends com.google.api.client.jso
3737
@com.google.api.client.util.Key
3838
private java.lang.String availability;
3939

40+
/**
41+
* Optional. An optional list of loyalty programs containing applicable loyalty member prices for
42+
* this product in this region. This field is used to show region-specific member prices on
43+
* Product Listing Ads (PLA). To use this, the loyalty program must be configured in Google
44+
* Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP)
45+
* feature. The benefits provided must match the merchant's website and be clear to members. This
46+
* is only applicable for merchants in supported countries. See [Loyalty
47+
* program](https://support.google.com/merchants/answer/12922446) for details on supported
48+
* countries and loyalty program configuration. Also see [Regional availability and
49+
* pricing](https://support.google.com/merchants/answer/14644124) and [How to set up regional
50+
* member pricing](https://support.google.com/merchants/answer/16388178) for more information.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.util.List<InventoryLoyaltyProgram> loyaltyPrograms;
55+
56+
static {
57+
// hack to force ProGuard to consider InventoryLoyaltyProgram used, since otherwise it would be stripped out
58+
// see https://github.com/google/google-api-java-client/issues/543
59+
com.google.api.client.util.Data.nullOf(InventoryLoyaltyProgram.class);
60+
}
61+
4062
/**
4163
* Optional. Price of the product in this region.
4264
* The value may be {@code null}.
@@ -78,6 +100,41 @@ public RegionalInventoryAttributes setAvailability(java.lang.String availability
78100
return this;
79101
}
80102

103+
/**
104+
* Optional. An optional list of loyalty programs containing applicable loyalty member prices for
105+
* this product in this region. This field is used to show region-specific member prices on
106+
* Product Listing Ads (PLA). To use this, the loyalty program must be configured in Google
107+
* Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP)
108+
* feature. The benefits provided must match the merchant's website and be clear to members. This
109+
* is only applicable for merchants in supported countries. See [Loyalty
110+
* program](https://support.google.com/merchants/answer/12922446) for details on supported
111+
* countries and loyalty program configuration. Also see [Regional availability and
112+
* pricing](https://support.google.com/merchants/answer/14644124) and [How to set up regional
113+
* member pricing](https://support.google.com/merchants/answer/16388178) for more information.
114+
* @return value or {@code null} for none
115+
*/
116+
public java.util.List<InventoryLoyaltyProgram> getLoyaltyPrograms() {
117+
return loyaltyPrograms;
118+
}
119+
120+
/**
121+
* Optional. An optional list of loyalty programs containing applicable loyalty member prices for
122+
* this product in this region. This field is used to show region-specific member prices on
123+
* Product Listing Ads (PLA). To use this, the loyalty program must be configured in Google
124+
* Merchant Center, and the merchant must be using the Regional Availability and Pricing (RAAP)
125+
* feature. The benefits provided must match the merchant's website and be clear to members. This
126+
* is only applicable for merchants in supported countries. See [Loyalty
127+
* program](https://support.google.com/merchants/answer/12922446) for details on supported
128+
* countries and loyalty program configuration. Also see [Regional availability and
129+
* pricing](https://support.google.com/merchants/answer/14644124) and [How to set up regional
130+
* member pricing](https://support.google.com/merchants/answer/16388178) for more information.
131+
* @param loyaltyPrograms loyaltyPrograms or {@code null} for none
132+
*/
133+
public RegionalInventoryAttributes setLoyaltyPrograms(java.util.List<InventoryLoyaltyProgram> loyaltyPrograms) {
134+
this.loyaltyPrograms = loyaltyPrograms;
135+
return this;
136+
}
137+
81138
/**
82139
* Optional. Price of the product in this region.
83140
* @return value or {@code null} for none

0 commit comments

Comments
 (0)