import Payment from '../payment' ; import ChannelId from '../ChannelId' ; export default interface IPaymentsDatabase { save ( token , payment ) : Promise < void > ; firstMaximum ( channelId ) : Promise < Payment | null > ; findByToken ( token ) : Promise < Payment | null > ; }