Package dev.vality.damsel.accounter
Interface AccounterSrv.Iface
- All Known Implementing Classes:
AccounterSrv.Client
- Enclosing class:
- AccounterSrv
public static interface AccounterSrv.Iface
-
Method Summary
Modifier and Type Method Description PostingPlanLogcommitPlan(PostingPlan plan)longcreateAccount(AccountPrototype prototype)longgetAccountBalance(long id, String to_time)longgetAccountBalanceDiff(long id, String from_time, String to_time)AccountgetAccountByID(long id)PostingPlangetPlan(String id)PostingPlanLoghold(PostingPlanChange plan_change)PostingPlanLogrollbackPlan(PostingPlan plan)
-
Method Details
-
hold
PostingPlanLog hold(PostingPlanChange plan_change) throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
commitPlan
PostingPlanLog commitPlan(PostingPlan plan) throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
rollbackPlan
PostingPlanLog rollbackPlan(PostingPlan plan) throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
getPlan
- Throws:
PlanNotFoundorg.apache.thrift.TException
-
getAccountByID
- Throws:
AccountNotFoundorg.apache.thrift.TException
-
createAccount
- Throws:
org.apache.thrift.TException
-
getAccountBalance
long getAccountBalance(long id, String to_time) throws AccountNotFound, org.apache.thrift.TException- Throws:
AccountNotFoundorg.apache.thrift.TException
-
getAccountBalanceDiff
long getAccountBalanceDiff(long id, String from_time, String to_time) throws AccountNotFound, org.apache.thrift.TException- Throws:
AccountNotFoundorg.apache.thrift.TException
-