MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / ToBalanceMonitor

Method ToBalanceMonitor

api/model/model.go:221–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219}
220
221func (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
230func (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}

Callers 2

CreateBalanceMonitorMethod · 0.95
TestToBalanceMonitorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestToBalanceMonitorFunction · 0.76