-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmicro_deposit.go
32 lines (27 loc) · 968 Bytes
/
micro_deposit.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
package dwolla
const (
// MicroDepositStatusPending is when the micro deposit is pending
// processing
MicroDepositStatusPending MicroDepositStatus = "pending"
// MicroDepositStatusProcessed is when the micro deposit is processed
MicroDepositStatusProcessed MicroDepositStatus = "processed"
)
// MicroDeposit is a dwolla micro deposit
type MicroDeposit struct {
Resource
Created string `json:"created"`
Status MicroDepositStatus `json:"status"`
Failure MicroDepositFailure `json:"failure"`
}
// MicroDepositFailure is detail about a micro deposit failure
type MicroDepositFailure struct {
Code string `json:"code"`
Description string `json:"description"`
}
// MicroDepositRequest is a micro deposit verification request
type MicroDepositRequest struct {
Amount1 Amount `json:"amount1,omitempty"`
Amount2 Amount `json:"amount2,omitempty"`
}
// MicroDepositStatus is the status of the micro deposit
type MicroDepositStatus string