Package dev.vality.fistful.withdrawal
Class ManagementSrv.Client
java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.fistful.withdrawal.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
Modifier and Type Method Description WithdrawalStatecreate(WithdrawalParams params, Map<String,Value> context)AdjustmentStatecreateAdjustment(String id, AdjustmentParams params)WithdrawalStateget(String id, EventRange range)Map<String,Value>getContext(String id)List<Event>getEvents(String id, EventRange range)QuotegetQuote(QuoteParams params)WithdrawalStaterecvCreate()AdjustmentStaterecvCreateAdjustment()WithdrawalStaterecvGet()Map<String,Value>recvGetContext()List<Event>recvGetEvents()QuoterecvGetQuote()voidsendCreate(WithdrawalParams params, Map<String,Value> context)voidsendCreateAdjustment(String id, AdjustmentParams params)voidsendGet(String id, EventRange range)voidsendGetContext(String id)voidsendGetEvents(String id, EventRange range)voidsendGetQuote(QuoteParams params)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
-
getQuote
public Quote getQuote(QuoteParams params) throws WalletNotFound, DestinationNotFound, DestinationUnauthorized, ForbiddenOperationCurrency, ForbiddenOperationAmount, InvalidOperationAmount, InconsistentWithdrawalCurrency, IdentityProvidersMismatch, ForbiddenWithdrawalMethod, org.apache.thrift.TException- Specified by:
getQuotein interfaceManagementSrv.Iface- Throws:
WalletNotFoundDestinationNotFoundDestinationUnauthorizedForbiddenOperationCurrencyForbiddenOperationAmountInvalidOperationAmountInconsistentWithdrawalCurrencyIdentityProvidersMismatchForbiddenWithdrawalMethodorg.apache.thrift.TException
-
sendGetQuote
- Throws:
org.apache.thrift.TException
-
recvGetQuote
public Quote recvGetQuote() throws WalletNotFound, DestinationNotFound, DestinationUnauthorized, ForbiddenOperationCurrency, ForbiddenOperationAmount, InvalidOperationAmount, InconsistentWithdrawalCurrency, IdentityProvidersMismatch, ForbiddenWithdrawalMethod, org.apache.thrift.TException -
create
public WithdrawalState create(WithdrawalParams params, Map<String,Value> context) throws WalletNotFound, DestinationNotFound, DestinationUnauthorized, ForbiddenOperationCurrency, ForbiddenOperationAmount, InvalidOperationAmount, InconsistentWithdrawalCurrency, NoDestinationResourceInfo, IdentityProvidersMismatch, WalletInaccessible, ForbiddenWithdrawalMethod, org.apache.thrift.TException- Specified by:
createin interfaceManagementSrv.Iface- Throws:
WalletNotFoundDestinationNotFoundDestinationUnauthorizedForbiddenOperationCurrencyForbiddenOperationAmountInvalidOperationAmountInconsistentWithdrawalCurrencyNoDestinationResourceInfoIdentityProvidersMismatchWalletInaccessibleForbiddenWithdrawalMethodorg.apache.thrift.TException
-
sendCreate
public void sendCreate(WithdrawalParams params, Map<String,Value> context) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvCreate
public WithdrawalState recvCreate() throws WalletNotFound, DestinationNotFound, DestinationUnauthorized, ForbiddenOperationCurrency, ForbiddenOperationAmount, InvalidOperationAmount, InconsistentWithdrawalCurrency, NoDestinationResourceInfo, IdentityProvidersMismatch, WalletInaccessible, ForbiddenWithdrawalMethod, org.apache.thrift.TException -
get
public WithdrawalState get(String id, EventRange range) throws WithdrawalNotFound, org.apache.thrift.TException- Specified by:
getin interfaceManagementSrv.Iface- Throws:
WithdrawalNotFoundorg.apache.thrift.TException
-
sendGet
- Throws:
org.apache.thrift.TException
-
recvGet
- Throws:
WithdrawalNotFoundorg.apache.thrift.TException
-
getContext
public Map<String,Value> getContext(String id) throws WithdrawalNotFound, org.apache.thrift.TException- Specified by:
getContextin interfaceManagementSrv.Iface- Throws:
WithdrawalNotFoundorg.apache.thrift.TException
-
sendGetContext
- Throws:
org.apache.thrift.TException
-
recvGetContext
- Throws:
WithdrawalNotFoundorg.apache.thrift.TException
-
getEvents
public List<Event> getEvents(String id, EventRange range) throws WithdrawalNotFound, org.apache.thrift.TException- Specified by:
getEventsin interfaceManagementSrv.Iface- Throws:
WithdrawalNotFoundorg.apache.thrift.TException
-
sendGetEvents
- Throws:
org.apache.thrift.TException
-
recvGetEvents
- Throws:
WithdrawalNotFoundorg.apache.thrift.TException
-
createAdjustment
public AdjustmentState createAdjustment(String id, AdjustmentParams params) throws WithdrawalNotFound, InvalidWithdrawalStatus, ForbiddenStatusChange, AlreadyHasStatus, AnotherAdjustmentInProgress, org.apache.thrift.TException- Specified by:
createAdjustmentin interfaceManagementSrv.Iface- Throws:
WithdrawalNotFoundInvalidWithdrawalStatusForbiddenStatusChangeAlreadyHasStatusAnotherAdjustmentInProgressorg.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 WithdrawalNotFound, InvalidWithdrawalStatus, ForbiddenStatusChange, AlreadyHasStatus, AnotherAdjustmentInProgress, org.apache.thrift.TException- Throws:
WithdrawalNotFoundInvalidWithdrawalStatusForbiddenStatusChangeAlreadyHasStatusAnotherAdjustmentInProgressorg.apache.thrift.TException
-