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 }