Package dev.vality.fistful.deposit
Class ManagementSrv.Client
java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.fistful.deposit.ManagementSrv.Client
- All Implemented Interfaces:
ManagementSrv.Iface
- Enclosing class:
- ManagementSrv
public static class ManagementSrv.Client extends org.apache.thrift.TServiceClient implements ManagementSrv.Iface
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManagementSrv.Client.Factory -
Field Summary
Fields inherited from class org.apache.thrift.TServiceClient
iprot_, oprot_, seqid_ -
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.thrift.TServiceClient
getInputProtocol, getOutputProtocol, receiveBase, sendBase, sendBaseOneway
-
Constructor Details
-
Client
public Client(org.apache.thrift.protocol.TProtocol prot) -
Client
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)
-
-
Method Details
-
create
public DepositState create(DepositParams params, Map<String,Value> context) throws WalletNotFound, SourceNotFound, SourceUnauthorized, InvalidOperationAmount, ForbiddenOperationCurrency, InconsistentDepositCurrency, org.apache.thrift.TException- Specified by:
createin interfaceManagementSrv.Iface- Throws:
WalletNotFoundSourceNotFoundSourceUnauthorizedInvalidOperationAmountForbiddenOperationCurrencyInconsistentDepositCurrencyorg.apache.thrift.TException
-
sendCreate
public void sendCreate(DepositParams params, Map<String,Value> context) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvCreate
public DepositState recvCreate() throws WalletNotFound, SourceNotFound, SourceUnauthorized, InvalidOperationAmount, ForbiddenOperationCurrency, InconsistentDepositCurrency, org.apache.thrift.TException- Throws:
WalletNotFoundSourceNotFoundSourceUnauthorizedInvalidOperationAmountForbiddenOperationCurrencyInconsistentDepositCurrencyorg.apache.thrift.TException
-
get
public DepositState get(String id, EventRange range) throws DepositNotFound, org.apache.thrift.TException- Specified by:
getin interfaceManagementSrv.Iface- Throws:
DepositNotFoundorg.apache.thrift.TException
-
sendGet
- Throws:
org.apache.thrift.TException
-
recvGet
- Throws:
DepositNotFoundorg.apache.thrift.TException
-
getContext
public Map<String,Value> getContext(String id) throws DepositNotFound, org.apache.thrift.TException- Specified by:
getContextin interfaceManagementSrv.Iface- Throws:
DepositNotFoundorg.apache.thrift.TException
-
sendGetContext
- Throws:
org.apache.thrift.TException
-
recvGetContext
- Throws:
DepositNotFoundorg.apache.thrift.TException
-
getEvents
public List<Event> getEvents(String id, EventRange range) throws DepositNotFound, org.apache.thrift.TException- Specified by:
getEventsin interfaceManagementSrv.Iface- Throws:
DepositNotFoundorg.apache.thrift.TException
-
sendGetEvents
- Throws:
org.apache.thrift.TException
-
recvGetEvents
- Throws:
DepositNotFoundorg.apache.thrift.TException
-
createAdjustment
public AdjustmentState createAdjustment(String id, AdjustmentParams params) throws DepositNotFound, InvalidDepositStatus, ForbiddenStatusChange, AlreadyHasStatus, AnotherAdjustmentInProgress, org.apache.thrift.TException- Specified by:
createAdjustmentin interfaceManagementSrv.Iface- Throws:
DepositNotFoundInvalidDepositStatusForbiddenStatusChangeAlreadyHasStatusAnotherAdjustmentInProgressorg.apache.thrift.TException
-
sendCreateAdjustment
public void sendCreateAdjustment(String id, AdjustmentParams params) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvCreateAdjustment
public AdjustmentState recvCreateAdjustment() throws DepositNotFound, InvalidDepositStatus, ForbiddenStatusChange, AlreadyHasStatus, AnotherAdjustmentInProgress, org.apache.thrift.TException- Throws:
DepositNotFoundInvalidDepositStatusForbiddenStatusChangeAlreadyHasStatusAnotherAdjustmentInProgressorg.apache.thrift.TException
-
createRevert
public RevertState createRevert(String id, RevertParams params) throws DepositNotFound, InvalidDepositStatus, InconsistentRevertCurrency, InsufficientDepositAmount, InvalidOperationAmount, org.apache.thrift.TException- Specified by:
createRevertin interfaceManagementSrv.Iface- Throws:
DepositNotFoundInvalidDepositStatusInconsistentRevertCurrencyInsufficientDepositAmountInvalidOperationAmountorg.apache.thrift.TException
-
sendCreateRevert
- Throws:
org.apache.thrift.TException
-
recvCreateRevert
public RevertState recvCreateRevert() throws DepositNotFound, InvalidDepositStatus, InconsistentRevertCurrency, InsufficientDepositAmount, InvalidOperationAmount, org.apache.thrift.TException- Throws:
DepositNotFoundInvalidDepositStatusInconsistentRevertCurrencyInsufficientDepositAmountInvalidOperationAmountorg.apache.thrift.TException
-
createRevertAdjustment
public AdjustmentState createRevertAdjustment(String id, String revert_id, AdjustmentParams params) throws DepositNotFound, RevertNotFound, InvalidRevertStatus, ForbiddenRevertStatusChange, RevertAlreadyHasStatus, AnotherAdjustmentInProgress, org.apache.thrift.TException- Specified by:
createRevertAdjustmentin interfaceManagementSrv.Iface- Throws:
DepositNotFoundRevertNotFoundInvalidRevertStatusForbiddenRevertStatusChangeRevertAlreadyHasStatusAnotherAdjustmentInProgressorg.apache.thrift.TException
-
sendCreateRevertAdjustment
public void sendCreateRevertAdjustment(String id, String revert_id, AdjustmentParams params) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvCreateRevertAdjustment
public AdjustmentState recvCreateRevertAdjustment() throws DepositNotFound, RevertNotFound, InvalidRevertStatus, ForbiddenRevertStatusChange, RevertAlreadyHasStatus, AnotherAdjustmentInProgress, org.apache.thrift.TException- Throws:
DepositNotFoundRevertNotFoundInvalidRevertStatusForbiddenRevertStatusChangeRevertAlreadyHasStatusAnotherAdjustmentInProgressorg.apache.thrift.TException
-