Skip to content

Commit

Permalink
Allow to use named args for account metods in hid.Hydra
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed May 21, 2019
1 parent 4939dc1 commit ea8f197
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/org/camunda/latera/bss/connectors/hid/hydra/Account.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,35 @@ trait Account {
return getSubjectAccount(customerId, accountTypeId)
}

LinkedHashMap getSubjectAccountBy(def subjectId, LinkedHashMap input) {
LinkedHashMap getSubjectAccountBy(LinkedHashMap input, def subjectId) {
return getAccountBy(input + [subjectId: subjectId])
}

LinkedHashMap getSubjectAccountBy(def subjectId, LinkedHashMap input) {
return getSubjectAccountBy(input, subjectId)
}

LinkedHashMap getCompanyAccountBy(LinkedHashMap input, def companyId) {
return getSubjectAccountBy(companyId, input)
}

LinkedHashMap getCompanyAccountBy(def companyId, LinkedHashMap input) {
return getSubjectAccountBy(companyId, input)
}

LinkedHashMap getPersonAccount(def personId, LinkedHashMap input) {
LinkedHashMap getPersonAccountBy(LinkedHashMap input, def personId) {
return getSubjectAccountBy(personId, input)
}

LinkedHashMap getCustomerAccount(def customerId, LinkedHashMap input) {
LinkedHashMap getPersonAccountBy(def personId, LinkedHashMap input) {
return getSubjectAccountBy(personId, input)
}

LinkedHashMap getCustomerAccountBy(LinkedHashMap input, def customerId) {
return getSubjectAccountBy(customerId, input)
}

LinkedHashMap getCustomerAccountBy(def customerId, LinkedHashMap input) {
return getSubjectAccountBy(customerId, input)
}

Expand Down

0 comments on commit ea8f197

Please sign in to comment.