models

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 0 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartExtraChargeVo added in v1.12.0

type CartExtraChargeVo struct {

	/* 额外计费项名称 (Optional) */
	Name *string `json:"name"`

	/* 购买数量 (Optional) */
	BuyNum *int `json:"buyNum"`
}

type ConfirmDeliveryInfo

type ConfirmDeliveryInfo struct {

	/* 交付单号 (Optional) */
	DeliverNumber *string `json:"deliverNumber"`

	/* 交付单备注,填写交付时的信息,比如网址,账号等 (Optional) */
	Remark *string `json:"remark"`
}

type CreateOrderInfo added in v1.12.0

type CreateOrderInfo struct {

	/* spu ID  */
	ProductId int `json:"productId"`

	/* sku ID  */
	SkuId int `json:"skuId"`

	/* 购买数量  */
	BuyNum int `json:"buyNum"`

	/* 备注 (Optional) */
	Remark *string `json:"remark"`

	/* 额外计费项信息 (Optional) */
	CartExtraChargeVos []CartExtraChargeVo `json:"cartExtraChargeVos"`
}

type CreateOrderResultVo added in v1.12.0

type CreateOrderResultVo struct {

	/* 订单号 (Optional) */
	OrderNumber string `json:"orderNumber"`
}

type JdxProductSkuVo added in v1.12.0

type JdxProductSkuVo struct {

	/* sku ID (Optional) */
	SkuId int `json:"skuId"`

	/* sku名称 (Optional) */
	SkuName string `json:"skuName"`

	/* 销售属性json字符串,version表示版本(套次、周期、套餐包类商品均有该属性),validity表示周期(周期和套餐包类商品有该属性),packageNum表示条数(只有套餐包类商品有该属性):例如[{"attrCode":"version","attrValue":"升级版"},{"attrCode":"validity","attrValue":365},{"attrCode":"packageNum","attrValue":1000}] (Optional) */
	SaleAttributes string `json:"saleAttributes"`

	/* 最大购买数量 (Optional) */
	MaxBuyNum int `json:"maxBuyNum"`

	/* 最小购买数量 (Optional) */
	MinBuyNum int `json:"minBuyNum"`

	/* sku 售价 (Optional) */
	SkuSellingPrice int `json:"skuSellingPrice"`

	/* 额外计费项信息 (Optional) */
	SkuExtraChargeList []JdxSkuExtraChargeVo `json:"skuExtraChargeList"`
}

type JdxProductVo added in v1.12.0

type JdxProductVo struct {

	/* 产品ID (Optional) */
	ProductId int `json:"productId"`

	/* 商品名称 (Optional) */
	ProductName string `json:"productName"`

	/* 商标图片地址 (Optional) */
	TrademarkUrl string `json:"trademarkUrl"`

	/* 所属一级分类名称 (Optional) */
	CategoryLevel1Name string `json:"categoryLevel1Name"`

	/* 所属二级分类名称 (Optional) */
	CategoryLevel2Name string `json:"categoryLevel2Name"`

	/* 交付形态 (Optional) */
	DeliveryForm int `json:"deliveryForm"`

	/* 交付形态名称 (Optional) */
	DeliveryFormName string `json:"deliveryFormName"`

	/* 商品简介 (Optional) */
	Introduction string `json:"introduction"`

	/* 商品定价模式 1:按套次、2:按周期、3:按套餐包 (Optional) */
	SellType int `json:"sellType"`

	/* 商品定价模式名称 (Optional) */
	SellTypeName string `json:"sellTypeName"`

	/* -1:不允许退款, 单位:天, 默认-1 (Optional) */
	RefundDays int `json:"refundDays"`

	/* pc端商品详情 (Optional) */
	PcProductDetail string `json:"pcProductDetail"`

	/* m端商品详情 (Optional) */
	MProductDetail string `json:"mProductDetail"`

	/* sku详情信息 (Optional) */
	ProductSkuList []JdxProductSkuVo `json:"productSkuList"`
}

type JdxProductVoListData added in v1.12.0

type JdxProductVoListData struct {

	/* 页码 (Optional) */
	PageNo int `json:"pageNo"`

	/* 每页记录数 (Optional) */
	PageSize int `json:"pageSize"`

	/* 总记录数 (Optional) */
	TotalRecord int `json:"totalRecord"`

	/* 总页数 (Optional) */
	TotalPage int `json:"totalPage"`

	/* 商品信息列表 (Optional) */
	DataList []JdxProductVo `json:"dataList"`
}

type JdxSkuExtraChargeVo added in v1.12.0

type JdxSkuExtraChargeVo struct {

	/* 额外计费项名称 (Optional) */
	ExtraChargeName string `json:"extraChargeName"`

	/* 额外计费项单位 (Optional) */
	ExtraChargeUnit string `json:"extraChargeUnit"`

	/* 售价 (Optional) */
	SellingPrice int `json:"sellingPrice"`

	/* 1、范围 2、枚举 (Optional) */
	NumType int `json:"numType"`

	/* 1,100逗号分隔,numType=1表示可购买数量的范围,numType=2表示只支持购买特定数量 (Optional) */
	Num string `json:"num"`
}

type OrderItemExtraChargeInfo added in v1.7.0

type OrderItemExtraChargeInfo struct {

	/* 购买用户pin (Optional) */
	Name string `json:"name"`

	/* 单位 (Optional) */
	Unit string `json:"unit"`

	/* 购买数量 (Optional) */
	BuyNum int `json:"buyNum"`

	/* 销售价格 (Optional) */
	SellingPrice string `json:"sellingPrice"`

	/* 结算价格 (Optional) */
	SettlementPrice string `json:"settlementPrice"`
}

type OrderPriceProtocolVo added in v1.8.0

type OrderPriceProtocolVo struct {

	/* 资源id,续费和升降配时必传,其他非必传 (Optional) */
	ResourceId *string `json:"resourceId"`

	/* 资源的类型,取值vm,disk,ip等,具体取值请在对接时联系我们  */
	ServiceCode string `json:"serviceCode"`

	/* 资源所在区域,取值cn-north-1,cn-east-1,cn-east-2,cn-south-1  */
	Region string `json:"region"`

	/* 计费类型,1:按配置 2:按用量 3:包年包月  */
	BillingType int `json:"billingType"`

	/* 资源配置项列表 (Optional) */
	Formula []OrderResourceFormulaVo `json:"formula"`

	/* 资源数量  */
	Count int `json:"count"`

	/* 资源使用时长  */
	TimeSpan int `json:"timeSpan"`

	/* 资源使用时长类型,1:小时 2:天 3:月 4:年  */
	TimeUnit int `json:"timeUnit"`

	/* 资源网络类型,0:无 1:non-BGP 2:BGP,当资源类型是ip时,则需要填写1或者2,其他资源类型填写0  */
	NetworkOperator int `json:"networkOperator"`

	/* 用户pin,如有优惠用户,则填写优惠用户的pin,否则不用填写 (Optional) */
	Pin *string `json:"pin"`

	/* 开始时间,格式:yyyy-MM-dd HH:mm:ss  */
	StartTime string `json:"startTime"`

	/* 结束时间,格式:yyyy-MM-dd HH:mm:ss (Optional) */
	EndTime *string `json:"endTime"`
}

type OrderResourceFormulaVo added in v1.8.0

type OrderResourceFormulaVo struct {

	/* 资源配置项编码,具体取值请在对接时联系我们  */
	Key string `json:"key"`

	/* 资源配置项数量  */
	Value float64 `json:"value"`
}

type ProductServiceVo

type ProductServiceVo struct {

	/* 交付单号 (Optional) */
	DeliverNumber string `json:"deliverNumber"`

	/* 订单号 (Optional) */
	OrderNumber string `json:"orderNumber"`

	/* 续费订单所关联的新购订单号,该字段只针对续费单有效,新购单该字段为null (Optional) */
	RefOrderNumber string `json:"refOrderNumber"`

	/* 订单类型 (Optional) */
	OrderType int `json:"orderType"`

	/* 订单类型名称 (Optional) */
	OrderTypeName string `json:"orderTypeName"`

	/* 购买人 (Optional) */
	BuyerPin string `json:"buyerPin"`

	/* 映射编号 (Optional) */
	MappingCode string `json:"mappingCode"`

	/* 是否支持自动交付:0表示不支持,1表示支持 (Optional) */
	SupportAutoDeliver int `json:"supportAutoDeliver"`

	/* 产品ID (Optional) */
	ProductId int `json:"productId"`

	/* sku ID (Optional) */
	SkuId int `json:"skuId"`

	/* sku名称 (Optional) */
	SkuName string `json:"skuName"`

	/* 服务code (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 数量 (Optional) */
	Num int `json:"num"`

	/* 周期 (Optional) */
	Period int `json:"period"`

	/* 周期类型 (Optional) */
	PeriodType int `json:"periodType"`

	/* 周期类型名称 (Optional) */
	PeriodTypeName string `json:"periodTypeName"`

	/* 账号数量 (Optional) */
	AccountNum int `json:"accountNum"`

	/* 交付状态 (Optional) */
	DeliverStatus int `json:"deliverStatus"`

	/* 交付状态名称 (Optional) */
	DeliverStatusName string `json:"deliverStatusName"`

	/* 服务生效时间,格式:yyyy-MM-dd HH:mm:ss (Optional) */
	EffectiveDt string `json:"effectiveDt"`

	/* 服务过期时间,格式:yyyy-MM-dd HH:mm:ss (Optional) */
	FailureDt string `json:"failureDt"`

	/* 商品属性 (Optional) */
	ExtraInfo string `json:"extraInfo"`

	/* 交付单备注 (Optional) */
	Remark string `json:"remark"`

	/* 订单金额 (Optional) */
	OrderTotalFee string `json:"orderTotalFee"`

	/* 订单实付金额 (Optional) */
	OrderActualFee string `json:"orderActualFee"`

	/* 订单支付时间 (Optional) */
	PaymentDt string `json:"paymentDt"`

	/* 额外计费项信息 (Optional) */
	ExtraChargeInfo string `json:"extraChargeInfo"`

	/* 额外计费详情信息 (Optional) */
	OrderItemExtraChargeInfos []OrderItemExtraChargeInfo `json:"orderItemExtraChargeInfos"`
}

type ProductServiceVoListData

type ProductServiceVoListData struct {

	/* 页码 (Optional) */
	PageNo int `json:"pageNo"`

	/* 每页记录数 (Optional) */
	PageSize int `json:"pageSize"`

	/* 总记录数 (Optional) */
	TotalRecord int `json:"totalRecord"`

	/* 总页数 (Optional) */
	TotalPage int `json:"totalPage"`

	/* 交付单信息列表 (Optional) */
	DataList []ProductServiceVo `json:"dataList"`
}

type QueryDeliveryInfoResultVo added in v1.12.0

type QueryDeliveryInfoResultVo struct {

	/* 交付信息 (Optional) */
	Remark string `json:"remark"`

	/* 生效时间,格式:yyyy-MM-dd HH:mm:ss (Optional) */
	EffectiveDt string `json:"effectiveDt"`

	/* 失效时间,格式:yyyy-MM-dd HH:mm:ss (Optional) */
	FailureDt string `json:"failureDt"`
}

type QueryPriceParam added in v1.8.0

type QueryPriceParam struct {

	/* 操作类型 1:创建 2:续费 3:升降配  */
	Cmd int `json:"cmd"`

	/* 打包购买包数  */
	PackageCount int `json:"packageCount"`

	/*   */
	OrderList []OrderPriceProtocolVo `json:"orderList"`
}

type QueryPriceResultVo added in v1.8.0

type QueryPriceResultVo struct {

	/* 总金额,小数后2位精度 (Optional) */
	TotalPrice int `json:"totalPrice"`

	/* 总金额,小数后4位精度 (Optional) */
	TotalPriceScale4 int `json:"totalPriceScale4"`

	/* 折扣后总金额 (Optional) */
	DiscountedTotalPrice int `json:"discountedTotalPrice"`

	/* 折扣优惠金额 (Optional) */
	TotalDiscount int `json:"totalDiscount"`

	/* 订单原价 (Optional) */
	TotalOriginalPrice int `json:"totalOriginalPrice"`

	/* 备注 (Optional) */
	Remark string `json:"remark"`
}

type ReportOrderInfo added in v1.8.0

type ReportOrderInfo struct {

	/* 订单号  */
	OrderNumber string `json:"orderNumber"`

	/* 经销商账号 (Optional) */
	DistributorAccount *string `json:"distributorAccount"`

	/* 经销商名称 (Optional) */
	DistributorName *string `json:"distributorName"`

	/* 补充信息,填写当前订单的一些描述信息 (Optional) */
	ExtraInfo *string `json:"extraInfo"`
}

type StoreServiceDetailVo added in v1.7.0

type StoreServiceDetailVo struct {

	/* 商品spu对应的id (Optional) */
	SpuId int `json:"spuId"`

	/* 商品sku对应的id (Optional) */
	SkuId int `json:"skuId"`

	/* 滚存天数 (Optional) */
	StoreDays int `json:"storeDays"`

	/* 开始时间,格式:yyyy-MM-dd HH:mm:ss (Optional) */
	StartTime string `json:"startTime"`

	/* 结束时间,格式:yyyy-MM-dd HH:mm:ss (Optional) */
	EndTime string `json:"endTime"`
}

type StoreServiceVo added in v1.7.0

type StoreServiceVo struct {

	/* 购买用户pin (Optional) */
	BuyerPin string `json:"buyerPin"`

	/* 业务数据,下单时传入的 (Optional) */
	BusinessData string `json:"businessData"`

	/* 云存服务明细列表 (Optional) */
	StoreServiceDetails []StoreServiceDetailVo `json:"storeServiceDetails"`

	/* 订单数量 (Optional) */
	OrderNum int `json:"orderNum"`

	/* 更新时间,格式:yyyy-MM-dd HH:mm:ss (Optional) */
	UpdateTime string `json:"updateTime"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL