import { AlipayOpenAppQrcodeCreateResponse, CreateQrcodeParams } from './base/qrcode/client'; import { AlipaySystemOauthTokenResponse, GetTokenParams, RefreshTokenParams, AlipaySystemOauthAppTokenResponse, GetAppTokenParams, RefreshAppTokenParams } from './base/oauth/client'; import { CertifyInitParams, AlipayUserCertifyOpenInitializeResponse, AlipayUserCertifyOpenCertifyResponse, AlipayUserCertifyOpenQueryResponse, CertifyParams, CertifyQueryParams } from './member/identification/client'; import { AlipaySecurityRiskContentDetectResponse, ContentDetectParams } from './security/textRisk/client'; import { AlipayOpenAppMiniTemplatemessageSendResponse, TemplateMessageParams } from './marketing/templateMessage/client'; import { CreateVoucherParams, AlipayMarketingExchangevouherTemplateCreateResponse, AlipayMarketingVoucherSendResponse, SendVoucherParams, AlipayMarktingExchangevoucherUseResponse, UseVoucherParams, AlipayMarketingVoucherQueryResponse, VoucherQueryParams } from './marketing/exchangevoucher/client'; import { SendBatchSmsParams, SendSmsParams, SendSmsResponse, SendBatchSmsResponse } from './aliyun/shortMessage/client'; import { AlipayFundB2CRedPacketQueryResponse, AlipayFundB2CRedPacketResponse, B2CRedpacketParams, B2CRedPacketQueryParams } from './fund/b2cRedpacket/client'; import { TransferAccountParams, AlipayFundTransAccountResponse, AlipayFundTransAccountQueryResponse, TransAccountQueryParams } from './fund/transferAccount/client'; import { TransferBankcardParams, AlipayFundTransBankcardResponse, AlipayFundTransBankcardQueryResponse, TransBankcardQueryParams } from './fund/transferBankcard/client'; import { FaceToFacePayParams, AlipayTradePayResponse } from './payment/faceToFace/client'; import { AlipayHuabeiCreateResponse, HuabeiCreateParams } from './payment/huabei/client'; import { TradeRefundParams, TradeCreateParams, AlipayTradeCreateResponse, AlipayTradeQueryResponse, AlipayTradeRefundResponse, AlipayTradeCloseResponse, AlipayTradeCancelResponse, TradeOperateParams } from './payment/common/client'; import { AlipayInstantDeliveryLogisticsCompanyResponse, LogisticsCompanyQueryParams } from './delivery/company/client'; import { AlipayInstantDeliveryInvoiceQueryResponse, AlipayInstantDeliveryInvoiceCreateResponse, InvoiceQueryParams, InvoiceCreateParams } from './delivery/invoice/client'; import { AlipayInstantDeliveryOrderPreCreateResponse, OrderPreCreateParams, AlipayInstantDeliveryOrderCreateResponse, OrderCreateParams, AlipayInstantDeliveryOrderCancelResponse, OrderCancelParams, AlipayInstantDeliveryOrderPreconsultResponse, OrderPreconsultParams, OrderQueryParams, AlipayInstantDeliveryOrderQueryResponse } from './delivery/order/client'; import { AlipayMiniIndividualCerifyResponse, IndividualCeritifyParams } from './mini/individual/client'; import { AlipayMiniQRCodeBindResponse, BindQRCodeParams, AlipayMiniQRCodeUnBindResponse, UnBindQRCodeParams } from './mini/qrcode/client'; import { AlipayMiniVersionUploadResponse, AlipayMiniApplyAuditResponse, AlipayMiniCancelAuditResponse, UploadParams, ApplyAuditParams, CancelAuditParams, OnlineParams, AlipayMiniVersionOnlineResponse, OfflineParams, AlipayMiniVersionOfflineResponse, AlipayMiniVersionRollbackResponse, RollbackParams, AlipayMiniVersionGrayOnlineResponse, GrayOnlineParams, AlipayMiniVersionGrayCancelResponse, CancelGrayParams, AlipayMiniVersionDetailResponse, VersionDetailParams, AlipayMiniVersionBuildQueryResponse, QueryBuildParams, AlipayMiniVersionCancelResponse, CancelVersionParams, DeleteVersionParams, AlipayMiniVersionDeleteResponse, AlipayMiniVersionCreateExpResponse, CreateExpParams, AlipayMiniVersionCancelExpResponse, CancelExpParams } from './mini/version/client'; import { AlipayCreateMemberResponse, CreateDeveloperParams, CreateExperiencerParams } from './mini/member/client'; import { AlipayMerchantItemCreateResponse, AlipayMerchantItemDeleteResponse, AlipayMerchantItemFileUploadResponse, AlipayMerchantItemModifyResponse, AlipayMerchantItemQueryResponse, BatchQueryItemParams, CreateItemParams, DeleteItemParams, ModifyItemParams, QueryItemParams, UploadItemFileParams } from './merchant/item/client'; import { AlipayMerchantOrderBatchQueryResponse, AlipayMerchantOrderSyncResponse, OrderSyncParams, OrderBatchQueryParams, AlipayMerchantOrderQueryResponse } from './merchant/order/client'; export interface ExportApi { base: ExportBase; fund: ExportFund; member: ExportMember; security: ExportSecurity; util: ExportUtil; marketing: ExportMarketing; payment: ExportPayment; aliyun: ExportAliyun; } export interface ExportBase { oauth: ExportBaseOAuth; qrcode: ExportBaseQrcode; } export interface ExportBaseOAuth { getToken(params: GetTokenParams): Promise; refreshToken(params: RefreshTokenParams): Promise; getAppToken(params: GetAppTokenParams): Promise; refreshAppToken(params: RefreshAppTokenParams): Promise; } export interface ExportBaseQrcode { create(params: CreateQrcodeParams): Promise; } export interface ExportFund { transferAccount: ExportTransferAccount; transferBankcard: ExportTransferBankcard; b2cRedpacket: ExportB2CRedpacket; } export interface ExportTransferAccount { transfer(params: TransferAccountParams): Promise; query(params: TransAccountQueryParams): Promise; } export interface ExportTransferBankcard { transfer(params: TransferBankcardParams): Promise; query(params: TransBankcardQueryParams): Promise; } export interface ExportB2CRedpacket { send(params: B2CRedpacketParams): Promise; query(params: B2CRedPacketQueryParams): Promise; } export interface ExportMember { identification: ExportIdentification; } export interface ExportIdentification { init(params: CertifyInitParams): Promise; certify(params: CertifyParams): Promise; query(params: CertifyQueryParams): Promise; } export interface ExportSecurity { textRisk: ExportTextRisk; } export interface ExportTextRisk { detect(params: ContentDetectParams): Promise; } export interface ExportUtil { generic: ExportGeneric; } export interface ExportGeneric { execute(method: string, params: { [key: string]: any; }): Promise<{ [key: string]: any; }>; } export interface ExportMarketing { templateMessage: ExportTemplateMessage; exchangeVoucher: ExportExchangeVoucher; } export interface ExportTemplateMessage { send(params: TemplateMessageParams): Promise; } export interface ExportExchangeVoucher { create(params: CreateVoucherParams): Promise; send(params: SendVoucherParams): Promise; use(params: UseVoucherParams): Promise; query(params: VoucherQueryParams): Promise; } export interface ExportPayment { common: ExportCommon; huabei: ExportHuabei; faceToFace: ExportF2F; } export interface ExportCommon { create(params: TradeCreateParams): Promise; query(params: TradeOperateParams): Promise; refund(params: TradeRefundParams): Promise; close(params: TradeOperateParams): Promise; cancel(params: TradeOperateParams): Promise; } export interface ExportHuabei { create(params: HuabeiCreateParams): Promise; } export interface ExportF2F { pay(params: FaceToFacePayParams): Promise; } export interface ExportAliyun { shortMessage: ExportSms; } export interface ExportSms { send(params: SendSmsParams): Promise; batchSend(params: SendBatchSmsParams): Promise; } export interface ExportDelivery { order: ExportOrder; invoice: ExportInvoice; company: ExportCompany; } export interface ExportOrder { precreate(params: OrderPreCreateParams): Promise; create(params: OrderCreateParams): Promise; cancel(params: OrderCancelParams): Promise; preconsult(params: OrderPreconsultParams): Promise; query(params: OrderQueryParams): Promise; } export interface ExportInvoice { create(params: InvoiceCreateParams): Promise; query(params: InvoiceQueryParams): Promise; } export interface ExportCompany { query(params?: LogisticsCompanyQueryParams): Promise; } export interface ExportMini { individual: ExportIndividual; version: ExportVersion; qrcode: ExportQRCode; member: ExportMiniMember; } export interface ExportMiniMember { createDeveloper(params: CreateDeveloperParams): Promise; createExperiencer(params: CreateExperiencerParams): Promise; } export interface ExportIndividual { certify(params: IndividualCeritifyParams): Promise; } export interface ExportQRCode { bind(params: BindQRCodeParams): Promise; unbind(params: UnBindQRCodeParams): Promise; } export interface ExportVersion { upload(params: UploadParams): Promise; applyAudit(params: ApplyAuditParams): Promise; cancelAudit(params: CancelAuditParams): Promise; online(params: OnlineParams): Promise; offline(params: OfflineParams): Promise; rollback(params: RollbackParams): Promise; grayOnline(params: GrayOnlineParams): Promise; grayCancel(params: CancelGrayParams): Promise; detail(params: VersionDetailParams): Promise; queryBuild(params: QueryBuildParams): Promise; cancel(params: CancelVersionParams): Promise; delete(params: DeleteVersionParams): Promise; createExperience(params: CreateExpParams): Promise; cancelExperience(params: CancelExpParams): Promise; } export interface ExportMerchant { item: ExportMerchantItem; order: ExportMerchantOrder; } export interface ExportMerchantItem { query(params: QueryItemParams): Promise; batchquery(params: BatchQueryItemParams): Promise; delete(params: DeleteItemParams): Promise; uploadFile(params: UploadItemFileParams): Promise; create(params: CreateItemParams): Promise; modify(params: ModifyItemParams): Promise; } export interface ExportMerchantOrder { sync(params: OrderSyncParams): Promise; batchquery(params: OrderBatchQueryParams): Promise; query(params: OrderQueryParams): Promise; }