summaryrefslogtreecommitdiff
path: root/c2ec/provider-client.go
blob: 023586df2e8268c5fb2c24789f3807c2bf769e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package main

type ProviderTransaction interface {
	AllowWithdrawal() bool
	AbortWithdrawal() bool
	Bytes() []byte
}

type ProviderClient interface {
	SetupClient(provider *Provider) error
	GetTransaction(transactionId string) (ProviderTransaction, error)
	Refund(transactionId string) error
}