()
| 219 | } |
| 220 | |
| 221 | func (b *CreateBalanceMonitor) ToBalanceMonitor() model.BalanceMonitor { |
| 222 | return model.BalanceMonitor{BalanceID: b.BalanceId, Condition: model.AlertCondition{ |
| 223 | Field: b.Condition.Field, |
| 224 | Operator: b.Condition.Operator, |
| 225 | Value: b.Condition.Value, |
| 226 | Precision: b.Condition.Precision, |
| 227 | }, CallBackURL: b.CallBackURL} |
| 228 | } |
| 229 | |
| 230 | func (a *CreateAccount) ToAccount() model.Account { |
| 231 | return model.Account{BalanceID: a.BalanceId, LedgerID: a.LedgerId, IdentityID: a.IdentityId, Currency: a.Currency, Number: a.Number, BankName: a.BankName, MetaData: a.MetaData} |
no outgoing calls