import Vnmf from '../../index' declare module '../../index' { namespace chooseInvoiceTitle { interface Option { /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: SuccessCallbackResult) => void } interface SuccessCallbackResult extends VnmfGeneral.CallbackResult { /** Bank account */ bankAccount: string /** Bank name */ bankName: string /** Chile */ companyAddress: string /** Cannot initialise Evolution's mail component. */ errMsg: string /** Heading tax number */ taxNumber: string /** Cell phone number. */ telephone: string /** Header Name */ title: string /** Header type */ type: keyof InvoiceType } /** Header type */ interface InvoiceType { 0: 'Units' 1: 'Personal' } } namespace chooseInvoice { interface Option { /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: SuccessCallbackResult) => void } interface SuccessCallbackResult extends VnmfGeneral.CallbackResult { /** Could not close temporary folder: %s,Format One JSON String,Include three fields: card_id:The one with the selected invoice card. cardId,encrypt_code:Encryption of selected invoice coupons code,The claimant can do it. cardId and encryptCode Information on receipt of reimbursement invoices,app_id: The invoicer's. appId。 */ invoiceInfo: string /** Call Results */ errMsg: string } } interface VnmfStatic { /** Select user 's invoice header。The current applet must be connected to a public number.,And this public number is done.[Could not close temporary folder: %s](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1496554031_RD4xe)It's... it's...,To call. chooseInvoiceTitle。 * @supported weapp * @example * ```tsx * Vnmf.chooseInvoiceTitle({ * success: function(res) {} * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/invoice/wx.chooseInvoiceTitle.html */ chooseInvoiceTitle(option?: chooseInvoiceTitle.Option): Promise /** Select User 's Existing Invoices。 * * **Through cardId and encryptCode Information on receipt of reimbursement invoices** * For your information, please.[Micromail Electronic Invoice Documents](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=21517918939oae3U)Medium,「Query information on reimbursement invoices」Part。 * of which `access_token` %1 of the total number %2 %[auth.getAccessToken](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html)Document * @supported weapp * @example ```tsx * Vnmf.chooseInvoice({ * success: function (res) {} * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/invoice/wx.chooseInvoice.html */ chooseInvoice(option?: chooseInvoice.Option): Promise } }