Class: CustomerLinkService
- Inherits:
-
Object
- Object
- CustomerLinkService
- Defined in:
- lib/CustomerLinkService.rb
Instance Method Summary (collapse)
-
- (IATSResponse) createACHEFTCustomerCode(createACHEFTCustomerCodeV1)
Description This service is for create a customer code for a donor using direct debit.
-
- (IATSResponse) createCreditCardCustomerCode(createCreditCardCustomerCodeV1)
Description This service is for create a customer code for a donor using a credit card.
-
- (IATSResponse) deleteCustomerCode(deleteCustomerCodeV1)
Description This service is for delete an existing customer code.
-
- (IATSResponse) getCustomerCodeDetail(getCustomerCodeDetailV1)
Description This service is for get the details of an existing customer code.
-
- (CustomerLinkService) initialize(endpoint_url)
constructor
Creates instance for the specified endpoint_url.
-
- (IATSResponse) updateACHEFTCustomerCode(updateACHEFTCustomerCodeV1)
Description This service is for when you want to create a credit card customer code (Recurring is set to false) and to process a cedit card transaction at the same time.
-
- (IATSResponse) updateCreditCardCustomerCode(updateCreditCardCustomerCodeV1)
Description This service is for when you want to create a credit card customer code (Recurring is set to false) and to process a cedit card transaction at the same time.
Constructor Details
- (CustomerLinkService) initialize(endpoint_url)
Creates instance for the specified endpoint_url. If endpoint_url is nil, Creates the instance for NA region.
8 9 10 11 |
# File 'lib/CustomerLinkService.rb', line 8 def initialize(endpoint_url) @service = CustomerLinkSoap.new(endpoint_url) @service.return_response_as_xml = true end |
Instance Method Details
- (IATSResponse) createACHEFTCustomerCode(createACHEFTCustomerCodeV1)
Description
This service is for create a customer code for a donor using direct debit.
37 38 39 40 41 |
# File 'lib/CustomerLinkService.rb', line 37 def createACHEFTCustomerCode(createACHEFTCustomerCodeV1) res = @service.createACHEFTCustomerCode(createACHEFTCustomerCodeV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["CreateACHEFTCustomerCodeV1Response"]["CreateACHEFTCustomerCodeV1Result"]) end |
- (IATSResponse) createCreditCardCustomerCode(createCreditCardCustomerCodeV1)
Description
This service is for create a customer code for a donor using a credit card.
22 23 24 25 26 |
# File 'lib/CustomerLinkService.rb', line 22 def createCreditCardCustomerCode(createCreditCardCustomerCodeV1) res = @service.createCreditCardCustomerCode(createCreditCardCustomerCodeV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["CreateCreditCardCustomerCodeV1Response"]["CreateCreditCardCustomerCodeV1Result"]) end |
- (IATSResponse) deleteCustomerCode(deleteCustomerCodeV1)
Description
This service is for delete an existing customer code.
82 83 84 85 86 |
# File 'lib/CustomerLinkService.rb', line 82 def deleteCustomerCode(deleteCustomerCodeV1) res = @service.deleteCustomerCode(deleteCustomerCodeV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["DeleteCustomerCodeV1Response"]["DeleteCustomerCodeV1Result"]) end |
- (IATSResponse) getCustomerCodeDetail(getCustomerCodeDetailV1)
Description
This service is for get the details of an existing customer code.
97 98 99 100 101 |
# File 'lib/CustomerLinkService.rb', line 97 def getCustomerCodeDetail(getCustomerCodeDetailV1) res = @service.getCustomerCodeDetail(getCustomerCodeDetailV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["GetCustomerCodeDetailV1Response"]["GetCustomerCodeDetailV1Result"]) end |
- (IATSResponse) updateACHEFTCustomerCode(updateACHEFTCustomerCodeV1)
Description
This service is for when you want to create a credit card customer code (Recurring is set to false) and to process a cedit card transaction at the same time.
67 68 69 70 71 |
# File 'lib/CustomerLinkService.rb', line 67 def updateACHEFTCustomerCode(updateACHEFTCustomerCodeV1) res = @service.updateACHEFTCustomerCode(updateACHEFTCustomerCodeV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["UpdateACHEFTCustomerCodeV1Response"]["UpdateACHEFTCustomerCodeV1Result"]) end |
- (IATSResponse) updateCreditCardCustomerCode(updateCreditCardCustomerCodeV1)
Description
This service is for when you want to create a credit card customer code (Recurring is set to false) and to process a cedit card transaction at the same time.
52 53 54 55 56 |
# File 'lib/CustomerLinkService.rb', line 52 def updateCreditCardCustomerCode(updateCreditCardCustomerCodeV1) res = @service.updateCreditCardCustomerCode(updateCreditCardCustomerCodeV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["UpdateCreditCardCustomerCodeV1Response"]["UpdateCreditCardCustomerCodeV1Result"]) end |