Class: Ingenico::Connect::SDK::Domain::Payment::AbstractCardPaymentMethodSpecificInput
- Inherits:
-
Definitions::AbstractPaymentMethodSpecificInput
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- Ingenico::Connect::SDK::Domain::Payment::AbstractCardPaymentMethodSpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb
Direct Known Subclasses
CardPaymentMethodSpecificInput, CardPaymentMethodSpecificInputBase
Instance Attribute Summary collapse
-
#authorization_mode ⇒ Object
String.
-
#customer_reference ⇒ Object
String.
- #recurring ⇒ Object
-
#recurring_payment_sequence_indicator ⇒ Object
String.
-
#requires_approval ⇒ Object
true/false.
-
#skip_authentication ⇒ Object
true/false.
-
#skip_fraud_service ⇒ Object
true/false.
-
#token ⇒ Object
String.
-
#tokenize ⇒ Object
true/false.
-
#transaction_channel ⇒ Object
String.
-
#unscheduled_card_on_file_indicator ⇒ Object
String.
-
#unscheduled_card_on_file_requestor ⇒ Object
String.
-
#unscheduled_card_on_file_sequence_indicator ⇒ Object
String.
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#authorization_mode ⇒ Object
String
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 15 def end |
#customer_reference ⇒ Object
String
18 19 20 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 18 def customer_reference @customer_reference end |
#recurring ⇒ Object
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 21 def recurring @recurring end |
#recurring_payment_sequence_indicator ⇒ Object
String
Deprecated; Use recurring.recurringPaymentSequenceIndicator instead
26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 26 def recurring_payment_sequence_indicator @recurring_payment_sequence_indicator end |
#requires_approval ⇒ Object
true/false
29 30 31 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 29 def requires_approval @requires_approval end |
#skip_authentication ⇒ Object
true/false
Deprecated; Use threeDSecure.skipAuthentication instead
34 35 36 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 34 def skip_authentication @skip_authentication end |
#skip_fraud_service ⇒ Object
true/false
37 38 39 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 37 def skip_fraud_service @skip_fraud_service end |
#token ⇒ Object
String
40 41 42 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 40 def token @token end |
#tokenize ⇒ Object
true/false
43 44 45 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 43 def tokenize @tokenize end |
#transaction_channel ⇒ Object
String
46 47 48 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 46 def transaction_channel @transaction_channel end |
#unscheduled_card_on_file_indicator ⇒ Object
String
Deprecated; Use unscheduledCardOnFileSequenceIndicator instead
51 52 53 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 51 def unscheduled_card_on_file_indicator @unscheduled_card_on_file_indicator end |
#unscheduled_card_on_file_requestor ⇒ Object
String
54 55 56 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 54 def unscheduled_card_on_file_requestor @unscheduled_card_on_file_requestor end |
#unscheduled_card_on_file_sequence_indicator ⇒ Object
String
57 58 59 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 57 def unscheduled_card_on_file_sequence_indicator @unscheduled_card_on_file_sequence_indicator end |
Instance Method Details
#from_hash(hash) ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 77 def from_hash(hash) super if hash.has_key?('authorizationMode') = hash['authorizationMode'] end if hash.has_key?('customerReference') @customer_reference = hash['customerReference'] end if hash.has_key?('recurring') if !(hash['recurring'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] end @recurring = Ingenico::Connect::SDK::Domain::Payment::CardRecurrenceDetails.new_from_hash(hash['recurring']) end if hash.has_key?('recurringPaymentSequenceIndicator') @recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator'] end if hash.has_key?('requiresApproval') @requires_approval = hash['requiresApproval'] end if hash.has_key?('skipAuthentication') @skip_authentication = hash['skipAuthentication'] end if hash.has_key?('skipFraudService') @skip_fraud_service = hash['skipFraudService'] end if hash.has_key?('token') @token = hash['token'] end if hash.has_key?('tokenize') @tokenize = hash['tokenize'] end if hash.has_key?('transactionChannel') @transaction_channel = hash['transactionChannel'] end if hash.has_key?('unscheduledCardOnFileIndicator') @unscheduled_card_on_file_indicator = hash['unscheduledCardOnFileIndicator'] end if hash.has_key?('unscheduledCardOnFileRequestor') @unscheduled_card_on_file_requestor = hash['unscheduledCardOnFileRequestor'] end if hash.has_key?('unscheduledCardOnFileSequenceIndicator') @unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator'] end end |
#to_h ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb', line 59 def to_h hash = super add_to_hash(hash, 'authorizationMode', ) add_to_hash(hash, 'customerReference', @customer_reference) add_to_hash(hash, 'recurring', @recurring) add_to_hash(hash, 'recurringPaymentSequenceIndicator', @recurring_payment_sequence_indicator) add_to_hash(hash, 'requiresApproval', @requires_approval) add_to_hash(hash, 'skipAuthentication', @skip_authentication) add_to_hash(hash, 'skipFraudService', @skip_fraud_service) add_to_hash(hash, 'token', @token) add_to_hash(hash, 'tokenize', @tokenize) add_to_hash(hash, 'transactionChannel', @transaction_channel) add_to_hash(hash, 'unscheduledCardOnFileIndicator', @unscheduled_card_on_file_indicator) add_to_hash(hash, 'unscheduledCardOnFileRequestor', @unscheduled_card_on_file_requestor) add_to_hash(hash, 'unscheduledCardOnFileSequenceIndicator', @unscheduled_card_on_file_sequence_indicator) hash end |