model

package
v0.0.92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBalanceV2

type AccountBalanceV2 struct {

	// 账户标识。
	AccountId string `json:"account_id"`

	// 账户类型: 1:余额2:信用5:奖励7:保证金8:可拨款
	AccountType int32 `json:"account_type"`

	// 账户余额。
	Amount float64 `json:"amount"`

	// 币种。 CNY:人民币。
	Currency string `json:"currency"`

	// 专款专用余额。
	DesignatedAmount *float64 `json:"designated_amount,omitempty"`

	// 总信用额度。只有account_type取值为2时,该字段才有效。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 度量单位。 1:元。
	MeasureId int32 `json:"measure_id"`

	// 备注。
	Memo *string `json:"memo,omitempty"`
}

func (AccountBalanceV2) String

func (o AccountBalanceV2) String() string

type AccountBalanceV3

type AccountBalanceV3 struct {

	// 账户标识。
	AccountId string `json:"account_id"`

	// 账户类型。 1:余额2:信用5:奖励金7:保证金
	AccountType int32 `json:"account_type"`

	// 账户余额。
	Amount float64 `json:"amount"`

	// 币种。 CNY:人民币。
	Currency string `json:"currency"`

	// 专款专用余额。
	DesignatedAmount *float64 `json:"designated_amount,omitempty"`

	// 总信用额度,仅信用账户存在该字段。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 度量单位。 1:元
	MeasureId int32 `json:"measure_id"`
}

func (AccountBalanceV3) String

func (o AccountBalanceV3) String() string

type AccountChangeRecord added in v0.0.68

type AccountChangeRecord struct {

	// 收支明细流水号。
	AccountChangeId *string `json:"account_change_id,omitempty"`

	// 交易详细类型。 SOURCE_OPERAIION_ADJUST_CREDIT:调账(信用额度调整)SOURCE_OPERAIION_RECHARGE:充值SOURCE_OPERAIION_DEDEUCT:消费(包年/包月)SOURCE_OPERAIION_MANUALFROZE:冻结(人工冻结)SOURCE_OPERAIION_MANUALUNFROZE:冻结(人工解冻)SOURCE_OPERAIION_MANUALCLEARFROZEN:冻结(人工清零)SOURCE_OPERAIION_TRANS_TO_BALANCE:转账(保证金转余额)SOURCE_OPERATION_BEADJUST:伙伴拨款SOURCE_OPERATION_BEUNBIND:交易模式变更(切换/解除关联回收)SOURCE_OPERAIION_EXPIRECLEAR:过期清零SOURCE_OPERAIION_ONETIME:消费(一次性扣费)SOURCE_OPERAIION_REFUND:退款SOURCE_OPERAIION_UNFROZEN:退款(退款解冻)SOURCE_OPERAIION_CLEARFROZEN:退款(退款清零)SOURCE_OPERAIION_ADJUST:调账(余额调整)SOURCE_OPERAIION_USAGE:消费(按需)SOURCE_OPERAIION_WRITEOFF:消费(欠费还款)SOURCE_OPERAIION_UNSUBSCRIBE:退款SOURCE_OPERAIION_RFROZEN:退款(退款冻结)SOURCE_OPERAIION_TRANS_TO_FOREGIFT:转账(余额转保证金)SOURCE_OPERAIION_PRIZE:调账(赠送)SOURCE_OPERATION_BERETRIEVE:伙伴回收SOURCE_OPERAIION_PRECISIONCOMP:消费(精度补扣)SOURCE_OPERAIION_FREERESDEDUCT:消费(免费资源扣减)SOURCE_OPERAIION_MERGE:奖励金转换(合并)SOURCE_OPERAIION_CONVERT_BONUS:奖励金转换SOURCE_OPERAIION_RECHARGE_REBATE:充值(激励返点)SOURCE_OPERATION_COUPONCANCEL:优惠券回收SOURCE_OPERAIION_BILLREFUND:调账(华为核销)SOURCE_OPERATION_TRADEMODE_TRANSFER:交易模式变更(和伙伴关联)SOURCE_OPERATION_SYSTEM_FROZEN:系统冻结(购买标销合同的伙伴涉及该模式)SOURCE_OPERATION_SYSTEM_UNFROZEN:系统解冻(购买标销合同的伙伴涉及该模式)SOURCE_OPERATION_COUPON_QUOTA_TRANSFER:调账(兑换现金券额度)SOURCE_OPERATIION_RIDEDUCT:消费(预留实例)SOURCE_OPERATION_COUPON_QUOTA_RECLAIM:代金券回收
	TradeDetailType *string `json:"trade_detail_type,omitempty"`

	// 交易时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2016-03-28T14:45:38Z”。
	TradeTime *string `json:"trade_time,omitempty"`

	// 交易ID/订单ID。
	TradeId *string `json:"trade_id,omitempty"`

	// 变更金额,单位为元。
	ChangeAmount *string `json:"change_amount,omitempty"`

	// 变更后余额,单位为元。
	BalanceAfterChange *string `json:"balance_after_change,omitempty"`

	// 收支类型。 1:收入2:支出
	Type *string `json:"type,omitempty"`
}

func (AccountChangeRecord) String added in v0.0.68

func (o AccountChangeRecord) String() string

type AccountManager

type AccountManager struct {

	// 客户经理登录名称。
	AccountName *string `json:"account_name,omitempty"`
}

func (AccountManager) String

func (o AccountManager) String() string

type AddPostalReq

type AddPostalReq struct {

	// 收件人姓名。
	Recipient string `json:"recipient"`

	// 省、自治区或直辖市。例如:江苏省。
	Province string `json:"province"`

	// 市/区。例如:南京市。
	City string `json:"city"`

	// 区。例如:雨花台区。
	District string `json:"district"`

	// 邮寄详细地址。
	Address string `json:"address"`

	// 邮寄地址所在邮编。
	Zipcode *string `json:"zipcode,omitempty"`

	// 手机号码,不带国家码。
	MobilePhone string `json:"mobile_phone"`

	// 是否默认地址,默认为0。 1:默认地址0:非默认地址
	IsDefault *int32 `json:"is_default,omitempty"`
}

func (AddPostalReq) String

func (o AddPostalReq) String() string

type AdjustAccountReq

type AdjustAccountReq struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 拨款金额。 单位:元。取值大于0且精确到小数点后2位。 注意该值不能大于“查询伙伴账户余额”接口响应消息表2中参数amount - designated_amount的值。
	Amount float64 `json:"amount"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 精英服务商(二级经销商)给子客户拨款时,需携带该参数。  说明: 该参数存在的情况下,如果结果返回余额不足,表示对应的二级经销商的余额不足,如果该参数不存在,则余额不足表示调用的伙伴自身账号的余额不足。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (AdjustAccountReq) String

func (o AdjustAccountReq) String() string

type AdjustCouponQuotasReq

type AdjustCouponQuotasReq struct {

	// 华为云伙伴能力中心发放的代金券额度的ID。获取方法请参见查询优惠券额度。
	QuotaId string `json:"quota_id"`

	// 精英服务商ID列表。
	IndirectPartnerIds []string `json:"indirect_partner_ids"`

	// 华为云伙伴能力中心向精英服务商发放的代金券额度值。 单位:元。取值大于0且精确到小数点后2位。
	QuotaAmount float64 `json:"quota_amount"`
}

func (AdjustCouponQuotasReq) String

func (o AdjustCouponQuotasReq) String() string

type AdjustRecordV3 added in v0.0.61

type AdjustRecordV3 struct {

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 客户名称。
	CustomerName *string `json:"customer_name,omitempty"`

	// 调账类型。 SOURCE_OPERATION_BEADJUST:拨款SOURCE_OPERATION_BERETRIEVE:回收SOURCE_OPERATION_BEUNBIND:解绑回收
	OperationType *string `json:"operation_type,omitempty"`

	// 调账的总金额。
	Amount *string `json:"amount,omitempty"`

	// 币种。 CNY:人民币
	Currency *string `json:"currency,omitempty"`

	// 使用场景。
	ApplyScene *string `json:"apply_scene,omitempty"`

	// 调账操作的时间。 UTC时间,格式为:2016-03-28T14:45:38Z
	OperationTime *string `json:"operation_time,omitempty"`

	// 调账单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 事务ID。
	TransId *string `json:"trans_id,omitempty"`
}

func (AdjustRecordV3) String added in v0.0.61

func (o AdjustRecordV3) String() string

type AdjustToIndirectPartnerReq

type AdjustToIndirectPartnerReq struct {

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。
	IndirectPartnerId string `json:"indirect_partner_id"`

	// 华为云伙伴能力中心向精英服务商拨款的金额。 单位:元。取值大于0且精确到小数点后2位。
	Amount float64 `json:"amount"`
}

func (AdjustToIndirectPartnerReq) String

type AmountInfomationV2

type AmountInfomationV2 struct {

	// 费用项。 具体请参见表7。
	Discounts *[]DiscountItemV2 `json:"discounts,omitempty"`

	// 现金券金额。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 代金券金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 储值卡金额。
	StoredCardAmount *float64 `json:"stored_card_amount,omitempty"`

	// 手续费(仅退订订单存在)。
	CommissionAmount *float64 `json:"commission_amount,omitempty"`

	// 消费金额(仅退订订单存在)。
	ConsumedAmount *float64 `json:"consumed_amount,omitempty"`
}

func (AmountInfomationV2) String

func (o AmountInfomationV2) String() string

type ApplyEnterpriseRealnameAuthsReq

type ApplyEnterpriseRealnameAuthsReq struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 认证方案。 1:单位证件认证
	IdentifyType int32 `json:"identify_type"`

	// 单位证件类型: 0:企业营业执照1:事业单位法人证书2:社会团体法人登记证书3:行政执法主体资格证4:组织机构代码证99:其他
	CertificateType *int32 `json:"certificate_type,omitempty"`

	// 单位证件认证时证件附件的文件URL。附件地址必须按照顺序填写,先填写单位证件的附件,如果请求中填写了单位人员信息,再填写单位人员的身份证附件。 单位证件顺序为: 第1张单位证件照附件, 单位人员的证件顺序为: 第1张个人身份证的人像面 第2张个人身份证的国徽面 以营业执照举例,假设存在法人的情况下,第1张上传的是营业执照扫描件abc.023,第2张是法人的身份证人像面照片def004,第3张是法人的国徽面照片gh007,那么上传顺序需要是: abc023 def004 gh007 文件名称区分大小写。 证件附件目前仅仅支持jpg、jpeg、bmp、png、gif、pdf格式,单个文件最大不超过10M。这个URL是相对URL,不需要包含桶名和download目录,只要包含download目录下的子目录和对应文件名称即可。举例如下:如果上传的证件附件在桶中的位置是:https://bucketname.obs.Endpoint.myhuaweicloud.com/download/abc023.jpg,该字段填写abc023.jpg; 如果上传的证件附件在桶中的位置是:https://bucketname.obs.Endpoint.myhuaweicloud.com/download/test/abc023.jpg,该字段填写test/abc023.jpg。
	VerifiedFileUrl []string `json:"verified_file_url"`

	// 单位名称。 不能全是数字、特殊字符、空格。
	CorpName string `json:"corp_name"`

	// 单位证件号码。
	VerifiedNumber string `json:"verified_number"`

	// 实名认证填写的注册国家。国家的两位字母简码。 例如:注册国家为“中国”请填写“CN”。
	RegCountry *string `json:"reg_country,omitempty"`

	// 实名认证企业注册地址。
	RegAddress *string `json:"reg_address,omitempty"`

	// 华为分给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType string `json:"xaccount_type"`

	EnterprisePerson *EnterprisePersonNew `json:"enterprise_person,omitempty"`
}

func (ApplyEnterpriseRealnameAuthsReq) String

type ApplyIndividualRealnameAuthsReq

type ApplyIndividualRealnameAuthsReq struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 认证方案: 0:个人证件认证 4:个人银行卡认证
	IdentifyType int32 `json:"identify_type"`

	// 证件类型: 0:身份证,上传的附件为3张,第1张是身份证人像面,第2张是身份证国徽面,第3张是个人手持身份证人像面; 3:护照,上传的附件为3张,第1张是护照个人资料页,第2张是,护照入境盖章页,第3张是手持护照个人资料页; 5:港澳通行证,上传的附件为3张,第1张是港澳居民来往内地通行证正面(人像面),第2张是港澳居民来往内地通行证反面,第3张是手持港澳居民来往内地通行证人像面; 6:台湾通行证,上传的附件为3张,第1张是台湾居民来往大陆通行证正面(人像面),第2张是台湾居民来往大陆通行证反面,第3张是手持台湾居民来往大陆通行证人像面; 7:海外驾照,上传的附件为2张,第1张是中国以外驾照正面照片(人像面),第2张是手持中国以外驾照人像面照片; 9:港澳居民居住证,上传的附件为3张,第1张是港澳居民居住证人像面,第2张是,港澳居民居住证国徽面,第3张是手持港澳居民居住证人像面照片; 10:台湾居民居住证,上传的附件为3张,第1张是台湾居民居住证人像面,第2张是台湾居民居住证国徽面,第3张是手持台湾居民居住证人像面照片。 当identify_type=0的时候,该字段需要填写,否则忽略该字段的取值。
	VerifiedType *int32 `json:"verified_type,omitempty"`

	// 个人证件认证时证件附件的文件URL,该URL地址必须按照顺序填写。以身份证举例,譬如身份证人像面文件名称是abc023,国徽面是def004,个人手持身份证人像面是gh007,那么这个地方需要按照 abc023 def004 gh007 的顺序填写URL(文件名称区分大小写)。 个人银行卡认证时直接上传一张个人扫脸的图片附件即可。证件附件目前仅仅支持jpg、jpeg、bmp、png、gif、pdf格式,单个文件最大不超过10M。这个URL是相对URL,不需要包含桶名和download目录,只要包含download目录下的子目录和对应文件名称即可。举例如下:如果上传的证件附件在桶中的位置是:https://bucketname.obs.Endpoint.myhuaweicloud.com/download/abc023.jpg,该字段填写abc023.jpg; 如果上传的证件附件在桶中的位置是:https://bucketname.obs.Endpoint.myhuaweicloud.com/download/test/abc023.jpg,该字段填写test/abc023.jpg。
	VerifiedFileUrl []string `json:"verified_file_url"`

	// 姓名。
	Name string `json:"name"`

	// 证件号码。
	VerifiedNumber string `json:"verified_number"`

	// 变更类型: -1:首次实名认证
	ChangeType *int32 `json:"change_type,omitempty"`

	// 华为分给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType string `json:"xaccount_type"`

	BankCardInfo *BankCardInfoV2 `json:"bank_card_info,omitempty"`
}

func (ApplyIndividualRealnameAuthsReq) String

type AutoRenewalResourcesRequest

type AutoRenewalResourcesRequest struct {

	// 资源实例ID。您可以调用[查询客户包年包月资源列表](https://support.huaweicloud.com/api-bpconsole/api_order_00021.html)接口获取资源ID。在设置弹性云服务器自动续费时,能够自动将其挂载的硬盘一并设置为自动续费。
	ResourceId string `json:"resource_id"`
}

Request Object

func (AutoRenewalResourcesRequest) String

type AutoRenewalResourcesResponse

type AutoRenewalResourcesResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (AutoRenewalResourcesResponse) String

type BalanceTypeDeductSumV2

type BalanceTypeDeductSumV2 struct {

	// 账户类型。 BALANCE_TYPE_DEBIT:现金BALANCE_TYPE_CREDIT:信用BALANCE_TYPE_BONUS:奖励BALANCE_TYPE_COUPON:代金券BALANCE_TYPE_RCASH_COUPON 现金券。BALANCE_TYPE_STORED_VALUE_CARD:储值卡消费
	BalanceType *string `json:"balance_type,omitempty"`

	// 金额。 对于billType=1或者2的账单,该金额为负值。
	Amount *float64 `json:"amount,omitempty"`

	// 账单类型。 0:正常1:退订2:华为核销
	BillType *string `json:"bill_type,omitempty"`
}

func (BalanceTypeDeductSumV2) String

func (o BalanceTypeDeductSumV2) String() string

type BankCardInfoV2

type BankCardInfoV2 struct {

	// 银行卡账号。 当identifyType为4时,不能为空。 银行账号输入规则:^[0-9a-zA-Z],可以包含特殊横杠(-)字符。
	BankAccount string `json:"bank_account"`

	// 国家/区号码。 例如:0086:中国大陆区号码。
	Areacode string `json:"areacode"`

	// 手机号码。
	Mobile string `json:"mobile"`

	// 验证码。 请调用“发送验证码”接口获取。
	VerificationCode string `json:"verification_code"`
}

func (BankCardInfoV2) String

func (o BankCardInfoV2) String() string

type BillSumInfoV2

type BillSumInfoV2 struct {

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	CloudServiceTypeName *string `json:"cloud_service_type_name,omitempty"`

	// 账单类型。 0:正常1:退订2:华为核销
	BillType *string `json:"bill_type,omitempty"`

	// 计费模式。 1:包年/包月3: 按需
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 金额。 对于billType=1或者2的账单,该金额为负值。
	Amount *float64 `json:"amount,omitempty"`

	// 欠费金额,指从客户账户扣费的时候,客户账户金额不足,欠费的金额,华为核销或者退订的时候没有该字段。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 核销欠款,华为核销或者退订的时候没有该字段。
	AdjustmentAmount *float64 `json:"adjustment_amount,omitempty"`

	// 折扣金额,华为核销或者退订的时候没有该字段。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 按不同账户消费类型和付费方式区分的支付总金额。 具体请参见表3。
	AccountDetails *[]BalanceTypeDeductSumV2 `json:"account_details,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`
}

func (BillSumInfoV2) String

func (o BillSumInfoV2) String() string

type BillSumRecordInfoV2

type BillSumRecordInfoV2 struct {

	// 消费汇总数据所在账期,格式:YYYY-MM。
	BillCycle *string `json:"bill_cycle,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 计费模式。 1:包年/包月3:按需10:预留实例
	ChargingMode *int32 `json:"charging_mode,omitempty"`

	// 官网价。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 折扣金额。
	OfficialDiscountAmount *float64 `json:"official_discount_amount,omitempty"`

	// 抹零金额。
	TruncatedAmount *float64 `json:"truncated_amount,omitempty"`

	// 应付金额。 应付金额=官网价-折扣金额-抹零金额
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	// 代金券金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券金额,预留。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 储值卡金额,预留。
	StoredValueCardAmount *float64 `json:"stored_value_card_amount,omitempty"`

	// 欠费金额。即伙伴从客户账户扣费时,客户账户金额不足,欠费的金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 欠费核销金额。
	WriteoffAmount *float64 `json:"writeoff_amount,omitempty"`

	// 现金账户金额。
	CashAmount *float64 `json:"cash_amount,omitempty"`

	// 信用账户金额。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 账单类型。 1:消费2:退款3:调账
	BillType *int32 `json:"bill_type,omitempty"`

	// 消费的客户账号ID。 如果是普通客户或者企业子客户查询消费记录,只能查询到客户自己的消费记录,且此处显示的是客户自己的客户ID。如果是企业主查询消费记录,可以查询到企业主以及企业子客户的消费记录,此处为消费的实际客户ID。如果是企业主自己的消费记录,则为企业主ID;如果是某个企业子客户的消费记录,则此处为企业子账号ID。
	CustomerId *string `json:"customer_id,omitempty"`
}

func (BillSumRecordInfoV2) String

func (o BillSumRecordInfoV2) String() string

type CancelAutoRenewalResourcesRequest

type CancelAutoRenewalResourcesRequest struct {

	// 资源实例ID。您可以调用[查询客户包年包月资源列表](https://support.huaweicloud.com/api-bpconsole/api_order_00021.html)接口获取资源ID。在取消弹性云服务器自动续费的时候,能够自动将其挂载的硬盘一并取消自动续费。
	ResourceId string `json:"resource_id"`
}

Request Object

func (CancelAutoRenewalResourcesRequest) String

type CancelAutoRenewalResourcesResponse

type CancelAutoRenewalResourcesResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CancelAutoRenewalResourcesResponse) String

type CancelCustomerOrderReq

type CancelCustomerOrderReq struct {

	// 订单ID。 取值为调用“查询订单列表”接口时响应消息中的“order_id”字段的值。
	OrderId string `json:"order_id"`
}

func (CancelCustomerOrderReq) String

func (o CancelCustomerOrderReq) String() string

type CancelCustomerOrderRequest

type CancelCustomerOrderRequest struct {
	Body *CancelCustomerOrderReq `json:"body,omitempty"`
}

Request Object

func (CancelCustomerOrderRequest) String

type CancelCustomerOrderResponse

type CancelCustomerOrderResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CancelCustomerOrderResponse) String

type CancelResourcesSubscriptionRequest

type CancelResourcesSubscriptionRequest struct {
	Body *UnsubscribeResourcesReq `json:"body,omitempty"`
}

Request Object

func (CancelResourcesSubscriptionRequest) String

type CancelResourcesSubscriptionResponse

type CancelResourcesSubscriptionResponse struct {

	// 客户退订订单ID的列表信息。
	OrderIds       *[]string `json:"order_ids,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CancelResourcesSubscriptionResponse) String

type ChangeEnterpriseRealnameAuthenticationRequest

type ChangeEnterpriseRealnameAuthenticationRequest struct {
	Body *ChangeEnterpriseRealnameAuthsReq `json:"body,omitempty"`
}

Request Object

func (ChangeEnterpriseRealnameAuthenticationRequest) String

type ChangeEnterpriseRealnameAuthenticationResponse

type ChangeEnterpriseRealnameAuthenticationResponse struct {

	// 是否需要转人工审核,只有状态码为200才返回该参数。 0:不需要1:需要
	IsReview       *int32 `json:"is_review,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ChangeEnterpriseRealnameAuthenticationResponse) String

type ChangeEnterpriseRealnameAuthsReq

type ChangeEnterpriseRealnameAuthsReq struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 认证方案: 1:单位证件扫描
	IdentifyType int32 `json:"identify_type"`

	// 单位证件类型: 0:企业营业执照1:事业单位法人证书2:社会团体法人登记证书3:行政执法主体资格证4:组织机构代码证99:其他
	CertificateType *int32 `json:"certificate_type,omitempty"`

	// 单位证件认证时证件附件的文件URL。 附件地址必须按照顺序填写,先填写单位证件的附件,如果存在单位人员信息,再填写单位人员的身份证附件。 单位证件顺序为: 第1张单位证件照附件, 单位人员的证件顺序为: 第1张个人身份证的人像面 第2张个人身份证的国徽面 以营业执照举例,假设存在法人的情况下,第1张上传的是营业执照扫描件abc.023,第2张是法人的身份证人像面照片def004,第3张是法人的国徽面照片gh007,那么上传顺序需要是: abc023 def004 gh007 的顺序填写URL(文件名称区分大小写) 证件附件目前仅仅支持jpg、jpeg、bmp、png、gif、pdf格式,单个文件最大不超过10M。 这个URL是相对URL,不需要包含桶名和download目录,只要包含download目录下的子目录和对应文件名称即可。举例如下: 如果上传的证件附件在桶中的位置是: https://bucketname.obs.Endpoint.myhuaweicloud.com/download/abc023.jpg,该字段填写abc023.jpg; 如果上传的证件附件在桶中的位置是: https://bucketname.obs.Endpoint.myhuaweicloud.com/download/test/abc023.jpg,该字段填写test/abc023.jpg。
	VerifiedFileUrl []string `json:"verified_file_url"`

	// 单位名称。 不能全是数字、特殊字符、空格。
	CorpName string `json:"corp_name"`

	// 单位证件号码。
	VerifiedNumber string `json:"verified_number"`

	// 实名认证填写的注册国家。国家的两位字母简码。 例如:注册国家为“中国”请填写“CN”。
	RegCountry *string `json:"reg_country,omitempty"`

	// 实名认证企业注册地址。
	RegAddress *string `json:"reg_address,omitempty"`

	// 变更类型: 1:个人变企业
	ChangeType int32 `json:"change_type"`

	// 华为分给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType string `json:"xaccount_type"`

	EnterprisePerson *EnterprisePersonNew `json:"enterprise_person,omitempty"`
}

func (ChangeEnterpriseRealnameAuthsReq) String

type CheckSubcustomerUserReq

type CheckSubcustomerUserReq struct {

	// 该字段内容可填为:“email”、“mobile”或“name”。
	SearchType string `json:"search_type"`

	// 手机号、邮箱或登录名称。 手机号需符合正则表达式 ^\\d{4}-\\d+$;包括国家码,以00开头,格式:00XX-XXXXXXXX。目前手机号仅支持以86开头的国家码。邮箱需为含有@的正确格式的完整邮箱地址。name:符合正则表达式^\\(\\[a-zA-Z-\\]\\(\\[a-zA-Z0-9_-\\]\\)\\{4,31\\}\\)$,长度5-32;不能以“op_”或“shadow_”开头且不能全为数字,且只能以字母(不区分大小写)或者-开头。
	SearchValue string `json:"search_value"`
}

func (CheckSubcustomerUserReq) String

func (o CheckSubcustomerUserReq) String() string

type CheckUserIdentityRequest

type CheckUserIdentityRequest struct {
	Body *CheckSubcustomerUserReq `json:"body,omitempty"`
}

Request Object

func (CheckUserIdentityRequest) String

func (o CheckUserIdentityRequest) String() string

type CheckUserIdentityResponse

type CheckUserIdentityResponse struct {

	// 状态码。具体请参考状态码。只有失败才会返回这个参数。
	ErrorCode *string `json:"error_code,omitempty"`

	// 错误描述信息。只有失败才会返回这个参数。
	ErrorMsg *string `json:"error_msg,omitempty"`

	// available:该登录名称/手机号/邮箱有效。used_by_user:该登录名称/手机号/邮箱已被占用。
	CheckResult    *string `json:"check_result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CheckUserIdentityResponse) String

func (o CheckUserIdentityResponse) String() string

type City

type City struct {

	// 城市的编码。
	Code string `json:"code"`

	// 城市的名称,根据请求参数X-Language的取值返回对应语言的名称,目前仅支持中文。
	Name string `json:"name"`
}

func (City) String

func (o City) String() string

type Conversion

type Conversion struct {

	// 度量单位ID。 例如:10表示GB。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 转换后的度量单位ID。 例如:11表示MB。
	RefMeasureId *int32 `json:"ref_measure_id,omitempty"`

	// 度量单位和转换后的度量单位之间的转换比率。 例如: 度量单位为GB,转换度量单位为MB时,转换比率为1024,两者之间的转换公式为:1GB=1024MB。
	ConversionRatio *int64 `json:"conversion_ratio,omitempty"`

	// 度量类型。 1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量25:测试类型
	MeasureType *int32 `json:"measure_type,omitempty"`
}

func (Conversion) String

func (o Conversion) String() string

type County

type County struct {

	// 区县的编码。
	Code string `json:"code"`

	// 区县的名称,根据请求的语言会传递回对应的语言的名称,目前仅支持中文。
	Name string `json:"name"`
}

func (County) String

func (o County) String() string

type CouponInfoV2

type CouponInfoV2 struct {

	// 优惠券实例ID。
	CouponId *string `json:"coupon_id,omitempty"`

	// 优惠券编码。
	CouponCode *string `json:"coupon_code,omitempty"`

	// 优惠券状态: 1:未激活2:待使用
	Status *int32 `json:"status,omitempty"`

	// 优惠券类型。 1:代金券2:折扣券3:产品券4:现金券
	CouponType *int32 `json:"coupon_type,omitempty"`

	// 面额单位: 1:元。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 面值。
	FaceValue *float64 `json:"face_value,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 促销计划名称。
	PlanName *string `json:"plan_name,omitempty"`

	// 促销计划描述。
	PlanDesc *string `json:"plan_desc,omitempty"`

	// 优惠券限制。 具体请参见表3。
	UseLimits *[]LimitInfoV2 `json:"use_limits,omitempty"`

	// 激活时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ActiveTime *string `json:"active_time,omitempty"`

	// 上一次使用时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	LastUsedTime *string `json:"last_used_time,omitempty"`

	// 创建时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	CreateTime *string `json:"create_time,omitempty"`

	// 优惠券版本。 1:老版本(包含三种:代金券、折扣券和奖金券)2:新版本(只有代金券)
	CouponVersion *int32 `json:"coupon_version,omitempty"`

	// 余额。
	Balance *float64 `json:"balance,omitempty"`

	// 使用优惠券的订单ID。表示有订单正在使用这个优惠券,优惠券已被锁定,只有锁定优惠券的订单才能使用这个优惠券,其他订单不能使用该优惠券。
	UsedByOrderId *string `json:"used_by_order_id,omitempty"`

	// 优惠券用途。
	CouponUsage *string `json:"coupon_usage,omitempty"`

	// 优惠券分组。 1:云市场发放的券2:华为云券-1024-专用代金券3:华为云券-使用限制-抵扣硬件的券0:华为云服务券(排除上述取值之外的券)
	CouponGroup *int32 `json:"coupon_group,omitempty"`
}

func (CouponInfoV2) String

func (o CouponInfoV2) String() string

type CouponMaxUseQuantity added in v0.0.74

type CouponMaxUseQuantity struct {

	// 优惠券类型。 1:代金券2:折扣券3:产品券4:现金券
	CouponType *int32 `json:"coupon_type,omitempty"`

	// 优惠券分组。 1:云市场发放的券2:华为云券-1024-专用代金券3:华为云券-使用限制-抵扣硬件的券0:华为云服务券(排除上述取值之外的券)
	CouponGroup *int32 `json:"coupon_group,omitempty"`

	// 优惠券使用数量。
	UseQuantityValue *int32 `json:"use_quantity_value,omitempty"`
}

func (CouponMaxUseQuantity) String added in v0.0.74

func (o CouponMaxUseQuantity) String() string

type CouponQuotaV2

type CouponQuotaV2 struct {

	// 优惠券额度ID。
	QuotaId *string `json:"quota_id,omitempty"`

	// 优惠券额度的类型: 0:代金券额度1:现金券额度
	QuotaType *int32 `json:"quota_type,omitempty"`

	// 创建时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	CreateTime *string `json:"create_time,omitempty"`

	// 最后一次更新时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	LastUpdateTime *string `json:"last_update_time,omitempty"`

	// 优惠券额度的值,精确到小数点后2位。
	QuotaValue *float64 `json:"quota_value,omitempty"`

	// 优惠券额度的状态: 0:正常3:失效(过期失效和人工设置失效)4:额度调整中(伙伴可以查看该额度,但不能使用该额度发放优惠券)5:冻结
	QuotaStatus *int32 `json:"quota_status,omitempty"`

	// 剩余的优惠券额度,精确到小数点后2位。
	Balance *float64 `json:"balance,omitempty"`

	// 面额单位。 1:元。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 CNY:人民币
	Currency *string `json:"currency,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 优惠券额度上的限制属性,具体参见表2。
	LimitInfos *[]QuotaLimitInfo `json:"limit_infos,omitempty"`
}

func (CouponQuotaV2) String

func (o CouponQuotaV2) String() string

type CouponRecordV2

type CouponRecordV2 struct {

	// 该记录的ID。
	Id *string `json:"id,omitempty"`

	// 操作类型。 1:发放2:手动回收3:解绑自动回收
	OperationType *string `json:"operation_type,omitempty"`

	// 额度ID。
	QuotaId *string `json:"quota_id,omitempty"`

	// 额度类型。 0:代金券额度1:现金券额度
	QuotaType *int32 `json:"quota_type,omitempty"`

	// 代金券ID。
	CouponId *string `json:"coupon_id,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 操作的面额值。单位:元。 发放时,等于面额值;回收时,指每次回收的具体值。
	OperationAmount *float64 `json:"operation_amount,omitempty"`

	// 操作时间。
	OperationTime *string `json:"operation_time,omitempty"`

	// 操作结果。 0:成功-1:失败
	Result *string `json:"result,omitempty"`

	// 操作记录中的备注。
	Remark *string `json:"remark,omitempty"`
}

func (CouponRecordV2) String

func (o CouponRecordV2) String() string

type CouponSimpleInfo

type CouponSimpleInfo struct {

	// 批量发放优惠券成功的客户ID。
	Id string `json:"id"`

	// 发放成功的券ID。
	CouponId string `json:"coupon_id"`
}

func (CouponSimpleInfo) String

func (o CouponSimpleInfo) String() string

type CouponSimpleInfoOrderPay

type CouponSimpleInfoOrderPay struct {

	// 折扣ID。
	Id string `json:"id"`

	// 折扣类型: 0:促销折扣 1:合同折扣2:商务优惠3:合作伙伴授予折扣609:订单调价折扣 说明: 订单支付时,如果包含609折扣(订单调价折扣),则必须使用,不能再更换折扣类型。
	Type int32 `json:"type"`
}

func (CouponSimpleInfoOrderPay) String

func (o CouponSimpleInfoOrderPay) String() string

type CreateCustomerV2Req

type CreateCustomerV2Req struct {

	// 客户的华为云账号名。 如果为空,随机生成。 不能以“op_”或“shadow_”开头且不能全为数字。 校验长度(5到32位)和规则^\\(\\[a-zA-Z_-\\]\\(\\[a-zA-Z0-9_-\\]\\)\\*\\)$。
	DomainName *string `json:"domain_name,omitempty"`

	// 手机号。 目前系统只支持中国的手机号。 示例:13XXXXXXXXX
	MobilePhone *string `json:"mobile_phone,omitempty"`

	// 验证码。 请调用“发送验证码”接口获取。 如果手机号不存在,则不需要输入验证码。
	VerificationCode *string `json:"verification_code,omitempty"`

	// 伙伴销售平台的用户唯一标识,该标识的具体值由伙伴分配。
	XaccountId string `json:"xaccount_id"`

	// 华为分给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType string `json:"xaccount_type"`

	// 密码规则如下: 至少包含以下四种字符中的两种: 大写字母、小写字母、数字、特殊字符;不能和账号名或倒序的账号名相同;不能包含手机号。 如果为空,用户没有密码,则不能直接在华为云登录,只能通过伙伴系统SSO方式跳转到华为云。
	Password *string `json:"password,omitempty"`

	// 是否关闭营销消息的发送: true:关闭false:不关闭(默认)
	IsCloseMarketMs *string `json:"is_close_market_ms,omitempty"`

	// 合作类型。 1:顾问销售。 仅支持1,如果不传递,默认会创建成代售模式的客户。
	CooperationType *string `json:"cooperation_type,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 是否返回子客户的关联结果。 true:返回子客户和伙伴的关联结果false:不返回子客户和伙伴的关联结果 默认值为false。
	IncludeAssociationResult *bool `json:"include_association_result,omitempty"`
}

func (CreateCustomerV2Req) String

func (o CreateCustomerV2Req) String() string

type CreateEnterpriseProjectAuthRequest

type CreateEnterpriseProjectAuthRequest struct {
}

Request Object

func (CreateEnterpriseProjectAuthRequest) String

type CreateEnterpriseProjectAuthResponse

type CreateEnterpriseProjectAuthResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateEnterpriseProjectAuthResponse) String

type CreateEnterpriseRealnameAuthenticationRequest

type CreateEnterpriseRealnameAuthenticationRequest struct {
	Body *ApplyEnterpriseRealnameAuthsReq `json:"body,omitempty"`
}

Request Object

func (CreateEnterpriseRealnameAuthenticationRequest) String

type CreateEnterpriseRealnameAuthenticationResponse

type CreateEnterpriseRealnameAuthenticationResponse struct {

	// 是否需要转人工审核,只有状态码为200才返回该参数。 0:不需要1:需要
	IsReview       *int32 `json:"is_review,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CreateEnterpriseRealnameAuthenticationResponse) String

type CreatePartnerCouponsReq

type CreatePartnerCouponsReq struct {

	// 优惠券额度ID。该值在查询优惠券额度接口的响应参数中获取。
	QuotaId string `json:"quota_id"`

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerIds []string `json:"customer_ids"`

	// 代金券面值。 单位:元。取值大于0且精确到小数点后2位。
	FaceValue float64 `json:"face_value"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ValidTime *string `json:"valid_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 允许使用的云服务列表,您可以调用查询云服务类型列表接口获取。 多个云服务产品以“,”隔开,最多支持10个。 默认:空(继承额度上的限制)  说明: 如果额度上有限制云服务类型列表,则优惠券上的限制不能超过额度的限制。如果额度上没有限制,则优惠券上可以随意指定云服务类型。
	CloudServiceTypes *[]string `json:"cloud_service_types,omitempty"`

	// 允许使用的产品列表。 多个产品以“,”隔开,最多支持10个。 默认:空(继承额度上的限制)  说明: 如果额度上有限制产品列表,则优惠券上的限制不能超过额度的限制。如果额度上没有限制,则优惠券上可以随意指定产品ID。 产品ID需要合作伙伴通过线下获得。
	ProductIds *[]string `json:"product_ids,omitempty"`

	// 发券时的备注信息。
	Memo *string `json:"memo,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 精英服务商给子客户发放优惠券时,需要携带该参数。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (CreatePartnerCouponsReq) String

func (o CreatePartnerCouponsReq) String() string

type CreatePartnerCouponsRequest

type CreatePartnerCouponsRequest struct {
	Body *CreatePartnerCouponsReq `json:"body,omitempty"`
}

Request Object

func (CreatePartnerCouponsRequest) String

type CreatePartnerCouponsResponse

type CreatePartnerCouponsResponse struct {

	// 错误的客户列表和错误信息,只有HTTP 200的时候才会返回这个结构体,具体参见表1。
	ErrorDetails *[]ErrorDetail `json:"error_details,omitempty"`

	// 成功的客户ID和对应的券ID列表,只有HTTP 200的时候才会返回这个结构体,具体参见表2。
	CouponInfos    *[]CouponSimpleInfo `json:"coupon_infos,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (CreatePartnerCouponsResponse) String

type CreatePersonalRealnameAuthRequest

type CreatePersonalRealnameAuthRequest struct {
	Body *ApplyIndividualRealnameAuthsReq `json:"body,omitempty"`
}

Request Object

func (CreatePersonalRealnameAuthRequest) String

type CreatePersonalRealnameAuthResponse

type CreatePersonalRealnameAuthResponse struct {

	// 是否需要转人工审核,只有状态码为200才返回该参数: 0:不需要1:需要
	IsReview       *int32 `json:"is_review,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CreatePersonalRealnameAuthResponse) String

type CreatePostalRequest

type CreatePostalRequest struct {

	// 语言。中文:zh_CN 英文:en_US,缺省为zh_CN
	XLanguage *string `json:"X-Language,omitempty"`

	Body *AddPostalReq `json:"body,omitempty"`
}

Request Object

func (CreatePostalRequest) String

func (o CreatePostalRequest) String() string

type CreatePostalResponse

type CreatePostalResponse struct {

	// 邮寄地址ID。
	AddressId      *string `json:"address_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePostalResponse) String

func (o CreatePostalResponse) String() string

type CreateSubCustomerReqV2

type CreateSubCustomerReqV2 struct {

	// 企业子账号挂载的组织单元。 组织单元的Party ID,通过查询企业组织结构接口的响应获得。
	PartyId string `json:"party_id"`

	// 企业子账号的显示名称,不限制特殊字符。
	DisplayName *string `json:"display_name,omitempty"`

	// 子账号关联类型:1:同一法人。 关联类型目前只能是同一法人。
	SubCustomerAssociationType *int32 `json:"sub_customer_association_type,omitempty"`

	// 申请的权限列表。 支持的权限项请参见下表。
	PermissionIds *[]string `json:"permission_ids,omitempty"`

	NewSubCustomer *NewCustomerV2 `json:"new_sub_customer"`
}

func (CreateSubCustomerReqV2) String

func (o CreateSubCustomerReqV2) String() string

type CreateSubCustomerRequest

type CreateSubCustomerRequest struct {
	Body *CreateCustomerV2Req `json:"body,omitempty"`
}

Request Object

func (CreateSubCustomerRequest) String

func (o CreateSubCustomerRequest) String() string

type CreateSubCustomerResponse

type CreateSubCustomerResponse struct {

	// 客户ID。 只有成功或者错误码在CBC.99000050时才会返回。
	DomainId *string `json:"domain_id,omitempty"`

	// 客户的华为云账号名。 若请求参数中传递了此参数值,此处返回的响应值与请求参数中取值一致。若请求参数中未传递此参数值,此处返回的响应值为系统随机生成的32位字符串。 只有成功时或者错误码在CBC.99000050时才会返回。
	DomainName     *string `json:"domain_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSubCustomerResponse) String

func (o CreateSubCustomerResponse) String() string

type CreateSubEnterpriseAccountRequest

type CreateSubEnterpriseAccountRequest struct {
	Body *CreateSubCustomerReqV2 `json:"body,omitempty"`
}

Request Object

func (CreateSubEnterpriseAccountRequest) String

type CreateSubEnterpriseAccountResponse

type CreateSubEnterpriseAccountResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateSubEnterpriseAccountResponse) String

type CustomerBalancesV2

type CustomerBalancesV2 struct {

	// 客户账号ID。
	CustomerId string `json:"customer_id"`

	// 客户欠款总额度。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 客户可用总额度。
	Amount *float64 `json:"amount,omitempty"`

	// 币种。 CNY:人民币。
	Currency *string `json:"currency,omitempty"`

	// 度量单位: 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (CustomerBalancesV2) String

func (o CustomerBalancesV2) String() string

type CustomerInfoV2

type CustomerInfoV2 struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`
}

func (CustomerInfoV2) String

func (o CustomerInfoV2) String() string

type CustomerInformation

type CustomerInformation struct {

	// 实名认证名称。
	Customer *string `json:"customer,omitempty"`

	// 客户经理登录名称。
	AccountName string `json:"account_name"`

	// 客户账号ID。
	CustomerId string `json:"customer_id"`

	// 客户和伙伴关联时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”,其中,HH范围是0~23,mm和ss范围是0~59。
	AssociatedOn *string `json:"associated_on,omitempty"`

	// 关联类型: 1:顾问销售2:代售
	AssociationType *string `json:"association_type,omitempty"`

	// 标签。
	Label *string `json:"label,omitempty"`

	// 客户电话号码。
	Telephone *string `json:"telephone,omitempty"`

	// 实名认证状态: -1:未实名认证0:实名认证审核中1:实名认证不通过2:已实名认证3:实名认证失败
	VerifiedStatus *string `json:"verified_status,omitempty"`

	// 国家码,电话号码的国家码前缀。 例如:中国 0086。
	CountryCode *string `json:"country_code,omitempty"`

	// 客户类型: -1:无类型0:个人1:企业 客户刚注册的时候,没有具体的客户类型,为“-1:无类型”,客户可以在账号中心通过设置客户类型或者在实名认证的时候,选择对应的企业/个人实名认证来决定自己的类型。
	CustomerType *int32 `json:"customer_type,omitempty"`

	// 是否冻结: 0:否1:是
	IsFrozen *int32 `json:"is_frozen,omitempty"`

	// 该客户对应的客户经理信息,目前只支持1个,具体参见表2。
	AccountManagers *[]AccountManager `json:"account_managers,omitempty"`

	// 伙伴销售平台的用户唯一标识,该标识的具体值由伙伴分配。
	XaccountId *string `json:"xaccount_id,omitempty"`

	// 华为分配给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType *string `json:"xaccount_type,omitempty"`

	// 客户等级。具体等级体系和权益请参见客户等级体系。 V0V1V2V3V4V5
	CustomerLevel *string `json:"customer_level,omitempty"`
}

func (CustomerInformation) String

func (o CustomerInformation) String() string

type CustomerOnDemandResource

type CustomerOnDemandResource struct {

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 所属可用区的编码。
	AvailabilityZoneCode *string `json:"availability_zone_code,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源实例名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 资源状态: 1:正常(已开通)2:宽限期3:冻结中4:变更中5:正在关闭6:已关闭
	Status *int32 `json:"status,omitempty"`

	// 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。
	ResourceSpecCode *string `json:"resource_spec_code,omitempty"`

	// 按需资源的容量大小。 格式如:\"resourceInfo\": \"{\\\"specSize\\\":40.0}\"
	ResourceInfo *string `json:"resource_info,omitempty"`

	// 产品规格描述。例如: 虚拟机:“通用计算增强型|c6.2xlarge.4|8vCPUs|32GB|linux”硬盘:“云硬盘_SATA_LXH01|40.0GB”
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`
}

func (CustomerOnDemandResource) String

func (o CustomerOnDemandResource) String() string

type CustomerOrderV2

type CustomerOrderV2 struct {

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 客户订单订单来源类型: 1:客户2:代理3:合同4:分销商
	SourceType *int32 `json:"source_type,omitempty"`

	// 订单状态: 1:待审核3:处理中4:已取消5:已完成6:待支付9:待确认
	Status *int32 `json:"status,omitempty"`

	// 订单类型: 1:开通2:续订3:变更4:退订11:按需转包年/包月13:试用14:转商用15:费用调整
	OrderType *int32 `json:"order_type,omitempty"`

	// 订单优惠后金额(不含券不含卡的实付价格)。
	AmountAfterDiscount *float64 `json:"amount_after_discount,omitempty"`

	// 订单金额(官网价)。 退订订单中,该金额等于amount_after_discount。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 订单金额度量单位: 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 创建时间 。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	CreateTime *string `json:"create_time,omitempty"`

	// 支付时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	PaymentTime *string `json:"payment_time,omitempty"`

	// 货币编码。
	Currency *string `json:"currency,omitempty"`

	// 合同ID。
	ContractId *string `json:"contract_id,omitempty"`

	AmountInfo *AmountInfomationV2 `json:"amount_info,omitempty"`
}

func (CustomerOrderV2) String

func (o CustomerOrderV2) String() string

type CustomerOrderV3 added in v0.0.51

type CustomerOrderV3 struct {

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 客户订单来源类型: 1:客户2:代理3:合同4:分销商
	SourceType *int32 `json:"source_type,omitempty"`

	// 订单状态。 1:待审核3:处理中4:已取消5:已完成6:待付款9:待确认
	Status *int32 `json:"status,omitempty"`

	// 订单类型。 1:开通2:续订3:变更4:退订11:按需转包年/包月13:试用14:转商用15:费用调整
	OrderType *int32 `json:"order_type,omitempty"`

	// 订单优惠后金额(实付价格,不含券不含卡)。
	AmountAfterDiscount *float64 `json:"amount_after_discount,omitempty"`

	// 订单金额(官网价)。 退订订单中,该金额等于currencyAfterDiscount。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 订单金额度量单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 创建时间 。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	CreateTime *string `json:"create_time,omitempty"`

	// 支付时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	PaymentTime *string `json:"payment_time,omitempty"`

	// 货币编码。
	Currency *string `json:"currency,omitempty"`

	// 合同ID。
	ContractId *string `json:"contract_id,omitempty"`

	AmountInfo *AmountInfomationV2 `json:"amount_info,omitempty"`

	// 订单创建者名称。 如果是客户自己下单,则此处返回下单操作员的登录名称;如果是运营人员从后台下单,则此处返回“运营人员”;如果是运营系统自动触发下单,则此处返回“运营系统”。
	UserName *string `json:"user_name,omitempty"`
}

func (CustomerOrderV3) String added in v0.0.51

func (o CustomerOrderV3) String() string

type CustomerPostalAddressV2

type CustomerPostalAddressV2 struct {

	// 邮寄地址ID。
	AddressId *string `json:"address_id,omitempty"`

	// 收件人姓名。
	Recipient *string `json:"recipient,omitempty"`

	// 国家。例如:中国
	Nationality *string `json:"nationality,omitempty"`

	// 省/自治区/直辖市。例如:江苏省。
	Province *string `json:"province,omitempty"`

	// 市/区。例如:南京市。
	City *string `json:"city,omitempty"`

	// 区。例如:雨花区。
	District *string `json:"district,omitempty"`

	// 邮寄详细地址。
	Address *string `json:"address,omitempty"`

	// 邮编。
	Zipcode *string `json:"zipcode,omitempty"`

	// 国家码。例如: 中国:0086
	Areacode *string `json:"areacode,omitempty"`

	// 手机号码,不带国家码。
	MobilePhone *string `json:"mobile_phone,omitempty"`

	// 是否默认地址,默认为0。 1:默认地址0:非默认地址
	IsDefault *int32 `json:"is_default,omitempty"`
}

func (CustomerPostalAddressV2) String

func (o CustomerPostalAddressV2) String() string

type DeletePostalRequest

type DeletePostalRequest struct {

	// 邮寄地址ID
	AddressId string `json:"address_id"`
}

Request Object

func (DeletePostalRequest) String

func (o DeletePostalRequest) String() string

type DeletePostalResponse

type DeletePostalResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeletePostalResponse) String

func (o DeletePostalResponse) String() string

type DemandDiscountRatingResult

type DemandDiscountRatingResult struct {

	// 优惠标识ID。
	DiscountId *string `json:"discount_id,omitempty"`

	// 折扣优惠类型。 合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣 伙伴授予折扣:607:合作伙伴授予折扣-折扣率
	DiscountType *int32 `json:"discount_type,omitempty"`

	// 折扣的金额。
	Amount *float64 `json:"amount,omitempty"`

	// 度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 折扣名称。
	DiscountName *string `json:"discount_name,omitempty"`
}

func (DemandDiscountRatingResult) String

type DemandProductInfo

type DemandProductInfo struct {

	// ID标识,同一次询价中不能重复,用于标识返回询价结果和请求的映射关系。
	Id string `json:"id"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。
	CloudServiceType string `json:"cloud_service_type"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。 ResourceType是CloudServiceType中的一种资源,CloudServiceType由多种ResourceType组合提供。
	ResourceType string `json:"resource_type"`

	// 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP 云硬盘:SATA:普通IO云硬盘SAS:高IO云硬盘GPSSD:通用型SSD云硬盘SSD:超高IO云硬盘
	ResourceSpec string `json:"resource_spec"`

	// 云服务区编码,例如:“cn-north-1”。
	Region string `json:"region"`

	// 可用区标识。
	AvailableZone *string `json:"available_zone,omitempty"`

	// 资源容量大小,例如购买的卷大小或带宽大小。 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。
	ResourceSize *int32 `json:"resource_size,omitempty"`

	// 资源容量度量标识,枚举值如下: 15:Mbps(购买带宽时使用)17:GB(购买云硬盘时使用)14:个(次) 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。
	SizeMeasureId *int32 `json:"size_measure_id,omitempty"`

	// 使用量因子编码,取值和话单中的使用量因子一致,云服务和使用量因子对应关系举例如下: 云服务器:Duration云硬盘:Duration弹性IP:Duration带宽:Duration或upflow市场镜像:Duration 您可以调用查询使用量类型列表接口获取响应参数表3中参数code的取值,即每种云服务对应的计费因子。
	UsageFactor string `json:"usage_factor"`

	// 使用量值。 例如按小时询价,使用量值为1,使用量单位为小时。
	UsageValue float64 `json:"usage_value"`

	// 使用量度量单位, 例如按小时询价,使用量值为1,使用量单位为小时。
	UsageMeasureId int32 `json:"usage_measure_id"`

	// 订购数量。
	SubscriptionNum int32 `json:"subscription_num"`
}

func (DemandProductInfo) String

func (o DemandProductInfo) String() string

type DemandProductRatingResult

type DemandProductRatingResult struct {

	// 同一次询价中不能重复,用于标识返回询价结果和请求的映射关系。
	Id *string `json:"id,omitempty"`

	// 按需产品的ID。
	ProductId *string `json:"product_id,omitempty"`

	// 折扣的金额。
	Amount *float64 `json:"amount,omitempty"`

	// 优惠额(官网价和总价的差)。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 按需产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 折扣优惠明细,包含产品本身的促销信息,同时包含商务或者伙伴折扣的优惠信息,具体参见表3。
	DiscountRatingResults *[]DemandDiscountRatingResult `json:"discount_rating_results,omitempty"`
}

func (DemandProductRatingResult) String

func (o DemandProductRatingResult) String() string

type DiscountInfoV3

type DiscountInfoV3 struct {

	// 订单的可用折扣ID。 支付订单时,输入该参数的值,即可使用折扣。
	DiscountId string `json:"discount_id"`

	// 折扣率或者满减值,如果折扣模式是一口价,这个值为空。
	DiscountValue string `json:"discount_value"`

	// 折扣类型,取值为 0:促销折扣1:合同折扣2:商务优惠3:合作伙伴授予折扣609:订单调价折扣
	DiscountType int32 `json:"discount_type"`

	// 可使用折扣的订单列表。 具体请参见表3。
	Orders []OrderV3 `json:"orders"`
}

func (DiscountInfoV3) String

func (o DiscountInfoV3) String() string

type DiscountItemV2

type DiscountItemV2 struct {

	// 折扣类型: 200:促销产品折扣300:促销折扣券301:促销代金券302:促销现金券500:代理订购指定折扣501:代理订购指定减免502:代理订购指定一口价600:折扣返利合同601:渠道框架合同602:专款专用合同603:线下直签合同604:电销授权合同605:商务合同折扣606:渠道商务合同折扣607:合作伙伴授权折扣609:订单调价折扣610:免单金额700:促销折扣800:充值帐户折扣900:产品本身折扣901:基准价一口价的折扣
	DiscountType *string `json:"discount_type,omitempty"`

	// 折扣金额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`
}

func (DiscountItemV2) String

func (o DiscountItemV2) String() string

type DiscountSimpleInfo

type DiscountSimpleInfo struct {

	// 折扣ID。
	Id string `json:"id"`

	// 折扣类型: 0:促销折扣 1:合同折扣2:商务优惠3:合作伙伴授予折扣609:订单调价折扣 说明: 订单支付时,如果包含609折扣(订单调价折扣),则必须使用,不能再更换折扣类型。
	Type int32 `json:"type"`
}

func (DiscountSimpleInfo) String

func (o DiscountSimpleInfo) String() string

type EmChildNodeV2

type EmChildNodeV2 struct {

	// 实体关系ID。
	RelationId *string `json:"relation_id,omitempty"`

	// 节点ID(即组织单元的Party ID)。
	Id *string `json:"id,omitempty"`

	// 节点名称。
	Name *string `json:"name,omitempty"`

	// 子节点列表。
	ChildNodes *[]EmChildNodeV2 `json:"child_nodes,omitempty"`
}

func (EmChildNodeV2) String

func (o EmChildNodeV2) String() string

type EnterprisePersonNew

type EnterprisePersonNew struct {

	// 法人姓名。
	LegelName string `json:"legel_name"`

	// 法人身份证号。
	LegelIdNumber string `json:"legel_id_number"`

	// 认证人角色。 legalPerson :法人代表。
	CertifierRole *string `json:"certifier_role,omitempty"`
}

func (EnterprisePersonNew) String

func (o EnterprisePersonNew) String() string

type ErrorDetail

type ErrorDetail struct {

	// 状态码。
	ErrorCode *string `json:"error_code,omitempty"`

	// 错误描述信息。
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 出现错误的客户ID或批量处理消息的ID。
	Id *string `json:"id,omitempty"`
}

func (ErrorDetail) String

func (o ErrorDetail) String() string

type FreeResourceDetail added in v0.0.47

type FreeResourceDetail struct {

	// 资源项ID,一个资源包中会含有多个资源项,一个使用量类型对应一个资源项。
	FreeResourceId *string `json:"free_resource_id,omitempty"`

	// 资源项类型名称。
	FreeResourceTypeName *string `json:"free_resource_type_name,omitempty"`

	// 重置周期,只有quota_reuse_mode为可重置,该字段才有意义。 1:小时2:天3:周4:月5:年
	QuotaReuseCycle *int32 `json:"quota_reuse_cycle,omitempty"`

	// 重置周期类别,只有quota_reuse_mode为可重置,该字段才有意义。 1:按自然周期重置是指重置周期是按照自然月/年来重置,例如如果周期是月,按自然周期重置,表示每个月的1号重置。 2:按订购周期重置。是指重置周期是按照订购时间来重置,例如如果周期是月,按订购周期重置,15号订购了该套餐,表示每个月的15号重置。
	QuotaReuseCycleType *int32 `json:"quota_reuse_cycle_type,omitempty"`

	// 使用量类型名称。
	UsageTypeName *string `json:"usage_type_name,omitempty"`

	// 开始时间,格式UTC。 如果quota_reuse_mode为可重置,则此时间为当前时间所在的重置周期的开始时间。如果quota_reuse_mode为不可重置,则此时间为订购实例的生效时间。
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间,格式UTC。 如果quota_reuse_mode为可重置,则此时间为当前时间所在的重置周期的结束时间。如果quota_reuse_mode为不可重置,则此时间为订购实例的失效时间。
	EndTime *string `json:"end_time,omitempty"`

	// 资源剩余额度,针对可重置资源包,是指当前重置周期内的剩余量。
	Amount *float64 `json:"amount,omitempty"`

	// 资源原始额度,针对可重置资源包,是指每个重置周期内的总量。
	OriginalAmount *float64 `json:"original_amount,omitempty"`

	// 度量单位,免费资源套餐额度度量单位。您可以调用查询度量单位列表接口获取。
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (FreeResourceDetail) String added in v0.0.47

func (o FreeResourceDetail) String() string

type FreeResourcePackageV3 added in v0.0.61

type FreeResourcePackageV3 struct {

	// 订购资源包产品后,系统生成的ID,是这个资源包列表的标识字段。
	OrderInstanceId *string `json:"order_instance_id,omitempty"`

	// 订单ID,如果source_type为“1:软开云赠送”,该字段为空。
	OrderId *string `json:"order_id,omitempty"`

	// 产品ID,即资源包ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品名称,即资源包名称。
	ProductName *string `json:"product_name,omitempty"`

	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目应用范围: 0:应用所有1:应用到具体企业项目
	EnterpriseProjectScope *int32 `json:"enterprise_project_scope,omitempty"`

	// 生效时间,购买资源包的时间,格式UTC。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间,资源包到期时间,格式UTC。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 状态: 0:未生效1:生效中2:已用完3:已失效4:已退订
	Status *int32 `json:"status,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 资源包的来源类型: 0:订单1:软开云赠送
	SourceType *int32 `json:"source_type,omitempty"`

	// 套餐绑定类型: ATOMIC_PKG:原子套餐BUNDLE_PKG:组合套餐
	BundleType *string `json:"bundle_type,omitempty"`

	// 使用模式。 1:可重置表示购买的资源包能够按照一定的周期恢复使用量。例如购买一个1年的按需资源包,使用量是40G,可重置,重置周期为1个月,表示1年内每个月会给予40G的使用量。 2:不可重置表示购买的资源包的使用量不会恢复。例如购买一个1年的按需资源包,使用量是40G,不可重置,表示1年内一共给予40G的使用量。
	QuotaReuseMode *int32 `json:"quota_reuse_mode,omitempty"`

	// 资源套餐内的资源项信息(资源项ID级的详情),具体参见表3。
	FreeResources *[]FreeResourceV3 `json:"free_resources,omitempty"`
}

func (FreeResourcePackageV3) String added in v0.0.61

func (o FreeResourcePackageV3) String() string

type FreeResourceV3 added in v0.0.61

type FreeResourceV3 struct {

	// 资源项ID,一个资源包中会含有多个资源项,一个使用量类型对应一个资源项。
	FreeResourceId *string `json:"free_resource_id,omitempty"`

	// 使用量类型名称。
	UsageTypeName *string `json:"usage_type_name,omitempty"`

	// 资源剩余额度,针对可重置资源包,是指当前重置周期内的剩余量。
	Amount *string `json:"amount,omitempty"`

	// 资源原始额度,针对可重置资源包,是指每个重置周期内的总量。
	OriginalAmount *string `json:"original_amount,omitempty"`

	// 度量单位,免费资源套餐额度度量单位。您可以调用查询度量单位列表接口获取。
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (FreeResourceV3) String added in v0.0.61

func (o FreeResourceV3) String() string

type ICouponUseLimitInfoV2

type ICouponUseLimitInfoV2 struct {

	// 使用限制ID,主键。
	UseLimitiInfoId *string `json:"use_limiti_info_id,omitempty"`

	// 折扣限制,key的取值请参考表4。
	LimitKey *string `json:"limit_key,omitempty"`

	// value1。
	Value1 *string `json:"value1,omitempty"`

	// value2。
	Value2 *string `json:"value2,omitempty"`

	// value单位。
	ValueUnit *string `json:"value_unit,omitempty"`

	// 限制类型。
	LimitType *string `json:"limit_type,omitempty"`

	// 促销计划ID。
	PromotionPlanId *string `json:"promotion_plan_id,omitempty"`
}

func (ICouponUseLimitInfoV2) String

func (o ICouponUseLimitInfoV2) String() string

type IQueryUserCouponsResultV2

type IQueryUserCouponsResultV2 struct {

	// 优惠券实例ID。
	CouponId *string `json:"coupon_id,omitempty"`

	// 优惠券编码。
	CouponCode *string `json:"coupon_code,omitempty"`

	// 优惠券状态: 1:未激活2:待使用3:已使用4:已过期5:已回收
	Status *int32 `json:"status,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 优惠券类型: 1:代金券2:折扣券3:产品券4:现金券
	CouponType *int32 `json:"coupon_type,omitempty"`

	// 度量单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 优惠券金额。
	FaceValue *float64 `json:"face_value,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ValidTime *string `json:"valid_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 促销计划ID。
	PromotionPlanId *string `json:"promotion_plan_id,omitempty"`

	// 促销计划名称。
	PlanName *string `json:"plan_name,omitempty"`

	// 促销计划描述。
	PlanDesc *string `json:"plan_desc,omitempty"`

	// 介质类型。 1:电子券2:纸质券
	MediaType *int32 `json:"media_type,omitempty"`

	// 获取方式: 1:线上领取2:线上兑换3:线上发放4:线下获取5:事件赠送
	FetchMethod *int32 `json:"fetch_method,omitempty"`

	// 优惠券使用限制。 具体请参见表3。
	UseLimits *[]ICouponUseLimitInfoV2 `json:"use_limits,omitempty"`

	// 激活时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ActiveTime *string `json:"active_time,omitempty"`

	// 使用时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ReserveTime *string `json:"reserve_time,omitempty"`

	// 促销ID。
	PromotionId *string `json:"promotion_id,omitempty"`

	// 创建时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	CreateTime *string `json:"create_time,omitempty"`

	// 优惠券版本: 1:老版本,老版本优惠券只能使用一次2:新版本,新版本优惠券可以反复使用
	CouponVersion *int32 `json:"coupon_version,omitempty"`

	// 优惠券余额。单位:元。 如果为老版本优惠券,该值为空。
	Balance *float64 `json:"balance,omitempty"`

	// 锁定优惠券的订单ID。 如果为老版本优惠券,该值为空。
	LockOrderId *string `json:"lock_order_id,omitempty"`

	// 优惠券用途。
	CouponUsage *string `json:"coupon_usage,omitempty"`

	// 优惠券是否冻结: 0:否1:是
	IsFrozen *string `json:"is_frozen,omitempty"`

	// 币种。 CNY:人民币
	Currency *string `json:"currency,omitempty"`

	// 扩展字段。
	ExtendParam1 *string `json:"extend_param1,omitempty"`

	// 发券来源。 如果是合作伙伴发送的券,此处为伙伴ID。如果是活动发券,此处为活动ID:云豆兑换优惠券:云豆计划ID累计送优惠券:累计送计划ID抽奖送优惠券:抽奖计划ID事件送优惠券:事件计划ID定制优惠券:创建人ID
	SourceId *string `json:"source_id,omitempty"`
}

func (IQueryUserCouponsResultV2) String

func (o IQueryUserCouponsResultV2) String() string

type IQueryUserPartnerCouponsResultV2

type IQueryUserPartnerCouponsResultV2 struct {

	// 优惠券ID。
	CouponId *string `json:"coupon_id,omitempty"`

	// 优惠券状态: 1:未激活2:可使用3:已使用4:已过期5:已回收
	Status *int32 `json:"status,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 优惠券类别: 1:代金券4:现金券
	CouponType *int32 `json:"coupon_type,omitempty"`

	// 优惠券面额单位。 1:元。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 优惠券面值。
	FaceValue *float64 `json:"face_value,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 促销计划ID。
	PromotionPlanId *string `json:"promotion_plan_id,omitempty"`

	// 促销计划名称。
	PromotionPlanName *string `json:"promotion_plan_name,omitempty"`

	// 促销计划描述。
	PromotionPlanDesc *string `json:"promotion_plan_desc,omitempty"`

	// 介质类型。 1:电子券2:纸质券
	MediaType *int32 `json:"media_type,omitempty"`

	// 获取方式。 1:线上领取2:线上兑换3:线上发放4:线下获取5:事件赠送
	FetchMethod *int32 `json:"fetch_method,omitempty"`

	// 优惠券限制。 具体请参见表3。
	UseLimits *[]ICouponUseLimitInfoV2 `json:"use_limits,omitempty"`

	// 优惠券的激活时间。
	ActiveTime *string `json:"active_time,omitempty"`

	// 优惠券的使用时间。
	LastUsedTime *string `json:"last_used_time,omitempty"`

	// 促销活动ID。
	PromotionId *string `json:"promotion_id,omitempty"`

	// 优惠券的创建时间。
	CreateTime *string `json:"create_time,omitempty"`

	// 优惠券余额。
	Balance *float64 `json:"balance,omitempty"`

	// 锁定优惠券的订单ID。 如果为老版本优惠券,该值为空。
	LockOrderId *string `json:"lock_order_id,omitempty"`

	// 优惠券是否冻结。 0:否1:是 可用优惠券接口返回时不包括冻结状态的优惠券。
	IsFrozen *string `json:"is_frozen,omitempty"`
}

func (IQueryUserPartnerCouponsResultV2) String

type IncentiveAndDiscountPolicy added in v0.0.68

type IncentiveAndDiscountPolicy struct {

	// 云服务类型列表。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 激励策略。 0:非特定产品1:特定产品2:无业绩无返点13:有业绩无返点
	IncentivePolicy *string `json:"incentive_policy,omitempty"`

	// 是否允许应用伙伴授予折扣。 YES:允许应用NO:不许应用
	AllowDiscount *string `json:"allow_discount,omitempty"`
}

func (IncentiveAndDiscountPolicy) String added in v0.0.68

type IndirectPartnerInfo

type IndirectPartnerInfo struct {

	// 精英服务商ID。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 精英服务商的手机号码。
	MobilePhone *string `json:"mobile_phone,omitempty"`

	// 精英服务商的邮箱。
	Email *string `json:"email,omitempty"`

	// 精英服务商的账户名。
	AccountName *string `json:"account_name,omitempty"`

	// 精英服务商的名称。
	Name *string `json:"name,omitempty"`

	// 精英服务商关联华为云伙伴能力中心的时间。 UTC时间(包括时区),例如2016-03-28T00:00:00Z。
	AssociatedOn *string `json:"associated_on,omitempty"`

	// 客户经理登录账户名。
	AccountManagerId *string `json:"account_manager_id,omitempty"`

	// 客户经理的名称。
	AccountManagerName *string `json:"account_manager_name,omitempty"`
}

func (IndirectPartnerInfo) String

func (o IndirectPartnerInfo) String() string

type IssuedCouponQuota

type IssuedCouponQuota struct {

	// 已发放的代金券额度ID。
	QuotaId *string `json:"quota_id,omitempty"`

	// 额度类型: 0:代金券额度
	QuotaType *int32 `json:"quota_type,omitempty"`

	// 创建时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	CreateTime *string `json:"create_time,omitempty"`

	// 最后一次更新时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	LastUpdateTime *string `json:"last_update_time,omitempty"`

	// 代金券额度的值,精确到小数点后2位。
	QuotaValue *float64 `json:"quota_value,omitempty"`

	// 代金券额度的状态: 0:正常3:失效(包括过期失效和人工设置失效)4:额度调整中(伙伴可以查看该额度,但不能使用该额度发放代金券)5:冻结6:回收
	QuotaStatus *int32 `json:"quota_status,omitempty"`

	// 剩余的代金券额度,精确到小数点后2位。
	Balance *float64 `json:"balance,omitempty"`

	// 代金券额度的单位。 1:元。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 CNY:人民币
	Currency *string `json:"currency,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 代金券额度上的限制属性,具体参见表3。
	LimitInfos *[]QuotaLimitInfo `json:"limit_infos,omitempty"`

	// 精英服务商ID。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 精英服务商账号名。
	IndirectPartnerAccountName *string `json:"indirect_partner_account_name,omitempty"`

	// 精英服务商名称。
	IndirectPartnerName *string `json:"indirect_partner_name,omitempty"`

	// 父额度ID,即华为云伙伴能力中心用于发放给精英服务商代金券额度的额度ID。
	ParentQuotaId *string `json:"parent_quota_id,omitempty"`
}

func (IssuedCouponQuota) String

func (o IssuedCouponQuota) String() string

type LimitInfoV2

type LimitInfoV2 struct {

	// 使用限制ID,主键。
	UseLimitiInfoId *string `json:"use_limiti_info_id,omitempty"`

	// 折扣限制,key的取值请参考表5。
	LimitKey *string `json:"limit_key,omitempty"`

	// value1。
	Value1 *string `json:"value1,omitempty"`

	// value2。
	Value2 *string `json:"value2,omitempty"`

	// value单位。
	ValueUnit *string `json:"value_unit,omitempty"`

	// 限制类型。
	LimitType *string `json:"limit_type,omitempty"`

	// 促销计划ID。
	PromotionPlanId *string `json:"promotion_plan_id,omitempty"`
}

func (LimitInfoV2) String

func (o LimitInfoV2) String() string

type LimitValue

type LimitValue struct {

	// 属性值1。
	Value1 *string `json:"value1,omitempty"`

	// 属性值2。
	Value2 *string `json:"value2,omitempty"`
}

func (LimitValue) String

func (o LimitValue) String() string

type ListCitiesRequest

type ListCitiesRequest struct {

	// 语言。zh_CN:中文en_us:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 省份编码。
	ProvinceCode string `json:"province_code"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,最大1000。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListCitiesRequest) String

func (o ListCitiesRequest) String() string

type ListCitiesResponse

type ListCitiesResponse struct {

	// 查询个数,成功的时候返回。
	Count *int32 `json:"count,omitempty"`

	// 城市信息列表,成功的时候返回,具体参见表2。
	Cities         *[]City `json:"cities,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListCitiesResponse) String

func (o ListCitiesResponse) String() string

type ListConsumeSubCustomersReq added in v0.0.85

type ListConsumeSubCustomersReq struct {

	// 账期所在月份。 格式:YYYY-MM
	BillCycle string `json:"bill_cycle"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 一次查询的条数,默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

func (ListConsumeSubCustomersReq) String added in v0.0.85

type ListConsumeSubCustomersRequest added in v0.0.85

type ListConsumeSubCustomersRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	Body *ListConsumeSubCustomersReq `json:"body,omitempty"`
}

Request Object

func (ListConsumeSubCustomersRequest) String added in v0.0.85

type ListConsumeSubCustomersResponse added in v0.0.85

type ListConsumeSubCustomersResponse struct {

	// 子客户列表。 具体请参见表SubCustomerInfo。
	SubCustomers *[]SubCustomerInfoV3 `json:"sub_customers,omitempty"`

	// 结果集数量,只有成功才返回这个参数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListConsumeSubCustomersResponse) String added in v0.0.85

type ListConversionsRequest

type ListConversionsRequest struct {

	// 语言。zh_CN:中文en_US:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 度量类型。1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量25:测试类型
	MeasureType *int32 `json:"measure_type,omitempty"`
}

Request Object

func (ListConversionsRequest) String

func (o ListConversionsRequest) String() string

type ListConversionsResponse

type ListConversionsResponse struct {

	// 度量单位的换算信息,具体参见表3。
	Conversions    *[]Conversion `json:"conversions,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ListConversionsResponse) String

func (o ListConversionsResponse) String() string

type ListCountiesRequest

type ListCountiesRequest struct {

	// 语言。zh_CN:中文en_us:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 城市的编码。
	CityCode string `json:"city_code"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,最大1000。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListCountiesRequest) String

func (o ListCountiesRequest) String() string

type ListCountiesResponse

type ListCountiesResponse struct {

	// 查询个数,成功的时候返回。
	Count *int32 `json:"count,omitempty"`

	// 区县信息列表,成功的时候返回,具体参见表2。
	Counties       *[]County `json:"counties,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListCountiesResponse) String

func (o ListCountiesResponse) String() string

type ListCouponQuotasRecordsRequest

type ListCouponQuotasRecordsRequest struct {

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。为空表示查询所有的代金券额度发放回收记录。不为空表示仅查询与该精英服务商相关的代金券额度发放回收记录。默认查询所有精英服务商的代金券额度发放回收记录。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 精英服务商的代金券额度ID。获取方法请参见[查询优惠券额度](https://support.huaweicloud.com/api-bpconsole/mp_02003.html)。即华为云伙伴能力中心给精英服务商发放代金券额度时,产生的精英服务商的代金券额度ID,或者从精英服务商回收代金券额度时,精英服务商的代金券额度ID。
	QuotaId *string `json:"quota_id,omitempty"`

	// 查询条件:操作起始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	OperationTimeBegin *string `json:"operation_time_begin,omitempty"`

	// 查询条件:操作截止时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	OperationTimeEnd *string `json:"operation_time_end,omitempty"`

	// 父额度ID。这即华为云伙伴能力中心给精英服务商发放代金券额度时,华为云伙伴能力中心的额度ID,或者从精英服务商回收代金券额度时,回收的华为云伙伴能力中心的额度ID。
	ParentQuotaId *string `json:"parent_quota_id,omitempty"`

	// 操作类型。10:发放额度11:回收额度
	OperationType *string `json:"operation_type,omitempty"`

	// 偏移量,从0开始,默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数目。默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListCouponQuotasRecordsRequest) String

type ListCouponQuotasRecordsResponse

type ListCouponQuotasRecordsResponse struct {

	// 返回总条数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 记录列表。 具体请参见表2。
	Records        *[]QuotaRecord `json:"records,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListCouponQuotasRecordsResponse) String

type ListCustomerBillsFeeRecordsRequest

type ListCustomerBillsFeeRecordsRequest struct {

	// 语言。zh_CN:中文 en_US:英文。默认为zh_CN:中文。
	XLanguage *string `json:"X-Language,omitempty"`

	// 查询的流水账单所在账期,格式为YYYY-MM。
	BillCycle string `json:"bill_cycle"`

	// 服务商。1:华为云2:云市场为空时查询包含华为云和云市场在内的全部服务商。
	ProviderType *int32 `json:"provider_type,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用[查询云服务类型列表](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001256679455.html)接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用[查询资源类型列表](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001256519451.html)接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 计费模式:1 : 包年/包月3:按需10:预留实例
	ChargingMode *int32 `json:"charging_mode,omitempty"`

	// 账单类型:1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillType *int32 `json:"bill_type,omitempty"`

	// 订单ID或交易ID。账单类型为1、2、3、4和8时此处为订单ID。账单类型为其它场景时此处为交易ID,为扣费维度的唯一标识。例如非月末扣费时为应收ID;月末扣费时为账单ID。
	TradeId *string `json:"trade_id,omitempty"`

	// 企业项目标识(企业项目ID)。default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 返回是否包含应付金额为0的记录。true:包含false:不包含
	IncludeZeroRecord *bool `json:"include_zero_record,omitempty"`

	// 支付状态。1:已支付2:未结清3:未出账
	Status *int32 `json:"status,omitempty"`

	// 查询流水账单的方式。oneself:客户自己sub_customer:企业子客户all:客户自己和企业子客户默认为all,如果没有企业子客户,取值为all时查询的是客户自己的流水账单。
	Method *string `json:"method,omitempty"`

	// 企业子账号ID。 说明: 如果method取值不为sub_customer,则该参数无效。如果method取值为sub_customer,则该参数不能为空。
	SubCustomerId *string `json:"sub_customer_id,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 页面大小。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 查询的流水账单的开始日期,格式为YYYY-MM-DD。 说明: 必须和bill_cycle(即流水账单的所在账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照bill_cycle(即流水账单的所在账期)进行查询。
	BillDateBegin *string `json:"bill_date_begin,omitempty"`

	// 查询的流水账单的结束日期,格式为YYYY-MM-DD。 说明: 必须和bill_cycle(即流水账单的所在账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照bill_cycle(即流水账单的所在账期)进行查询。
	BillDateEnd *string `json:"bill_date_end,omitempty"`
}

Request Object

func (ListCustomerBillsFeeRecordsRequest) String

type ListCustomerBillsFeeRecordsResponse

type ListCustomerBillsFeeRecordsResponse struct {

	// 结果集数量,只有成功才返回这个参数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 资源费用记录数据。 具体请参见表2。
	Records *[]MonthlyBillRecord `json:"records,omitempty"`

	// 币种。 CNY:人民币
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListCustomerBillsFeeRecordsResponse) String

type ListCustomerBillsMonthlyBreakDownRequest

type ListCustomerBillsMonthlyBreakDownRequest struct {

	// 语言。en_US:英文。zh_CN:中文
	XLanguage *string `json:"X-Language,omitempty"`

	// 查询分摊成本的月份,格式:YYYY-MM。
	SharedMonth string `json:"shared_month"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用[查询云服务类型列表](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001256679455.html)接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用[查询资源类型列表](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001256519451.html)接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 计费模式。1:包年/包月3:按需10:预留实例
	ChargingMode *int32 `json:"charging_mode,omitempty"`

	// 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillType *int32 `json:"bill_type,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称
	ResourceName *string `json:"resource_name,omitempty"`

	// 企业项目标识(企业项目ID)。default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 查询资源消费记录的方式。oneself:客户自己sub_customer:企业子客户all:客户自己和企业子客户默认为all,如果没有企业子客户,取值为all时查询的是客户自己的资源消费记录。
	Method *string `json:"method,omitempty"`

	// 企业子账号ID。 说明: 如果method取值不为sub_customer,则该参数无效。如果method取值为sub_customer,则该参数不能为空。
	SubCustomerId *string `json:"sub_customer_id,omitempty"`
}

Request Object

func (ListCustomerBillsMonthlyBreakDownRequest) String

type ListCustomerBillsMonthlyBreakDownResponse

type ListCustomerBillsMonthlyBreakDownResponse struct {

	// 货币单位代码: CNY:人民币
	Currency *string `json:"currency,omitempty"`

	// 结果集数量,只有成功才返回这个参数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 分摊成本记录数据。 具体请参见表3。
	Details        *[]NvlCostAnalysedBillDetail `json:"details,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

Response Object

func (ListCustomerBillsMonthlyBreakDownResponse) String

type ListCustomerOnDemandResourcesRequest

type ListCustomerOnDemandResourcesRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	Body *QueryCustomerOnDemandResourcesReq `json:"body,omitempty"`
}

Request Object

func (ListCustomerOnDemandResourcesRequest) String

type ListCustomerOnDemandResourcesResponse

type ListCustomerOnDemandResourcesResponse struct {

	// 客户资源列表。 具体参见表2。
	Resources *[]CustomerOnDemandResource `json:"resources,omitempty"`

	// 查询总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListCustomerOnDemandResourcesResponse) String

type ListCustomerOrdersRequest

type ListCustomerOrdersRequest struct {

	// 订单ID。 说明: 使用特殊字符进行查询的时候,请注意进行URL编码转换,如“%”的转码应为“%25”。
	OrderId *string `json:"order_id,omitempty"`

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId *string `json:"customer_id,omitempty"`

	// 订单创建开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	CreateTimeBegin *string `json:"create_time_begin,omitempty"`

	// 订单创建结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	CreateTimeEnd *string `json:"create_time_end,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 订单状态。1:待审核3:处理中4:已取消5:已完成6:待支付9:待确认
	Status *int32 `json:"status,omitempty"`

	// 订单类型。1:开通2:续订3:变更4:退订11:按需转包年/包月13:试用14:转商用15:费用调整
	OrderType *string `json:"order_type,omitempty"`

	// 每次查询的订单数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 查询的订单列表排序。支持按照创建时间进行排序,带-表示倒序。创建时间:升序为createTime,倒序为-createTime。
	OrderBy *string `json:"order_by,omitempty"`

	// 订单支付开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	PaymentTimeBegin *string `json:"payment_time_begin,omitempty"`

	// 订单支付结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	PaymentTimeEnd *string `json:"payment_time_end,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。华为云伙伴能力中心(一级经销商)查询精英服务商的客户订单列表时,需要携带该参数;否则只能查询自己客户的订单列表。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListCustomerOrdersRequest) String

func (o ListCustomerOrdersRequest) String() string

type ListCustomerOrdersResponse

type ListCustomerOrdersResponse struct {

	// 大于等于0的整数。 符合条件的记录总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// - 客户订单详情信息。 具体请参见表2
	OrderInfos     *[]CustomerOrderV2 `json:"order_infos,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListCustomerOrdersResponse) String

type ListCustomersBalancesDetailRequest

type ListCustomersBalancesDetailRequest struct {
	Body *QueryCustomersBalancesReq `json:"body,omitempty"`
}

Request Object

func (ListCustomersBalancesDetailRequest) String

type ListCustomersBalancesDetailResponse

type ListCustomersBalancesDetailResponse struct {

	// 账户余额列表。只有成功的时候才返回。 具体请参见表2。
	CustomerBalances *[]CustomerBalancesV2 `json:"customer_balances,omitempty"`
	HttpStatusCode   int                   `json:"-"`
}

Response Object

func (ListCustomersBalancesDetailResponse) String

type ListCustomerselfResourceRecordDetailsRequest

type ListCustomerselfResourceRecordDetailsRequest struct {
	Body *QueryResRecordsDetailReq `json:"body,omitempty"`
}

Request Object

func (ListCustomerselfResourceRecordDetailsRequest) String

type ListCustomerselfResourceRecordDetailsResponse

type ListCustomerselfResourceRecordDetailsResponse struct {

	// 资源详单数据记录。 具体请参见表1。
	MonthlyRecords *[]MonthlyBillRes `json:"monthly_records,omitempty"`

	// 结果集数量,只有成功才返回这个参数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 货币单位代码: CNY:人民币
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListCustomerselfResourceRecordDetailsResponse) String

type ListCustomerselfResourceRecordsRequest

type ListCustomerselfResourceRecordsRequest struct {

	// 语言:中文:zh_CN 英文:en_US。缺省为zh_CN
	XLanguage *string `json:"X-Language,omitempty"`

	// 查询的资源消费记录所在账期,格式:YYYY-MM。
	Cycle string `json:"cycle"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用[查询云服务类型列表](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001256679455.html)接口获取。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)对应云服务的“区域”列的值。
	Region *string `json:"region,omitempty"`

	// 计费模式。1:包年/包月3:按需10:预留实例
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillType *int32 `json:"bill_type,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 企业项目标识(企业项目ID)。default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 返回是否包含应付金额为0的记录。true:包含false:不包含
	IncludeZeroRecord *bool `json:"include_zero_record,omitempty"`

	// 查询资源消费记录的方式。oneself:客户自己sub_customer:企业子客户all:客户自己和企业子客户默认为all,如果没有企业子客户,取值为all时查询的是客户自己的资源消费记录。
	Method *string `json:"method,omitempty"`

	// 企业子账号ID。 说明: 如果method取值不为sub_customer,则该参数无效。如果method取值为sub_customer,则该参数不能为空。
	SubCustomerId *string `json:"sub_customer_id,omitempty"`

	// 订单ID或交易ID。账单类型为1、2、3、4和8时此处为订单ID。账单类型为其它场景时此处为交易ID,为扣费维度的唯一标识。例如非月末扣费时为应收ID;月末扣费时为账单ID。
	TradeId *string `json:"trade_id,omitempty"`

	// 查询的资源消费记录的开始日期,格式为YYYY-MM-DD。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。
	BillDateBegin *string `json:"bill_date_begin,omitempty"`

	// 查询的资源消费记录的结束日期,格式为YYYY-MM-DD。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。
	BillDateEnd *string `json:"bill_date_end,omitempty"`
}

Request Object

func (ListCustomerselfResourceRecordsRequest) String

type ListCustomerselfResourceRecordsResponse

type ListCustomerselfResourceRecordsResponse struct {

	// 资源费用记录数据。 具体请参见表3。
	FeeRecords *[]ResFeeRecordV2 `json:"fee_records,omitempty"`

	// 结果集数量,只有成功才返回这个参数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 货币单位代码: CNY:人民币
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListCustomerselfResourceRecordsResponse) String

type ListEnterpriseMultiAccountRequest

type ListEnterpriseMultiAccountRequest struct {

	// 企业子账户的账号ID。
	SubCustomerId string `json:"sub_customer_id"`

	// 账户类型:BALANCE_TYPE_DEBIT:余额账户(默认)BALANCE_TYPE_CREDIT:信用账户
	BalanceType string `json:"balance_type"`

	// 偏移量,默认值为0。只有信用账户有效。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询条数,默认值为10。只有信用账户有效。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListEnterpriseMultiAccountRequest) String

type ListEnterpriseMultiAccountResponse

type ListEnterpriseMultiAccountResponse struct {

	// 记录条数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 可回收余额信息,如果是余额账户,只会有一条记录。 具体请参见表2。
	AmountInfos    *[]RetrieveAmountInfoV2 `json:"amount_infos,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (ListEnterpriseMultiAccountResponse) String

type ListEnterpriseOrganizationsRequest

type ListEnterpriseOrganizationsRequest struct {

	// 是否递归查询。0:不递归(默认)1:递归如果不递归,只返回起始节点的直接子节点。
	RecursiveQuery *int32 `json:"recursive_query,omitempty"`

	// 指定的节点ID。为空则从根节点查起。
	ParentId *string `json:"parent_id,omitempty"`
}

Request Object

func (ListEnterpriseOrganizationsRequest) String

type ListEnterpriseOrganizationsResponse

type ListEnterpriseOrganizationsResponse struct {

	// 根节点ID,如果请求有parent_id,则该参数无值。
	RootId *string `json:"root_id,omitempty"`

	// 根节点名称,如果请求有parent_id,则该参数无值。  说明: 组织根节点没有设置组织名称时,可能为空。
	RootName *string `json:"root_name,omitempty"`

	// 子节点列表。
	ChildNodes     *[]EmChildNodeV2 `json:"child_nodes,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListEnterpriseOrganizationsResponse) String

type ListEnterpriseSubCustomersRequest

type ListEnterpriseSubCustomersRequest struct {

	// 企业子账号的账号名。根据fuzzy_query取值决定是否按模糊查询。
	SubCustomerAccountName *string `json:"sub_customer_account_name,omitempty"`

	// 企业子账号的显示名称。不限制特殊字符。根据fuzzy_query取值决定是否按模糊查询。
	SubCustomerDisplayName *string `json:"sub_customer_display_name,omitempty"`

	// 企业子账号的显示名称、用户名是否按模糊查询。0:不按模糊查询1:按模糊查询默认值为0。
	FuzzyQuery *int32 `json:"fuzzy_query,omitempty"`

	// 偏移量,从0开始,默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询记录数,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 子账号归属的组织单元ID。
	OrgId *string `json:"org_id,omitempty"`
}

Request Object

func (ListEnterpriseSubCustomersRequest) String

type ListEnterpriseSubCustomersResponse

type ListEnterpriseSubCustomersResponse struct {

	// 结果集数量,成功才有。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 客户信息列表,成功才有。 具体请参见表2。
	SubCustomerInfos *[]SubCustomerInfoV2 `json:"sub_customer_infos,omitempty"`
	HttpStatusCode   int                  `json:"-"`
}

Response Object

func (ListEnterpriseSubCustomersResponse) String

type ListFreeResourceInfosReq added in v0.0.61

type ListFreeResourceInfosReq struct {

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 产品ID,即资源包ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品名称,即资源包名称。
	ProductName *string `json:"product_name,omitempty"`

	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 状态: 0:未生效1:生效中2:已用完3:已失效4:已退订
	Status *int32 `json:"status,omitempty"`

	// 偏移量,从0开始,默认为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的记录数,默认为10。
	Limit *int32 `json:"limit,omitempty"`
}

func (ListFreeResourceInfosReq) String added in v0.0.61

func (o ListFreeResourceInfosReq) String() string

type ListFreeResourceInfosRequest added in v0.0.61

type ListFreeResourceInfosRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	Body *ListFreeResourceInfosReq `json:"body,omitempty"`
}

Request Object

func (ListFreeResourceInfosRequest) String added in v0.0.61

type ListFreeResourceInfosResponse added in v0.0.61

type ListFreeResourceInfosResponse struct {

	// 资源包信息列表,具体参见表2。
	FreeResourcePackages *[]FreeResourcePackageV3 `json:"free_resource_packages,omitempty"`

	// 总条数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListFreeResourceInfosResponse) String added in v0.0.61

type ListFreeResourceUsagesReq added in v0.0.47

type ListFreeResourceUsagesReq struct {

	// 资源项ID列表,每个最大64字节。 资源项ID,一个资源包中会含有多个资源项,一个使用量类型对应一个资源项。资源项ID来自查询资源包列表接口的响应。
	FreeResourceIds []string `json:"free_resource_ids"`
}

func (ListFreeResourceUsagesReq) String added in v0.0.47

func (o ListFreeResourceUsagesReq) String() string

type ListFreeResourceUsagesRequest added in v0.0.47

type ListFreeResourceUsagesRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	Body *ListFreeResourceUsagesReq `json:"body,omitempty"`
}

Request Object

func (ListFreeResourceUsagesRequest) String added in v0.0.47

type ListFreeResourceUsagesResponse added in v0.0.47

type ListFreeResourceUsagesResponse struct {

	// 资源套餐内的资源项信息(资源项ID级的详情),具体参见表2。
	FreeResources  *[]FreeResourceDetail `json:"free_resources,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ListFreeResourceUsagesResponse) String added in v0.0.47

type ListIncentiveDiscountPoliciesRequest added in v0.0.68

type ListIncentiveDiscountPoliciesRequest struct {

	// 查询策略的指定时间。东八区时间,格式:YYYY-MM。 说明: 实际查询结果为指定时间所在月最后一天23:59:59的策略情况。
	Time string `json:"time"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListIncentiveDiscountPoliciesRequest) String added in v0.0.68

type ListIncentiveDiscountPoliciesResponse added in v0.0.68

type ListIncentiveDiscountPoliciesResponse struct {

	// 产品折扣和激励策略信息列表。 具体请参见表2。
	Policies *[]IncentiveAndDiscountPolicy `json:"policies,omitempty"`

	// 查询总条数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListIncentiveDiscountPoliciesResponse) String added in v0.0.68

type ListIndirectPartnersRequest

type ListIndirectPartnersRequest struct {
	Body *QueryIndirectPartnersReq `json:"body,omitempty"`
}

Request Object

func (ListIndirectPartnersRequest) String

type ListIndirectPartnersResponse

type ListIndirectPartnersResponse struct {

	// 符合条件的记录个数,只有成功的时候出现。
	Count *int32 `json:"count,omitempty"`

	// 精英服务商列表,具体参见表1。
	IndirectPartners *[]IndirectPartnerInfo `json:"indirect_partners,omitempty"`
	HttpStatusCode   int                    `json:"-"`
}

Response Object

func (ListIndirectPartnersResponse) String

type ListIssuedCouponQuotasRequest

type ListIssuedCouponQuotasRequest struct {

	// 精英服务商的代金券额度ID。获取方法请参见查询优惠券额度。
	QuotaId *string `json:"quota_id,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 父额度ID,即华为云伙伴能力中心用于发放给精英服务商代金券额度的额度ID。
	ParentQuotaId *string `json:"parent_quota_id,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询记录数。默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListIssuedCouponQuotasRequest) String

type ListIssuedCouponQuotasResponse

type ListIssuedCouponQuotasResponse struct {

	// 查询的记录总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 额度记录列表。 具体请参见表2。
	Quotas         *[]IssuedCouponQuota `json:"quotas,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListIssuedCouponQuotasResponse) String

type ListIssuedPartnerCouponsRequest

type ListIssuedPartnerCouponsRequest struct {

	// 优惠券ID。
	CouponId *string `json:"coupon_id,omitempty"`

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId *string `json:"customer_id,omitempty"`

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 优惠券类型:1:代金券4:现金券
	CouponType *int32 `json:"coupon_type,omitempty"`

	// 客户优惠券实例状态:1:未激活2:可使用3:已使用4:已过期5:已回收
	Status *int32 `json:"status,omitempty"`

	// 创建时间(开始)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出创建时间大于这个时间的记录。
	CreateTimeBegin *string `json:"create_time_begin,omitempty"`

	// 创建时间(结束)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出创建时间小于这个时间的记录。
	CreateTimeEnd *string `json:"create_time_end,omitempty"`

	// 生效时间(开始)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出生效时间大于这个时间的记录。
	EffectiveTimeBegin *string `json:"effective_time_begin,omitempty"`

	// 生效时间(结束)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出生效时间小于这个时间的记录。
	EffectiveTimeEnd *string `json:"effective_time_end,omitempty"`

	// 失效时间(开始)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出失效时间大于这个时间的记录。
	ExpireTimeBegin *string `json:"expire_time_begin,omitempty"`

	// 失效时间(结束)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出失效时间小于这个时间的记录。
	ExpireTimeEnd *string `json:"expire_time_end,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 查询的每页数量。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。华为云伙伴能力中心(一级经销商)查询精英服务商发放给子客户的优惠券时,需要携带该参数;否则只能查询发放给自己子客户的优惠券。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListIssuedPartnerCouponsRequest) String

type ListIssuedPartnerCouponsResponse

type ListIssuedPartnerCouponsResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 发放的优惠券记录。 具体请参见表2。
	UserCoupons    *[]IQueryUserPartnerCouponsResultV2 `json:"user_coupons,omitempty"`
	HttpStatusCode int                                 `json:"-"`
}

Response Object

func (ListIssuedPartnerCouponsResponse) String

type ListMeasureUnitsRequest

type ListMeasureUnitsRequest struct {

	// 语言。zh_CN:中文en_US:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`
}

Request Object

func (ListMeasureUnitsRequest) String

func (o ListMeasureUnitsRequest) String() string

type ListMeasureUnitsResponse

type ListMeasureUnitsResponse struct {

	// 度量单位信息,具体参见表2。
	MeasureUnits   *[]MeasureUnitRest `json:"measure_units,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListMeasureUnitsResponse) String

func (o ListMeasureUnitsResponse) String() string

type ListOnDemandResourceRatingsRequest

type ListOnDemandResourceRatingsRequest struct {
	Body *RateOnDemandReq `json:"body,omitempty"`
}

Request Object

func (ListOnDemandResourceRatingsRequest) String

type ListOnDemandResourceRatingsResponse

type ListOnDemandResourceRatingsResponse struct {

	// 折扣的金额。
	Amount *float64 `json:"amount,omitempty"`

	// 优惠额(官网价和总价的差)。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 按需产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 CNY:人民币。 值为空代表人民币。
	Currency *string `json:"currency,omitempty"`

	// 产品询价结果,具体参见表2。
	ProductRatingResults *[]DemandProductRatingResult `json:"product_rating_results,omitempty"`
	HttpStatusCode       int                          `json:"-"`
}

Response Object

func (ListOnDemandResourceRatingsResponse) String

type ListOrderCouponsByOrderIdRequest

type ListOrderCouponsByOrderIdRequest struct {

	// 订单ID。
	OrderId string `json:"order_id"`
}

Request Object

func (ListOrderCouponsByOrderIdRequest) String

type ListOrderCouponsByOrderIdResponse

type ListOrderCouponsByOrderIdResponse struct {

	// 查询总数。
	Count *int32 `json:"count,omitempty"`

	// 可用的优惠券列表。 具体请参见表2。
	UserCoupons *[]CouponInfoV2 `json:"user_coupons,omitempty"`

	// 优惠券使用的最大数量。 具体请参见表4。
	CouponMaxUseQuantity *[]CouponMaxUseQuantity `json:"coupon_max_use_quantity,omitempty"`
	HttpStatusCode       int                     `json:"-"`
}

Response Object

func (ListOrderCouponsByOrderIdResponse) String

type ListOrderDiscountsRequest

type ListOrderDiscountsRequest struct {

	// 订单ID。
	OrderId string `json:"order_id"`
}

Request Object

func (ListOrderDiscountsRequest) String

func (o ListOrderDiscountsRequest) String() string

type ListOrderDiscountsResponse

type ListOrderDiscountsResponse struct {

	// 可用的折扣列表。 具体请参见表2。
	Discounts      *[]DiscountInfoV3 `json:"discounts,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ListOrderDiscountsResponse) String

type ListPartnerAccountChangeRecordsRequest added in v0.0.68

type ListPartnerAccountChangeRecordsRequest struct {

	// 账户类型。BALANCE_TYPE_DEBIT:现金账户,BALANCE_TYPE_CREDIT:信用账户
	BalanceType string `json:"balance_type"`

	// 交易类型。RECHARGE:充值,DEDEUCT:消费,REFUND:退款,RFROZEN:冻结,TRANS:转账,余额和保证金互换(老商务模式,当前已无保证金账户),ADJUST:调账(华为核销等),BEADJUST:经销商拨款,BERETRIEVE:经销商回收,BEUNBIND:解绑/关联模式切换导致的回收,EXPIRED:过期清零,BONUSCONVERT:奖励金转换(老商务模式,当前已无奖励金账户),TRADE_MODE_TRANSFER:交易模式变更,SYSTEM:系统操作(购买标销合同的伙伴涉及该模式),COUPONCANCEL:代金券回收
	TradeType *string `json:"trade_type,omitempty"`

	// 查询收支明细的开始日期。 说明: 东八区时间,格式为YYYY-MM-DD,如“2017-10-21”。默认值为一年前的当天日期。
	TradeTimeBegin *string `json:"trade_time_begin,omitempty"`

	// 查询收支明细的结束日期。 说明: 东八区时间,格式为YYYY-MM-DD,如“2017-12-21”。默认值为当前日期。
	TradeTimeEnd *string `json:"trade_time_end,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 说明: 华为云伙伴能力中心(一级经销商)查询精英服务商(二级经销商)的收支明细时,需携带此参数;否则只能查询自身的收支明细。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListPartnerAccountChangeRecordsRequest) String added in v0.0.68

type ListPartnerAccountChangeRecordsResponse added in v0.0.68

type ListPartnerAccountChangeRecordsResponse struct {

	// 返回总条数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 币种。 CNY:人民币。
	Currency *string `json:"currency,omitempty"`

	// 调账记录列表。 具体请参见表2。
	Records        *[]AccountChangeRecord `json:"records,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListPartnerAccountChangeRecordsResponse) String added in v0.0.68

type ListPartnerAdjustRecordsRequest

type ListPartnerAdjustRecordsRequest struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。为空表示查询所有的调账记录。不为空表示仅查询与该客户相关的调账记录。默认查询所有客户的调账记录。 说明: 此处的客户包含伙伴的子客户,以及华为云伙伴能力中心关联的精英服务商(二级经销商)。
	CustomerId *string `json:"customer_id,omitempty"`

	// 操作类型。SOURCE_OPERATION_BEADJUST:拨款,SOURCE_OPERATION_BERETRIEVE:回收,SOURCE_OPERATION_BEUNBIND:解绑回收,不传递默认查询所有类型。
	OperationType *string `json:"operation_type,omitempty"`

	// 调账起始时间。UTC时间,格式为:2016-03-28T14:45:38Z
	OperationTimeBegin *string `json:"operation_time_begin,omitempty"`

	// 调账截止时间。UTC时间,格式为:2016-03-28T14:45:38Z
	OperationTimeEnd *string `json:"operation_time_end,omitempty"`

	// 事务ID。
	TransId *string `json:"trans_id,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每页的显示条数。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。华为云伙伴能力中心(一级经销商)查询精英服务商(二级经销商)的子客户调账记录时,需携带此参数;否则只能查询自己的子客户调账记录。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListPartnerAdjustRecordsRequest) String

type ListPartnerAdjustRecordsResponse

type ListPartnerAdjustRecordsResponse struct {

	// 调账记录列表。 具体请参见表2。
	Records *[]AdjustRecordV3 `json:"records,omitempty"`

	// 返回总条数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListPartnerAdjustRecordsResponse) String

type ListPartnerBalancesRequest

type ListPartnerBalancesRequest struct {

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。华为云伙伴能力中心(一级经销商)查询精英服务商(二级经销商)余额时,需要携带该参数;否则只能查询自己的账户余额。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListPartnerBalancesRequest) String

type ListPartnerBalancesResponse

type ListPartnerBalancesResponse struct {

	// 账户余额列表。 具体请参见表2
	AccountBalances *[]AccountBalanceV2 `json:"account_balances,omitempty"`
	HttpStatusCode  int                 `json:"-"`
}

Response Object

func (ListPartnerBalancesResponse) String

type ListPartnerCouponsRecordRequest

type ListPartnerCouponsRecordRequest struct {

	// 操作类型。1:发放2:手动回收3:解绑自动回收4:过期回收5:退订回收6:退款充值撤销7:建立关联回收
	OperationTypes *[]string `json:"operation_types,omitempty"`

	// 额度ID。请从“查询优惠券额度”接口的响应参数中获取。
	QuotaId *string `json:"quota_id,omitempty"`

	// 额度类型:0:代金券额度1:现金券额度
	QuotaType *int32 `json:"quota_type,omitempty"`

	// 代金券ID列表。请从“发放优惠券”接口的响应参数中获取。
	CouponIds *[]string `json:"coupon_ids,omitempty"`

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId *string `json:"customer_id,omitempty"`

	// 操作时间(开始)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出操作时间大于这个时间的记录。
	OperationTimeBegin *string `json:"operation_time_begin,omitempty"`

	// 操作时间(结束)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出操作时间小于这个时间的记录。
	OperationTimeEnd *string `json:"operation_time_end,omitempty"`

	// 操作结果:0:成功-1:失败(非0的记录)
	Result *string `json:"result,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每页记录数。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。华为云伙伴能力中心(一级经销商)查询精英服务商发放给子客户的优惠券发放记录时,需要携带该参数,否则只能查询发给自己子客户的优惠券发放记录。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListPartnerCouponsRecordRequest) String

type ListPartnerCouponsRecordResponse

type ListPartnerCouponsRecordResponse struct {

	// 查询记录总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 日志记录列表。 具体请参见表2。
	Records        *[]CouponRecordV2 `json:"records,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ListPartnerCouponsRecordResponse) String

type ListPayPerUseCustomerResourcesRequest

type ListPayPerUseCustomerResourcesRequest struct {
	Body *QueryResourcesReq `json:"body,omitempty"`
}

Request Object

func (ListPayPerUseCustomerResourcesRequest) String

type ListPayPerUseCustomerResourcesResponse

type ListPayPerUseCustomerResourcesResponse struct {

	// 资源列表。 具体请参见表2。
	Data *[]OrderInstanceV2 `json:"data,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListPayPerUseCustomerResourcesResponse) String

type ListPostalAddressRequest

type ListPostalAddressRequest struct {

	// 偏移量。默认值为0。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的个数。默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListPostalAddressRequest) String

func (o ListPostalAddressRequest) String() string

type ListPostalAddressResponse

type ListPostalAddressResponse struct {

	// 邮寄地址的个数,只有成功的时候才返回。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 邮寄地址,具体参见表2。
	PostalAddress  *[]CustomerPostalAddressV2 `json:"postal_address,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

Response Object

func (ListPostalAddressResponse) String

func (o ListPostalAddressResponse) String() string

type ListProvincesRequest

type ListProvincesRequest struct {

	// 语言。zh_CN:中文en_us:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,最大1000。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListProvincesRequest) String

func (o ListProvincesRequest) String() string

type ListProvincesResponse

type ListProvincesResponse struct {

	// 查询个数,成功的时候返回。
	Count *int32 `json:"count,omitempty"`

	// 省份信息列表,成功的时候返回,具体参见表3。
	Provinces      *[]Province `json:"provinces,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListProvincesResponse) String

func (o ListProvincesResponse) String() string

type ListQuotaCouponsRequest

type ListQuotaCouponsRequest struct {
	Body *QueryCouponQuotasReqExt `json:"body,omitempty"`
}

Request Object

func (ListQuotaCouponsRequest) String

func (o ListQuotaCouponsRequest) String() string

type ListQuotaCouponsResponse

type ListQuotaCouponsResponse struct {

	// 查询总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 额度记录列表。 具体请参见表1。
	Quotas         *[]CouponQuotaV2 `json:"quotas,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListQuotaCouponsResponse) String

func (o ListQuotaCouponsResponse) String() string

type ListRateOnPeriodDetailRequest

type ListRateOnPeriodDetailRequest struct {
	Body *RateOnPeriodReq `json:"body,omitempty"`
}

Request Object

func (ListRateOnPeriodDetailRequest) String

type ListRateOnPeriodDetailResponse

type ListRateOnPeriodDetailResponse struct {
	OfficialWebsiteRatingResult *OfficialWebsiteRatingResult `json:"official_website_rating_result,omitempty"`

	// 存在可选折扣优惠时返回折扣优惠维度询价结果,每个折扣优惠一组询价结果,具体参见表4。
	OptionalDiscountRatingResults *[]OptionalDiscountRatingResult `json:"optional_discount_rating_results,omitempty"`

	// 币种。 CNY:人民币。 值为空代表人民币。
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListRateOnPeriodDetailResponse) String

type ListResourceTypesRequest

type ListResourceTypesRequest struct {

	// 语言。zh_CN:中文en_US:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListResourceTypesRequest) String

func (o ListResourceTypesRequest) String() string

type ListResourceTypesResponse

type ListResourceTypesResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 资源类型信息列表,具体请参见表3。
	ResourceTypes  *[]ResourceTypes `json:"resource_types,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListResourceTypesResponse) String

func (o ListResourceTypesResponse) String() string

type ListResourceUsageRequest added in v0.0.59

type ListResourceUsageRequest struct {

	// 语言。en_US:英文;zh_CN:中文。默认:zh_CN:中文
	XLanguage *string `json:"X-Language,omitempty"`

	// 账期,格式为yyyy-MM。
	BillCycle string `json:"bill_cycle"`

	// 云服务类型,当前仅支持:hws.service.type.cdn:内容分发网络,hws.service.type.obs:对象存储服务
	ServiceTypeCode string `json:"service_type_code"`

	// 资源类型编码,当前仅支持:hws.resource.type.cdn:CDN,hws.resource.type.obs:云存储。资源类型和云服务类型的对应关系可调用[根据云服务类型查询资源列表](https://support.huaweicloud.com/api-oce/qct_00003.html)接口获取。
	ResourceTypeCode string `json:"resource_type_code"`

	// 使用量类型编码,当前仅支持:95Peak:中国大陆月95峰值带宽_1024进制,95peak_1000:中国大陆月95峰值带宽_1000进制,bandwidth95peak:95峰值带宽.资源类型和使用量类型的对应关系可调用[查询使用量类型列表](https://support.huaweicloud.com/api-oce/qct_00004.html)接口获取。
	UsageType string `json:"usage_type"`

	// 资源ID,您可以调用[查询资源用量汇总](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001144806706.html)接口获取。
	ResourceId string `json:"resource_id"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListResourceUsageRequest) String added in v0.0.59

func (o ListResourceUsageRequest) String() string

type ListResourceUsageResponse added in v0.0.59

type ListResourceUsageResponse struct {

	// 有效天数,精度最高返回小数点后20位。  说明: 计算方式为上报的点数/288所得出的值。其中288为一天的点数,5分钟为一个点数单位。计算95费用时,因95费用是按月定价,若实际不足月,则是使用官网价*折扣*actual_days/当月天数,来计算费用明细。
	ActualDays *string `json:"actual_days,omitempty"`

	// 计费带宽的按月汇总。 说明: 每月2日20点后可查询上月数据;若查询当月数据,则为空。
	BandWidth *string `json:"band_width,omitempty"`

	// 月保底带宽的按月汇总。 说明: 每月2日20点后可查询上月数据;若查询当月数据,则为空。该字段为预留值,当前始终为空;当场景为95增强时才返回数值。
	MonthlyGuaranteedBandWidth *string `json:"monthly_guaranteed_band_width,omitempty"`

	// 月峰值带宽。 说明: 每月2日20点后可查询上月数据;若查询当月数据,则为空。该字段为预留值,当前始终为空;当场景为95增强时才返回数值。
	MonthlyPeakBandWidth *string `json:"monthly_peak_band_width,omitempty"`

	// 带宽单位,您可以调用查询度量单位列表接口获取。若所有带宽为空,则该字段为空。
	BandWidthMeasureId *int32 `json:"band_width_measure_id,omitempty"`

	// 总条数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 使用量明细(5分钟统计值)。具体请参见表3。
	UsageInfoList  *[]StatUsageInfo `json:"usage_info_list,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListResourceUsageResponse) String added in v0.0.59

func (o ListResourceUsageResponse) String() string

type ListResourceUsageSummaryRequest added in v0.0.59

type ListResourceUsageSummaryRequest struct {

	// 语言。en_US:英文;zh_CN:中文。默认:zh_CN:中文
	XLanguage *string `json:"X-Language,omitempty"`

	// 账期,格式为yyyy-MM。
	BillCycle string `json:"bill_cycle"`

	// 云服务类型,当前仅支持:hws.service.type.cdn:内容分发网络,hws.service.type.obs:对象存储服务
	ServiceTypeCode string `json:"service_type_code"`

	// 资源类型编码,当前仅支持:hws.resource.type.cdn:CDN,hws.resource.type.obs:云存储.资源类型和云服务类型的对应关系可调用[根据云服务类型查询资源列表](https://support.huaweicloud.com/api-oce/qct_00003.html)接口获取。
	ResourceTypeCode string `json:"resource_type_code"`

	// 使用量类型编码,目前仅支持:95Peak:中国大陆月95峰值带宽_1024进制,95peak_1000:中国大陆月95峰值带宽_1000进制,bandwidth95peak:95峰值带宽.资源类型和使用量类型的对应关系可调用[查询使用量类型列表接](https://support.huaweicloud.com/api-oce/qct_00004.html)口获取。
	UsageType string `json:"usage_type"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListResourceUsageSummaryRequest) String added in v0.0.59

type ListResourceUsageSummaryResponse added in v0.0.59

type ListResourceUsageSummaryResponse struct {

	// 总条数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 统计值,按照资源ID维度返回的月度统计结果。具体请参见表3。  说明: 每月2日20点后可查询上月数据;若查询当月数据,则只返回资源ID。
	SummaryUsageInfoList *[]StatUsageSummaryInfo `json:"summary_usage_info_list,omitempty"`
	HttpStatusCode       int                     `json:"-"`
}

Response Object

func (ListResourceUsageSummaryResponse) String added in v0.0.59

type ListServiceResourcesRequest

type ListServiceResourcesRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用[查询云服务类型列表](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001256679455.html)接口获取。
	ServiceTypeCode string `json:"service_type_code"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListServiceResourcesRequest) String

type ListServiceResourcesResponse

type ListServiceResourcesResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 资源基本信息列表,具体请参见表3。
	Infos          *[]ServiceResourceInfo `json:"infos,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListServiceResourcesResponse) String

type ListServiceTypesRequest

type ListServiceTypesRequest struct {

	// 语言。zh_CN:中文en_US:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListServiceTypesRequest) String

func (o ListServiceTypesRequest) String() string

type ListServiceTypesResponse

type ListServiceTypesResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 云服务类型信息列表,具体请参见表3。
	ServiceTypes   *[]ServiceTypes `json:"service_types,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListServiceTypesResponse) String

func (o ListServiceTypesResponse) String() string

type ListStoredValueCardsRequest added in v0.0.83

type ListStoredValueCardsRequest struct {

	// 状态:1:可使用2:已用完
	Status int32 `json:"status"`

	// 储值卡ID。
	CardId *string `json:"card_id,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 查询的优惠券数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListStoredValueCardsRequest) String added in v0.0.83

type ListStoredValueCardsResponse added in v0.0.83

type ListStoredValueCardsResponse struct {

	// 符合查询条件的总条数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 优惠券记录。 具体请参见表2。
	StoredValueCards *[]UserStoredValueCard `json:"stored_value_cards,omitempty"`
	HttpStatusCode   int                    `json:"-"`
}

Response Object

func (ListStoredValueCardsResponse) String added in v0.0.83

type ListSubCustomerBillDetailRequest added in v0.0.59

type ListSubCustomerBillDetailRequest struct {

	// 语言。忽略大小写,默认 zh_cn:中文 en_us:英文
	XLanguage *string `json:"X-Language,omitempty"`

	// 账期所在月份。格式:YYYY-MM
	BillCycle string `json:"bill_cycle"`

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用[查询云服务类型列表](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0000001256679455.html)接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 计费模式。不传数据时默认查询所有计费模式下的消费记录。1:包周期3:按需10:预留实例
	ChargingMode *int32 `json:"charging_mode,omitempty"`

	// 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillDetailType *int32 `json:"bill_detail_type,omitempty"`

	// 资源标识。
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 订单ID或交易ID,扣费维度的唯一标识。账单类型为1,2,3,4,8时为订单ID。其它场景下为交易ID。非月末扣费:应收ID月末扣费:账单ID
	TradeId *string `json:"trade_id,omitempty"`

	// 客户经理标识。
	AccountManagerId *string `json:"account_manager_id,omitempty"`

	// 子客户的关联类型:1:顾问销售2:代售
	AssociationType *string `json:"association_type,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 说明: 华为云伙伴能力中心可以查询名下所有子客户消费(包括精英服务商子客户)。如果是普通经销商,那么此处可以为空。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 查询的资源消费记录的开始日期,格式为YYYY-MM-DD。 说明: 必须和cycle(即资源的消费账期)在同一个月。
	BillDateBegin *string `json:"bill_date_begin,omitempty"`

	// 查询的资源消费记录的结束日期,格式为YYYY-MM-DD。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。
	BillDateEnd *string `json:"bill_date_end,omitempty"`
}

Request Object

func (ListSubCustomerBillDetailRequest) String added in v0.0.59

type ListSubCustomerBillDetailResponse added in v0.0.59

type ListSubCustomerBillDetailResponse struct {

	// 结果集数量,只有成功才返回这个参数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 货币单位代码: CNY:人民币
	Currency *string `json:"currency,omitempty"`

	// 资源费用记录数据。 具体请参见表2。
	FeeRecords     *[]SubCustomerMonthlyBillDetail `json:"fee_records,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (ListSubCustomerBillDetailResponse) String added in v0.0.59

type ListSubCustomerCouponsRequest

type ListSubCustomerCouponsRequest struct {

	// 优惠券ID。
	CouponId *string `json:"coupon_id,omitempty"`

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 促销计划ID。
	PromotionPlanId *string `json:"promotion_plan_id,omitempty"`

	// 优惠券类型:1:代金券2:折扣券3:产品券4:现金券
	CouponType *int32 `json:"coupon_type,omitempty"`

	// 客户优惠券实例状态:1:未激活2:待使用3:已使用4:已过期
	Status *int32 `json:"status,omitempty"`

	// 激活时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	ActiveStartTime *string `json:"active_start_time,omitempty"`

	// 结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	ActiveEndTime *string `json:"active_end_time,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 查询的优惠券数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 发券来源,如果是合作伙伴发送的券,此处为伙伴ID。如果需要查询某个伙伴发放的券,可以在此处输入该伙伴ID。
	SourceId *string `json:"source_id,omitempty"`

	// 精英服务商(二级经销商)ID。华为云伙伴能力中心(一级经销商)查询精英服务商名下的优惠券时,需要携带该参数;否则只能查询自己的优惠券列表。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListSubCustomerCouponsRequest) String

type ListSubCustomerCouponsResponse

type ListSubCustomerCouponsResponse struct {

	// 符合查询条件的总条数。
	Count *int32 `json:"count,omitempty"`

	// 优惠券记录。 具体请参见表2。
	UserCoupons    *[]IQueryUserCouponsResultV2 `json:"user_coupons,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

Response Object

func (ListSubCustomerCouponsResponse) String

type ListSubCustomersRequest

type ListSubCustomersRequest struct {
	Body *QuerySubCustomerListReq `json:"body,omitempty"`
}

Request Object

func (ListSubCustomersRequest) String

func (o ListSubCustomersRequest) String() string

type ListSubCustomersResponse

type ListSubCustomersResponse struct {

	// 客户信息列表。 具体请参见表1。
	CustomerInfos *[]CustomerInformation `json:"customer_infos,omitempty"`

	// 总记录数。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListSubCustomersResponse) String

func (o ListSubCustomersResponse) String() string

type ListSubcustomerMonthlyBillsRequest

type ListSubcustomerMonthlyBillsRequest struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId *string `json:"customer_id,omitempty"`

	// 消费时间。格式固定为YYYY-MM。示例:2018-08
	Cycle string `json:"cycle"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用[查询云服务类型列表](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0000001256679455.html)接口获取。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 计费模式。1:包年/包月3:按需
	ChargeMode string `json:"charge_mode"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每页个数。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 账单类型。0:消费1:退订2:华为核销
	BillType *string `json:"bill_type,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListSubcustomerMonthlyBillsRequest) String

type ListSubcustomerMonthlyBillsResponse

type ListSubcustomerMonthlyBillsResponse struct {

	// 账单记录,具体参考表2。
	BillSums *[]BillSumInfoV2 `json:"bill_sums,omitempty"`

	// 总记录数。
	Count *int32 `json:"count,omitempty"`

	// 货币编码。 CNY:人民币。
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListSubcustomerMonthlyBillsResponse) String

type ListUsageTypesRequest

type ListUsageTypesRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用[查询资源类型列表](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001256519451.html)接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListUsageTypesRequest) String

func (o ListUsageTypesRequest) String() string

type ListUsageTypesResponse

type ListUsageTypesResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 使用量类型列表,具体请参见表3。
	UsageTypes     *[]UsageType `json:"usage_types,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListUsageTypesResponse) String

func (o ListUsageTypesResponse) String() string

type MeasureUnitRest

type MeasureUnitRest struct {

	// 度量单位ID。 例如:10表示GB。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 度量单位的名称,根据查询的语言类型返回结果。 例如:GB。
	MeasureName *string `json:"measure_name,omitempty"`

	// 度量单位名称的英文缩写。 例如:度量单位名称“GB”的英文缩写为“GB”。
	Abbreviation *string `json:"abbreviation,omitempty"`

	// 度量类型。 1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量25:测试类型
	MeasureType *int32 `json:"measure_type,omitempty"`
}

func (MeasureUnitRest) String

func (o MeasureUnitRest) String() string

type MonthlyBillRecord

type MonthlyBillRecord struct {

	// 流水账单所在账期,格式为YYYY-MM。
	BillCycle *string `json:"bill_cycle,omitempty"`

	// 消费的客户账号ID。 如果是普通客户或者企业子客户查询消费记录,只能查询到客户自己的消费记录,且此处显示的是客户自己的客户ID。如果是企业主查询消费记录,可以查询到企业主以及企业子客户的消费记录,此处为消费的实际客户ID。如果是企业主自己的消费记录,则为企业主ID;如果是某个企业子客户的消费记录,则此处为企业子账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 企业项目标识(企业项目ID)。 default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目的名称。
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// 计费模式。 1:包年/包月3:按需10:预留实例
	ChargingMode *int32 `json:"charging_mode,omitempty"`

	// 消费时间。 计费模式为包年/包月和预留实例场景时为订单的支付时间。计费模式为按需场景时为话单的生/失效时间。
	ConsumeTime *string `json:"consume_time,omitempty"`

	// 交易时间,某条消费记录对应的扣费时间。
	TradeTime *string `json:"trade_time,omitempty"`

	// 服务商。 1:华为云2:云市场
	ProviderType *int32 `json:"provider_type,omitempty"`

	// 订单ID或交易ID,扣费维度的唯一标识。
	TradeId *string `json:"trade_id,omitempty"`

	// 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillType *int32 `json:"bill_type,omitempty"`

	// 支付状态。 1:已支付2:未结清3:未结算
	Status *int32 `json:"status,omitempty"`

	// 官网价。单位:元。  说明: official_amount = official_discount_amount + erase_amount + consume_amount
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 折扣金额。单位:元。
	OfficialDiscountAmount *float64 `json:"official_discount_amount,omitempty"`

	// 抹零金额。单位:元。
	EraseAmount *float64 `json:"erase_amount,omitempty"`

	// 应付金额,包括现金券和储值卡和代金券金额。单位:元。  说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_value_card_amount,bonus_amount,debt_amount,writeoff_amount的总和。
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	// 现金支付金额。单位:元.
	CashAmount *float64 `json:"cash_amount,omitempty"`

	// 信用额度支付金额。单位:元。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 代金券支付金额。单位:元。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券支付金额。单位:元。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 储值卡支付金额。单位:元。
	StoredValueCardAmount *float64 `json:"stored_value_card_amount,omitempty"`

	// 奖励金支付金额(奖励金已经下线,目前用于现网客户未使用完的奖励金)。单位:元。
	BonusAmount *float64 `json:"bonus_amount,omitempty"`

	// 欠费金额。单位:元。  说明: 对于月结客户,欠费金额即页面上的月度结算金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 欠费核销金额。单位:元。
	WriteoffAmount *float64 `json:"writeoff_amount,omitempty"`

	// 云服务区名称,例如:“华北-北京一”。具体请参见地区和终端节点对应云服务的“区域名称”列的值。
	RegionName *string `json:"region_name,omitempty"`
}

func (MonthlyBillRecord) String

func (o MonthlyBillRecord) String() string

type MonthlyBillRes

type MonthlyBillRes struct {

	// 资源详单数据所在账期,格式为YYYY-MM。 例如2020-01。
	Cycle *string `json:"cycle,omitempty"`

	// 消费日期,格式为YYYY-MM-DD。  说明: 当statistic_type=2时该字段才有值,否则返回null。
	BillDate *string `json:"bill_date,omitempty"`

	// 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillType *int32 `json:"bill_type,omitempty"`

	// 消费的客户账号ID。 如果是普通客户或者企业子客户查询消费记录,只能查询到客户自己的消费记录,且此处显示的是客户自己的客户ID。如果是企业主查询消费记录,可以查询到企业主以及企业子客户的消费记录,此处为消费的实际客户ID。如果是企业主自己的消费记录,则为企业主ID;如果是某个企业子客户的消费记录,则此处为企业子账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	Region *string `json:"region,omitempty"`

	// 云服务区名称,例如:“华北-北京一”。具体请参见地区和终端节点对应云服务的“区域名称”列的值。
	RegionName *string `json:"region_name,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_Type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	CloudServiceTypeName *string `json:"cloud_service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 资源实例ID。
	ResInstanceId *string `json:"res_instance_id,omitempty"`

	// 资源名称。客户在创建资源的时候,可以输入资源名称,有些资源也可以在管理资源时,修改资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 资源标签。客户在管理资源的时候,可以设置资源标签。
	ResourceTag *string `json:"resource_tag,omitempty"`

	// SKU编码,在账单中唯一标识一个资源的规格。
	SkuCode *string `json:"sku_code,omitempty"`

	// 企业项目标识(企业项目ID)。 default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目名称。
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// 计费模式。 1 : 包年/包月3:按需10:预留实例
	ChargeMode *int32 `json:"charge_mode,omitempty"`

	// 客户购买云服务类型的消费金额,包含代金券、现金券,精确到小数点后2位。  说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	// 现金支付金额。
	CashAmount *float64 `json:"cash_amount,omitempty"`

	// 信用额度支付金额。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 代金券支付金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券支付金额。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 储值卡支付金额。
	StoredCardAmount *float64 `json:"stored_card_amount,omitempty"`

	// 奖励金支付金额(用于现网客户未使用完的奖励金)。
	BonusAmount *float64 `json:"bonus_amount,omitempty"`

	// 欠费金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 欠费核销金额。
	AdjustmentAmount *float64 `json:"adjustment_amount,omitempty"`

	// 官网价。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 对应官网价折扣金额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 周期类型: 19:年20:月24:天25:小时5:一次性
	PeriodType *int32 `json:"period_type,omitempty"`
}

func (MonthlyBillRes) String

func (o MonthlyBillRes) String() string

type NewCustomerV2

type NewCustomerV2 struct {

	// 企业子账号登录名。
	CustomerName string `json:"customer_name"`

	// 企业管理员的手机号码。如果use_pri_mobile_phone取值为Y,则这个参数无效,否则必选。
	MobilePhone *string `json:"mobile_phone,omitempty"`

	// 是否使用企业主账号手机号码作为子账号手机号码: Y:是N:否(默认值) 当为Y时,mobile_phone输入无效。
	UsePriMobilePhone *string `json:"use_pri_mobile_phone,omitempty"`

	// 企业子账号的登录密码。
	Password string `json:"password"`

	// 验证码,只有输入企业子账号的手机号的情况下,才需要填写该字段。 具体请参见发送短信验证码。
	VerificationCode *string `json:"verification_code,omitempty"`
}

func (NewCustomerV2) String

func (o NewCustomerV2) String() string

type NvlCostAnalysedBillDetail

type NvlCostAnalysedBillDetail struct {

	// 查询分摊成本的月份。 格式为YYYY-MM,按照东八区截取。
	SharedMonth *string `json:"shared_month,omitempty"`

	// 账期。 格式:YYYY-MM。按照东八区截取。
	BillCycle *string `json:"bill_cycle,omitempty"`

	// 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillType *int32 `json:"bill_type,omitempty"`

	// 消费的客户账号ID。 如果是普通客户或者企业子查询消费记录,只能查询到自身的消费记录,则这个地方显示的是自身的客户ID。如果是企业主查询消费记录,可以查询到自身以及企业子的消费记录,这个地方是消费的实际客户ID,如果是企业主自身消费,为企业主ID,如果这条消费记录是某个企业子客户的消费,这个地方的ID是企业子账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 云服务区名称,例如:“华北-北京一”。具体请参见地区和终端节点对应云服务的“区域名称”列的值。
	RegionName *string `json:"region_name,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 费用对应的资源使用的开始时间,按需有效,包年/包月该字段保留。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 费用对应的资源使用的结束时间,按需有效,包年/包月该字段保留。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 资源标签。
	ResourceTag *string `json:"resource_tag,omitempty"`

	// 产品的规格描述。
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`

	// 企业项目标识(企业项目ID)。 default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目的名称。
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// 计费模式。 1:包年/包月3:按需10:预留实例
	ChargingMode *int32 `json:"charging_mode,omitempty"`

	// 订单ID。  说明: 包年/包月资源的使用记录才有该字段,按需资源则为空。
	OrderId *string `json:"order_id,omitempty"`

	// 周期类型。 19:年20:月24:天25:小时5:一次性
	PeriodType *int32 `json:"period_type,omitempty"`

	// 资源使用量的类型,您可以调用查询使用量类型列表接口获取。
	UsageType *string `json:"usage_type,omitempty"`

	// 资源的使用量。
	Usage *float64 `json:"usage,omitempty"`

	// 资源使用量的度量单位,您可以调用查询度量单位列表接口获取。
	UsageMeasureId *int32 `json:"usage_measure_id,omitempty"`

	// 套餐内使用量。
	FreeResourceUsage *float64 `json:"free_resource_usage,omitempty"`

	// 套餐内使用量的度量单位,您可以调用查询度量单位列表接口获取。
	FreeResourceMeasureId *int32 `json:"free_resource_measure_id,omitempty"`

	// 预留实例使用量。
	RiUsage *float64 `json:"ri_usage,omitempty"`

	// 预留实例使用量单位。
	RiUsageMeasureId *int32 `json:"ri_usage_measure_id,omitempty"`

	// 消费金额(应付金额)。 消费金额=期初已分摊金额+当月分摊金额+期末未分摊金额
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	// 期初已分摊金额。  说明: 包周期和预留实例预付时有效;计费类型为按需,预留实例为按时计费时该值为0。
	PastMonthsAmortizedAmount *float64 `json:"past_months_amortized_amount,omitempty"`

	// 当月分摊金额。 当月分摊金额=现金分摊金额+信用额度分摊金额+代金券分摊金额+现金券分摊金额+储值卡分摊金额+奖励金分摊金额
	CurrentMonthAmortizedAmount *float64 `json:"current_month_amortized_amount,omitempty"`

	// 期末未分摊金额。月度成本分摊时,当月以后还未分摊的金额。  说明: 包周期和预留实例预付时有效;计费类型为按需,预留实例为按时计费时该值为0。
	FutureMonthsAmortizedAmount *float64 `json:"future_months_amortized_amount,omitempty"`

	// 月度成本分摊时,当月已分摊金额中包含的现金金额。
	AmortizedCashAmount *float64 `json:"amortized_cash_amount,omitempty"`

	// 月度成本分摊时,当月已分摊金额中包含的信用额度分摊金额。
	AmortizedCreditAmount *float64 `json:"amortized_credit_amount,omitempty"`

	// 月度成本分摊时,当月已分摊金额中包含的代金券分摊金额。
	AmortizedCouponAmount *float64 `json:"amortized_coupon_amount,omitempty"`

	// 月度成本分摊时,当月已分摊金额中包含的现金券分摊金额。
	AmortizedFlexipurchaseCouponAmount *float64 `json:"amortized_flexipurchase_coupon_amount,omitempty"`

	// 月度成本分摊时,当月已分摊金额中包含的储值卡分摊金额。
	AmortizedStoredValueCardAmount *float64 `json:"amortized_stored_value_card_amount,omitempty"`

	// 月度成本分摊时,当月已分摊金额中包含的奖励金分摊金额(用于现网未清干净的奖励金)。
	AmortizedBonusAmount *float64 `json:"amortized_bonus_amount,omitempty"`

	// 该字段为预留字段
	SubServiceTypeCode *string `json:"sub_service_type_code,omitempty"`

	// 该字段为预留字段
	SubServiceTypeName *string `json:"sub_service_type_name,omitempty"`

	// 该字段为预留字段
	SubResourceTypeCode *string `json:"sub_resource_type_code,omitempty"`

	// 该字段为预留字段。
	SubResourceTypeName *string `json:"sub_resource_type_name,omitempty"`

	// 该字段为预留字段。
	SubResourceId *string `json:"sub_resource_id,omitempty"`

	// 该字段为预留字段。
	SubResourceName *string `json:"sub_resource_name,omitempty"`
}

func (NvlCostAnalysedBillDetail) String

func (o NvlCostAnalysedBillDetail) String() string

type OfficialWebsiteRatingResult

type OfficialWebsiteRatingResult struct {

	// 包年/包月产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 分期金额的官网价。  说明: 暂只支持IES产品。
	InstallmentOfficialWebsiteAmount *string `json:"installment_official_website_amount,omitempty"`

	// 分期付款的周期类型。 2:月  说明: 暂只支持IES产品。
	InstallmentPeriodType *int32 `json:"installment_period_type,omitempty"`

	// 价格度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 产品询价结果,具体参见表5。
	ProductRatingResults *[]PeriodProductOfficialRatingResult `json:"product_rating_results,omitempty"`
}

func (OfficialWebsiteRatingResult) String

type OptionalDiscountRatingResult

type OptionalDiscountRatingResult struct {

	// 折扣优惠ID。
	DiscountId *string `json:"discount_id,omitempty"`

	// 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。
	Amount *float64 `json:"amount,omitempty"`

	// 包年/包月产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 价格度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 折扣优惠类型。 合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣 伙伴授予折扣:607:合作伙伴授予折扣-折扣率
	DiscountType *int32 `json:"discount_type,omitempty"`

	// 折扣名称。
	DiscountName *string `json:"discount_name,omitempty"`

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

	// 产品询价结果,具体参见表5。
	ProductRatingResults *[]PeriodProductRatingResult `json:"product_rating_results,omitempty"`

	// 分期金额的官网价。  说明: 暂只支持IES产品。
	InstallmentOfficialWebsiteAmount *string `json:"installment_official_website_amount,omitempty"`

	// 分期金额的折扣价。  说明: 暂只支持IES产品。
	InstallmentOfficialDiscountAmount *string `json:"installment_official_discount_amount,omitempty"`

	// 分期金额的成交价。  说明: 分期金额的成交价=分期金额的官网价-分期金额的折扣价。暂只支持IES产品。
	InstallmentAmount *string `json:"installment_amount,omitempty"`

	// 分期付款的周期类型。 2:月  说明: 暂只支持IES产品。
	InstallmentPeriodType *int32 `json:"installment_period_type,omitempty"`
}

func (OptionalDiscountRatingResult) String

type OrderInstanceV2

type OrderInstanceV2 struct {

	// 标识要开通资源的内部ID,资源开通以后生成的ID为resource_id。
	Id *string `json:"id,omitempty"`

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源实例名。
	ResourceName *string `json:"resource_name,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。
	ResourceSpecCode *string `json:"resource_spec_code,omitempty"`

	// 资源项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 父资源ID。
	ParentResourceId *string `json:"parent_resource_id,omitempty"`

	// 是否是主资源。 0:非主资源1:主资源
	IsMainResource *int32 `json:"is_main_resource,omitempty"`

	// 资源状态。状态说明请参见资源状态说明。 2:使用中3:已关闭(页面不展示这个状态)4:已冻结5:已过期
	Status *int32 `json:"status,omitempty"`

	// 资源生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 资源过期时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 资源到期后的扣费策略: 1:到期转按需2:到期后自动删除(从生效中直接删除)3:到期后自动续费4:到期后冻结5:到期后删除(从保留期删除)  说明: 只有“3”表示该资源是自动续订,其他情况下,都是非自动续订下的到期策略。
	ExpirePolicy *int32 `json:"expire_policy,omitempty"`
}

func (OrderInstanceV2) String

func (o OrderInstanceV2) String() string

type OrderLineItemEntityV2

type OrderLineItemEntityV2 struct {

	// 订单项ID。
	OrderLineItemId *string `json:"order_line_item_id,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品规格描述。
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`

	// 周期类型。 0:天1:周2:月3:年4:小时5:一次性6:按需(预留)7:按用量报表使用(预留)
	PeriodType *int32 `json:"period_type,omitempty"`

	// 周期数量。  说明: 当订单为退订资源的订单时,参数取值为null。
	PeriodNum *int32 `json:"period_num,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 订购数量。
	SubscriptionNum *int32 `json:"subscription_num,omitempty"`

	// 订单优惠后金额(实付价格,不含券不含卡)。
	AmountAfterDiscount *float64 `json:"amount_after_discount,omitempty"`

	// 订单金额(官网价)。 退订订单中,该金额等于currencyAfterDiscount。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	AmountInfo *AmountInfomationV2 `json:"amount_info,omitempty"`

	// 货币编码。
	Currency *string `json:"currency,omitempty"`

	// 产品目录编码。
	CategoryCode *string `json:"category_code,omitempty"`

	// 产品归属的云服务类型编码。 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ProductOwnerService *string `json:"product_owner_service,omitempty"`

	// 商务归属的资源类型编码。 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	CommercialResource *string `json:"commercial_resource,omitempty"`
}

func (OrderLineItemEntityV2) String

func (o OrderLineItemEntityV2) String() string

type OrderLineItemV3

type OrderLineItemV3 struct {

	// 可使用相同折扣的订单项合并后的订单项ID列表。 相同产品、相同规格(对于线性产品)、相同最终价格(例如,严选产品改价)的订单项将进行合并。
	OrderLineItemIds []string `json:"order_line_item_ids"`

	// 订单可用折扣的模式 。 0:折扣1:一口价2:满减
	DiscountMode int32 `json:"discount_mode"`

	// 订单可用的折扣金额(即减免金额)。
	DiscountAmount float64 `json:"discount_amount"`

	// 订单可用的折扣比例。
	DiscountRatio float64 `json:"discount_ratio"`
}

func (OrderLineItemV3) String

func (o OrderLineItemV3) String() string

type OrderRefundInfoV2

type OrderRefundInfoV2 struct {

	// 该记录的ID。
	Id string `json:"id"`

	// 金额。 金额为负数,表示退订金额。金额为正数,表示已消费金额或收取的退订手续费。
	Amount float64 `json:"amount"`

	// 金额的度量单位。 1:元
	MeasureId string `json:"measure_id"`

	// 客户账号ID。
	CustomerId string `json:"customer_id"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode string `json:"resource_type_code"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode string `json:"service_type_code"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode string `json:"region_code"`

	// 退订金额、已消费金额或收取退订手续费对应的原订单ID。
	BaseOrderId *string `json:"base_order_id,omitempty"`
}

func (OrderRefundInfoV2) String

func (o OrderRefundInfoV2) String() string

type OrderV3

type OrderV3 struct {

	// 可使用折扣的订单ID。
	OrderId string `json:"order_id"`

	// 可使用折扣的订单项列表,具体参见表4。
	OrderLineItems []OrderLineItemV3 `json:"order_line_items"`
}

func (OrderV3) String

func (o OrderV3) String() string

type PayCustomerOrderReq

type PayCustomerOrderReq struct {

	// 订单编号。 取值为调用“查询订单列表”接口时响应消息中的“order_id”字段的值或调用“续订包年/包月资源”接口时响应消息“order_ids”中的订单ID。
	OrderId string `json:"order_id"`

	// 优惠券ID列表,目前仅支持传递一个优惠券ID。 请从“查询订单可用优惠券”接口的响应参数中获取。 具体参见表1。
	CouponInfos *[]CouponSimpleInfoOrderPay `json:"coupon_infos,omitempty"`

	// 折扣ID列表,目前仅支持传递一个折扣ID。 请从“查询订单可用折扣”接口的响应参数中获取。 具体参见表2。
	DiscountInfos *[]DiscountSimpleInfo `json:"discount_infos,omitempty"`
}

func (PayCustomerOrderReq) String

func (o PayCustomerOrderReq) String() string

type PayOrdersRequest

type PayOrdersRequest struct {
	Body *PayCustomerOrderReq `json:"body,omitempty"`
}

Request Object

func (PayOrdersRequest) String

func (o PayOrdersRequest) String() string

type PayOrdersResponse

type PayOrdersResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (PayOrdersResponse) String

func (o PayOrdersResponse) String() string

type PeriodProductInfo

type PeriodProductInfo struct {

	// ID标识,同一次询价中不能重复,用于标识返回询价结果和请求的映射关系。
	Id string `json:"id"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。
	CloudServiceType string `json:"cloud_service_type"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。 ResourceType是CloudServiceType中的一种资源,CloudServiceType由多种ResourceType组合提供。
	ResourceType string `json:"resource_type"`

	// 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP 云数据库:云数据库的资源规格信息,您可以调用查询数据库规格接口获取。 分布式缓存服务:分布式缓存服务的资源规格信息,您可以调用查询产品规格接口获取。
	ResourceSpec string `json:"resource_spec"`

	// 云服务区编码,例如:“cn-north-1”。
	Region string `json:"region"`

	// 可用区标识,例如:“cn-north-1a”。
	AvailableZone *string `json:"available_zone,omitempty"`

	// 资源容量大小,例如购买的卷大小或带宽大小。 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。
	ResourceSize *int32 `json:"resource_size,omitempty"`

	// 资源容量度量标识。 15:Mbps(购买带宽时使用)17:GB(购买云硬盘时使用)14:个 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。
	SizeMeasureId *int32 `json:"size_measure_id,omitempty"`

	// 订购包年/包月产品的周期类型。 0:天2:月3:年4:小时
	PeriodType int32 `json:"period_type"`

	// 订购包年/包月产品的周期数。
	PeriodNum int32 `json:"period_num"`

	// 订购包年/包月产品的数量。
	SubscriptionNum int32 `json:"subscription_num"`

	// 费用分期模式。 HALF_PAY:半付ZERO_PAY:零付NA:不支持费用分期模式  说明: 此参数不传则默认为空,效果等同于“NA:不支持费用分期模式”。暂只支持IES产品。
	FeeInstallmentMode *string `json:"fee_installment_mode,omitempty"`
}

func (PeriodProductInfo) String

func (o PeriodProductInfo) String() string

type PeriodProductOfficialRatingResult

type PeriodProductOfficialRatingResult struct {

	// ID标识,来源于请求中的ID。
	Id *string `json:"id,omitempty"`

	// 包年/包月产品的ID。
	ProductId *string `json:"product_id,omitempty"`

	// 包年/包月产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 价格度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 分期金额的官网价。  说明: 暂只支持IES产品。
	InstallmentOfficialWebsiteAmount *string `json:"installment_official_website_amount,omitempty"`

	// 分期付款的周期类型。 2:月  说明: 暂只支持IES产品。
	InstallmentPeriodType *int32 `json:"installment_period_type,omitempty"`
}

func (PeriodProductOfficialRatingResult) String

type PeriodProductRatingResult

type PeriodProductRatingResult struct {

	// ID标识,来源于请求中的ID。
	Id *string `json:"id,omitempty"`

	// 包年/包月产品的ID。
	ProductId *string `json:"product_id,omitempty"`

	// 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。
	Amount *float64 `json:"amount,omitempty"`

	// 包年/包月产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 价格度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 分期金额的官网价。  说明: 暂只支持IES产品。
	InstallmentOfficialWebsiteAmount *string `json:"installment_official_website_amount,omitempty"`

	// 分期金额的折扣价。  说明: 暂只支持IES产品。
	InstallmentOfficialDiscountAmount *string `json:"installment_official_discount_amount,omitempty"`

	// 分期金额的成交价。  说明: 分期金额的成交价=分期金额的官网价-分期金额的折扣价。暂只支持IES产品。
	InstallmentAmount *string `json:"installment_amount,omitempty"`

	// 分期付款的周期类型。 2:月  说明: 暂只支持IES产品。
	InstallmentPeriodType *int32 `json:"installment_period_type,omitempty"`
}

func (PeriodProductRatingResult) String

func (o PeriodProductRatingResult) String() string

type PeriodToOnDemandReq

type PeriodToOnDemandReq struct {

	// 设置或取消包年/包月资源到期转按需的操作。 SET_UP:设置CANCEL:取消
	Operation string `json:"operation"`

	// 资源ID。 您可以调用“查询客户包年/包月资源列表”接口获取资源ID。 此处只支持设置主资源ID,最多可设置100个资源ID。设置后,主资源及其对应的从资源将一起转为按需资源。 请根据“查询客户包年/包月资源列表”接口响应参数中的“is_main_resource”参数来标识资源是否为主资源。
	ResourceIds []string `json:"resource_ids"`
}

func (PeriodToOnDemandReq) String

func (o PeriodToOnDemandReq) String() string

type Province

type Province struct {

	// 省份的编码。
	Code string `json:"code"`

	// 省份的名称,根据请求的语言会传递回对应的语言的名称,目前仅支持中文。
	Name string `json:"name"`
}

func (Province) String

func (o Province) String() string

type QueryCouponQuotasReqExt

type QueryCouponQuotasReqExt struct {

	// 优惠券额度ID列表。
	QuotaIds *[]string `json:"quota_ids,omitempty"`

	// 优惠券额度状态列表。 0:正常3:失效(过期失效和人工设置失效)4:额度调整中(伙伴可以查看该额度,但不能使用该额度发放优惠券)5:冻结
	QuotaStatusList *[]int32 `json:"quota_status_list,omitempty"`

	// 优惠券额度的类型: 0:代金券额度1:现金券额度
	QuotaType *int32 `json:"quota_type,omitempty"`

	// 创建时间(开始)。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。 输入这个条件,会查询出创建时间大于这个时间的记录。
	CreateTimeBegin *string `json:"create_time_begin,omitempty"`

	// 创建时间(结束)。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。 输入这个条件,会查询出创建时间小于这个时间的记录。
	CreateTimeEnd *string `json:"create_time_end,omitempty"`

	// 生效时间(开始)。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。 输入这个条件,会查询出生效时间大于这个时间的记录。
	EffectiveTimeBegin *string `json:"effective_time_begin,omitempty"`

	// 生效时间(结束)。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。 输入这个条件,会查询出生效时间小于这个时间的记录。
	EffectiveTimeEnd *string `json:"effective_time_end,omitempty"`

	// 失效时间(开始)。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。 输入这个条件,会查询出失效时间大于这个时间的记录。
	ExpireTimeBegin *string `json:"expire_time_begin,omitempty"`

	// 失效时间(结束)。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。 输入这个条件,会查询出失效时间小于这个时间的记录。
	ExpireTimeEnd *string `json:"expire_time_end,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询记录数。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 精英服务商(二级经销商)ID。 华为云伙伴能力中心(一级经销商)查询精英服务商的优惠券额度时,需要携带该参数;否则只能查询自己的优惠券额度。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (QueryCouponQuotasReqExt) String

func (o QueryCouponQuotasReqExt) String() string

type QueryCustomerOnDemandResourcesReq

type QueryCustomerOnDemandResourcesReq struct {

	// 客户账号ID。 您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源ID批量查询。 用于查询指定资源ID对应的资源。 最多支持同时传递50个ID的列表。
	ResourceIds *[]string `json:"resource_ids,omitempty"`

	// 生效时间的开始时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	EffectiveTimeBegin *string `json:"effective_time_begin,omitempty"`

	// 生效时间的结束时间 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	EffectiveTimeEnd *string `json:"effective_time_end,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 一次查询的条数,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 资源状态: 1:正常(已开通)2:宽限期3:冻结中4:变更中5:正在关闭6:已关闭
	Status *int32 `json:"status,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。如果需要查询精英服务商子客户的按需资源列表,必须携带该字段,否则只能查询自己的子客户按需资源。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (QueryCustomerOnDemandResourcesReq) String

type QueryCustomersBalancesReq

type QueryCustomersBalancesReq struct {

	// 客户信息列表。 具体请参见表1。
	CustomerInfos []CustomerInfoV2 `json:"customer_infos"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 华为云伙伴能力中心(一级经销商)查询精英服务商(二级经销商)子客户的账户余额时,需要携带该参数。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (QueryCustomersBalancesReq) String

func (o QueryCustomersBalancesReq) String() string

type QueryIndirectPartnersReq

type QueryIndirectPartnersReq struct {

	// 精英服务商伙伴的账号名。
	AccountName *string `json:"account_name,omitempty"`

	// 精英服务商关联华为云伙伴能力中心的开始时间。 UTC时间(包括时区),比如2016-03-28T00:00:00Z
	AssociatedOnBegin *string `json:"associated_on_begin,omitempty"`

	// 精英服务商关联华为云伙伴能力中心的结束时间。 UTC时间(包括时区),比如2016-03-28T00:00:00Z
	AssociatedOnEnd *string `json:"associated_on_end,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (QueryIndirectPartnersReq) String

func (o QueryIndirectPartnersReq) String() string

type QueryResRecordsDetailReq

type QueryResRecordsDetailReq struct {

	// 查询的资源详单所在账期,格式为YYYY-MM。 示例:2019-01。  说明: 不支持2019年1月份之前的资源详单。
	Cycle string `json:"cycle"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceType *string `json:"resource_type,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	Region *string `json:"region,omitempty"`

	// 资源实例ID。
	ResInstanceId *string `json:"res_instance_id,omitempty"`

	// 计费模式: 1 : 包年/包月3:按需10:预留实例
	ChargeMode *int32 `json:"charge_mode,omitempty"`

	// 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillType *int32 `json:"bill_type,omitempty"`

	// 企业项目标识(企业项目ID)。 default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 返回是否包含应付金额为0的记录。 true: 包含false: 不包含
	IncludeZeroRecord *bool `json:"include_zero_record,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 页面大小。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 查询方式。 oneself:客户自己sub_customer:企业子客户all:客户自己和企业子客户 默认为all,如果没有企业子客户,all的时候也是查询客户自己的数据。
	Method *string `json:"method,omitempty"`

	// 企业子账号ID。  说明: 如果method取值不为sub_customer,则该参数无效。如果method取值为sub_customer,则该参数不能为空。
	SubCustomerId *string `json:"sub_customer_id,omitempty"`

	// 统计类型。默认值为1。 1:按账期2:按天
	StatisticType *int32 `json:"statistic_type,omitempty"`
}

func (QueryResRecordsDetailReq) String

func (o QueryResRecordsDetailReq) String() string

type QueryResourcesReq

type QueryResourcesReq struct {

	// 资源ID列表。 查询指定资源ID的资源(当only_main_resource=0时,查询指定资源及其附属资源)。最大支持50个ID同时作为条件查询,多个ID以英文逗号分隔。  说明: 资源ID是指开通资源以后,云服务针对该资源分配的标志,譬如云主机ECS的资源ID是server_id。
	ResourceIds *[]string `json:"resource_ids,omitempty"`

	// 订单号。查询指定订单下的资源。  说明: 使用特殊字符进行查询的时候,请注意进行URL编码转换,如“%”的转码应为“%25”。
	OrderId *string `json:"order_id,omitempty"`

	// 是否只查询主资源,该参数对于请求参数是子资源ID的时候无效,如果resource_ids是子资源ID,只能查询自己。 0:查询主资源及附属资源。1:只查询主资源。 默认值为0。  说明: 主资源是指有关联的几个资源中,处于主导位置的资源。 对于ECS而言,虚拟机VM是主资源,磁盘EVS是辅资源。对于VPC而言,共享带宽的情况下,带宽为主资源,对应的从资源为弹性IP(可能包含多个IP);独享带宽的情况下,弹性IP为主资源,对应的从资源为带宽。
	OnlyMainResource *int32 `json:"only_main_resource,omitempty"`

	// 资源状态。 查询指定状态的资源。多个状态以英文逗号分隔。 2:使用中4:已冻结5:已过期
	StatusList *[]int32 `json:"status_list,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的条数。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 查询指定时间段内失效的资源列表,时间段的起始时间,UTC时间。
	ExpireTimeBegin *string `json:"expire_time_begin,omitempty"`

	// 查询指定时间段内失效的资源列表,时间段的结束时间,UTC时间。
	ExpireTimeEnd *string `json:"expire_time_end,omitempty"`
}

func (QueryResourcesReq) String

func (o QueryResourcesReq) String() string

type QuerySubCustomerListReq

type QuerySubCustomerListReq struct {

	// 客户登录名称(如果客户创建了IAM用户,此处需要填写主账号登录名称。关于主账号和IAM用户的具体介绍请参见身份管理中“账号”和“IAM用户”的描述)。 支持模糊查询。
	AccountName *string `json:"account_name,omitempty"`

	// 客户的实名认证名称,支持模糊查询。
	Customer *string `json:"customer,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的客户数量。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 标签,支持模糊查找。
	Label *string `json:"label,omitempty"`

	// 关联类型: 1:顾问销售2:代售
	AssociationType *string `json:"association_type,omitempty"`

	// 关联时间区间段开始,UTC时间。 格式:YYYY-MM-DD'T'hh:mm:ss'Z',例如“2019-05-06T08:05:01Z”。
	AssociatedOnBegin *string `json:"associated_on_begin,omitempty"`

	// 关联时间区间段结束,UTC时间。 格式:YYYY-MM-DD'T'hh:mm:ss'Z',例如“2019-05-06T08:05:01Z”。
	AssociatedOnEnd *string `json:"associated_on_end,omitempty"`

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id,或者可以从创建客户接口的响应获取domain_id。
	CustomerId *string `json:"customer_id,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。如果需要查询精英服务商伙伴的子客户列表,必须携带该字段。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (QuerySubCustomerListReq) String

func (o QuerySubCustomerListReq) String() string

type QuotaLimitInfo

type QuotaLimitInfo struct {

	// 属性key值。
	LimitKey *string `json:"limit_key,omitempty"`

	// 属性值,具体参见表3。
	LimitValues *[]LimitValue `json:"limit_values,omitempty"`
}

func (QuotaLimitInfo) String

func (o QuotaLimitInfo) String() string

type QuotaReclaim

type QuotaReclaim struct {

	// 被回收的精英服务商的代金券额度ID。
	QuotaId *string `json:"quota_id,omitempty"`

	// 被回收额度后的代金券额度余额。单位:元。
	QuotaBalance *float64 `json:"quota_balance,omitempty"`
}

func (QuotaReclaim) String

func (o QuotaReclaim) String() string

type QuotaRecord

type QuotaRecord struct {

	// 记录ID。
	Id *string `json:"id,omitempty"`

	// 操作员的账号名称。
	Operator *string `json:"operator,omitempty"`

	// 操作类型。 10:发放额度11:回收额度
	OperationType *string `json:"operation_type,omitempty"`

	// 精英服务商的代金券额度ID。 即华为云伙伴能力中心给精英服务商发放代金券额度时,产生的精英服务商的代金券额度ID,或者从精英服务商回收代金券额度时,精英服务商的代金券额度ID。
	QuotaId *string `json:"quota_id,omitempty"`

	// 父额度ID。 这即华为云伙伴能力中心给精英服务商发放代金券额度时,华为云伙伴能力中心的额度ID,或者从精英服务商回收代金券额度时,回收的华为云伙伴能力中心的额度ID。
	ParentQuotaId *string `json:"parent_quota_id,omitempty"`

	// 发放回收的金额。 取值大于0且精确到小数点后2位,单位:元。
	Amount *float64 `json:"amount,omitempty"`

	// 操作时间,UTC时间,UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	OperationTime *string `json:"operation_time,omitempty"`

	// 操作结果。 0:成功-1:失败
	Result *string `json:"result,omitempty"`

	// 精英服务商的账号名。
	IndirectPartnerAccountName *string `json:"indirect_partner_account_name,omitempty"`

	// 精英服务商ID。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 精英服务商的公司名称。
	IndirectPartnerName *string `json:"indirect_partner_name,omitempty"`

	// 备注。
	Remark *string `json:"remark,omitempty"`
}

func (QuotaRecord) String

func (o QuotaRecord) String() string

type QuotaSimpleInfo

type QuotaSimpleInfo struct {

	// 精英服务商ID。
	Id string `json:"id"`

	// 分配给精英服务商的代金券额度ID。
	QuotaId string `json:"quota_id"`
}

func (QuotaSimpleInfo) String

func (o QuotaSimpleInfo) String() string

type RateOnDemandReq

type RateOnDemandReq struct {

	// 项目ID。  说明: 使用客户Token,可以调用[通过assume_role方式获取用户token](https://support.huaweicloud.com/api-iam/iam_30_0003.html)接口获取“regionId”的取值对应的“project id”。具体请参见[如何将合作伙伴Token置换为客户Token](https://support.huaweicloud.com/bpconsole_faq/bpconsole_apifaq_00001.html)的步骤2。IAM子用户调用此接口,需要IAM主账号授权,具体请参考[创建用户组并授权](https://support.huaweicloud.com/usermanual-iam/iam_03_0001.html)。
	ProjectId string `json:"project_id"`

	// 查询价格结果的精度模式。 0:询价结果默认精度截取,即最长保留到元后6位小数点,如0.000001元1:询价结果保留10位精度,即最长保留到元后10位小数点,如1.0000000001元  说明: 如果询价结果只到元后2位或者3位,那么价格也只到元后2位或者3位,不管传0或者传1都一样,只有询价结果到了小数点后面6位以上,传0和传1才有区别。
	InquiryPrecision *int32 `json:"inquiry_precision,omitempty"`

	// 产品信息列表,询价时要询价产品的信息的列表,具体参见表1。
	ProductInfos []DemandProductInfo `json:"product_infos"`
}

func (RateOnDemandReq) String

func (o RateOnDemandReq) String() string

type RateOnPeriodReq

type RateOnPeriodReq struct {

	// 项目ID。  说明: 获取方法: 步骤1:调用IAM获取委托Token接口,获取客户Token。步骤2:参见如何将合作伙伴Token置换为客户Token的步骤2,获取项目ID。IAM子用户调用此接口,需要IAM主账号授权,具体请参考创建用户组并授权。
	ProjectId string `json:"project_id"`

	// 产品信息列表,询价时要询价产品的信息的列表,具体参见表1。
	ProductInfos []PeriodProductInfo `json:"product_infos"`
}

func (RateOnPeriodReq) String

func (o RateOnPeriodReq) String() string

type ReclaimCouponQuotasReq

type ReclaimCouponQuotasReq struct {

	// 被回收的精英服务商的代金券额度ID。获取方法请参见查询优惠券额度。
	QuotaIds []string `json:"quota_ids"`

	// 回收时的备注。
	Remark *string `json:"remark,omitempty"`
}

func (ReclaimCouponQuotasReq) String

func (o ReclaimCouponQuotasReq) String() string

type ReclaimCouponQuotasRequest

type ReclaimCouponQuotasRequest struct {
	Body *ReclaimCouponQuotasReq `json:"body,omitempty"`
}

Request Object

func (ReclaimCouponQuotasRequest) String

type ReclaimCouponQuotasResponse

type ReclaimCouponQuotasResponse struct {

	// 回收失败的精英服务商额度信息,具体参见表1,只有HTTP STATUS 200的时候才有这个结构体。
	ErrorDetails *[]ErrorDetail `json:"error_details,omitempty"`

	// 回收成功的精英服务商额度信息,具体参见表2,只有HTTP STATUS 200的时候才有这个结构体。
	SimpleQuotaInfos *[]QuotaReclaim `json:"simple_quota_infos,omitempty"`
	HttpStatusCode   int             `json:"-"`
}

Response Object

func (ReclaimCouponQuotasResponse) String

type ReclaimIndirectPartnerAccountReq

type ReclaimIndirectPartnerAccountReq struct {

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。
	IndirectPartnerId string `json:"indirect_partner_id"`

	// 回收金额。 华为云伙伴能力中心回收的精英服务商的账户金额。  说明: 回收金额不能大于精英服务商的账户余额。 单位:元。取值大于0且精确到小数点后2位。
	Amount float64 `json:"amount"`
}

func (ReclaimIndirectPartnerAccountReq) String

type ReclaimIndirectPartnerAccountRequest

type ReclaimIndirectPartnerAccountRequest struct {
	Body *ReclaimIndirectPartnerAccountReq `json:"body,omitempty"`
}

Request Object

func (ReclaimIndirectPartnerAccountRequest) String

type ReclaimIndirectPartnerAccountResponse

type ReclaimIndirectPartnerAccountResponse struct {

	// 事务流水ID,只有成功响应才会返回。
	TransId        *string `json:"trans_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ReclaimIndirectPartnerAccountResponse) String

type ReclaimPartnerCouponsReq

type ReclaimPartnerCouponsReq struct {

	// 待回收的代金券ID。 请从“发放优惠券”或“查询已发放的优惠券”接口的响应参数中获取。
	CouponId string `json:"coupon_id"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 精英服务商回收给子客户发放的优惠券时,需要携带该字段。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (ReclaimPartnerCouponsReq) String

func (o ReclaimPartnerCouponsReq) String() string

type ReclaimPartnerCouponsRequest

type ReclaimPartnerCouponsRequest struct {
	Body *ReclaimPartnerCouponsReq `json:"body,omitempty"`
}

Request Object

func (ReclaimPartnerCouponsRequest) String

type ReclaimPartnerCouponsResponse

type ReclaimPartnerCouponsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ReclaimPartnerCouponsResponse) String

type ReclaimSubEnterpriseAmountRequest

type ReclaimSubEnterpriseAmountRequest struct {
	Body *RetrieveEnterpriseMultiAccountReq `json:"body,omitempty"`
}

Request Object

func (ReclaimSubEnterpriseAmountRequest) String

type ReclaimSubEnterpriseAmountResponse

type ReclaimSubEnterpriseAmountResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ReclaimSubEnterpriseAmountResponse) String

type ReclaimToPartnerAccountBalancesReq

type ReclaimToPartnerAccountBalancesReq struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 回收的金额。 单位:元。取值大于0且精确到小数点后2位。
	Amount float64 `json:"amount"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 华为云伙伴能力中心(一级经销商)回收精英服务商(二级经销商)的子客户账户余额时,需携带此参数;否则只能回收自己的子客户账户余额。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (ReclaimToPartnerAccountBalancesReq) String

type ReclaimToPartnerAccountRequest

type ReclaimToPartnerAccountRequest struct {
	Body *ReclaimToPartnerAccountBalancesReq `json:"body,omitempty"`
}

Request Object

func (ReclaimToPartnerAccountRequest) String

type ReclaimToPartnerAccountResponse

type ReclaimToPartnerAccountResponse struct {

	// 事务流水ID,只有成功响应才会返回。
	TransId        *string `json:"trans_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ReclaimToPartnerAccountResponse) String

type RenewalResourcesReq

type RenewalResourcesReq struct {

	// 资源ID列表。 只支持传入主资源ID,最多100个资源ID。 哪些资源是主资源请根据“查询客户包年/包月资源列表”接口响应参数中的“is_main_resource”来标识。
	ResourceIds []string `json:"resource_ids"`

	// 周期类型: 2:月3:年
	PeriodType int32 `json:"period_type"`

	// 周期数目: 如果是月,目前支持1-11如果是年,目前支持1-3
	PeriodNum int32 `json:"period_num"`

	// 到期策略: 1:转按需2:自动退订3:自动续订
	ExpirePolicy int32 `json:"expire_policy"`

	// 是否自动支付。 0:否1:是 不填写的话,默认值是0,不自动支付。
	IsAutoPay *int32 `json:"is_auto_pay,omitempty"`
}

func (RenewalResourcesReq) String

func (o RenewalResourcesReq) String() string

type RenewalResourcesRequest

type RenewalResourcesRequest struct {
	Body *RenewalResourcesReq `json:"body,omitempty"`
}

Request Object

func (RenewalResourcesRequest) String

func (o RenewalResourcesRequest) String() string

type RenewalResourcesResponse

type RenewalResourcesResponse struct {

	// 续订资源生成的订单ID的列表。
	OrderIds       *[]string `json:"order_ids,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (RenewalResourcesResponse) String

func (o RenewalResourcesResponse) String() string

type ResFeeRecordV2

type ResFeeRecordV2 struct {

	// 资源消费记录的日期。 格式:YYYY-MM-DD。按照东八区截取。
	BillDate *string `json:"bill_date,omitempty"`

	// 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更
	BillType *int32 `json:"bill_type,omitempty"`

	// 消费的客户账号ID。 如果是普通客户或者企业子查询消费记录,只能查询到自身的消费记录,则这个地方显示的是自身的客户ID如果是企业主查询消费记录,可以查询到自身以及企业子的消费记录,这个地方是消费的实际客户ID,如果是企业主自身消费,为企业主ID,如果这条消费记录是某个企业子客户的消费,这个地方的ID是企业子账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	Region *string `json:"region,omitempty"`

	// 云服务区名称,例如:“华北-北京一”。具体请参见地区和终端节点对应云服务的“区域名称”列的值。
	RegionName *string `json:"region_name,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceType *string `json:"resource_type,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	CloudServiceTypeName *string `json:"cloud_service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 费用对应的资源使用的开始时间,按需有效,包年/包月该字段保留。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 费用对应的资源使用的结束时间,按需有效,包年/包月该字段保留。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 资源标签。
	ResourceTag *string `json:"resource_tag,omitempty"`

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品名称。
	ProductName *string `json:"product_name,omitempty"`

	// 产品的规格描述。
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`

	// SKU编码,在账单中唯一标识一个资源的规格。
	SkuCode *string `json:"sku_code,omitempty"`

	// 产品的实例大小,仅线性产品有效。  说明: 线性产品是指订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小规格。
	SpecSize *float64 `json:"spec_size,omitempty"`

	// 产品实例大小的单位,仅线性产品有该字段。 您可以调用查询度量单位列表接口获取。
	SpecSizeMeasureId *int32 `json:"spec_size_measure_id,omitempty"`

	// 订单ID或交易ID,扣费维度的唯一标识。
	TradeId *string `json:"trade_id,omitempty"`

	// 交易时间。
	TradeTime *string `json:"trade_time,omitempty"`

	// 企业项目标识(企业项目ID)。 default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目的名称。
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// 计费模式。 1:包年/包月3:按需10:预留实例
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 订单ID。  说明: 包年/包月资源的使用记录才有该字段,按需资源则为空。
	OrderId *string `json:"order_id,omitempty"`

	// 周期类型: 19:年20:月24:天25:小时5:一次性
	PeriodType *string `json:"period_type,omitempty"`

	// 资源使用量的类型,您可以调用查询使用量类型列表接口获取。
	UsageType *string `json:"usage_type,omitempty"`

	// 资源的使用量。
	Usage *float64 `json:"usage,omitempty"`

	// 资源使用量的度量单位,您可以调用查询度量单位列表接口获取。
	UsageMeasureId *int32 `json:"usage_measure_id,omitempty"`

	// 套餐内使用量。
	FreeResourceUsage *float64 `json:"free_resource_usage,omitempty"`

	// 套餐内使用量的度量单位,您可以调用查询度量单位列表接口获取。
	FreeResourceMeasureId *int32 `json:"free_resource_measure_id,omitempty"`

	// 预留实例使用量。
	RiUsage *float64 `json:"ri_usage,omitempty"`

	// 预留实例使用量单位。
	RiUsageMeasureId *int32 `json:"ri_usage_measure_id,omitempty"`

	// 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档
	UnitPrice *float64 `json:"unit_price,omitempty"`

	// 产品的单价单位。 线性产品的单价单位为“元/{线性单位}/月”或“元/{线性单位}/小时”等。非线性产品的单价单位为“元/月”或“元/小时”等。  说明: “线性单位”为线性产品(即订购时需要指定大小的产品)的大小的单位,比如硬盘的线性单位为GB,带宽的线性单位为Mbps。
	Unit *string `json:"unit,omitempty"`

	// 官网价,华为云商品在官网上未叠加应用商务折扣、促销折扣等优惠的销售价格。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 优惠金额,用户使用云服务享受折扣优惠如商务折扣、伙伴授予折扣以及促销优惠等减免的金额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 应付金额,用户使用云服务享受折扣优惠后需要支付的费用金额,包括现金券和储值卡和代金券金额,精确到小数点后2位。  说明: amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。
	Amount *float64 `json:"amount,omitempty"`

	// 现金支付金额。
	CashAmount *float64 `json:"cash_amount,omitempty"`

	// 信用额度支付金额。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 代金券支付金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券支付金额。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 储值卡支付金额。
	StoredCardAmount *float64 `json:"stored_card_amount,omitempty"`

	// 奖励金支付金额(用于现网客户未使用完的奖励金)。
	BonusAmount *float64 `json:"bonus_amount,omitempty"`

	// 欠费金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 欠费核销金额。
	AdjustmentAmount *float64 `json:"adjustment_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (ResFeeRecordV2) String

func (o ResFeeRecordV2) String() string

type ResourceBasicInfo

type ResourceBasicInfo struct {

	// 资源类型编码。例如:hws.resource.type.general。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源类型归属的服务类型编码。例如:hws.service.type.offline。
	ProductOwnerService *string `json:"product_owner_service,omitempty"`

	// 资源类型名称。例如:通用规格。
	Name *string `json:"name,omitempty"`

	// 资源类型描述。
	Description *string `json:"description,omitempty"`
}

func (ResourceBasicInfo) String

func (o ResourceBasicInfo) String() string

type ResourceTypes added in v0.0.83

type ResourceTypes struct {

	// 资源类型的编码。例如ECS的VM为“hws.resource.type.vm”。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源类型的名称。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 资源类型的描述。
	ResourceTypeDesc *string `json:"resource_type_desc,omitempty"`

	// 资源类型归属的服务类型编码。例如:hws.service.type.offline。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`
}

func (ResourceTypes) String added in v0.0.83

func (o ResourceTypes) String() string

type RetrieveAmountInfoV2

type RetrieveAmountInfoV2 struct {

	// 可回收的金额。
	AvailRetrieveAmount *float64 `json:"avail_retrieve_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 CNY:人民币
	Currency *string `json:"currency,omitempty"`

	// 账户余额(仅balance_type=信用账户时才有这个字段)。
	Amount *float64 `json:"amount,omitempty"`

	// 信用额度(仅balance_type=信用账户时才有这个字段)。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 信用额度过期时间。 UTC时间,格式为:2016-03-28T14:45:38Z。 如果查询信用账户可回收余额的查询结果没有失效时间,表示永久有效。
	ExpireTime *string `json:"expire_time,omitempty"`
}

func (RetrieveAmountInfoV2) String

func (o RetrieveAmountInfoV2) String() string

type RetrieveEnterpriseMultiAccountReq

type RetrieveEnterpriseMultiAccountReq struct {

	// 企业子账号的客户ID。您可以调用查询企业子账号列表接口,获取响应参数“id”的返回值。
	CustomerId string `json:"customer_id"`

	// 总回收金额。 金额单位为货币标准单位,如人民币则单位为元。取值大于0且精确到小数点后2位。
	Amount string `json:"amount"`

	// 交易序列号,用于防止重复提交。 如果接口调用方不传,则企业管理微服务后台生成如果接口调用方传入,则请采用UUID保证全局唯一
	TransId *string `json:"trans_id,omitempty"`

	// 账户类型: BALANCE_TYPE_DEBIT:余额账户(默认)BALANCE_TYPE_CREDIT:信用账户
	BalanceType *string `json:"balance_type,omitempty"`

	// 账户到期时间,UTC时间,格式为:2016-03-28T14:45:38Z。 暂只对信用账户有效,用于限制针对有效期到期时间等于该时间的信用账户余额进行回收。如果查询信用账户可回收余额的查询结果没有失效时间,表示永久有效,对于这种账本回收的情况无需填写。
	ExpireTime *string `json:"expire_time,omitempty"`
}

func (RetrieveEnterpriseMultiAccountReq) String

type SendSmVerificationCodeReq

type SendSmVerificationCodeReq struct {

	// 接受短信验证码的手机号码。
	MobilePhone string `json:"mobile_phone"`

	// 超时时间,不指定时默认为10分钟。 单位:分钟
	Timeout *int32 `json:"timeout,omitempty"`

	// 发送的短信的语言。 zh-cn: 中文en-us: 英语 不设置默认为偏好设置的默认语言。
	Language *string `json:"language,omitempty"`

	// 短信发送模板中的变量,具体参见表1。
	SmTemplateArgs *[]TemplateArgs `json:"sm_template_args,omitempty"`
}

func (SendSmVerificationCodeReq) String

func (o SendSmVerificationCodeReq) String() string

type SendSmsVerificationCodeRequest

type SendSmsVerificationCodeRequest struct {
	Body *SendSmVerificationCodeReq `json:"body,omitempty"`
}

Request Object

func (SendSmsVerificationCodeRequest) String

type SendSmsVerificationCodeResponse

type SendSmsVerificationCodeResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (SendSmsVerificationCodeResponse) String

type SendVerificationCodeV2Req

type SendVerificationCodeV2Req struct {

	// 发送验证码的类型: 1:发送短信验证码
	ReceiverType int32 `json:"receiver_type"`

	// 发送验证码的超时时间。 如果不填的话,采用系统默认超时时间5分钟。 单位:分钟
	Timeout *int32 `json:"timeout,omitempty"`

	// 指定发送验证码的手机号。 目前系统只支持中国手机号。 示例:13XXXXXXXXX
	MobilePhone *string `json:"mobile_phone,omitempty"`

	// 根据该参数的取值选择发送短信验证码的语言。 zh-cn:中文en-us:英文
	Lang *string `json:"lang,omitempty"`

	// 验证码使用的场景,目前支持如下场景: 29:注册场景18:个人银行卡实名认证场景 不填写默认为29。
	Scene *int32 `json:"scene,omitempty"`

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。 如果scene=18的时候必填。
	CustomerId *string `json:"customer_id,omitempty"`
}

func (SendVerificationCodeV2Req) String

func (o SendVerificationCodeV2Req) String() string

type SendVerificationMessageCodeRequest

type SendVerificationMessageCodeRequest struct {
	Body *SendVerificationCodeV2Req `json:"body,omitempty"`
}

Request Object

func (SendVerificationMessageCodeRequest) String

type SendVerificationMessageCodeResponse

type SendVerificationMessageCodeResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (SendVerificationMessageCodeResponse) String

type ServiceResourceInfo

type ServiceResourceInfo struct {
	BasicInfo *ResourceBasicInfo `json:"basic_info,omitempty"`
}

func (ServiceResourceInfo) String

func (o ServiceResourceInfo) String() string

type ServiceTypes added in v0.0.83

type ServiceTypes struct {

	// 云服务类型的名称。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 云服务类型的编码。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型的缩写。
	Abbreviation *string `json:"abbreviation,omitempty"`
}

func (ServiceTypes) String added in v0.0.83

func (o ServiceTypes) String() string

type ShowCustomerAccountBalancesRequest

type ShowCustomerAccountBalancesRequest struct {
}

Request Object

func (ShowCustomerAccountBalancesRequest) String

type ShowCustomerAccountBalancesResponse

type ShowCustomerAccountBalancesResponse struct {

	// 账户余额列表。 具体请参见表1。
	AccountBalances *[]AccountBalanceV3 `json:"account_balances,omitempty"`

	// 欠款总金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 度量单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 CNY:人民币。
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowCustomerAccountBalancesResponse) String

type ShowCustomerMonthlySumRequest

type ShowCustomerMonthlySumRequest struct {

	// 查询消费汇总数据所在的账期,格式为YYYY-MM。
	BillCycle string `json:"bill_cycle"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用[查询云服务类型列表](https://support.huaweicloud.com/api-oce/zh-cn_topic_0000001256679455.html)接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 企业项目标识(企业项目ID)。default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 查询方式。oneself:自身sub_customer:企业子客户all:自己和企业子客户默认为all,如果没有企业子客户,all的时候也是查询自己的。
	Method *string `json:"method,omitempty"`

	// 企业子客户的账号ID。 说明: 如果method取值不为sub_customer,则该参数无效。如果method取值为sub_customer,则该参数不能为空。
	SubCustomerId *string `json:"sub_customer_id,omitempty"`
}

Request Object

func (ShowCustomerMonthlySumRequest) String

type ShowCustomerMonthlySumResponse

type ShowCustomerMonthlySumResponse struct {

	// 总条数,必须大于等于0。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 账单记录,具体参考表2。
	BillSums *[]BillSumRecordInfoV2 `json:"bill_sums,omitempty"`

	// 总金额(包含退订)。
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	// 总欠费金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 代金券金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券金额,预留。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 储值卡金额,预留。
	StoredValueCardAmount *float64 `json:"stored_value_card_amount,omitempty"`

	// 现金账户金额。
	CashAmount *float64 `json:"cash_amount,omitempty"`

	// 信用账户金额。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 欠费核销金额。
	WriteoffAmount *float64 `json:"writeoff_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 CNY:人民币。
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowCustomerMonthlySumResponse) String

type ShowCustomerOrderDetailsRequest

type ShowCustomerOrderDetailsRequest struct {

	// 语言:中文:zh_CN 英文:en_US 缺省为zh_CN
	XLanguage *string `json:"X-Language,omitempty"`

	// 订单ID。
	OrderId string `json:"order_id"`

	// 每页大小。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 精英服务商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。华为云伙伴能力中心(一级经销商)查询精英服务商的客户订单详情时,需要携带该参数;否则只能查询自己客户的订单详情。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ShowCustomerOrderDetailsRequest) String

type ShowCustomerOrderDetailsResponse

type ShowCustomerOrderDetailsResponse struct {

	// 订单项个数。
	TotalCount *int32 `json:"total_count,omitempty"`

	OrderInfo *CustomerOrderV3 `json:"order_info,omitempty"`

	// 订单对应的订单项。 具体请参见表5。
	OrderLineItems *[]OrderLineItemEntityV2 `json:"order_line_items,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (ShowCustomerOrderDetailsResponse) String

type ShowMultiAccountTransferAmountRequest

type ShowMultiAccountTransferAmountRequest struct {

	// 账户类型:BALANCE_TYPE_DEBIT:余额账户BALANCE_TYPE_CREDIT:信用账户
	BalanceType string `json:"balance_type"`

	// 偏移量,默认值为0。只有信用账户有效。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询条数,默认值为10。只有信用账户有效。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ShowMultiAccountTransferAmountRequest) String

type ShowMultiAccountTransferAmountResponse

type ShowMultiAccountTransferAmountResponse struct {

	// 记录条数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 可拨款余额信息,如果是余额账户,只会有一条记录。 具体请参见表2。
	AmountInfos    *[]TransferAmountInfoV2 `json:"amount_infos,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (ShowMultiAccountTransferAmountResponse) String

type ShowRealnameAuthenticationReviewResultRequest

type ShowRealnameAuthenticationReviewResultRequest struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`
}

Request Object

func (ShowRealnameAuthenticationReviewResultRequest) String

type ShowRealnameAuthenticationReviewResultResponse

type ShowRealnameAuthenticationReviewResultResponse struct {

	// 实名认证审核结果,只有状态码为200并且已经提交过实名认证请求才返回: 0:审核中1:不通过2:通过
	ReviewResult *int32 `json:"review_result,omitempty"`

	// 审批意见,只有状态码为200并且审核不通过才返回。
	Opinion        *string `json:"opinion,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowRealnameAuthenticationReviewResultResponse) String

type ShowRefundOrderDetailsRequest

type ShowRefundOrderDetailsRequest struct {

	// 退订订单或者降配订单的ID。
	OrderId string `json:"order_id"`
}

Request Object

func (ShowRefundOrderDetailsRequest) String

type ShowRefundOrderDetailsResponse

type ShowRefundOrderDetailsResponse struct {

	// 查询总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 资源信息列表。 具体请参见表2。
	RefundInfos    *[]OrderRefundInfoV2 `json:"refund_infos,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ShowRefundOrderDetailsResponse) String

type StatUsageInfo added in v0.0.59

type StatUsageInfo struct {

	// 统计时间点,格式为YYYY-MM-DDTHH:MM:SSZ,UTC时间。
	StatTime *string `json:"stat_time,omitempty"`

	// 保底带宽。  说明: 该字段为预留值,当前始终为空;当场景为95增强时才返回数值。
	GuaranteedBandWidth *string `json:"guaranteed_band_width,omitempty"`

	// 用量。
	Usage *string `json:"usage,omitempty"`

	// 单位,您可以调用查询度量单位列表接口获取。带宽和用量使用相同的计量单位。
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (StatUsageInfo) String added in v0.0.59

func (o StatUsageInfo) String() string

type StatUsageSummaryInfo added in v0.0.59

type StatUsageSummaryInfo struct {

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 有效天数,精度最高返回小数点后20位。  说明: 计算方式为上报的点数/288所得出的值。其中288为一天的点数,5分钟为一个点数单位。计算95费用时,因95费用是按月定价,若实际不足月,则是使用官网价*折扣*actual_days/当月天数,来计算费用明细。
	ActualDays *string `json:"actual_days,omitempty"`

	// 计费带宽的按月汇总。  说明: 每月2日20点后可查询上月数据;若查询当月数据,则为空。
	BandWidth *string `json:"band_width,omitempty"`

	// 月保底带宽的按月汇总。  说明: 每月2日20点后可查询上月数据;若查询当月数据,则为空。该字段为预留值,当前始终为空;当场景为95增强时才返回数值。
	MonthlyGuaranteedBandWidth *string `json:"monthly_guaranteed_band_width,omitempty"`

	// 月峰值带宽。  说明: 每月2日20点后可查询上月数据;若查询当月数据,则为空。该字段为预留值,当前始终为空;当场景为95增强时才返回数值。
	MonthlyPeakBandWidth *string `json:"monthly_peak_band_width,omitempty"`

	// 带宽单位,您可以调用查询度量单位列表接口获取。若所有带宽为空,则该字段为空。
	BandWidthMeasureId *int32 `json:"band_width_measure_id,omitempty"`
}

func (StatUsageSummaryInfo) String added in v0.0.59

func (o StatUsageSummaryInfo) String() string

type SubCustomerInfoV2

type SubCustomerInfoV2 struct {

	// 企业子账号的客户ID。
	Id *string `json:"id,omitempty"`

	// 企业子账号的用户名。
	Name *string `json:"name,omitempty"`

	// 企业子账号的显示名称。 不限制特殊字符。
	DisplayName *string `json:"display_name,omitempty"`

	// 子账号状态: 1:正常2:创建中3:关闭中4:已关闭101:子账号注册中102:子账号待激活
	Status *int32 `json:"status,omitempty"`

	// 子账号归属的组织单元ID。
	OrgId *string `json:"org_id,omitempty"`

	// 子账号归属的组织单元名称。  说明: 当子账号归属的组织是企业组织根节点时,本属性可能为空。
	OrgName *string `json:"org_name,omitempty"`
}

func (SubCustomerInfoV2) String

func (o SubCustomerInfoV2) String() string

type SubCustomerInfoV3 added in v0.0.85

type SubCustomerInfoV3 struct {

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`
}

func (SubCustomerInfoV3) String added in v0.0.85

func (o SubCustomerInfoV3) String() string

type SubCustomerMonthlyBillDetail added in v0.0.59

type SubCustomerMonthlyBillDetail struct {

	// 账期。 格式:YYYY-MM
	BillCycle *string `json:"bill_cycle,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 子客户的关联类型: 1:顾问销售2:代售
	AssociationType *string `json:"association_type,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。 ResourceType是CloudServiceType中的一种资源,CloudServiceType由多种ResourceType组合提供。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 计费模式。 1:包周期3:按需10:预留实例
	ChargingMode *int32 `json:"charging_mode,omitempty"`

	// 交易时间,即某条消费记录对应的扣费时间。 示例:2020-11-17T06:43:38Z
	TradeTime *string `json:"trade_time,omitempty"`

	// 订单ID或交易ID,扣费维度的唯一标识。 账单类型为1,2,3,4,8时为订单ID。其它场景下为交易ID。非月末扣费:应收ID月末扣费:账单ID
	TradeId *string `json:"trade_id,omitempty"`

	// 账单类型。 1:消费-新购2:消费-续订3:消费-变更8:消费-自动续订5:消费-使用12:消费-按时计费4:退款-退订9:调账-补偿13:消费-退订手续费增收14:消费-服务支持计划月末补扣16:调账-扣费18:消费-按月付费20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金
	BillDetailType *int32 `json:"bill_detail_type,omitempty"`

	// 资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 产品的规格描述。
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`

	// 云服务区编码,例如:“cn-north-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品名称。
	ProductName *string `json:"product_name,omitempty"`

	// 资源标签。
	ResourceTag *string `json:"resource_tag,omitempty"`

	// 消费时间。 包周期和预留实例订购场景下为订单支付时间;按需场景下为话单生失效时间。 格式:YYYY-MM-DDThh:mm:ssZ
	ConsumeTime *string `json:"consume_time,omitempty"`

	// 资源使用量的类型,您可以调用查询使用量类型列表接口获取。
	UsageType *string `json:"usage_type,omitempty"`

	// 资源的使用量。
	UsageAmount *float64 `json:"usage_amount,omitempty"`

	// 资源使用量的度量单位,您可以调用查询度量单位列表接口获取。
	UsageMeasureId *int32 `json:"usage_measure_id,omitempty"`

	// 套餐内使用量。
	FreeResourceUsage *float64 `json:"free_resource_usage,omitempty"`

	// 套餐内使用量的度量单位,您可以调用查询度量单位列表接口获取。
	FreeResourceMeasureId *int32 `json:"free_resource_measure_id,omitempty"`

	// 预留实例使用量。
	RiUsage *float64 `json:"ri_usage,omitempty"`

	// 预留实例使用量单位。
	RiUsageMeasureId *int32 `json:"ri_usage_measure_id,omitempty"`

	// 官网价。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 对应官网价折扣金额。
	OfficialDiscountAmount *float64 `json:"official_discount_amount,omitempty"`

	// 应付金额。
	PaymentAmount *float64 `json:"payment_amount,omitempty"`

	// 现金支付金额。
	CashAmount *float64 `json:"cash_amount,omitempty"`

	// 信用额度支付金额。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 代金券支付金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券支付金额。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 储值卡支付金额。
	StoredValueCardAmount *float64 `json:"stored_value_card_amount,omitempty"`

	// 欠费金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 欠费核销金额。
	WriteoffAmount *float64 `json:"writeoff_amount,omitempty"`

	// 周期类型: 19:年20:月24:天25:小时5:一次性
	PeriodType *int32 `json:"period_type,omitempty"`

	// 客户经理标识。
	AccountManagerId *string `json:"account_manager_id,omitempty"`

	// 关联的经销商ID。
	PartnerId *string `json:"partner_id,omitempty"`

	// 云服务区名称,例如:“华北-北京一”。具体请参见地区和终端节点对应云服务的“区域名称”列的值。
	RegionName *string `json:"region_name,omitempty"`
}

func (SubCustomerMonthlyBillDetail) String added in v0.0.59

type TemplateArgs

type TemplateArgs struct {

	// 模板参数名。 目前仅支持sub_customer_name:表明企业主创建企业子的名字
	Key string `json:"key"`

	// 模板参数值。 key对应的取值。
	Value string `json:"value"`
}

func (TemplateArgs) String

func (o TemplateArgs) String() string

type TransferAmountInfoV2

type TransferAmountInfoV2 struct {

	// 可拨款的金额。
	AvailTransferAmount *float64 `json:"avail_transfer_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 CNY:人民币
	Currency *string `json:"currency,omitempty"`

	// 账户余额(仅balance_type=信用账户时才有这个字段)。
	Amount *float64 `json:"amount,omitempty"`

	// 信用额度(仅balance_type=信用账户时才有这个字段)。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 信用额度过期时间。 UTC时间,格式为:2016-03-28T14:45:38Z。 (仅balance_type=信用账户时才有这个字段)。 如果查询信用账户可拨款余额的查询结果没有失效时间,表示永久有效。
	ExpireTime *string `json:"expire_time,omitempty"`
}

func (TransferAmountInfoV2) String

func (o TransferAmountInfoV2) String() string

type TransferEnterpriseMultiAccountReq

type TransferEnterpriseMultiAccountReq struct {

	// 企业子账号的客户ID。您可以调用查询企业子账号列表接口,获取响应参数“id”的返回值。
	CustomerId string `json:"customer_id"`

	// 现金账户总划拨金额。 单位:元。取值大于0且精确到小数点后2位。
	Amount string `json:"amount"`

	// 交易序列号,用于防止重复提交。 如果接口调用方不传此参数的值,则系统自动生成。如果接口调用方传入此参数的值,请采用UUID保证全局唯一。
	TransId *string `json:"trans_id,omitempty"`

	// 账户类型: BALANCE_TYPE_DEBIT:余额账户(默认)BALANCE_TYPE_CREDIT:信用账户
	BalanceType *string `json:"balance_type,omitempty"`

	// 账户到期时间,UTC时间,格式为:2016-03-28T14:45:38Z。 只对信用账户有效,用于限制针对有效期到期时间等于该时间的信用账户余额进行拨款,精确到秒。如果查询信用账户可拨款余额的查询结果没有失效时间,表示永久有效,对于这种账本拨款的情况无需填写。
	ExpireTime *string `json:"expire_time,omitempty"`
}

func (TransferEnterpriseMultiAccountReq) String

type UnsubscribeResourcesReq

type UnsubscribeResourcesReq struct {

	// 资源ID列表。 最大支持1次性输入10个资源ID,只能输入主资源ID。 哪些资源是主资源请根据“查询客户包年/包月资源列表”接口响应参数中的“is_main_resource”来标识。
	ResourceIds []string `json:"resource_ids"`

	// 退订类型,取值如下: 1:退订资源及其已续费周期。2:只退订资源已续费周期,不退订资源。
	UnsubscribeType int32 `json:"unsubscribe_type"`

	// 退订理由分类,取值如下: 1:产品不好用2:产品功能无法满足需求3:不会操作/操作过于复杂4:对服务不满意5:其他
	UnsubscribeReasonType *int32 `json:"unsubscribe_reason_type,omitempty"`

	// 退订原因,一般由客户输入。
	UnsubscribeReason *string `json:"unsubscribe_reason,omitempty"`
}

func (UnsubscribeResourcesReq) String

func (o UnsubscribeResourcesReq) String() string

type UpdateCouponQuotasRequest

type UpdateCouponQuotasRequest struct {
	Body *AdjustCouponQuotasReq `json:"body,omitempty"`
}

Request Object

func (UpdateCouponQuotasRequest) String

func (o UpdateCouponQuotasRequest) String() string

type UpdateCouponQuotasResponse

type UpdateCouponQuotasResponse struct {

	// 发放失败的精英服务商额度信息,具体参见表1,只有HTTP STATUS 200的时候才有这个结构体。
	ErrorDetails *[]ErrorDetail `json:"error_details,omitempty"`

	// 发放成功的精英服务商额度信息,具体参见表2,只有HTTP STATUS 200的时候才有这个结构体。
	SimpleQuotaInfos *[]QuotaSimpleInfo `json:"simple_quota_infos,omitempty"`
	HttpStatusCode   int                `json:"-"`
}

Response Object

func (UpdateCouponQuotasResponse) String

type UpdateCustomerAccountAmountRequest

type UpdateCustomerAccountAmountRequest struct {
	Body *AdjustAccountReq `json:"body,omitempty"`
}

Request Object

func (UpdateCustomerAccountAmountRequest) String

type UpdateCustomerAccountAmountResponse

type UpdateCustomerAccountAmountResponse struct {

	// 事务流水ID,只有成功响应才会返回。
	TransferId     *string `json:"transfer_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateCustomerAccountAmountResponse) String

type UpdateIndirectPartnerAccountRequest

type UpdateIndirectPartnerAccountRequest struct {
	Body *AdjustToIndirectPartnerReq `json:"body,omitempty"`
}

Request Object

func (UpdateIndirectPartnerAccountRequest) String

type UpdateIndirectPartnerAccountResponse

type UpdateIndirectPartnerAccountResponse struct {

	// 事务流水ID,只有成功响应才会返回。
	TransferId     *string `json:"transfer_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateIndirectPartnerAccountResponse) String

type UpdatePeriodToOnDemandRequest

type UpdatePeriodToOnDemandRequest struct {
	Body *PeriodToOnDemandReq `json:"body,omitempty"`
}

Request Object

func (UpdatePeriodToOnDemandRequest) String

type UpdatePeriodToOnDemandResponse

type UpdatePeriodToOnDemandResponse struct {

	// HTTP 200的时候返回该字段;部分失败时仅返回失败的记录;如果全部成功,则该记录为空,具体参见表1。
	ErrorDetails   *[]ErrorDetail `json:"error_details,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdatePeriodToOnDemandResponse) String

type UpdatePostalReq

type UpdatePostalReq struct {

	// 地址ID,地址的唯一索引。
	AddressId string `json:"address_id"`

	// 收件人姓名。
	Recipient *string `json:"recipient,omitempty"`

	// 省/自治区/直辖市。例如:江苏省。
	Province *string `json:"province,omitempty"`

	// 市/区。例如:南京市。
	City *string `json:"city,omitempty"`

	// 区。例如:雨花区。
	District *string `json:"district,omitempty"`

	// 邮寄详细地址。
	Address *string `json:"address,omitempty"`

	// 邮寄地址所在邮编。
	Zipcode *string `json:"zipcode,omitempty"`

	// 手机号码,不带国家码。
	MobilePhone *string `json:"mobile_phone,omitempty"`

	// 是否默认地址,默认为0。 1:默认地址0:非默认地址
	IsDefault *int32 `json:"is_default,omitempty"`
}

func (UpdatePostalReq) String

func (o UpdatePostalReq) String() string

type UpdatePostalRequest

type UpdatePostalRequest struct {

	// 语言。中文:zh_CN 英文:en_US,缺省为zh_CN
	XLanguage *string `json:"X-Language,omitempty"`

	Body *UpdatePostalReq `json:"body,omitempty"`
}

Request Object

func (UpdatePostalRequest) String

func (o UpdatePostalRequest) String() string

type UpdatePostalResponse

type UpdatePostalResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdatePostalResponse) String

func (o UpdatePostalResponse) String() string

type UpdateSubEnterpriseAmountRequest

type UpdateSubEnterpriseAmountRequest struct {
	Body *TransferEnterpriseMultiAccountReq `json:"body,omitempty"`
}

Request Object

func (UpdateSubEnterpriseAmountRequest) String

type UpdateSubEnterpriseAmountResponse

type UpdateSubEnterpriseAmountResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateSubEnterpriseAmountResponse) String

type UsageType

type UsageType struct {

	// 使用量类型编码。如:reqNumber。
	Code *string `json:"code,omitempty"`

	// 使用量类型名称。如:调用次数。
	Name *string `json:"name,omitempty"`

	// 资源类型编码。例如ECS的VM为“hws.resource.type.vm”。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务类型编码。例如OBS的云服务类型编码为“hws.service.type.obs”。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`
}

func (UsageType) String

func (o UsageType) String() string

type UserStoredValueCard added in v0.0.83

type UserStoredValueCard struct {

	// 储值卡ID。
	CardId *string `json:"card_id,omitempty"`

	// 储值卡名称。
	CardName *string `json:"card_name,omitempty"`

	// 状态: 1:可使用 2:已用完
	Status *int32 `json:"status,omitempty"`

	// 储值卡面值。
	FaceValue *string `json:"face_value,omitempty"`

	// 储值卡余额。
	Balance *string `json:"balance,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`
}

func (UserStoredValueCard) String added in v0.0.83

func (o UserStoredValueCard) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL