com.aliyun.dds20151201.models.DescribeRenewalPriceResponseBody Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dds20151201.models;
import com.aliyun.tea.*;
public class DescribeRenewalPriceResponseBody extends TeaModel {
/**
* The list of orders.
*/
@NameInMap("Order")
public DescribeRenewalPriceResponseBodyOrder order;
/**
* The ID of the request.
*
* example:
* EFD65226-08CC-4C4D-B6A4-CB3C382F67B0
*/
@NameInMap("RequestId")
public String requestId;
/**
* Details about the promotion rules.
*/
@NameInMap("Rules")
public DescribeRenewalPriceResponseBodyRules rules;
/**
* The rules matching the coupons.
*/
@NameInMap("SubOrders")
public DescribeRenewalPriceResponseBodySubOrders subOrders;
public static DescribeRenewalPriceResponseBody build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBody self = new DescribeRenewalPriceResponseBody();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBody setOrder(DescribeRenewalPriceResponseBodyOrder order) {
this.order = order;
return this;
}
public DescribeRenewalPriceResponseBodyOrder getOrder() {
return this.order;
}
public DescribeRenewalPriceResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public DescribeRenewalPriceResponseBody setRules(DescribeRenewalPriceResponseBodyRules rules) {
this.rules = rules;
return this;
}
public DescribeRenewalPriceResponseBodyRules getRules() {
return this.rules;
}
public DescribeRenewalPriceResponseBody setSubOrders(DescribeRenewalPriceResponseBodySubOrders subOrders) {
this.subOrders = subOrders;
return this;
}
public DescribeRenewalPriceResponseBodySubOrders getSubOrders() {
return this.subOrders;
}
public static class DescribeRenewalPriceResponseBodyOrderCouponsCoupon extends TeaModel {
/**
* The coupon number.
*
* example:
* youhuiquan_promotion_option_id_for_blank
*/
@NameInMap("CouponNo")
public String couponNo;
/**
* The description of the coupon.
*
* example:
* coupondemo
*/
@NameInMap("Description")
public String description;
/**
* Indicates whether the coupon was selected.
*
* example:
* true
*/
@NameInMap("IsSelected")
public String isSelected;
/**
* The name of the coupon.
*
* example:
* youhuiquan111
*/
@NameInMap("Name")
public String name;
public static DescribeRenewalPriceResponseBodyOrderCouponsCoupon build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodyOrderCouponsCoupon self = new DescribeRenewalPriceResponseBodyOrderCouponsCoupon();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodyOrderCouponsCoupon setCouponNo(String couponNo) {
this.couponNo = couponNo;
return this;
}
public String getCouponNo() {
return this.couponNo;
}
public DescribeRenewalPriceResponseBodyOrderCouponsCoupon setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public DescribeRenewalPriceResponseBodyOrderCouponsCoupon setIsSelected(String isSelected) {
this.isSelected = isSelected;
return this;
}
public String getIsSelected() {
return this.isSelected;
}
public DescribeRenewalPriceResponseBodyOrderCouponsCoupon setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
}
public static class DescribeRenewalPriceResponseBodyOrderCoupons extends TeaModel {
@NameInMap("Coupon")
public java.util.List coupon;
public static DescribeRenewalPriceResponseBodyOrderCoupons build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodyOrderCoupons self = new DescribeRenewalPriceResponseBodyOrderCoupons();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodyOrderCoupons setCoupon(java.util.List coupon) {
this.coupon = coupon;
return this;
}
public java.util.List getCoupon() {
return this.coupon;
}
}
public static class DescribeRenewalPriceResponseBodyOrderRuleIds extends TeaModel {
@NameInMap("RuleId")
public java.util.List ruleId;
public static DescribeRenewalPriceResponseBodyOrderRuleIds build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodyOrderRuleIds self = new DescribeRenewalPriceResponseBodyOrderRuleIds();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodyOrderRuleIds setRuleId(java.util.List ruleId) {
this.ruleId = ruleId;
return this;
}
public java.util.List getRuleId() {
return this.ruleId;
}
}
public static class DescribeRenewalPriceResponseBodyOrder extends TeaModel {
/**
* Details about the coupons.
*/
@NameInMap("Coupons")
public DescribeRenewalPriceResponseBodyOrderCoupons coupons;
/**
* The type of the currency. Valid values:
*
* - USD: United States dollar
* - JPY: Japanese Yen
*
*
* example:
* USD
*/
@NameInMap("Currency")
public String currency;
/**
* The discount amount of the order.
*
* example:
* 1144.8
*/
@NameInMap("DiscountAmount")
public Float discountAmount;
/**
* The original price of the order.
*
* example:
* 1144.8
*/
@NameInMap("OriginalAmount")
public Float originalAmount;
/**
* The IDs of the matched rules.
*/
@NameInMap("RuleIds")
public DescribeRenewalPriceResponseBodyOrderRuleIds ruleIds;
/**
* The actual price of the order.
*
* example:
* 0
*/
@NameInMap("TradeAmount")
public Float tradeAmount;
public static DescribeRenewalPriceResponseBodyOrder build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodyOrder self = new DescribeRenewalPriceResponseBodyOrder();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodyOrder setCoupons(DescribeRenewalPriceResponseBodyOrderCoupons coupons) {
this.coupons = coupons;
return this;
}
public DescribeRenewalPriceResponseBodyOrderCoupons getCoupons() {
return this.coupons;
}
public DescribeRenewalPriceResponseBodyOrder setCurrency(String currency) {
this.currency = currency;
return this;
}
public String getCurrency() {
return this.currency;
}
public DescribeRenewalPriceResponseBodyOrder setDiscountAmount(Float discountAmount) {
this.discountAmount = discountAmount;
return this;
}
public Float getDiscountAmount() {
return this.discountAmount;
}
public DescribeRenewalPriceResponseBodyOrder setOriginalAmount(Float originalAmount) {
this.originalAmount = originalAmount;
return this;
}
public Float getOriginalAmount() {
return this.originalAmount;
}
public DescribeRenewalPriceResponseBodyOrder setRuleIds(DescribeRenewalPriceResponseBodyOrderRuleIds ruleIds) {
this.ruleIds = ruleIds;
return this;
}
public DescribeRenewalPriceResponseBodyOrderRuleIds getRuleIds() {
return this.ruleIds;
}
public DescribeRenewalPriceResponseBodyOrder setTradeAmount(Float tradeAmount) {
this.tradeAmount = tradeAmount;
return this;
}
public Float getTradeAmount() {
return this.tradeAmount;
}
}
public static class DescribeRenewalPriceResponseBodyRulesRule extends TeaModel {
/**
* The name of the rule.
*
* example:
* demoname
*/
@NameInMap("Name")
public String name;
/**
* The ID of the rule.
*
* example:
* 11111111
*/
@NameInMap("RuleDescId")
public Long ruleDescId;
/**
* The title of the rule.
*
* example:
* demo
*/
@NameInMap("Title")
public String title;
public static DescribeRenewalPriceResponseBodyRulesRule build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodyRulesRule self = new DescribeRenewalPriceResponseBodyRulesRule();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodyRulesRule setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public DescribeRenewalPriceResponseBodyRulesRule setRuleDescId(Long ruleDescId) {
this.ruleDescId = ruleDescId;
return this;
}
public Long getRuleDescId() {
return this.ruleDescId;
}
public DescribeRenewalPriceResponseBodyRulesRule setTitle(String title) {
this.title = title;
return this;
}
public String getTitle() {
return this.title;
}
}
public static class DescribeRenewalPriceResponseBodyRules extends TeaModel {
@NameInMap("Rule")
public java.util.List rule;
public static DescribeRenewalPriceResponseBodyRules build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodyRules self = new DescribeRenewalPriceResponseBodyRules();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodyRules setRule(java.util.List rule) {
this.rule = rule;
return this;
}
public java.util.List getRule() {
return this.rule;
}
}
public static class DescribeRenewalPriceResponseBodySubOrdersSubOrderRuleIds extends TeaModel {
@NameInMap("RuleId")
public java.util.List ruleId;
public static DescribeRenewalPriceResponseBodySubOrdersSubOrderRuleIds build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodySubOrdersSubOrderRuleIds self = new DescribeRenewalPriceResponseBodySubOrdersSubOrderRuleIds();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodySubOrdersSubOrderRuleIds setRuleId(java.util.List ruleId) {
this.ruleId = ruleId;
return this;
}
public java.util.List getRuleId() {
return this.ruleId;
}
}
public static class DescribeRenewalPriceResponseBodySubOrdersSubOrder extends TeaModel {
/**
* The discount amount of the order.
*
* example:
* 1144.8
*/
@NameInMap("DiscountAmount")
public Float discountAmount;
/**
* The ID of the instance.
*
* example:
* dds-bp12c5b040dc****
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* The original price of the order.
*
* example:
* 1144.8
*/
@NameInMap("OriginalAmount")
public Float originalAmount;
/**
* The IDs of the matched rules.
*/
@NameInMap("RuleIds")
public DescribeRenewalPriceResponseBodySubOrdersSubOrderRuleIds ruleIds;
/**
* The actual price of the order.
*
* example:
* 0
*/
@NameInMap("TradeAmount")
public Float tradeAmount;
public static DescribeRenewalPriceResponseBodySubOrdersSubOrder build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodySubOrdersSubOrder self = new DescribeRenewalPriceResponseBodySubOrdersSubOrder();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodySubOrdersSubOrder setDiscountAmount(Float discountAmount) {
this.discountAmount = discountAmount;
return this;
}
public Float getDiscountAmount() {
return this.discountAmount;
}
public DescribeRenewalPriceResponseBodySubOrdersSubOrder setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public DescribeRenewalPriceResponseBodySubOrdersSubOrder setOriginalAmount(Float originalAmount) {
this.originalAmount = originalAmount;
return this;
}
public Float getOriginalAmount() {
return this.originalAmount;
}
public DescribeRenewalPriceResponseBodySubOrdersSubOrder setRuleIds(DescribeRenewalPriceResponseBodySubOrdersSubOrderRuleIds ruleIds) {
this.ruleIds = ruleIds;
return this;
}
public DescribeRenewalPriceResponseBodySubOrdersSubOrderRuleIds getRuleIds() {
return this.ruleIds;
}
public DescribeRenewalPriceResponseBodySubOrdersSubOrder setTradeAmount(Float tradeAmount) {
this.tradeAmount = tradeAmount;
return this;
}
public Float getTradeAmount() {
return this.tradeAmount;
}
}
public static class DescribeRenewalPriceResponseBodySubOrders extends TeaModel {
@NameInMap("SubOrder")
public java.util.List subOrder;
public static DescribeRenewalPriceResponseBodySubOrders build(java.util.Map map) throws Exception {
DescribeRenewalPriceResponseBodySubOrders self = new DescribeRenewalPriceResponseBodySubOrders();
return TeaModel.build(map, self);
}
public DescribeRenewalPriceResponseBodySubOrders setSubOrder(java.util.List subOrder) {
this.subOrder = subOrder;
return this;
}
public java.util.List getSubOrder() {
return this.subOrder;
}
}
}