Class: Adyen::Modifications
- Defined in:
- lib/adyen/services/checkout.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
- #amountUpdate(linkId, request, headers = {}) ⇒ Object
- #cancel(linkId, request, headers = {}) ⇒ Object
- #capture(linkId, request, headers = {}) ⇒ Object
- #genericCancel(request, headers = {}) ⇒ Object
-
#initialize(client, version = DEFAULT_VERSION) ⇒ Modifications
constructor
A new instance of Modifications.
- #refund(linkId, request, headers = {}) ⇒ Object
- #reversal(linkId, request, headers = {}) ⇒ Object
Methods inherited from Service
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ Modifications
Returns a new instance of Modifications.
156 157 158 159 160 |
# File 'lib/adyen/services/checkout.rb', line 156 def initialize(client, version = DEFAULT_VERSION) @service = "Checkout" @client = client @version = version end |
Instance Method Details
#amountUpdate(linkId, request, headers = {}) ⇒ Object
187 188 189 190 |
# File 'lib/adyen/services/checkout.rb', line 187 def amountUpdate(linkId, request, headers = {}) action = "payments/" + linkId + "/amountUpdates" @client.call_adyen_api(@service, action, request, headers, @version, false) end |
#cancel(linkId, request, headers = {}) ⇒ Object
167 168 169 170 |
# File 'lib/adyen/services/checkout.rb', line 167 def cancel(linkId, request, headers = {}) action = "payments/" + linkId + "/cancels" @client.call_adyen_api(@service, action, request, headers, @version, false) end |
#capture(linkId, request, headers = {}) ⇒ Object
162 163 164 165 |
# File 'lib/adyen/services/checkout.rb', line 162 def capture(linkId, request, headers = {}) action = "payments/" + linkId + "/captures" @client.call_adyen_api(@service, action, request, headers, @version, false) end |
#genericCancel(request, headers = {}) ⇒ Object
172 173 174 175 |
# File 'lib/adyen/services/checkout.rb', line 172 def genericCancel(request, headers = {}) action = "cancels" @client.call_adyen_api(@service, action, request, headers, @version) end |
#refund(linkId, request, headers = {}) ⇒ Object
177 178 179 180 |
# File 'lib/adyen/services/checkout.rb', line 177 def refund(linkId, request, headers = {}) action = "payments/" + linkId + "/refunds" @client.call_adyen_api(@service, action, request, headers, @version, false) end |
#reversal(linkId, request, headers = {}) ⇒ Object
182 183 184 185 |
# File 'lib/adyen/services/checkout.rb', line 182 def reversal(linkId, request, headers = {}) action = "payments/" + linkId + "/reversals" @client.call_adyen_api(@service, action, request, headers, @version, false) end |