Browse Source

Generated 2015-11-01 for Market.

sdk-team 6 years ago
parent
commit
2364360847
79 changed files with 3858 additions and 0 deletions
  1. 3 0
      ChangeLog.txt
  2. 105 0
      services/market/activate_license.go
  3. 105 0
      services/market/bind_image_package.go
  4. 129 0
      services/market/client.go
  5. 106 0
      services/market/create_commodity.go
  6. 110 0
      services/market/create_order.go
  7. 107 0
      services/market/create_rate.go
  8. 104 0
      services/market/delete_commodity.go
  9. 118 0
      services/market/describe_commodities.go
  10. 105 0
      services/market/describe_commodity.go
  11. 122 0
      services/market/describe_instance.go
  12. 109 0
      services/market/describe_instances.go
  13. 104 0
      services/market/describe_license.go
  14. 122 0
      services/market/describe_order.go
  15. 108 0
      services/market/describe_price.go
  16. 121 0
      services/market/describe_product.go
  17. 116 0
      services/market/describe_products.go
  18. 118 0
      services/market/describe_rate.go
  19. 44 0
      services/market/endpoint.go
  20. 105 0
      services/market/notify_contract_event.go
  21. 104 0
      services/market/push_metering_data.go
  22. 106 0
      services/market/query_market_categories.go
  23. 107 0
      services/market/query_market_images.go
  24. 21 0
      services/market/struct_categories.go
  25. 24 0
      services/market/struct_category.go
  26. 21 0
      services/market/struct_child_categories.go
  27. 23 0
      services/market/struct_child_category.go
  28. 21 0
      services/market/struct_commodities.go
  29. 24 0
      services/market/struct_commodity.go
  30. 25 0
      services/market/struct_data.go
  31. 27 0
      services/market/struct_disk_device_mapping.go
  32. 21 0
      services/market/struct_disk_device_mappings.go
  33. 21 0
      services/market/struct_extend_array.go
  34. 24 0
      services/market/struct_extend_info.go
  35. 28 0
      services/market/struct_image.go
  36. 42 0
      services/market/struct_image_product.go
  37. 21 0
      services/market/struct_images.go
  38. 21 0
      services/market/struct_instance_ids_in_create_order.go
  39. 21 0
      services/market/struct_instance_ids_in_describe_order.go
  40. 37 0
      services/market/struct_instance_item.go
  41. 21 0
      services/market/struct_instance_items.go
  42. 32 0
      services/market/struct_license.go
  43. 22 0
      services/market/struct_license_attribute.go
  44. 24 0
      services/market/struct_module.go
  45. 21 0
      services/market/struct_modules_in_describe_instance.go
  46. 21 0
      services/market/struct_modules_in_describe_product.go
  47. 27 0
      services/market/struct_order.go
  48. 22 0
      services/market/struct_order_period.go
  49. 21 0
      services/market/struct_order_periods.go
  50. 22 0
      services/market/struct_pageable.go
  51. 22 0
      services/market/struct_price_info.go
  52. 25 0
      services/market/struct_product_extra.go
  53. 21 0
      services/market/struct_product_extras.go
  54. 35 0
      services/market/struct_product_item.go
  55. 21 0
      services/market/struct_product_items.go
  56. 27 0
      services/market/struct_product_sku.go
  57. 21 0
      services/market/struct_product_skus.go
  58. 23 0
      services/market/struct_promotion_rule.go
  59. 21 0
      services/market/struct_promotion_rules.go
  60. 21 0
      services/market/struct_properties_in_describe_instance.go
  61. 21 0
      services/market/struct_properties_in_describe_product.go
  62. 25 0
      services/market/struct_property.go
  63. 27 0
      services/market/struct_property_value.go
  64. 21 0
      services/market/struct_property_values_in_describe_instance.go
  65. 21 0
      services/market/struct_property_values_in_describe_product.go
  66. 23 0
      services/market/struct_quota.go
  67. 21 0
      services/market/struct_relational_data.go
  68. 21 0
      services/market/struct_result.go
  69. 23 0
      services/market/struct_rule.go
  70. 21 0
      services/market/struct_rule_id_set.go
  71. 21 0
      services/market/struct_rules.go
  72. 25 0
      services/market/struct_shop_info.go
  73. 21 0
      services/market/struct_sku_codes.go
  74. 21 0
      services/market/struct_supplier_telephones.go
  75. 21 0
      services/market/struct_telephones.go
  76. 22 0
      services/market/struct_wang_wang.go
  77. 21 0
      services/market/struct_wang_wangs.go
  78. 105 0
      services/market/update_commodity.go
  79. 107 0
      services/market/upload_commodity_file.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-09-05 Version: 1.60.140
+- Generated 2015-11-01 for `Market`.
+
 2019-09-05 Version: 1.60.139
 2019-09-05 Version: 1.60.139
 - Generated 2016-07-14 for `CloudAPI`.
 - Generated 2016-07-14 for `CloudAPI`.
 
 

+ 105 - 0
services/market/activate_license.go

@@ -0,0 +1,105 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ActivateLicense invokes the market.ActivateLicense API synchronously
+// api document: https://help.aliyun.com/api/market/activatelicense.html
+func (client *Client) ActivateLicense(request *ActivateLicenseRequest) (response *ActivateLicenseResponse, err error) {
+	response = CreateActivateLicenseResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ActivateLicenseWithChan invokes the market.ActivateLicense API asynchronously
+// api document: https://help.aliyun.com/api/market/activatelicense.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ActivateLicenseWithChan(request *ActivateLicenseRequest) (<-chan *ActivateLicenseResponse, <-chan error) {
+	responseChan := make(chan *ActivateLicenseResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ActivateLicense(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ActivateLicenseWithCallback invokes the market.ActivateLicense API asynchronously
+// api document: https://help.aliyun.com/api/market/activatelicense.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ActivateLicenseWithCallback(request *ActivateLicenseRequest, callback func(response *ActivateLicenseResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ActivateLicenseResponse
+		var err error
+		defer close(result)
+		response, err = client.ActivateLicense(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ActivateLicenseRequest is the request struct for api ActivateLicense
+type ActivateLicenseRequest struct {
+	*requests.RpcRequest
+	Identification string `position:"Query" name:"Identification"`
+	LicenseCode    string `position:"Query" name:"LicenseCode"`
+}
+
+// ActivateLicenseResponse is the response struct for api ActivateLicense
+type ActivateLicenseResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreateActivateLicenseRequest creates a request to invoke ActivateLicense API
+func CreateActivateLicenseRequest() (request *ActivateLicenseRequest) {
+	request = &ActivateLicenseRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "ActivateLicense", "yunmarket", "openAPI")
+	return
+}
+
+// CreateActivateLicenseResponse creates a response to parse from ActivateLicense response
+func CreateActivateLicenseResponse() (response *ActivateLicenseResponse) {
+	response = &ActivateLicenseResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/market/bind_image_package.go

@@ -0,0 +1,105 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// BindImagePackage invokes the market.BindImagePackage API synchronously
+// api document: https://help.aliyun.com/api/market/bindimagepackage.html
+func (client *Client) BindImagePackage(request *BindImagePackageRequest) (response *BindImagePackageResponse, err error) {
+	response = CreateBindImagePackageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BindImagePackageWithChan invokes the market.BindImagePackage API asynchronously
+// api document: https://help.aliyun.com/api/market/bindimagepackage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BindImagePackageWithChan(request *BindImagePackageRequest) (<-chan *BindImagePackageResponse, <-chan error) {
+	responseChan := make(chan *BindImagePackageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BindImagePackage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BindImagePackageWithCallback invokes the market.BindImagePackage API asynchronously
+// api document: https://help.aliyun.com/api/market/bindimagepackage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BindImagePackageWithCallback(request *BindImagePackageRequest, callback func(response *BindImagePackageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BindImagePackageResponse
+		var err error
+		defer close(result)
+		response, err = client.BindImagePackage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BindImagePackageRequest is the request struct for api BindImagePackage
+type BindImagePackageRequest struct {
+	*requests.RpcRequest
+	EcsInstanceId          string `position:"Query" name:"EcsInstanceId"`
+	ImagePackageInstanceId string `position:"Query" name:"ImagePackageInstanceId"`
+}
+
+// BindImagePackageResponse is the response struct for api BindImagePackage
+type BindImagePackageResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreateBindImagePackageRequest creates a request to invoke BindImagePackage API
+func CreateBindImagePackageRequest() (request *BindImagePackageRequest) {
+	request = &BindImagePackageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "BindImagePackage", "yunmarket", "openAPI")
+	return
+}
+
+// CreateBindImagePackageResponse creates a response to parse from BindImagePackage response
+func CreateBindImagePackageResponse() (response *BindImagePackageResponse) {
+	response = &BindImagePackageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 129 - 0
services/market/client.go

@@ -0,0 +1,129 @@
+package market
+
+//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.
+
+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"
+)
+
+// Client is the sdk client struct, each func corresponds to an OpenAPI
+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
+}
+
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
+// this is the common api to create a sdk client
+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
+}
+
+// NewClientWithAccessKey is a shortcut to create sdk client with accesskey
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithStsToken is a shortcut to create sdk client with sts token
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+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
+}
+
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+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
+}
+
+// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
+	return
+}
+
+// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+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
+}

+ 106 - 0
services/market/create_commodity.go

@@ -0,0 +1,106 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateCommodity invokes the market.CreateCommodity API synchronously
+// api document: https://help.aliyun.com/api/market/createcommodity.html
+func (client *Client) CreateCommodity(request *CreateCommodityRequest) (response *CreateCommodityResponse, err error) {
+	response = CreateCreateCommodityResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateCommodityWithChan invokes the market.CreateCommodity API asynchronously
+// api document: https://help.aliyun.com/api/market/createcommodity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateCommodityWithChan(request *CreateCommodityRequest) (<-chan *CreateCommodityResponse, <-chan error) {
+	responseChan := make(chan *CreateCommodityResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateCommodity(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateCommodityWithCallback invokes the market.CreateCommodity API asynchronously
+// api document: https://help.aliyun.com/api/market/createcommodity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateCommodityWithCallback(request *CreateCommodityRequest, callback func(response *CreateCommodityResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateCommodityResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateCommodity(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateCommodityRequest is the request struct for api CreateCommodity
+type CreateCommodityRequest struct {
+	*requests.RpcRequest
+	ApplicationId string `position:"Query" name:"ApplicationId"`
+	Content       string `position:"Body" name:"Content"`
+}
+
+// CreateCommodityResponse is the response struct for api CreateCommodity
+type CreateCommodityResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	Success   bool      `json:"Success" xml:"Success"`
+	Commodity Commodity `json:"Commodity" xml:"Commodity"`
+}
+
+// CreateCreateCommodityRequest creates a request to invoke CreateCommodity API
+func CreateCreateCommodityRequest() (request *CreateCommodityRequest) {
+	request = &CreateCommodityRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "CreateCommodity", "yunmarket", "openAPI")
+	return
+}
+
+// CreateCreateCommodityResponse creates a response to parse from CreateCommodity response
+func CreateCreateCommodityResponse() (response *CreateCommodityResponse) {
+	response = &CreateCommodityResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/market/create_order.go

@@ -0,0 +1,110 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateOrder invokes the market.CreateOrder API synchronously
+// api document: https://help.aliyun.com/api/market/createorder.html
+func (client *Client) CreateOrder(request *CreateOrderRequest) (response *CreateOrderResponse, err error) {
+	response = CreateCreateOrderResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateOrderWithChan invokes the market.CreateOrder API asynchronously
+// api document: https://help.aliyun.com/api/market/createorder.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateOrderWithChan(request *CreateOrderRequest) (<-chan *CreateOrderResponse, <-chan error) {
+	responseChan := make(chan *CreateOrderResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateOrder(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateOrderWithCallback invokes the market.CreateOrder API asynchronously
+// api document: https://help.aliyun.com/api/market/createorder.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateOrderWithCallback(request *CreateOrderRequest, callback func(response *CreateOrderResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateOrderResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateOrder(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateOrderRequest is the request struct for api CreateOrder
+type CreateOrderRequest struct {
+	*requests.RpcRequest
+	OrderSouce  string `position:"Query" name:"OrderSouce"`
+	Commodity   string `position:"Query" name:"Commodity"`
+	ClientToken string `position:"Query" name:"ClientToken"`
+	OwnerId     string `position:"Query" name:"OwnerId"`
+	PaymentType string `position:"Query" name:"PaymentType"`
+	OrderType   string `position:"Query" name:"OrderType"`
+}
+
+// CreateOrderResponse is the response struct for api CreateOrder
+type CreateOrderResponse struct {
+	*responses.BaseResponse
+	RequestId   string                   `json:"RequestId" xml:"RequestId"`
+	OrderId     string                   `json:"OrderId" xml:"OrderId"`
+	InstanceIds InstanceIdsInCreateOrder `json:"InstanceIds" xml:"InstanceIds"`
+}
+
+// CreateCreateOrderRequest creates a request to invoke CreateOrder API
+func CreateCreateOrderRequest() (request *CreateOrderRequest) {
+	request = &CreateOrderRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "CreateOrder", "yunmarket", "openAPI")
+	return
+}
+
+// CreateCreateOrderResponse creates a response to parse from CreateOrder response
+func CreateCreateOrderResponse() (response *CreateOrderResponse) {
+	response = &CreateOrderResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/market/create_rate.go

@@ -0,0 +1,107 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateRate invokes the market.CreateRate API synchronously
+// api document: https://help.aliyun.com/api/market/createrate.html
+func (client *Client) CreateRate(request *CreateRateRequest) (response *CreateRateResponse, err error) {
+	response = CreateCreateRateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateRateWithChan invokes the market.CreateRate API asynchronously
+// api document: https://help.aliyun.com/api/market/createrate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateRateWithChan(request *CreateRateRequest) (<-chan *CreateRateResponse, <-chan error) {
+	responseChan := make(chan *CreateRateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateRate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateRateWithCallback invokes the market.CreateRate API asynchronously
+// api document: https://help.aliyun.com/api/market/createrate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateRateWithCallback(request *CreateRateRequest, callback func(response *CreateRateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateRateResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateRate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateRateRequest is the request struct for api CreateRate
+type CreateRateRequest struct {
+	*requests.RpcRequest
+	Score     string `position:"Query" name:"Score"`
+	OrderId   string `position:"Query" name:"OrderId"`
+	RequestId string `position:"Query" name:"RequestId"`
+	Content   string `position:"Query" name:"Content"`
+}
+
+// CreateRateResponse is the response struct for api CreateRate
+type CreateRateResponse struct {
+	*responses.BaseResponse
+	Id        int64  `json:"Id" xml:"Id"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateCreateRateRequest creates a request to invoke CreateRate API
+func CreateCreateRateRequest() (request *CreateRateRequest) {
+	request = &CreateRateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "CreateRate", "yunmarket", "openAPI")
+	return
+}
+
+// CreateCreateRateResponse creates a response to parse from CreateRate response
+func CreateCreateRateResponse() (response *CreateRateResponse) {
+	response = &CreateRateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/market/delete_commodity.go

@@ -0,0 +1,104 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DeleteCommodity invokes the market.DeleteCommodity API synchronously
+// api document: https://help.aliyun.com/api/market/deletecommodity.html
+func (client *Client) DeleteCommodity(request *DeleteCommodityRequest) (response *DeleteCommodityResponse, err error) {
+	response = CreateDeleteCommodityResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteCommodityWithChan invokes the market.DeleteCommodity API asynchronously
+// api document: https://help.aliyun.com/api/market/deletecommodity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteCommodityWithChan(request *DeleteCommodityRequest) (<-chan *DeleteCommodityResponse, <-chan error) {
+	responseChan := make(chan *DeleteCommodityResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteCommodity(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteCommodityWithCallback invokes the market.DeleteCommodity API asynchronously
+// api document: https://help.aliyun.com/api/market/deletecommodity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteCommodityWithCallback(request *DeleteCommodityRequest, callback func(response *DeleteCommodityResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteCommodityResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteCommodity(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteCommodityRequest is the request struct for api DeleteCommodity
+type DeleteCommodityRequest struct {
+	*requests.RpcRequest
+	CommodityId string `position:"Query" name:"CommodityId"`
+}
+
+// DeleteCommodityResponse is the response struct for api DeleteCommodity
+type DeleteCommodityResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreateDeleteCommodityRequest creates a request to invoke DeleteCommodity API
+func CreateDeleteCommodityRequest() (request *DeleteCommodityRequest) {
+	request = &DeleteCommodityRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DeleteCommodity", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDeleteCommodityResponse creates a response to parse from DeleteCommodity response
+func CreateDeleteCommodityResponse() (response *DeleteCommodityResponse) {
+	response = &DeleteCommodityResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 118 - 0
services/market/describe_commodities.go

@@ -0,0 +1,118 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeCommodities invokes the market.DescribeCommodities API synchronously
+// api document: https://help.aliyun.com/api/market/describecommodities.html
+func (client *Client) DescribeCommodities(request *DescribeCommoditiesRequest) (response *DescribeCommoditiesResponse, err error) {
+	response = CreateDescribeCommoditiesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCommoditiesWithChan invokes the market.DescribeCommodities API asynchronously
+// api document: https://help.aliyun.com/api/market/describecommodities.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCommoditiesWithChan(request *DescribeCommoditiesRequest) (<-chan *DescribeCommoditiesResponse, <-chan error) {
+	responseChan := make(chan *DescribeCommoditiesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCommodities(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCommoditiesWithCallback invokes the market.DescribeCommodities API asynchronously
+// api document: https://help.aliyun.com/api/market/describecommodities.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCommoditiesWithCallback(request *DescribeCommoditiesRequest, callback func(response *DescribeCommoditiesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCommoditiesResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCommodities(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCommoditiesRequest is the request struct for api DescribeCommodities
+type DescribeCommoditiesRequest struct {
+	*requests.RpcRequest
+	CommodityGmtModifiedTo   string           `position:"Query" name:"CommodityGmtModifiedTo"`
+	CommodityGmtModifiedFrom string           `position:"Query" name:"CommodityGmtModifiedFrom"`
+	CommodityId              string           `position:"Query" name:"CommodityId"`
+	CommodityGmtPublishFrom  string           `position:"Query" name:"CommodityGmtPublishFrom"`
+	CommodityStatuses        string           `position:"Query" name:"CommodityStatuses"`
+	PageNumber               requests.Integer `position:"Query" name:"PageNumber"`
+	CommodityGmtCreatedFrom  string           `position:"Query" name:"CommodityGmtCreatedFrom"`
+	CommodityIds             string           `position:"Query" name:"CommodityIds"`
+	CommodityGmtCreatedTo    string           `position:"Query" name:"CommodityGmtCreatedTo"`
+	PageSize                 requests.Integer `position:"Query" name:"PageSize"`
+	CommodityGmtPublishTo    string           `position:"Query" name:"CommodityGmtPublishTo"`
+	CommodityAuditStatuses   string           `position:"Query" name:"CommodityAuditStatuses"`
+	Properties               string           `position:"Query" name:"Properties"`
+	CommodityCategoryIds     string           `position:"Query" name:"CommodityCategoryIds"`
+}
+
+// DescribeCommoditiesResponse is the response struct for api DescribeCommodities
+type DescribeCommoditiesResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateDescribeCommoditiesRequest creates a request to invoke DescribeCommodities API
+func CreateDescribeCommoditiesRequest() (request *DescribeCommoditiesRequest) {
+	request = &DescribeCommoditiesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeCommodities", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeCommoditiesResponse creates a response to parse from DescribeCommodities response
+func CreateDescribeCommoditiesResponse() (response *DescribeCommoditiesResponse) {
+	response = &DescribeCommoditiesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/market/describe_commodity.go

@@ -0,0 +1,105 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeCommodity invokes the market.DescribeCommodity API synchronously
+// api document: https://help.aliyun.com/api/market/describecommodity.html
+func (client *Client) DescribeCommodity(request *DescribeCommodityRequest) (response *DescribeCommodityResponse, err error) {
+	response = CreateDescribeCommodityResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCommodityWithChan invokes the market.DescribeCommodity API asynchronously
+// api document: https://help.aliyun.com/api/market/describecommodity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCommodityWithChan(request *DescribeCommodityRequest) (<-chan *DescribeCommodityResponse, <-chan error) {
+	responseChan := make(chan *DescribeCommodityResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCommodity(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCommodityWithCallback invokes the market.DescribeCommodity API asynchronously
+// api document: https://help.aliyun.com/api/market/describecommodity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCommodityWithCallback(request *DescribeCommodityRequest, callback func(response *DescribeCommodityResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCommodityResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCommodity(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCommodityRequest is the request struct for api DescribeCommodity
+type DescribeCommodityRequest struct {
+	*requests.RpcRequest
+	CommodityId string `position:"Query" name:"CommodityId"`
+}
+
+// DescribeCommodityResponse is the response struct for api DescribeCommodity
+type DescribeCommodityResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	Success   bool      `json:"Success" xml:"Success"`
+	Commodity Commodity `json:"Commodity" xml:"Commodity"`
+}
+
+// CreateDescribeCommodityRequest creates a request to invoke DescribeCommodity API
+func CreateDescribeCommodityRequest() (request *DescribeCommodityRequest) {
+	request = &DescribeCommodityRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeCommodity", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeCommodityResponse creates a response to parse from DescribeCommodity response
+func CreateDescribeCommodityResponse() (response *DescribeCommodityResponse) {
+	response = &DescribeCommodityResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 122 - 0
services/market/describe_instance.go

@@ -0,0 +1,122 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeInstance invokes the market.DescribeInstance API synchronously
+// api document: https://help.aliyun.com/api/market/describeinstance.html
+func (client *Client) DescribeInstance(request *DescribeInstanceRequest) (response *DescribeInstanceResponse, err error) {
+	response = CreateDescribeInstanceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeInstanceWithChan invokes the market.DescribeInstance API asynchronously
+// api document: https://help.aliyun.com/api/market/describeinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstanceWithChan(request *DescribeInstanceRequest) (<-chan *DescribeInstanceResponse, <-chan error) {
+	responseChan := make(chan *DescribeInstanceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeInstance(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeInstanceWithCallback invokes the market.DescribeInstance API asynchronously
+// api document: https://help.aliyun.com/api/market/describeinstance.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstanceWithCallback(request *DescribeInstanceRequest, callback func(response *DescribeInstanceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeInstanceResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeInstance(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeInstanceRequest is the request struct for api DescribeInstance
+type DescribeInstanceRequest struct {
+	*requests.RpcRequest
+	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
+	InstanceId string           `position:"Query" name:"InstanceId"`
+	OrderType  string           `position:"Query" name:"OrderType"`
+}
+
+// DescribeInstanceResponse is the response struct for api DescribeInstance
+type DescribeInstanceResponse struct {
+	*responses.BaseResponse
+	InstanceId     int64                     `json:"InstanceId" xml:"InstanceId"`
+	OrderId        int64                     `json:"OrderId" xml:"OrderId"`
+	SupplierName   string                    `json:"SupplierName" xml:"SupplierName"`
+	ProductCode    string                    `json:"ProductCode" xml:"ProductCode"`
+	ProductSkuCode string                    `json:"ProductSkuCode" xml:"ProductSkuCode"`
+	ProductName    string                    `json:"ProductName" xml:"ProductName"`
+	ProductType    string                    `json:"ProductType" xml:"ProductType"`
+	Status         string                    `json:"Status" xml:"Status"`
+	BeganOn        int64                     `json:"BeganOn" xml:"BeganOn"`
+	EndOn          int64                     `json:"EndOn" xml:"EndOn"`
+	CreatedOn      int64                     `json:"CreatedOn" xml:"CreatedOn"`
+	ExtendJson     string                    `json:"ExtendJson" xml:"ExtendJson"`
+	HostJson       string                    `json:"HostJson" xml:"HostJson"`
+	AppJson        string                    `json:"AppJson" xml:"AppJson"`
+	ComponentJson  string                    `json:"ComponentJson" xml:"ComponentJson"`
+	Constraints    string                    `json:"Constraints" xml:"Constraints"`
+	RelationalData RelationalData            `json:"RelationalData" xml:"RelationalData"`
+	Modules        ModulesInDescribeInstance `json:"Modules" xml:"Modules"`
+}
+
+// CreateDescribeInstanceRequest creates a request to invoke DescribeInstance API
+func CreateDescribeInstanceRequest() (request *DescribeInstanceRequest) {
+	request = &DescribeInstanceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeInstance", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeInstanceResponse creates a response to parse from DescribeInstance response
+func CreateDescribeInstanceResponse() (response *DescribeInstanceResponse) {
+	response = &DescribeInstanceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/market/describe_instances.go

@@ -0,0 +1,109 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeInstances invokes the market.DescribeInstances API synchronously
+// api document: https://help.aliyun.com/api/market/describeinstances.html
+func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) {
+	response = CreateDescribeInstancesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeInstancesWithChan invokes the market.DescribeInstances API asynchronously
+// api document: https://help.aliyun.com/api/market/describeinstances.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error) {
+	responseChan := make(chan *DescribeInstancesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeInstances(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeInstancesWithCallback invokes the market.DescribeInstances API asynchronously
+// api document: https://help.aliyun.com/api/market/describeinstances.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, callback func(response *DescribeInstancesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeInstancesResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeInstances(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeInstancesRequest is the request struct for api DescribeInstances
+type DescribeInstancesRequest struct {
+	*requests.RpcRequest
+	PageSize    requests.Integer `position:"Query" name:"PageSize"`
+	PageNumber  requests.Integer `position:"Query" name:"PageNumber"`
+	ProductType string           `position:"Query" name:"ProductType"`
+}
+
+// DescribeInstancesResponse is the response struct for api DescribeInstances
+type DescribeInstancesResponse struct {
+	*responses.BaseResponse
+	RequestId     string        `json:"RequestId" xml:"RequestId"`
+	PageNumber    int           `json:"PageNumber" xml:"PageNumber"`
+	PageSize      int           `json:"PageSize" xml:"PageSize"`
+	TotalCount    int           `json:"TotalCount" xml:"TotalCount"`
+	InstanceItems InstanceItems `json:"InstanceItems" xml:"InstanceItems"`
+}
+
+// CreateDescribeInstancesRequest creates a request to invoke DescribeInstances API
+func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest) {
+	request = &DescribeInstancesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeInstances", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeInstancesResponse creates a response to parse from DescribeInstances response
+func CreateDescribeInstancesResponse() (response *DescribeInstancesResponse) {
+	response = &DescribeInstancesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/market/describe_license.go

@@ -0,0 +1,104 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeLicense invokes the market.DescribeLicense API synchronously
+// api document: https://help.aliyun.com/api/market/describelicense.html
+func (client *Client) DescribeLicense(request *DescribeLicenseRequest) (response *DescribeLicenseResponse, err error) {
+	response = CreateDescribeLicenseResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeLicenseWithChan invokes the market.DescribeLicense API asynchronously
+// api document: https://help.aliyun.com/api/market/describelicense.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLicenseWithChan(request *DescribeLicenseRequest) (<-chan *DescribeLicenseResponse, <-chan error) {
+	responseChan := make(chan *DescribeLicenseResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeLicense(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeLicenseWithCallback invokes the market.DescribeLicense API asynchronously
+// api document: https://help.aliyun.com/api/market/describelicense.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLicenseWithCallback(request *DescribeLicenseRequest, callback func(response *DescribeLicenseResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeLicenseResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeLicense(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeLicenseRequest is the request struct for api DescribeLicense
+type DescribeLicenseRequest struct {
+	*requests.RpcRequest
+	LicenseCode string `position:"Query" name:"LicenseCode"`
+}
+
+// DescribeLicenseResponse is the response struct for api DescribeLicense
+type DescribeLicenseResponse struct {
+	*responses.BaseResponse
+	RequestId string  `json:"RequestId" xml:"RequestId"`
+	License   License `json:"License" xml:"License"`
+}
+
+// CreateDescribeLicenseRequest creates a request to invoke DescribeLicense API
+func CreateDescribeLicenseRequest() (request *DescribeLicenseRequest) {
+	request = &DescribeLicenseRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeLicense", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeLicenseResponse creates a response to parse from DescribeLicense response
+func CreateDescribeLicenseResponse() (response *DescribeLicenseResponse) {
+	response = &DescribeLicenseResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 122 - 0
services/market/describe_order.go

@@ -0,0 +1,122 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeOrder invokes the market.DescribeOrder API synchronously
+// api document: https://help.aliyun.com/api/market/describeorder.html
+func (client *Client) DescribeOrder(request *DescribeOrderRequest) (response *DescribeOrderResponse, err error) {
+	response = CreateDescribeOrderResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeOrderWithChan invokes the market.DescribeOrder API asynchronously
+// api document: https://help.aliyun.com/api/market/describeorder.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeOrderWithChan(request *DescribeOrderRequest) (<-chan *DescribeOrderResponse, <-chan error) {
+	responseChan := make(chan *DescribeOrderResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeOrder(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeOrderWithCallback invokes the market.DescribeOrder API asynchronously
+// api document: https://help.aliyun.com/api/market/describeorder.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeOrderWithCallback(request *DescribeOrderRequest, callback func(response *DescribeOrderResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeOrderResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeOrder(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeOrderRequest is the request struct for api DescribeOrder
+type DescribeOrderRequest struct {
+	*requests.RpcRequest
+	OrderId string `position:"Query" name:"OrderId"`
+}
+
+// DescribeOrderResponse is the response struct for api DescribeOrder
+type DescribeOrderResponse struct {
+	*responses.BaseResponse
+	OrderId             int64                      `json:"OrderId" xml:"OrderId"`
+	AliUid              int64                      `json:"AliUid" xml:"AliUid"`
+	SupplierCompanyName string                     `json:"SupplierCompanyName" xml:"SupplierCompanyName"`
+	ProductCode         string                     `json:"ProductCode" xml:"ProductCode"`
+	ProductSkuCode      string                     `json:"ProductSkuCode" xml:"ProductSkuCode"`
+	ProductName         string                     `json:"ProductName" xml:"ProductName"`
+	PeriodType          string                     `json:"PeriodType" xml:"PeriodType"`
+	Quantity            int                        `json:"Quantity" xml:"Quantity"`
+	AccountQuantity     int64                      `json:"AccountQuantity" xml:"AccountQuantity"`
+	OrderType           string                     `json:"OrderType" xml:"OrderType"`
+	OrderStatus         string                     `json:"OrderStatus" xml:"OrderStatus"`
+	PayStatus           string                     `json:"PayStatus" xml:"PayStatus"`
+	PaidOn              int64                      `json:"PaidOn" xml:"PaidOn"`
+	CreatedOn           int64                      `json:"CreatedOn" xml:"CreatedOn"`
+	OriginalPrice       float64                    `json:"OriginalPrice" xml:"OriginalPrice"`
+	TotalPrice          float64                    `json:"TotalPrice" xml:"TotalPrice"`
+	PaymentPrice        float64                    `json:"PaymentPrice" xml:"PaymentPrice"`
+	CouponPrice         float64                    `json:"CouponPrice" xml:"CouponPrice"`
+	SupplierTelephones  SupplierTelephones         `json:"SupplierTelephones" xml:"SupplierTelephones"`
+	InstanceIds         InstanceIdsInDescribeOrder `json:"InstanceIds" xml:"InstanceIds"`
+}
+
+// CreateDescribeOrderRequest creates a request to invoke DescribeOrder API
+func CreateDescribeOrderRequest() (request *DescribeOrderRequest) {
+	request = &DescribeOrderRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeOrder", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeOrderResponse creates a response to parse from DescribeOrder response
+func CreateDescribeOrderResponse() (response *DescribeOrderResponse) {
+	response = &DescribeOrderResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/market/describe_price.go

@@ -0,0 +1,108 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribePrice invokes the market.DescribePrice API synchronously
+// api document: https://help.aliyun.com/api/market/describeprice.html
+func (client *Client) DescribePrice(request *DescribePriceRequest) (response *DescribePriceResponse, err error) {
+	response = CreateDescribePriceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribePriceWithChan invokes the market.DescribePrice API asynchronously
+// api document: https://help.aliyun.com/api/market/describeprice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePriceWithChan(request *DescribePriceRequest) (<-chan *DescribePriceResponse, <-chan error) {
+	responseChan := make(chan *DescribePriceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribePrice(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribePriceWithCallback invokes the market.DescribePrice API asynchronously
+// api document: https://help.aliyun.com/api/market/describeprice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePriceWithCallback(request *DescribePriceRequest, callback func(response *DescribePriceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribePriceResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribePrice(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribePriceRequest is the request struct for api DescribePrice
+type DescribePriceRequest struct {
+	*requests.RpcRequest
+	Commodity string `position:"Query" name:"Commodity"`
+	OrderType string `position:"Query" name:"OrderType"`
+}
+
+// DescribePriceResponse is the response struct for api DescribePrice
+type DescribePriceResponse struct {
+	*responses.BaseResponse
+	ProductCode    string         `json:"ProductCode" xml:"ProductCode"`
+	OriginalPrice  float64        `json:"OriginalPrice" xml:"OriginalPrice"`
+	TradePrice     float64        `json:"TradePrice" xml:"TradePrice"`
+	DiscountPrice  float64        `json:"DiscountPrice" xml:"DiscountPrice"`
+	PromotionRules PromotionRules `json:"PromotionRules" xml:"PromotionRules"`
+}
+
+// CreateDescribePriceRequest creates a request to invoke DescribePrice API
+func CreateDescribePriceRequest() (request *DescribePriceRequest) {
+	request = &DescribePriceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribePrice", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribePriceResponse creates a response to parse from DescribePrice response
+func CreateDescribePriceResponse() (response *DescribePriceResponse) {
+	response = &DescribePriceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 121 - 0
services/market/describe_product.go

@@ -0,0 +1,121 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeProduct invokes the market.DescribeProduct API synchronously
+// api document: https://help.aliyun.com/api/market/describeproduct.html
+func (client *Client) DescribeProduct(request *DescribeProductRequest) (response *DescribeProductResponse, err error) {
+	response = CreateDescribeProductResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeProductWithChan invokes the market.DescribeProduct API asynchronously
+// api document: https://help.aliyun.com/api/market/describeproduct.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProductWithChan(request *DescribeProductRequest) (<-chan *DescribeProductResponse, <-chan error) {
+	responseChan := make(chan *DescribeProductResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeProduct(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeProductWithCallback invokes the market.DescribeProduct API asynchronously
+// api document: https://help.aliyun.com/api/market/describeproduct.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProductWithCallback(request *DescribeProductRequest, callback func(response *DescribeProductResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeProductResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeProduct(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeProductRequest is the request struct for api DescribeProduct
+type DescribeProductRequest struct {
+	*requests.RpcRequest
+	Code       string           `position:"Query" name:"Code"`
+	QueryDraft requests.Boolean `position:"Query" name:"QueryDraft"`
+	AliUid     string           `position:"Query" name:"AliUid"`
+}
+
+// DescribeProductResponse is the response struct for api DescribeProduct
+type DescribeProductResponse struct {
+	*responses.BaseResponse
+	Code             string        `json:"Code" xml:"Code"`
+	Name             string        `json:"Name" xml:"Name"`
+	Type             string        `json:"Type" xml:"Type"`
+	PicUrl           string        `json:"PicUrl" xml:"PicUrl"`
+	Description      string        `json:"Description" xml:"Description"`
+	ShortDescription string        `json:"ShortDescription" xml:"ShortDescription"`
+	UseCount         int64         `json:"UseCount" xml:"UseCount"`
+	Score            float64       `json:"Score" xml:"Score"`
+	Status           string        `json:"Status" xml:"Status"`
+	AuditStatus      string        `json:"AuditStatus" xml:"AuditStatus"`
+	AuditFailMsg     string        `json:"AuditFailMsg" xml:"AuditFailMsg"`
+	AuditTime        int64         `json:"AuditTime" xml:"AuditTime"`
+	GmtCreated       int64         `json:"GmtCreated" xml:"GmtCreated"`
+	GmtModified      int64         `json:"GmtModified" xml:"GmtModified"`
+	ShopInfo         ShopInfo      `json:"ShopInfo" xml:"ShopInfo"`
+	ProductSkus      ProductSkus   `json:"ProductSkus" xml:"ProductSkus"`
+	ProductExtras    ProductExtras `json:"ProductExtras" xml:"ProductExtras"`
+}
+
+// CreateDescribeProductRequest creates a request to invoke DescribeProduct API
+func CreateDescribeProductRequest() (request *DescribeProductRequest) {
+	request = &DescribeProductRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeProduct", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeProductResponse creates a response to parse from DescribeProduct response
+func CreateDescribeProductResponse() (response *DescribeProductResponse) {
+	response = &DescribeProductResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 116 - 0
services/market/describe_products.go

@@ -0,0 +1,116 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeProducts invokes the market.DescribeProducts API synchronously
+// api document: https://help.aliyun.com/api/market/describeproducts.html
+func (client *Client) DescribeProducts(request *DescribeProductsRequest) (response *DescribeProductsResponse, err error) {
+	response = CreateDescribeProductsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeProductsWithChan invokes the market.DescribeProducts API asynchronously
+// api document: https://help.aliyun.com/api/market/describeproducts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProductsWithChan(request *DescribeProductsRequest) (<-chan *DescribeProductsResponse, <-chan error) {
+	responseChan := make(chan *DescribeProductsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeProducts(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeProductsWithCallback invokes the market.DescribeProducts API asynchronously
+// api document: https://help.aliyun.com/api/market/describeproducts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProductsWithCallback(request *DescribeProductsRequest, callback func(response *DescribeProductsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeProductsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeProducts(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeProductsRequest is the request struct for api DescribeProducts
+type DescribeProductsRequest struct {
+	*requests.RpcRequest
+	Filter     *[]DescribeProductsFilter `position:"Query" name:"Filter"  type:"Repeated"`
+	SearchTerm string                    `position:"Query" name:"SearchTerm"`
+	PageSize   requests.Integer          `position:"Query" name:"PageSize"`
+	PageNumber requests.Integer          `position:"Query" name:"PageNumber"`
+}
+
+// DescribeProductsFilter is a repeated param struct in DescribeProductsRequest
+type DescribeProductsFilter struct {
+	Value string `name:"Value"`
+	Key   string `name:"Key"`
+}
+
+// DescribeProductsResponse is the response struct for api DescribeProducts
+type DescribeProductsResponse struct {
+	*responses.BaseResponse
+	RequestId    string       `json:"RequestId" xml:"RequestId"`
+	PageNumber   int          `json:"PageNumber" xml:"PageNumber"`
+	PageSize     int          `json:"PageSize" xml:"PageSize"`
+	TotalCount   int          `json:"TotalCount" xml:"TotalCount"`
+	ProductItems ProductItems `json:"ProductItems" xml:"ProductItems"`
+}
+
+// CreateDescribeProductsRequest creates a request to invoke DescribeProducts API
+func CreateDescribeProductsRequest() (request *DescribeProductsRequest) {
+	request = &DescribeProductsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeProducts", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeProductsResponse creates a response to parse from DescribeProducts response
+func CreateDescribeProductsResponse() (response *DescribeProductsResponse) {
+	response = &DescribeProductsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 118 - 0
services/market/describe_rate.go

@@ -0,0 +1,118 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeRate invokes the market.DescribeRate API synchronously
+// api document: https://help.aliyun.com/api/market/describerate.html
+func (client *Client) DescribeRate(request *DescribeRateRequest) (response *DescribeRateResponse, err error) {
+	response = CreateDescribeRateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRateWithChan invokes the market.DescribeRate API asynchronously
+// api document: https://help.aliyun.com/api/market/describerate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRateWithChan(request *DescribeRateRequest) (<-chan *DescribeRateResponse, <-chan error) {
+	responseChan := make(chan *DescribeRateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRateWithCallback invokes the market.DescribeRate API asynchronously
+// api document: https://help.aliyun.com/api/market/describerate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRateWithCallback(request *DescribeRateRequest, callback func(response *DescribeRateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRateResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRateRequest is the request struct for api DescribeRate
+type DescribeRateRequest struct {
+	*requests.RpcRequest
+	OrderId string `position:"Query" name:"OrderId"`
+}
+
+// DescribeRateResponse is the response struct for api DescribeRate
+type DescribeRateResponse struct {
+	*responses.BaseResponse
+	Id                       int64  `json:"Id" xml:"Id"`
+	OrderId                  string `json:"OrderId" xml:"OrderId"`
+	InstanceId               string `json:"InstanceId" xml:"InstanceId"`
+	AliUid                   int64  `json:"AliUid" xml:"AliUid"`
+	ProductId                string `json:"ProductId" xml:"ProductId"`
+	Score                    string `json:"Score" xml:"Score"`
+	Content                  string `json:"Content" xml:"Content"`
+	GmtCreated               int64  `json:"GmtCreated" xml:"GmtCreated"`
+	Explaintion              string `json:"Explaintion" xml:"Explaintion"`
+	GmtExplaintion           int64  `json:"GmtExplaintion" xml:"GmtExplaintion"`
+	AdditionalContent        string `json:"AdditionalContent" xml:"AdditionalContent"`
+	GmtAdditional            int64  `json:"GmtAdditional" xml:"GmtAdditional"`
+	AdditionalExplaintion    string `json:"AdditionalExplaintion" xml:"AdditionalExplaintion"`
+	GmtAdditionalExplaintion int64  `json:"GmtAdditionalExplaintion" xml:"GmtAdditionalExplaintion"`
+	Type                     string `json:"Type" xml:"Type"`
+	RequestId                string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDescribeRateRequest creates a request to invoke DescribeRate API
+func CreateDescribeRateRequest() (request *DescribeRateRequest) {
+	request = &DescribeRateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "DescribeRate", "yunmarket", "openAPI")
+	return
+}
+
+// CreateDescribeRateResponse creates a response to parse from DescribeRate response
+func CreateDescribeRateResponse() (response *DescribeRateResponse) {
+	response = &DescribeRateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 44 - 0
services/market/endpoint.go

@@ -0,0 +1,44 @@
+package market
+
+// 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":           "market.aliyuncs.com",
+			"cn-beijing":            "market.aliyuncs.com",
+			"ap-south-1":            "market.ap-southeast-1.aliyuncs.com",
+			"eu-west-1":             "market.ap-southeast-1.aliyuncs.com",
+			"ap-northeast-1":        "market.ap-southeast-1.aliyuncs.com",
+			"cn-shenzhen-finance-1": "market.aliyuncs.com",
+			"me-east-1":             "market.ap-southeast-1.aliyuncs.com",
+			"cn-chengdu":            "market.aliyuncs.com",
+			"cn-north-2-gov-1":      "market.aliyuncs.com",
+			"cn-qingdao":            "market.aliyuncs.com",
+			"cn-shanghai":           "market.aliyuncs.com",
+			"cn-shanghai-finance-1": "market.aliyuncs.com",
+			"cn-hongkong":           "market.aliyuncs.com",
+			"cn-hangzhou-finance":   "market.aliyuncs.com",
+			"ap-southeast-2":        "market.ap-southeast-1.aliyuncs.com",
+			"ap-southeast-3":        "market.ap-southeast-1.aliyuncs.com",
+			"eu-central-1":          "market.ap-southeast-1.aliyuncs.com",
+			"cn-huhehaote":          "market.aliyuncs.com",
+			"ap-southeast-5":        "market.ap-southeast-1.aliyuncs.com",
+			"us-east-1":             "market.ap-southeast-1.aliyuncs.com",
+			"cn-zhangjiakou":        "market.aliyuncs.com",
+			"us-west-1":             "market.ap-southeast-1.aliyuncs.com",
+			"cn-hangzhou":           "market.aliyuncs.com",
+		}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 105 - 0
services/market/notify_contract_event.go

@@ -0,0 +1,105 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// NotifyContractEvent invokes the market.NotifyContractEvent API synchronously
+// api document: https://help.aliyun.com/api/market/notifycontractevent.html
+func (client *Client) NotifyContractEvent(request *NotifyContractEventRequest) (response *NotifyContractEventResponse, err error) {
+	response = CreateNotifyContractEventResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// NotifyContractEventWithChan invokes the market.NotifyContractEvent API asynchronously
+// api document: https://help.aliyun.com/api/market/notifycontractevent.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) NotifyContractEventWithChan(request *NotifyContractEventRequest) (<-chan *NotifyContractEventResponse, <-chan error) {
+	responseChan := make(chan *NotifyContractEventResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.NotifyContractEvent(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// NotifyContractEventWithCallback invokes the market.NotifyContractEvent API asynchronously
+// api document: https://help.aliyun.com/api/market/notifycontractevent.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) NotifyContractEventWithCallback(request *NotifyContractEventRequest, callback func(response *NotifyContractEventResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *NotifyContractEventResponse
+		var err error
+		defer close(result)
+		response, err = client.NotifyContractEvent(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// NotifyContractEventRequest is the request struct for api NotifyContractEvent
+type NotifyContractEventRequest struct {
+	*requests.RpcRequest
+	EventMessage string `position:"Query" name:"EventMessage"`
+	EventType    string `position:"Query" name:"EventType"`
+}
+
+// NotifyContractEventResponse is the response struct for api NotifyContractEvent
+type NotifyContractEventResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreateNotifyContractEventRequest creates a request to invoke NotifyContractEvent API
+func CreateNotifyContractEventRequest() (request *NotifyContractEventRequest) {
+	request = &NotifyContractEventRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "NotifyContractEvent", "yunmarket", "openAPI")
+	return
+}
+
+// CreateNotifyContractEventResponse creates a response to parse from NotifyContractEvent response
+func CreateNotifyContractEventResponse() (response *NotifyContractEventResponse) {
+	response = &NotifyContractEventResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 104 - 0
services/market/push_metering_data.go

@@ -0,0 +1,104 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// PushMeteringData invokes the market.PushMeteringData API synchronously
+// api document: https://help.aliyun.com/api/market/pushmeteringdata.html
+func (client *Client) PushMeteringData(request *PushMeteringDataRequest) (response *PushMeteringDataResponse, err error) {
+	response = CreatePushMeteringDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// PushMeteringDataWithChan invokes the market.PushMeteringData API asynchronously
+// api document: https://help.aliyun.com/api/market/pushmeteringdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PushMeteringDataWithChan(request *PushMeteringDataRequest) (<-chan *PushMeteringDataResponse, <-chan error) {
+	responseChan := make(chan *PushMeteringDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.PushMeteringData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// PushMeteringDataWithCallback invokes the market.PushMeteringData API asynchronously
+// api document: https://help.aliyun.com/api/market/pushmeteringdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PushMeteringDataWithCallback(request *PushMeteringDataRequest, callback func(response *PushMeteringDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *PushMeteringDataResponse
+		var err error
+		defer close(result)
+		response, err = client.PushMeteringData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// PushMeteringDataRequest is the request struct for api PushMeteringData
+type PushMeteringDataRequest struct {
+	*requests.RpcRequest
+	Metering string `position:"Query" name:"Metering"`
+}
+
+// PushMeteringDataResponse is the response struct for api PushMeteringData
+type PushMeteringDataResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreatePushMeteringDataRequest creates a request to invoke PushMeteringData API
+func CreatePushMeteringDataRequest() (request *PushMeteringDataRequest) {
+	request = &PushMeteringDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "PushMeteringData", "yunmarket", "openAPI")
+	return
+}
+
+// CreatePushMeteringDataResponse creates a response to parse from PushMeteringData response
+func CreatePushMeteringDataResponse() (response *PushMeteringDataResponse) {
+	response = &PushMeteringDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/market/query_market_categories.go

@@ -0,0 +1,106 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryMarketCategories invokes the market.QueryMarketCategories API synchronously
+// api document: https://help.aliyun.com/api/market/querymarketcategories.html
+func (client *Client) QueryMarketCategories(request *QueryMarketCategoriesRequest) (response *QueryMarketCategoriesResponse, err error) {
+	response = CreateQueryMarketCategoriesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryMarketCategoriesWithChan invokes the market.QueryMarketCategories API asynchronously
+// api document: https://help.aliyun.com/api/market/querymarketcategories.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMarketCategoriesWithChan(request *QueryMarketCategoriesRequest) (<-chan *QueryMarketCategoriesResponse, <-chan error) {
+	responseChan := make(chan *QueryMarketCategoriesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryMarketCategories(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryMarketCategoriesWithCallback invokes the market.QueryMarketCategories API asynchronously
+// api document: https://help.aliyun.com/api/market/querymarketcategories.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMarketCategoriesWithCallback(request *QueryMarketCategoriesRequest, callback func(response *QueryMarketCategoriesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryMarketCategoriesResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryMarketCategories(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryMarketCategoriesRequest is the request struct for api QueryMarketCategories
+type QueryMarketCategoriesRequest struct {
+	*requests.RpcRequest
+}
+
+// QueryMarketCategoriesResponse is the response struct for api QueryMarketCategories
+type QueryMarketCategoriesResponse struct {
+	*responses.BaseResponse
+	PageNumber int        `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int        `json:"PageSize" xml:"PageSize"`
+	TotalCount int        `json:"TotalCount" xml:"TotalCount"`
+	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	Categories Categories `json:"Categories" xml:"Categories"`
+}
+
+// CreateQueryMarketCategoriesRequest creates a request to invoke QueryMarketCategories API
+func CreateQueryMarketCategoriesRequest() (request *QueryMarketCategoriesRequest) {
+	request = &QueryMarketCategoriesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "QueryMarketCategories", "yunmarket", "openAPI")
+	return
+}
+
+// CreateQueryMarketCategoriesResponse creates a response to parse from QueryMarketCategories response
+func CreateQueryMarketCategoriesResponse() (response *QueryMarketCategoriesResponse) {
+	response = &QueryMarketCategoriesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/market/query_market_images.go

@@ -0,0 +1,107 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryMarketImages invokes the market.QueryMarketImages API synchronously
+// api document: https://help.aliyun.com/api/market/querymarketimages.html
+func (client *Client) QueryMarketImages(request *QueryMarketImagesRequest) (response *QueryMarketImagesResponse, err error) {
+	response = CreateQueryMarketImagesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryMarketImagesWithChan invokes the market.QueryMarketImages API asynchronously
+// api document: https://help.aliyun.com/api/market/querymarketimages.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMarketImagesWithChan(request *QueryMarketImagesRequest) (<-chan *QueryMarketImagesResponse, <-chan error) {
+	responseChan := make(chan *QueryMarketImagesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryMarketImages(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryMarketImagesWithCallback invokes the market.QueryMarketImages API asynchronously
+// api document: https://help.aliyun.com/api/market/querymarketimages.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMarketImagesWithCallback(request *QueryMarketImagesRequest, callback func(response *QueryMarketImagesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryMarketImagesResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryMarketImages(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryMarketImagesRequest is the request struct for api QueryMarketImages
+type QueryMarketImagesRequest struct {
+	*requests.RpcRequest
+	Param string `position:"Query" name:"Param"`
+}
+
+// QueryMarketImagesResponse is the response struct for api QueryMarketImages
+type QueryMarketImagesResponse struct {
+	*responses.BaseResponse
+	PageNumber int    `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int    `json:"PageSize" xml:"PageSize"`
+	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Result     Result `json:"Result" xml:"Result"`
+}
+
+// CreateQueryMarketImagesRequest creates a request to invoke QueryMarketImages API
+func CreateQueryMarketImagesRequest() (request *QueryMarketImagesRequest) {
+	request = &QueryMarketImagesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "QueryMarketImages", "yunmarket", "openAPI")
+	return
+}
+
+// CreateQueryMarketImagesResponse creates a response to parse from QueryMarketImages response
+func CreateQueryMarketImagesResponse() (response *QueryMarketImagesResponse) {
+	response = &QueryMarketImagesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 21 - 0
services/market/struct_categories.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// Categories is a nested struct in market response
+type Categories struct {
+	Category []Category `json:"Category" xml:"Category"`
+}

+ 24 - 0
services/market/struct_category.go

@@ -0,0 +1,24 @@
+package market
+
+//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.
+
+// Category is a nested struct in market response
+type Category struct {
+	Id              int64           `json:"Id" xml:"Id"`
+	CategoryCode    string          `json:"CategoryCode" xml:"CategoryCode"`
+	CategoryName    string          `json:"CategoryName" xml:"CategoryName"`
+	ChildCategories ChildCategories `json:"ChildCategories" xml:"ChildCategories"`
+}

+ 21 - 0
services/market/struct_child_categories.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// ChildCategories is a nested struct in market response
+type ChildCategories struct {
+	ChildCategory []ChildCategory `json:"ChildCategory" xml:"ChildCategory"`
+}

+ 23 - 0
services/market/struct_child_category.go

@@ -0,0 +1,23 @@
+package market
+
+//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.
+
+// ChildCategory is a nested struct in market response
+type ChildCategory struct {
+	Id           int64  `json:"Id" xml:"Id"`
+	CategoryCode string `json:"CategoryCode" xml:"CategoryCode"`
+	CategoryName string `json:"CategoryName" xml:"CategoryName"`
+}

+ 21 - 0
services/market/struct_commodities.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// Commodities is a nested struct in market response
+type Commodities struct {
+	Commodity []Commodity `json:"Commodity" xml:"Commodity"`
+}

+ 24 - 0
services/market/struct_commodity.go

@@ -0,0 +1,24 @@
+package market
+
+//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.
+
+// Commodity is a nested struct in market response
+type Commodity struct {
+	CommodityId    string `json:"CommodityId" xml:"CommodityId"`
+	ApplicationId  string `json:"ApplicationId" xml:"ApplicationId"`
+	CommoditySpecs string `json:"CommoditySpecs" xml:"CommoditySpecs"`
+	Properties     string `json:"Properties" xml:"Properties"`
+}

+ 25 - 0
services/market/struct_data.go

@@ -0,0 +1,25 @@
+package market
+
+//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.
+
+// Data is a nested struct in market response
+type Data struct {
+	ResourceType string      `json:"ResourceType" xml:"ResourceType"`
+	TotalCount   int64       `json:"TotalCount" xml:"TotalCount"`
+	Resource     string      `json:"Resource" xml:"Resource"`
+	Pageable     Pageable    `json:"Pageable" xml:"Pageable"`
+	Commodities  Commodities `json:"Commodities" xml:"Commodities"`
+}

+ 27 - 0
services/market/struct_disk_device_mapping.go

@@ -0,0 +1,27 @@
+package market
+
+//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.
+
+// DiskDeviceMapping is a nested struct in market response
+type DiskDeviceMapping struct {
+	DiskType        string `json:"DiskType" xml:"DiskType"`
+	Format          string `json:"Format" xml:"Format"`
+	SnapshotId      string `json:"SnapshotId" xml:"SnapshotId"`
+	Size            int    `json:"Size" xml:"Size"`
+	Device          string `json:"Device" xml:"Device"`
+	ImportOSSBucket string `json:"ImportOSSBucket" xml:"ImportOSSBucket"`
+	ImportOSSObject string `json:"ImportOSSObject" xml:"ImportOSSObject"`
+}

+ 21 - 0
services/market/struct_disk_device_mappings.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// DiskDeviceMappings is a nested struct in market response
+type DiskDeviceMappings struct {
+	DiskDeviceMapping []DiskDeviceMapping `json:"DiskDeviceMapping" xml:"DiskDeviceMapping"`
+}

+ 21 - 0
services/market/struct_extend_array.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// ExtendArray is a nested struct in market response
+type ExtendArray struct {
+	LicenseAttribute []LicenseAttribute `json:"LicenseAttribute" xml:"LicenseAttribute"`
+}

+ 24 - 0
services/market/struct_extend_info.go

@@ -0,0 +1,24 @@
+package market
+
+//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.
+
+// ExtendInfo is a nested struct in market response
+type ExtendInfo struct {
+	AliUid          int64  `json:"AliUid" xml:"AliUid"`
+	Email           string `json:"Email" xml:"Email"`
+	Mobile          string `json:"Mobile" xml:"Mobile"`
+	AccountQuantity int64  `json:"AccountQuantity" xml:"AccountQuantity"`
+}

+ 28 - 0
services/market/struct_image.go

@@ -0,0 +1,28 @@
+package market
+
+//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.
+
+// Image is a nested struct in market response
+type Image struct {
+	Version            string             `json:"Version" xml:"Version"`
+	VersionDescription string             `json:"VersionDescription" xml:"VersionDescription"`
+	ImageId            string             `json:"ImageId" xml:"ImageId"`
+	ImageSize          int                `json:"ImageSize" xml:"ImageSize"`
+	Region             string             `json:"Region" xml:"Region"`
+	IsDefault          bool               `json:"IsDefault" xml:"IsDefault"`
+	SupportIO          bool               `json:"SupportIO" xml:"SupportIO"`
+	DiskDeviceMappings DiskDeviceMappings `json:"DiskDeviceMappings" xml:"DiskDeviceMappings"`
+}

+ 42 - 0
services/market/struct_image_product.go

@@ -0,0 +1,42 @@
+package market
+
+//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.
+
+// ImageProduct is a nested struct in market response
+type ImageProduct struct {
+	ImageProductCode string    `json:"ImageProductCode" xml:"ImageProductCode"`
+	ProductName      string    `json:"ProductName" xml:"ProductName"`
+	CategoryName     string    `json:"CategoryName" xml:"CategoryName"`
+	SupplierName     string    `json:"SupplierName" xml:"SupplierName"`
+	BaseSystem       string    `json:"BaseSystem" xml:"BaseSystem"`
+	OsKind           string    `json:"OsKind" xml:"OsKind"`
+	OsBit            int       `json:"OsBit" xml:"OsBit"`
+	PictureUrl       string    `json:"PictureUrl" xml:"PictureUrl"`
+	SmallPicUrl      string    `json:"SmallPicUrl" xml:"SmallPicUrl"`
+	ShortDescription string    `json:"ShortDescription" xml:"ShortDescription"`
+	AgreementUrl     string    `json:"AgreementUrl" xml:"AgreementUrl"`
+	DetailUrl        string    `json:"DetailUrl" xml:"DetailUrl"`
+	BuyUrl           string    `json:"BuyUrl" xml:"BuyUrl"`
+	StoreUrl         string    `json:"StoreUrl" xml:"StoreUrl"`
+	Score            float64   `json:"Score" xml:"Score"`
+	UserCount        int64     `json:"UserCount" xml:"UserCount"`
+	SupportIO        bool      `json:"SupportIO" xml:"SupportIO"`
+	CreatedOn        int64     `json:"CreatedOn" xml:"CreatedOn"`
+	SkuCodes         SkuCodes  `json:"SkuCodes" xml:"SkuCodes"`
+	Quota            Quota     `json:"Quota" xml:"Quota"`
+	PriceInfo        PriceInfo `json:"PriceInfo" xml:"PriceInfo"`
+	Images           Images    `json:"Images" xml:"Images"`
+}

+ 21 - 0
services/market/struct_images.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// Images is a nested struct in market response
+type Images struct {
+	Image []Image `json:"Image" xml:"Image"`
+}

+ 21 - 0
services/market/struct_instance_ids_in_create_order.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// InstanceIdsInCreateOrder is a nested struct in market response
+type InstanceIdsInCreateOrder struct {
+	InstanceId []string `json:"InstanceId" xml:"InstanceId"`
+}

+ 21 - 0
services/market/struct_instance_ids_in_describe_order.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// InstanceIdsInDescribeOrder is a nested struct in market response
+type InstanceIdsInDescribeOrder struct {
+	InstanceId []string `json:"InstanceId" xml:"InstanceId"`
+}

+ 37 - 0
services/market/struct_instance_item.go

@@ -0,0 +1,37 @@
+package market
+
+//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.
+
+// InstanceItem is a nested struct in market response
+type InstanceItem struct {
+	InstanceId     int64  `json:"InstanceId" xml:"InstanceId"`
+	OrderId        int64  `json:"OrderId" xml:"OrderId"`
+	SupplierName   string `json:"SupplierName" xml:"SupplierName"`
+	ProductCode    string `json:"ProductCode" xml:"ProductCode"`
+	ProductSkuCode string `json:"ProductSkuCode" xml:"ProductSkuCode"`
+	ProductName    string `json:"ProductName" xml:"ProductName"`
+	ProductType    string `json:"ProductType" xml:"ProductType"`
+	Status         string `json:"Status" xml:"Status"`
+	BeganOn        int64  `json:"BeganOn" xml:"BeganOn"`
+	EndOn          int64  `json:"EndOn" xml:"EndOn"`
+	CreatedOn      int64  `json:"CreatedOn" xml:"CreatedOn"`
+	ExtendJson     string `json:"ExtendJson" xml:"ExtendJson"`
+	HostJson       string `json:"HostJson" xml:"HostJson"`
+	AppJson        string `json:"AppJson" xml:"AppJson"`
+	ApiJson        string `json:"ApiJson" xml:"ApiJson"`
+	ImageJson      string `json:"ImageJson" xml:"ImageJson"`
+	IdaasJson      string `json:"IdaasJson" xml:"IdaasJson"`
+}

+ 21 - 0
services/market/struct_instance_items.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// InstanceItems is a nested struct in market response
+type InstanceItems struct {
+	InstanceItem []InstanceItem `json:"InstanceItem" xml:"InstanceItem"`
+}

+ 32 - 0
services/market/struct_license.go

@@ -0,0 +1,32 @@
+package market
+
+//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.
+
+// License is a nested struct in market response
+type License struct {
+	LicenseStatus string      `json:"LicenseStatus" xml:"LicenseStatus"`
+	LicenseCode   string      `json:"LicenseCode" xml:"LicenseCode"`
+	InstanceId    string      `json:"InstanceId" xml:"InstanceId"`
+	CreateTime    string      `json:"CreateTime" xml:"CreateTime"`
+	ExpiredTime   string      `json:"ExpiredTime" xml:"ExpiredTime"`
+	ActivateTime  string      `json:"ActivateTime" xml:"ActivateTime"`
+	ProductSkuId  string      `json:"ProductSkuId" xml:"ProductSkuId"`
+	ProductCode   string      `json:"ProductCode" xml:"ProductCode"`
+	ProductName   string      `json:"ProductName" xml:"ProductName"`
+	SupplierName  string      `json:"SupplierName" xml:"SupplierName"`
+	ExtendInfo    ExtendInfo  `json:"ExtendInfo" xml:"ExtendInfo"`
+	ExtendArray   ExtendArray `json:"ExtendArray" xml:"ExtendArray"`
+}

+ 22 - 0
services/market/struct_license_attribute.go

@@ -0,0 +1,22 @@
+package market
+
+//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.
+
+// LicenseAttribute is a nested struct in market response
+type LicenseAttribute struct {
+	Code  string `json:"Code" xml:"Code"`
+	Value string `json:"Value" xml:"Value"`
+}

+ 24 - 0
services/market/struct_module.go

@@ -0,0 +1,24 @@
+package market
+
+//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.
+
+// Module is a nested struct in market response
+type Module struct {
+	Name       string                      `json:"Name" xml:"Name"`
+	Code       string                      `json:"Code" xml:"Code"`
+	Id         string                      `json:"Id" xml:"Id"`
+	Properties PropertiesInDescribeProduct `json:"Properties" xml:"Properties"`
+}

+ 21 - 0
services/market/struct_modules_in_describe_instance.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// ModulesInDescribeInstance is a nested struct in market response
+type ModulesInDescribeInstance struct {
+	Module []Module `json:"Module" xml:"Module"`
+}

+ 21 - 0
services/market/struct_modules_in_describe_product.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// ModulesInDescribeProduct is a nested struct in market response
+type ModulesInDescribeProduct struct {
+	Module []Module `json:"Module" xml:"Module"`
+}

+ 27 - 0
services/market/struct_order.go

@@ -0,0 +1,27 @@
+package market
+
+//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.
+
+// Order is a nested struct in market response
+type Order struct {
+	OriginalPrice float64   `json:"OriginalPrice" xml:"OriginalPrice"`
+	DiscountPrice float64   `json:"DiscountPrice" xml:"DiscountPrice"`
+	TradePrice    float64   `json:"TradePrice" xml:"TradePrice"`
+	Currency      string    `json:"Currency" xml:"Currency"`
+	Period        int       `json:"Period" xml:"Period"`
+	PriceUnit     string    `json:"PriceUnit" xml:"PriceUnit"`
+	RuleIdSet     RuleIdSet `json:"RuleIdSet" xml:"RuleIdSet"`
+}

+ 22 - 0
services/market/struct_order_period.go

@@ -0,0 +1,22 @@
+package market
+
+//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.
+
+// OrderPeriod is a nested struct in market response
+type OrderPeriod struct {
+	Name       string `json:"Name" xml:"Name"`
+	PeriodType string `json:"PeriodType" xml:"PeriodType"`
+}

+ 21 - 0
services/market/struct_order_periods.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// OrderPeriods is a nested struct in market response
+type OrderPeriods struct {
+	OrderPeriod []OrderPeriod `json:"OrderPeriod" xml:"OrderPeriod"`
+}

+ 22 - 0
services/market/struct_pageable.go

@@ -0,0 +1,22 @@
+package market
+
+//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.
+
+// Pageable is a nested struct in market response
+type Pageable struct {
+	PageNumber int `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int `json:"PageSize" xml:"PageSize"`
+}

+ 22 - 0
services/market/struct_price_info.go

@@ -0,0 +1,22 @@
+package market
+
+//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.
+
+// PriceInfo is a nested struct in market response
+type PriceInfo struct {
+	Order Order `json:"Order" xml:"Order"`
+	Rules Rules `json:"Rules" xml:"Rules"`
+}

+ 25 - 0
services/market/struct_product_extra.go

@@ -0,0 +1,25 @@
+package market
+
+//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.
+
+// ProductExtra is a nested struct in market response
+type ProductExtra struct {
+	Key    string `json:"Key" xml:"Key"`
+	Values string `json:"Values" xml:"Values"`
+	Label  string `json:"Label" xml:"Label"`
+	Order  int    `json:"Order" xml:"Order"`
+	Type   string `json:"Type" xml:"Type"`
+}

+ 21 - 0
services/market/struct_product_extras.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// ProductExtras is a nested struct in market response
+type ProductExtras struct {
+	ProductExtra []ProductExtra `json:"ProductExtra" xml:"ProductExtra"`
+}

+ 35 - 0
services/market/struct_product_item.go

@@ -0,0 +1,35 @@
+package market
+
+//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.
+
+// ProductItem is a nested struct in market response
+type ProductItem struct {
+	Code             string `json:"Code" xml:"Code"`
+	Name             string `json:"Name" xml:"Name"`
+	CategoryId       int64  `json:"CategoryId" xml:"CategoryId"`
+	SupplierId       int64  `json:"SupplierId" xml:"SupplierId"`
+	SupplierName     string `json:"SupplierName" xml:"SupplierName"`
+	ShortDescription string `json:"ShortDescription" xml:"ShortDescription"`
+	Tags             string `json:"Tags" xml:"Tags"`
+	SuggestedPrice   string `json:"SuggestedPrice" xml:"SuggestedPrice"`
+	TargetUrl        string `json:"TargetUrl" xml:"TargetUrl"`
+	ImageUrl         string `json:"ImageUrl" xml:"ImageUrl"`
+	Score            string `json:"Score" xml:"Score"`
+	OperationSystem  string `json:"OperationSystem" xml:"OperationSystem"`
+	WarrantyDate     string `json:"WarrantyDate" xml:"WarrantyDate"`
+	DeliveryDate     string `json:"DeliveryDate" xml:"DeliveryDate"`
+	DeliveryWay      string `json:"DeliveryWay" xml:"DeliveryWay"`
+}

+ 21 - 0
services/market/struct_product_items.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// ProductItems is a nested struct in market response
+type ProductItems struct {
+	ProductItem []ProductItem `json:"ProductItem" xml:"ProductItem"`
+}

+ 27 - 0
services/market/struct_product_sku.go

@@ -0,0 +1,27 @@
+package market
+
+//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.
+
+// ProductSku is a nested struct in market response
+type ProductSku struct {
+	Name         string                   `json:"Name" xml:"Name"`
+	Code         string                   `json:"Code" xml:"Code"`
+	ChargeType   string                   `json:"ChargeType" xml:"ChargeType"`
+	Constraints  string                   `json:"Constraints" xml:"Constraints"`
+	Hidden       bool                     `json:"Hidden" xml:"Hidden"`
+	OrderPeriods OrderPeriods             `json:"OrderPeriods" xml:"OrderPeriods"`
+	Modules      ModulesInDescribeProduct `json:"Modules" xml:"Modules"`
+}

+ 21 - 0
services/market/struct_product_skus.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// ProductSkus is a nested struct in market response
+type ProductSkus struct {
+	ProductSku []ProductSku `json:"ProductSku" xml:"ProductSku"`
+}

+ 23 - 0
services/market/struct_promotion_rule.go

@@ -0,0 +1,23 @@
+package market
+
+//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.
+
+// PromotionRule is a nested struct in market response
+type PromotionRule struct {
+	RuleId string `json:"RuleId" xml:"RuleId"`
+	Name   string `json:"Name" xml:"Name"`
+	Title  string `json:"Title" xml:"Title"`
+}

+ 21 - 0
services/market/struct_promotion_rules.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// PromotionRules is a nested struct in market response
+type PromotionRules struct {
+	PromotionRule []PromotionRule `json:"PromotionRule" xml:"PromotionRule"`
+}

+ 21 - 0
services/market/struct_properties_in_describe_instance.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// PropertiesInDescribeInstance is a nested struct in market response
+type PropertiesInDescribeInstance struct {
+	Property []Property `json:"Property" xml:"Property"`
+}

+ 21 - 0
services/market/struct_properties_in_describe_product.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// PropertiesInDescribeProduct is a nested struct in market response
+type PropertiesInDescribeProduct struct {
+	Property []Property `json:"Property" xml:"Property"`
+}

+ 25 - 0
services/market/struct_property.go

@@ -0,0 +1,25 @@
+package market
+
+//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.
+
+// Property is a nested struct in market response
+type Property struct {
+	Name           string                          `json:"Name" xml:"Name"`
+	Key            string                          `json:"Key" xml:"Key"`
+	ShowType       string                          `json:"ShowType" xml:"ShowType"`
+	DisplayUnit    string                          `json:"DisplayUnit" xml:"DisplayUnit"`
+	PropertyValues PropertyValuesInDescribeProduct `json:"PropertyValues" xml:"PropertyValues"`
+}

+ 27 - 0
services/market/struct_property_value.go

@@ -0,0 +1,27 @@
+package market
+
+//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.
+
+// PropertyValue is a nested struct in market response
+type PropertyValue struct {
+	Value       string `json:"Value" xml:"Value"`
+	Min         string `json:"Min" xml:"Min"`
+	Remark      string `json:"Remark" xml:"Remark"`
+	Max         string `json:"Max" xml:"Max"`
+	Step        string `json:"Step" xml:"Step"`
+	DisplayName string `json:"DisplayName" xml:"DisplayName"`
+	Type        string `json:"Type" xml:"Type"`
+}

+ 21 - 0
services/market/struct_property_values_in_describe_instance.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// PropertyValuesInDescribeInstance is a nested struct in market response
+type PropertyValuesInDescribeInstance struct {
+	PropertyValue []PropertyValue `json:"PropertyValue" xml:"PropertyValue"`
+}

+ 21 - 0
services/market/struct_property_values_in_describe_product.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// PropertyValuesInDescribeProduct is a nested struct in market response
+type PropertyValuesInDescribeProduct struct {
+	PropertyValue []PropertyValue `json:"PropertyValue" xml:"PropertyValue"`
+}

+ 23 - 0
services/market/struct_quota.go

@@ -0,0 +1,23 @@
+package market
+
+//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.
+
+// Quota is a nested struct in market response
+type Quota struct {
+	TotalQuota  int64 `json:"TotalQuota" xml:"TotalQuota"`
+	UsingQuota  int64 `json:"UsingQuota" xml:"UsingQuota"`
+	UnusedQuota int64 `json:"UnusedQuota" xml:"UnusedQuota"`
+}

+ 21 - 0
services/market/struct_relational_data.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// RelationalData is a nested struct in market response
+type RelationalData struct {
+	ServiceStatus string `json:"ServiceStatus" xml:"ServiceStatus"`
+}

+ 21 - 0
services/market/struct_result.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// Result is a nested struct in market response
+type Result struct {
+	ImageProduct []ImageProduct `json:"ImageProduct" xml:"ImageProduct"`
+}

+ 23 - 0
services/market/struct_rule.go

@@ -0,0 +1,23 @@
+package market
+
+//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.
+
+// Rule is a nested struct in market response
+type Rule struct {
+	RuleId int64  `json:"RuleId" xml:"RuleId"`
+	Title  string `json:"Title" xml:"Title"`
+	Name   string `json:"Name" xml:"Name"`
+}

+ 21 - 0
services/market/struct_rule_id_set.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// RuleIdSet is a nested struct in market response
+type RuleIdSet struct {
+	RuleId []string `json:"RuleId" xml:"RuleId"`
+}

+ 21 - 0
services/market/struct_rules.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// Rules is a nested struct in market response
+type Rules struct {
+	Rule []Rule `json:"Rule" xml:"Rule"`
+}

+ 25 - 0
services/market/struct_shop_info.go

@@ -0,0 +1,25 @@
+package market
+
+//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.
+
+// ShopInfo is a nested struct in market response
+type ShopInfo struct {
+	Id         int64      `json:"Id" xml:"Id"`
+	Name       string     `json:"Name" xml:"Name"`
+	Emails     string     `json:"Emails" xml:"Emails"`
+	Telephones Telephones `json:"Telephones" xml:"Telephones"`
+	WangWangs  WangWangs  `json:"WangWangs" xml:"WangWangs"`
+}

+ 21 - 0
services/market/struct_sku_codes.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// SkuCodes is a nested struct in market response
+type SkuCodes struct {
+	SkuCode []string `json:"SkuCode" xml:"SkuCode"`
+}

+ 21 - 0
services/market/struct_supplier_telephones.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// SupplierTelephones is a nested struct in market response
+type SupplierTelephones struct {
+	Telephone []string `json:"Telephone" xml:"Telephone"`
+}

+ 21 - 0
services/market/struct_telephones.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// Telephones is a nested struct in market response
+type Telephones struct {
+	Telephone []string `json:"Telephone" xml:"Telephone"`
+}

+ 22 - 0
services/market/struct_wang_wang.go

@@ -0,0 +1,22 @@
+package market
+
+//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.
+
+// WangWang is a nested struct in market response
+type WangWang struct {
+	UserName string `json:"UserName" xml:"UserName"`
+	Remark   string `json:"Remark" xml:"Remark"`
+}

+ 21 - 0
services/market/struct_wang_wangs.go

@@ -0,0 +1,21 @@
+package market
+
+//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.
+
+// WangWangs is a nested struct in market response
+type WangWangs struct {
+	WangWang []WangWang `json:"WangWang" xml:"WangWang"`
+}

+ 105 - 0
services/market/update_commodity.go

@@ -0,0 +1,105 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UpdateCommodity invokes the market.UpdateCommodity API synchronously
+// api document: https://help.aliyun.com/api/market/updatecommodity.html
+func (client *Client) UpdateCommodity(request *UpdateCommodityRequest) (response *UpdateCommodityResponse, err error) {
+	response = CreateUpdateCommodityResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateCommodityWithChan invokes the market.UpdateCommodity API asynchronously
+// api document: https://help.aliyun.com/api/market/updatecommodity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateCommodityWithChan(request *UpdateCommodityRequest) (<-chan *UpdateCommodityResponse, <-chan error) {
+	responseChan := make(chan *UpdateCommodityResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateCommodity(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateCommodityWithCallback invokes the market.UpdateCommodity API asynchronously
+// api document: https://help.aliyun.com/api/market/updatecommodity.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateCommodityWithCallback(request *UpdateCommodityRequest, callback func(response *UpdateCommodityResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateCommodityResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateCommodity(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateCommodityRequest is the request struct for api UpdateCommodity
+type UpdateCommodityRequest struct {
+	*requests.RpcRequest
+	CommodityId string `position:"Query" name:"CommodityId"`
+	Content     string `position:"Query" name:"Content"`
+}
+
+// UpdateCommodityResponse is the response struct for api UpdateCommodity
+type UpdateCommodityResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreateUpdateCommodityRequest creates a request to invoke UpdateCommodity API
+func CreateUpdateCommodityRequest() (request *UpdateCommodityRequest) {
+	request = &UpdateCommodityRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "UpdateCommodity", "yunmarket", "openAPI")
+	return
+}
+
+// CreateUpdateCommodityResponse creates a response to parse from UpdateCommodity response
+func CreateUpdateCommodityResponse() (response *UpdateCommodityResponse) {
+	response = &UpdateCommodityResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/market/upload_commodity_file.go

@@ -0,0 +1,107 @@
+package market
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UploadCommodityFile invokes the market.UploadCommodityFile API synchronously
+// api document: https://help.aliyun.com/api/market/uploadcommodityfile.html
+func (client *Client) UploadCommodityFile(request *UploadCommodityFileRequest) (response *UploadCommodityFileResponse, err error) {
+	response = CreateUploadCommodityFileResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UploadCommodityFileWithChan invokes the market.UploadCommodityFile API asynchronously
+// api document: https://help.aliyun.com/api/market/uploadcommodityfile.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UploadCommodityFileWithChan(request *UploadCommodityFileRequest) (<-chan *UploadCommodityFileResponse, <-chan error) {
+	responseChan := make(chan *UploadCommodityFileResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UploadCommodityFile(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UploadCommodityFileWithCallback invokes the market.UploadCommodityFile API asynchronously
+// api document: https://help.aliyun.com/api/market/uploadcommodityfile.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UploadCommodityFileWithCallback(request *UploadCommodityFileRequest, callback func(response *UploadCommodityFileResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UploadCommodityFileResponse
+		var err error
+		defer close(result)
+		response, err = client.UploadCommodityFile(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UploadCommodityFileRequest is the request struct for api UploadCommodityFile
+type UploadCommodityFileRequest struct {
+	*requests.RpcRequest
+	FileResourceType string `position:"Query" name:"FileResourceType"`
+	FileResource     string `position:"Query" name:"FileResource"`
+	FileContentType  string `position:"Query" name:"FileContentType"`
+}
+
+// UploadCommodityFileResponse is the response struct for api UploadCommodityFile
+type UploadCommodityFileResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Data      Data   `json:"Data" xml:"Data"`
+}
+
+// CreateUploadCommodityFileRequest creates a request to invoke UploadCommodityFile API
+func CreateUploadCommodityFileRequest() (request *UploadCommodityFileRequest) {
+	request = &UploadCommodityFileRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Market", "2015-11-01", "UploadCommodityFile", "yunmarket", "openAPI")
+	return
+}
+
+// CreateUploadCommodityFileResponse creates a response to parse from UploadCommodityFile response
+func CreateUploadCommodityFileResponse() (response *UploadCommodityFileResponse) {
+	response = &UploadCommodityFileResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}