Class: Adyen::API::RecurringService

Inherits:
SimpleSOAPClient show all
Defined in:
lib/adyen/api.rb,
lib/adyen/api.rb

Defined Under Namespace

Classes: DisableResponse, ListResponse

Constant Summary collapse

ENDPOINT_URI =
'https://pal-%s.adyen.com/pal/servlet/soap/Recurring'
LIST_LAYOUT =
<<EOS
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <recurring:listRecurringDetails xmlns:recurring="http://recurring.services.adyen.com">
      <recurring:request>
        <recurring:recurring>
          <recurring:contract>RECURRING</recurring:contract>
        </recurring:recurring>
        <recurring:merchantAccount>%s</recurring:merchantAccount>
        <recurring:shopperReference>%s</recurring:shopperReference>
      </recurring:request>
    </recurring:listRecurringDetails>
  </soap:Body>
</soap:Envelope>
EOS
DISABLE_LAYOUT =
<<EOS
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <recurring:disable xmlns:recurring="http://recurring.services.adyen.com">
      <recurring:request>
        <recurring:merchantAccount>%s</recurring:merchantAccount>
        <recurring:shopperReference>%s</recurring:shopperReference>
        %s
      </recurring:request>
    </recurring:disable>
  </soap:Body>
</soap:Envelope>
EOS
RECURRING_DETAIL_PARTIAL =
<<EOS
        <recurring:recurringDetailReference>%s</recurring:recurringDetailReference>
EOS

Constants inherited from SimpleSOAPClient

SimpleSOAPClient::CACERT

Instance Attribute Summary

Attributes inherited from SimpleSOAPClient

#params

Instance Method Summary collapse

Methods inherited from SimpleSOAPClient

#call_webservice_action, endpoint, #initialize

Constructor Details

This class inherits a constructor from Adyen::API::SimpleSOAPClient

Instance Method Details

#disableObject



289
290
291
# File 'lib/adyen/api.rb', line 289

def disable
  call_webservice_action('disable', disable_request_body, DisableResponse)
end

#listObject

TODO: rename to list_details and make shortcut method take the only necessary param



285
286
287
# File 'lib/adyen/api.rb', line 285

def list
  call_webservice_action('listRecurringDetails', list_request_body, ListResponse)
end