Browse Source

Add bizSubCode and so on.

sdk-team 6 years ago
parent
commit
d304b391a3

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-09-19 Version: 1.60.168
+- Add bizSubCode and so on.
+
 2019-09-18 Version: 1.60.167
 - Support to update layout in task for MPU.
 

+ 114 - 0
services/companyreg/generate_company_reg_upload_policy.go

@@ -0,0 +1,114 @@
+package companyreg
+
+//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"
+)
+
+// GenerateCompanyRegUploadPolicy invokes the companyreg.GenerateCompanyRegUploadPolicy API synchronously
+// api document: https://help.aliyun.com/api/companyreg/generatecompanyreguploadpolicy.html
+func (client *Client) GenerateCompanyRegUploadPolicy(request *GenerateCompanyRegUploadPolicyRequest) (response *GenerateCompanyRegUploadPolicyResponse, err error) {
+	response = CreateGenerateCompanyRegUploadPolicyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GenerateCompanyRegUploadPolicyWithChan invokes the companyreg.GenerateCompanyRegUploadPolicy API asynchronously
+// api document: https://help.aliyun.com/api/companyreg/generatecompanyreguploadpolicy.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GenerateCompanyRegUploadPolicyWithChan(request *GenerateCompanyRegUploadPolicyRequest) (<-chan *GenerateCompanyRegUploadPolicyResponse, <-chan error) {
+	responseChan := make(chan *GenerateCompanyRegUploadPolicyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GenerateCompanyRegUploadPolicy(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GenerateCompanyRegUploadPolicyWithCallback invokes the companyreg.GenerateCompanyRegUploadPolicy API asynchronously
+// api document: https://help.aliyun.com/api/companyreg/generatecompanyreguploadpolicy.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GenerateCompanyRegUploadPolicyWithCallback(request *GenerateCompanyRegUploadPolicyRequest, callback func(response *GenerateCompanyRegUploadPolicyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GenerateCompanyRegUploadPolicyResponse
+		var err error
+		defer close(result)
+		response, err = client.GenerateCompanyRegUploadPolicy(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GenerateCompanyRegUploadPolicyRequest is the request struct for api GenerateCompanyRegUploadPolicy
+type GenerateCompanyRegUploadPolicyRequest struct {
+	*requests.RpcRequest
+	Data       string `position:"Query" name:"Data"`
+	BizCode    string `position:"Query" name:"BizCode"`
+	BizSubCode string `position:"Query" name:"BizSubCode"`
+}
+
+// GenerateCompanyRegUploadPolicyResponse is the response struct for api GenerateCompanyRegUploadPolicy
+type GenerateCompanyRegUploadPolicyResponse struct {
+	*responses.BaseResponse
+	RequestId     string `json:"RequestId" xml:"RequestId"`
+	AccessId      string `json:"AccessId" xml:"AccessId"`
+	Signature     string `json:"Signature" xml:"Signature"`
+	FileDir       string `json:"FileDir" xml:"FileDir"`
+	Host          string `json:"Host" xml:"Host"`
+	ExpireTime    int64  `json:"ExpireTime" xml:"ExpireTime"`
+	EncodedPolicy string `json:"EncodedPolicy" xml:"EncodedPolicy"`
+	Min           int64  `json:"Min" xml:"Min"`
+	Max           int64  `json:"Max" xml:"Max"`
+	Encryption    string `json:"Encryption" xml:"Encryption"`
+}
+
+// CreateGenerateCompanyRegUploadPolicyRequest creates a request to invoke GenerateCompanyRegUploadPolicy API
+func CreateGenerateCompanyRegUploadPolicyRequest() (request *GenerateCompanyRegUploadPolicyRequest) {
+	request = &GenerateCompanyRegUploadPolicyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("companyreg", "2019-05-08", "GenerateCompanyRegUploadPolicy", "companyreg", "openAPI")
+	return
+}
+
+// CreateGenerateCompanyRegUploadPolicyResponse creates a response to parse from GenerateCompanyRegUploadPolicy response
+func CreateGenerateCompanyRegUploadPolicyResponse() (response *GenerateCompanyRegUploadPolicyResponse) {
+	response = &GenerateCompanyRegUploadPolicyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 5 - 0
services/companyreg/get_company_reg_order.go

@@ -80,6 +80,7 @@ type GetCompanyRegOrderRequest struct {
 	BizCode          string           `position:"Query" name:"BizCode"`
 	BizId            string           `position:"Query" name:"BizId"`
 	MaxOperationSize requests.Integer `position:"Query" name:"MaxOperationSize"`
+	BizSubCode       string           `position:"Query" name:"BizSubCode"`
 }
 
 // GetCompanyRegOrderResponse is the response struct for api GetCompanyRegOrder
@@ -98,6 +99,10 @@ type GetCompanyRegOrderResponse struct {
 	GmtPaid              int64      `json:"GmtPaid" xml:"GmtPaid"`
 	Extend               string     `json:"Extend" xml:"Extend"`
 	BizStatusStage       string     `json:"BizStatusStage" xml:"BizStatusStage"`
+	PlatformName         string     `json:"PlatformName" xml:"PlatformName"`
+	InboundPhone         string     `json:"InboundPhone" xml:"InboundPhone"`
+	OutboundPhone        string     `json:"OutboundPhone" xml:"OutboundPhone"`
+	BizSubCode           string     `json:"BizSubCode" xml:"BizSubCode"`
 	Operations           Operations `json:"Operations" xml:"Operations"`
 }
 

+ 2 - 2
services/companyreg/list_company_reg_consultations.go

@@ -77,12 +77,12 @@ func (client *Client) ListCompanyRegConsultationsWithCallback(request *ListCompa
 type ListCompanyRegConsultationsRequest struct {
 	*requests.RpcRequest
 	EndGmtCreate   requests.Integer `position:"Query" name:"EndGmtCreate"`
-	BizCode        string           `position:"Query" name:"BizCode"`
 	City           string           `position:"Query" name:"City"`
+	PageNum        requests.Integer `position:"Query" name:"PageNum"`
+	BizCode        string           `position:"Query" name:"BizCode"`
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
 	BizId          string           `position:"Query" name:"BizId"`
 	StartGmtCreate requests.Integer `position:"Query" name:"StartGmtCreate"`
-	PageNum        requests.Integer `position:"Query" name:"PageNum"`
 }
 
 // ListCompanyRegConsultationsResponse is the response struct for api ListCompanyRegConsultations

+ 2 - 1
services/companyreg/list_company_reg_orders.go

@@ -76,12 +76,13 @@ func (client *Client) ListCompanyRegOrdersWithCallback(request *ListCompanyRegOr
 // ListCompanyRegOrdersRequest is the request struct for api ListCompanyRegOrders
 type ListCompanyRegOrdersRequest struct {
 	*requests.RpcRequest
+	PageNum       requests.Integer `position:"Query" name:"PageNum"`
 	BizCode       string           `position:"Query" name:"BizCode"`
 	BizStatus     string           `position:"Query" name:"BizStatus"`
 	CompanyName   string           `position:"Query" name:"CompanyName"`
 	PageSize      requests.Integer `position:"Query" name:"PageSize"`
 	AliyunOrderId string           `position:"Query" name:"AliyunOrderId"`
-	PageNum       requests.Integer `position:"Query" name:"PageNum"`
+	BizSubCode    string           `position:"Query" name:"BizSubCode"`
 }
 
 // ListCompanyRegOrdersResponse is the response struct for api ListCompanyRegOrders

+ 3 - 2
services/companyreg/process_company_reg_order.go

@@ -77,11 +77,12 @@ func (client *Client) ProcessCompanyRegOrderWithCallback(request *ProcessCompany
 type ProcessCompanyRegOrderRequest struct {
 	*requests.RpcRequest
 	ActionType      string           `position:"Query" name:"ActionType"`
-	BizCode         string           `position:"Query" name:"BizCode"`
-	BizId           string           `position:"Query" name:"BizId"`
 	ActionRequestId string           `position:"Query" name:"ActionRequestId"`
 	OperatorType    requests.Integer `position:"Query" name:"OperatorType"`
 	ActionInfo      string           `position:"Query" name:"ActionInfo"`
+	BizCode         string           `position:"Query" name:"BizCode"`
+	BizId           string           `position:"Query" name:"BizId"`
+	BizSubCode      string           `position:"Query" name:"BizSubCode"`
 }
 
 // ProcessCompanyRegOrderResponse is the response struct for api ProcessCompanyRegOrder

+ 1 - 1
services/companyreg/send_vcode.go

@@ -76,8 +76,8 @@ func (client *Client) SendVcodeWithCallback(request *SendVcodeRequest, callback
 // SendVcodeRequest is the request struct for api SendVcode
 type SendVcodeRequest struct {
 	*requests.RpcRequest
-	BizCode string `position:"Query" name:"BizCode"`
 	Mobile  string `position:"Query" name:"Mobile"`
+	BizCode string `position:"Query" name:"BizCode"`
 }
 
 // SendVcodeResponse is the response struct for api SendVcode

+ 7 - 4
services/companyreg/struct_company_reg_consultation.go

@@ -17,8 +17,11 @@ package companyreg
 
 // CompanyRegConsultation is a nested struct in companyreg response
 type CompanyRegConsultation struct {
-	BizId       string `json:"BizId" xml:"BizId"`
-	ConsultInfo string `json:"ConsultInfo" xml:"ConsultInfo"`
-	GmtModified int64  `json:"GmtModified" xml:"GmtModified"`
-	City        string `json:"City" xml:"City"`
+	BizId         string `json:"BizId" xml:"BizId"`
+	ConsultInfo   string `json:"ConsultInfo" xml:"ConsultInfo"`
+	GmtModified   int64  `json:"GmtModified" xml:"GmtModified"`
+	City          string `json:"City" xml:"City"`
+	PlatformName  string `json:"PlatformName" xml:"PlatformName"`
+	InboundPhone  string `json:"InboundPhone" xml:"InboundPhone"`
+	OutboundPhone string `json:"OutboundPhone" xml:"OutboundPhone"`
 }

+ 1 - 0
services/companyreg/struct_company_reg_order.go

@@ -25,4 +25,5 @@ type CompanyRegOrder struct {
 	AliyunOrderId     string `json:"AliyunOrderId" xml:"AliyunOrderId"`
 	GmtModified       int64  `json:"GmtModified" xml:"GmtModified"`
 	Extend            string `json:"Extend" xml:"Extend"`
+	BizSubCode        string `json:"BizSubCode" xml:"BizSubCode"`
 }

+ 108 - 0
services/companyreg/submit_communication_note.go

@@ -0,0 +1,108 @@
+package companyreg
+
+//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"
+)
+
+// SubmitCommunicationNote invokes the companyreg.SubmitCommunicationNote API synchronously
+// api document: https://help.aliyun.com/api/companyreg/submitcommunicationnote.html
+func (client *Client) SubmitCommunicationNote(request *SubmitCommunicationNoteRequest) (response *SubmitCommunicationNoteResponse, err error) {
+	response = CreateSubmitCommunicationNoteResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SubmitCommunicationNoteWithChan invokes the companyreg.SubmitCommunicationNote API asynchronously
+// api document: https://help.aliyun.com/api/companyreg/submitcommunicationnote.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SubmitCommunicationNoteWithChan(request *SubmitCommunicationNoteRequest) (<-chan *SubmitCommunicationNoteResponse, <-chan error) {
+	responseChan := make(chan *SubmitCommunicationNoteResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SubmitCommunicationNote(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SubmitCommunicationNoteWithCallback invokes the companyreg.SubmitCommunicationNote API asynchronously
+// api document: https://help.aliyun.com/api/companyreg/submitcommunicationnote.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SubmitCommunicationNoteWithCallback(request *SubmitCommunicationNoteRequest, callback func(response *SubmitCommunicationNoteResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SubmitCommunicationNoteResponse
+		var err error
+		defer close(result)
+		response, err = client.SubmitCommunicationNote(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SubmitCommunicationNoteRequest is the request struct for api SubmitCommunicationNote
+type SubmitCommunicationNoteRequest struct {
+	*requests.RpcRequest
+	Note            string           `position:"Query" name:"Note"`
+	Type            requests.Integer `position:"Query" name:"Type"`
+	ActionRequestId string           `position:"Query" name:"ActionRequestId"`
+	OperatorType    requests.Integer `position:"Query" name:"OperatorType"`
+	BizCode         string           `position:"Query" name:"BizCode"`
+	BizId           string           `position:"Query" name:"BizId"`
+}
+
+// SubmitCommunicationNoteResponse is the response struct for api SubmitCommunicationNote
+type SubmitCommunicationNoteResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateSubmitCommunicationNoteRequest creates a request to invoke SubmitCommunicationNote API
+func CreateSubmitCommunicationNoteRequest() (request *SubmitCommunicationNoteRequest) {
+	request = &SubmitCommunicationNoteRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("companyreg", "2019-05-08", "SubmitCommunicationNote", "companyreg", "openAPI")
+	return
+}
+
+// CreateSubmitCommunicationNoteResponse creates a response to parse from SubmitCommunicationNote response
+func CreateSubmitCommunicationNoteResponse() (response *SubmitCommunicationNoteResponse) {
+	response = &SubmitCommunicationNoteResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 1
services/companyreg/submit_consultation.go

@@ -77,9 +77,10 @@ func (client *Client) SubmitConsultationWithCallback(request *SubmitConsultation
 type SubmitConsultationRequest struct {
 	*requests.RpcRequest
 	Data             string `position:"Query" name:"Data"`
+	Vcode            string `position:"Query" name:"Vcode"`
 	BizCode          string `position:"Query" name:"BizCode"`
 	ConsultRequestId string `position:"Query" name:"ConsultRequestId"`
-	Vcode            string `position:"Query" name:"Vcode"`
+	BizSubCode       string `position:"Query" name:"BizSubCode"`
 }
 
 // SubmitConsultationResponse is the response struct for api SubmitConsultation