|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.xerox.amazonws.common.AWSConnection com.xerox.amazonws.common.AWSQueryConnection com.xerox.amazonws.fps.FlexiblePaymentsService
public class FlexiblePaymentsService
This class provides an interface with the Amazon FPS service.
Field Summary |
---|
Fields inherited from class com.xerox.amazonws.common.AWSConnection |
---|
headers |
Constructor Summary | |
---|---|
FlexiblePaymentsService(String awsAccessId,
String awsSecretKey)
Initializes the FPS service with your AWS login information. |
|
FlexiblePaymentsService(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String callerToken,
String recipientToken,
DescriptorPolicy descriptorPolicy,
TemporaryDeclinePolicy tempDeclinePolicy)
Initializes the FPS service with your AWS login information. |
|
FlexiblePaymentsService(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String callerToken,
String recipientToken,
DescriptorPolicy descriptorPolicy,
TemporaryDeclinePolicy tempDeclinePolicy,
String server,
int port,
String uiPipeline)
Initializes the FPS service with your AWS login information. |
|
FlexiblePaymentsService(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String callerToken,
String recipientToken,
DescriptorPolicy descriptorPolicy,
TemporaryDeclinePolicy tempDeclinePolicy,
String server,
String uiPipeline)
Initializes the FPS service with your AWS login information. |
|
FlexiblePaymentsService(String awsAccessId,
String awsSecretKey,
String callerToken,
String recipientToken,
DescriptorPolicy descriptorPolicy,
TemporaryDeclinePolicy tempDeclinePolicy)
Initializes the FPS service with your AWS login information. |
Method Summary | ||
---|---|---|
String |
acquireEditToken(String callerReference,
String tokenID,
PaymentMethod paymentMethod,
String returnURL)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireMultiUseToken(String callerReference,
Amount globalLimit,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireMultiUseToken(String callerReference,
List<String> recipientTokens,
AmountType amountType,
Amount globalLimit,
List<UsageLimit> usageLimits,
Boolean isRecipientCobranding,
Boolean collectShippingAddress,
Address address,
Date validityStart,
Date validityExpiry,
PaymentMethod paymentMethod,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquirePostPaidToken(String callerReferenceSender,
String callerReferenceSettlement,
Amount creditLimit,
Amount globalAmountLimit,
PaymentMethod paymentMethod,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquirePostPaidToken(String callerReferenceSender,
String callerReferenceSettlement,
Amount creditLimit,
Amount globalAmountLimit,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquirePostPaidToken(String callerReferenceSender,
String callerReferenceSettlement,
Date validityStart,
Date validityExpiry,
Amount creditLimit,
Amount globalAmountLimit,
List<UsageLimit> usageLimits,
Boolean collectShippingAddress,
Address address,
PaymentMethod paymentMethod,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquirePrepaidToken(String callerReferenceSender,
String callerReferenceFunding,
Amount amount,
PaymentMethod paymentMethod,
Date validityStart,
Date validityExpiry,
Boolean collectShippingAddress,
Address address,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquirePrepaidToken(String callerReferenceSender,
String callerReferenceFunding,
Amount amount,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireRecipientToken(String callerReference,
Boolean recipientPaysFee,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireRecipientToken(String callerReference,
Date validityStart,
Date validityExpiry,
PaymentMethod paymentMethod,
Boolean recipientPaysFee,
String callerReferenceRefund,
Long maxVariableFee,
Long maxFixedFee,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireRecurringToken(String callerReference,
Amount amount,
int recurringInterval,
RecurringGranularity recurringGranularity,
Date validityStart,
Date validityExpiry,
PaymentMethod paymentMethod,
String recipientToken,
Boolean isRecipientCobranding,
Boolean collectShippingAddress,
Address address,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireRecurringToken(String callerReference,
Amount amount,
int recurringInterval,
RecurringGranularity recurringGranularity,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireSingleUseToken(String callerReference,
Amount amount,
boolean reserve,
PaymentMethod paymentMethod,
String recipientToken,
Boolean isRecipientCobranding,
Boolean collectShippingAddress,
Address address,
Amount itemTotal,
Amount shipping,
Amount handling,
Boolean giftWrapping,
Amount discount,
Amount tax,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireSingleUseToken(String callerReference,
Amount amount,
PaymentMethod paymentMethod,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
String |
acquireSingleUseToken(String callerReference,
Amount amount,
String returnURL,
String reason)
Generate a signed URL for the CBUI pipeline. |
|
void |
cancelToken(String tokenID)
Cancel any token that you installed on your own account. |
|
void |
cancelToken(String tokenID,
String reason)
Cancel any token that you installed on your own account. |
|
void |
discardResults(String... transactionIDs)
Discard the results that are fetched using the getResults() operation. |
|
MultiUseInstrument |
extractMultiUseTokenFromCBUI(javax.servlet.http.HttpServletRequest request)
Extract the multi use token from the CBUI pipeline return. |
|
PostPaidInstrument |
extractPostPaidTokenFromCBUI(javax.servlet.http.HttpServletRequest request)
Extract the post paid token from the CBUI pipeline return. |
|
PrepaidInstrument |
extractPrepaidTokenFromCBUI(javax.servlet.http.HttpServletRequest request)
Extract the recurring token from the CBUI pipeline return. |
|
RecipientInstrument |
extractRecipientTokenFromCBUI(javax.servlet.http.HttpServletRequest request)
Extract the recurring token from the CBUI pipeline return. |
|
RecurringInstrument |
extractRecurringTokenFromCBUI(javax.servlet.http.HttpServletRequest request)
Extract the recurring token from the CBUI pipeline return. |
|
SingleUseInstrument |
extractSingleUseTokenFromCBUI(javax.servlet.http.HttpServletRequest request)
Extract the single use token from the CBUI pipeline return. |
|
Transaction |
fundPrepaid(String senderTokenID,
String prepaidInstrumentID,
double fundingAmount,
String callerReference)
Transfer money from the sender's payment instrument specified in the funding token to the recipient's account balance. |
|
Transaction |
fundPrepaid(String senderTokenID,
String callerTokenID,
String prepaidInstrumentID,
double fundingAmount,
Date transactionDate,
String senderReference,
String recipientReference,
String callerReference,
ChargeFeeTo chargeFeeTo,
String senderDescription,
String recipientDescription,
String callerDescription,
String metadata,
DescriptorPolicy descriptorPolicy,
TemporaryDeclinePolicy tempDeclinePolicy)
Transfer money from the sender's payment instrument specified in the funding token to the recipient's account balance. |
|
String |
generateUIPipelineURL(String pipelineName,
String returnURL,
Map<String,String> params)
Generate a signed URL for the CBUI pipeline. |
|
AccountActivity |
getAccountActivity(Date startDate)
|
|
AccountActivity |
getAccountActivity(Date startDate,
Date endDate)
|
|
AccountActivity |
getAccountActivity(FPSOperation filter,
PaymentMethod paymentMethod,
int maxBatchSize,
Date startDate,
Date endDate,
TransactionalRoleFilter role,
Transaction.Status transactionStatus)
Retrieve transactions from an account for a given time period. |
|
AccountBalance |
getAccountBalance()
Get the current balance on your account. |
|
List<DebtBalance> |
getAllCreditInstrumentBalances()
Retrieve all credit instruments associated with an account. |
|
List<DebtBalance> |
getAllCreditInstrumentBalances(Instrument.Status instrumentStatus)
Retrieve all credit instruments associated with an account. |
|
List<String> |
getAllCreditInstruments()
Retrieve all credit instruments associated with an account. |
|
List<String> |
getAllCreditInstruments(Instrument.Status instrumentStatus)
Retrieve all credit instruments associated with an account. |
|
List<String> |
getAllPrepaidInstruments()
Retrieve all the prepaid instruments associated with your account |
|
List<String> |
getAllPrepaidInstruments(Instrument.Status instrumentStatus)
Retrieve all the prepaid instruments associated with your account |
|
List<Token> |
getAllTokens()
Fetch all the tokens installed on your (caller) account. |
|
DebtBalance |
getDebtBalance(String creditInstrumentId)
Retrieve the balance of a credit instrument. |
|
DebtBalance |
getOutstandingDebtBalance()
Retrieve balances of all credit instruments owned by the sender. |
|
PaymentInstructionDetail |
getPaymentInstruction(String tokenID)
Retrieve the details of a payment instruction. |
|
PrepaidBalance |
getPrepaidBalance(String prepaidInstrumentId)
Retrieve the balance of a prepaid instrument. |
|
List<TransactionResult> |
getResults()
This operation is used to poll for transaction results that are returned asynchronously. |
|
List<TransactionResult> |
getResults(FPSOperationFilter operation,
Integer maxResultsCount)
This operation is used to poll for transaction results that are returned asynchronously. |
|
Token |
getTokenByCaller(String callerReference)
Fetch the details of a particular token. |
|
Token |
getTokenByID(String tokenID)
Fetch the details of a particular token. |
|
List<Token> |
getTokens(String tokenFriendlyName,
Token.Status tokenStatus,
String callerReference)
Fetch the tokens installed on your (caller) account, based on the filtering parameters. |
|
List<Token> |
getTokensByCallerReference(String callerReference)
Fetch the tokens installed on your (caller) account, filtered by caller reference. |
|
List<Token> |
getTokensByFriendlyName(String tokenFriendlyName)
Fetch the tokens installed on your (caller) account, filtered by friendly name. |
|
List<Token> |
getTokensByStatus(Token.Status tokenStatus)
Fetch the tokens installed on your (caller) account, filtered by status. |
|
List<TokenUsageLimit> |
getTokenUsage(String tokenID)
Fetch the details and usage of a multi-use token. |
|
OutstandingPrepaidLiability |
getTotalPrepaidLiability()
Returns the total liability held by the recipient corresponding to all the prepaid instruments. |
|
TransactionDetail |
getTransaction(String transactionID)
Fetch details of a transaction referred by the transactionId. |
|
String |
installPaymentInstruction(String paymentInstruction,
String tokenFriendlyName,
String callerReference,
TokenType type,
String comment)
Install tokens (payment instructions) on your own accounts. |
|
String |
installPaymentInstruction(String paymentInstruction,
String callerReference,
TokenType type)
Install tokens (payment instructions) on your own accounts. |
|
String |
installUnrestrictedCallerPaymentInstruction(String callerReference)
Install unrestricted caller token on your own accounts. |
|
String |
installUnrestrictedRecipientPaymentInstruction(String callerReference)
Install unrestricted recipient token on your own accounts. |
|
boolean |
isSignatureValid(javax.servlet.http.HttpServletRequest request)
|
|
protected
|
makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
|
|
Transaction |
pay(String senderToken,
Amount amount,
String callerReference)
Initiate a transaction to move funds from the sender to the recipient. |
|
Transaction |
pay(String senderToken,
Amount amount,
String callerReference,
DescriptorPolicy descriptorPolicy)
Initiate a transaction to move funds from the sender to the recipient. |
|
Transaction |
pay(String recipientToken,
String senderToken,
String callerToken,
Amount amount,
Date transactionDate,
ChargeFeeTo chargeFeeTo,
String callerReference,
String senderReference,
String recipientReference,
String senderDescription,
String recipientDescription,
String callerDescription,
String metadata,
double marketplaceFixedFee,
int marketplaceVariableFee,
DescriptorPolicy descriptorPolicy)
Initiate a transaction to move funds from the sender to the recipient. |
|
Transaction |
pay(String recipientToken,
String senderToken,
String callerToken,
Amount amount,
Date transactionDate,
ChargeFeeTo chargeFeeTo,
String callerReference,
String senderReference,
String recipientReference,
String senderDescription,
String recipientDescription,
String callerDescription,
String metadata,
double marketplaceFixedFee,
int marketplaceVariableFee,
DescriptorPolicy descriptorPolicy,
TemporaryDeclinePolicy tempDeclinePolicy)
Initiate a transaction to move funds from the sender to the recipient. |
|
Transaction |
refund(String senderToken,
String transactionID,
String callerReference)
Refund a successfully completed payment transaction. |
|
Transaction |
refund(String callerToken,
String senderToken,
String transactionID,
Amount refundAmount,
ChargeFeeTo chargeFeeTo,
Date transactionDate,
String callerReference,
String senderReference,
String recipientReference,
String senderDescription,
String recipientDescription,
String callerDescription,
String metadata,
MarketplaceRefundPolicy policy)
Refund a successfully completed payment transaction. |
|
Transaction |
reserve(String senderToken,
Amount amount,
String callerReference)
This operation is part of the Reserve and Settle operations that allow payment transactions when the authorization and settlement have a time difference. |
|
Transaction |
reserve(String recipientToken,
String senderToken,
String callerToken,
Amount amount,
Date transactionDate,
ChargeFeeTo chargeFeeTo,
String callerReference,
String senderReference,
String recipientReference,
String senderDescription,
String recipientDescription,
String callerDescription,
String metadata,
double marketplaceFixedFee,
int marketplaceVariableFee,
DescriptorPolicy descriptorPolicy,
TemporaryDeclinePolicy tempDeclinePolicy)
This operation is part of the Reserve and Settle operations that allow payment transactions when the authorization and settlement have a time difference. |
|
Transaction |
retryTransaction(String transactionID)
Submits a transaction for processing. |
|
Transaction |
settle(String reserveTransactionID,
Amount amount)
Settles fully or partially the amount that is reserved using the reserve(java.lang.String, com.xerox.amazonws.fps.Amount, java.lang.String) operation |
|
Transaction |
settle(String reserveTransactionID,
Amount amount,
Date transactionDate)
Settles fully or partially the amount that is reserved using the reserve(java.lang.String, com.xerox.amazonws.fps.Amount, java.lang.String) operation |
|
Transaction |
settleDebt(String settlementToken,
String creditInstrument,
Amount amount,
String callerReference)
The SettleDebt operation takes the settlement amount, credit instrument, and the settlement token among other parameters. |
|
Transaction |
settleDebt(String settlementToken,
String callerToken,
String creditInstrument,
Amount amount,
Date transactionDate,
String senderReference,
String recipientReference,
String callerReference,
ChargeFeeTo chargeFeeTo,
String senderDescription,
String recipientDescription,
String callerDescription,
String metadata,
DescriptorPolicy descriptorPolicy,
TemporaryDeclinePolicy tempDeclinePolicy)
The SettleDebt operation takes the settlement amount, credit instrument, and the settlement token among other parameters. |
|
void |
subscribeForCallerNotification(NotificationEventType operationType,
URL webService)
Allows callers to subscribe to events that are given out using the web service notification mechanism. |
|
void |
unsubscribeForCallerNotification(NotificationEventType operationType)
Allows callers to unsubscribe to events that are previously subscribed by the calling applications. |
|
Transaction |
writeOffDebt(String creditInstrument,
double adjustmentAmount,
String callerReference)
Write off the debt accumulated by the recipient on any credit instrument |
|
Transaction |
writeOffDebt(String callerToken,
String creditInstrument,
double adjustmentAmount,
Date transactionDate,
String callerReference,
String recipientReference,
String senderReference,
String senderDescription,
String recipientDescription,
String callerDescription,
String metadata)
Write off the debt accumulated by the recipient on any credit instrument |
Methods inherited from class com.xerox.amazonws.common.AWSQueryConnection |
---|
close, close, getConnectionManagerTimeout, getConnectionTimeout, getHeaders, getHttpClient, getMaxConnections, getMaxRetries, getServerTimeZone, getSoTimeout, getString, httpDate, makeRequest, setConnectionManagerTimeout, setConnectionTimeout, setHttpClient, setMaxConnections, setMaxRetries, setProxyValues, setProxyValues, setProxyValues, setServerTimeZone, setSoTimeout, useSystemProxy |
Methods inherited from class com.xerox.amazonws.common.AWSConnection |
---|
encode, encode, getAlgorithm, getAwsAccessKeyId, getPort, getResourcePrefix, getSecretAccessKey, getServer, getSignatureVersion, getUrl, isSecure, makeURL, setResourcePrefix, setServer, setSignatureVersion, urlencode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlexiblePaymentsService(String awsAccessId, String awsSecretKey)
awsAccessId
- the your user key into AWSawsSecretKey
- the secret string used to generate signatures for authentication.public FlexiblePaymentsService(String awsAccessId, String awsSecretKey, String callerToken, String recipientToken, DescriptorPolicy descriptorPolicy, TemporaryDeclinePolicy tempDeclinePolicy)
awsAccessId
- the your user key into AWSawsSecretKey
- the secret string used to generate signatures for authentication.callerToken
- the default caller token to be used when not explicitely specifiedrecipientToken
- the default recipient token to be used when not explicitely specifieddescriptorPolicy
- the descriptor policy to use as descriptive string on credit card statementstempDeclinePolicy
- the temporary decline policy and the retry time out (in minutes)public FlexiblePaymentsService(String awsAccessId, String awsSecretKey, boolean isSecure, String callerToken, String recipientToken, DescriptorPolicy descriptorPolicy, TemporaryDeclinePolicy tempDeclinePolicy)
awsAccessId
- the your user key into AWSawsSecretKey
- the secret string used to generate signatures for authentication.isSecure
- true if the data should be encrypted on the wire on the way to or from FPS.callerToken
- the default caller token to be used when not explicitely specifiedrecipientToken
- the default recipient token to be used when not explicitely specifieddescriptorPolicy
- the descriptor policy to use as descriptive string on credit card statementstempDeclinePolicy
- the temporary decline policy and the retry time out (in minutes)public FlexiblePaymentsService(String awsAccessId, String awsSecretKey, boolean isSecure, String callerToken, String recipientToken, DescriptorPolicy descriptorPolicy, TemporaryDeclinePolicy tempDeclinePolicy, String server, String uiPipeline)
awsAccessId
- The your user key into AWSawsSecretKey
- The secret string used to generate signatures for authentication.isSecure
- True if the data should be encrypted on the wire on the way to or from FPS.callerToken
- the default caller token to be used when not explicitely specifiedrecipientToken
- the default recipient token to be used when not explicitely specifieddescriptorPolicy
- the descriptor policy to use as descriptive string on credit card statementstempDeclinePolicy
- the temporary decline policy and the retry time out (in minutes)server
- Which host to connect to. Usually, this will be fps.amazonaws.com.
You can also use fps.sandbox.amazonaws.com instead if you want to test your code within the Sandbox environmentuiPipeline
- the URL of the UI pipelinepublic FlexiblePaymentsService(String awsAccessId, String awsSecretKey, boolean isSecure, String callerToken, String recipientToken, DescriptorPolicy descriptorPolicy, TemporaryDeclinePolicy tempDeclinePolicy, String server, int port, String uiPipeline)
awsAccessId
- the your user key into AWSawsSecretKey
- the secret string used to generate signatures for authentication.isSecure
- true if the data should be encrypted on the wire on the way to or from FPS.callerToken
- the default caller token to be used when not explicitely specifiedrecipientToken
- the default recipient token to be used when not explicitely specifieddescriptorPolicy
- the descriptor policy to use as descriptive string on credit card statementstempDeclinePolicy
- the temporary decline policy and the retry time out (in minutes)server
- which host to connect to. Usually, this will be fps.amazonaws.com.
You can also use fps.sandbox.amazonaws.com instead if you want to test your code within the Sandbox environmentport
- which port to useuiPipeline
- the URL of the UI pipelineMethod Detail |
---|
public void cancelToken(String tokenID) throws FPSException
tokenID
- the token to be cancelled
FPSException
- wraps checked exceptionspublic void cancelToken(String tokenID, String reason) throws FPSException
tokenID
- the token to be cancelledreason
- reason for cancelling the token -- max 64 characters
FPSException
- wraps checked exceptionspublic void discardResults(String... transactionIDs) throws FPSException
getResults()
operation.
transactionIDs
- the list of transaction to be discarded
FPSException
- wraps checked exceptionspublic Transaction fundPrepaid(String senderTokenID, String prepaidInstrumentID, double fundingAmount, String callerReference) throws FPSException
senderTokenID
- the token identifying the funding payment instructionsprepaidInstrumentID
- the prepaid instrument ID returned by the prepaid instrument installation pipelinefundingAmount
- amount to fund the prepaid instrumentcallerReference
- a unique reference that you specify in your system to identify a transaction
FPSException
- wraps checked exceptionspublic Transaction fundPrepaid(String senderTokenID, String callerTokenID, String prepaidInstrumentID, double fundingAmount, Date transactionDate, String senderReference, String recipientReference, String callerReference, ChargeFeeTo chargeFeeTo, String senderDescription, String recipientDescription, String callerDescription, String metadata, DescriptorPolicy descriptorPolicy, TemporaryDeclinePolicy tempDeclinePolicy) throws FPSException
senderTokenID
- the token identifying the funding payment instructionscallerTokenID
- the caller's token IDprepaidInstrumentID
- the prepaid instrument ID returned by the prepaid instrument installation pipelinefundingAmount
- amount to fund the prepaid instrumenttransactionDate
- the date specified by the caller and stored with the transactionsenderReference
- any reference that the caller might use to identify the sender in the transactionrecipientReference
- any reference that the caller might use to identify the recipient in the transactioncallerReference
- a unique reference that you specify in your system to identify a transactionchargeFeeTo
- the participant paying the fee for the transactionsenderDescription
- 128-byte field to store transaction descriptionrecipientDescription
- 128-byte field to store transaction descriptioncallerDescription
- 128-byte field to store transaction descriptionmetadata
- a 2KB free-form field used to store transaction datadescriptorPolicy
- the soft descriptor type and the customer service number to pass to the payment processortempDeclinePolicy
- the temporary decline policy and the retry time out (in minutes)
FPSException
- wraps checked exceptionspublic AccountActivity getAccountActivity(Date startDate) throws FPSException
FPSException
public AccountActivity getAccountActivity(Date startDate, Date endDate) throws FPSException
FPSException
public AccountActivity getAccountActivity(FPSOperation filter, PaymentMethod paymentMethod, int maxBatchSize, Date startDate, Date endDate, TransactionalRoleFilter role, Transaction.Status transactionStatus) throws FPSException
filter
- operation type filter -- use null if this filter shouldn't be usedpaymentMethod
- payment method filter -- use null if this filter shouldn't be usedmaxBatchSize
- maximum number of transactions to be returnedAccountActivity
is Iterable
over each page of the paginated results from
the underneath FPS operation.startDate
- will filter transactions beginning from that dateendDate
- will filter transactions ending up to that daterole
- role filter -- use null if this filter shouldn't be usedtransactionStatus
- transaction status filter -- use null if this filter shouldn't be used
FPSException
- wraps checked exceptionspublic List<String> getAllPrepaidInstruments() throws FPSException
FPSException
- wraps checked exceptionspublic List<String> getAllPrepaidInstruments(Instrument.Status instrumentStatus) throws FPSException
instrumentStatus
- filter instruments by status
FPSException
- wraps checked exceptionspublic List<String> getAllCreditInstruments() throws FPSException
FPSException
- wraps checked exceptionspublic List<DebtBalance> getAllCreditInstrumentBalances() throws FPSException
FPSException
- wraps checked exceptionspublic List<String> getAllCreditInstruments(Instrument.Status instrumentStatus) throws FPSException
instrumentStatus
- filter instruments by status
FPSException
- wraps checked exceptionspublic List<DebtBalance> getAllCreditInstrumentBalances(Instrument.Status instrumentStatus) throws FPSException
instrumentStatus
- filter instruments by status
FPSException
- wraps checked exceptionspublic DebtBalance getDebtBalance(String creditInstrumentId) throws FPSException
creditInstrumentId
- the credit instrument Id for which debt balance is queried
FPSException
- wraps checked exceptionspublic DebtBalance getOutstandingDebtBalance() throws FPSException
FPSException
- wraps checked exceptionspublic PaymentInstructionDetail getPaymentInstruction(String tokenID) throws FPSException
tokenID
- token for which the payment instruction is to be retrieved
FPSException
- wraps checked exceptionspublic PrepaidBalance getPrepaidBalance(String prepaidInstrumentId) throws FPSException
prepaidInstrumentId
- prepaid instrument for which the balance is queried
FPSException
- wraps checked exceptionspublic List<TransactionResult> getResults() throws FPSException
FPSException
- wraps checked exceptionspublic List<TransactionResult> getResults(FPSOperationFilter operation, Integer maxResultsCount) throws FPSException
operation
- Used to filter results based on the operation type (e.g. Pay, Refund, Settle, SettleDebt, WriteOffDebt, FundPrepaid)maxResultsCount
- Used to specify the maximum results that can be retrieved. The minimum value is 1 and the maximum value is 25. By default the maximum or the available results are returned.
FPSException
- wraps checked exceptionspublic List<Token> getAllTokens() throws FPSException
FPSException
- wraps checked exceptionspublic List<Token> getTokensByFriendlyName(String tokenFriendlyName) throws FPSException
tokenFriendlyName
- filter by friendly name
FPSException
- wraps checked exceptionspublic List<Token> getTokensByStatus(Token.Status tokenStatus) throws FPSException
tokenStatus
- filter by token status
FPSException
- wraps checked exceptionspublic List<Token> getTokensByCallerReference(String callerReference) throws FPSException
callerReference
- filter by caller reference
FPSException
- wraps checked exceptionspublic List<Token> getTokens(String tokenFriendlyName, Token.Status tokenStatus, String callerReference) throws FPSException
tokenFriendlyName
- filter by friendly nametokenStatus
- filter by token statuscallerReference
- filter by caller reference
FPSException
- wraps checked exceptionspublic Token getTokenByID(String tokenID) throws FPSException
tokenID
- the token Id of the specific token installed on the callers account
FPSException
- wraps checked exceptionspublic Token getTokenByCaller(String callerReference) throws FPSException
callerReference
- the caller reference that was passed at the time of the token installation
FPSException
- wraps checked exceptionspublic List<TokenUsageLimit> getTokenUsage(String tokenID) throws FPSException
tokenID
- the token for which the usage is queried
FPSException
- wraps checked exceptionspublic OutstandingPrepaidLiability getTotalPrepaidLiability() throws FPSException
FPSException
- wraps checked exceptionspublic TransactionDetail getTransaction(String transactionID) throws FPSException
transactionID
- a transaction Id for the query
FPSException
- wraps checked exceptionspublic String installUnrestrictedCallerPaymentInstruction(String callerReference) throws FPSException
callerReference
- a unique reference to the payment instructions. This is used to recover or retrieve
tokens that are lost or not received after the payment instruction is installed
FPSException
- wraps checked exceptionspublic String installUnrestrictedRecipientPaymentInstruction(String callerReference) throws FPSException
callerReference
- a unique reference to the payment instructions. This is used to recover or retrieve
tokens that are lost or not received after the payment instruction is installed
FPSException
- wraps checked exceptionspublic String installPaymentInstruction(String paymentInstruction, String callerReference, TokenType type) throws FPSException
paymentInstruction
- set of rules in the GateKeeper language format to be installed on the caller's accountcallerReference
- a unique reference to the payment instructions. This is used to recover or retrieve
tokens that are lost or not received after the payment instruction is installedtype
- the type of token
FPSException
- wraps checked exceptionspublic String installPaymentInstruction(String paymentInstruction, String tokenFriendlyName, String callerReference, TokenType type, String comment) throws FPSException
paymentInstruction
- set of rules in the GateKeeper language format to be installed on the caller's accounttokenFriendlyName
- a human-friendly, readable name for the payment instructioncallerReference
- a unique reference to the payment instructions. This is used to recover or retrieve
tokens that are lost or not received after the payment instruction is installedtype
- the type of tokencomment
- the reason for making the payment
FPSException
- wraps checked exceptionspublic Transaction pay(String senderToken, Amount amount, String callerReference) throws FPSException
senderToken
- sender tokenamount
- amount to be charged to the sendercallerReference
- a unique reference that you specify in your system to identify a transaction
FPSException
- wraps checked exceptionspublic Transaction pay(String senderToken, Amount amount, String callerReference, DescriptorPolicy descriptorPolicy) throws FPSException
senderToken
- sender tokenamount
- amount to be charged to the sendercallerReference
- a unique reference that you specify in your system to identify a transactiondescriptorPolicy
- the soft descriptor type and the customer service number to pass to the payment processor
FPSException
- wraps checked exceptionspublic Transaction pay(String recipientToken, String senderToken, String callerToken, Amount amount, Date transactionDate, ChargeFeeTo chargeFeeTo, String callerReference, String senderReference, String recipientReference, String senderDescription, String recipientDescription, String callerDescription, String metadata, double marketplaceFixedFee, int marketplaceVariableFee, DescriptorPolicy descriptorPolicy) throws FPSException
recipientToken
- recipient tokensenderToken
- sender tokencallerToken
- caller tokenamount
- amount to be charged to the sendertransactionDate
- the date specified by the caller and stored with the transactionchargeFeeTo
- the participant paying the fee for the transactioncallerReference
- a unique reference that you specify in your system to identify a transactionsenderReference
- any reference that the caller might use to identify the sender in the transactionrecipientReference
- any reference that the caller might use to identify the recipient in the transactionsenderDescription
- 128-byte field to store transaction descriptionrecipientDescription
- 128-byte field to store transaction descriptioncallerDescription
- 128-byte field to store transaction descriptionmetadata
- a 2KB free-form field used to store transaction datamarketplaceFixedFee
- the fee charged by the marketplace developer as a fixed amount of the transactionmarketplaceVariableFee
- the fee charged by the marketplace developer as a variable amount of the transactiondescriptorPolicy
- the soft descriptor type and the customer service number to pass to the payment processor
FPSException
- wraps checked exceptionspublic Transaction pay(String recipientToken, String senderToken, String callerToken, Amount amount, Date transactionDate, ChargeFeeTo chargeFeeTo, String callerReference, String senderReference, String recipientReference, String senderDescription, String recipientDescription, String callerDescription, String metadata, double marketplaceFixedFee, int marketplaceVariableFee, DescriptorPolicy descriptorPolicy, TemporaryDeclinePolicy tempDeclinePolicy) throws FPSException
recipientToken
- recipient tokensenderToken
- sender tokencallerToken
- caller tokenamount
- amount to be charged to the sendertransactionDate
- the date specified by the caller and stored with the transactionchargeFeeTo
- the participant paying the fee for the transactioncallerReference
- a unique reference that you specify in your system to identify a transactionsenderReference
- any reference that the caller might use to identify the sender in the transactionrecipientReference
- any reference that the caller might use to identify the recipient in the transactionsenderDescription
- 128-byte field to store transaction descriptionrecipientDescription
- 128-byte field to store transaction descriptioncallerDescription
- 128-byte field to store transaction descriptionmetadata
- a 2KB free-form field used to store transaction datamarketplaceFixedFee
- the fee charged by the marketplace developer as a fixed amount of the transactionmarketplaceVariableFee
- the fee charged by the marketplace developer as a variable amount of the transactiondescriptorPolicy
- the soft descriptor type and the customer service number to pass to the payment processortempDeclinePolicy
- the temporary decline policy and the retry time out (in minutes)
FPSException
- wraps checked exceptionspublic Transaction refund(String senderToken, String transactionID, String callerReference) throws FPSException
senderToken
- token of the original recipient who is now the sender in the refundtransactionID
- the transaction that is to be refundedcallerReference
- a unique reference that identifies this refund
FPSException
- FPSException wraps checked exceptionspublic Transaction refund(String callerToken, String senderToken, String transactionID, Amount refundAmount, ChargeFeeTo chargeFeeTo, Date transactionDate, String callerReference, String senderReference, String recipientReference, String senderDescription, String recipientDescription, String callerDescription, String metadata, MarketplaceRefundPolicy policy) throws FPSException
callerToken
- the caller tokensenderToken
- token of the original recipient who is now the sender in the refundtransactionID
- the transaction that is to be refunded<refundAmount
- the amount to be refundedchargeFeeTo
- the participant who pays the feetransactionDate
- the date of the transaction from the callercallerReference
- a unique reference that identifies this refundsenderReference
- the reference created by the recipient of original transaction for this refund transactionrecipientReference
- the reference created by the Sender (of the original transaction) for this refund transactionsenderDescription
- a 128-byte field to store transaction descriptionrecipientDescription
- a 128-byte field to store transaction descriptioncallerDescription
- a 128-byte field to store transaction descriptionmetadata
- a 2KB free form field used to store transaction datapolicy
- the refund choice: refund the master transaction, the marketplace fee, or both
FPSException
- FPSException wraps checked exceptionspublic Transaction reserve(String senderToken, Amount amount, String callerReference) throws FPSException
senderToken
- sender tokenamount
- amount to be reserved on the sender account/credit cardcallerReference
- a unique reference that you specify in your system to identify a transaction
FPSException
- wraps checked exceptionspublic Transaction reserve(String recipientToken, String senderToken, String callerToken, Amount amount, Date transactionDate, ChargeFeeTo chargeFeeTo, String callerReference, String senderReference, String recipientReference, String senderDescription, String recipientDescription, String callerDescription, String metadata, double marketplaceFixedFee, int marketplaceVariableFee, DescriptorPolicy descriptorPolicy, TemporaryDeclinePolicy tempDeclinePolicy) throws FPSException
recipientToken
- recipient tokensenderToken
- sender tokencallerToken
- caller tokenamount
- amount to be reserved on the sender account/credit cardtransactionDate
- the date specified by the caller and stored with the transactionchargeFeeTo
- the participant paying the fee for the transactioncallerReference
- a unique reference that you specify in your system to identify a transactionsenderReference
- any reference that the caller might use to identify the sender in the transactionrecipientReference
- any reference that the caller might use to identify the recipient in the transactionsenderDescription
- 128-byte field to store transaction descriptionrecipientDescription
- 128-byte field to store transaction descriptioncallerDescription
- 128-byte field to store transaction descriptionmetadata
- a 2KB free-form field used to store transaction datamarketplaceFixedFee
- the fee charged by the marketplace developer as a fixed amount of the transactionmarketplaceVariableFee
- the fee charged by the marketplace developer as a variable amount of the transactiondescriptorPolicy
- the soft descriptor type and the customer service number to pass to the payment processortempDeclinePolicy
- the temporary decline policy and the retry time out (in minutes)
FPSException
- wraps checked exceptionspublic Transaction retryTransaction(String transactionID) throws FPSException
transactionID
- the transaction to retry
FPSException
- wraps checked exceptionspublic Transaction settle(String reserveTransactionID, Amount amount) throws FPSException
reserve(java.lang.String, com.xerox.amazonws.fps.Amount, java.lang.String)
operation
reserveTransactionID
- the transaction ID of the reserve transaction that has to be settledamount
- amount to be settled
FPSException
- wraps checked exceptionspublic Transaction settle(String reserveTransactionID, Amount amount, Date transactionDate) throws FPSException
reserve(java.lang.String, com.xerox.amazonws.fps.Amount, java.lang.String)
operation
reserveTransactionID
- the transaction ID of the reserve transaction that has to be settledamount
- amount to be settledtransactionDate
- the date of the transaction
FPSException
- wraps checked exceptionspublic Transaction settleDebt(String settlementToken, String creditInstrument, Amount amount, String callerReference) throws FPSException
settlementToken
- the token ID of the settlement tokencreditInstrument
- the credit instrument Id returned by the co-branded UI pipelineamount
- the amount for the settlementcallerReference
- a unique reference that you specify in your system to identify a transaction
FPSException
- wraps checked exceptionspublic Transaction settleDebt(String settlementToken, String callerToken, String creditInstrument, Amount amount, Date transactionDate, String senderReference, String recipientReference, String callerReference, ChargeFeeTo chargeFeeTo, String senderDescription, String recipientDescription, String callerDescription, String metadata, DescriptorPolicy descriptorPolicy, TemporaryDeclinePolicy tempDeclinePolicy) throws FPSException
settlementToken
- the token ID of the settlement tokencallerToken
- the callers tokencreditInstrument
- the credit instrument Id returned by the co-branded UI pipelineamount
- the amount for the settlementtransactionDate
- the date of the callers transactionsenderReference
- the unique value that will be used as a reference for the sender in this transactionrecipientReference
- the unique value that will be used as a reference for the recipient in this transactioncallerReference
- a unique reference that you specify in your system to identify a transactionchargeFeeTo
- the participant paying the fee for the transactionsenderDescription
- a 128-byte field to store transaction descriptionrecipientDescription
- a 128-byte field to store transaction descriptioncallerDescription
- a 128-byte field to store transaction descriptionmetadata
- a 2KB free form field used to store transaction datadescriptorPolicy
- the descriptor policy to use as descriptive string on credit card statementstempDeclinePolicy
- the temporary decline policy and the retry time out (in minutes)
FPSException
- wraps checked exceptionspublic void subscribeForCallerNotification(NotificationEventType operationType, URL webService) throws FPSException
operationType
- specify the event types for which the notifications are requiredwebService
- the URL to your web service
FPSException
- wraps checked exceptionspublic void unsubscribeForCallerNotification(NotificationEventType operationType) throws FPSException
operationType
- specify the event types for which the notifications are required
FPSException
- wraps checked exceptionspublic Transaction writeOffDebt(String creditInstrument, double adjustmentAmount, String callerReference) throws FPSException
creditInstrument
- the credit instrument Id returned by the co-branded UI pipelineadjustmentAmount
- the amount for the settlementIllegalArgumentException
is throwncallerReference
- a unique reference that you specify in your system to identify a transaction
FPSException
- wraps checked exceptionspublic Transaction writeOffDebt(String callerToken, String creditInstrument, double adjustmentAmount, Date transactionDate, String callerReference, String recipientReference, String senderReference, String senderDescription, String recipientDescription, String callerDescription, String metadata) throws FPSException
callerToken
- the callers tokencreditInstrument
- the credit instrument Id returned by the co-branded UI pipelineadjustmentAmount
- the amount for the settlementIllegalArgumentException
is throwntransactionDate
- the date of the callers transactionsenderReference
- the unique value that will be used as a reference for the sender in this transactionrecipientReference
- the unique value that will be used as a reference for the recipient in this transactioncallerReference
- a unique reference that you specify in your system to identify a transactionsenderDescription
- a 128-byte field to store transaction descriptionrecipientDescription
- a 128-byte field to store transaction descriptioncallerDescription
- a 128-byte field to store transaction descriptionmetadata
- a 2KB free form field used to store transaction data
FPSException
- wraps checked exceptionspublic AccountBalance getAccountBalance() throws FPSException
FPSException
- wraps checked exceptionspublic String acquireSingleUseToken(String callerReference, Amount amount, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquireSingleUseToken(String callerReference, Amount amount, PaymentMethod paymentMethod, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquireSingleUseToken(String callerReference, Amount amount, boolean reserve, PaymentMethod paymentMethod, String recipientToken, Boolean isRecipientCobranding, Boolean collectShippingAddress, Address address, Amount itemTotal, Amount shipping, Amount handling, Boolean giftWrapping, Amount discount, Amount tax, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquireMultiUseToken(String callerReference, Amount globalLimit, String returnURL, String reason) throws MalformedURLException, FPSException
MalformedURLException
FPSException
public String acquireMultiUseToken(String callerReference, List<String> recipientTokens, AmountType amountType, Amount globalLimit, List<UsageLimit> usageLimits, Boolean isRecipientCobranding, Boolean collectShippingAddress, Address address, Date validityStart, Date validityExpiry, PaymentMethod paymentMethod, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquireRecurringToken(String callerReference, Amount amount, int recurringInterval, RecurringGranularity recurringGranularity, String returnURL, String reason) throws MalformedURLException, FPSException
MalformedURLException
FPSException
public String acquireRecurringToken(String callerReference, Amount amount, int recurringInterval, RecurringGranularity recurringGranularity, Date validityStart, Date validityExpiry, PaymentMethod paymentMethod, String recipientToken, Boolean isRecipientCobranding, Boolean collectShippingAddress, Address address, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquireRecipientToken(String callerReference, Boolean recipientPaysFee, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquireRecipientToken(String callerReference, Date validityStart, Date validityExpiry, PaymentMethod paymentMethod, Boolean recipientPaysFee, String callerReferenceRefund, Long maxVariableFee, Long maxFixedFee, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquirePrepaidToken(String callerReferenceSender, String callerReferenceFunding, Amount amount, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquirePrepaidToken(String callerReferenceSender, String callerReferenceFunding, Amount amount, PaymentMethod paymentMethod, Date validityStart, Date validityExpiry, Boolean collectShippingAddress, Address address, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquirePostPaidToken(String callerReferenceSender, String callerReferenceSettlement, Amount creditLimit, Amount globalAmountLimit, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquirePostPaidToken(String callerReferenceSender, String callerReferenceSettlement, Amount creditLimit, Amount globalAmountLimit, PaymentMethod paymentMethod, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquirePostPaidToken(String callerReferenceSender, String callerReferenceSettlement, Date validityStart, Date validityExpiry, Amount creditLimit, Amount globalAmountLimit, List<UsageLimit> usageLimits, Boolean collectShippingAddress, Address address, PaymentMethod paymentMethod, String returnURL, String reason) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String acquireEditToken(String callerReference, String tokenID, PaymentMethod paymentMethod, String returnURL) throws FPSException, MalformedURLException
FPSException
MalformedURLException
public String generateUIPipelineURL(String pipelineName, String returnURL, Map<String,String> params) throws MalformedURLException
pipelineName
- the name of the pipelinereturnURL
- the URL where the user should be redirected at the end of the pipelineparams
- all CBUI parameters
MalformedURLException
public SingleUseInstrument extractSingleUseTokenFromCBUI(javax.servlet.http.HttpServletRequest request) throws MalformedURLException, FPSException
MalformedURLException
FPSException
public MultiUseInstrument extractMultiUseTokenFromCBUI(javax.servlet.http.HttpServletRequest request) throws MalformedURLException, FPSException
MalformedURLException
FPSException
public RecurringInstrument extractRecurringTokenFromCBUI(javax.servlet.http.HttpServletRequest request) throws MalformedURLException, FPSException
MalformedURLException
FPSException
public RecipientInstrument extractRecipientTokenFromCBUI(javax.servlet.http.HttpServletRequest request) throws MalformedURLException, FPSException
MalformedURLException
FPSException
public PrepaidInstrument extractPrepaidTokenFromCBUI(javax.servlet.http.HttpServletRequest request) throws MalformedURLException, FPSException
MalformedURLException
FPSException
public PostPaidInstrument extractPostPaidTokenFromCBUI(javax.servlet.http.HttpServletRequest request) throws MalformedURLException, FPSException
request
- the HTTP request
MalformedURLException
FPSException
public boolean isSignatureValid(javax.servlet.http.HttpServletRequest request) throws MalformedURLException
MalformedURLException
protected <T> T makeRequestInt(org.apache.http.client.methods.HttpRequestBase method, String action, Map<String,String> params, Class<T> respType) throws FPSException
FPSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |