Ver código fonte

QueryMonthlyBillResponse add roundDownDiscount.

sdk-team 6 anos atrás
pai
commit
80992abcae

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2019-07-19 Version: 1.60.70
+- QueryMonthlyBillResponse add roundDownDiscount.
+- QueryBillResponse add roundDownDiscount.
+- QueryInstanceBillResponse add item.
+
 2019-07-18 Version: 1.60.69
 - Fix resolve wrong tagname IOS to iOS.
 

+ 25 - 0
services/bssopenapi/client.go

@@ -16,6 +16,8 @@ package bssopenapi
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 import (
+	"reflect"
+
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
@@ -26,10 +28,25 @@ type Client struct {
 	sdk.Client
 }
 
+// SetClientProperty Set Property by Reflect
+func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) {
+	v := reflect.ValueOf(client).Elem()
+	if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() {
+		v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue))
+	}
+}
+
+// SetEndpointDataToClient Set EndpointMap and ENdpointType
+func SetEndpointDataToClient(client *Client) {
+	SetClientProperty(client, "EndpointMap", GetEndpointMap())
+	SetClientProperty(client, "EndpointType", GetEndpointType())
+}
+
 // NewClient creates a sdk client with environment variables
 func NewClient() (client *Client, err error) {
 	client = &Client{}
 	err = client.Init()
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -44,6 +61,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 		pc = provider.NewProviderChain(providers)
 	}
 	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -52,6 +70,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithOptions(regionId, config, credential)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -60,6 +79,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -68,6 +88,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -76,6 +97,7 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -84,6 +106,7 @@ func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, role
 func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -92,6 +115,7 @@ func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySec
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -100,5 +124,6 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	SetEndpointDataToClient(client)
 	return
 }

+ 1 - 1
services/bssopenapi/create_resource_package.go

@@ -89,7 +89,7 @@ type CreateResourcePackageRequest struct {
 type CreateResourcePackageResponse struct {
 	*responses.BaseResponse
 	RequestId string                      `json:"RequestId" xml:"RequestId"`
-	OrderId   int                         `json:"OrderId" xml:"OrderId"`
+	OrderId   int64                       `json:"OrderId" xml:"OrderId"`
 	Success   bool                        `json:"Success" xml:"Success"`
 	Code      string                      `json:"Code" xml:"Code"`
 	Message   string                      `json:"Message" xml:"Message"`

+ 1 - 1
services/bssopenapi/describe_resource_package_product.go

@@ -83,7 +83,7 @@ type DescribeResourcePackageProductRequest struct {
 type DescribeResourcePackageProductResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	OrderId   int    `json:"OrderId" xml:"OrderId"`
+	OrderId   int64  `json:"OrderId" xml:"OrderId"`
 	Success   bool   `json:"Success" xml:"Success"`
 	Code      string `json:"Code" xml:"Code"`
 	Message   string `json:"Message" xml:"Message"`

+ 41 - 0
services/bssopenapi/endpoint.go

@@ -0,0 +1,41 @@
+package bssopenapi
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "regional"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{
+			"cn-shenzhen":    "business.aliyuncs.com",
+			"cn-beijing":     "business.aliyuncs.com",
+			"ap-south-1":     "business.ap-southeast-1.aliyuncs.com",
+			"eu-west-1":      "business.ap-southeast-1.aliyuncs.com",
+			"ap-northeast-1": "business.ap-southeast-1.aliyuncs.com",
+			"me-east-1":      "business.ap-southeast-1.aliyuncs.com",
+			"cn-chengdu":     "business.aliyuncs.com",
+			"cn-qingdao":     "business.aliyuncs.com",
+			"cn-shanghai":    "business.aliyuncs.com",
+			"cn-hongkong":    "business.aliyuncs.com",
+			"ap-southeast-1": "business.ap-southeast-1.aliyuncs.com",
+			"ap-southeast-2": "business.ap-southeast-1.aliyuncs.com",
+			"ap-southeast-3": "business.ap-southeast-1.aliyuncs.com",
+			"eu-central-1":   "business.ap-southeast-1.aliyuncs.com",
+			"cn-huhehaote":   "business.aliyuncs.com",
+			"ap-southeast-5": "business.ap-southeast-1.aliyuncs.com",
+			"us-east-1":      "business.ap-southeast-1.aliyuncs.com",
+			"cn-zhangjiakou": "business.aliyuncs.com",
+			"us-west-1":      "business.ap-southeast-1.aliyuncs.com",
+			"cn-hangzhou":    "business.aliyuncs.com",
+		}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 1 - 1
services/bssopenapi/struct_cash_coupon.go

@@ -17,7 +17,7 @@ package bssopenapi
 
 // CashCoupon is a nested struct in bssopenapi response
 type CashCoupon struct {
-	CashCouponId        int    `json:"CashCouponId" xml:"CashCouponId"`
+	CashCouponId        int64  `json:"CashCouponId" xml:"CashCouponId"`
 	CashCouponNo        string `json:"CashCouponNo" xml:"CashCouponNo"`
 	GrantedTime         string `json:"GrantedTime" xml:"GrantedTime"`
 	EffectiveTime       string `json:"EffectiveTime" xml:"EffectiveTime"`

+ 10 - 10
services/bssopenapi/struct_customer_invoice.go

@@ -17,25 +17,25 @@ package bssopenapi
 
 // CustomerInvoice is a nested struct in bssopenapi response
 type CustomerInvoice struct {
-	Id                      int    `json:"Id" xml:"Id"`
-	UserId                  int    `json:"UserId" xml:"UserId"`
+	Id                      int64  `json:"Id" xml:"Id"`
+	UserId                  int64  `json:"UserId" xml:"UserId"`
 	UserNick                string `json:"UserNick" xml:"UserNick"`
 	InvoiceTitle            string `json:"InvoiceTitle" xml:"InvoiceTitle"`
-	CustomerType            int    `json:"CustomerType" xml:"CustomerType"`
-	TaxpayerType            int    `json:"TaxpayerType" xml:"TaxpayerType"`
+	CustomerType            int64  `json:"CustomerType" xml:"CustomerType"`
+	TaxpayerType            int64  `json:"TaxpayerType" xml:"TaxpayerType"`
 	Bank                    string `json:"Bank" xml:"Bank"`
 	BankNo                  string `json:"BankNo" xml:"BankNo"`
 	OperatingLicenseAddress string `json:"OperatingLicenseAddress" xml:"OperatingLicenseAddress"`
 	OperatingLicensePhone   string `json:"OperatingLicensePhone" xml:"OperatingLicensePhone"`
 	RegisterNo              string `json:"RegisterNo" xml:"RegisterNo"`
-	StartCycle              int    `json:"StartCycle" xml:"StartCycle"`
-	Status                  int    `json:"Status" xml:"Status"`
+	StartCycle              int64  `json:"StartCycle" xml:"StartCycle"`
+	Status                  int64  `json:"Status" xml:"Status"`
 	GmtCreate               string `json:"GmtCreate" xml:"GmtCreate"`
 	TaxationLicense         string `json:"TaxationLicense" xml:"TaxationLicense"`
-	AdjustType              int    `json:"AdjustType" xml:"AdjustType"`
-	EndCycle                int    `json:"EndCycle" xml:"EndCycle"`
+	AdjustType              int64  `json:"AdjustType" xml:"AdjustType"`
+	EndCycle                int64  `json:"EndCycle" xml:"EndCycle"`
 	TitleChangeInstructions string `json:"TitleChangeInstructions" xml:"TitleChangeInstructions"`
-	IssueType               int    `json:"IssueType" xml:"IssueType"`
-	Type                    int    `json:"Type" xml:"Type"`
+	IssueType               int64  `json:"IssueType" xml:"IssueType"`
+	Type                    int64  `json:"Type" xml:"Type"`
 	DefaultRemark           string `json:"DefaultRemark" xml:"DefaultRemark"`
 }

+ 2 - 2
services/bssopenapi/struct_customer_invoice_address.go

@@ -17,8 +17,8 @@ package bssopenapi
 
 // CustomerInvoiceAddress is a nested struct in bssopenapi response
 type CustomerInvoiceAddress struct {
-	Id              int    `json:"Id" xml:"Id"`
-	UserId          int    `json:"UserId" xml:"UserId"`
+	Id              int64  `json:"Id" xml:"Id"`
+	UserId          int64  `json:"UserId" xml:"UserId"`
 	UserNick        string `json:"UserNick" xml:"UserNick"`
 	Addressee       string `json:"Addressee" xml:"Addressee"`
 	Province        string `json:"Province" xml:"Province"`

+ 6 - 20
services/bssopenapi/struct_data.go

@@ -17,63 +17,49 @@ package bssopenapi
 
 // Data is a nested struct in bssopenapi response
 type Data struct {
-	BusinessType                string                                 `json:"BusinessType" xml:"BusinessType"`
 	TradePrice                  float64                                `json:"TradePrice" xml:"TradePrice"`
 	HostId                      string                                 `json:"HostId" xml:"HostId"`
-	TotalUnAppliedInvoiceAmount int                                    `json:"TotalUnAppliedInvoiceAmount" xml:"TotalUnAppliedInvoiceAmount"`
+	TotalUnAppliedInvoiceAmount int64                                  `json:"TotalUnAppliedInvoiceAmount" xml:"TotalUnAppliedInvoiceAmount"`
 	OriginalPrice               float64                                `json:"OriginalPrice" xml:"OriginalPrice"`
 	OrderId                     string                                 `json:"OrderId" xml:"OrderId"`
 	HostingStatus               string                                 `json:"HostingStatus" xml:"HostingStatus"`
 	TotalCount                  int                                    `json:"TotalCount" xml:"TotalCount"`
 	CreditLimitStatus           string                                 `json:"CreditLimitStatus" xml:"CreditLimitStatus"`
 	BillingCycle                string                                 `json:"BillingCycle" xml:"BillingCycle"`
-	Uid                         int                                    `json:"Uid" xml:"Uid"`
 	OutstandingAmount           float64                                `json:"OutstandingAmount" xml:"OutstandingAmount"`
-	InvalidTimeStamp            int                                    `json:"InvalidTimeStamp" xml:"InvalidTimeStamp"`
 	Quantity                    int                                    `json:"Quantity" xml:"Quantity"`
 	AvailableCashAmount         string                                 `json:"AvailableCashAmount" xml:"AvailableCashAmount"`
-	EffectTimeStamp             int                                    `json:"EffectTimeStamp" xml:"EffectTimeStamp"`
-	PrimaryAccount              string                                 `json:"PrimaryAccount" xml:"PrimaryAccount"`
 	HostName                    string                                 `json:"HostName" xml:"HostName"`
 	TotalOutstandingAmount      float64                                `json:"TotalOutstandingAmount" xml:"TotalOutstandingAmount"`
-	Status                      string                                 `json:"Status" xml:"Status"`
-	UserId                      int                                    `json:"UserId" xml:"UserId"`
 	NewInvoiceAmount            float64                                `json:"NewInvoiceAmount" xml:"NewInvoiceAmount"`
 	Marker                      string                                 `json:"Marker" xml:"Marker"`
 	AccountType                 string                                 `json:"AccountType" xml:"AccountType"`
-	Numerator                   int                                    `json:"Numerator" xml:"Numerator"`
 	AvailableAmount             string                                 `json:"AvailableAmount" xml:"AvailableAmount"`
 	PageSize                    int                                    `json:"PageSize" xml:"PageSize"`
-	Amount                      string                                 `json:"Amount" xml:"Amount"`
 	MybankCreditAmount          string                                 `json:"MybankCreditAmount" xml:"MybankCreditAmount"`
 	CreditAmount                string                                 `json:"CreditAmount" xml:"CreditAmount"`
-	ThresholdType               int                                    `json:"ThresholdType" xml:"ThresholdType"`
 	AccountID                   string                                 `json:"AccountID" xml:"AccountID"`
 	InstanceId                  string                                 `json:"InstanceId" xml:"InstanceId"`
-	ItemCode                    string                                 `json:"ItemCode" xml:"ItemCode"`
-	ThresholdAmount             string                                 `json:"ThresholdAmount" xml:"ThresholdAmount"`
-	InvoiceApplyId              int                                    `json:"InvoiceApplyId" xml:"InvoiceApplyId"`
+	InvoiceApplyId              int64                                  `json:"InvoiceApplyId" xml:"InvoiceApplyId"`
 	Boolean                     bool                                   `json:"Boolean" xml:"Boolean"`
 	IsCertified                 bool                                   `json:"IsCertified" xml:"IsCertified"`
-	TotalInvoiceAmount          int                                    `json:"TotalInvoiceAmount" xml:"TotalInvoiceAmount"`
+	TotalInvoiceAmount          int64                                  `json:"TotalInvoiceAmount" xml:"TotalInvoiceAmount"`
 	PageNum                     int                                    `json:"PageNum" xml:"PageNum"`
-	Bid                         string                                 `json:"Bid" xml:"Bid"`
 	Currency                    string                                 `json:"Currency" xml:"Currency"`
 	LoginEmail                  string                                 `json:"LoginEmail" xml:"LoginEmail"`
 	DiscountPrice               float64                                `json:"DiscountPrice" xml:"DiscountPrice"`
 	AccountName                 string                                 `json:"AccountName" xml:"AccountName"`
-	Mpk                         int                                    `json:"Mpk" xml:"Mpk"`
-	Denominator                 int                                    `json:"Denominator" xml:"Denominator"`
+	Mpk                         int64                                  `json:"Mpk" xml:"Mpk"`
 	UidList                     UidList                                `json:"UidList" xml:"UidList"`
 	OmsData                     OmsData                                `json:"OmsData" xml:"OmsData"`
 	ModuleList                  ModuleList                             `json:"ModuleList" xml:"ModuleList"`
 	InstanceList                []Instance                             `json:"InstanceList" xml:"InstanceList"`
 	OrderList                   OrderListInQueryOrders                 `json:"OrderList" xml:"OrderList"`
-	Modules                     ModulesInQueryInstanceGaapCost         `json:"Modules" xml:"Modules"`
+	Modules                     Modules                                `json:"Modules" xml:"Modules"`
 	ResourcePackages            ResourcePackages                       `json:"ResourcePackages" xml:"ResourcePackages"`
-	Items                       ItemsInQueryBill                       `json:"Items" xml:"Items"`
 	ProductList                 ProductList                            `json:"ProductList" xml:"ProductList"`
 	ModuleDetails               ModuleDetailsInGetSubscriptionPrice    `json:"ModuleDetails" xml:"ModuleDetails"`
+	Items                       ItemsInQueryBillOverview               `json:"Items" xml:"Items"`
 	PromotionDetails            PromotionDetailsInGetSubscriptionPrice `json:"PromotionDetails" xml:"PromotionDetails"`
 	AccountTransactionsList     AccountTransactionsList                `json:"AccountTransactionsList" xml:"AccountTransactionsList"`
 	EvaluateList                EvaluateList                           `json:"EvaluateList" xml:"EvaluateList"`

+ 1 - 1
services/bssopenapi/struct_data_in_create_resource_package.go

@@ -17,6 +17,6 @@ package bssopenapi
 
 // DataInCreateResourcePackage is a nested struct in bssopenapi response
 type DataInCreateResourcePackage struct {
-	OrderId    int    `json:"OrderId" xml:"OrderId"`
+	OrderId    int64  `json:"OrderId" xml:"OrderId"`
 	InstanceId string `json:"InstanceId" xml:"InstanceId"`
 }

+ 3 - 3
services/bssopenapi/struct_data_in_query_redeem.go

@@ -17,8 +17,8 @@ package bssopenapi
 
 // DataInQueryRedeem is a nested struct in bssopenapi response
 type DataInQueryRedeem struct {
-	PageNum    int    `json:"PageNum" xml:"PageNum"`
-	PageSize   int    `json:"PageSize" xml:"PageSize"`
-	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
+	PageNum    int64  `json:"PageNum" xml:"PageNum"`
+	PageSize   int64  `json:"PageSize" xml:"PageSize"`
+	TotalCount int64  `json:"TotalCount" xml:"TotalCount"`
 	Redeem     Redeem `json:"Redeem" xml:"Redeem"`
 }

+ 10 - 10
services/bssopenapi/struct_evaluate.go

@@ -17,22 +17,22 @@ package bssopenapi
 
 // Evaluate is a nested struct in bssopenapi response
 type Evaluate struct {
-	Id                 int    `json:"Id" xml:"Id"`
+	Id                 int64  `json:"Id" xml:"Id"`
 	GmtCreate          string `json:"GmtCreate" xml:"GmtCreate"`
 	GmtModified        string `json:"GmtModified" xml:"GmtModified"`
-	UserId             int    `json:"UserId" xml:"UserId"`
+	UserId             int64  `json:"UserId" xml:"UserId"`
 	UserNick           string `json:"UserNick" xml:"UserNick"`
 	OutBizId           string `json:"OutBizId" xml:"OutBizId"`
-	BillId             int    `json:"BillId" xml:"BillId"`
-	ItemId             int    `json:"ItemId" xml:"ItemId"`
+	BillId             int64  `json:"BillId" xml:"BillId"`
+	ItemId             int64  `json:"ItemId" xml:"ItemId"`
 	BillCycle          string `json:"BillCycle" xml:"BillCycle"`
 	BizType            string `json:"BizType" xml:"BizType"`
-	OriginalAmount     int    `json:"OriginalAmount" xml:"OriginalAmount"`
-	PresentAmount      int    `json:"PresentAmount" xml:"PresentAmount"`
-	CanInvoiceAmount   int    `json:"CanInvoiceAmount" xml:"CanInvoiceAmount"`
-	InvoicedAmount     int    `json:"InvoicedAmount" xml:"InvoicedAmount"`
-	OffsetCostAmount   int    `json:"OffsetCostAmount" xml:"OffsetCostAmount"`
-	OffsetAcceptAmount int    `json:"OffsetAcceptAmount" xml:"OffsetAcceptAmount"`
+	OriginalAmount     int64  `json:"OriginalAmount" xml:"OriginalAmount"`
+	PresentAmount      int64  `json:"PresentAmount" xml:"PresentAmount"`
+	CanInvoiceAmount   int64  `json:"CanInvoiceAmount" xml:"CanInvoiceAmount"`
+	InvoicedAmount     int64  `json:"InvoicedAmount" xml:"InvoicedAmount"`
+	OffsetCostAmount   int64  `json:"OffsetCostAmount" xml:"OffsetCostAmount"`
+	OffsetAcceptAmount int64  `json:"OffsetAcceptAmount" xml:"OffsetAcceptAmount"`
 	Status             int    `json:"Status" xml:"Status"`
 	OpId               string `json:"OpId" xml:"OpId"`
 	Name               string `json:"Name" xml:"Name"`

+ 2 - 2
services/bssopenapi/struct_instance.go

@@ -22,7 +22,7 @@ type Instance struct {
 	PackageType         string   `json:"PackageType" xml:"PackageType"`
 	DeductType          string   `json:"DeductType" xml:"DeductType"`
 	CreateTime          string   `json:"CreateTime" xml:"CreateTime"`
-	OwnerId             int      `json:"OwnerId" xml:"OwnerId"`
+	OwnerId             int64    `json:"OwnerId" xml:"OwnerId"`
 	TotalAmount         string   `json:"TotalAmount" xml:"TotalAmount"`
 	RenewStatus         string   `json:"RenewStatus" xml:"RenewStatus"`
 	SubStatus           string   `json:"SubStatus" xml:"SubStatus"`
@@ -41,7 +41,7 @@ type Instance struct {
 	EffectiveTime       string   `json:"EffectiveTime" xml:"EffectiveTime"`
 	ExpiryTime          string   `json:"ExpiryTime" xml:"ExpiryTime"`
 	EndTime             string   `json:"EndTime" xml:"EndTime"`
-	SellerId            int      `json:"SellerId" xml:"SellerId"`
+	SellerId            int64    `json:"SellerId" xml:"SellerId"`
 	InstanceID          string   `json:"InstanceID" xml:"InstanceID"`
 	ReleaseTime         string   `json:"ReleaseTime" xml:"ReleaseTime"`
 	Status              string   `json:"Status" xml:"Status"`

+ 1 - 0
services/bssopenapi/struct_item.go

@@ -42,6 +42,7 @@ type Item struct {
 	Region                      string  `json:"Region" xml:"Region"`
 	PaymentAmount               float64 `json:"PaymentAmount" xml:"PaymentAmount"`
 	UsageEndTime                string  `json:"UsageEndTime" xml:"UsageEndTime"`
+	RoundDownDiscount           string  `json:"RoundDownDiscount" xml:"RoundDownDiscount"`
 	SolutionID                  string  `json:"SolutionID" xml:"SolutionID"`
 	ClearedTime                 string  `json:"ClearedTime" xml:"ClearedTime"`
 	PaymentTime                 string  `json:"PaymentTime" xml:"PaymentTime"`

+ 2 - 1
services/bssopenapi/struct_item_in_query_instance_bill.go

@@ -25,7 +25,7 @@ type ItemInQueryInstanceBill struct {
 	SubscriptionType          string  `json:"SubscriptionType" xml:"SubscriptionType"`
 	ProductName               string  `json:"ProductName" xml:"ProductName"`
 	ProductDetail             string  `json:"ProductDetail" xml:"ProductDetail"`
-	OwnerID                   int     `json:"OwnerID" xml:"OwnerID"`
+	OwnerID                   int64   `json:"OwnerID" xml:"OwnerID"`
 	BillingItem               string  `json:"BillingItem" xml:"BillingItem"`
 	ListPrice                 float64 `json:"ListPrice" xml:"ListPrice"`
 	ListPriceUnit             string  `json:"ListPriceUnit" xml:"ListPriceUnit"`
@@ -50,4 +50,5 @@ type ItemInQueryInstanceBill struct {
 	IntranetIP                string  `json:"IntranetIP" xml:"IntranetIP"`
 	Region                    string  `json:"Region" xml:"Region"`
 	Zone                      string  `json:"Zone" xml:"Zone"`
+	Item                      string  `json:"Item" xml:"Item"`
 }

+ 0 - 4
services/bssopenapi/struct_module.go

@@ -20,7 +20,6 @@ type Module struct {
 	MonthGaapDeductedByPrepaidCard   string     `json:"MonthGaapDeductedByPrepaidCard" xml:"MonthGaapDeductedByPrepaidCard"`
 	DeductedByCashCoupons            string     `json:"DeductedByCashCoupons" xml:"DeductedByCashCoupons"`
 	PayerAccount                     string     `json:"PayerAccount" xml:"PayerAccount"`
-	PriceUnit                        string     `json:"PriceUnit" xml:"PriceUnit"`
 	GaapPretaxAmountLocal            string     `json:"GaapPretaxAmountLocal" xml:"GaapPretaxAmountLocal"`
 	UsageStartDate                   string     `json:"UsageStartDate" xml:"UsageStartDate"`
 	MonthGaapPaymentAmount           string     `json:"MonthGaapPaymentAmount" xml:"MonthGaapPaymentAmount"`
@@ -38,7 +37,6 @@ type Module struct {
 	InstanceID                       string     `json:"InstanceID" xml:"InstanceID"`
 	UnallocatedPretaxAmount          string     `json:"UnallocatedPretaxAmount" xml:"UnallocatedPretaxAmount"`
 	PriceType                        string     `json:"PriceType" xml:"PriceType"`
-	Config                           string     `json:"Config" xml:"Config"`
 	GaapPricingDiscount              string     `json:"GaapPricingDiscount" xml:"GaapPricingDiscount"`
 	AccountingUnit                   string     `json:"AccountingUnit" xml:"AccountingUnit"`
 	MonthGaapPretaxAmount            string     `json:"MonthGaapPretaxAmount" xml:"MonthGaapPretaxAmount"`
@@ -70,11 +68,9 @@ type Module struct {
 	OrderType                        string     `json:"OrderType" xml:"OrderType"`
 	GaapPaymentAmount                string     `json:"GaapPaymentAmount" xml:"GaapPaymentAmount"`
 	MonthGaapDeductedByCoupons       string     `json:"MonthGaapDeductedByCoupons" xml:"MonthGaapDeductedByCoupons"`
-	PriceUnitQuantity                string     `json:"PriceUnitQuantity" xml:"PriceUnitQuantity"`
 	PretaxAmountLocal                string     `json:"PretaxAmountLocal" xml:"PretaxAmountLocal"`
 	BillType                         string     `json:"BillType" xml:"BillType"`
 	UnallocatedPaymentAmount         string     `json:"UnallocatedPaymentAmount" xml:"UnallocatedPaymentAmount"`
 	MonthGaapDeductedByCashCoupons   string     `json:"MonthGaapDeductedByCashCoupons" xml:"MonthGaapDeductedByCashCoupons"`
 	ConfigList                       ConfigList `json:"ConfigList" xml:"ConfigList"`
-	TierPrices                       TierPrices `json:"TierPrices" xml:"TierPrices"`
 }

+ 21 - 0
services/bssopenapi/struct_modules.go

@@ -0,0 +1,21 @@
+package bssopenapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Modules is a nested struct in bssopenapi response
+type Modules struct {
+	Module []Module `json:"Module" xml:"Module"`
+}

+ 1 - 1
services/bssopenapi/struct_prepaid_card.go

@@ -17,7 +17,7 @@ package bssopenapi
 
 // PrepaidCard is a nested struct in bssopenapi response
 type PrepaidCard struct {
-	PrepaidCardId       int    `json:"PrepaidCardId" xml:"PrepaidCardId"`
+	PrepaidCardId       int64  `json:"PrepaidCardId" xml:"PrepaidCardId"`
 	PrepaidCardNo       string `json:"PrepaidCardNo" xml:"PrepaidCardNo"`
 	GrantedTime         string `json:"GrantedTime" xml:"GrantedTime"`
 	EffectiveTime       string `json:"EffectiveTime" xml:"EffectiveTime"`

+ 1 - 1
services/bssopenapi/struct_promotion.go

@@ -17,6 +17,6 @@ package bssopenapi
 
 // Promotion is a nested struct in bssopenapi response
 type Promotion struct {
-	Id   int    `json:"Id" xml:"Id"`
+	Id   int64  `json:"Id" xml:"Id"`
 	Name string `json:"Name" xml:"Name"`
 }

+ 1 - 1
services/bssopenapi/struct_promotion_detail.go

@@ -17,7 +17,7 @@ package bssopenapi
 
 // PromotionDetail is a nested struct in bssopenapi response
 type PromotionDetail struct {
-	PromotionId   int    `json:"PromotionId" xml:"PromotionId"`
+	PromotionId   int64  `json:"PromotionId" xml:"PromotionId"`
 	PromotionName string `json:"PromotionName" xml:"PromotionName"`
 	PromotionDesc string `json:"PromotionDesc" xml:"PromotionDesc"`
 }