forked from bpancost/sila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
transactions.go
39 lines (37 loc) · 1.57 KB
/
transactions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package sila
import "github.com/kappapay/silaclient/domain"
type IssueSila interface {
SetRef(ref string) IssueSila
SetAmountFromAccount(amount int64, accountName string) IssueSila
SetDescriptor(descriptor string) IssueSila
SetBusinessUuid(businessUuid string) IssueSila
SetProcessingType(processingType string) IssueSila
SetTransactionIdempotencyId(id string) IssueSila
Do(userWalletPrivateKey string) (domain.IssueSilaResponse, error)
}
type TransferSila interface {
SetRef(ref string) TransferSila
SetAmountAndUser(amount int64, destinationHandle string) TransferSila
SetDestinationWallet(destinationWalletName string) TransferSila
SetDestinationAddress(destinationWalletAddress string) TransferSila
SetDescriptor(descriptor string) TransferSila
SetTransactionIdempotencyId(id string) TransferSila
Do(userWalletPrivateKey string) (domain.TransferSilaResponse, error)
}
type RedeemSila interface {
SetRef(ref string) RedeemSila
SetAmountToAccount(amount int64, accountName string) RedeemSila
SetDescriptor(descriptor string) RedeemSila
SetBusinessUuid(businessUuid string) RedeemSila
SetProcessingType(processingType string) RedeemSila
SetTransactionIdempotencyId(id string) RedeemSila
Do(userWalletPrivateKey string) (domain.RedeemSilaResponse, error)
}
type GetTransactions interface {
SetSearchFilters(searchFilters domain.TransactionSearchFilters) GetTransactions
Do(userWalletPrivateKey string) (domain.GetTransactionsResponse, error)
}
type CancelTransactions interface {
SetRef(ref string) CancelTransactions
Do(userWalletPrivateKey string) (domain.SuccessResponse, error)
}