Class: Ingenico::Direct::SDK::Domain::CardPaymentMethodSpecificInputBase
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::CardPaymentMethodSpecificInputBase
- Defined in:
- lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb
Instance Attribute Summary collapse
-
#authorization_mode ⇒ String
The current value of authorization_mode.
-
#initial_scheme_transaction_id ⇒ String
The current value of initial_scheme_transaction_id.
-
#payment_product5100_specific_input ⇒ Ingenico::Direct::SDK::Domain::PaymentProduct5100SpecificInput
The current value of payment_product5100_specific_input.
-
#payment_product_id ⇒ Integer
The current value of payment_product_id.
-
#recurring ⇒ Ingenico::Direct::SDK::Domain::CardRecurrenceDetails
The current value of recurring.
-
#three_d_secure ⇒ Ingenico::Direct::SDK::Domain::ThreeDSecureBase
The current value of three_d_secure.
-
#token ⇒ String
The current value of token.
-
#tokenize ⇒ true/false
The current value of tokenize.
-
#transaction_channel ⇒ String
The current value of transaction_channel.
-
#unscheduled_card_on_file_requestor ⇒ String
The current value of unscheduled_card_on_file_requestor.
-
#unscheduled_card_on_file_sequence_indicator ⇒ String
The current value of unscheduled_card_on_file_sequence_indicator.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#authorization_mode ⇒ String
Returns the current value of authorization_mode.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def end |
#initial_scheme_transaction_id ⇒ String
Returns the current value of initial_scheme_transaction_id.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def initial_scheme_transaction_id @initial_scheme_transaction_id end |
#payment_product5100_specific_input ⇒ Ingenico::Direct::SDK::Domain::PaymentProduct5100SpecificInput
Returns the current value of payment_product5100_specific_input.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def payment_product5100_specific_input @payment_product5100_specific_input end |
#payment_product_id ⇒ Integer
Returns the current value of payment_product_id.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def payment_product_id @payment_product_id end |
#recurring ⇒ Ingenico::Direct::SDK::Domain::CardRecurrenceDetails
Returns the current value of recurring.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def recurring @recurring end |
#three_d_secure ⇒ Ingenico::Direct::SDK::Domain::ThreeDSecureBase
Returns the current value of three_d_secure.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def three_d_secure @three_d_secure end |
#token ⇒ String
Returns the current value of token.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def token @token end |
#tokenize ⇒ true/false
Returns the current value of tokenize.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def tokenize @tokenize end |
#transaction_channel ⇒ String
Returns the current value of transaction_channel.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def transaction_channel @transaction_channel end |
#unscheduled_card_on_file_requestor ⇒ String
Returns the current value of unscheduled_card_on_file_requestor.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def unscheduled_card_on_file_requestor @unscheduled_card_on_file_requestor end |
#unscheduled_card_on_file_sequence_indicator ⇒ String
Returns the current value of unscheduled_card_on_file_sequence_indicator.
24 25 26 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 24 def unscheduled_card_on_file_sequence_indicator @unscheduled_card_on_file_sequence_indicator end |
Instance Method Details
#from_hash(hash) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 54 def from_hash(hash) super = hash['authorizationMode'] if hash.key? 'authorizationMode' @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] if hash.key? 'initialSchemeTransactionId' if hash.key? 'paymentProduct5100SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5100SpecificInput']] unless hash['paymentProduct5100SpecificInput'].is_a? Hash @payment_product5100_specific_input = Ingenico::Direct::SDK::Domain::PaymentProduct5100SpecificInput.new_from_hash(hash['paymentProduct5100SpecificInput']) end @payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId' if hash.key? 'recurring' raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash @recurring = Ingenico::Direct::SDK::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring']) end if hash.key? 'threeDSecure' raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash @three_d_secure = Ingenico::Direct::SDK::Domain::ThreeDSecureBase.new_from_hash(hash['threeDSecure']) end @token = hash['token'] if hash.key? 'token' @tokenize = hash['tokenize'] if hash.key? 'tokenize' @transaction_channel = hash['transactionChannel'] if hash.key? 'transactionChannel' @unscheduled_card_on_file_requestor = hash['unscheduledCardOnFileRequestor'] if hash.key? 'unscheduledCardOnFileRequestor' @unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator'] if hash.key? 'unscheduledCardOnFileSequenceIndicator' end |
#to_h ⇒ Hash
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb', line 38 def to_h hash = super hash['authorizationMode'] = unless .nil? hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil? hash['paymentProduct5100SpecificInput'] = @payment_product5100_specific_input.to_h if @payment_product5100_specific_input hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil? hash['recurring'] = @recurring.to_h if @recurring hash['threeDSecure'] = @three_d_secure.to_h if @three_d_secure hash['token'] = @token unless @token.nil? hash['tokenize'] = @tokenize unless @tokenize.nil? hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil? hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil? hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil? hash end |