Package dev.vality.fistful.p2p_transfer
Class ManagementSrv.Client
java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.fistful.p2p_transfer.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 P2PTransferStatecreate(P2PTransferParams params, Map<String,Value> context)AdjustmentStatecreateAdjustment(String id, AdjustmentParams params)P2PTransferStateget(String id, EventRange range)Map<String,Value>getContext(String id)List<Event>getEvents(String id, EventRange range)QuotegetQuote(QuoteParams params)P2PTransferStaterecvCreate()AdjustmentStaterecvCreateAdjustment()P2PTransferStaterecvGet()Map<String,Value>recvGetContext()List<Event>recvGetEvents()QuoterecvGetQuote()voidsendCreate(P2PTransferParams 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 IdentityNotFound, ForbiddenOperationCurrency, ForbiddenOperationAmount, OperationNotPermitted, NoResourceInfo, org.apache.thrift.TException- Specified by:
getQuotein interfaceManagementSrv.Iface- Throws:
IdentityNotFoundForbiddenOperationCurrencyForbiddenOperationAmountOperationNotPermittedNoResourceInfoorg.apache.thrift.TException
-
sendGetQuote
- Throws:
org.apache.thrift.TException
-
recvGetQuote
public Quote recvGetQuote() throws IdentityNotFound, ForbiddenOperationCurrency, ForbiddenOperationAmount, OperationNotPermitted, NoResourceInfo, org.apache.thrift.TException- Throws:
IdentityNotFoundForbiddenOperationCurrencyForbiddenOperationAmountOperationNotPermittedNoResourceInfoorg.apache.thrift.TException
-
create
public P2PTransferState create(P2PTransferParams params, Map<String,Value> context) throws IdentityNotFound, ForbiddenOperationCurrency, ForbiddenOperationAmount, OperationNotPermitted, NoResourceInfo, org.apache.thrift.TException- Specified by:
createin interfaceManagementSrv.Iface- Throws:
IdentityNotFoundForbiddenOperationCurrencyForbiddenOperationAmountOperationNotPermittedNoResourceInfoorg.apache.thrift.TException
-
sendCreate
public void sendCreate(P2PTransferParams params, Map<String,Value> context) throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
recvCreate
public P2PTransferState recvCreate() throws IdentityNotFound, ForbiddenOperationCurrency, ForbiddenOperationAmount, OperationNotPermitted, NoResourceInfo, org.apache.thrift.TException- Throws:
IdentityNotFoundForbiddenOperationCurrencyForbiddenOperationAmountOperationNotPermittedNoResourceInfoorg.apache.thrift.TException
-
get
public P2PTransferState get(String id, EventRange range) throws P2PNotFound, org.apache.thrift.TException- Specified by:
getin interfaceManagementSrv.Iface- Throws:
P2PNotFoundorg.apache.thrift.TException
-
sendGet
- Throws:
org.apache.thrift.TException
-
recvGet
- Throws:
P2PNotFoundorg.apache.thrift.TException
-
getContext
- Specified by:
getContextin interfaceManagementSrv.Iface- Throws:
P2PNotFoundorg.apache.thrift.TException
-
sendGetContext
- Throws:
org.apache.thrift.TException
-
recvGetContext
- Throws:
P2PNotFoundorg.apache.thrift.TException
-
getEvents
public List<Event> getEvents(String id, EventRange range) throws P2PNotFound, org.apache.thrift.TException- Specified by:
getEventsin interfaceManagementSrv.Iface- Throws:
P2PNotFoundorg.apache.thrift.TException
-
sendGetEvents
- Throws:
org.apache.thrift.TException
-
recvGetEvents
- Throws:
P2PNotFoundorg.apache.thrift.TException
-
createAdjustment
public AdjustmentState createAdjustment(String id, AdjustmentParams params) throws P2PNotFound, InvalidP2PTransferStatus, ForbiddenStatusChange, AlreadyHasStatus, AnotherAdjustmentInProgress, org.apache.thrift.TException- Specified by:
createAdjustmentin interfaceManagementSrv.Iface- Throws:
P2PNotFoundInvalidP2PTransferStatusForbiddenStatusChangeAlreadyHasStatusAnotherAdjustmentInProgressorg.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 P2PNotFound, InvalidP2PTransferStatus, ForbiddenStatusChange, AlreadyHasStatus, AnotherAdjustmentInProgress, org.apache.thrift.TException- Throws:
P2PNotFoundInvalidP2PTransferStatusForbiddenStatusChangeAlreadyHasStatusAnotherAdjustmentInProgressorg.apache.thrift.TException
-