public class DRXClient extends java.lang.Object implements ExchangeClient
| Constructor and Description |
|---|
DRXClient()
Creates basic instance of ExchangeClient
|
DRXClient(ConfigManager configManager)
Creates instance of ExchangeClient using the given ConfigManager
|
DRXClient(ExchangeCredentials credentials)
Creates instance of DRXClient using the given ExchangeCredentials.
|
DRXClient(Region region)
Creates instance of ExchangeClient using the given Region.
|
DRXClient(Region region,
ExchangeCredentials credentials)
Creates instance of ExchangeClient using the given Region and with provided ExchangeCredentials
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
downloadReceiptPDF(java.lang.String receiptId) |
java.lang.String |
getDirectoryHost() |
java.lang.String |
getExchangeAPIHost() |
ExchangeCredentials |
getExchangeCredentials() |
java.lang.String |
getReceiptVersion() |
java.lang.String |
getUserVersion() |
Merchant |
lookupMerchant(java.lang.String Id) |
DigitalReceipt |
lookupReceipt(java.lang.String receiptId) |
java.util.Map<java.lang.String,NewUserRegistrationResult> |
registerNewUser(java.util.List<NewUser> newUsers) |
NewUserRegistrationResult |
registerNewUser(NewUser newUser) |
User |
searchUser(UserIdentifierType identifierType,
java.lang.String identifier) |
Users |
searchUsers(UserIdentifierType identifierType,
java.util.ArrayList<java.lang.String> userIdentifiers) |
java.lang.String |
sendDryRunReceipt(ReceiptPostRequest receiptPostRequest) |
java.lang.String |
sendProductionReceipt(ReceiptPostRequest receiptPostRequest) |
public DRXClient()
throws ExchangeClientException
ExchangeClientExceptionpublic DRXClient(Region region) throws ExchangeClientException
region - the Region settings to be used by the ExchangeClientExchangeClientExceptionpublic DRXClient(ExchangeCredentials credentials) throws ExchangeClientException
credentials - The credentials to be used when sending a receipt to the exchangeExchangeClientExceptionpublic DRXClient(Region region, ExchangeCredentials credentials) throws ExchangeClientException
region - the Region settings to be used by the ExchangeClientcredentials - the ExchangeCredentials settings to be used by the ExchangeClientExchangeClientExceptionpublic DRXClient(ConfigManager configManager) throws ExchangeClientException
configManager - the ConfigManager to be used by the ExchangeClientExchangeClientException - will be thrown of configManager contains invalid configurationpublic ExchangeCredentials getExchangeCredentials()
public java.lang.String getExchangeAPIHost()
public java.lang.String getReceiptVersion()
public java.lang.String getDirectoryHost()
public java.lang.String getUserVersion()
public java.lang.String sendProductionReceipt(ReceiptPostRequest receiptPostRequest) throws ExchangeClientException
sendProductionReceipt in interface ExchangeClientreceiptPostRequest - ReceiptPostRequestExchangeClientException - will be thrown if problem calling the service.public java.lang.String sendDryRunReceipt(ReceiptPostRequest receiptPostRequest) throws ExchangeClientException
sendDryRunReceipt in interface ExchangeClientreceiptPostRequest - ReceiptPostRequestExchangeClientException - will be thrown if problem calling the service.public User searchUser(UserIdentifierType identifierType, java.lang.String identifier) throws ExchangeClientException
searchUser in interface ExchangeClientidentifierType - UserIdentifierTypeidentifier - StringExchangeClientException - will be thrown if problem calling the service.public Users searchUsers(UserIdentifierType identifierType, java.util.ArrayList<java.lang.String> userIdentifiers) throws ExchangeClientException
searchUsers in interface ExchangeClientidentifierType - UserIdentifierTypeuserIdentifiers - list of user identifiersExchangeClientException - will be thrown if problem calling the service.public DigitalReceipt lookupReceipt(java.lang.String receiptId) throws ExchangeClientException
lookupReceipt in interface ExchangeClientreceiptId - StringExchangeClientException - will be thrown if problem calling the service.public boolean downloadReceiptPDF(java.lang.String receiptId)
throws ExchangeClientException
downloadReceiptPDF in interface ExchangeClientreceiptId - StringExchangeClientException - will be thrown if problem calling the service.public NewUserRegistrationResult registerNewUser(NewUser newUser) throws ExchangeClientException
registerNewUser in interface ExchangeClientnewUser - NewUserExchangeClientException - will be thrown if problem calling the service.public java.util.Map<java.lang.String,NewUserRegistrationResult> registerNewUser(java.util.List<NewUser> newUsers) throws ExchangeClientException
registerNewUser in interface ExchangeClientnewUsers - list of users to be registeredExchangeClientException - will be thrown if problem calling the service.public Merchant lookupMerchant(java.lang.String Id) throws ExchangeClientException
lookupMerchant in interface ExchangeClientId - StringExchangeClientException - will be thrown if problem calling the service.