Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package afrikpay |
||
2 | |||
3 | // Mode is used to determine the payment mode |
||
4 | type Mode string |
||
5 | |||
6 | const ( |
||
7 | // ModeCash payment from agent partner account |
||
8 | ModeCash = Mode("cash") |
||
9 | // ModeMoney send payment request |
||
10 | ModeMoney = Mode("money") |
||
11 | // ModeAccount make payment operation from afrikpay client |
||
12 | ModeAccount = Mode("account") |
||
13 | ) |
||
14 | |||
15 | // String converts the Mode to a string |
||
16 | func (mode Mode) String() string { |
||
17 | return string(mode) |
||
18 | } |
||
19 |