Class: Adyen::LegacyRecurringApi
- Defined in:
- lib/adyen/services/recurring/recurring_api.rb
Overview
NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech
Do not edit the class manually.
Instance Attribute Summary collapse
-
#service ⇒ Object
Returns the value of attribute service.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #create_permit(request, headers: {}) ⇒ Object deprecated Deprecated.
-
#disable(request, headers: {}) ⇒ Object
Disable stored payment details.
- #disable_permit(request, headers: {}) ⇒ Object deprecated Deprecated.
-
#initialize(client, version = DEFAULT_VERSION) ⇒ LegacyRecurringApi
constructor
A new instance of LegacyRecurringApi.
-
#list_recurring_details(request, headers: {}) ⇒ Object
Get stored payment details.
-
#notify_shopper(request, headers: {}) ⇒ Object
Ask issuer to notify the shopper.
-
#schedule_account_updater(request, headers: {}) ⇒ Object
Schedule running the Account Updater.
Methods inherited from Service
action_for_method_name, #create_query_string
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ LegacyRecurringApi
Returns a new instance of LegacyRecurringApi.
11 12 13 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 11 def initialize(client, version = DEFAULT_VERSION) super(client, version, 'Recurring') end |
Instance Attribute Details
#service ⇒ Object
Returns the value of attribute service.
9 10 11 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 9 def service @service end |
#version ⇒ Object
Returns the value of attribute version.
9 10 11 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 9 def version @version end |
Instance Method Details
#create_permit(request, headers: {}) ⇒ Object
Create new permits linked to a recurring contract.
Deprecated since Adyen Recurring API v68
19 20 21 22 23 24 25 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 19 def create_permit(request, headers: {}) Adyen::Deprecation.warn(:create_permit, since: 'Adyen Recurring API v68') endpoint = build_endpoint('/createPermit') action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#disable(request, headers: {}) ⇒ Object
Disable stored payment details
28 29 30 31 32 33 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 28 def disable(request, headers: {}) endpoint = build_endpoint('/disable') action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#disable_permit(request, headers: {}) ⇒ Object
Disable an existing permit.
Deprecated since Adyen Recurring API v68
39 40 41 42 43 44 45 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 39 def disable_permit(request, headers: {}) Adyen::Deprecation.warn(:disable_permit, since: 'Adyen Recurring API v68') endpoint = build_endpoint('/disablePermit') action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#list_recurring_details(request, headers: {}) ⇒ Object
Get stored payment details
48 49 50 51 52 53 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 48 def list_recurring_details(request, headers: {}) endpoint = build_endpoint('/listRecurringDetails') action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#notify_shopper(request, headers: {}) ⇒ Object
Ask issuer to notify the shopper
56 57 58 59 60 61 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 56 def notify_shopper(request, headers: {}) endpoint = build_endpoint('/notifyShopper') action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |
#schedule_account_updater(request, headers: {}) ⇒ Object
Schedule running the Account Updater
64 65 66 67 68 69 |
# File 'lib/adyen/services/recurring/recurring_api.rb', line 64 def schedule_account_updater(request, headers: {}) endpoint = build_endpoint('/scheduleAccountUpdater') action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end |