Skip to content

Commit 436dcc5

Browse files
committed
Generated java-async 2022-05-20 for btripOpen.
1 parent 33f1d9d commit 436dcc5

File tree

8 files changed

+977
-1
lines changed

8 files changed

+977
-1
lines changed

btripopen-20220520/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-10-26 Version: 1.1.32
2+
- Generated java-async 2022-05-20 for btripOpen.
3+
14
2023-10-24 Version: 1.1.31
25
- Generated java-async 2022-05-20 for btripOpen.
36

btripopen-20220520/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>alibabacloud-btripopen20220520</artifactId>
6-
<version>1.1.31</version>
6+
<version>1.1.32</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-btripopen20220520</name>
99
<description>Alibaba Cloud btripOpen (20220520) Async SDK for Java

btripopen-20220520/src/main/java/com/aliyun/sdk/service/btripopen20220520/models/ApplyAddRequest.java

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public class ApplyAddRequest extends Request {
2020
@NameInMap("budget_merge")
2121
private Integer budgetMerge;
2222

23+
@Body
24+
@NameInMap("car_rule")
25+
private CarRule carRule;
26+
2327
@Body
2428
@NameInMap("corp_name")
2529
private String corpName;
@@ -156,6 +160,7 @@ private ApplyAddRequest(Builder builder) {
156160
super(builder);
157161
this.budget = builder.budget;
158162
this.budgetMerge = builder.budgetMerge;
163+
this.carRule = builder.carRule;
159164
this.corpName = builder.corpName;
160165
this.departId = builder.departId;
161166
this.departName = builder.departName;
@@ -217,6 +222,13 @@ public Integer getBudgetMerge() {
217222
return this.budgetMerge;
218223
}
219224

225+
/**
226+
* @return carRule
227+
*/
228+
public CarRule getCarRule() {
229+
return this.carRule;
230+
}
231+
220232
/**
221233
* @return corpName
222234
*/
@@ -444,6 +456,7 @@ public String getXAcsBtripSoCorpToken() {
444456
public static final class Builder extends Request.Builder<ApplyAddRequest, Builder> {
445457
private Long budget;
446458
private Integer budgetMerge;
459+
private CarRule carRule;
447460
private String corpName;
448461
private String departId;
449462
private String departName;
@@ -485,6 +498,7 @@ private Builder(ApplyAddRequest request) {
485498
super(request);
486499
this.budget = request.budget;
487500
this.budgetMerge = request.budgetMerge;
501+
this.carRule = request.carRule;
488502
this.corpName = request.corpName;
489503
this.departId = request.departId;
490504
this.departName = request.departName;
@@ -537,6 +551,16 @@ public Builder budgetMerge(Integer budgetMerge) {
537551
return this;
538552
}
539553

554+
/**
555+
* car_rule.
556+
*/
557+
public Builder carRule(CarRule carRule) {
558+
String carRuleShrink = shrink(carRule, "car_rule", "json");
559+
this.putBodyParameter("car_rule", carRuleShrink);
560+
this.carRule = carRule;
561+
return this;
562+
}
563+
540564
/**
541565
* corp_name.
542566
*/
@@ -839,6 +863,67 @@ public ApplyAddRequest build() {
839863

840864
}
841865

866+
public static class CarRule extends TeaModel {
867+
@NameInMap("scenario_template_id")
868+
private String scenarioTemplateId;
869+
870+
@NameInMap("scenario_template_name")
871+
private String scenarioTemplateName;
872+
873+
private CarRule(Builder builder) {
874+
this.scenarioTemplateId = builder.scenarioTemplateId;
875+
this.scenarioTemplateName = builder.scenarioTemplateName;
876+
}
877+
878+
public static Builder builder() {
879+
return new Builder();
880+
}
881+
882+
public static CarRule create() {
883+
return builder().build();
884+
}
885+
886+
/**
887+
* @return scenarioTemplateId
888+
*/
889+
public String getScenarioTemplateId() {
890+
return this.scenarioTemplateId;
891+
}
892+
893+
/**
894+
* @return scenarioTemplateName
895+
*/
896+
public String getScenarioTemplateName() {
897+
return this.scenarioTemplateName;
898+
}
899+
900+
public static final class Builder {
901+
private String scenarioTemplateId;
902+
private String scenarioTemplateName;
903+
904+
/**
905+
* scenario_template_id.
906+
*/
907+
public Builder scenarioTemplateId(String scenarioTemplateId) {
908+
this.scenarioTemplateId = scenarioTemplateId;
909+
return this;
910+
}
911+
912+
/**
913+
* scenario_template_name.
914+
*/
915+
public Builder scenarioTemplateName(String scenarioTemplateName) {
916+
this.scenarioTemplateName = scenarioTemplateName;
917+
return this;
918+
}
919+
920+
public CarRule build() {
921+
return new CarRule(this);
922+
}
923+
924+
}
925+
926+
}
842927
public static class ExternalTravelerList extends TeaModel {
843928
@NameInMap("user_name")
844929
private String userName;
@@ -2040,6 +2125,69 @@ public TravelerList build() {
20402125

20412126
}
20422127

2128+
}
2129+
public static class CarCitySet extends TeaModel {
2130+
@NameInMap("city_code")
2131+
@Validation(required = true)
2132+
private String cityCode;
2133+
2134+
@NameInMap("city_name")
2135+
@Validation(required = true)
2136+
private String cityName;
2137+
2138+
private CarCitySet(Builder builder) {
2139+
this.cityCode = builder.cityCode;
2140+
this.cityName = builder.cityName;
2141+
}
2142+
2143+
public static Builder builder() {
2144+
return new Builder();
2145+
}
2146+
2147+
public static CarCitySet create() {
2148+
return builder().build();
2149+
}
2150+
2151+
/**
2152+
* @return cityCode
2153+
*/
2154+
public String getCityCode() {
2155+
return this.cityCode;
2156+
}
2157+
2158+
/**
2159+
* @return cityName
2160+
*/
2161+
public String getCityName() {
2162+
return this.cityName;
2163+
}
2164+
2165+
public static final class Builder {
2166+
private String cityCode;
2167+
private String cityName;
2168+
2169+
/**
2170+
* city_code.
2171+
*/
2172+
public Builder cityCode(String cityCode) {
2173+
this.cityCode = cityCode;
2174+
return this;
2175+
}
2176+
2177+
/**
2178+
* city_name.
2179+
*/
2180+
public Builder cityName(String cityName) {
2181+
this.cityName = cityName;
2182+
return this;
2183+
}
2184+
2185+
public CarCitySet build() {
2186+
return new CarCitySet(this);
2187+
}
2188+
2189+
}
2190+
20432191
}
20442192
public static class TravelerStandardHotelCitys extends TeaModel {
20452193
@NameInMap("city_code")
@@ -2126,6 +2274,9 @@ public static class TravelerStandard extends TeaModel {
21262274
@NameInMap("business_discount")
21272275
private Integer businessDiscount;
21282276

2277+
@NameInMap("car_city_set")
2278+
private java.util.List < CarCitySet> carCitySet;
2279+
21292280
@NameInMap("economy_discount")
21302281
private Integer economyDiscount;
21312282

@@ -2155,6 +2306,7 @@ public static class TravelerStandard extends TeaModel {
21552306

21562307
private TravelerStandard(Builder builder) {
21572308
this.businessDiscount = builder.businessDiscount;
2309+
this.carCitySet = builder.carCitySet;
21582310
this.economyDiscount = builder.economyDiscount;
21592311
this.firstDiscount = builder.firstDiscount;
21602312
this.flightCabins = builder.flightCabins;
@@ -2181,6 +2333,13 @@ public Integer getBusinessDiscount() {
21812333
return this.businessDiscount;
21822334
}
21832335

2336+
/**
2337+
* @return carCitySet
2338+
*/
2339+
public java.util.List < CarCitySet> getCarCitySet() {
2340+
return this.carCitySet;
2341+
}
2342+
21842343
/**
21852344
* @return economyDiscount
21862345
*/
@@ -2246,6 +2405,7 @@ public String getUserId() {
22462405

22472406
public static final class Builder {
22482407
private Integer businessDiscount;
2408+
private java.util.List < CarCitySet> carCitySet;
22492409
private Integer economyDiscount;
22502410
private Integer firstDiscount;
22512411
private String flightCabins;
@@ -2264,6 +2424,14 @@ public Builder businessDiscount(Integer businessDiscount) {
22642424
return this;
22652425
}
22662426

2427+
/**
2428+
* car_city_set.
2429+
*/
2430+
public Builder carCitySet(java.util.List < CarCitySet> carCitySet) {
2431+
this.carCitySet = carCitySet;
2432+
return this;
2433+
}
2434+
22672435
/**
22682436
* economy_discount.
22692437
*/

0 commit comments

Comments
 (0)