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 TypeMethodDescriptioncommitPlan(PostingPlan plan) longcreateAccount(AccountPrototype prototype) longgetAccountBalance(long id, String to_time) longgetAccountBalanceDiff(long id, String from_time, String to_time) getAccountByID(long id) hold(PostingPlanChange plan_change) rollbackPlan(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
-