sdk-team 3 лет назад
Родитель
Сommit
2d60eb1a66

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1764
+1.36.1765

+ 1 - 0
dds/include/alibabacloud/dds/model/DescribePriceResult.h

@@ -51,6 +51,7 @@ namespace AlibabaCloud
 						double lackForPriceBreak;
 					};
 					std::vector<std::string> ruleIds1;
+					bool showDiscountInfo;
 					std::string currency;
 					std::string tradeAmount;
 					std::vector<Coupon> coupons;

+ 2 - 0
dds/src/model/DescribePriceResult.cc

@@ -77,6 +77,8 @@ void DescribePriceResult::parse(const std::string &payload)
 		order_.tradeAmount = orderNode["TradeAmount"].asString();
 	if(!orderNode["Currency"].isNull())
 		order_.currency = orderNode["Currency"].asString();
+	if(!orderNode["ShowDiscountInfo"].isNull())
+		order_.showDiscountInfo = orderNode["ShowDiscountInfo"].asString() == "true";
 	auto allCouponsNode = orderNode["Coupons"]["Coupon"];
 	for (auto orderNodeCouponsCoupon : allCouponsNode)
 	{