Class: Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificInputBase
- Inherits:
-
Definitions::AbstractPaymentMethodSpecificInput
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificInputBase
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#authorization_mode ⇒ Object
String.
-
#customer_reference ⇒ Object
String.
-
#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.
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#authorization_mode ⇒ Object
String
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 14 def @authorization_mode end |
#customer_reference ⇒ Object
String
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 17 def customer_reference @customer_reference end |
#recurring_payment_sequence_indicator ⇒ Object
String
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 20 def recurring_payment_sequence_indicator @recurring_payment_sequence_indicator end |
#requires_approval ⇒ Object
true/false
23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 23 def requires_approval @requires_approval end |
#skip_authentication ⇒ Object
true/false
26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 26 def skip_authentication @skip_authentication end |
#skip_fraud_service ⇒ Object
true/false
29 30 31 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 29 def skip_fraud_service @skip_fraud_service end |
#token ⇒ Object
String
32 33 34 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 32 def token @token end |
#tokenize ⇒ Object
true/false
35 36 37 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 35 def tokenize @tokenize end |
#transaction_channel ⇒ Object
String
38 39 40 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 38 def transaction_channel @transaction_channel 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 77 78 79 80 81 82 83 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 54 def from_hash(hash) super if hash.has_key?('authorizationMode') @authorization_mode = hash['authorizationMode'] end if hash.has_key?('customerReference') @customer_reference = hash['customerReference'] 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 end |
#to_h ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 40 def to_h hash = super add_to_hash(hash, 'authorizationMode', @authorization_mode) add_to_hash(hash, 'customerReference', @customer_reference) 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) hash end |