summaryrefslogtreecommitdiff
path: root/c2ec/utils.go
blob: f85569a9ba15bc869babe0763aa2a6f7653ca80f (plain)
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
package main

// https://docs.taler.net/core/api-common.html#hash-codes
type WithdrawalIdentifier string

// https://docs.taler.net/core/api-common.html#cryptographic-primitives
type EddsaPublicKey string

// https://docs.taler.net/core/api-common.html#hash-codes
type HashCode string

// https://docs.taler.net/core/api-common.html#hash-codes
type ShortHashCode string

// https://docs.taler.net/core/api-common.html#timestamps
type Timestamp struct {
	Ts int `json:"t_s"`
}

// https://docs.taler.net/core/api-common.html#wadid
type WadId [6]uint32

// according to https://docs.taler.net/core/api-bank-integration.html#tsref-type-BankWithdrawalOperationStatus
type WithdrawalOperationStatus string

const (
	PENDING   WithdrawalOperationStatus = "pending"
	SELECTED  WithdrawalOperationStatus = "selected"
	ABORTED   WithdrawalOperationStatus = "aborted"
	CONFIRMED WithdrawalOperationStatus = "confirmed"
)