Skip to content

Commit 0d842a6

Browse files
1 parent 2689c86 commit 0d842a6

File tree

5 files changed

+145
-6
lines changed

5 files changed

+145
-6
lines changed

clients/google-api-services-content/v2.1/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-content</artifactId>
25-
<version>v2.1-rev20241120-2.0.0</version>
25+
<version>v2.1-rev20241217-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-content:v2.1-rev20241120-2.0.0'
38+
implementation 'com.google.apis:google-api-services-content:v2.1-rev20241217-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-content/v2.1/2.0.0/com/google/api/services/content/model/Product.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,13 @@ public final class Product extends com.google.api.client.json.GenericJson {
761761
@com.google.api.client.util.Key
762762
private ProductSubscriptionCost subscriptionCost;
763763

764+
/**
765+
* Optional. The list of sustainability incentive programs.
766+
* The value may be {@code null}.
767+
*/
768+
@com.google.api.client.util.Key
769+
private java.util.List<ProductSustainabilityIncentive> sustainabilityIncentives;
770+
764771
/**
765772
* Required. The CLDR territory code for the item's country of sale.
766773
* The value may be {@code null}.
@@ -2511,6 +2518,23 @@ public Product setSubscriptionCost(ProductSubscriptionCost subscriptionCost) {
25112518
return this;
25122519
}
25132520

2521+
/**
2522+
* Optional. The list of sustainability incentive programs.
2523+
* @return value or {@code null} for none
2524+
*/
2525+
public java.util.List<ProductSustainabilityIncentive> getSustainabilityIncentives() {
2526+
return sustainabilityIncentives;
2527+
}
2528+
2529+
/**
2530+
* Optional. The list of sustainability incentive programs.
2531+
* @param sustainabilityIncentives sustainabilityIncentives or {@code null} for none
2532+
*/
2533+
public Product setSustainabilityIncentives(java.util.List<ProductSustainabilityIncentive> sustainabilityIncentives) {
2534+
this.sustainabilityIncentives = sustainabilityIncentives;
2535+
return this;
2536+
}
2537+
25142538
/**
25152539
* Required. The CLDR territory code for the item's country of sale.
25162540
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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.content.model;
18+
19+
/**
20+
* Information regarding sustainability related incentive programs such as rebates or tax relief.
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 Content API for Shopping. For a detailed explanation
24+
* see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class ProductSustainabilityIncentive extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The fixed amount of the incentive.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private Price amount;
39+
40+
/**
41+
* Optional. The percentage of the sale price that the incentive is applied to.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.Double percentage;
46+
47+
/**
48+
* Required. Sustainability incentive program.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String type;
53+
54+
/**
55+
* Optional. The fixed amount of the incentive.
56+
* @return value or {@code null} for none
57+
*/
58+
public Price getAmount() {
59+
return amount;
60+
}
61+
62+
/**
63+
* Optional. The fixed amount of the incentive.
64+
* @param amount amount or {@code null} for none
65+
*/
66+
public ProductSustainabilityIncentive setAmount(Price amount) {
67+
this.amount = amount;
68+
return this;
69+
}
70+
71+
/**
72+
* Optional. The percentage of the sale price that the incentive is applied to.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.lang.Double getPercentage() {
76+
return percentage;
77+
}
78+
79+
/**
80+
* Optional. The percentage of the sale price that the incentive is applied to.
81+
* @param percentage percentage or {@code null} for none
82+
*/
83+
public ProductSustainabilityIncentive setPercentage(java.lang.Double percentage) {
84+
this.percentage = percentage;
85+
return this;
86+
}
87+
88+
/**
89+
* Required. Sustainability incentive program.
90+
* @return value or {@code null} for none
91+
*/
92+
public java.lang.String getType() {
93+
return type;
94+
}
95+
96+
/**
97+
* Required. Sustainability incentive program.
98+
* @param type type or {@code null} for none
99+
*/
100+
public ProductSustainabilityIncentive setType(java.lang.String type) {
101+
this.type = type;
102+
return this;
103+
}
104+
105+
@Override
106+
public ProductSustainabilityIncentive set(String fieldName, Object value) {
107+
return (ProductSustainabilityIncentive) super.set(fieldName, value);
108+
}
109+
110+
@Override
111+
public ProductSustainabilityIncentive clone() {
112+
return (ProductSustainabilityIncentive) super.clone();
113+
}
114+
115+
}

clients/google-api-services-content/v2.1/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-content</artifactId>
11-
<version>v2.1-rev20241120-2.0.0</version>
12-
<name>Content API for Shopping v2.1-rev20241120-2.0.0</name>
11+
<version>v2.1-rev20241217-2.0.0</version>
12+
<name>Content API for Shopping v2.1-rev20241217-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-content/v2.1/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-content</artifactId>
25-
<version>v2.1-rev20241120-2.0.0</version>
25+
<version>v2.1-rev20241217-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-content:v2.1-rev20241120-2.0.0'
38+
implementation 'com.google.apis:google-api-services-content:v2.1-rev20241217-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)