lib/adyen/services/checkout.rb in adyen-ruby-api-library-6.0.0 vs lib/adyen/services/checkout.rb in adyen-ruby-api-library-6.1.0
- old
+ new
@@ -65,10 +65,14 @@
action = "orders"
args[1] ||= {} # optional headers arg
@client.call_adyen_api(@service, action, args[0], args[1], @version)
end
end
+
+ def apple_pay
+ @apple_pay ||= Adyen::CheckoutApplePay.new(@client, @version)
+ end
end
class CheckoutDetail < Service
def initialize(client, version = DEFAULT_VERSION)
@service = "Checkout"
@@ -125,9 +129,22 @@
@version = version
end
def cancel(request, headers = {})
action = "orders/cancel"
+ @client.call_adyen_api(@service, action, request, headers, @version)
+ end
+ end
+
+ class CheckoutApplePay < Service
+ def initialize(client, version = DEFAULT_VERSION)
+ @service = "Checkout"
+ @client = client
+ @version = version
+ end
+
+ def sessions(request, headers = {})
+ action = "applePay/sessions"
@client.call_adyen_api(@service, action, request, headers, @version)
end
end
end