import { File } from '../mslib/File'
import { OpResult } from '../mslib/OpResult'

export namespace DaybillDeclare {
        export namespace $parameters {
            export interface JsonParam{
                startTime?: string
                endTime?: string
                merchantLoginNo?: string
                merchantLoginAccount?: string
                queryMerchantLogin?: string
                queryDetail?: string
                page?: string
                size?: string
                thirdPartyPayConfig?: ThirdPartyPayConfig
                sign?: string
            }


            export interface ThirdPartyPayConfig{
                code?: string
                merNo?: string
                merKey?: string
                otherConfig?: OtherConfig
            }


            export interface OtherConfig{
            }


        }
        export namespace $results {
            export interface Result{
                responseCode?: string
                responseMsg?: string
                resultCode?: string
                resultMsg?: string
                tradeCount?: number
                settleAmount?: number
                allMerchantTradeFee?: number
                realIncomeAmount?: number
                wxPayRealIncomeAmount?: number
                unionPayRealIncomeAmount?: number
                aliPayRealIncomeAmount?: number
                totalPage?: number
                details?: Array<DetailParam>
            }


            export interface DetailParam{
                payWayCode?: string
                payTypeCode?: string
                orderType?: string
                orderAmount?: number
                realIncomeAmount?: number
                outTradeNo?: string
                orderId?: string
                outChannelNo?: string
                merchantTradeFee?: number
                orderTime?: string
                paySuccessTime?: string
                systemCode?: string
                merchantLoginId?: string
                remark?: string
                attach?: string
            }


        }



    export type Parameters = $parameters.JsonParam

    export type Result = $results.Result
}

export type Parameters = DaybillDeclare.Parameters
export type Result = DaybillDeclare.Result
