From 62a82a3a9623d4f59169fe1024c854c1da080af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20Rodr=C3=ADguez?= <127134616+armando-rodriguez-cko@users.noreply.github.com> Date: Thu, 9 May 2024 14:25:06 +0200 Subject: [PATCH] Ideal Payment Update (CS2). Sessions Authentication Type Update (#142) * Update auth type sessions * Update Ideal payment request --- lib/checkout_sdk/payments/source/apm/ideal_source.rb | 5 +---- lib/checkout_sdk/sessions/authentication_type.rb | 3 +++ .../payments/request_apm_payments_integration_spec.rb | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/checkout_sdk/payments/source/apm/ideal_source.rb b/lib/checkout_sdk/payments/source/apm/ideal_source.rb index 1aaa628..7eccd66 100644 --- a/lib/checkout_sdk/payments/source/apm/ideal_source.rb +++ b/lib/checkout_sdk/payments/source/apm/ideal_source.rb @@ -2,15 +2,12 @@ module CheckoutSdk module Payments - # @!attribute bic - # @return [String] # @!attribute description # @return [String] # @!attribute language # @return [String] class IdealSource < PaymentSource - attr_accessor :bic, - :description, + attr_accessor :description, :language def initialize diff --git a/lib/checkout_sdk/sessions/authentication_type.rb b/lib/checkout_sdk/sessions/authentication_type.rb index 8a4e98e..19c8496 100644 --- a/lib/checkout_sdk/sessions/authentication_type.rb +++ b/lib/checkout_sdk/sessions/authentication_type.rb @@ -5,6 +5,9 @@ module Sessions module AuthenticationType REGULAR = 'regular' RECURRING = 'recurring' + INSTALLMENT = 'installment' + MAINTAIN_CARD = 'maintain_card' + ADD_CARD = 'add_card' end end end diff --git a/spec/checkout_sdk/payments/request_apm_payments_integration_spec.rb b/spec/checkout_sdk/payments/request_apm_payments_integration_spec.rb index 0226b80..3224f6e 100644 --- a/spec/checkout_sdk/payments/request_apm_payments_integration_spec.rb +++ b/spec/checkout_sdk/payments/request_apm_payments_integration_spec.rb @@ -119,10 +119,9 @@ end end - context 'when requesting Ideal source payment' do + context 'when requesting Ideal source payment', skip: 'unavailable' do it 'should request payment correctly' do source = CheckoutSdk::Payments::IdealSource.new - source.bic = 'INGBNL2A' source.description = 'ORD50234E89' source.language = 'nl'