ElavonIntegration.apxc
Method | Return | Parameters | Description |
---|---|---|---|
setMock | void | ODataRequestMock mockRequest | Method used to call mock data for test purposes |
createElavonRequest | ODataRequest | String endpoint, Boolean insertMessages, Boolean hasMultipleRequests | Starts an Elavon request. If the token has not been generated, it will generate in this instance. |
buildAndAddApplication | Map<Boolean,String> | Id applicationId, TestingParameters testingParameters, Boolean insertMessages | Helper method called by the flow (Flow_BuildAndAddApplication) to start the application creation. This method aglomerates all the methods necessary to create the application, as well query definitions to the necessary objects. |
getOfferPackages | GetOfferPackagesResponse | Id applicationId, String mcc, Boolean isPartOfMultipleRequests, Boolean insertMessages | Retrieves all available packages from Elavon. It is required that a mcc iso code is set to perform this request. |
getEquipmentOffer | GetEquipmentOfferResponse | String equipmentOfferingRef, Boolean isPartOfMultipleRequests, Boolean insertMessages | Retrieves an equipament offer, based on the equipment offer reference, that can either be EQ_OFFER or AQ_ONLY. |
getAcquiringOffer | GetAcquiringOfferResponse | String transactionPricingRef, Boolean isPartOfMultipleRequests, Boolean insertMessages | Retreives the aquiring offer based on the transaction price reference (40672) |
addApplication | AddApplicationResponse | Application__c application, Merchant_Account__c merchantAccount, Account mainAccount, Contact mainContact, GetEquipmentOfferResponse equipmentOffer, GetAcquiringOfferResponse acquiringOffer, String packageRef, TestingParameters testingParameters, Boolean isPartOfMultipleRequests, Boolean insertMessages | Main method to create the application for Elavon. In the method, it is set all information related to merchants, outlets, and where is used the retrieved information from get_offer_packages, get_equipment_offer and get_acquiring_offer. |
uploadDocument | UploadDocumentResponse | Id applicationId, String applicationReference, Boolean isPartOfMultipleRequests, Boolean insertMessages, String entityId, DocumentParameters params | Method used to deploy documents to Elavon. It is used to send proof documents (Id, Address, Business and Bank) as well for the signed application. |
submitDocuments | Map<Boolean,String> | Id applicationId, String applicationReference, Boolean isPartOfMultipleRequests, String ownerRef, DocumentParameters params, Boolean insertMessages | Auxiliary method that is called by a flow apex class (Flow_SubmitDocuments). |
submitApplication | SubmitApplicationResponse | Id merchantAccountId, String applicationReference, Boolean isPartOfMultipleRequests, Boolean insertMessages | Method that confirms the sumbission of an application to Elavon. |
submitApplicationMap | Map<Boolean,List<String>> | Id applicationId, String applicationReference, Boolean isPartOfMultipleRequests, Boolean insertMessages | Auxiliary method that is called by a flow apex class (Flow_SubmitApplication). |
applicationStatusCheck | ApplicationStatusCheckResponse | Id applicationId, String applicationReference, Boolean getSignerDetails, Boolean getApplicationDocuments, Boolean isPartOfMultipleRequests | Method that checks if the application status as changed and confirms if Elavon recieved correctly the application. |
applicationStatusCheck | Map<String,List<String>> | Id applicationId, String applicationReference, Boolean isPartOfMultipleRequests | Auxiliary method that is called by a flow apex class (Flow_CheckApplicationStatus). |
ElavonIntegrationTest.apxc
Method | Description |
---|---|
setupData | |
testAddApplication_ReturnCode200 | |
testAddApplication_ReturnCode400 | |
testAddApplication_PackageRef_BLINK_40672 | |
testAddApplication_PackageRef_TERMINAL_40672 | |
testSubmitApplication_ReturnCode200 | |
testSubmitApplication_ReturnCode400 | |
testApplicationStatusCheck_ReturnCode200 | |
testApplicationStatusCheck_ReturnCode400 | |
testUploadDocument_ReturnCode200 | |
testUploadDocument_ReturnCode200_WithMultipleFiles | |
testUploadDocument_ReturnCode400 | |
testGetOfferPackages_ReturnCode200 | |
testGetOfferPackages_ReturnCode400 | |
testGetEquipmentOffer_ReturnCode200 | |
testGetEquipmentOffer_ReturnCode400 | |
testGetAcquiringOffer_ReturnCode200 | |
testGetAcquiringOffer_ReturnCode400 |
Flow_BuildAndAddApplication.apxc
Flow_BuildAndAddApplicationTest.apxc
Flow_SubmitDocuments.apxc
Flow_SubmitDocumentsTest.apxc
Flow_SubmitApplication.apxc
Flow_SubmitApplicationTest.apxc
Flow_CheckStatusApplication.apxc
Flow_CheckStatusApplicationTest.apxc