云桌面 Workspace-包周期桌面池变更规格批量询价:响应参数

时间:2025-01-26 10:42:46

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

is_upgrade

Boolean

是否为升配。

batch_inquiry_rsp_when_upgrade

PeriodBatchUpChangeResourceRsp object

桌面池升配变更询价响应体。

batch_inquiry_rsp_when_downgrade

BatchInquiryChangeRsp object

批量变更询价响应体。

表5 PeriodBatchUpChangeResourceRsp

参数

参数类型

描述

currency

String

币种,比如CNY。

extend_params

String

扩展参数。

official_website_rating_result

OfficialWebsiteRatingResult object

结果。

optional_discount_rating_results

Array of OptionalDiscountRatingResult objects

存在可选折扣优惠时返回折扣优惠维度询价结果,每个折扣优惠一组询价结果。

表6 OfficialWebsiteRatingResult

参数

参数类型

描述

amount

Number

订单总额,即最终优惠后的订单金额(预留实例只包含预付部分)。

official_website_amount

Number

官网价(预留实例只包含预付部分)。

original_amount

Number

订单原总额,即优惠前订单总额(预留实例只包含预付部分)。

official_website_discount_amount

Number

官网价优惠额(预留实例只包含预付部分)。

optional_discount_amount

Number

可选折扣优惠额(预留实例只包含预付部分)。

discount_amount

Number

总优惠额(预留实例只包含预付部分)。

per_amount

Number

总分期金额(批量询价的商品分期周期类型一致,才会有总分期金额,分期周期类型不一致,该信息没有)。

per_discount_amount

Number

总分期金额的优惠额(perDiscountAmount = perOriginalAmount - perAmount)。

per_original_amount

Number

总分期金额原价。

per_period_type

Integer

分期周期类型 2:月 4:小时。

measure_id

Integer

度量单位。

product_rating_results

Array of ProductResult objects

产品询价结果。

表7 OptionalDiscountRatingResult

参数

参数类型

描述

discount_id

String

折扣优惠Id。

amount

Number

订单总额,即最终优惠后的订单金额(预留实例只包含预付部分)。

official_website_amount

Number

官网价(预留实例只包含预付部分)。

original_amount

Number

订单原总额,即优惠前订单总额(预留实例只包含预付部分)。

official_website_discount_amount

Number

官网价优惠额(预留实例只包含预付部分)。

optional_discount_amount

Number

可选折扣优惠额(预留实例只包含预付部分)。

discount_amount

Number

总优惠额(预留实例只包含预付部分)。

per_amount

Number

总分期金额(批量询价的商品分期周期类型一致,才会有总分期金额,分期周期类型不一致,该信息没有)。

per_discount_amount

Number

总分期金额的优惠额(perDiscountAmount = perOriginalAmount - perAmount)。

per_original_amount

Number

总分期金额原价。

per_official_website_amount

Number

总分期金额的官网价(批量询价的商品分期周期类型一致,才会有总分期金额的官网价,分期周期类型不一致,该信息没有)。

per_official_website_discount_amount

Number

总分期金额的官网价官网价优惠额,即: perOfficialWebsiteDiscountAmount =perOriginalAmount-perOfficialWebsiteAmount (批量询价的商品分期周期类型一致,才会有总分期金额的官网价,分期周期类型不一致,该信息没有)。

per_optional_discount_amount

Number

总分期金额的可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额 perOptionalDiscountAmount= perOfficialWebsiteAmount- perAmount (批量询价的商品分期周期类型一致,才会有总分期金额的官网价,分期周期类型不一致,该信息没有)。

per_period_type

Integer

分期周期类型 2:月 4:小时。

measure_id

Integer

度量单位。

discount_type

Integer

折扣优惠类型。

discount_name

String

折扣名称。

best_offer

Integer

是否为最优折扣0:不是最优折扣;为缺省值。1:是最优折扣;最优折扣:在商务折扣、伙伴折扣和促销折扣中选择(优惠金额相等则按此顺序排优先级),折扣券不参与最优折扣的计算。

same_ratio_flag

Integer

sameRatioFlag。

discount_ratio

Number

sameRatioFlag为1时有值,表示该折扣的折扣率。

promotion_info

String

折扣优惠基本信息;调用者在确定好折扣优惠后、下单时,使用此字段值,填入到订购/变更接口中的promotionInfo字段。

product_rating_results

Array of ProductResult objects

产品询价结果。

表8 ProductResult

参数

参数类型

描述

id

String

对应请求体中的ID。

product_id

String

产品ID。

amount

Number

总额,即最终优惠后的金额(预留实例只包含预付部分)。

discount_amount

Number

优惠额(预留实例只包含预付部分)。

original_amount

Number

原总额,即优惠前总额(预留实例只包含预付部分)。

official_website_amount

Number

官网价(非所有接口有该字段)(预留实例只包含预付部分)。

official_website_discount_amount

Number

官网价优惠额(非所有接口有该字段)(预留实例只包含预付部分)。

optional_discount_amount

Number

可选折扣优惠额(预留实例只包含预付部分),如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额(非所有接口有该字段)。

per_amount

Number

总分期金额(批量询价的商品分期周期类型一致,才会有总分期金额,分期周期类型不一致,该信息没有)。

per_discount_amount

Number

总分期金额的优惠额(perDiscountAmount = perOriginalAmount - perAmount)。

per_original_amount

Number

总分期金额原价。

per_official_website_amount

Number

分期金额的官网价。

per_official_website_discount_amount

Number

分期金额的官网价官网价优惠额,即:perOfficialWebsiteDiscountAmount =perOriginalAmount-perOfficialWebsiteAmount。

per_optional_discount_amount

Number

分期金额的可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额 perOptionalDiscountAmount= perOfficialWebsiteAmount- perAmount。

per_period_type

Integer

分期周期类型 2:月 4:小时。

measure_id

Integer

度量单位。

extend_params

String

扩展参数。

表9 BatchInquiryChangeRsp

参数

参数类型

描述

ret_code

String

返回码,恒为0。

error_txt

String

返回信息。

amount

Number

总额,即最终优惠后的金额(降配场景下包含退还的现金、现金券、储值卡的总额)。

coupon_results

Array of CouponUnsubscribeResult objects

券的退订金额(降配存在)。

discount_amount

Number

优惠额。

original_amount

Number

原总额,即优惠前总额。

measure_id

Integer

度量单位标识。

currency

String

货币单位代码(遵循ISO 4217标准)。

product_rating_result

Array of BatchResInquiryResult objects

批价结果。

extend_params

String

扩展参数。

表10 BatchResInquiryResult

参数

参数类型

描述

id

String

ID标识,同一次询价中不能重复。

product_id

String

变更后的产品ID。

amount

Number

总额,即最终优惠后的金额(降配场景下包含退还的现金、现金券、储值卡的总额)。

coupon_results

Array of CouponUnsubscribeResult objects

券的退订金额(降配存在)。

discount_amount

Number

优惠额。

original_amount

Number

原总额,即优惠前总额。

measure_id

Integer

度量单位标识。

extend_params

String

扩展参数。

表11 CouponUnsubscribeResult

参数

参数类型

描述

coupon_id

String

券ID。

coupon_type

String

券类型 302:现金券 303:储值卡。

amount

Double

券退的金额。

measure_id

Integer

度量单位。'

状态码: 400

表12 响应Body参数

参数

参数类型

描述

error_code

String

错误码,失败时返回。

error_msg

String

错误描述。

encoded_authorization_message

String

加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。

状态码: 409

表13 响应Body参数

参数

参数类型

描述

error_code

String

错误码,失败时返回。

error_msg

String

错误描述。

encoded_authorization_message

String

加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。

状态码: 500

表14 响应Body参数

参数

参数类型

描述

error_code

String

错误码,失败时返回。

error_msg

String

错误描述。

encoded_authorization_message

String

加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。

support.huaweicloud.com/api-workspace/EstimateDesktopPoolResize.html