public final class GoSellAPI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
GoSellAPI.SingletonCreationAdmin |
Modifier and Type | Field and Description |
---|---|
private APIService |
apiHelper |
private RequestManager |
requestManager |
Modifier | Constructor and Description |
---|---|
private |
GoSellAPI() |
Modifier and Type | Method and Description |
---|---|
void |
authenticate_authorize_transaction(java.lang.String authorizeIdentifier,
CreateOTPVerificationRequest createOTPRequest,
APIRequestCallback<Authorize> requestCallback)
Authenticate authorize transaction.
|
void |
authenticate_charge_transaction(java.lang.String chargeIdentifier,
CreateOTPVerificationRequest createOTPRequest,
APIRequestCallback<Charge> requestCallback)
Authenticate charge transaction.
|
void |
createAuthorize(CreateAuthorizeRequest createAuthorizeRequest,
APIRequestCallback<Authorize> requestCallback)
Create authorize.
|
void |
createCharge(CreateChargeRequest createChargeRequest,
APIRequestCallback<Charge> requestCallback)
Create charge.
|
void |
createSaveCard(CreateSaveCardRequest createSaveCardRequest,
APIRequestCallback<SaveCard> requestCallback)
Create save card.
|
void |
createTokenWithEncryptedCard(CreateTokenWithCardDataRequest createTokenRequest,
APIRequestCallback<Token> requestCallback)
Create token with encrypted card.
|
void |
createTokenWithExistingCard(CreateTokenWithExistingCardDataRequest createTokenWithExistingCardDataRequest,
APIRequestCallback<Token> requestCallback)
Create token with existing card.
|
void |
deleteCard(java.lang.String customerId,
java.lang.String cardId,
APIRequestCallback<DeleteCardResponse> requestCallback)
Delete Card
|
static GoSellAPI |
getInstance()
Gets instance.
|
void |
getPaymentOptions(PaymentOptionsRequest paymentOptionsRequest,
APIRequestCallback<PaymentOptionsResponse> requestCallback)
Gets payment options.
|
void |
request_authenticate_for_authorize_transaction(java.lang.String authorizeIdentifier,
APIRequestCallback<Authorize> requestCallback)
Request authenticate for authorize transaction.
|
void |
request_authenticate_for_charge_transaction(java.lang.String chargeIdentifier,
APIRequestCallback<Charge> requestCallback)
Request authenticate for charge transaction.
|
void |
retrieveAddressFormats(APIRequestCallback<AddressFormatsResponse> requestCallback)
Retrieve address formats.
|
void |
retrieveAuthorize(java.lang.String identifier,
APIRequestCallback<Authorize> requestCallback)
Retrieve authorize.
|
void |
retrieveBINLookupBINLookup(java.lang.String binNumber,
APIRequestCallback<BINLookupResponse> requestCallback)
Retrieve bin lookup bin lookup.
|
void |
retrieveCharge(java.lang.String chargeId,
APIRequestCallback<Charge> requestCallback)
Retrieve charge.
|
void |
retrieveSaveCard(java.lang.String saveCardId,
APIRequestCallback<SaveCard> requestCallback)
Retrieve save card.
|
void |
updateCharge(java.lang.String chargeId,
APIRequestCallback<Charge> requestCallback)
Update charge.
|
private APIService apiHelper
private RequestManager requestManager
public void retrieveAuthorize(java.lang.String identifier, APIRequestCallback<Authorize> requestCallback)
identifier
- the identifierrequestCallback
- the request callbackpublic static GoSellAPI getInstance()
public void createCharge(CreateChargeRequest createChargeRequest, APIRequestCallback<Charge> requestCallback)
createChargeRequest
- the create charge requestrequestCallback
- the request callbackpublic void createSaveCard(CreateSaveCardRequest createSaveCardRequest, APIRequestCallback<SaveCard> requestCallback)
createSaveCardRequest
- the create save card requestrequestCallback
- the request callbackpublic void retrieveCharge(java.lang.String chargeId, APIRequestCallback<Charge> requestCallback)
chargeId
- the charge idrequestCallback
- the request callbackpublic void retrieveSaveCard(java.lang.String saveCardId, APIRequestCallback<SaveCard> requestCallback)
saveCardId
- the save card idrequestCallback
- the request callbackpublic void createAuthorize(CreateAuthorizeRequest createAuthorizeRequest, APIRequestCallback<Authorize> requestCallback)
createAuthorizeRequest
- the create authorize requestrequestCallback
- the request callbackpublic void authenticate_charge_transaction(java.lang.String chargeIdentifier, CreateOTPVerificationRequest createOTPRequest, APIRequestCallback<Charge> requestCallback)
chargeIdentifier
- the charge identifiercreateOTPRequest
- the create otp requestrequestCallback
- the request callbackpublic void authenticate_authorize_transaction(java.lang.String authorizeIdentifier, CreateOTPVerificationRequest createOTPRequest, APIRequestCallback<Authorize> requestCallback)
authorizeIdentifier
- the authorize identifiercreateOTPRequest
- the create otp requestrequestCallback
- the request callbackpublic void request_authenticate_for_charge_transaction(java.lang.String chargeIdentifier, APIRequestCallback<Charge> requestCallback)
chargeIdentifier
- the charge identifierrequestCallback
- the request callbackpublic void request_authenticate_for_authorize_transaction(java.lang.String authorizeIdentifier, APIRequestCallback<Authorize> requestCallback)
authorizeIdentifier
- the authorize identifierrequestCallback
- the request callbackpublic void updateCharge(java.lang.String chargeId, APIRequestCallback<Charge> requestCallback)
chargeId
- the charge idrequestCallback
- the request callbackpublic void retrieveBINLookupBINLookup(java.lang.String binNumber, APIRequestCallback<BINLookupResponse> requestCallback)
binNumber
- the bin numberrequestCallback
- the request callbackpublic void retrieveAddressFormats(APIRequestCallback<AddressFormatsResponse> requestCallback)
requestCallback
- the request callbackpublic void createTokenWithEncryptedCard(CreateTokenWithCardDataRequest createTokenRequest, APIRequestCallback<Token> requestCallback)
createTokenRequest
- the create token requestrequestCallback
- the request callbackpublic void createTokenWithExistingCard(CreateTokenWithExistingCardDataRequest createTokenWithExistingCardDataRequest, APIRequestCallback<Token> requestCallback)
createTokenWithExistingCardDataRequest
- the create token with existing card data requestrequestCallback
- the request callbackpublic void getPaymentOptions(PaymentOptionsRequest paymentOptionsRequest, APIRequestCallback<PaymentOptionsResponse> requestCallback)
paymentOptionsRequest
- the payment options requestrequestCallback
- the request callbackpublic void deleteCard(java.lang.String customerId, java.lang.String cardId, APIRequestCallback<DeleteCardResponse> requestCallback)
customerId
- cardId
-