Class: Worldline::Connect::SDK::V1::Domain::CardPaymentMethodSpecificInput
- Inherits:
-
AbstractCardPaymentMethodSpecificInput
- Object
- Domain::DataObject
- AbstractPaymentMethodSpecificInput
- AbstractCardPaymentMethodSpecificInput
- Worldline::Connect::SDK::V1::Domain::CardPaymentMethodSpecificInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb
Instance Attribute Summary collapse
-
#card ⇒ Worldline::Connect::SDK::V1::Domain::Card
The current value of card.
-
#click_to_pay ⇒ Worldline::Connect::SDK::V1::Domain::ClickToPayInput
The current value of click_to_pay.
-
#external_cardholder_authentication_data ⇒ Object
deprecated
Deprecated.
Use threeDSecure.externalCardholderAuthenticationData instead
-
#is_recurring ⇒ true/false
The current value of is_recurring.
-
#merchant_initiated_reason_indicator ⇒ String
The current value of merchant_initiated_reason_indicator.
-
#network_token_data ⇒ Worldline::Connect::SDK::V1::Domain::SchemeTokenData
The current value of network_token_data.
-
#return_url ⇒ Object
deprecated
Deprecated.
Use threeDSecure.redirectionData.returnUrl instead
-
#three_d_secure ⇒ Worldline::Connect::SDK::V1::Domain::ThreeDSecure
The current value of three_d_secure.
Attributes inherited from AbstractCardPaymentMethodSpecificInput
#acquirer_promotion_code, #authorization_mode, #customer_reference, #initial_scheme_transaction_id, #recurring, #recurring_payment_sequence_indicator, #requires_approval, #skip_authentication, #skip_fraud_service, #token, #tokenize, #transaction_channel, #unscheduled_card_on_file_indicator, #unscheduled_card_on_file_requestor, #unscheduled_card_on_file_sequence_indicator
Attributes inherited from AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#card ⇒ Worldline::Connect::SDK::V1::Domain::Card
Returns the current value of card.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 25 def card @card end |
#click_to_pay ⇒ Worldline::Connect::SDK::V1::Domain::ClickToPayInput
Returns the current value of click_to_pay.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 25 def click_to_pay @click_to_pay end |
#external_cardholder_authentication_data ⇒ Object
Use threeDSecure.externalCardholderAuthenticationData instead
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 25 def external_cardholder_authentication_data @external_cardholder_authentication_data end |
#is_recurring ⇒ true/false
Returns the current value of is_recurring.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 25 def is_recurring @is_recurring end |
#merchant_initiated_reason_indicator ⇒ String
Returns the current value of merchant_initiated_reason_indicator.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 25 def merchant_initiated_reason_indicator @merchant_initiated_reason_indicator end |
#network_token_data ⇒ Worldline::Connect::SDK::V1::Domain::SchemeTokenData
Returns the current value of network_token_data.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 25 def network_token_data @network_token_data end |
#return_url ⇒ Object
Use threeDSecure.redirectionData.returnUrl instead
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 25 def return_url @return_url end |
#three_d_secure ⇒ Worldline::Connect::SDK::V1::Domain::ThreeDSecure
Returns the current value of three_d_secure.
25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 25 def three_d_secure @three_d_secure end |
Instance Method Details
#from_hash(hash) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 59 def from_hash(hash) super if hash.has_key? 'card' raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash @card = Worldline::Connect::SDK::V1::Domain::Card.new_from_hash(hash['card']) end if hash.has_key? 'clickToPay' raise TypeError, "value '%s' is not a Hash" % [hash['clickToPay']] unless hash['clickToPay'].is_a? Hash @click_to_pay = Worldline::Connect::SDK::V1::Domain::ClickToPayInput.new_from_hash(hash['clickToPay']) end if hash.has_key? 'externalCardholderAuthenticationData' raise TypeError, "value '%s' is not a Hash" % [hash['externalCardholderAuthenticationData']] unless hash['externalCardholderAuthenticationData'].is_a? Hash @external_cardholder_authentication_data = Worldline::Connect::SDK::V1::Domain::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData']) end if hash.has_key? 'isRecurring' @is_recurring = hash['isRecurring'] end if hash.has_key? 'merchantInitiatedReasonIndicator' @merchant_initiated_reason_indicator = hash['merchantInitiatedReasonIndicator'] end if hash.has_key? 'networkTokenData' raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenData']] unless hash['networkTokenData'].is_a? Hash @network_token_data = Worldline::Connect::SDK::V1::Domain::SchemeTokenData.new_from_hash(hash['networkTokenData']) end if hash.has_key? 'returnUrl' @return_url = hash['returnUrl'] end if hash.has_key? 'threeDSecure' raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash @three_d_secure = Worldline::Connect::SDK::V1::Domain::ThreeDSecure.new_from_hash(hash['threeDSecure']) end end |
#to_h ⇒ Hash
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb', line 46 def to_h hash = super hash['card'] = @card.to_h unless @card.nil? hash['clickToPay'] = @click_to_pay.to_h unless @click_to_pay.nil? hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h unless @external_cardholder_authentication_data.nil? hash['isRecurring'] = @is_recurring unless @is_recurring.nil? hash['merchantInitiatedReasonIndicator'] = @merchant_initiated_reason_indicator unless @merchant_initiated_reason_indicator.nil? hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil? hash['returnUrl'] = @return_url unless @return_url.nil? hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil? hash end |