// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// 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.

package v20250106

import (
    "context"
    "errors"
    "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common"
    tchttp "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http"
    "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/profile"
)

const APIVersion = "2025-01-06"

type Client struct {
    common.Client
}

// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
    cpf := profile.NewClientProfile()
    client = &Client{}
    client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
    return
}

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
    client = &Client{}
    client.Init(region).
        WithCredential(credential).
        WithProfile(clientProfile)
    return
}


func NewAddTeamMemberRequest() (request *AddTeamMemberRequest) {
    request = &AddTeamMemberRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "AddTeamMember")
    
    
    return
}

func NewAddTeamMemberResponse() (response *AddTeamMemberResponse) {
    response = &AddTeamMemberResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// AddTeamMember
// This API is used to add a team member.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_UNABLEOPERATEADMINACCOUNT = "FailedOperation.UnableOperateAdminAccount"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDROLEID = "InvalidParameterValue.InvalidRoleId"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
//  INVALIDPARAMETERVALUE_INVALIDUSERID = "InvalidParameterValue.InvalidUserId"
func (c *Client) AddTeamMember(request *AddTeamMemberRequest) (response *AddTeamMemberResponse, err error) {
    return c.AddTeamMemberWithContext(context.Background(), request)
}

// AddTeamMember
// This API is used to add a team member.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_UNABLEOPERATEADMINACCOUNT = "FailedOperation.UnableOperateAdminAccount"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDROLEID = "InvalidParameterValue.InvalidRoleId"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
//  INVALIDPARAMETERVALUE_INVALIDUSERID = "InvalidParameterValue.InvalidUserId"
func (c *Client) AddTeamMemberWithContext(ctx context.Context, request *AddTeamMemberRequest) (response *AddTeamMemberResponse, err error) {
    if request == nil {
        request = NewAddTeamMemberRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "AddTeamMember")
    
    if c.GetCredential() == nil {
        return nil, errors.New("AddTeamMember require credential")
    }

    request.SetContext(ctx)
    
    response = NewAddTeamMemberResponse()
    err = c.Send(request, response)
    return
}

func NewApproveMNPPaymentEnableRequest() (request *ApproveMNPPaymentEnableRequest) {
    request = &ApproveMNPPaymentEnableRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ApproveMNPPaymentEnable")
    
    
    return
}

func NewApproveMNPPaymentEnableResponse() (response *ApproveMNPPaymentEnableResponse) {
    response = &ApproveMNPPaymentEnableResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ApproveMNPPaymentEnable
// This API is used to allow the superapp to approve the activation of mini program payment.
//
// error code that may be returned:
//  FAILEDOPERATION_APPROVALALREADYPROCESSED = "FailedOperation.ApprovalAlreadyProcessed"
//  FAILEDOPERATION_APPROVALNOTBELONGTOAPPLICATION = "FailedOperation.ApprovalNotBelongToApplication"
//  FAILEDOPERATION_MNPPAYMENTALREADYENABLED = "FailedOperation.MNPPaymentAlreadyEnabled"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_PAYMENTRECORDNOTFOUND = "FailedOperation.PaymentRecordNotFound"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_APPROVALNOTEREQUIRED = "InvalidParameterValue.ApprovalNoteRequired"
//  INVALIDPARAMETERVALUE_INVALIDAPPROVALTYPE = "InvalidParameterValue.InvalidApprovalType"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_PAYMENTRECORDNOTFOUND = "InvalidParameterValue.PaymentRecordNotFound"
func (c *Client) ApproveMNPPaymentEnable(request *ApproveMNPPaymentEnableRequest) (response *ApproveMNPPaymentEnableResponse, err error) {
    return c.ApproveMNPPaymentEnableWithContext(context.Background(), request)
}

// ApproveMNPPaymentEnable
// This API is used to allow the superapp to approve the activation of mini program payment.
//
// error code that may be returned:
//  FAILEDOPERATION_APPROVALALREADYPROCESSED = "FailedOperation.ApprovalAlreadyProcessed"
//  FAILEDOPERATION_APPROVALNOTBELONGTOAPPLICATION = "FailedOperation.ApprovalNotBelongToApplication"
//  FAILEDOPERATION_MNPPAYMENTALREADYENABLED = "FailedOperation.MNPPaymentAlreadyEnabled"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_PAYMENTRECORDNOTFOUND = "FailedOperation.PaymentRecordNotFound"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_APPROVALNOTEREQUIRED = "InvalidParameterValue.ApprovalNoteRequired"
//  INVALIDPARAMETERVALUE_INVALIDAPPROVALTYPE = "InvalidParameterValue.InvalidApprovalType"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_PAYMENTRECORDNOTFOUND = "InvalidParameterValue.PaymentRecordNotFound"
func (c *Client) ApproveMNPPaymentEnableWithContext(ctx context.Context, request *ApproveMNPPaymentEnableRequest) (response *ApproveMNPPaymentEnableResponse, err error) {
    if request == nil {
        request = NewApproveMNPPaymentEnableRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ApproveMNPPaymentEnable")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ApproveMNPPaymentEnable require credential")
    }

    request.SetContext(ctx)
    
    response = NewApproveMNPPaymentEnableResponse()
    err = c.Send(request, response)
    return
}

func NewApprovePaymentMerchantBindingRequest() (request *ApprovePaymentMerchantBindingRequest) {
    request = &ApprovePaymentMerchantBindingRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ApprovePaymentMerchantBinding")
    
    
    return
}

func NewApprovePaymentMerchantBindingResponse() (response *ApprovePaymentMerchantBindingResponse) {
    response = &ApprovePaymentMerchantBindingResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ApprovePaymentMerchantBinding
// This API is used to allow the superapp to approve the payment merchant binding request of a mini program team.
//
// error code that may be returned:
//  FAILEDOPERATION_APPROVALALREADYPROCESSED = "FailedOperation.ApprovalAlreadyProcessed"
//  FAILEDOPERATION_APPROVALNOTBELONGTOAPPLICATION = "FailedOperation.ApprovalNotBelongToApplication"
//  FAILEDOPERATION_EXISTMERCHANTBINDAPPLY = "FailedOperation.ExistMerchantBindApply"
//  FAILEDOPERATION_EXISTMERCHANTBINDRELATION = "FailedOperation.ExistMerchantBindRelation"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_APPROVALNOTEREQUIRED = "InvalidParameterValue.ApprovalNoteRequired"
//  INVALIDPARAMETERVALUE_INVALIDAPPROVALTYPE = "InvalidParameterValue.InvalidApprovalType"
//  INVALIDPARAMETERVALUE_PAYMENTRECORDNOTFOUND = "InvalidParameterValue.PaymentRecordNotFound"
func (c *Client) ApprovePaymentMerchantBinding(request *ApprovePaymentMerchantBindingRequest) (response *ApprovePaymentMerchantBindingResponse, err error) {
    return c.ApprovePaymentMerchantBindingWithContext(context.Background(), request)
}

// ApprovePaymentMerchantBinding
// This API is used to allow the superapp to approve the payment merchant binding request of a mini program team.
//
// error code that may be returned:
//  FAILEDOPERATION_APPROVALALREADYPROCESSED = "FailedOperation.ApprovalAlreadyProcessed"
//  FAILEDOPERATION_APPROVALNOTBELONGTOAPPLICATION = "FailedOperation.ApprovalNotBelongToApplication"
//  FAILEDOPERATION_EXISTMERCHANTBINDAPPLY = "FailedOperation.ExistMerchantBindApply"
//  FAILEDOPERATION_EXISTMERCHANTBINDRELATION = "FailedOperation.ExistMerchantBindRelation"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_APPROVALNOTEREQUIRED = "InvalidParameterValue.ApprovalNoteRequired"
//  INVALIDPARAMETERVALUE_INVALIDAPPROVALTYPE = "InvalidParameterValue.InvalidApprovalType"
//  INVALIDPARAMETERVALUE_PAYMENTRECORDNOTFOUND = "InvalidParameterValue.PaymentRecordNotFound"
func (c *Client) ApprovePaymentMerchantBindingWithContext(ctx context.Context, request *ApprovePaymentMerchantBindingRequest) (response *ApprovePaymentMerchantBindingResponse, err error) {
    if request == nil {
        request = NewApprovePaymentMerchantBindingRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ApprovePaymentMerchantBinding")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ApprovePaymentMerchantBinding require credential")
    }

    request.SetContext(ctx)
    
    response = NewApprovePaymentMerchantBindingResponse()
    err = c.Send(request, response)
    return
}

func NewChangePaymentBoundMerchantRequest() (request *ChangePaymentBoundMerchantRequest) {
    request = &ChangePaymentBoundMerchantRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ChangePaymentBoundMerchant")
    
    
    return
}

func NewChangePaymentBoundMerchantResponse() (response *ChangePaymentBoundMerchantResponse) {
    response = &ChangePaymentBoundMerchantResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ChangePaymentBoundMerchant
// This API is used to change the bound payment merchant.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTMERCHANTBINDAPPLY = "FailedOperation.ExistMerchantBindApply"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMERCHANTID = "InvalidParameterValue.InvalidMerchantId"
//  INVALIDPARAMETERVALUE_INVALIDMERCHANTNAME = "InvalidParameterValue.InvalidMerchantName"
func (c *Client) ChangePaymentBoundMerchant(request *ChangePaymentBoundMerchantRequest) (response *ChangePaymentBoundMerchantResponse, err error) {
    return c.ChangePaymentBoundMerchantWithContext(context.Background(), request)
}

// ChangePaymentBoundMerchant
// This API is used to change the bound payment merchant.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTMERCHANTBINDAPPLY = "FailedOperation.ExistMerchantBindApply"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMERCHANTID = "InvalidParameterValue.InvalidMerchantId"
//  INVALIDPARAMETERVALUE_INVALIDMERCHANTNAME = "InvalidParameterValue.InvalidMerchantName"
func (c *Client) ChangePaymentBoundMerchantWithContext(ctx context.Context, request *ChangePaymentBoundMerchantRequest) (response *ChangePaymentBoundMerchantResponse, err error) {
    if request == nil {
        request = NewChangePaymentBoundMerchantRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ChangePaymentBoundMerchant")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ChangePaymentBoundMerchant require credential")
    }

    request.SetContext(ctx)
    
    response = NewChangePaymentBoundMerchantResponse()
    err = c.Send(request, response)
    return
}

func NewConfigureMNGPreviewRequest() (request *ConfigureMNGPreviewRequest) {
    request = &ConfigureMNGPreviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ConfigureMNGPreview")
    
    
    return
}

func NewConfigureMNGPreviewResponse() (response *ConfigureMNGPreviewResponse) {
    response = &ConfigureMNGPreviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ConfigureMNGPreview
// This API is used to configure the preview of a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_SHOWCASEVERSIONALREADYEXIST = "FailedOperation.ShowcaseVersionAlreadyExist"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) ConfigureMNGPreview(request *ConfigureMNGPreviewRequest) (response *ConfigureMNGPreviewResponse, err error) {
    return c.ConfigureMNGPreviewWithContext(context.Background(), request)
}

// ConfigureMNGPreview
// This API is used to configure the preview of a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_SHOWCASEVERSIONALREADYEXIST = "FailedOperation.ShowcaseVersionAlreadyExist"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) ConfigureMNGPreviewWithContext(ctx context.Context, request *ConfigureMNGPreviewRequest) (response *ConfigureMNGPreviewResponse, err error) {
    if request == nil {
        request = NewConfigureMNGPreviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ConfigureMNGPreview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ConfigureMNGPreview require credential")
    }

    request.SetContext(ctx)
    
    response = NewConfigureMNGPreviewResponse()
    err = c.Send(request, response)
    return
}

func NewConfigureMNPPreviewRequest() (request *ConfigureMNPPreviewRequest) {
    request = &ConfigureMNPPreviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ConfigureMNPPreview")
    
    
    return
}

func NewConfigureMNPPreviewResponse() (response *ConfigureMNPPreviewResponse) {
    response = &ConfigureMNPPreviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ConfigureMNPPreview
// This API is used to configure the preview of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_SHOWCASEVERSIONALREADYEXIST = "FailedOperation.ShowcaseVersionAlreadyExist"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) ConfigureMNPPreview(request *ConfigureMNPPreviewRequest) (response *ConfigureMNPPreviewResponse, err error) {
    return c.ConfigureMNPPreviewWithContext(context.Background(), request)
}

// ConfigureMNPPreview
// This API is used to configure the preview of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_SHOWCASEVERSIONALREADYEXIST = "FailedOperation.ShowcaseVersionAlreadyExist"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) ConfigureMNPPreviewWithContext(ctx context.Context, request *ConfigureMNPPreviewRequest) (response *ConfigureMNPPreviewResponse, err error) {
    if request == nil {
        request = NewConfigureMNPPreviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ConfigureMNPPreview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ConfigureMNPPreview require credential")
    }

    request.SetContext(ctx)
    
    response = NewConfigureMNPPreviewResponse()
    err = c.Send(request, response)
    return
}

func NewCreateApplicationRequest() (request *CreateApplicationRequest) {
    request = &CreateApplicationRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateApplication")
    
    
    return
}

func NewCreateApplicationResponse() (response *CreateApplicationResponse) {
    response = &CreateApplicationResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateApplication
// This API is used to create a superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_APPLICATIONNAMEALREADYEXISTED = "FailedOperation.ApplicationNameAlreadyExisted"
//  FAILEDOPERATION_APPLICATIONNUMBEREXCEEDLIMIT = "FailedOperation.ApplicationNumberExceedLimit"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_APPPACKAGENAMENOTCONFIG = "InvalidParameterValue.AppPackageNameNotConfig"
//  INVALIDPARAMETERVALUE_INVALIDAPPPACKAGENAMELAYOUT = "InvalidParameterValue.InvalidAppPackageNameLayout"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONINTRO = "InvalidParameterValue.InvalidApplicationIntro"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONNAME = "InvalidParameterValue.InvalidApplicationName"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONREMARK = "InvalidParameterValue.InvalidApplicationRemark"
func (c *Client) CreateApplication(request *CreateApplicationRequest) (response *CreateApplicationResponse, err error) {
    return c.CreateApplicationWithContext(context.Background(), request)
}

// CreateApplication
// This API is used to create a superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_APPLICATIONNAMEALREADYEXISTED = "FailedOperation.ApplicationNameAlreadyExisted"
//  FAILEDOPERATION_APPLICATIONNUMBEREXCEEDLIMIT = "FailedOperation.ApplicationNumberExceedLimit"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_APPPACKAGENAMENOTCONFIG = "InvalidParameterValue.AppPackageNameNotConfig"
//  INVALIDPARAMETERVALUE_INVALIDAPPPACKAGENAMELAYOUT = "InvalidParameterValue.InvalidAppPackageNameLayout"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONINTRO = "InvalidParameterValue.InvalidApplicationIntro"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONNAME = "InvalidParameterValue.InvalidApplicationName"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONREMARK = "InvalidParameterValue.InvalidApplicationRemark"
func (c *Client) CreateApplicationWithContext(ctx context.Context, request *CreateApplicationRequest) (response *CreateApplicationResponse, err error) {
    if request == nil {
        request = NewCreateApplicationRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateApplication")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateApplication require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateApplicationResponse()
    err = c.Send(request, response)
    return
}

func NewCreateApplicationConfigRequest() (request *CreateApplicationConfigRequest) {
    request = &CreateApplicationConfigRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateApplicationConfig")
    
    
    return
}

func NewCreateApplicationConfigResponse() (response *CreateApplicationConfigResponse) {
    response = &CreateApplicationConfigResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateApplicationConfig
// This API is used to create the configuration for a specified superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_PRODAPPLICATIONCONFIGEXCEEDLIMIT = "FailedOperation.ProdApplicationConfigExceedLimit"
//  FAILEDOPERATION_TESTAPPLICATIONCONFIGEXCEEDLIMIT = "FailedOperation.TestApplicationConfigExceedLimit"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER_INVALIDEXISTSAMEAPPKEY = "InvalidParameter.InvalidExistSameAppKey"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  INVALIDPARAMETERVALUE_APPKEYLENGTHEXCEEDLIMIT = "InvalidParameterValue.AppKeyLengthExceedLimit"
//  INVALIDPARAMETERVALUE_INVALIDAPPTYPE = "InvalidParameterValue.InvalidAppType"
func (c *Client) CreateApplicationConfig(request *CreateApplicationConfigRequest) (response *CreateApplicationConfigResponse, err error) {
    return c.CreateApplicationConfigWithContext(context.Background(), request)
}

// CreateApplicationConfig
// This API is used to create the configuration for a specified superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_PRODAPPLICATIONCONFIGEXCEEDLIMIT = "FailedOperation.ProdApplicationConfigExceedLimit"
//  FAILEDOPERATION_TESTAPPLICATIONCONFIGEXCEEDLIMIT = "FailedOperation.TestApplicationConfigExceedLimit"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER_INVALIDEXISTSAMEAPPKEY = "InvalidParameter.InvalidExistSameAppKey"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  INVALIDPARAMETERVALUE_APPKEYLENGTHEXCEEDLIMIT = "InvalidParameterValue.AppKeyLengthExceedLimit"
//  INVALIDPARAMETERVALUE_INVALIDAPPTYPE = "InvalidParameterValue.InvalidAppType"
func (c *Client) CreateApplicationConfigWithContext(ctx context.Context, request *CreateApplicationConfigRequest) (response *CreateApplicationConfigResponse, err error) {
    if request == nil {
        request = NewCreateApplicationConfigRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateApplicationConfig")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateApplicationConfig require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateApplicationConfigResponse()
    err = c.Send(request, response)
    return
}

func NewCreateApplicationSensitiveAPIRequest() (request *CreateApplicationSensitiveAPIRequest) {
    request = &CreateApplicationSensitiveAPIRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateApplicationSensitiveAPI")
    
    
    return
}

func NewCreateApplicationSensitiveAPIResponse() (response *CreateApplicationSensitiveAPIResponse) {
    response = &CreateApplicationSensitiveAPIResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateApplicationSensitiveAPI
// This API is used to create a superapp sensitive API.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTSENSITIVEAPI = "FailedOperation.ExistSensitiveAPI"
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) CreateApplicationSensitiveAPI(request *CreateApplicationSensitiveAPIRequest) (response *CreateApplicationSensitiveAPIResponse, err error) {
    return c.CreateApplicationSensitiveAPIWithContext(context.Background(), request)
}

// CreateApplicationSensitiveAPI
// This API is used to create a superapp sensitive API.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTSENSITIVEAPI = "FailedOperation.ExistSensitiveAPI"
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) CreateApplicationSensitiveAPIWithContext(ctx context.Context, request *CreateApplicationSensitiveAPIRequest) (response *CreateApplicationSensitiveAPIResponse, err error) {
    if request == nil {
        request = NewCreateApplicationSensitiveAPIRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateApplicationSensitiveAPI")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateApplicationSensitiveAPI require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateApplicationSensitiveAPIResponse()
    err = c.Send(request, response)
    return
}

func NewCreateGlobalDomainACLRequest() (request *CreateGlobalDomainACLRequest) {
    request = &CreateGlobalDomainACLRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateGlobalDomainACL")
    
    
    return
}

func NewCreateGlobalDomainACLResponse() (response *CreateGlobalDomainACLResponse) {
    response = &CreateGlobalDomainACLResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateGlobalDomainACL
// This API is used to create a global domain allowlist or blocklist.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) CreateGlobalDomainACL(request *CreateGlobalDomainACLRequest) (response *CreateGlobalDomainACLResponse, err error) {
    return c.CreateGlobalDomainACLWithContext(context.Background(), request)
}

// CreateGlobalDomainACL
// This API is used to create a global domain allowlist or blocklist.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) CreateGlobalDomainACLWithContext(ctx context.Context, request *CreateGlobalDomainACLRequest) (response *CreateGlobalDomainACLResponse, err error) {
    if request == nil {
        request = NewCreateGlobalDomainACLRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateGlobalDomainACL")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateGlobalDomainACL require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateGlobalDomainACLResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNGRequest() (request *CreateMNGRequest) {
    request = &CreateMNGRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNG")
    
    
    return
}

func NewCreateMNGResponse() (response *CreateMNGResponse) {
    response = &CreateMNGResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNG
// This API is used to create a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPNUMBEREXCEEDLIMIT = "FailedOperation.MNPNumberExceedLimit"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_AGERATINGEXCEEDSUPPERAPPLIMIT = "InvalidParameterValue.AgeRatingExceedSupperAppLimit"
//  INVALIDPARAMETERVALUE_DUPLICATEAGERATINGSTANDARD = "InvalidParameterValue.DuplicateAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDAGERATINGSTANDARD = "InvalidParameterValue.InvalidAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDMNPI18NLANG = "InvalidParameterValue.InvalidMNPI18NLang"
//  INVALIDPARAMETERVALUE_INVALIDMNPICON = "InvalidParameterValue.InvalidMNPIcon"
//  INVALIDPARAMETERVALUE_INVALIDMNPINTRO = "InvalidParameterValue.InvalidMNPIntro"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
//  INVALIDPARAMETERVALUE_MNPTYPENUMBEREXCEEDLIMIT = "InvalidParameterValue.MNPTypeNumberExceedLimit"
//  INVALIDPARAMETERVALUE_MINIPROGRAMNAMEALREADYEXIST = "InvalidParameterValue.MiniProgramNameAlreadyExist"
func (c *Client) CreateMNG(request *CreateMNGRequest) (response *CreateMNGResponse, err error) {
    return c.CreateMNGWithContext(context.Background(), request)
}

// CreateMNG
// This API is used to create a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPNUMBEREXCEEDLIMIT = "FailedOperation.MNPNumberExceedLimit"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_AGERATINGEXCEEDSUPPERAPPLIMIT = "InvalidParameterValue.AgeRatingExceedSupperAppLimit"
//  INVALIDPARAMETERVALUE_DUPLICATEAGERATINGSTANDARD = "InvalidParameterValue.DuplicateAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDAGERATINGSTANDARD = "InvalidParameterValue.InvalidAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDMNPI18NLANG = "InvalidParameterValue.InvalidMNPI18NLang"
//  INVALIDPARAMETERVALUE_INVALIDMNPICON = "InvalidParameterValue.InvalidMNPIcon"
//  INVALIDPARAMETERVALUE_INVALIDMNPINTRO = "InvalidParameterValue.InvalidMNPIntro"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
//  INVALIDPARAMETERVALUE_MNPTYPENUMBEREXCEEDLIMIT = "InvalidParameterValue.MNPTypeNumberExceedLimit"
//  INVALIDPARAMETERVALUE_MINIPROGRAMNAMEALREADYEXIST = "InvalidParameterValue.MiniProgramNameAlreadyExist"
func (c *Client) CreateMNGWithContext(ctx context.Context, request *CreateMNGRequest) (response *CreateMNGResponse, err error) {
    if request == nil {
        request = NewCreateMNGRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNG")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNG require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNGResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNGAppSecretRequest() (request *CreateMNGAppSecretRequest) {
    request = &CreateMNGAppSecretRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNGAppSecret")
    
    
    return
}

func NewCreateMNGAppSecretResponse() (response *CreateMNGAppSecretResponse) {
    response = &CreateMNGAppSecretResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNGAppSecret
// This API is used to generate a mini game secret key.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNGAppSecret(request *CreateMNGAppSecretRequest) (response *CreateMNGAppSecretResponse, err error) {
    return c.CreateMNGAppSecretWithContext(context.Background(), request)
}

// CreateMNGAppSecret
// This API is used to generate a mini game secret key.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNGAppSecretWithContext(ctx context.Context, request *CreateMNGAppSecretRequest) (response *CreateMNGAppSecretResponse, err error) {
    if request == nil {
        request = NewCreateMNGAppSecretRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNGAppSecret")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNGAppSecret require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNGAppSecretResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNGApprovalRequest() (request *CreateMNGApprovalRequest) {
    request = &CreateMNGApprovalRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNGApproval")
    
    
    return
}

func NewCreateMNGApprovalResponse() (response *CreateMNGApprovalResponse) {
    response = &CreateMNGApprovalResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNGApproval
// This API is used to create a mini game approval request.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTMNPAPPROVALRECORD = "FailedOperation.ExistMNPApprovalRecord"
//  FAILEDOPERATION_MNPTEAMASSOCIATEDAPPLICATIONTEAMNOTCREATEAPPLICATION = "FailedOperation.MNPTeamAssociatedApplicationTeamNotCreateApplication"
//  FAILEDOPERATION_MNPTEAMNOTASSOCIATEDAPPLICATIONTEAM = "FailedOperation.MNPTeamNotAssociatedApplicationTeam"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLYACTION = "InvalidParameterValue.InvalidApplyAction"
//  INVALIDPARAMETERVALUE_MNPAPPROVALSTATUSERROR = "InvalidParameterValue.MNPApprovalStatusError"
//  INVALIDPARAMETERVALUE_MNPVERSIONISNOTPLATFORMPHASE = "InvalidParameterValue.MNPVersionIsNotPlatformPhase"
func (c *Client) CreateMNGApproval(request *CreateMNGApprovalRequest) (response *CreateMNGApprovalResponse, err error) {
    return c.CreateMNGApprovalWithContext(context.Background(), request)
}

// CreateMNGApproval
// This API is used to create a mini game approval request.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTMNPAPPROVALRECORD = "FailedOperation.ExistMNPApprovalRecord"
//  FAILEDOPERATION_MNPTEAMASSOCIATEDAPPLICATIONTEAMNOTCREATEAPPLICATION = "FailedOperation.MNPTeamAssociatedApplicationTeamNotCreateApplication"
//  FAILEDOPERATION_MNPTEAMNOTASSOCIATEDAPPLICATIONTEAM = "FailedOperation.MNPTeamNotAssociatedApplicationTeam"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLYACTION = "InvalidParameterValue.InvalidApplyAction"
//  INVALIDPARAMETERVALUE_MNPAPPROVALSTATUSERROR = "InvalidParameterValue.MNPApprovalStatusError"
//  INVALIDPARAMETERVALUE_MNPVERSIONISNOTPLATFORMPHASE = "InvalidParameterValue.MNPVersionIsNotPlatformPhase"
func (c *Client) CreateMNGApprovalWithContext(ctx context.Context, request *CreateMNGApprovalRequest) (response *CreateMNGApprovalResponse, err error) {
    if request == nil {
        request = NewCreateMNGApprovalRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNGApproval")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNGApproval require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNGApprovalResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNGDomainACLRequest() (request *CreateMNGDomainACLRequest) {
    request = &CreateMNGDomainACLRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNGDomainACL")
    
    
    return
}

func NewCreateMNGDomainACLResponse() (response *CreateMNGDomainACLResponse) {
    response = &CreateMNGDomainACLResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNGDomainACL
// This API is used to create a domain allowlist/blocklist for a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTREPEATDOMAINURL = "FailedOperation.ExistRepeatDomainUrl"
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) CreateMNGDomainACL(request *CreateMNGDomainACLRequest) (response *CreateMNGDomainACLResponse, err error) {
    return c.CreateMNGDomainACLWithContext(context.Background(), request)
}

// CreateMNGDomainACL
// This API is used to create a domain allowlist/blocklist for a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTREPEATDOMAINURL = "FailedOperation.ExistRepeatDomainUrl"
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) CreateMNGDomainACLWithContext(ctx context.Context, request *CreateMNGDomainACLRequest) (response *CreateMNGDomainACLResponse, err error) {
    if request == nil {
        request = NewCreateMNGDomainACLRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNGDomainACL")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNGDomainACL require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNGDomainACLResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNGSensitiveAPIPermissionApprovalRequest() (request *CreateMNGSensitiveAPIPermissionApprovalRequest) {
    request = &CreateMNGSensitiveAPIPermissionApprovalRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNGSensitiveAPIPermissionApproval")
    
    
    return
}

func NewCreateMNGSensitiveAPIPermissionApprovalResponse() (response *CreateMNGSensitiveAPIPermissionApprovalResponse) {
    response = &CreateMNGSensitiveAPIPermissionApprovalResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNGSensitiveAPIPermissionApproval
// This API is used to create a permission request to allow a mini game to call sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) CreateMNGSensitiveAPIPermissionApproval(request *CreateMNGSensitiveAPIPermissionApprovalRequest) (response *CreateMNGSensitiveAPIPermissionApprovalResponse, err error) {
    return c.CreateMNGSensitiveAPIPermissionApprovalWithContext(context.Background(), request)
}

// CreateMNGSensitiveAPIPermissionApproval
// This API is used to create a permission request to allow a mini game to call sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) CreateMNGSensitiveAPIPermissionApprovalWithContext(ctx context.Context, request *CreateMNGSensitiveAPIPermissionApprovalRequest) (response *CreateMNGSensitiveAPIPermissionApprovalResponse, err error) {
    if request == nil {
        request = NewCreateMNGSensitiveAPIPermissionApprovalRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNGSensitiveAPIPermissionApproval")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNGSensitiveAPIPermissionApproval require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNGSensitiveAPIPermissionApprovalResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNGSubscribeMessageTemplateRequest() (request *CreateMNGSubscribeMessageTemplateRequest) {
    request = &CreateMNGSubscribeMessageTemplateRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNGSubscribeMessageTemplate")
    
    
    return
}

func NewCreateMNGSubscribeMessageTemplateResponse() (response *CreateMNGSubscribeMessageTemplateResponse) {
    response = &CreateMNGSubscribeMessageTemplateResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNGSubscribeMessageTemplate
// This API is used to create a mini game subscription message template.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNGSubscribeMessageTemplate(request *CreateMNGSubscribeMessageTemplateRequest) (response *CreateMNGSubscribeMessageTemplateResponse, err error) {
    return c.CreateMNGSubscribeMessageTemplateWithContext(context.Background(), request)
}

// CreateMNGSubscribeMessageTemplate
// This API is used to create a mini game subscription message template.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNGSubscribeMessageTemplateWithContext(ctx context.Context, request *CreateMNGSubscribeMessageTemplateRequest) (response *CreateMNGSubscribeMessageTemplateResponse, err error) {
    if request == nil {
        request = NewCreateMNGSubscribeMessageTemplateRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNGSubscribeMessageTemplate")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNGSubscribeMessageTemplate require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNGSubscribeMessageTemplateResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNGVersionRequest() (request *CreateMNGVersionRequest) {
    request = &CreateMNGVersionRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNGVersion")
    
    
    return
}

func NewCreateMNGVersionResponse() (response *CreateMNGVersionResponse) {
    response = &CreateMNGVersionResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNGVersion
// This API is used to create a mini game version.
//
// error code that may be returned:
//  FAILEDOPERATION_FILEDOWNLOADFAILED = "FailedOperation.FileDownloadFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTMISMATCHPARAMETERTYPE = "InvalidParameterValue.ExistMismatchParameterType"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSION = "InvalidParameterValue.InvalidMNPVersion"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONINTRO = "InvalidParameterValue.InvalidMNPVersionIntro"
//  INVALIDPARAMETERVALUE_MNPFILESIZEXCEEDLIMIT = "InvalidParameterValue.MNPFileSizExceedLimit"
func (c *Client) CreateMNGVersion(request *CreateMNGVersionRequest) (response *CreateMNGVersionResponse, err error) {
    return c.CreateMNGVersionWithContext(context.Background(), request)
}

// CreateMNGVersion
// This API is used to create a mini game version.
//
// error code that may be returned:
//  FAILEDOPERATION_FILEDOWNLOADFAILED = "FailedOperation.FileDownloadFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTMISMATCHPARAMETERTYPE = "InvalidParameterValue.ExistMismatchParameterType"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSION = "InvalidParameterValue.InvalidMNPVersion"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONINTRO = "InvalidParameterValue.InvalidMNPVersionIntro"
//  INVALIDPARAMETERVALUE_MNPFILESIZEXCEEDLIMIT = "InvalidParameterValue.MNPFileSizExceedLimit"
func (c *Client) CreateMNGVersionWithContext(ctx context.Context, request *CreateMNGVersionRequest) (response *CreateMNGVersionResponse, err error) {
    if request == nil {
        request = NewCreateMNGVersionRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNGVersion")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNGVersion require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNGVersionResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNPRequest() (request *CreateMNPRequest) {
    request = &CreateMNPRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNP")
    
    
    return
}

func NewCreateMNPResponse() (response *CreateMNPResponse) {
    response = &CreateMNPResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNP
// This API is used to create a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPNUMBEREXCEEDLIMIT = "FailedOperation.MNPNumberExceedLimit"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_AGERATINGEXCEEDSUPPERAPPLIMIT = "InvalidParameterValue.AgeRatingExceedSupperAppLimit"
//  INVALIDPARAMETERVALUE_DUPLICATEAGERATINGSTANDARD = "InvalidParameterValue.DuplicateAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDAGERATINGSTANDARD = "InvalidParameterValue.InvalidAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDMNPI18NLANG = "InvalidParameterValue.InvalidMNPI18NLang"
//  INVALIDPARAMETERVALUE_INVALIDMNPICON = "InvalidParameterValue.InvalidMNPIcon"
//  INVALIDPARAMETERVALUE_INVALIDMNPINTRO = "InvalidParameterValue.InvalidMNPIntro"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
//  INVALIDPARAMETERVALUE_MNPTYPENUMBEREXCEEDLIMIT = "InvalidParameterValue.MNPTypeNumberExceedLimit"
//  INVALIDPARAMETERVALUE_MINIPROGRAMNAMEALREADYEXIST = "InvalidParameterValue.MiniProgramNameAlreadyExist"
func (c *Client) CreateMNP(request *CreateMNPRequest) (response *CreateMNPResponse, err error) {
    return c.CreateMNPWithContext(context.Background(), request)
}

// CreateMNP
// This API is used to create a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPNUMBEREXCEEDLIMIT = "FailedOperation.MNPNumberExceedLimit"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_AGERATINGEXCEEDSUPPERAPPLIMIT = "InvalidParameterValue.AgeRatingExceedSupperAppLimit"
//  INVALIDPARAMETERVALUE_DUPLICATEAGERATINGSTANDARD = "InvalidParameterValue.DuplicateAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDAGERATINGSTANDARD = "InvalidParameterValue.InvalidAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDMNPI18NLANG = "InvalidParameterValue.InvalidMNPI18NLang"
//  INVALIDPARAMETERVALUE_INVALIDMNPICON = "InvalidParameterValue.InvalidMNPIcon"
//  INVALIDPARAMETERVALUE_INVALIDMNPINTRO = "InvalidParameterValue.InvalidMNPIntro"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
//  INVALIDPARAMETERVALUE_MNPTYPENUMBEREXCEEDLIMIT = "InvalidParameterValue.MNPTypeNumberExceedLimit"
//  INVALIDPARAMETERVALUE_MINIPROGRAMNAMEALREADYEXIST = "InvalidParameterValue.MiniProgramNameAlreadyExist"
func (c *Client) CreateMNPWithContext(ctx context.Context, request *CreateMNPRequest) (response *CreateMNPResponse, err error) {
    if request == nil {
        request = NewCreateMNPRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNP")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNP require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNPResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNPAppSecretRequest() (request *CreateMNPAppSecretRequest) {
    request = &CreateMNPAppSecretRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNPAppSecret")
    
    
    return
}

func NewCreateMNPAppSecretResponse() (response *CreateMNPAppSecretResponse) {
    response = &CreateMNPAppSecretResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNPAppSecret
// This API is used to generate a mini program secret key.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNPAppSecret(request *CreateMNPAppSecretRequest) (response *CreateMNPAppSecretResponse, err error) {
    return c.CreateMNPAppSecretWithContext(context.Background(), request)
}

// CreateMNPAppSecret
// This API is used to generate a mini program secret key.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNPAppSecretWithContext(ctx context.Context, request *CreateMNPAppSecretRequest) (response *CreateMNPAppSecretResponse, err error) {
    if request == nil {
        request = NewCreateMNPAppSecretRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNPAppSecret")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNPAppSecret require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNPAppSecretResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNPApprovalRequest() (request *CreateMNPApprovalRequest) {
    request = &CreateMNPApprovalRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNPApproval")
    
    
    return
}

func NewCreateMNPApprovalResponse() (response *CreateMNPApprovalResponse) {
    response = &CreateMNPApprovalResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNPApproval
// This API is used to create a mini program approval request.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTMNPAPPROVALRECORD = "FailedOperation.ExistMNPApprovalRecord"
//  FAILEDOPERATION_MNPTEAMASSOCIATEDAPPLICATIONTEAMNOTCREATEAPPLICATION = "FailedOperation.MNPTeamAssociatedApplicationTeamNotCreateApplication"
//  FAILEDOPERATION_MNPTEAMNOTASSOCIATEDAPPLICATIONTEAM = "FailedOperation.MNPTeamNotAssociatedApplicationTeam"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLYACTION = "InvalidParameterValue.InvalidApplyAction"
//  INVALIDPARAMETERVALUE_MNPAPPROVALSTATUSERROR = "InvalidParameterValue.MNPApprovalStatusError"
//  INVALIDPARAMETERVALUE_MNPVERSIONISNOTPLATFORMPHASE = "InvalidParameterValue.MNPVersionIsNotPlatformPhase"
func (c *Client) CreateMNPApproval(request *CreateMNPApprovalRequest) (response *CreateMNPApprovalResponse, err error) {
    return c.CreateMNPApprovalWithContext(context.Background(), request)
}

// CreateMNPApproval
// This API is used to create a mini program approval request.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTMNPAPPROVALRECORD = "FailedOperation.ExistMNPApprovalRecord"
//  FAILEDOPERATION_MNPTEAMASSOCIATEDAPPLICATIONTEAMNOTCREATEAPPLICATION = "FailedOperation.MNPTeamAssociatedApplicationTeamNotCreateApplication"
//  FAILEDOPERATION_MNPTEAMNOTASSOCIATEDAPPLICATIONTEAM = "FailedOperation.MNPTeamNotAssociatedApplicationTeam"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLYACTION = "InvalidParameterValue.InvalidApplyAction"
//  INVALIDPARAMETERVALUE_MNPAPPROVALSTATUSERROR = "InvalidParameterValue.MNPApprovalStatusError"
//  INVALIDPARAMETERVALUE_MNPVERSIONISNOTPLATFORMPHASE = "InvalidParameterValue.MNPVersionIsNotPlatformPhase"
func (c *Client) CreateMNPApprovalWithContext(ctx context.Context, request *CreateMNPApprovalRequest) (response *CreateMNPApprovalResponse, err error) {
    if request == nil {
        request = NewCreateMNPApprovalRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNPApproval")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNPApproval require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNPApprovalResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNPDomainACLRequest() (request *CreateMNPDomainACLRequest) {
    request = &CreateMNPDomainACLRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNPDomainACL")
    
    
    return
}

func NewCreateMNPDomainACLResponse() (response *CreateMNPDomainACLResponse) {
    response = &CreateMNPDomainACLResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNPDomainACL
// This API is used to create a domain allowlist/blocklist for a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTREPEATDOMAINURL = "FailedOperation.ExistRepeatDomainUrl"
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) CreateMNPDomainACL(request *CreateMNPDomainACLRequest) (response *CreateMNPDomainACLResponse, err error) {
    return c.CreateMNPDomainACLWithContext(context.Background(), request)
}

// CreateMNPDomainACL
// This API is used to create a domain allowlist/blocklist for a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTREPEATDOMAINURL = "FailedOperation.ExistRepeatDomainUrl"
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) CreateMNPDomainACLWithContext(ctx context.Context, request *CreateMNPDomainACLRequest) (response *CreateMNPDomainACLResponse, err error) {
    if request == nil {
        request = NewCreateMNPDomainACLRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNPDomainACL")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNPDomainACL require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNPDomainACLResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNPSecretKeyRequest() (request *CreateMNPSecretKeyRequest) {
    request = &CreateMNPSecretKeyRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNPSecretKey")
    
    
    return
}

func NewCreateMNPSecretKeyResponse() (response *CreateMNPSecretKeyResponse) {
    response = &CreateMNPSecretKeyResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNPSecretKey
// This API is used to create a package secret key for a mini program or mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTMISMATCHPARAMETERTYPE = "InvalidParameterValue.ExistMismatchParameterType"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNPSecretKey(request *CreateMNPSecretKeyRequest) (response *CreateMNPSecretKeyResponse, err error) {
    return c.CreateMNPSecretKeyWithContext(context.Background(), request)
}

// CreateMNPSecretKey
// This API is used to create a package secret key for a mini program or mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTMISMATCHPARAMETERTYPE = "InvalidParameterValue.ExistMismatchParameterType"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNPSecretKeyWithContext(ctx context.Context, request *CreateMNPSecretKeyRequest) (response *CreateMNPSecretKeyResponse, err error) {
    if request == nil {
        request = NewCreateMNPSecretKeyRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNPSecretKey")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNPSecretKey require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNPSecretKeyResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNPSensitiveAPIPermissionApprovalRequest() (request *CreateMNPSensitiveAPIPermissionApprovalRequest) {
    request = &CreateMNPSensitiveAPIPermissionApprovalRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNPSensitiveAPIPermissionApproval")
    
    
    return
}

func NewCreateMNPSensitiveAPIPermissionApprovalResponse() (response *CreateMNPSensitiveAPIPermissionApprovalResponse) {
    response = &CreateMNPSensitiveAPIPermissionApprovalResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNPSensitiveAPIPermissionApproval
// This API is used to create a permission request to allow a mini program to call sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) CreateMNPSensitiveAPIPermissionApproval(request *CreateMNPSensitiveAPIPermissionApprovalRequest) (response *CreateMNPSensitiveAPIPermissionApprovalResponse, err error) {
    return c.CreateMNPSensitiveAPIPermissionApprovalWithContext(context.Background(), request)
}

// CreateMNPSensitiveAPIPermissionApproval
// This API is used to create a permission request to allow a mini program to call sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) CreateMNPSensitiveAPIPermissionApprovalWithContext(ctx context.Context, request *CreateMNPSensitiveAPIPermissionApprovalRequest) (response *CreateMNPSensitiveAPIPermissionApprovalResponse, err error) {
    if request == nil {
        request = NewCreateMNPSensitiveAPIPermissionApprovalRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNPSensitiveAPIPermissionApproval")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNPSensitiveAPIPermissionApproval require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNPSensitiveAPIPermissionApprovalResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNPSubscribeMessageTemplateRequest() (request *CreateMNPSubscribeMessageTemplateRequest) {
    request = &CreateMNPSubscribeMessageTemplateRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNPSubscribeMessageTemplate")
    
    
    return
}

func NewCreateMNPSubscribeMessageTemplateResponse() (response *CreateMNPSubscribeMessageTemplateResponse) {
    response = &CreateMNPSubscribeMessageTemplateResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNPSubscribeMessageTemplate
// This API is used to create a mini program subscription message template.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNPSubscribeMessageTemplate(request *CreateMNPSubscribeMessageTemplateRequest) (response *CreateMNPSubscribeMessageTemplateResponse, err error) {
    return c.CreateMNPSubscribeMessageTemplateWithContext(context.Background(), request)
}

// CreateMNPSubscribeMessageTemplate
// This API is used to create a mini program subscription message template.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) CreateMNPSubscribeMessageTemplateWithContext(ctx context.Context, request *CreateMNPSubscribeMessageTemplateRequest) (response *CreateMNPSubscribeMessageTemplateResponse, err error) {
    if request == nil {
        request = NewCreateMNPSubscribeMessageTemplateRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNPSubscribeMessageTemplate")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNPSubscribeMessageTemplate require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNPSubscribeMessageTemplateResponse()
    err = c.Send(request, response)
    return
}

func NewCreateMNPVersionRequest() (request *CreateMNPVersionRequest) {
    request = &CreateMNPVersionRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateMNPVersion")
    
    
    return
}

func NewCreateMNPVersionResponse() (response *CreateMNPVersionResponse) {
    response = &CreateMNPVersionResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateMNPVersion
// This API is used to create a mini program version.
//
// error code that may be returned:
//  FAILEDOPERATION_FILEDOWNLOADFAILED = "FailedOperation.FileDownloadFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTMISMATCHPARAMETERTYPE = "InvalidParameterValue.ExistMismatchParameterType"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSION = "InvalidParameterValue.InvalidMNPVersion"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONINTRO = "InvalidParameterValue.InvalidMNPVersionIntro"
//  INVALIDPARAMETERVALUE_MNPFILESIZEXCEEDLIMIT = "InvalidParameterValue.MNPFileSizExceedLimit"
func (c *Client) CreateMNPVersion(request *CreateMNPVersionRequest) (response *CreateMNPVersionResponse, err error) {
    return c.CreateMNPVersionWithContext(context.Background(), request)
}

// CreateMNPVersion
// This API is used to create a mini program version.
//
// error code that may be returned:
//  FAILEDOPERATION_FILEDOWNLOADFAILED = "FailedOperation.FileDownloadFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTMISMATCHPARAMETERTYPE = "InvalidParameterValue.ExistMismatchParameterType"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSION = "InvalidParameterValue.InvalidMNPVersion"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONINTRO = "InvalidParameterValue.InvalidMNPVersionIntro"
//  INVALIDPARAMETERVALUE_MNPFILESIZEXCEEDLIMIT = "InvalidParameterValue.MNPFileSizExceedLimit"
func (c *Client) CreateMNPVersionWithContext(ctx context.Context, request *CreateMNPVersionRequest) (response *CreateMNPVersionResponse, err error) {
    if request == nil {
        request = NewCreateMNPVersionRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateMNPVersion")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateMNPVersion require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateMNPVersionResponse()
    err = c.Send(request, response)
    return
}

func NewCreatePresetKeyRequest() (request *CreatePresetKeyRequest) {
    request = &CreatePresetKeyRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreatePresetKey")
    
    
    return
}

func NewCreatePresetKeyResponse() (response *CreatePresetKeyResponse) {
    response = &CreatePresetKeyResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreatePresetKey
// This API is used to obtain the encryption key.
//
// error code that may be returned:
//  AUTHFAILURE = "AuthFailure"
//  FAILEDOPERATION_LOGINAUTHFAILED = "FailedOperation.LoginAuthFailed"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) CreatePresetKey(request *CreatePresetKeyRequest) (response *CreatePresetKeyResponse, err error) {
    return c.CreatePresetKeyWithContext(context.Background(), request)
}

// CreatePresetKey
// This API is used to obtain the encryption key.
//
// error code that may be returned:
//  AUTHFAILURE = "AuthFailure"
//  FAILEDOPERATION_LOGINAUTHFAILED = "FailedOperation.LoginAuthFailed"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) CreatePresetKeyWithContext(ctx context.Context, request *CreatePresetKeyRequest) (response *CreatePresetKeyResponse, err error) {
    if request == nil {
        request = NewCreatePresetKeyRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreatePresetKey")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreatePresetKey require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreatePresetKeyResponse()
    err = c.Send(request, response)
    return
}

func NewCreateTeamRequest() (request *CreateTeamRequest) {
    request = &CreateTeamRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateTeam")
    
    
    return
}

func NewCreateTeamResponse() (response *CreateTeamResponse) {
    response = &CreateTeamResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateTeam
// This API is used to create a team.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTTEAMNAME = "InvalidParameterValue.ExistTeamName"
func (c *Client) CreateTeam(request *CreateTeamRequest) (response *CreateTeamResponse, err error) {
    return c.CreateTeamWithContext(context.Background(), request)
}

// CreateTeam
// This API is used to create a team.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTTEAMNAME = "InvalidParameterValue.ExistTeamName"
func (c *Client) CreateTeamWithContext(ctx context.Context, request *CreateTeamRequest) (response *CreateTeamResponse, err error) {
    if request == nil {
        request = NewCreateTeamRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateTeam")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateTeam require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateTeamResponse()
    err = c.Send(request, response)
    return
}

func NewCreateUserRequest() (request *CreateUserRequest) {
    request = &CreateUserRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "CreateUser")
    
    
    return
}

func NewCreateUserResponse() (response *CreateUserResponse) {
    response = &CreateUserResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateUser
// This API is used to create a user.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTUSERACCOUNT = "InvalidParameterValue.ExistUserAccount"
func (c *Client) CreateUser(request *CreateUserRequest) (response *CreateUserResponse, err error) {
    return c.CreateUserWithContext(context.Background(), request)
}

// CreateUser
// This API is used to create a user.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTUSERACCOUNT = "InvalidParameterValue.ExistUserAccount"
func (c *Client) CreateUserWithContext(ctx context.Context, request *CreateUserRequest) (response *CreateUserResponse, err error) {
    if request == nil {
        request = NewCreateUserRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "CreateUser")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateUser require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateUserResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteApplicationRequest() (request *DeleteApplicationRequest) {
    request = &DeleteApplicationRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteApplication")
    
    
    return
}

func NewDeleteApplicationResponse() (response *DeleteApplicationResponse) {
    response = &DeleteApplicationResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteApplication
// This API is used to delete a superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_APPALREADYBINDAUDIT = "FailedOperation.AppAlreadyBindAudit"
//  FAILEDOPERATION_APPALREADYBINDMINIPROGRAM = "FailedOperation.AppAlreadyBindMiniProgram"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
//  RESOURCENOTFOUND_NOTFOUNDPURCHASEDPACKAGE = "ResourceNotFound.NotFoundPurchasedPackage"
func (c *Client) DeleteApplication(request *DeleteApplicationRequest) (response *DeleteApplicationResponse, err error) {
    return c.DeleteApplicationWithContext(context.Background(), request)
}

// DeleteApplication
// This API is used to delete a superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_APPALREADYBINDAUDIT = "FailedOperation.AppAlreadyBindAudit"
//  FAILEDOPERATION_APPALREADYBINDMINIPROGRAM = "FailedOperation.AppAlreadyBindMiniProgram"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
//  RESOURCENOTFOUND_NOTFOUNDPURCHASEDPACKAGE = "ResourceNotFound.NotFoundPurchasedPackage"
func (c *Client) DeleteApplicationWithContext(ctx context.Context, request *DeleteApplicationRequest) (response *DeleteApplicationResponse, err error) {
    if request == nil {
        request = NewDeleteApplicationRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteApplication")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteApplication require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteApplicationResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteApplicationSensitiveAPIRequest() (request *DeleteApplicationSensitiveAPIRequest) {
    request = &DeleteApplicationSensitiveAPIRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteApplicationSensitiveAPI")
    
    
    return
}

func NewDeleteApplicationSensitiveAPIResponse() (response *DeleteApplicationSensitiveAPIResponse) {
    response = &DeleteApplicationSensitiveAPIResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteApplicationSensitiveAPI
// This API is used to delete a superapp sensitive API.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DeleteApplicationSensitiveAPI(request *DeleteApplicationSensitiveAPIRequest) (response *DeleteApplicationSensitiveAPIResponse, err error) {
    return c.DeleteApplicationSensitiveAPIWithContext(context.Background(), request)
}

// DeleteApplicationSensitiveAPI
// This API is used to delete a superapp sensitive API.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DeleteApplicationSensitiveAPIWithContext(ctx context.Context, request *DeleteApplicationSensitiveAPIRequest) (response *DeleteApplicationSensitiveAPIResponse, err error) {
    if request == nil {
        request = NewDeleteApplicationSensitiveAPIRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteApplicationSensitiveAPI")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteApplicationSensitiveAPI require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteApplicationSensitiveAPIResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteGlobalDomainRequest() (request *DeleteGlobalDomainRequest) {
    request = &DeleteGlobalDomainRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteGlobalDomain")
    
    
    return
}

func NewDeleteGlobalDomainResponse() (response *DeleteGlobalDomainResponse) {
    response = &DeleteGlobalDomainResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteGlobalDomain
// This API is used to delete domains from the allowlist or blocklist.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
func (c *Client) DeleteGlobalDomain(request *DeleteGlobalDomainRequest) (response *DeleteGlobalDomainResponse, err error) {
    return c.DeleteGlobalDomainWithContext(context.Background(), request)
}

// DeleteGlobalDomain
// This API is used to delete domains from the allowlist or blocklist.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
func (c *Client) DeleteGlobalDomainWithContext(ctx context.Context, request *DeleteGlobalDomainRequest) (response *DeleteGlobalDomainResponse, err error) {
    if request == nil {
        request = NewDeleteGlobalDomainRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteGlobalDomain")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteGlobalDomain require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteGlobalDomainResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteMNGRequest() (request *DeleteMNGRequest) {
    request = &DeleteMNGRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteMNG")
    
    
    return
}

func NewDeleteMNGResponse() (response *DeleteMNGResponse) {
    response = &DeleteMNGResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteMNG
// This API is used to delete a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DeleteMNG(request *DeleteMNGRequest) (response *DeleteMNGResponse, err error) {
    return c.DeleteMNGWithContext(context.Background(), request)
}

// DeleteMNG
// This API is used to delete a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DeleteMNGWithContext(ctx context.Context, request *DeleteMNGRequest) (response *DeleteMNGResponse, err error) {
    if request == nil {
        request = NewDeleteMNGRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteMNG")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteMNG require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteMNGResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteMNGSubscribeMessageTemplateRequest() (request *DeleteMNGSubscribeMessageTemplateRequest) {
    request = &DeleteMNGSubscribeMessageTemplateRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteMNGSubscribeMessageTemplate")
    
    
    return
}

func NewDeleteMNGSubscribeMessageTemplateResponse() (response *DeleteMNGSubscribeMessageTemplateResponse) {
    response = &DeleteMNGSubscribeMessageTemplateResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteMNGSubscribeMessageTemplate
// This API is used to delete a mini game subscription message template.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DeleteMNGSubscribeMessageTemplate(request *DeleteMNGSubscribeMessageTemplateRequest) (response *DeleteMNGSubscribeMessageTemplateResponse, err error) {
    return c.DeleteMNGSubscribeMessageTemplateWithContext(context.Background(), request)
}

// DeleteMNGSubscribeMessageTemplate
// This API is used to delete a mini game subscription message template.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DeleteMNGSubscribeMessageTemplateWithContext(ctx context.Context, request *DeleteMNGSubscribeMessageTemplateRequest) (response *DeleteMNGSubscribeMessageTemplateResponse, err error) {
    if request == nil {
        request = NewDeleteMNGSubscribeMessageTemplateRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteMNGSubscribeMessageTemplate")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteMNGSubscribeMessageTemplate require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteMNGSubscribeMessageTemplateResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteMNPRequest() (request *DeleteMNPRequest) {
    request = &DeleteMNPRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteMNP")
    
    
    return
}

func NewDeleteMNPResponse() (response *DeleteMNPResponse) {
    response = &DeleteMNPResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteMNP
// This API is used to delete a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DeleteMNP(request *DeleteMNPRequest) (response *DeleteMNPResponse, err error) {
    return c.DeleteMNPWithContext(context.Background(), request)
}

// DeleteMNP
// This API is used to delete a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DeleteMNPWithContext(ctx context.Context, request *DeleteMNPRequest) (response *DeleteMNPResponse, err error) {
    if request == nil {
        request = NewDeleteMNPRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteMNP")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteMNP require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteMNPResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteMNPSubscribeMessageTemplateRequest() (request *DeleteMNPSubscribeMessageTemplateRequest) {
    request = &DeleteMNPSubscribeMessageTemplateRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteMNPSubscribeMessageTemplate")
    
    
    return
}

func NewDeleteMNPSubscribeMessageTemplateResponse() (response *DeleteMNPSubscribeMessageTemplateResponse) {
    response = &DeleteMNPSubscribeMessageTemplateResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteMNPSubscribeMessageTemplate
// This API is used to delete a mini program subscription message template.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DeleteMNPSubscribeMessageTemplate(request *DeleteMNPSubscribeMessageTemplateRequest) (response *DeleteMNPSubscribeMessageTemplateResponse, err error) {
    return c.DeleteMNPSubscribeMessageTemplateWithContext(context.Background(), request)
}

// DeleteMNPSubscribeMessageTemplate
// This API is used to delete a mini program subscription message template.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DeleteMNPSubscribeMessageTemplateWithContext(ctx context.Context, request *DeleteMNPSubscribeMessageTemplateRequest) (response *DeleteMNPSubscribeMessageTemplateResponse, err error) {
    if request == nil {
        request = NewDeleteMNPSubscribeMessageTemplateRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteMNPSubscribeMessageTemplate")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteMNPSubscribeMessageTemplate require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteMNPSubscribeMessageTemplateResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteTeamRequest() (request *DeleteTeamRequest) {
    request = &DeleteTeamRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteTeam")
    
    
    return
}

func NewDeleteTeamResponse() (response *DeleteTeamResponse) {
    response = &DeleteTeamResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteTeam
// This API is used to deletes a team.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) DeleteTeam(request *DeleteTeamRequest) (response *DeleteTeamResponse, err error) {
    return c.DeleteTeamWithContext(context.Background(), request)
}

// DeleteTeam
// This API is used to deletes a team.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) DeleteTeamWithContext(ctx context.Context, request *DeleteTeamRequest) (response *DeleteTeamResponse, err error) {
    if request == nil {
        request = NewDeleteTeamRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteTeam")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteTeam require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteTeamResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteTeamMemberRequest() (request *DeleteTeamMemberRequest) {
    request = &DeleteTeamMemberRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteTeamMember")
    
    
    return
}

func NewDeleteTeamMemberResponse() (response *DeleteTeamMemberResponse) {
    response = &DeleteTeamMemberResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteTeamMember
// This API is used to delete a team member.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_UNABLEOPERATEADMINACCOUNT = "FailedOperation.UnableOperateAdminAccount"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) DeleteTeamMember(request *DeleteTeamMemberRequest) (response *DeleteTeamMemberResponse, err error) {
    return c.DeleteTeamMemberWithContext(context.Background(), request)
}

// DeleteTeamMember
// This API is used to delete a team member.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_UNABLEOPERATEADMINACCOUNT = "FailedOperation.UnableOperateAdminAccount"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) DeleteTeamMemberWithContext(ctx context.Context, request *DeleteTeamMemberRequest) (response *DeleteTeamMemberResponse, err error) {
    if request == nil {
        request = NewDeleteTeamMemberRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteTeamMember")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteTeamMember require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteTeamMemberResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteUserRequest() (request *DeleteUserRequest) {
    request = &DeleteUserRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DeleteUser")
    
    
    return
}

func NewDeleteUserResponse() (response *DeleteUserResponse) {
    response = &DeleteUserResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteUser
// This API is used to delete a user.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_UNABLEOPERATEADMINACCOUNT = "FailedOperation.UnableOperateAdminAccount"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDUSERID = "InvalidParameterValue.InvalidUserId"
func (c *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error) {
    return c.DeleteUserWithContext(context.Background(), request)
}

// DeleteUser
// This API is used to delete a user.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_UNABLEOPERATEADMINACCOUNT = "FailedOperation.UnableOperateAdminAccount"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDUSERID = "InvalidParameterValue.InvalidUserId"
func (c *Client) DeleteUserWithContext(ctx context.Context, request *DeleteUserRequest) (response *DeleteUserResponse, err error) {
    if request == nil {
        request = NewDeleteUserRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DeleteUser")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteUser require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteUserResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeAPPDataDetailLineChartRequest() (request *DescribeAPPDataDetailLineChartRequest) {
    request = &DescribeAPPDataDetailLineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeAPPDataDetailLineChart")
    
    
    return
}

func NewDescribeAPPDataDetailLineChartResponse() (response *DescribeAPPDataDetailLineChartResponse) {
    response = &DescribeAPPDataDetailLineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeAPPDataDetailLineChart
// This API is used to query the line chart data for selected superapp metrics.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeAPPDataDetailLineChart(request *DescribeAPPDataDetailLineChartRequest) (response *DescribeAPPDataDetailLineChartResponse, err error) {
    return c.DescribeAPPDataDetailLineChartWithContext(context.Background(), request)
}

// DescribeAPPDataDetailLineChart
// This API is used to query the line chart data for selected superapp metrics.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeAPPDataDetailLineChartWithContext(ctx context.Context, request *DescribeAPPDataDetailLineChartRequest) (response *DescribeAPPDataDetailLineChartResponse, err error) {
    if request == nil {
        request = NewDescribeAPPDataDetailLineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeAPPDataDetailLineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeAPPDataDetailLineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeAPPDataDetailLineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeAPPDataOverviewRequest() (request *DescribeAPPDataOverviewRequest) {
    request = &DescribeAPPDataOverviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeAPPDataOverview")
    
    
    return
}

func NewDescribeAPPDataOverviewResponse() (response *DescribeAPPDataOverviewResponse) {
    response = &DescribeAPPDataOverviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeAPPDataOverview
// This API is used to query the data overview for the selected superapp metrics.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER = "MissingParameter"
func (c *Client) DescribeAPPDataOverview(request *DescribeAPPDataOverviewRequest) (response *DescribeAPPDataOverviewResponse, err error) {
    return c.DescribeAPPDataOverviewWithContext(context.Background(), request)
}

// DescribeAPPDataOverview
// This API is used to query the data overview for the selected superapp metrics.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER = "MissingParameter"
func (c *Client) DescribeAPPDataOverviewWithContext(ctx context.Context, request *DescribeAPPDataOverviewRequest) (response *DescribeAPPDataOverviewResponse, err error) {
    if request == nil {
        request = NewDescribeAPPDataOverviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeAPPDataOverview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeAPPDataOverview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeAPPDataOverviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeAdvertisingLineChartRequest() (request *DescribeAdvertisingLineChartRequest) {
    request = &DescribeAdvertisingLineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeAdvertisingLineChart")
    
    
    return
}

func NewDescribeAdvertisingLineChartResponse() (response *DescribeAdvertisingLineChartResponse) {
    response = &DescribeAdvertisingLineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeAdvertisingLineChart
// This API is used to query the advertising line chart data for a mini program within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeAdvertisingLineChart(request *DescribeAdvertisingLineChartRequest) (response *DescribeAdvertisingLineChartResponse, err error) {
    return c.DescribeAdvertisingLineChartWithContext(context.Background(), request)
}

// DescribeAdvertisingLineChart
// This API is used to query the advertising line chart data for a mini program within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeAdvertisingLineChartWithContext(ctx context.Context, request *DescribeAdvertisingLineChartRequest) (response *DescribeAdvertisingLineChartResponse, err error) {
    if request == nil {
        request = NewDescribeAdvertisingLineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeAdvertisingLineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeAdvertisingLineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeAdvertisingLineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeAdvertisingOverviewRequest() (request *DescribeAdvertisingOverviewRequest) {
    request = &DescribeAdvertisingOverviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeAdvertisingOverview")
    
    
    return
}

func NewDescribeAdvertisingOverviewResponse() (response *DescribeAdvertisingOverviewResponse) {
    response = &DescribeAdvertisingOverviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeAdvertisingOverview
// This API is used to query the mini program advertising overview.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeAdvertisingOverview(request *DescribeAdvertisingOverviewRequest) (response *DescribeAdvertisingOverviewResponse, err error) {
    return c.DescribeAdvertisingOverviewWithContext(context.Background(), request)
}

// DescribeAdvertisingOverview
// This API is used to query the mini program advertising overview.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeAdvertisingOverviewWithContext(ctx context.Context, request *DescribeAdvertisingOverviewRequest) (response *DescribeAdvertisingOverviewResponse, err error) {
    if request == nil {
        request = NewDescribeAdvertisingOverviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeAdvertisingOverview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeAdvertisingOverview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeAdvertisingOverviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeApplicationRequest() (request *DescribeApplicationRequest) {
    request = &DescribeApplicationRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeApplication")
    
    
    return
}

func NewDescribeApplicationResponse() (response *DescribeApplicationResponse) {
    response = &DescribeApplicationResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeApplication
// This API is used to query the superapp details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) DescribeApplication(request *DescribeApplicationRequest) (response *DescribeApplicationResponse, err error) {
    return c.DescribeApplicationWithContext(context.Background(), request)
}

// DescribeApplication
// This API is used to query the superapp details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) DescribeApplicationWithContext(ctx context.Context, request *DescribeApplicationRequest) (response *DescribeApplicationResponse, err error) {
    if request == nil {
        request = NewDescribeApplicationRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeApplication")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeApplication require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeApplicationResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeApplicationConfigFileRequest() (request *DescribeApplicationConfigFileRequest) {
    request = &DescribeApplicationConfigFileRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeApplicationConfigFile")
    
    
    return
}

func NewDescribeApplicationConfigFileResponse() (response *DescribeApplicationConfigFileResponse) {
    response = &DescribeApplicationConfigFileResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeApplicationConfigFile
// This API is used to query the configuration files of a superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) DescribeApplicationConfigFile(request *DescribeApplicationConfigFileRequest) (response *DescribeApplicationConfigFileResponse, err error) {
    return c.DescribeApplicationConfigFileWithContext(context.Background(), request)
}

// DescribeApplicationConfigFile
// This API is used to query the configuration files of a superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) DescribeApplicationConfigFileWithContext(ctx context.Context, request *DescribeApplicationConfigFileRequest) (response *DescribeApplicationConfigFileResponse, err error) {
    if request == nil {
        request = NewDescribeApplicationConfigFileRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeApplicationConfigFile")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeApplicationConfigFile require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeApplicationConfigFileResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeApplicationConfigInfosRequest() (request *DescribeApplicationConfigInfosRequest) {
    request = &DescribeApplicationConfigInfosRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeApplicationConfigInfos")
    
    
    return
}

func NewDescribeApplicationConfigInfosResponse() (response *DescribeApplicationConfigInfosResponse) {
    response = &DescribeApplicationConfigInfosResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeApplicationConfigInfos
// This API is used to query the superapp configuration information.
//
// error code that may be returned:
//  FAILEDOPERATION = "FailedOperation"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeApplicationConfigInfos(request *DescribeApplicationConfigInfosRequest) (response *DescribeApplicationConfigInfosResponse, err error) {
    return c.DescribeApplicationConfigInfosWithContext(context.Background(), request)
}

// DescribeApplicationConfigInfos
// This API is used to query the superapp configuration information.
//
// error code that may be returned:
//  FAILEDOPERATION = "FailedOperation"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeApplicationConfigInfosWithContext(ctx context.Context, request *DescribeApplicationConfigInfosRequest) (response *DescribeApplicationConfigInfosResponse, err error) {
    if request == nil {
        request = NewDescribeApplicationConfigInfosRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeApplicationConfigInfos")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeApplicationConfigInfos require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeApplicationConfigInfosResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeApplicationListRequest() (request *DescribeApplicationListRequest) {
    request = &DescribeApplicationListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeApplicationList")
    
    
    return
}

func NewDescribeApplicationListResponse() (response *DescribeApplicationListResponse) {
    response = &DescribeApplicationListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeApplicationList
// This API is used to query a list of superapps.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_QUERYPARAMETERLENGTHEXCEEDLIMIT = "InvalidParameterValue.QueryParameterLengthExceedLimit"
func (c *Client) DescribeApplicationList(request *DescribeApplicationListRequest) (response *DescribeApplicationListResponse, err error) {
    return c.DescribeApplicationListWithContext(context.Background(), request)
}

// DescribeApplicationList
// This API is used to query a list of superapps.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_QUERYPARAMETERLENGTHEXCEEDLIMIT = "InvalidParameterValue.QueryParameterLengthExceedLimit"
func (c *Client) DescribeApplicationListWithContext(ctx context.Context, request *DescribeApplicationListRequest) (response *DescribeApplicationListResponse, err error) {
    if request == nil {
        request = NewDescribeApplicationListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeApplicationList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeApplicationList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeApplicationListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeApplicationMNPListRequest() (request *DescribeApplicationMNPListRequest) {
    request = &DescribeApplicationMNPListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeApplicationMNPList")
    
    
    return
}

func NewDescribeApplicationMNPListResponse() (response *DescribeApplicationMNPListResponse) {
    response = &DescribeApplicationMNPListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeApplicationMNPList
// This API is used to query the mini program or mini game list associated with a superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) DescribeApplicationMNPList(request *DescribeApplicationMNPListRequest) (response *DescribeApplicationMNPListResponse, err error) {
    return c.DescribeApplicationMNPListWithContext(context.Background(), request)
}

// DescribeApplicationMNPList
// This API is used to query the mini program or mini game list associated with a superapp.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) DescribeApplicationMNPListWithContext(ctx context.Context, request *DescribeApplicationMNPListRequest) (response *DescribeApplicationMNPListResponse, err error) {
    if request == nil {
        request = NewDescribeApplicationMNPListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeApplicationMNPList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeApplicationMNPList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeApplicationMNPListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeApplicationSensitiveAPIListRequest() (request *DescribeApplicationSensitiveAPIListRequest) {
    request = &DescribeApplicationSensitiveAPIListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeApplicationSensitiveAPIList")
    
    
    return
}

func NewDescribeApplicationSensitiveAPIListResponse() (response *DescribeApplicationSensitiveAPIListResponse) {
    response = &DescribeApplicationSensitiveAPIListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeApplicationSensitiveAPIList
// This API is used to query a list of superapp sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) DescribeApplicationSensitiveAPIList(request *DescribeApplicationSensitiveAPIListRequest) (response *DescribeApplicationSensitiveAPIListResponse, err error) {
    return c.DescribeApplicationSensitiveAPIListWithContext(context.Background(), request)
}

// DescribeApplicationSensitiveAPIList
// This API is used to query a list of superapp sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
func (c *Client) DescribeApplicationSensitiveAPIListWithContext(ctx context.Context, request *DescribeApplicationSensitiveAPIListRequest) (response *DescribeApplicationSensitiveAPIListResponse, err error) {
    if request == nil {
        request = NewDescribeApplicationSensitiveAPIListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeApplicationSensitiveAPIList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeApplicationSensitiveAPIList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeApplicationSensitiveAPIListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeGlobalDomainACLRequest() (request *DescribeGlobalDomainACLRequest) {
    request = &DescribeGlobalDomainACLRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeGlobalDomainACL")
    
    
    return
}

func NewDescribeGlobalDomainACLResponse() (response *DescribeGlobalDomainACLResponse) {
    response = &DescribeGlobalDomainACLResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeGlobalDomainACL
// This API is used to query the global domain allowlist and blocklist.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_QUERYPARAMETERLENGTHEXCEEDLIMIT = "InvalidParameterValue.QueryParameterLengthExceedLimit"
func (c *Client) DescribeGlobalDomainACL(request *DescribeGlobalDomainACLRequest) (response *DescribeGlobalDomainACLResponse, err error) {
    return c.DescribeGlobalDomainACLWithContext(context.Background(), request)
}

// DescribeGlobalDomainACL
// This API is used to query the global domain allowlist and blocklist.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_QUERYPARAMETERLENGTHEXCEEDLIMIT = "InvalidParameterValue.QueryParameterLengthExceedLimit"
func (c *Client) DescribeGlobalDomainACLWithContext(ctx context.Context, request *DescribeGlobalDomainACLRequest) (response *DescribeGlobalDomainACLResponse, err error) {
    if request == nil {
        request = NewDescribeGlobalDomainACLRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeGlobalDomainACL")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeGlobalDomainACL require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeGlobalDomainACLResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeGlobalOverviewDataSummaryRequest() (request *DescribeGlobalOverviewDataSummaryRequest) {
    request = &DescribeGlobalOverviewDataSummaryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeGlobalOverviewDataSummary")
    
    
    return
}

func NewDescribeGlobalOverviewDataSummaryResponse() (response *DescribeGlobalOverviewDataSummaryResponse) {
    response = &DescribeGlobalOverviewDataSummaryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeGlobalOverviewDataSummary
// This API is used to query the data summary for the global overview.
//
// error code that may be returned:
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER = "MissingParameter"
func (c *Client) DescribeGlobalOverviewDataSummary(request *DescribeGlobalOverviewDataSummaryRequest) (response *DescribeGlobalOverviewDataSummaryResponse, err error) {
    return c.DescribeGlobalOverviewDataSummaryWithContext(context.Background(), request)
}

// DescribeGlobalOverviewDataSummary
// This API is used to query the data summary for the global overview.
//
// error code that may be returned:
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER = "MissingParameter"
func (c *Client) DescribeGlobalOverviewDataSummaryWithContext(ctx context.Context, request *DescribeGlobalOverviewDataSummaryRequest) (response *DescribeGlobalOverviewDataSummaryResponse, err error) {
    if request == nil {
        request = NewDescribeGlobalOverviewDataSummaryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeGlobalOverviewDataSummary")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeGlobalOverviewDataSummary require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeGlobalOverviewDataSummaryResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeGlobalOverviewReportDetailRequest() (request *DescribeGlobalOverviewReportDetailRequest) {
    request = &DescribeGlobalOverviewReportDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeGlobalOverviewReportDetail")
    
    
    return
}

func NewDescribeGlobalOverviewReportDetailResponse() (response *DescribeGlobalOverviewReportDetailResponse) {
    response = &DescribeGlobalOverviewReportDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeGlobalOverviewReportDetail
// This API is used to query the detailed report data for global overview within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeGlobalOverviewReportDetail(request *DescribeGlobalOverviewReportDetailRequest) (response *DescribeGlobalOverviewReportDetailResponse, err error) {
    return c.DescribeGlobalOverviewReportDetailWithContext(context.Background(), request)
}

// DescribeGlobalOverviewReportDetail
// This API is used to query the detailed report data for global overview within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeGlobalOverviewReportDetailWithContext(ctx context.Context, request *DescribeGlobalOverviewReportDetailRequest) (response *DescribeGlobalOverviewReportDetailResponse, err error) {
    if request == nil {
        request = NewDescribeGlobalOverviewReportDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeGlobalOverviewReportDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeGlobalOverviewReportDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeGlobalOverviewReportDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGRequest() (request *DescribeMNGRequest) {
    request = &DescribeMNGRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNG")
    
    
    return
}

func NewDescribeMNGResponse() (response *DescribeMNGResponse) {
    response = &DescribeMNGResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNG
// This API is used to query the mini game details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNG(request *DescribeMNGRequest) (response *DescribeMNGResponse, err error) {
    return c.DescribeMNGWithContext(context.Background(), request)
}

// DescribeMNG
// This API is used to query the mini game details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGWithContext(ctx context.Context, request *DescribeMNGRequest) (response *DescribeMNGResponse, err error) {
    if request == nil {
        request = NewDescribeMNGRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNG")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNG require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGAccessAnalysisDetailRequest() (request *DescribeMNGAccessAnalysisDetailRequest) {
    request = &DescribeMNGAccessAnalysisDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGAccessAnalysisDetail")
    
    
    return
}

func NewDescribeMNGAccessAnalysisDetailResponse() (response *DescribeMNGAccessAnalysisDetailResponse) {
    response = &DescribeMNGAccessAnalysisDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGAccessAnalysisDetail
// This API is used to query the detailed visit analysis data for a mini game within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGAccessAnalysisDetail(request *DescribeMNGAccessAnalysisDetailRequest) (response *DescribeMNGAccessAnalysisDetailResponse, err error) {
    return c.DescribeMNGAccessAnalysisDetailWithContext(context.Background(), request)
}

// DescribeMNGAccessAnalysisDetail
// This API is used to query the detailed visit analysis data for a mini game within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGAccessAnalysisDetailWithContext(ctx context.Context, request *DescribeMNGAccessAnalysisDetailRequest) (response *DescribeMNGAccessAnalysisDetailResponse, err error) {
    if request == nil {
        request = NewDescribeMNGAccessAnalysisDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGAccessAnalysisDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGAccessAnalysisDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGAccessAnalysisDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGAccessAnalysisLineChartRequest() (request *DescribeMNGAccessAnalysisLineChartRequest) {
    request = &DescribeMNGAccessAnalysisLineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGAccessAnalysisLineChart")
    
    
    return
}

func NewDescribeMNGAccessAnalysisLineChartResponse() (response *DescribeMNGAccessAnalysisLineChartResponse) {
    response = &DescribeMNGAccessAnalysisLineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGAccessAnalysisLineChart
// This API is used to query the mini game visit analysis line chart.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeMNGAccessAnalysisLineChart(request *DescribeMNGAccessAnalysisLineChartRequest) (response *DescribeMNGAccessAnalysisLineChartResponse, err error) {
    return c.DescribeMNGAccessAnalysisLineChartWithContext(context.Background(), request)
}

// DescribeMNGAccessAnalysisLineChart
// This API is used to query the mini game visit analysis line chart.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeMNGAccessAnalysisLineChartWithContext(ctx context.Context, request *DescribeMNGAccessAnalysisLineChartRequest) (response *DescribeMNGAccessAnalysisLineChartResponse, err error) {
    if request == nil {
        request = NewDescribeMNGAccessAnalysisLineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGAccessAnalysisLineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGAccessAnalysisLineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGAccessAnalysisLineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGAccessAnalysisOverviewRequest() (request *DescribeMNGAccessAnalysisOverviewRequest) {
    request = &DescribeMNGAccessAnalysisOverviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGAccessAnalysisOverview")
    
    
    return
}

func NewDescribeMNGAccessAnalysisOverviewResponse() (response *DescribeMNGAccessAnalysisOverviewResponse) {
    response = &DescribeMNGAccessAnalysisOverviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGAccessAnalysisOverview
// This API is used to query an overview of visit analysis data for a mini game within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGAccessAnalysisOverview(request *DescribeMNGAccessAnalysisOverviewRequest) (response *DescribeMNGAccessAnalysisOverviewResponse, err error) {
    return c.DescribeMNGAccessAnalysisOverviewWithContext(context.Background(), request)
}

// DescribeMNGAccessAnalysisOverview
// This API is used to query an overview of visit analysis data for a mini game within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGAccessAnalysisOverviewWithContext(ctx context.Context, request *DescribeMNGAccessAnalysisOverviewRequest) (response *DescribeMNGAccessAnalysisOverviewResponse, err error) {
    if request == nil {
        request = NewDescribeMNGAccessAnalysisOverviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGAccessAnalysisOverview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGAccessAnalysisOverview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGAccessAnalysisOverviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGActiveUserRealTimeStatisticsRequest() (request *DescribeMNGActiveUserRealTimeStatisticsRequest) {
    request = &DescribeMNGActiveUserRealTimeStatisticsRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGActiveUserRealTimeStatistics")
    
    
    return
}

func NewDescribeMNGActiveUserRealTimeStatisticsResponse() (response *DescribeMNGActiveUserRealTimeStatisticsResponse) {
    response = &DescribeMNGActiveUserRealTimeStatisticsResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGActiveUserRealTimeStatistics
// This API is used to query the mini game real-time active user statistics.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGActiveUserRealTimeStatistics(request *DescribeMNGActiveUserRealTimeStatisticsRequest) (response *DescribeMNGActiveUserRealTimeStatisticsResponse, err error) {
    return c.DescribeMNGActiveUserRealTimeStatisticsWithContext(context.Background(), request)
}

// DescribeMNGActiveUserRealTimeStatistics
// This API is used to query the mini game real-time active user statistics.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGActiveUserRealTimeStatisticsWithContext(ctx context.Context, request *DescribeMNGActiveUserRealTimeStatisticsRequest) (response *DescribeMNGActiveUserRealTimeStatisticsResponse, err error) {
    if request == nil {
        request = NewDescribeMNGActiveUserRealTimeStatisticsRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGActiveUserRealTimeStatistics")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGActiveUserRealTimeStatistics require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGActiveUserRealTimeStatisticsResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGAdvertisingDetailRequest() (request *DescribeMNGAdvertisingDetailRequest) {
    request = &DescribeMNGAdvertisingDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGAdvertisingDetail")
    
    
    return
}

func NewDescribeMNGAdvertisingDetailResponse() (response *DescribeMNGAdvertisingDetailResponse) {
    response = &DescribeMNGAdvertisingDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGAdvertisingDetail
// This API is used to query the detailed mini game advertising data over a specified period.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  INVALIDPARAMETERVALUE_INVALIDPLATFORMID = "InvalidParameterValue.InvalidPlatformId"
func (c *Client) DescribeMNGAdvertisingDetail(request *DescribeMNGAdvertisingDetailRequest) (response *DescribeMNGAdvertisingDetailResponse, err error) {
    return c.DescribeMNGAdvertisingDetailWithContext(context.Background(), request)
}

// DescribeMNGAdvertisingDetail
// This API is used to query the detailed mini game advertising data over a specified period.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  INVALIDPARAMETERVALUE_INVALIDPLATFORMID = "InvalidParameterValue.InvalidPlatformId"
func (c *Client) DescribeMNGAdvertisingDetailWithContext(ctx context.Context, request *DescribeMNGAdvertisingDetailRequest) (response *DescribeMNGAdvertisingDetailResponse, err error) {
    if request == nil {
        request = NewDescribeMNGAdvertisingDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGAdvertisingDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGAdvertisingDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGAdvertisingDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGAdvertisingLineChartRequest() (request *DescribeMNGAdvertisingLineChartRequest) {
    request = &DescribeMNGAdvertisingLineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGAdvertisingLineChart")
    
    
    return
}

func NewDescribeMNGAdvertisingLineChartResponse() (response *DescribeMNGAdvertisingLineChartResponse) {
    response = &DescribeMNGAdvertisingLineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGAdvertisingLineChart
// This API is used to query the mini game advertising data in a line chart format.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGAdvertisingLineChart(request *DescribeMNGAdvertisingLineChartRequest) (response *DescribeMNGAdvertisingLineChartResponse, err error) {
    return c.DescribeMNGAdvertisingLineChartWithContext(context.Background(), request)
}

// DescribeMNGAdvertisingLineChart
// This API is used to query the mini game advertising data in a line chart format.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGAdvertisingLineChartWithContext(ctx context.Context, request *DescribeMNGAdvertisingLineChartRequest) (response *DescribeMNGAdvertisingLineChartResponse, err error) {
    if request == nil {
        request = NewDescribeMNGAdvertisingLineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGAdvertisingLineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGAdvertisingLineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGAdvertisingLineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGAdvertisingOverviewRequest() (request *DescribeMNGAdvertisingOverviewRequest) {
    request = &DescribeMNGAdvertisingOverviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGAdvertisingOverview")
    
    
    return
}

func NewDescribeMNGAdvertisingOverviewResponse() (response *DescribeMNGAdvertisingOverviewResponse) {
    response = &DescribeMNGAdvertisingOverviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGAdvertisingOverview
// This API is used to query an overview of mini game ad metrics within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGAdvertisingOverview(request *DescribeMNGAdvertisingOverviewRequest) (response *DescribeMNGAdvertisingOverviewResponse, err error) {
    return c.DescribeMNGAdvertisingOverviewWithContext(context.Background(), request)
}

// DescribeMNGAdvertisingOverview
// This API is used to query an overview of mini game ad metrics within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGAdvertisingOverviewWithContext(ctx context.Context, request *DescribeMNGAdvertisingOverviewRequest) (response *DescribeMNGAdvertisingOverviewResponse, err error) {
    if request == nil {
        request = NewDescribeMNGAdvertisingOverviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGAdvertisingOverview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGAdvertisingOverview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGAdvertisingOverviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGAllStageVersionsRequest() (request *DescribeMNGAllStageVersionsRequest) {
    request = &DescribeMNGAllStageVersionsRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGAllStageVersions")
    
    
    return
}

func NewDescribeMNGAllStageVersionsResponse() (response *DescribeMNGAllStageVersionsResponse) {
    response = &DescribeMNGAllStageVersionsResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGAllStageVersions
// This API is used to query mini game version information across all phases.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGAllStageVersions(request *DescribeMNGAllStageVersionsRequest) (response *DescribeMNGAllStageVersionsResponse, err error) {
    return c.DescribeMNGAllStageVersionsWithContext(context.Background(), request)
}

// DescribeMNGAllStageVersions
// This API is used to query mini game version information across all phases.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGAllStageVersionsWithContext(ctx context.Context, request *DescribeMNGAllStageVersionsRequest) (response *DescribeMNGAllStageVersionsResponse, err error) {
    if request == nil {
        request = NewDescribeMNGAllStageVersionsRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGAllStageVersions")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGAllStageVersions require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGAllStageVersionsResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGAppSecretRequest() (request *DescribeMNGAppSecretRequest) {
    request = &DescribeMNGAppSecretRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGAppSecret")
    
    
    return
}

func NewDescribeMNGAppSecretResponse() (response *DescribeMNGAppSecretResponse) {
    response = &DescribeMNGAppSecretResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGAppSecret
// This API is used to query mini game secret keys.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGAppSecret(request *DescribeMNGAppSecretRequest) (response *DescribeMNGAppSecretResponse, err error) {
    return c.DescribeMNGAppSecretWithContext(context.Background(), request)
}

// DescribeMNGAppSecret
// This API is used to query mini game secret keys.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGAppSecretWithContext(ctx context.Context, request *DescribeMNGAppSecretRequest) (response *DescribeMNGAppSecretResponse, err error) {
    if request == nil {
        request = NewDescribeMNGAppSecretRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGAppSecret")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGAppSecret require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGAppSecretResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGCategoryRequest() (request *DescribeMNGCategoryRequest) {
    request = &DescribeMNGCategoryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGCategory")
    
    
    return
}

func NewDescribeMNGCategoryResponse() (response *DescribeMNGCategoryResponse) {
    response = &DescribeMNGCategoryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGCategory
// This API is used to query the mini game categories.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeMNGCategory(request *DescribeMNGCategoryRequest) (response *DescribeMNGCategoryResponse, err error) {
    return c.DescribeMNGCategoryWithContext(context.Background(), request)
}

// DescribeMNGCategory
// This API is used to query the mini game categories.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeMNGCategoryWithContext(ctx context.Context, request *DescribeMNGCategoryRequest) (response *DescribeMNGCategoryResponse, err error) {
    if request == nil {
        request = NewDescribeMNGCategoryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGCategory")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGCategory require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGCategoryResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGDomainACLRequest() (request *DescribeMNGDomainACLRequest) {
    request = &DescribeMNGDomainACLRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGDomainACL")
    
    
    return
}

func NewDescribeMNGDomainACLResponse() (response *DescribeMNGDomainACLResponse) {
    response = &DescribeMNGDomainACLResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGDomainACL
// This API is used to query the domain name allowlist/blocklist of a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNGDomainACL(request *DescribeMNGDomainACLRequest) (response *DescribeMNGDomainACLResponse, err error) {
    return c.DescribeMNGDomainACLWithContext(context.Background(), request)
}

// DescribeMNGDomainACL
// This API is used to query the domain name allowlist/blocklist of a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNGDomainACLWithContext(ctx context.Context, request *DescribeMNGDomainACLRequest) (response *DescribeMNGDomainACLResponse, err error) {
    if request == nil {
        request = NewDescribeMNGDomainACLRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGDomainACL")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGDomainACL require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGDomainACLResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGListRequest() (request *DescribeMNGListRequest) {
    request = &DescribeMNGListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGList")
    
    
    return
}

func NewDescribeMNGListResponse() (response *DescribeMNGListResponse) {
    response = &DescribeMNGListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGList
// This API is used to query the list of mini games.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNGList(request *DescribeMNGListRequest) (response *DescribeMNGListResponse, err error) {
    return c.DescribeMNGListWithContext(context.Background(), request)
}

// DescribeMNGList
// This API is used to query the list of mini games.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNGListWithContext(ctx context.Context, request *DescribeMNGListRequest) (response *DescribeMNGListResponse, err error) {
    if request == nil {
        request = NewDescribeMNGListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGMAUDataDetailRequest() (request *DescribeMNGMAUDataDetailRequest) {
    request = &DescribeMNGMAUDataDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGMAUDataDetail")
    
    
    return
}

func NewDescribeMNGMAUDataDetailResponse() (response *DescribeMNGMAUDataDetailResponse) {
    response = &DescribeMNGMAUDataDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGMAUDataDetail
// This API is used to query the detailed mini game monthly active user data.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGMAUDataDetail(request *DescribeMNGMAUDataDetailRequest) (response *DescribeMNGMAUDataDetailResponse, err error) {
    return c.DescribeMNGMAUDataDetailWithContext(context.Background(), request)
}

// DescribeMNGMAUDataDetail
// This API is used to query the detailed mini game monthly active user data.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGMAUDataDetailWithContext(ctx context.Context, request *DescribeMNGMAUDataDetailRequest) (response *DescribeMNGMAUDataDetailResponse, err error) {
    if request == nil {
        request = NewDescribeMNGMAUDataDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGMAUDataDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGMAUDataDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGMAUDataDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGMAULineChartRequest() (request *DescribeMNGMAULineChartRequest) {
    request = &DescribeMNGMAULineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGMAULineChart")
    
    
    return
}

func NewDescribeMNGMAULineChartResponse() (response *DescribeMNGMAULineChartResponse) {
    response = &DescribeMNGMAULineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGMAULineChart
// This API is used to query the mini game MAU line chart.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  UNKNOWNPARAMETER = "UnknownParameter"
func (c *Client) DescribeMNGMAULineChart(request *DescribeMNGMAULineChartRequest) (response *DescribeMNGMAULineChartResponse, err error) {
    return c.DescribeMNGMAULineChartWithContext(context.Background(), request)
}

// DescribeMNGMAULineChart
// This API is used to query the mini game MAU line chart.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  UNKNOWNPARAMETER = "UnknownParameter"
func (c *Client) DescribeMNGMAULineChartWithContext(ctx context.Context, request *DescribeMNGMAULineChartRequest) (response *DescribeMNGMAULineChartResponse, err error) {
    if request == nil {
        request = NewDescribeMNGMAULineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGMAULineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGMAULineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGMAULineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGMAUMonthlyComparisonMetricCardRequest() (request *DescribeMNGMAUMonthlyComparisonMetricCardRequest) {
    request = &DescribeMNGMAUMonthlyComparisonMetricCardRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGMAUMonthlyComparisonMetricCard")
    
    
    return
}

func NewDescribeMNGMAUMonthlyComparisonMetricCardResponse() (response *DescribeMNGMAUMonthlyComparisonMetricCardResponse) {
    response = &DescribeMNGMAUMonthlyComparisonMetricCardResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGMAUMonthlyComparisonMetricCard
// This API is used to query the MAU comparison data for a mini game between two months.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGMAUMonthlyComparisonMetricCard(request *DescribeMNGMAUMonthlyComparisonMetricCardRequest) (response *DescribeMNGMAUMonthlyComparisonMetricCardResponse, err error) {
    return c.DescribeMNGMAUMonthlyComparisonMetricCardWithContext(context.Background(), request)
}

// DescribeMNGMAUMonthlyComparisonMetricCard
// This API is used to query the MAU comparison data for a mini game between two months.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGMAUMonthlyComparisonMetricCardWithContext(ctx context.Context, request *DescribeMNGMAUMonthlyComparisonMetricCardRequest) (response *DescribeMNGMAUMonthlyComparisonMetricCardResponse, err error) {
    if request == nil {
        request = NewDescribeMNGMAUMonthlyComparisonMetricCardRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGMAUMonthlyComparisonMetricCard")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGMAUMonthlyComparisonMetricCard require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGMAUMonthlyComparisonMetricCardResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGOfflinePackageURLRequest() (request *DescribeMNGOfflinePackageURLRequest) {
    request = &DescribeMNGOfflinePackageURLRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGOfflinePackageURL")
    
    
    return
}

func NewDescribeMNGOfflinePackageURLResponse() (response *DescribeMNGOfflinePackageURLResponse) {
    response = &DescribeMNGOfflinePackageURLResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGOfflinePackageURL
// This API is used to query the download URL of the mini game package.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPONLINEVERSIONNOTEXIST = "FailedOperation.MNPOnlineVersionNotExist"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeMNGOfflinePackageURL(request *DescribeMNGOfflinePackageURLRequest) (response *DescribeMNGOfflinePackageURLResponse, err error) {
    return c.DescribeMNGOfflinePackageURLWithContext(context.Background(), request)
}

// DescribeMNGOfflinePackageURL
// This API is used to query the download URL of the mini game package.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPONLINEVERSIONNOTEXIST = "FailedOperation.MNPOnlineVersionNotExist"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeMNGOfflinePackageURLWithContext(ctx context.Context, request *DescribeMNGOfflinePackageURLRequest) (response *DescribeMNGOfflinePackageURLResponse, err error) {
    if request == nil {
        request = NewDescribeMNGOfflinePackageURLRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGOfflinePackageURL")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGOfflinePackageURL require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGOfflinePackageURLResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGPaymentLineChartRequest() (request *DescribeMNGPaymentLineChartRequest) {
    request = &DescribeMNGPaymentLineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGPaymentLineChart")
    
    
    return
}

func NewDescribeMNGPaymentLineChartResponse() (response *DescribeMNGPaymentLineChartResponse) {
    response = &DescribeMNGPaymentLineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGPaymentLineChart
// This API is used to query the mini game payment line chart.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGPaymentLineChart(request *DescribeMNGPaymentLineChartRequest) (response *DescribeMNGPaymentLineChartResponse, err error) {
    return c.DescribeMNGPaymentLineChartWithContext(context.Background(), request)
}

// DescribeMNGPaymentLineChart
// This API is used to query the mini game payment line chart.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGPaymentLineChartWithContext(ctx context.Context, request *DescribeMNGPaymentLineChartRequest) (response *DescribeMNGPaymentLineChartResponse, err error) {
    if request == nil {
        request = NewDescribeMNGPaymentLineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGPaymentLineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGPaymentLineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGPaymentLineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGPaymentOverviewRequest() (request *DescribeMNGPaymentOverviewRequest) {
    request = &DescribeMNGPaymentOverviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGPaymentOverview")
    
    
    return
}

func NewDescribeMNGPaymentOverviewResponse() (response *DescribeMNGPaymentOverviewResponse) {
    response = &DescribeMNGPaymentOverviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGPaymentOverview
// This API is used to query an overview of mini game payment data within a specified period.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGPaymentOverview(request *DescribeMNGPaymentOverviewRequest) (response *DescribeMNGPaymentOverviewResponse, err error) {
    return c.DescribeMNGPaymentOverviewWithContext(context.Background(), request)
}

// DescribeMNGPaymentOverview
// This API is used to query an overview of mini game payment data within a specified period.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGPaymentOverviewWithContext(ctx context.Context, request *DescribeMNGPaymentOverviewRequest) (response *DescribeMNGPaymentOverviewResponse, err error) {
    if request == nil {
        request = NewDescribeMNGPaymentOverviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGPaymentOverview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGPaymentOverview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGPaymentOverviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGPaymentReportDetailRequest() (request *DescribeMNGPaymentReportDetailRequest) {
    request = &DescribeMNGPaymentReportDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGPaymentReportDetail")
    
    
    return
}

func NewDescribeMNGPaymentReportDetailResponse() (response *DescribeMNGPaymentReportDetailResponse) {
    response = &DescribeMNGPaymentReportDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGPaymentReportDetail
// This API is used to query a detailed payment report data for a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGPaymentReportDetail(request *DescribeMNGPaymentReportDetailRequest) (response *DescribeMNGPaymentReportDetailResponse, err error) {
    return c.DescribeMNGPaymentReportDetailWithContext(context.Background(), request)
}

// DescribeMNGPaymentReportDetail
// This API is used to query a detailed payment report data for a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGPaymentReportDetailWithContext(ctx context.Context, request *DescribeMNGPaymentReportDetailRequest) (response *DescribeMNGPaymentReportDetailResponse, err error) {
    if request == nil {
        request = NewDescribeMNGPaymentReportDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGPaymentReportDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGPaymentReportDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGPaymentReportDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGPaymentRetentionAnalysisRequest() (request *DescribeMNGPaymentRetentionAnalysisRequest) {
    request = &DescribeMNGPaymentRetentionAnalysisRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGPaymentRetentionAnalysis")
    
    
    return
}

func NewDescribeMNGPaymentRetentionAnalysisResponse() (response *DescribeMNGPaymentRetentionAnalysisResponse) {
    response = &DescribeMNGPaymentRetentionAnalysisResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGPaymentRetentionAnalysis
// This API is used to query the mini game payment retention data.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGPaymentRetentionAnalysis(request *DescribeMNGPaymentRetentionAnalysisRequest) (response *DescribeMNGPaymentRetentionAnalysisResponse, err error) {
    return c.DescribeMNGPaymentRetentionAnalysisWithContext(context.Background(), request)
}

// DescribeMNGPaymentRetentionAnalysis
// This API is used to query the mini game payment retention data.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGPaymentRetentionAnalysisWithContext(ctx context.Context, request *DescribeMNGPaymentRetentionAnalysisRequest) (response *DescribeMNGPaymentRetentionAnalysisResponse, err error) {
    if request == nil {
        request = NewDescribeMNGPaymentRetentionAnalysisRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGPaymentRetentionAnalysis")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGPaymentRetentionAnalysis require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGPaymentRetentionAnalysisResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGPreviewRequest() (request *DescribeMNGPreviewRequest) {
    request = &DescribeMNGPreviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGPreview")
    
    
    return
}

func NewDescribeMNGPreviewResponse() (response *DescribeMNGPreviewResponse) {
    response = &DescribeMNGPreviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGPreview
// This API is used to query the mini game preview details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGPreview(request *DescribeMNGPreviewRequest) (response *DescribeMNGPreviewResponse, err error) {
    return c.DescribeMNGPreviewWithContext(context.Background(), request)
}

// DescribeMNGPreview
// This API is used to query the mini game preview details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGPreviewWithContext(ctx context.Context, request *DescribeMNGPreviewRequest) (response *DescribeMNGPreviewResponse, err error) {
    if request == nil {
        request = NewDescribeMNGPreviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGPreview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGPreview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGPreviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGReleasedVersionHistoryRequest() (request *DescribeMNGReleasedVersionHistoryRequest) {
    request = &DescribeMNGReleasedVersionHistoryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGReleasedVersionHistory")
    
    
    return
}

func NewDescribeMNGReleasedVersionHistoryResponse() (response *DescribeMNGReleasedVersionHistoryResponse) {
    response = &DescribeMNGReleasedVersionHistoryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGReleasedVersionHistory
// This API is used to query the release version history of a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGReleasedVersionHistory(request *DescribeMNGReleasedVersionHistoryRequest) (response *DescribeMNGReleasedVersionHistoryResponse, err error) {
    return c.DescribeMNGReleasedVersionHistoryWithContext(context.Background(), request)
}

// DescribeMNGReleasedVersionHistory
// This API is used to query the release version history of a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGReleasedVersionHistoryWithContext(ctx context.Context, request *DescribeMNGReleasedVersionHistoryRequest) (response *DescribeMNGReleasedVersionHistoryResponse, err error) {
    if request == nil {
        request = NewDescribeMNGReleasedVersionHistoryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGReleasedVersionHistory")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGReleasedVersionHistory require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGReleasedVersionHistoryResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGRetentionDataRequest() (request *DescribeMNGRetentionDataRequest) {
    request = &DescribeMNGRetentionDataRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGRetentionData")
    
    
    return
}

func NewDescribeMNGRetentionDataResponse() (response *DescribeMNGRetentionDataResponse) {
    response = &DescribeMNGRetentionDataResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGRetentionData
// This API is used to query the user retention data for a mini game within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGRetentionData(request *DescribeMNGRetentionDataRequest) (response *DescribeMNGRetentionDataResponse, err error) {
    return c.DescribeMNGRetentionDataWithContext(context.Background(), request)
}

// DescribeMNGRetentionData
// This API is used to query the user retention data for a mini game within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNGRetentionDataWithContext(ctx context.Context, request *DescribeMNGRetentionDataRequest) (response *DescribeMNGRetentionDataResponse, err error) {
    if request == nil {
        request = NewDescribeMNGRetentionDataRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGRetentionData")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGRetentionData require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGRetentionDataResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGSensitiveAPIPermissionApprovalRequest() (request *DescribeMNGSensitiveAPIPermissionApprovalRequest) {
    request = &DescribeMNGSensitiveAPIPermissionApprovalRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGSensitiveAPIPermissionApproval")
    
    
    return
}

func NewDescribeMNGSensitiveAPIPermissionApprovalResponse() (response *DescribeMNGSensitiveAPIPermissionApprovalResponse) {
    response = &DescribeMNGSensitiveAPIPermissionApprovalResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGSensitiveAPIPermissionApproval
// This API is used to query the details of permission requests to allow a mini game to call sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNGSensitiveAPIPermissionApproval(request *DescribeMNGSensitiveAPIPermissionApprovalRequest) (response *DescribeMNGSensitiveAPIPermissionApprovalResponse, err error) {
    return c.DescribeMNGSensitiveAPIPermissionApprovalWithContext(context.Background(), request)
}

// DescribeMNGSensitiveAPIPermissionApproval
// This API is used to query the details of permission requests to allow a mini game to call sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNGSensitiveAPIPermissionApprovalWithContext(ctx context.Context, request *DescribeMNGSensitiveAPIPermissionApprovalRequest) (response *DescribeMNGSensitiveAPIPermissionApprovalResponse, err error) {
    if request == nil {
        request = NewDescribeMNGSensitiveAPIPermissionApprovalRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGSensitiveAPIPermissionApproval")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGSensitiveAPIPermissionApproval require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGSensitiveAPIPermissionApprovalResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGSensitiveAPIPermissionListRequest() (request *DescribeMNGSensitiveAPIPermissionListRequest) {
    request = &DescribeMNGSensitiveAPIPermissionListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGSensitiveAPIPermissionList")
    
    
    return
}

func NewDescribeMNGSensitiveAPIPermissionListResponse() (response *DescribeMNGSensitiveAPIPermissionListResponse) {
    response = &DescribeMNGSensitiveAPIPermissionListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGSensitiveAPIPermissionList
// This API is used to query a list of sensitive APIs that are available to the mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSensitiveAPIPermissionList(request *DescribeMNGSensitiveAPIPermissionListRequest) (response *DescribeMNGSensitiveAPIPermissionListResponse, err error) {
    return c.DescribeMNGSensitiveAPIPermissionListWithContext(context.Background(), request)
}

// DescribeMNGSensitiveAPIPermissionList
// This API is used to query a list of sensitive APIs that are available to the mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSensitiveAPIPermissionListWithContext(ctx context.Context, request *DescribeMNGSensitiveAPIPermissionListRequest) (response *DescribeMNGSensitiveAPIPermissionListResponse, err error) {
    if request == nil {
        request = NewDescribeMNGSensitiveAPIPermissionListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGSensitiveAPIPermissionList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGSensitiveAPIPermissionList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGSensitiveAPIPermissionListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGSubscribeMessageTemplateRequest() (request *DescribeMNGSubscribeMessageTemplateRequest) {
    request = &DescribeMNGSubscribeMessageTemplateRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGSubscribeMessageTemplate")
    
    
    return
}

func NewDescribeMNGSubscribeMessageTemplateResponse() (response *DescribeMNGSubscribeMessageTemplateResponse) {
    response = &DescribeMNGSubscribeMessageTemplateResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGSubscribeMessageTemplate
// This API is used to query mini game subscription message template details.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSubscribeMessageTemplate(request *DescribeMNGSubscribeMessageTemplateRequest) (response *DescribeMNGSubscribeMessageTemplateResponse, err error) {
    return c.DescribeMNGSubscribeMessageTemplateWithContext(context.Background(), request)
}

// DescribeMNGSubscribeMessageTemplate
// This API is used to query mini game subscription message template details.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSubscribeMessageTemplateWithContext(ctx context.Context, request *DescribeMNGSubscribeMessageTemplateRequest) (response *DescribeMNGSubscribeMessageTemplateResponse, err error) {
    if request == nil {
        request = NewDescribeMNGSubscribeMessageTemplateRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGSubscribeMessageTemplate")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGSubscribeMessageTemplate require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGSubscribeMessageTemplateResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGSubscribeMessageTemplateLibraryRequest() (request *DescribeMNGSubscribeMessageTemplateLibraryRequest) {
    request = &DescribeMNGSubscribeMessageTemplateLibraryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGSubscribeMessageTemplateLibrary")
    
    
    return
}

func NewDescribeMNGSubscribeMessageTemplateLibraryResponse() (response *DescribeMNGSubscribeMessageTemplateLibraryResponse) {
    response = &DescribeMNGSubscribeMessageTemplateLibraryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGSubscribeMessageTemplateLibrary
// This API is used to query mini game subscription message template library details.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSubscribeMessageTemplateLibrary(request *DescribeMNGSubscribeMessageTemplateLibraryRequest) (response *DescribeMNGSubscribeMessageTemplateLibraryResponse, err error) {
    return c.DescribeMNGSubscribeMessageTemplateLibraryWithContext(context.Background(), request)
}

// DescribeMNGSubscribeMessageTemplateLibrary
// This API is used to query mini game subscription message template library details.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSubscribeMessageTemplateLibraryWithContext(ctx context.Context, request *DescribeMNGSubscribeMessageTemplateLibraryRequest) (response *DescribeMNGSubscribeMessageTemplateLibraryResponse, err error) {
    if request == nil {
        request = NewDescribeMNGSubscribeMessageTemplateLibraryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGSubscribeMessageTemplateLibrary")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGSubscribeMessageTemplateLibrary require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGSubscribeMessageTemplateLibraryResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGSubscribeMessageTemplateLibraryListRequest() (request *DescribeMNGSubscribeMessageTemplateLibraryListRequest) {
    request = &DescribeMNGSubscribeMessageTemplateLibraryListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGSubscribeMessageTemplateLibraryList")
    
    
    return
}

func NewDescribeMNGSubscribeMessageTemplateLibraryListResponse() (response *DescribeMNGSubscribeMessageTemplateLibraryListResponse) {
    response = &DescribeMNGSubscribeMessageTemplateLibraryListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGSubscribeMessageTemplateLibraryList
// This API is used to query the mini game subscription message template library list.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSubscribeMessageTemplateLibraryList(request *DescribeMNGSubscribeMessageTemplateLibraryListRequest) (response *DescribeMNGSubscribeMessageTemplateLibraryListResponse, err error) {
    return c.DescribeMNGSubscribeMessageTemplateLibraryListWithContext(context.Background(), request)
}

// DescribeMNGSubscribeMessageTemplateLibraryList
// This API is used to query the mini game subscription message template library list.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSubscribeMessageTemplateLibraryListWithContext(ctx context.Context, request *DescribeMNGSubscribeMessageTemplateLibraryListRequest) (response *DescribeMNGSubscribeMessageTemplateLibraryListResponse, err error) {
    if request == nil {
        request = NewDescribeMNGSubscribeMessageTemplateLibraryListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGSubscribeMessageTemplateLibraryList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGSubscribeMessageTemplateLibraryList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGSubscribeMessageTemplateLibraryListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGSubscribeMessageTemplateListRequest() (request *DescribeMNGSubscribeMessageTemplateListRequest) {
    request = &DescribeMNGSubscribeMessageTemplateListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGSubscribeMessageTemplateList")
    
    
    return
}

func NewDescribeMNGSubscribeMessageTemplateListResponse() (response *DescribeMNGSubscribeMessageTemplateListResponse) {
    response = &DescribeMNGSubscribeMessageTemplateListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGSubscribeMessageTemplateList
// This API is used to query the mini game subscription message template list.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSubscribeMessageTemplateList(request *DescribeMNGSubscribeMessageTemplateListRequest) (response *DescribeMNGSubscribeMessageTemplateListResponse, err error) {
    return c.DescribeMNGSubscribeMessageTemplateListWithContext(context.Background(), request)
}

// DescribeMNGSubscribeMessageTemplateList
// This API is used to query the mini game subscription message template list.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNGSubscribeMessageTemplateListWithContext(ctx context.Context, request *DescribeMNGSubscribeMessageTemplateListRequest) (response *DescribeMNGSubscribeMessageTemplateListResponse, err error) {
    if request == nil {
        request = NewDescribeMNGSubscribeMessageTemplateListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGSubscribeMessageTemplateList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGSubscribeMessageTemplateList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGSubscribeMessageTemplateListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNGVersionRequest() (request *DescribeMNGVersionRequest) {
    request = &DescribeMNGVersionRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNGVersion")
    
    
    return
}

func NewDescribeMNGVersionResponse() (response *DescribeMNGVersionResponse) {
    response = &DescribeMNGVersionResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNGVersion
// This API is used to query the mini game version creation results.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONTASKID = "InvalidParameterValue.InvalidMNPVersionTaskId"
func (c *Client) DescribeMNGVersion(request *DescribeMNGVersionRequest) (response *DescribeMNGVersionResponse, err error) {
    return c.DescribeMNGVersionWithContext(context.Background(), request)
}

// DescribeMNGVersion
// This API is used to query the mini game version creation results.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONTASKID = "InvalidParameterValue.InvalidMNPVersionTaskId"
func (c *Client) DescribeMNGVersionWithContext(ctx context.Context, request *DescribeMNGVersionRequest) (response *DescribeMNGVersionResponse, err error) {
    if request == nil {
        request = NewDescribeMNGVersionRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNGVersion")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNGVersion require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNGVersionResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPRequest() (request *DescribeMNPRequest) {
    request = &DescribeMNPRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNP")
    
    
    return
}

func NewDescribeMNPResponse() (response *DescribeMNPResponse) {
    response = &DescribeMNPResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNP
// This API is used to query the mini program details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNP(request *DescribeMNPRequest) (response *DescribeMNPResponse, err error) {
    return c.DescribeMNPWithContext(context.Background(), request)
}

// DescribeMNP
// This API is used to query the mini program details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPWithContext(ctx context.Context, request *DescribeMNPRequest) (response *DescribeMNPResponse, err error) {
    if request == nil {
        request = NewDescribeMNPRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNP")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNP require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPAccessAnalysisOverviewRequest() (request *DescribeMNPAccessAnalysisOverviewRequest) {
    request = &DescribeMNPAccessAnalysisOverviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPAccessAnalysisOverview")
    
    
    return
}

func NewDescribeMNPAccessAnalysisOverviewResponse() (response *DescribeMNPAccessAnalysisOverviewResponse) {
    response = &DescribeMNPAccessAnalysisOverviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPAccessAnalysisOverview
// This API is used to query the overview of mini program visit analysis data within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPAccessAnalysisOverview(request *DescribeMNPAccessAnalysisOverviewRequest) (response *DescribeMNPAccessAnalysisOverviewResponse, err error) {
    return c.DescribeMNPAccessAnalysisOverviewWithContext(context.Background(), request)
}

// DescribeMNPAccessAnalysisOverview
// This API is used to query the overview of mini program visit analysis data within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPAccessAnalysisOverviewWithContext(ctx context.Context, request *DescribeMNPAccessAnalysisOverviewRequest) (response *DescribeMNPAccessAnalysisOverviewResponse, err error) {
    if request == nil {
        request = NewDescribeMNPAccessAnalysisOverviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPAccessAnalysisOverview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPAccessAnalysisOverview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPAccessAnalysisOverviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPActiveUserRealTimeStatisticsRequest() (request *DescribeMNPActiveUserRealTimeStatisticsRequest) {
    request = &DescribeMNPActiveUserRealTimeStatisticsRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPActiveUserRealTimeStatistics")
    
    
    return
}

func NewDescribeMNPActiveUserRealTimeStatisticsResponse() (response *DescribeMNPActiveUserRealTimeStatisticsResponse) {
    response = &DescribeMNPActiveUserRealTimeStatisticsResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPActiveUserRealTimeStatistics
// This API is used to query the mini program real-time active user statistics.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeMNPActiveUserRealTimeStatistics(request *DescribeMNPActiveUserRealTimeStatisticsRequest) (response *DescribeMNPActiveUserRealTimeStatisticsResponse, err error) {
    return c.DescribeMNPActiveUserRealTimeStatisticsWithContext(context.Background(), request)
}

// DescribeMNPActiveUserRealTimeStatistics
// This API is used to query the mini program real-time active user statistics.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeMNPActiveUserRealTimeStatisticsWithContext(ctx context.Context, request *DescribeMNPActiveUserRealTimeStatisticsRequest) (response *DescribeMNPActiveUserRealTimeStatisticsResponse, err error) {
    if request == nil {
        request = NewDescribeMNPActiveUserRealTimeStatisticsRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPActiveUserRealTimeStatistics")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPActiveUserRealTimeStatistics require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPActiveUserRealTimeStatisticsResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPAdvertisingDetailRequest() (request *DescribeMNPAdvertisingDetailRequest) {
    request = &DescribeMNPAdvertisingDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPAdvertisingDetail")
    
    
    return
}

func NewDescribeMNPAdvertisingDetailResponse() (response *DescribeMNPAdvertisingDetailResponse) {
    response = &DescribeMNPAdvertisingDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPAdvertisingDetail
// This API is used to query the detailed advertising data for a mini program within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPAdvertisingDetail(request *DescribeMNPAdvertisingDetailRequest) (response *DescribeMNPAdvertisingDetailResponse, err error) {
    return c.DescribeMNPAdvertisingDetailWithContext(context.Background(), request)
}

// DescribeMNPAdvertisingDetail
// This API is used to query the detailed advertising data for a mini program within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPAdvertisingDetailWithContext(ctx context.Context, request *DescribeMNPAdvertisingDetailRequest) (response *DescribeMNPAdvertisingDetailResponse, err error) {
    if request == nil {
        request = NewDescribeMNPAdvertisingDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPAdvertisingDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPAdvertisingDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPAdvertisingDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPAllStageVersionsRequest() (request *DescribeMNPAllStageVersionsRequest) {
    request = &DescribeMNPAllStageVersionsRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPAllStageVersions")
    
    
    return
}

func NewDescribeMNPAllStageVersionsResponse() (response *DescribeMNPAllStageVersionsResponse) {
    response = &DescribeMNPAllStageVersionsResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPAllStageVersions
// This API is used to query mini program version information across all phases.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPAllStageVersions(request *DescribeMNPAllStageVersionsRequest) (response *DescribeMNPAllStageVersionsResponse, err error) {
    return c.DescribeMNPAllStageVersionsWithContext(context.Background(), request)
}

// DescribeMNPAllStageVersions
// This API is used to query mini program version information across all phases.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPAllStageVersionsWithContext(ctx context.Context, request *DescribeMNPAllStageVersionsRequest) (response *DescribeMNPAllStageVersionsResponse, err error) {
    if request == nil {
        request = NewDescribeMNPAllStageVersionsRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPAllStageVersions")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPAllStageVersions require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPAllStageVersionsResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPAppSecretRequest() (request *DescribeMNPAppSecretRequest) {
    request = &DescribeMNPAppSecretRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPAppSecret")
    
    
    return
}

func NewDescribeMNPAppSecretResponse() (response *DescribeMNPAppSecretResponse) {
    response = &DescribeMNPAppSecretResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPAppSecret
// This API is used to query mini program secret keys.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPAppSecret(request *DescribeMNPAppSecretRequest) (response *DescribeMNPAppSecretResponse, err error) {
    return c.DescribeMNPAppSecretWithContext(context.Background(), request)
}

// DescribeMNPAppSecret
// This API is used to query mini program secret keys.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPAppSecretWithContext(ctx context.Context, request *DescribeMNPAppSecretRequest) (response *DescribeMNPAppSecretResponse, err error) {
    if request == nil {
        request = NewDescribeMNPAppSecretRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPAppSecret")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPAppSecret require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPAppSecretResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPApprovalListRequest() (request *DescribeMNPApprovalListRequest) {
    request = &DescribeMNPApprovalListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPApprovalList")
    
    
    return
}

func NewDescribeMNPApprovalListResponse() (response *DescribeMNPApprovalListResponse) {
    response = &DescribeMNPApprovalListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPApprovalList
// This API is used to query a list of approval requests related with a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_QUERYPARAMETERLENGTHEXCEEDLIMIT = "InvalidParameterValue.QueryParameterLengthExceedLimit"
func (c *Client) DescribeMNPApprovalList(request *DescribeMNPApprovalListRequest) (response *DescribeMNPApprovalListResponse, err error) {
    return c.DescribeMNPApprovalListWithContext(context.Background(), request)
}

// DescribeMNPApprovalList
// This API is used to query a list of approval requests related with a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_QUERYPARAMETERLENGTHEXCEEDLIMIT = "InvalidParameterValue.QueryParameterLengthExceedLimit"
func (c *Client) DescribeMNPApprovalListWithContext(ctx context.Context, request *DescribeMNPApprovalListRequest) (response *DescribeMNPApprovalListResponse, err error) {
    if request == nil {
        request = NewDescribeMNPApprovalListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPApprovalList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPApprovalList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPApprovalListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPCategoryRequest() (request *DescribeMNPCategoryRequest) {
    request = &DescribeMNPCategoryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPCategory")
    
    
    return
}

func NewDescribeMNPCategoryResponse() (response *DescribeMNPCategoryResponse) {
    response = &DescribeMNPCategoryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPCategory
// This API is used to query the mini program category list.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeMNPCategory(request *DescribeMNPCategoryRequest) (response *DescribeMNPCategoryResponse, err error) {
    return c.DescribeMNPCategoryWithContext(context.Background(), request)
}

// DescribeMNPCategory
// This API is used to query the mini program category list.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeMNPCategoryWithContext(ctx context.Context, request *DescribeMNPCategoryRequest) (response *DescribeMNPCategoryResponse, err error) {
    if request == nil {
        request = NewDescribeMNPCategoryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPCategory")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPCategory require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPCategoryResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPDomainACLRequest() (request *DescribeMNPDomainACLRequest) {
    request = &DescribeMNPDomainACLRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPDomainACL")
    
    
    return
}

func NewDescribeMNPDomainACLResponse() (response *DescribeMNPDomainACLResponse) {
    response = &DescribeMNPDomainACLResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPDomainACL
// This API is used to query the domain allowlist/blocklist of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) DescribeMNPDomainACL(request *DescribeMNPDomainACLRequest) (response *DescribeMNPDomainACLResponse, err error) {
    return c.DescribeMNPDomainACLWithContext(context.Background(), request)
}

// DescribeMNPDomainACL
// This API is used to query the domain allowlist/blocklist of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) DescribeMNPDomainACLWithContext(ctx context.Context, request *DescribeMNPDomainACLRequest) (response *DescribeMNPDomainACLResponse, err error) {
    if request == nil {
        request = NewDescribeMNPDomainACLRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPDomainACL")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPDomainACL require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPDomainACLResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPListRequest() (request *DescribeMNPListRequest) {
    request = &DescribeMNPListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPList")
    
    
    return
}

func NewDescribeMNPListResponse() (response *DescribeMNPListResponse) {
    response = &DescribeMNPListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPList
// This API is used to query the mini program list.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNPList(request *DescribeMNPListRequest) (response *DescribeMNPListResponse, err error) {
    return c.DescribeMNPListWithContext(context.Background(), request)
}

// DescribeMNPList
// This API is used to query the mini program list.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNPListWithContext(ctx context.Context, request *DescribeMNPListRequest) (response *DescribeMNPListResponse, err error) {
    if request == nil {
        request = NewDescribeMNPListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPMAUDataDetailRequest() (request *DescribeMNPMAUDataDetailRequest) {
    request = &DescribeMNPMAUDataDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPMAUDataDetail")
    
    
    return
}

func NewDescribeMNPMAUDataDetailResponse() (response *DescribeMNPMAUDataDetailResponse) {
    response = &DescribeMNPMAUDataDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPMAUDataDetail
// This API is used to query the detailed mini program monthly active user data.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPMAUDataDetail(request *DescribeMNPMAUDataDetailRequest) (response *DescribeMNPMAUDataDetailResponse, err error) {
    return c.DescribeMNPMAUDataDetailWithContext(context.Background(), request)
}

// DescribeMNPMAUDataDetail
// This API is used to query the detailed mini program monthly active user data.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPMAUDataDetailWithContext(ctx context.Context, request *DescribeMNPMAUDataDetailRequest) (response *DescribeMNPMAUDataDetailResponse, err error) {
    if request == nil {
        request = NewDescribeMNPMAUDataDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPMAUDataDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPMAUDataDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPMAUDataDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPMAULineChartRequest() (request *DescribeMNPMAULineChartRequest) {
    request = &DescribeMNPMAULineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPMAULineChart")
    
    
    return
}

func NewDescribeMNPMAULineChartResponse() (response *DescribeMNPMAULineChartResponse) {
    response = &DescribeMNPMAULineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPMAULineChart
// This API is used to query the mini program monthly active user data in a line chart format.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPMAULineChart(request *DescribeMNPMAULineChartRequest) (response *DescribeMNPMAULineChartResponse, err error) {
    return c.DescribeMNPMAULineChartWithContext(context.Background(), request)
}

// DescribeMNPMAULineChart
// This API is used to query the mini program monthly active user data in a line chart format.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPMAULineChartWithContext(ctx context.Context, request *DescribeMNPMAULineChartRequest) (response *DescribeMNPMAULineChartResponse, err error) {
    if request == nil {
        request = NewDescribeMNPMAULineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPMAULineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPMAULineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPMAULineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPMAUMetricCardRequest() (request *DescribeMNPMAUMetricCardRequest) {
    request = &DescribeMNPMAUMetricCardRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPMAUMetricCard")
    
    
    return
}

func NewDescribeMNPMAUMetricCardResponse() (response *DescribeMNPMAUMetricCardResponse) {
    response = &DescribeMNPMAUMetricCardResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPMAUMetricCard
// This API is used to query the MAU comparison data for a mini program between two months.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPMAUMetricCard(request *DescribeMNPMAUMetricCardRequest) (response *DescribeMNPMAUMetricCardResponse, err error) {
    return c.DescribeMNPMAUMetricCardWithContext(context.Background(), request)
}

// DescribeMNPMAUMetricCard
// This API is used to query the MAU comparison data for a mini program between two months.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPMAUMetricCardWithContext(ctx context.Context, request *DescribeMNPMAUMetricCardRequest) (response *DescribeMNPMAUMetricCardResponse, err error) {
    if request == nil {
        request = NewDescribeMNPMAUMetricCardRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPMAUMetricCard")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPMAUMetricCard require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPMAUMetricCardResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPOfflinePackageURLRequest() (request *DescribeMNPOfflinePackageURLRequest) {
    request = &DescribeMNPOfflinePackageURLRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPOfflinePackageURL")
    
    
    return
}

func NewDescribeMNPOfflinePackageURLResponse() (response *DescribeMNPOfflinePackageURLResponse) {
    response = &DescribeMNPOfflinePackageURLResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPOfflinePackageURL
// This API is used to query the download URL of the mini program package.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPONLINEVERSIONNOTEXIST = "FailedOperation.MNPOnlineVersionNotExist"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeMNPOfflinePackageURL(request *DescribeMNPOfflinePackageURLRequest) (response *DescribeMNPOfflinePackageURLResponse, err error) {
    return c.DescribeMNPOfflinePackageURLWithContext(context.Background(), request)
}

// DescribeMNPOfflinePackageURL
// This API is used to query the download URL of the mini program package.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPONLINEVERSIONNOTEXIST = "FailedOperation.MNPOnlineVersionNotExist"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeMNPOfflinePackageURLWithContext(ctx context.Context, request *DescribeMNPOfflinePackageURLRequest) (response *DescribeMNPOfflinePackageURLResponse, err error) {
    if request == nil {
        request = NewDescribeMNPOfflinePackageURLRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPOfflinePackageURL")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPOfflinePackageURL require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPOfflinePackageURLResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPPageAnalysisDetailRequest() (request *DescribeMNPPageAnalysisDetailRequest) {
    request = &DescribeMNPPageAnalysisDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPPageAnalysisDetail")
    
    
    return
}

func NewDescribeMNPPageAnalysisDetailResponse() (response *DescribeMNPPageAnalysisDetailResponse) {
    response = &DescribeMNPPageAnalysisDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPPageAnalysisDetail
// This API is used to query the detailed mini program page visit data.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPPageAnalysisDetail(request *DescribeMNPPageAnalysisDetailRequest) (response *DescribeMNPPageAnalysisDetailResponse, err error) {
    return c.DescribeMNPPageAnalysisDetailWithContext(context.Background(), request)
}

// DescribeMNPPageAnalysisDetail
// This API is used to query the detailed mini program page visit data.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPPageAnalysisDetailWithContext(ctx context.Context, request *DescribeMNPPageAnalysisDetailRequest) (response *DescribeMNPPageAnalysisDetailResponse, err error) {
    if request == nil {
        request = NewDescribeMNPPageAnalysisDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPPageAnalysisDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPPageAnalysisDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPPageAnalysisDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPPaymentApprovalInfoRequest() (request *DescribeMNPPaymentApprovalInfoRequest) {
    request = &DescribeMNPPaymentApprovalInfoRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPPaymentApprovalInfo")
    
    
    return
}

func NewDescribeMNPPaymentApprovalInfoResponse() (response *DescribeMNPPaymentApprovalInfoResponse) {
    response = &DescribeMNPPaymentApprovalInfoResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPPaymentApprovalInfo
// This API is used to query the mini program payment approval information.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNPPaymentApprovalInfo(request *DescribeMNPPaymentApprovalInfoRequest) (response *DescribeMNPPaymentApprovalInfoResponse, err error) {
    return c.DescribeMNPPaymentApprovalInfoWithContext(context.Background(), request)
}

// DescribeMNPPaymentApprovalInfo
// This API is used to query the mini program payment approval information.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNPPaymentApprovalInfoWithContext(ctx context.Context, request *DescribeMNPPaymentApprovalInfoRequest) (response *DescribeMNPPaymentApprovalInfoResponse, err error) {
    if request == nil {
        request = NewDescribeMNPPaymentApprovalInfoRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPPaymentApprovalInfo")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPPaymentApprovalInfo require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPPaymentApprovalInfoResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPPreviewRequest() (request *DescribeMNPPreviewRequest) {
    request = &DescribeMNPPreviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPPreview")
    
    
    return
}

func NewDescribeMNPPreviewResponse() (response *DescribeMNPPreviewResponse) {
    response = &DescribeMNPPreviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPPreview
// This API is used to query the mini program preview details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPPreview(request *DescribeMNPPreviewRequest) (response *DescribeMNPPreviewResponse, err error) {
    return c.DescribeMNPPreviewWithContext(context.Background(), request)
}

// DescribeMNPPreview
// This API is used to query the mini program preview details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPPreviewWithContext(ctx context.Context, request *DescribeMNPPreviewRequest) (response *DescribeMNPPreviewResponse, err error) {
    if request == nil {
        request = NewDescribeMNPPreviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPPreview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPPreview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPPreviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPReleasedVersionHistoryRequest() (request *DescribeMNPReleasedVersionHistoryRequest) {
    request = &DescribeMNPReleasedVersionHistoryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPReleasedVersionHistory")
    
    
    return
}

func NewDescribeMNPReleasedVersionHistoryResponse() (response *DescribeMNPReleasedVersionHistoryResponse) {
    response = &DescribeMNPReleasedVersionHistoryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPReleasedVersionHistory
// This API is used to query the release version history of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPReleasedVersionHistory(request *DescribeMNPReleasedVersionHistoryRequest) (response *DescribeMNPReleasedVersionHistoryResponse, err error) {
    return c.DescribeMNPReleasedVersionHistoryWithContext(context.Background(), request)
}

// DescribeMNPReleasedVersionHistory
// This API is used to query the release version history of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPReleasedVersionHistoryWithContext(ctx context.Context, request *DescribeMNPReleasedVersionHistoryRequest) (response *DescribeMNPReleasedVersionHistoryResponse, err error) {
    if request == nil {
        request = NewDescribeMNPReleasedVersionHistoryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPReleasedVersionHistory")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPReleasedVersionHistory require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPReleasedVersionHistoryResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPReportDataLineChartRequest() (request *DescribeMNPReportDataLineChartRequest) {
    request = &DescribeMNPReportDataLineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPReportDataLineChart")
    
    
    return
}

func NewDescribeMNPReportDataLineChartResponse() (response *DescribeMNPReportDataLineChartResponse) {
    response = &DescribeMNPReportDataLineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPReportDataLineChart
// This API is used to query the mini program visit analysis line chart within a given date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPReportDataLineChart(request *DescribeMNPReportDataLineChartRequest) (response *DescribeMNPReportDataLineChartResponse, err error) {
    return c.DescribeMNPReportDataLineChartWithContext(context.Background(), request)
}

// DescribeMNPReportDataLineChart
// This API is used to query the mini program visit analysis line chart within a given date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPReportDataLineChartWithContext(ctx context.Context, request *DescribeMNPReportDataLineChartRequest) (response *DescribeMNPReportDataLineChartResponse, err error) {
    if request == nil {
        request = NewDescribeMNPReportDataLineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPReportDataLineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPReportDataLineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPReportDataLineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPReportDetailRequest() (request *DescribeMNPReportDetailRequest) {
    request = &DescribeMNPReportDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPReportDetail")
    
    
    return
}

func NewDescribeMNPReportDetailResponse() (response *DescribeMNPReportDetailResponse) {
    response = &DescribeMNPReportDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPReportDetail
// This API is used to query the detailed mini program visit analysis data.
//
// error code that may be returned:
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPReportDetail(request *DescribeMNPReportDetailRequest) (response *DescribeMNPReportDetailResponse, err error) {
    return c.DescribeMNPReportDetailWithContext(context.Background(), request)
}

// DescribeMNPReportDetail
// This API is used to query the detailed mini program visit analysis data.
//
// error code that may be returned:
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeMNPReportDetailWithContext(ctx context.Context, request *DescribeMNPReportDetailRequest) (response *DescribeMNPReportDetailResponse, err error) {
    if request == nil {
        request = NewDescribeMNPReportDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPReportDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPReportDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPReportDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPRetentionDataRequest() (request *DescribeMNPRetentionDataRequest) {
    request = &DescribeMNPRetentionDataRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPRetentionData")
    
    
    return
}

func NewDescribeMNPRetentionDataResponse() (response *DescribeMNPRetentionDataResponse) {
    response = &DescribeMNPRetentionDataResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPRetentionData
// This API is used to query the mini program user retention data within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeMNPRetentionData(request *DescribeMNPRetentionDataRequest) (response *DescribeMNPRetentionDataResponse, err error) {
    return c.DescribeMNPRetentionDataWithContext(context.Background(), request)
}

// DescribeMNPRetentionData
// This API is used to query the mini program user retention data within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeMNPRetentionDataWithContext(ctx context.Context, request *DescribeMNPRetentionDataRequest) (response *DescribeMNPRetentionDataResponse, err error) {
    if request == nil {
        request = NewDescribeMNPRetentionDataRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPRetentionData")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPRetentionData require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPRetentionDataResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPSensitiveAPIPermissionApprovalRequest() (request *DescribeMNPSensitiveAPIPermissionApprovalRequest) {
    request = &DescribeMNPSensitiveAPIPermissionApprovalRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPSensitiveAPIPermissionApproval")
    
    
    return
}

func NewDescribeMNPSensitiveAPIPermissionApprovalResponse() (response *DescribeMNPSensitiveAPIPermissionApprovalResponse) {
    response = &DescribeMNPSensitiveAPIPermissionApprovalResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPSensitiveAPIPermissionApproval
// This API is used to query the details of a sensitive API permission request for a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNPSensitiveAPIPermissionApproval(request *DescribeMNPSensitiveAPIPermissionApprovalRequest) (response *DescribeMNPSensitiveAPIPermissionApprovalResponse, err error) {
    return c.DescribeMNPSensitiveAPIPermissionApprovalWithContext(context.Background(), request)
}

// DescribeMNPSensitiveAPIPermissionApproval
// This API is used to query the details of a sensitive API permission request for a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNPSensitiveAPIPermissionApprovalWithContext(ctx context.Context, request *DescribeMNPSensitiveAPIPermissionApprovalRequest) (response *DescribeMNPSensitiveAPIPermissionApprovalResponse, err error) {
    if request == nil {
        request = NewDescribeMNPSensitiveAPIPermissionApprovalRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPSensitiveAPIPermissionApproval")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPSensitiveAPIPermissionApproval require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPSensitiveAPIPermissionApprovalResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPSensitiveAPIPermissionApprovalListRequest() (request *DescribeMNPSensitiveAPIPermissionApprovalListRequest) {
    request = &DescribeMNPSensitiveAPIPermissionApprovalListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPSensitiveAPIPermissionApprovalList")
    
    
    return
}

func NewDescribeMNPSensitiveAPIPermissionApprovalListResponse() (response *DescribeMNPSensitiveAPIPermissionApprovalListResponse) {
    response = &DescribeMNPSensitiveAPIPermissionApprovalListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPSensitiveAPIPermissionApprovalList
// This API is used to query a list of permission requests to allow a mini program to call sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNPSensitiveAPIPermissionApprovalList(request *DescribeMNPSensitiveAPIPermissionApprovalListRequest) (response *DescribeMNPSensitiveAPIPermissionApprovalListResponse, err error) {
    return c.DescribeMNPSensitiveAPIPermissionApprovalListWithContext(context.Background(), request)
}

// DescribeMNPSensitiveAPIPermissionApprovalList
// This API is used to query a list of permission requests to allow a mini program to call sensitive APIs.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) DescribeMNPSensitiveAPIPermissionApprovalListWithContext(ctx context.Context, request *DescribeMNPSensitiveAPIPermissionApprovalListRequest) (response *DescribeMNPSensitiveAPIPermissionApprovalListResponse, err error) {
    if request == nil {
        request = NewDescribeMNPSensitiveAPIPermissionApprovalListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPSensitiveAPIPermissionApprovalList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPSensitiveAPIPermissionApprovalList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPSensitiveAPIPermissionApprovalListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPSensitiveAPIPermissionListRequest() (request *DescribeMNPSensitiveAPIPermissionListRequest) {
    request = &DescribeMNPSensitiveAPIPermissionListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPSensitiveAPIPermissionList")
    
    
    return
}

func NewDescribeMNPSensitiveAPIPermissionListResponse() (response *DescribeMNPSensitiveAPIPermissionListResponse) {
    response = &DescribeMNPSensitiveAPIPermissionListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPSensitiveAPIPermissionList
// This API is used to query the list of sensitive APIs that available to a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSensitiveAPIPermissionList(request *DescribeMNPSensitiveAPIPermissionListRequest) (response *DescribeMNPSensitiveAPIPermissionListResponse, err error) {
    return c.DescribeMNPSensitiveAPIPermissionListWithContext(context.Background(), request)
}

// DescribeMNPSensitiveAPIPermissionList
// This API is used to query the list of sensitive APIs that available to a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSensitiveAPIPermissionListWithContext(ctx context.Context, request *DescribeMNPSensitiveAPIPermissionListRequest) (response *DescribeMNPSensitiveAPIPermissionListResponse, err error) {
    if request == nil {
        request = NewDescribeMNPSensitiveAPIPermissionListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPSensitiveAPIPermissionList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPSensitiveAPIPermissionList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPSensitiveAPIPermissionListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPSubscribeMessageTemplateRequest() (request *DescribeMNPSubscribeMessageTemplateRequest) {
    request = &DescribeMNPSubscribeMessageTemplateRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPSubscribeMessageTemplate")
    
    
    return
}

func NewDescribeMNPSubscribeMessageTemplateResponse() (response *DescribeMNPSubscribeMessageTemplateResponse) {
    response = &DescribeMNPSubscribeMessageTemplateResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPSubscribeMessageTemplate
// This API is used to query mini program subscription message template details.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSubscribeMessageTemplate(request *DescribeMNPSubscribeMessageTemplateRequest) (response *DescribeMNPSubscribeMessageTemplateResponse, err error) {
    return c.DescribeMNPSubscribeMessageTemplateWithContext(context.Background(), request)
}

// DescribeMNPSubscribeMessageTemplate
// This API is used to query mini program subscription message template details.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSubscribeMessageTemplateWithContext(ctx context.Context, request *DescribeMNPSubscribeMessageTemplateRequest) (response *DescribeMNPSubscribeMessageTemplateResponse, err error) {
    if request == nil {
        request = NewDescribeMNPSubscribeMessageTemplateRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPSubscribeMessageTemplate")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPSubscribeMessageTemplate require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPSubscribeMessageTemplateResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPSubscribeMessageTemplateLibraryRequest() (request *DescribeMNPSubscribeMessageTemplateLibraryRequest) {
    request = &DescribeMNPSubscribeMessageTemplateLibraryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPSubscribeMessageTemplateLibrary")
    
    
    return
}

func NewDescribeMNPSubscribeMessageTemplateLibraryResponse() (response *DescribeMNPSubscribeMessageTemplateLibraryResponse) {
    response = &DescribeMNPSubscribeMessageTemplateLibraryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPSubscribeMessageTemplateLibrary
// This API is used to query mini program subscription message template library details.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSubscribeMessageTemplateLibrary(request *DescribeMNPSubscribeMessageTemplateLibraryRequest) (response *DescribeMNPSubscribeMessageTemplateLibraryResponse, err error) {
    return c.DescribeMNPSubscribeMessageTemplateLibraryWithContext(context.Background(), request)
}

// DescribeMNPSubscribeMessageTemplateLibrary
// This API is used to query mini program subscription message template library details.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSubscribeMessageTemplateLibraryWithContext(ctx context.Context, request *DescribeMNPSubscribeMessageTemplateLibraryRequest) (response *DescribeMNPSubscribeMessageTemplateLibraryResponse, err error) {
    if request == nil {
        request = NewDescribeMNPSubscribeMessageTemplateLibraryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPSubscribeMessageTemplateLibrary")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPSubscribeMessageTemplateLibrary require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPSubscribeMessageTemplateLibraryResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPSubscribeMessageTemplateLibraryListRequest() (request *DescribeMNPSubscribeMessageTemplateLibraryListRequest) {
    request = &DescribeMNPSubscribeMessageTemplateLibraryListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPSubscribeMessageTemplateLibraryList")
    
    
    return
}

func NewDescribeMNPSubscribeMessageTemplateLibraryListResponse() (response *DescribeMNPSubscribeMessageTemplateLibraryListResponse) {
    response = &DescribeMNPSubscribeMessageTemplateLibraryListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPSubscribeMessageTemplateLibraryList
// This API is used to query the mini program subscription message template library list.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSubscribeMessageTemplateLibraryList(request *DescribeMNPSubscribeMessageTemplateLibraryListRequest) (response *DescribeMNPSubscribeMessageTemplateLibraryListResponse, err error) {
    return c.DescribeMNPSubscribeMessageTemplateLibraryListWithContext(context.Background(), request)
}

// DescribeMNPSubscribeMessageTemplateLibraryList
// This API is used to query the mini program subscription message template library list.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSubscribeMessageTemplateLibraryListWithContext(ctx context.Context, request *DescribeMNPSubscribeMessageTemplateLibraryListRequest) (response *DescribeMNPSubscribeMessageTemplateLibraryListResponse, err error) {
    if request == nil {
        request = NewDescribeMNPSubscribeMessageTemplateLibraryListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPSubscribeMessageTemplateLibraryList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPSubscribeMessageTemplateLibraryList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPSubscribeMessageTemplateLibraryListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPSubscribeMessageTemplateListRequest() (request *DescribeMNPSubscribeMessageTemplateListRequest) {
    request = &DescribeMNPSubscribeMessageTemplateListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPSubscribeMessageTemplateList")
    
    
    return
}

func NewDescribeMNPSubscribeMessageTemplateListResponse() (response *DescribeMNPSubscribeMessageTemplateListResponse) {
    response = &DescribeMNPSubscribeMessageTemplateListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPSubscribeMessageTemplateList
// This API is used to query the mini program subscription message template list.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSubscribeMessageTemplateList(request *DescribeMNPSubscribeMessageTemplateListRequest) (response *DescribeMNPSubscribeMessageTemplateListResponse, err error) {
    return c.DescribeMNPSubscribeMessageTemplateListWithContext(context.Background(), request)
}

// DescribeMNPSubscribeMessageTemplateList
// This API is used to query the mini program subscription message template list.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) DescribeMNPSubscribeMessageTemplateListWithContext(ctx context.Context, request *DescribeMNPSubscribeMessageTemplateListRequest) (response *DescribeMNPSubscribeMessageTemplateListResponse, err error) {
    if request == nil {
        request = NewDescribeMNPSubscribeMessageTemplateListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPSubscribeMessageTemplateList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPSubscribeMessageTemplateList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPSubscribeMessageTemplateListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeMNPVersionRequest() (request *DescribeMNPVersionRequest) {
    request = &DescribeMNPVersionRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeMNPVersion")
    
    
    return
}

func NewDescribeMNPVersionResponse() (response *DescribeMNPVersionResponse) {
    response = &DescribeMNPVersionResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeMNPVersion
// This API is used to query the mini program version creation results.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONTASKID = "InvalidParameterValue.InvalidMNPVersionTaskId"
func (c *Client) DescribeMNPVersion(request *DescribeMNPVersionRequest) (response *DescribeMNPVersionResponse, err error) {
    return c.DescribeMNPVersionWithContext(context.Background(), request)
}

// DescribeMNPVersion
// This API is used to query the mini program version creation results.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONTASKID = "InvalidParameterValue.InvalidMNPVersionTaskId"
func (c *Client) DescribeMNPVersionWithContext(ctx context.Context, request *DescribeMNPVersionRequest) (response *DescribeMNPVersionResponse, err error) {
    if request == nil {
        request = NewDescribeMNPVersionRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeMNPVersion")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeMNPVersion require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeMNPVersionResponse()
    err = c.Send(request, response)
    return
}

func NewDescribePaymentDataDetailRequest() (request *DescribePaymentDataDetailRequest) {
    request = &DescribePaymentDataDetailRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribePaymentDataDetail")
    
    
    return
}

func NewDescribePaymentDataDetailResponse() (response *DescribePaymentDataDetailResponse) {
    response = &DescribePaymentDataDetailResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribePaymentDataDetail
// This API is used to query the mini program payment data details within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribePaymentDataDetail(request *DescribePaymentDataDetailRequest) (response *DescribePaymentDataDetailResponse, err error) {
    return c.DescribePaymentDataDetailWithContext(context.Background(), request)
}

// DescribePaymentDataDetail
// This API is used to query the mini program payment data details within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribePaymentDataDetailWithContext(ctx context.Context, request *DescribePaymentDataDetailRequest) (response *DescribePaymentDataDetailResponse, err error) {
    if request == nil {
        request = NewDescribePaymentDataDetailRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribePaymentDataDetail")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribePaymentDataDetail require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribePaymentDataDetailResponse()
    err = c.Send(request, response)
    return
}

func NewDescribePaymentDataLineChartRequest() (request *DescribePaymentDataLineChartRequest) {
    request = &DescribePaymentDataLineChartRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribePaymentDataLineChart")
    
    
    return
}

func NewDescribePaymentDataLineChartResponse() (response *DescribePaymentDataLineChartResponse) {
    response = &DescribePaymentDataLineChartResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribePaymentDataLineChart
// This API is used to query the mini program payment line chart within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribePaymentDataLineChart(request *DescribePaymentDataLineChartRequest) (response *DescribePaymentDataLineChartResponse, err error) {
    return c.DescribePaymentDataLineChartWithContext(context.Background(), request)
}

// DescribePaymentDataLineChart
// This API is used to query the mini program payment line chart within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribePaymentDataLineChartWithContext(ctx context.Context, request *DescribePaymentDataLineChartRequest) (response *DescribePaymentDataLineChartResponse, err error) {
    if request == nil {
        request = NewDescribePaymentDataLineChartRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribePaymentDataLineChart")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribePaymentDataLineChart require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribePaymentDataLineChartResponse()
    err = c.Send(request, response)
    return
}

func NewDescribePaymentDataOverviewRequest() (request *DescribePaymentDataOverviewRequest) {
    request = &DescribePaymentDataOverviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribePaymentDataOverview")
    
    
    return
}

func NewDescribePaymentDataOverviewResponse() (response *DescribePaymentDataOverviewResponse) {
    response = &DescribePaymentDataOverviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribePaymentDataOverview
// This API is used to query an overview of mini program payment data within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribePaymentDataOverview(request *DescribePaymentDataOverviewRequest) (response *DescribePaymentDataOverviewResponse, err error) {
    return c.DescribePaymentDataOverviewWithContext(context.Background(), request)
}

// DescribePaymentDataOverview
// This API is used to query an overview of mini program payment data within a specified date range.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  FAILEDOPERATION_USERNOTFOUND = "FailedOperation.UserNotFound"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribePaymentDataOverviewWithContext(ctx context.Context, request *DescribePaymentDataOverviewRequest) (response *DescribePaymentDataOverviewResponse, err error) {
    if request == nil {
        request = NewDescribePaymentDataOverviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribePaymentDataOverview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribePaymentDataOverview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribePaymentDataOverviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeRoleListRequest() (request *DescribeRoleListRequest) {
    request = &DescribeRoleListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeRoleList")
    
    
    return
}

func NewDescribeRoleListResponse() (response *DescribeRoleListResponse) {
    response = &DescribeRoleListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeRoleList
// This API is used to query a list of roles.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeRoleList(request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error) {
    return c.DescribeRoleListWithContext(context.Background(), request)
}

// DescribeRoleList
// This API is used to query a list of roles.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeRoleListWithContext(ctx context.Context, request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error) {
    if request == nil {
        request = NewDescribeRoleListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeRoleList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeRoleList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeRoleListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeTeamRequest() (request *DescribeTeamRequest) {
    request = &DescribeTeamRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeTeam")
    
    
    return
}

func NewDescribeTeamResponse() (response *DescribeTeamResponse) {
    response = &DescribeTeamResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeTeam
// This API is used to query the team details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeTeam(request *DescribeTeamRequest) (response *DescribeTeamResponse, err error) {
    return c.DescribeTeamWithContext(context.Background(), request)
}

// DescribeTeam
// This API is used to query the team details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeTeamWithContext(ctx context.Context, request *DescribeTeamRequest) (response *DescribeTeamResponse, err error) {
    if request == nil {
        request = NewDescribeTeamRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeTeam")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeTeam require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeTeamResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeTeamListRequest() (request *DescribeTeamListRequest) {
    request = &DescribeTeamListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeTeamList")
    
    
    return
}

func NewDescribeTeamListResponse() (response *DescribeTeamListResponse) {
    response = &DescribeTeamListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeTeamList
// This API is used to query a list of teams.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_QUERYPARAMETERLENGTHEXCEEDLIMIT = "InvalidParameterValue.QueryParameterLengthExceedLimit"
func (c *Client) DescribeTeamList(request *DescribeTeamListRequest) (response *DescribeTeamListResponse, err error) {
    return c.DescribeTeamListWithContext(context.Background(), request)
}

// DescribeTeamList
// This API is used to query a list of teams.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_QUERYPARAMETERLENGTHEXCEEDLIMIT = "InvalidParameterValue.QueryParameterLengthExceedLimit"
func (c *Client) DescribeTeamListWithContext(ctx context.Context, request *DescribeTeamListRequest) (response *DescribeTeamListResponse, err error) {
    if request == nil {
        request = NewDescribeTeamListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeTeamList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeTeamList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeTeamListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeTeamMemberListRequest() (request *DescribeTeamMemberListRequest) {
    request = &DescribeTeamMemberListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeTeamMemberList")
    
    
    return
}

func NewDescribeTeamMemberListResponse() (response *DescribeTeamMemberListResponse) {
    response = &DescribeTeamMemberListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeTeamMemberList
// This API is used to query a list of team members.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeTeamMemberList(request *DescribeTeamMemberListRequest) (response *DescribeTeamMemberListResponse, err error) {
    return c.DescribeTeamMemberListWithContext(context.Background(), request)
}

// DescribeTeamMemberList
// This API is used to query a list of team members.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeTeamMemberListWithContext(ctx context.Context, request *DescribeTeamMemberListRequest) (response *DescribeTeamMemberListResponse, err error) {
    if request == nil {
        request = NewDescribeTeamMemberListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeTeamMemberList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeTeamMemberList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeTeamMemberListResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeTempSecret4UploadFile2CosRequest() (request *DescribeTempSecret4UploadFile2CosRequest) {
    request = &DescribeTempSecret4UploadFile2CosRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeTempSecret4UploadFile2Cos")
    
    
    return
}

func NewDescribeTempSecret4UploadFile2CosResponse() (response *DescribeTempSecret4UploadFile2CosResponse) {
    response = &DescribeTempSecret4UploadFile2CosResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeTempSecret4UploadFile2Cos
// This API is used to obtain a temporary key for file uploads.
//
// error code that may be returned:
//  FAILEDOPERATION_LOGINAUTHFAILED = "FailedOperation.LoginAuthFailed"
//  FAILEDOPERATION_REQUESTPARAMANALYSISFAILED = "FailedOperation.RequestParamAnalysisFailed"
//  FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeTempSecret4UploadFile2Cos(request *DescribeTempSecret4UploadFile2CosRequest) (response *DescribeTempSecret4UploadFile2CosResponse, err error) {
    return c.DescribeTempSecret4UploadFile2CosWithContext(context.Background(), request)
}

// DescribeTempSecret4UploadFile2Cos
// This API is used to obtain a temporary key for file uploads.
//
// error code that may be returned:
//  FAILEDOPERATION_LOGINAUTHFAILED = "FailedOperation.LoginAuthFailed"
//  FAILEDOPERATION_REQUESTPARAMANALYSISFAILED = "FailedOperation.RequestParamAnalysisFailed"
//  FAILEDOPERATION_SYSTEMERROR = "FailedOperation.SystemError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
//  MISSINGPARAMETER_LOGININFONOTFOUND = "MissingParameter.LoginInfoNotFound"
func (c *Client) DescribeTempSecret4UploadFile2CosWithContext(ctx context.Context, request *DescribeTempSecret4UploadFile2CosRequest) (response *DescribeTempSecret4UploadFile2CosResponse, err error) {
    if request == nil {
        request = NewDescribeTempSecret4UploadFile2CosRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeTempSecret4UploadFile2Cos")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeTempSecret4UploadFile2Cos require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeTempSecret4UploadFile2CosResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeUserRequest() (request *DescribeUserRequest) {
    request = &DescribeUserRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeUser")
    
    
    return
}

func NewDescribeUserResponse() (response *DescribeUserResponse) {
    response = &DescribeUserResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeUser
// This API is used to query the user details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDUSERID = "InvalidParameterValue.InvalidUserId"
func (c *Client) DescribeUser(request *DescribeUserRequest) (response *DescribeUserResponse, err error) {
    return c.DescribeUserWithContext(context.Background(), request)
}

// DescribeUser
// This API is used to query the user details.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDUSERID = "InvalidParameterValue.InvalidUserId"
func (c *Client) DescribeUserWithContext(ctx context.Context, request *DescribeUserRequest) (response *DescribeUserResponse, err error) {
    if request == nil {
        request = NewDescribeUserRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeUser")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeUser require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeUserResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeUserListRequest() (request *DescribeUserListRequest) {
    request = &DescribeUserListRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DescribeUserList")
    
    
    return
}

func NewDescribeUserListResponse() (response *DescribeUserListResponse) {
    response = &DescribeUserListResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeUserList
// This API is used to query a list of users.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDACCOUNTTYPE = "InvalidParameterValue.InvalidAccountType"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) DescribeUserList(request *DescribeUserListRequest) (response *DescribeUserListResponse, err error) {
    return c.DescribeUserListWithContext(context.Background(), request)
}

// DescribeUserList
// This API is used to query a list of users.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDACCOUNTTYPE = "InvalidParameterValue.InvalidAccountType"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) DescribeUserListWithContext(ctx context.Context, request *DescribeUserListRequest) (response *DescribeUserListResponse, err error) {
    if request == nil {
        request = NewDescribeUserListRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DescribeUserList")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeUserList require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeUserListResponse()
    err = c.Send(request, response)
    return
}

func NewDisableApplicationSensitiveAPIRequest() (request *DisableApplicationSensitiveAPIRequest) {
    request = &DisableApplicationSensitiveAPIRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DisableApplicationSensitiveAPI")
    
    
    return
}

func NewDisableApplicationSensitiveAPIResponse() (response *DisableApplicationSensitiveAPIResponse) {
    response = &DisableApplicationSensitiveAPIResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DisableApplicationSensitiveAPI
// This API is used to disable a superapp sensitive API.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
func (c *Client) DisableApplicationSensitiveAPI(request *DisableApplicationSensitiveAPIRequest) (response *DisableApplicationSensitiveAPIResponse, err error) {
    return c.DisableApplicationSensitiveAPIWithContext(context.Background(), request)
}

// DisableApplicationSensitiveAPI
// This API is used to disable a superapp sensitive API.
//
// error code that may be returned:
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
func (c *Client) DisableApplicationSensitiveAPIWithContext(ctx context.Context, request *DisableApplicationSensitiveAPIRequest) (response *DisableApplicationSensitiveAPIResponse, err error) {
    if request == nil {
        request = NewDisableApplicationSensitiveAPIRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DisableApplicationSensitiveAPI")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DisableApplicationSensitiveAPI require credential")
    }

    request.SetContext(ctx)
    
    response = NewDisableApplicationSensitiveAPIResponse()
    err = c.Send(request, response)
    return
}

func NewDisableMNPPaymentRequest() (request *DisableMNPPaymentRequest) {
    request = &DisableMNPPaymentRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "DisableMNPPayment")
    
    
    return
}

func NewDisableMNPPaymentResponse() (response *DisableMNPPaymentResponse) {
    response = &DisableMNPPaymentResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DisableMNPPayment
// This API is used to allow the superapp to actively disable mini program payment.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  FAILEDOPERATION_PAYMENTRECORDNOTFOUND = "FailedOperation.PaymentRecordNotFound"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
func (c *Client) DisableMNPPayment(request *DisableMNPPaymentRequest) (response *DisableMNPPaymentResponse, err error) {
    return c.DisableMNPPaymentWithContext(context.Background(), request)
}

// DisableMNPPayment
// This API is used to allow the superapp to actively disable mini program payment.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  FAILEDOPERATION_PAYMENTRECORDNOTFOUND = "FailedOperation.PaymentRecordNotFound"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
func (c *Client) DisableMNPPaymentWithContext(ctx context.Context, request *DisableMNPPaymentRequest) (response *DisableMNPPaymentResponse, err error) {
    if request == nil {
        request = NewDisableMNPPaymentRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "DisableMNPPayment")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DisableMNPPayment require credential")
    }

    request.SetContext(ctx)
    
    response = NewDisableMNPPaymentResponse()
    err = c.Send(request, response)
    return
}

func NewEnableApplicationSensitiveAPIRequest() (request *EnableApplicationSensitiveAPIRequest) {
    request = &EnableApplicationSensitiveAPIRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "EnableApplicationSensitiveAPI")
    
    
    return
}

func NewEnableApplicationSensitiveAPIResponse() (response *EnableApplicationSensitiveAPIResponse) {
    response = &EnableApplicationSensitiveAPIResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// EnableApplicationSensitiveAPI
// This API is used to enable a superapp sensitive API.
//
// error code that may be returned:
//  AUTHFAILURE = "AuthFailure"
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
func (c *Client) EnableApplicationSensitiveAPI(request *EnableApplicationSensitiveAPIRequest) (response *EnableApplicationSensitiveAPIResponse, err error) {
    return c.EnableApplicationSensitiveAPIWithContext(context.Background(), request)
}

// EnableApplicationSensitiveAPI
// This API is used to enable a superapp sensitive API.
//
// error code that may be returned:
//  AUTHFAILURE = "AuthFailure"
//  FAILEDOPERATION_NOACCESSPERMISSION = "FailedOperation.NoAccessPermission"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
func (c *Client) EnableApplicationSensitiveAPIWithContext(ctx context.Context, request *EnableApplicationSensitiveAPIRequest) (response *EnableApplicationSensitiveAPIResponse, err error) {
    if request == nil {
        request = NewEnableApplicationSensitiveAPIRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "EnableApplicationSensitiveAPI")
    
    if c.GetCredential() == nil {
        return nil, errors.New("EnableApplicationSensitiveAPI require credential")
    }

    request.SetContext(ctx)
    
    response = NewEnableApplicationSensitiveAPIResponse()
    err = c.Send(request, response)
    return
}

func NewModifyApplicationRequest() (request *ModifyApplicationRequest) {
    request = &ModifyApplicationRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyApplication")
    
    
    return
}

func NewModifyApplicationResponse() (response *ModifyApplicationResponse) {
    response = &ModifyApplicationResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyApplication
// This API is used to change the superapp information.
//
// error code that may be returned:
//  FAILEDOPERATION_APPLICATIONNAMEALREADYEXISTED = "FailedOperation.ApplicationNameAlreadyExisted"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDAPPPACKAGENAMELAYOUT = "InvalidParameterValue.InvalidAppPackageNameLayout"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONINTRO = "InvalidParameterValue.InvalidApplicationIntro"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONNAME = "InvalidParameterValue.InvalidApplicationName"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONREMARK = "InvalidParameterValue.InvalidApplicationRemark"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
func (c *Client) ModifyApplication(request *ModifyApplicationRequest) (response *ModifyApplicationResponse, err error) {
    return c.ModifyApplicationWithContext(context.Background(), request)
}

// ModifyApplication
// This API is used to change the superapp information.
//
// error code that may be returned:
//  FAILEDOPERATION_APPLICATIONNAMEALREADYEXISTED = "FailedOperation.ApplicationNameAlreadyExisted"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDAPPPACKAGENAMELAYOUT = "InvalidParameterValue.InvalidAppPackageNameLayout"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONID = "InvalidParameterValue.InvalidApplicationId"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONINTRO = "InvalidParameterValue.InvalidApplicationIntro"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONNAME = "InvalidParameterValue.InvalidApplicationName"
//  INVALIDPARAMETERVALUE_INVALIDAPPLICATIONREMARK = "InvalidParameterValue.InvalidApplicationRemark"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
func (c *Client) ModifyApplicationWithContext(ctx context.Context, request *ModifyApplicationRequest) (response *ModifyApplicationResponse, err error) {
    if request == nil {
        request = NewModifyApplicationRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyApplication")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyApplication require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyApplicationResponse()
    err = c.Send(request, response)
    return
}

func NewModifyApplicationConfigRequest() (request *ModifyApplicationConfigRequest) {
    request = &ModifyApplicationConfigRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyApplicationConfig")
    
    
    return
}

func NewModifyApplicationConfigResponse() (response *ModifyApplicationConfigResponse) {
    response = &ModifyApplicationConfigResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyApplicationConfig
// This API is used to edit the configuration of a superapp.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_APPKEYLENGTHEXCEEDLIMIT = "InvalidParameterValue.AppKeyLengthExceedLimit"
//  INVALIDPARAMETERVALUE_APPURLLENGTHEXCEEDLIMIT = "InvalidParameterValue.AppURLLengthExceedLimit"
func (c *Client) ModifyApplicationConfig(request *ModifyApplicationConfigRequest) (response *ModifyApplicationConfigResponse, err error) {
    return c.ModifyApplicationConfigWithContext(context.Background(), request)
}

// ModifyApplicationConfig
// This API is used to edit the configuration of a superapp.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_APPKEYLENGTHEXCEEDLIMIT = "InvalidParameterValue.AppKeyLengthExceedLimit"
//  INVALIDPARAMETERVALUE_APPURLLENGTHEXCEEDLIMIT = "InvalidParameterValue.AppURLLengthExceedLimit"
func (c *Client) ModifyApplicationConfigWithContext(ctx context.Context, request *ModifyApplicationConfigRequest) (response *ModifyApplicationConfigResponse, err error) {
    if request == nil {
        request = NewModifyApplicationConfigRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyApplicationConfig")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyApplicationConfig require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyApplicationConfigResponse()
    err = c.Send(request, response)
    return
}

func NewModifyGlobalDomainRequest() (request *ModifyGlobalDomainRequest) {
    request = &ModifyGlobalDomainRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyGlobalDomain")
    
    
    return
}

func NewModifyGlobalDomainResponse() (response *ModifyGlobalDomainResponse) {
    response = &ModifyGlobalDomainResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyGlobalDomain
// This API is used to modify the domain allowlist or blocklist.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
func (c *Client) ModifyGlobalDomain(request *ModifyGlobalDomainRequest) (response *ModifyGlobalDomainResponse, err error) {
    return c.ModifyGlobalDomainWithContext(context.Background(), request)
}

// ModifyGlobalDomain
// This API is used to modify the domain allowlist or blocklist.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
func (c *Client) ModifyGlobalDomainWithContext(ctx context.Context, request *ModifyGlobalDomainRequest) (response *ModifyGlobalDomainResponse, err error) {
    if request == nil {
        request = NewModifyGlobalDomainRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyGlobalDomain")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyGlobalDomain require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyGlobalDomainResponse()
    err = c.Send(request, response)
    return
}

func NewModifyMNGRequest() (request *ModifyMNGRequest) {
    request = &ModifyMNGRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyMNG")
    
    
    return
}

func NewModifyMNGResponse() (response *ModifyMNGResponse) {
    response = &ModifyMNGResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyMNG
// This API is used to edit the mini game information.
//
// error code that may be returned:
//  FAILEDOPERATION_MINIPROGRAMICONANALYSISFAILED = "FailedOperation.MiniProgramIconAnalysisFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_AGERATINGEXCEEDSUPPERAPPLIMIT = "InvalidParameterValue.AgeRatingExceedSupperAppLimit"
//  INVALIDPARAMETERVALUE_DUPLICATEAGERATINGSTANDARD = "InvalidParameterValue.DuplicateAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDAGERATINGSTANDARD = "InvalidParameterValue.InvalidAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDMNPI18NLANG = "InvalidParameterValue.InvalidMNPI18NLang"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
//  INVALIDPARAMETERVALUE_MNPTYPENUMBEREXCEEDLIMIT = "InvalidParameterValue.MNPTypeNumberExceedLimit"
//  INVALIDPARAMETERVALUE_MINIPROGRAMNAMEALREADYEXIST = "InvalidParameterValue.MiniProgramNameAlreadyExist"
func (c *Client) ModifyMNG(request *ModifyMNGRequest) (response *ModifyMNGResponse, err error) {
    return c.ModifyMNGWithContext(context.Background(), request)
}

// ModifyMNG
// This API is used to edit the mini game information.
//
// error code that may be returned:
//  FAILEDOPERATION_MINIPROGRAMICONANALYSISFAILED = "FailedOperation.MiniProgramIconAnalysisFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_AGERATINGEXCEEDSUPPERAPPLIMIT = "InvalidParameterValue.AgeRatingExceedSupperAppLimit"
//  INVALIDPARAMETERVALUE_DUPLICATEAGERATINGSTANDARD = "InvalidParameterValue.DuplicateAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDAGERATINGSTANDARD = "InvalidParameterValue.InvalidAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDMNPI18NLANG = "InvalidParameterValue.InvalidMNPI18NLang"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
//  INVALIDPARAMETERVALUE_MNPTYPENUMBEREXCEEDLIMIT = "InvalidParameterValue.MNPTypeNumberExceedLimit"
//  INVALIDPARAMETERVALUE_MINIPROGRAMNAMEALREADYEXIST = "InvalidParameterValue.MiniProgramNameAlreadyExist"
func (c *Client) ModifyMNGWithContext(ctx context.Context, request *ModifyMNGRequest) (response *ModifyMNGResponse, err error) {
    if request == nil {
        request = NewModifyMNGRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyMNG")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyMNG require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyMNGResponse()
    err = c.Send(request, response)
    return
}

func NewModifyMNGAppSecretStatusRequest() (request *ModifyMNGAppSecretStatusRequest) {
    request = &ModifyMNGAppSecretStatusRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyMNGAppSecretStatus")
    
    
    return
}

func NewModifyMNGAppSecretStatusResponse() (response *ModifyMNGAppSecretStatusResponse) {
    response = &ModifyMNGAppSecretStatusResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyMNGAppSecretStatus
// This API is used to modify the secret key status of a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ModifyMNGAppSecretStatus(request *ModifyMNGAppSecretStatusRequest) (response *ModifyMNGAppSecretStatusResponse, err error) {
    return c.ModifyMNGAppSecretStatusWithContext(context.Background(), request)
}

// ModifyMNGAppSecretStatus
// This API is used to modify the secret key status of a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ModifyMNGAppSecretStatusWithContext(ctx context.Context, request *ModifyMNGAppSecretStatusRequest) (response *ModifyMNGAppSecretStatusResponse, err error) {
    if request == nil {
        request = NewModifyMNGAppSecretStatusRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyMNGAppSecretStatus")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyMNGAppSecretStatus require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyMNGAppSecretStatusResponse()
    err = c.Send(request, response)
    return
}

func NewModifyMNGDomainRequest() (request *ModifyMNGDomainRequest) {
    request = &ModifyMNGDomainRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyMNGDomain")
    
    
    return
}

func NewModifyMNGDomainResponse() (response *ModifyMNGDomainResponse) {
    response = &ModifyMNGDomainResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyMNGDomain
// This API is used to edit the mini game domain information.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ModifyMNGDomain(request *ModifyMNGDomainRequest) (response *ModifyMNGDomainResponse, err error) {
    return c.ModifyMNGDomainWithContext(context.Background(), request)
}

// ModifyMNGDomain
// This API is used to edit the mini game domain information.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ModifyMNGDomainWithContext(ctx context.Context, request *ModifyMNGDomainRequest) (response *ModifyMNGDomainResponse, err error) {
    if request == nil {
        request = NewModifyMNGDomainRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyMNGDomain")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyMNGDomain require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyMNGDomainResponse()
    err = c.Send(request, response)
    return
}

func NewModifyMNPRequest() (request *ModifyMNPRequest) {
    request = &ModifyMNPRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyMNP")
    
    
    return
}

func NewModifyMNPResponse() (response *ModifyMNPResponse) {
    response = &ModifyMNPResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyMNP
// This API is used to edit the mini program information.
//
// error code that may be returned:
//  FAILEDOPERATION_MINIPROGRAMICONANALYSISFAILED = "FailedOperation.MiniProgramIconAnalysisFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_AGERATINGEXCEEDSUPPERAPPLIMIT = "InvalidParameterValue.AgeRatingExceedSupperAppLimit"
//  INVALIDPARAMETERVALUE_DUPLICATEAGERATINGSTANDARD = "InvalidParameterValue.DuplicateAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDAGERATINGSTANDARD = "InvalidParameterValue.InvalidAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDMNPI18NLANG = "InvalidParameterValue.InvalidMNPI18NLang"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
//  INVALIDPARAMETERVALUE_MNPTYPENUMBEREXCEEDLIMIT = "InvalidParameterValue.MNPTypeNumberExceedLimit"
//  INVALIDPARAMETERVALUE_MINIPROGRAMNAMEALREADYEXIST = "InvalidParameterValue.MiniProgramNameAlreadyExist"
func (c *Client) ModifyMNP(request *ModifyMNPRequest) (response *ModifyMNPResponse, err error) {
    return c.ModifyMNPWithContext(context.Background(), request)
}

// ModifyMNP
// This API is used to edit the mini program information.
//
// error code that may be returned:
//  FAILEDOPERATION_MINIPROGRAMICONANALYSISFAILED = "FailedOperation.MiniProgramIconAnalysisFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_AGERATINGEXCEEDSUPPERAPPLIMIT = "InvalidParameterValue.AgeRatingExceedSupperAppLimit"
//  INVALIDPARAMETERVALUE_DUPLICATEAGERATINGSTANDARD = "InvalidParameterValue.DuplicateAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDAGERATINGSTANDARD = "InvalidParameterValue.InvalidAgeRatingStandard"
//  INVALIDPARAMETERVALUE_INVALIDMNPI18NLANG = "InvalidParameterValue.InvalidMNPI18NLang"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
//  INVALIDPARAMETERVALUE_INVALIDMNPNAME = "InvalidParameterValue.InvalidMNPName"
//  INVALIDPARAMETERVALUE_INVALIDMNPTYPE = "InvalidParameterValue.InvalidMNPType"
//  INVALIDPARAMETERVALUE_MNPTYPENUMBEREXCEEDLIMIT = "InvalidParameterValue.MNPTypeNumberExceedLimit"
//  INVALIDPARAMETERVALUE_MINIPROGRAMNAMEALREADYEXIST = "InvalidParameterValue.MiniProgramNameAlreadyExist"
func (c *Client) ModifyMNPWithContext(ctx context.Context, request *ModifyMNPRequest) (response *ModifyMNPResponse, err error) {
    if request == nil {
        request = NewModifyMNPRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyMNP")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyMNP require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyMNPResponse()
    err = c.Send(request, response)
    return
}

func NewModifyMNPAppSecretStatusRequest() (request *ModifyMNPAppSecretStatusRequest) {
    request = &ModifyMNPAppSecretStatusRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyMNPAppSecretStatus")
    
    
    return
}

func NewModifyMNPAppSecretStatusResponse() (response *ModifyMNPAppSecretStatusResponse) {
    response = &ModifyMNPAppSecretStatusResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyMNPAppSecretStatus
// This API is used to modify the secret key status of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ModifyMNPAppSecretStatus(request *ModifyMNPAppSecretStatusRequest) (response *ModifyMNPAppSecretStatusResponse, err error) {
    return c.ModifyMNPAppSecretStatusWithContext(context.Background(), request)
}

// ModifyMNPAppSecretStatus
// This API is used to modify the secret key status of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ModifyMNPAppSecretStatusWithContext(ctx context.Context, request *ModifyMNPAppSecretStatusRequest) (response *ModifyMNPAppSecretStatusResponse, err error) {
    if request == nil {
        request = NewModifyMNPAppSecretStatusRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyMNPAppSecretStatus")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyMNPAppSecretStatus require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyMNPAppSecretStatusResponse()
    err = c.Send(request, response)
    return
}

func NewModifyMNPDomainRequest() (request *ModifyMNPDomainRequest) {
    request = &ModifyMNPDomainRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyMNPDomain")
    
    
    return
}

func NewModifyMNPDomainResponse() (response *ModifyMNPDomainResponse) {
    response = &ModifyMNPDomainResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyMNPDomain
// This API is used to edit the mini program domain information.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ModifyMNPDomain(request *ModifyMNPDomainRequest) (response *ModifyMNPDomainResponse, err error) {
    return c.ModifyMNPDomainWithContext(context.Background(), request)
}

// ModifyMNPDomain
// This API is used to edit the mini program domain information.
//
// error code that may be returned:
//  FAILEDOPERATION_GETOPERATERESOURCEFAILED = "FailedOperation.GetOperateResourceFailed"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ModifyMNPDomainWithContext(ctx context.Context, request *ModifyMNPDomainRequest) (response *ModifyMNPDomainResponse, err error) {
    if request == nil {
        request = NewModifyMNPDomainRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyMNPDomain")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyMNPDomain require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyMNPDomainResponse()
    err = c.Send(request, response)
    return
}

func NewModifyTeamRequest() (request *ModifyTeamRequest) {
    request = &ModifyTeamRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyTeam")
    
    
    return
}

func NewModifyTeamResponse() (response *ModifyTeamResponse) {
    response = &ModifyTeamResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyTeam
// This API is used to change the team information.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTTEAMNAME = "InvalidParameterValue.ExistTeamName"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) ModifyTeam(request *ModifyTeamRequest) (response *ModifyTeamResponse, err error) {
    return c.ModifyTeamWithContext(context.Background(), request)
}

// ModifyTeam
// This API is used to change the team information.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_EXISTTEAMNAME = "InvalidParameterValue.ExistTeamName"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) ModifyTeamWithContext(ctx context.Context, request *ModifyTeamRequest) (response *ModifyTeamResponse, err error) {
    if request == nil {
        request = NewModifyTeamRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyTeam")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyTeam require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyTeamResponse()
    err = c.Send(request, response)
    return
}

func NewModifyTeamMemberRequest() (request *ModifyTeamMemberRequest) {
    request = &ModifyTeamMemberRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyTeamMember")
    
    
    return
}

func NewModifyTeamMemberResponse() (response *ModifyTeamMemberResponse) {
    response = &ModifyTeamMemberResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyTeamMember
// This API is used to modify the team member information.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDROLEID = "InvalidParameterValue.InvalidRoleId"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
//  INVALIDPARAMETERVALUE_INVALIDUSERID = "InvalidParameterValue.InvalidUserId"
func (c *Client) ModifyTeamMember(request *ModifyTeamMemberRequest) (response *ModifyTeamMemberResponse, err error) {
    return c.ModifyTeamMemberWithContext(context.Background(), request)
}

// ModifyTeamMember
// This API is used to modify the team member information.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDROLEID = "InvalidParameterValue.InvalidRoleId"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
//  INVALIDPARAMETERVALUE_INVALIDUSERID = "InvalidParameterValue.InvalidUserId"
func (c *Client) ModifyTeamMemberWithContext(ctx context.Context, request *ModifyTeamMemberRequest) (response *ModifyTeamMemberResponse, err error) {
    if request == nil {
        request = NewModifyTeamMemberRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyTeamMember")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyTeamMember require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyTeamMemberResponse()
    err = c.Send(request, response)
    return
}

func NewModifyUserRequest() (request *ModifyUserRequest) {
    request = &ModifyUserRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ModifyUser")
    
    
    return
}

func NewModifyUserResponse() (response *ModifyUserResponse) {
    response = &ModifyUserResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyUser
// This API is used to modify the user information.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_UNABLEOPERATEADMINACCOUNT = "FailedOperation.UnableOperateAdminAccount"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDACCOUNTTYPE = "InvalidParameterValue.InvalidAccountType"
//  INVALIDPARAMETERVALUE_INVALIDUSERNAME = "InvalidParameterValue.InvalidUserName"
func (c *Client) ModifyUser(request *ModifyUserRequest) (response *ModifyUserResponse, err error) {
    return c.ModifyUserWithContext(context.Background(), request)
}

// ModifyUser
// This API is used to modify the user information.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_UNABLEOPERATEADMINACCOUNT = "FailedOperation.UnableOperateAdminAccount"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDACCOUNTTYPE = "InvalidParameterValue.InvalidAccountType"
//  INVALIDPARAMETERVALUE_INVALIDUSERNAME = "InvalidParameterValue.InvalidUserName"
func (c *Client) ModifyUserWithContext(ctx context.Context, request *ModifyUserRequest) (response *ModifyUserResponse, err error) {
    if request == nil {
        request = NewModifyUserRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ModifyUser")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyUser require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyUserResponse()
    err = c.Send(request, response)
    return
}

func NewProcessMNPApprovalRequest() (request *ProcessMNPApprovalRequest) {
    request = &ProcessMNPApprovalRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ProcessMNPApproval")
    
    
    return
}

func NewProcessMNPApprovalResponse() (response *ProcessMNPApprovalResponse) {
    response = &ProcessMNPApprovalResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ProcessMNPApproval
// This API is used to process mini program approval requests.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPROVALNO = "InvalidParameterValue.InvalidApprovalNo"
//  INVALIDPARAMETERVALUE_INVALIDAPPROVALNOTE = "InvalidParameterValue.InvalidApprovalNote"
//  INVALIDPARAMETERVALUE_PROCESSAPPLICATIONANDAPPROVALAPPLICATIONMISMATCH = "InvalidParameterValue.ProcessApplicationAndApprovalApplicationMismatch"
//  INVALIDPARAMETERVALUE_PROCESSAPPROVALITEMISEMPTY = "InvalidParameterValue.ProcessApprovalItemIsEmpty"
//  INVALIDPARAMETERVALUE_PROCESSMNPAPPROVALSTATUSERROR = "InvalidParameterValue.ProcessMNPApprovalStatusError"
func (c *Client) ProcessMNPApproval(request *ProcessMNPApprovalRequest) (response *ProcessMNPApprovalResponse, err error) {
    return c.ProcessMNPApprovalWithContext(context.Background(), request)
}

// ProcessMNPApproval
// This API is used to process mini program approval requests.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDAPPROVALNO = "InvalidParameterValue.InvalidApprovalNo"
//  INVALIDPARAMETERVALUE_INVALIDAPPROVALNOTE = "InvalidParameterValue.InvalidApprovalNote"
//  INVALIDPARAMETERVALUE_PROCESSAPPLICATIONANDAPPROVALAPPLICATIONMISMATCH = "InvalidParameterValue.ProcessApplicationAndApprovalApplicationMismatch"
//  INVALIDPARAMETERVALUE_PROCESSAPPROVALITEMISEMPTY = "InvalidParameterValue.ProcessApprovalItemIsEmpty"
//  INVALIDPARAMETERVALUE_PROCESSMNPAPPROVALSTATUSERROR = "InvalidParameterValue.ProcessMNPApprovalStatusError"
func (c *Client) ProcessMNPApprovalWithContext(ctx context.Context, request *ProcessMNPApprovalRequest) (response *ProcessMNPApprovalResponse, err error) {
    if request == nil {
        request = NewProcessMNPApprovalRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ProcessMNPApproval")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ProcessMNPApproval require credential")
    }

    request.SetContext(ctx)
    
    response = NewProcessMNPApprovalResponse()
    err = c.Send(request, response)
    return
}

func NewProcessMNPSensitiveAPIPermissionApprovalRequest() (request *ProcessMNPSensitiveAPIPermissionApprovalRequest) {
    request = &ProcessMNPSensitiveAPIPermissionApprovalRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ProcessMNPSensitiveAPIPermissionApproval")
    
    
    return
}

func NewProcessMNPSensitiveAPIPermissionApprovalResponse() (response *ProcessMNPSensitiveAPIPermissionApprovalResponse) {
    response = &ProcessMNPSensitiveAPIPermissionApprovalResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ProcessMNPSensitiveAPIPermissionApproval
// This API is used to process a sensitive API permission request for a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) ProcessMNPSensitiveAPIPermissionApproval(request *ProcessMNPSensitiveAPIPermissionApprovalRequest) (response *ProcessMNPSensitiveAPIPermissionApprovalResponse, err error) {
    return c.ProcessMNPSensitiveAPIPermissionApprovalWithContext(context.Background(), request)
}

// ProcessMNPSensitiveAPIPermissionApproval
// This API is used to process a sensitive API permission request for a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) ProcessMNPSensitiveAPIPermissionApprovalWithContext(ctx context.Context, request *ProcessMNPSensitiveAPIPermissionApprovalRequest) (response *ProcessMNPSensitiveAPIPermissionApprovalResponse, err error) {
    if request == nil {
        request = NewProcessMNPSensitiveAPIPermissionApprovalRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ProcessMNPSensitiveAPIPermissionApproval")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ProcessMNPSensitiveAPIPermissionApproval require credential")
    }

    request.SetContext(ctx)
    
    response = NewProcessMNPSensitiveAPIPermissionApprovalResponse()
    err = c.Send(request, response)
    return
}

func NewQueryMNPMerchantInfoRequest() (request *QueryMNPMerchantInfoRequest) {
    request = &QueryMNPMerchantInfoRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "QueryMNPMerchantInfo")
    
    
    return
}

func NewQueryMNPMerchantInfoResponse() (response *QueryMNPMerchantInfoResponse) {
    response = &QueryMNPMerchantInfoResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// QueryMNPMerchantInfo
// This API is used to query the merchant information of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) QueryMNPMerchantInfo(request *QueryMNPMerchantInfoRequest) (response *QueryMNPMerchantInfoResponse, err error) {
    return c.QueryMNPMerchantInfoWithContext(context.Background(), request)
}

// QueryMNPMerchantInfo
// This API is used to query the merchant information of a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) QueryMNPMerchantInfoWithContext(ctx context.Context, request *QueryMNPMerchantInfoRequest) (response *QueryMNPMerchantInfoResponse, err error) {
    if request == nil {
        request = NewQueryMNPMerchantInfoRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "QueryMNPMerchantInfo")
    
    if c.GetCredential() == nil {
        return nil, errors.New("QueryMNPMerchantInfo require credential")
    }

    request.SetContext(ctx)
    
    response = NewQueryMNPMerchantInfoResponse()
    err = c.Send(request, response)
    return
}

func NewReleaseMNGVersionRequest() (request *ReleaseMNGVersionRequest) {
    request = &ReleaseMNGVersionRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ReleaseMNGVersion")
    
    
    return
}

func NewReleaseMNGVersionResponse() (response *ReleaseMNGVersionResponse) {
    response = &ReleaseMNGVersionResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ReleaseMNGVersion
// This API is used to release a mini game version.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPRELEASENUMBEREXCEEDLIMIT = "FailedOperation.MNPReleaseNumberExceedLimit"
//  FAILEDOPERATION_MNPVERSIONRELEASED = "FailedOperation.MNPVersionReleased"
//  FAILEDOPERATION_ONLYRELEASEPLATFORMAPPROVEDMNPVERSION = "FailedOperation.OnlyReleasePlatformApprovedMNPVersion"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RELEASEMNPVERSIONNEEDGREATERTHANONLINEVERSION = "FailedOperation.ReleaseMNPVersionNeedGreaterThanOnlineVersion"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONID = "InvalidParameterValue.InvalidMNPVersionId"
func (c *Client) ReleaseMNGVersion(request *ReleaseMNGVersionRequest) (response *ReleaseMNGVersionResponse, err error) {
    return c.ReleaseMNGVersionWithContext(context.Background(), request)
}

// ReleaseMNGVersion
// This API is used to release a mini game version.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPRELEASENUMBEREXCEEDLIMIT = "FailedOperation.MNPReleaseNumberExceedLimit"
//  FAILEDOPERATION_MNPVERSIONRELEASED = "FailedOperation.MNPVersionReleased"
//  FAILEDOPERATION_ONLYRELEASEPLATFORMAPPROVEDMNPVERSION = "FailedOperation.OnlyReleasePlatformApprovedMNPVersion"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RELEASEMNPVERSIONNEEDGREATERTHANONLINEVERSION = "FailedOperation.ReleaseMNPVersionNeedGreaterThanOnlineVersion"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONID = "InvalidParameterValue.InvalidMNPVersionId"
func (c *Client) ReleaseMNGVersionWithContext(ctx context.Context, request *ReleaseMNGVersionRequest) (response *ReleaseMNGVersionResponse, err error) {
    if request == nil {
        request = NewReleaseMNGVersionRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ReleaseMNGVersion")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ReleaseMNGVersion require credential")
    }

    request.SetContext(ctx)
    
    response = NewReleaseMNGVersionResponse()
    err = c.Send(request, response)
    return
}

func NewReleaseMNPVersionRequest() (request *ReleaseMNPVersionRequest) {
    request = &ReleaseMNPVersionRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ReleaseMNPVersion")
    
    
    return
}

func NewReleaseMNPVersionResponse() (response *ReleaseMNPVersionResponse) {
    response = &ReleaseMNPVersionResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ReleaseMNPVersion
// This API is used to release a mini program version.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPRELEASENUMBEREXCEEDLIMIT = "FailedOperation.MNPReleaseNumberExceedLimit"
//  FAILEDOPERATION_MNPVERSIONRELEASED = "FailedOperation.MNPVersionReleased"
//  FAILEDOPERATION_ONLYRELEASEPLATFORMAPPROVEDMNPVERSION = "FailedOperation.OnlyReleasePlatformApprovedMNPVersion"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RELEASEMNPVERSIONNEEDGREATERTHANONLINEVERSION = "FailedOperation.ReleaseMNPVersionNeedGreaterThanOnlineVersion"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONID = "InvalidParameterValue.InvalidMNPVersionId"
func (c *Client) ReleaseMNPVersion(request *ReleaseMNPVersionRequest) (response *ReleaseMNPVersionResponse, err error) {
    return c.ReleaseMNPVersionWithContext(context.Background(), request)
}

// ReleaseMNPVersion
// This API is used to release a mini program version.
//
// error code that may be returned:
//  FAILEDOPERATION_MNPRELEASENUMBEREXCEEDLIMIT = "FailedOperation.MNPReleaseNumberExceedLimit"
//  FAILEDOPERATION_MNPVERSIONRELEASED = "FailedOperation.MNPVersionReleased"
//  FAILEDOPERATION_ONLYRELEASEPLATFORMAPPROVEDMNPVERSION = "FailedOperation.OnlyReleasePlatformApprovedMNPVersion"
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RELEASEMNPVERSIONNEEDGREATERTHANONLINEVERSION = "FailedOperation.ReleaseMNPVersionNeedGreaterThanOnlineVersion"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPVERSIONID = "InvalidParameterValue.InvalidMNPVersionId"
func (c *Client) ReleaseMNPVersionWithContext(ctx context.Context, request *ReleaseMNPVersionRequest) (response *ReleaseMNPVersionResponse, err error) {
    if request == nil {
        request = NewReleaseMNPVersionRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ReleaseMNPVersion")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ReleaseMNPVersion require credential")
    }

    request.SetContext(ctx)
    
    response = NewReleaseMNPVersionResponse()
    err = c.Send(request, response)
    return
}

func NewRemoveMNGRequest() (request *RemoveMNGRequest) {
    request = &RemoveMNGRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "RemoveMNG")
    
    
    return
}

func NewRemoveMNGResponse() (response *RemoveMNGResponse) {
    response = &RemoveMNGResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// RemoveMNG
// This API is used to remove a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) RemoveMNG(request *RemoveMNGRequest) (response *RemoveMNGResponse, err error) {
    return c.RemoveMNGWithContext(context.Background(), request)
}

// RemoveMNG
// This API is used to remove a mini game.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) RemoveMNGWithContext(ctx context.Context, request *RemoveMNGRequest) (response *RemoveMNGResponse, err error) {
    if request == nil {
        request = NewRemoveMNGRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "RemoveMNG")
    
    if c.GetCredential() == nil {
        return nil, errors.New("RemoveMNG require credential")
    }

    request.SetContext(ctx)
    
    response = NewRemoveMNGResponse()
    err = c.Send(request, response)
    return
}

func NewRemoveMNPRequest() (request *RemoveMNPRequest) {
    request = &RemoveMNPRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "RemoveMNP")
    
    
    return
}

func NewRemoveMNPResponse() (response *RemoveMNPResponse) {
    response = &RemoveMNPResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// RemoveMNP
// This API is used to remove a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) RemoveMNP(request *RemoveMNPRequest) (response *RemoveMNPResponse, err error) {
    return c.RemoveMNPWithContext(context.Background(), request)
}

// RemoveMNP
// This API is used to remove a mini program.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  FAILEDOPERATION_RECORDNOTFOUND = "FailedOperation.RecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) RemoveMNPWithContext(ctx context.Context, request *RemoveMNPRequest) (response *RemoveMNPResponse, err error) {
    if request == nil {
        request = NewRemoveMNPRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "RemoveMNP")
    
    if c.GetCredential() == nil {
        return nil, errors.New("RemoveMNP require credential")
    }

    request.SetContext(ctx)
    
    response = NewRemoveMNPResponse()
    err = c.Send(request, response)
    return
}

func NewRequestPaymentEnableRequest() (request *RequestPaymentEnableRequest) {
    request = &RequestPaymentEnableRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "RequestPaymentEnable")
    
    
    return
}

func NewRequestPaymentEnableResponse() (response *RequestPaymentEnableResponse) {
    response = &RequestPaymentEnableResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// RequestPaymentEnable
// This API is used to request the activation of mini program payment.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTPAYMENTOPENAPPLY = "FailedOperation.ExistPaymentOpenApply"
//  FAILEDOPERATION_MNPPAYMENTALREADYENABLED = "FailedOperation.MNPPaymentAlreadyEnabled"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) RequestPaymentEnable(request *RequestPaymentEnableRequest) (response *RequestPaymentEnableResponse, err error) {
    return c.RequestPaymentEnableWithContext(context.Background(), request)
}

// RequestPaymentEnable
// This API is used to request the activation of mini program payment.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTPAYMENTOPENAPPLY = "FailedOperation.ExistPaymentOpenApply"
//  FAILEDOPERATION_MNPPAYMENTALREADYENABLED = "FailedOperation.MNPPaymentAlreadyEnabled"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) RequestPaymentEnableWithContext(ctx context.Context, request *RequestPaymentEnableRequest) (response *RequestPaymentEnableResponse, err error) {
    if request == nil {
        request = NewRequestPaymentEnableRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "RequestPaymentEnable")
    
    if c.GetCredential() == nil {
        return nil, errors.New("RequestPaymentEnable require credential")
    }

    request.SetContext(ctx)
    
    response = NewRequestPaymentEnableResponse()
    err = c.Send(request, response)
    return
}

func NewRequestPaymentMerchantBindingRequest() (request *RequestPaymentMerchantBindingRequest) {
    request = &RequestPaymentMerchantBindingRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "RequestPaymentMerchantBinding")
    
    
    return
}

func NewRequestPaymentMerchantBindingResponse() (response *RequestPaymentMerchantBindingResponse) {
    response = &RequestPaymentMerchantBindingResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// RequestPaymentMerchantBinding
// This API is used to request the binding of a payment merchant to a team.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTMERCHANTBINDAPPLY = "FailedOperation.ExistMerchantBindApply"
//  FAILEDOPERATION_EXISTMERCHANTBINDRELATION = "FailedOperation.ExistMerchantBindRelation"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMERCHANTID = "InvalidParameterValue.InvalidMerchantId"
//  INVALIDPARAMETERVALUE_INVALIDMERCHANTNAME = "InvalidParameterValue.InvalidMerchantName"
func (c *Client) RequestPaymentMerchantBinding(request *RequestPaymentMerchantBindingRequest) (response *RequestPaymentMerchantBindingResponse, err error) {
    return c.RequestPaymentMerchantBindingWithContext(context.Background(), request)
}

// RequestPaymentMerchantBinding
// This API is used to request the binding of a payment merchant to a team.
//
// error code that may be returned:
//  FAILEDOPERATION_EXISTMERCHANTBINDAPPLY = "FailedOperation.ExistMerchantBindApply"
//  FAILEDOPERATION_EXISTMERCHANTBINDRELATION = "FailedOperation.ExistMerchantBindRelation"
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDMERCHANTID = "InvalidParameterValue.InvalidMerchantId"
//  INVALIDPARAMETERVALUE_INVALIDMERCHANTNAME = "InvalidParameterValue.InvalidMerchantName"
func (c *Client) RequestPaymentMerchantBindingWithContext(ctx context.Context, request *RequestPaymentMerchantBindingRequest) (response *RequestPaymentMerchantBindingResponse, err error) {
    if request == nil {
        request = NewRequestPaymentMerchantBindingRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "RequestPaymentMerchantBinding")
    
    if c.GetCredential() == nil {
        return nil, errors.New("RequestPaymentMerchantBinding require credential")
    }

    request.SetContext(ctx)
    
    response = NewRequestPaymentMerchantBindingResponse()
    err = c.Send(request, response)
    return
}

func NewResetMNGAppSecretRequest() (request *ResetMNGAppSecretRequest) {
    request = &ResetMNGAppSecretRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ResetMNGAppSecret")
    
    
    return
}

func NewResetMNGAppSecretResponse() (response *ResetMNGAppSecretResponse) {
    response = &ResetMNGAppSecretResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ResetMNGAppSecret
// This API is used to reset a mini game secret key.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ResetMNGAppSecret(request *ResetMNGAppSecretRequest) (response *ResetMNGAppSecretResponse, err error) {
    return c.ResetMNGAppSecretWithContext(context.Background(), request)
}

// ResetMNGAppSecret
// This API is used to reset a mini game secret key.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ResetMNGAppSecretWithContext(ctx context.Context, request *ResetMNGAppSecretRequest) (response *ResetMNGAppSecretResponse, err error) {
    if request == nil {
        request = NewResetMNGAppSecretRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ResetMNGAppSecret")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ResetMNGAppSecret require credential")
    }

    request.SetContext(ctx)
    
    response = NewResetMNGAppSecretResponse()
    err = c.Send(request, response)
    return
}

func NewResetMNPAppSecretRequest() (request *ResetMNPAppSecretRequest) {
    request = &ResetMNPAppSecretRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "ResetMNPAppSecret")
    
    
    return
}

func NewResetMNPAppSecretResponse() (response *ResetMNPAppSecretResponse) {
    response = &ResetMNPAppSecretResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ResetMNPAppSecret
// This API is used to reset a mini program secret key.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ResetMNPAppSecret(request *ResetMNPAppSecretRequest) (response *ResetMNPAppSecretResponse, err error) {
    return c.ResetMNPAppSecretWithContext(context.Background(), request)
}

// ResetMNPAppSecret
// This API is used to reset a mini program secret key.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMNPID = "InvalidParameterValue.InvalidMNPId"
func (c *Client) ResetMNPAppSecretWithContext(ctx context.Context, request *ResetMNPAppSecretRequest) (response *ResetMNPAppSecretResponse, err error) {
    if request == nil {
        request = NewResetMNPAppSecretRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "ResetMNPAppSecret")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ResetMNPAppSecret require credential")
    }

    request.SetContext(ctx)
    
    response = NewResetMNPAppSecretResponse()
    err = c.Send(request, response)
    return
}

func NewRollbackMNGVersionRequest() (request *RollbackMNGVersionRequest) {
    request = &RollbackMNGVersionRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "RollbackMNGVersion")
    
    
    return
}

func NewRollbackMNGVersionResponse() (response *RollbackMNGVersionResponse) {
    response = &RollbackMNGVersionResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// RollbackMNGVersion
// This API is used to roll back the released version of a mini game to a specified version.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMINIAPPID = "InvalidParameterValue.InvalidMiniAppId"
func (c *Client) RollbackMNGVersion(request *RollbackMNGVersionRequest) (response *RollbackMNGVersionResponse, err error) {
    return c.RollbackMNGVersionWithContext(context.Background(), request)
}

// RollbackMNGVersion
// This API is used to roll back the released version of a mini game to a specified version.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMINIAPPID = "InvalidParameterValue.InvalidMiniAppId"
func (c *Client) RollbackMNGVersionWithContext(ctx context.Context, request *RollbackMNGVersionRequest) (response *RollbackMNGVersionResponse, err error) {
    if request == nil {
        request = NewRollbackMNGVersionRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "RollbackMNGVersion")
    
    if c.GetCredential() == nil {
        return nil, errors.New("RollbackMNGVersion require credential")
    }

    request.SetContext(ctx)
    
    response = NewRollbackMNGVersionResponse()
    err = c.Send(request, response)
    return
}

func NewRollbackMNPVersionRequest() (request *RollbackMNPVersionRequest) {
    request = &RollbackMNPVersionRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "RollbackMNPVersion")
    
    
    return
}

func NewRollbackMNPVersionResponse() (response *RollbackMNPVersionResponse) {
    response = &RollbackMNPVersionResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// RollbackMNPVersion
// This API is used to roll back the released version of a mini program to a specified version.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMINIAPPID = "InvalidParameterValue.InvalidMiniAppId"
func (c *Client) RollbackMNPVersion(request *RollbackMNPVersionRequest) (response *RollbackMNPVersionResponse, err error) {
    return c.RollbackMNPVersionWithContext(context.Background(), request)
}

// RollbackMNPVersion
// This API is used to roll back the released version of a mini program to a specified version.
//
// error code that may be returned:
//  FAILEDOPERATION_PACKAGEALREADYEXPIRED = "FailedOperation.PackageAlreadyExpired"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_INVALIDMINIAPPID = "InvalidParameterValue.InvalidMiniAppId"
func (c *Client) RollbackMNPVersionWithContext(ctx context.Context, request *RollbackMNPVersionRequest) (response *RollbackMNPVersionResponse, err error) {
    if request == nil {
        request = NewRollbackMNPVersionRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "RollbackMNPVersion")
    
    if c.GetCredential() == nil {
        return nil, errors.New("RollbackMNPVersion require credential")
    }

    request.SetContext(ctx)
    
    response = NewRollbackMNPVersionResponse()
    err = c.Send(request, response)
    return
}

func NewUnbindMNPPaymentMerchantRequest() (request *UnbindMNPPaymentMerchantRequest) {
    request = &UnbindMNPPaymentMerchantRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "UnbindMNPPaymentMerchant")
    
    
    return
}

func NewUnbindMNPPaymentMerchantResponse() (response *UnbindMNPPaymentMerchantResponse) {
    response = &UnbindMNPPaymentMerchantResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// UnbindMNPPaymentMerchant
// This API is used to allow a mini program team to actively unbind the payment merchant.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  FAILEDOPERATION_PAYMENTRECORDNOTFOUND = "FailedOperation.PaymentRecordNotFound"
//  FAILEDOPERATION_PAYMENTVERSIONCHECKERROR = "FailedOperation.PaymentVersionCheckError"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) UnbindMNPPaymentMerchant(request *UnbindMNPPaymentMerchantRequest) (response *UnbindMNPPaymentMerchantResponse, err error) {
    return c.UnbindMNPPaymentMerchantWithContext(context.Background(), request)
}

// UnbindMNPPaymentMerchant
// This API is used to allow a mini program team to actively unbind the payment merchant.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  FAILEDOPERATION_PAYMENTRECORDNOTFOUND = "FailedOperation.PaymentRecordNotFound"
//  FAILEDOPERATION_PAYMENTVERSIONCHECKERROR = "FailedOperation.PaymentVersionCheckError"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
//  INVALIDPARAMETERVALUE_INVALIDTEAMID = "InvalidParameterValue.InvalidTeamId"
func (c *Client) UnbindMNPPaymentMerchantWithContext(ctx context.Context, request *UnbindMNPPaymentMerchantRequest) (response *UnbindMNPPaymentMerchantResponse, err error) {
    if request == nil {
        request = NewUnbindMNPPaymentMerchantRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "UnbindMNPPaymentMerchant")
    
    if c.GetCredential() == nil {
        return nil, errors.New("UnbindMNPPaymentMerchant require credential")
    }

    request.SetContext(ctx)
    
    response = NewUnbindMNPPaymentMerchantResponse()
    err = c.Send(request, response)
    return
}

func NewUnbindPaymentMerchantRequest() (request *UnbindPaymentMerchantRequest) {
    request = &UnbindPaymentMerchantRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("tcsas", APIVersion, "UnbindPaymentMerchant")
    
    
    return
}

func NewUnbindPaymentMerchantResponse() (response *UnbindPaymentMerchantResponse) {
    response = &UnbindPaymentMerchantResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// UnbindPaymentMerchant
// This API is used to allow the superapp to actively unbind the payment merchant.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  FAILEDOPERATION_PAYMENTRECORDNOTFOUND = "FailedOperation.PaymentRecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) UnbindPaymentMerchant(request *UnbindPaymentMerchantRequest) (response *UnbindPaymentMerchantResponse, err error) {
    return c.UnbindPaymentMerchantWithContext(context.Background(), request)
}

// UnbindPaymentMerchant
// This API is used to allow the superapp to actively unbind the payment merchant.
//
// error code that may be returned:
//  FAILEDOPERATION_MERCHANTPAYMENTFUNCTIONCLOSED = "FailedOperation.MerchantPaymentFunctionClosed"
//  FAILEDOPERATION_OPERATIONSTEAMNOMINIPROGRAMPERMISSION = "FailedOperation.OperationsTeamNoMiniProgramPermission"
//  FAILEDOPERATION_PAYMENTRECORDNOTBELONGTOAPPLICATION = "FailedOperation.PaymentRecordNotBelongToApplication"
//  FAILEDOPERATION_PAYMENTRECORDNOTFOUND = "FailedOperation.PaymentRecordNotFound"
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETER = "InvalidParameter"
func (c *Client) UnbindPaymentMerchantWithContext(ctx context.Context, request *UnbindPaymentMerchantRequest) (response *UnbindPaymentMerchantResponse, err error) {
    if request == nil {
        request = NewUnbindPaymentMerchantRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "tcsas", APIVersion, "UnbindPaymentMerchant")
    
    if c.GetCredential() == nil {
        return nil, errors.New("UnbindPaymentMerchant require credential")
    }

    request.SetContext(ctx)
    
    response = NewUnbindPaymentMerchantResponse()
    err = c.Send(request, response)
    return
}
