123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- /// <reference types="node" />
- interface Iamount {
- total: number;
- currency?: string;
- }
- interface Idetail {
- cost_price?: number;
- invoice_id?: string;
- goods_detail?: IgoodsDetail[];
- }
- interface IgoodsDetail {
- merchant_goods_id: string;
- wechatpay_goods_id?: string;
- goods_name?: string;
- quantity: number;
- unit_price: number;
- }
- interface Ipayer {
- openid: string;
- }
- interface IsceneInfoH5 {
- payer_client_ip: string;
- device_id?: string;
- store_info?: IstoreInfo;
- h5_info: Ih5Info;
- }
- interface IsceneInfoNative {
- payer_client_ip: string;
- device_id?: string;
- store_info?: IstoreInfo;
- }
- interface IstoreInfo {
- id: string;
- name?: string;
- area_code?: string;
- address?: string;
- }
- interface Ih5Info {
- type: string;
- app_name: string;
- app_url?: string;
- bundle_id?: string;
- package_name?: string;
- }
- export interface Ioptions {
- userAgent?: string;
- authType?: string;
- key?: string;
- serial_no?: string;
- }
- export interface Ipay {
- appid: string;
- mchid: string;
- serial_no?: string;
- publicKey: Buffer;
- privateKey: Buffer;
- authType?: string;
- userAgent?: string;
- key?: string;
- }
- export interface Ih5 {
- description: string;
- out_trade_no: string;
- time_expire?: string;
- attach?: string;
- notify_url: string;
- goods_tag?: string;
- amount: Iamount;
- detail?: Idetail;
- scene_info: IsceneInfoH5;
- }
- export interface Inative {
- description: string;
- out_trade_no: string;
- time_expire?: string;
- attach?: string;
- notify_url: string;
- goods_tag?: string;
- amount: Iamount;
- detail?: Idetail;
- scene_info?: IsceneInfoNative;
- }
- export interface Ijsapi {
- description: string;
- out_trade_no: string;
- time_expire?: string;
- attach?: string;
- notify_url: string;
- goods_tag?: string;
- amount: Iamount;
- payer: Ipayer;
- detail?: Idetail;
- scene_info?: IsceneInfoNative;
- }
- export interface Iapp {
- description: string;
- out_trade_no: string;
- time_expire?: string;
- attach?: string;
- notify_url: string;
- goods_tag?: string;
- amount: Iamount;
- detail?: Idetail;
- scene_info?: IsceneInfoNative;
- }
- export interface Iquery1 {
- transaction_id: string;
- out_trade_no?: string;
- }
- export interface Iquery2 {
- transaction_id?: string;
- out_trade_no: string;
- }
- export interface Itradebill {
- bill_date: string;
- sub_mchid?: string;
- bill_type: string;
- tar_type?: string;
- }
- export interface Ifundflowbill {
- bill_date: string;
- account_type: string;
- tar_type?: string;
- }
- export interface Irefunds {
- out_refund_no: string;
- reason?: string;
- notify_url?: string;
- funds_account?: string;
- amount: IRamount;
- goods_detail?: IRgoodsDetail[];
- }
- export interface Irefunds1 extends Irefunds {
- transaction_id: string;
- out_trade_no?: string;
- }
- export interface Irefunds2 extends Irefunds {
- transaction_id?: string;
- out_trade_no: string;
- }
- interface IRamount {
- total: number;
- currency: string;
- refund: number;
- }
- interface IRgoodsDetail {
- merchant_goods_id: string;
- wechatpay_goods_id?: string;
- goods_name?: string;
- refund_quantity: number;
- unit_price: number;
- refund_amount: number;
- }
- /**
- * 证书信息
- */
- export interface ICertificates {
- effective_time: string;
- expire_time: string;
- serial_no: string;
- publicKey?: string;
- encrypt_certificate: {
- algorithm: string;
- associated_data: string;
- ciphertext: string;
- nonce: string;
- };
- }
- export {};
|