Class: Adyen::CheckoutOrder

Inherits:
Service
  • Object
show all
Defined in:
lib/adyen/services/checkout.rb

Instance Attribute Summary

Attributes inherited from Service

#service, #version

Instance Method Summary collapse

Methods inherited from Service

action_for_method_name

Constructor Details

#initialize(client, version = DEFAULT_VERSION) ⇒ CheckoutOrder

Returns a new instance of CheckoutOrder.



126
127
128
129
130
# File 'lib/adyen/services/checkout.rb', line 126

def initialize(client, version = DEFAULT_VERSION)
  @service = "Checkout"
  @client = client
  @version = version
end

Instance Method Details

#cancel(request, headers = {}) ⇒ Object



132
133
134
135
# File 'lib/adyen/services/checkout.rb', line 132

def cancel(request, headers = {})
  action = "orders/cancel"
  @client.call_adyen_api(@service, action, request, headers, @version)
end