Class: Worldline::Connect::SDK::V1::Domain::AbstractMobilePaymentMethodSpecificInput
- Inherits:
-
AbstractPaymentMethodSpecificInput
- Object
- Domain::DataObject
- AbstractPaymentMethodSpecificInput
- Worldline::Connect::SDK::V1::Domain::AbstractMobilePaymentMethodSpecificInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb
Direct Known Subclasses
MobilePaymentMethodSpecificInput, MobilePaymentMethodSpecificInputHostedCheckout
Instance Attribute Summary collapse
-
#authorization_mode ⇒ String
The current value of authorization_mode.
-
#customer_reference ⇒ String
The current value of customer_reference.
-
#initial_scheme_transaction_id ⇒ String
The current value of initial_scheme_transaction_id.
-
#recurring ⇒ Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails
The current value of recurring.
-
#requires_approval ⇒ true/false
The current value of requires_approval.
-
#skip_fraud_service ⇒ true/false
The current value of skip_fraud_service.
-
#token ⇒ String
The current value of token.
-
#tokenize ⇒ true/false
The current value of tokenize.
-
#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.
Attributes inherited from AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#authorization_mode ⇒ String
Returns the current value of authorization_mode.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def end |
#customer_reference ⇒ String
Returns the current value of customer_reference.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def customer_reference @customer_reference end |
#initial_scheme_transaction_id ⇒ String
Returns the current value of initial_scheme_transaction_id.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def initial_scheme_transaction_id @initial_scheme_transaction_id end |
#recurring ⇒ Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails
Returns the current value of recurring.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def recurring @recurring end |
#requires_approval ⇒ true/false
Returns the current value of requires_approval.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def requires_approval @requires_approval end |
#skip_fraud_service ⇒ true/false
Returns the current value of skip_fraud_service.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def skip_fraud_service @skip_fraud_service end |
#token ⇒ String
Returns the current value of token.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def token @token end |
#tokenize ⇒ true/false
Returns the current value of tokenize.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def tokenize @tokenize end |
#unscheduled_card_on_file_requestor ⇒ String
Returns the current value of unscheduled_card_on_file_requestor.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 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.
23 24 25 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 23 def unscheduled_card_on_file_sequence_indicator @unscheduled_card_on_file_sequence_indicator end |
Instance Method Details
#from_hash(hash) ⇒ Object
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 91 92 93 94 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 61 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? 'initialSchemeTransactionId' @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] end if hash.has_key? 'recurring' raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash @recurring = Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring']) end if hash.has_key? 'requiresApproval' @requires_approval = hash['requiresApproval'] 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? '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 ⇒ Hash
46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_mobile_payment_method_specific_input.rb', line 46 def to_h hash = super hash['authorizationMode'] = unless .nil? hash['customerReference'] = @customer_reference unless @customer_reference.nil? hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil? hash['recurring'] = @recurring.to_h unless @recurring.nil? hash['requiresApproval'] = @requires_approval unless @requires_approval.nil? hash['skipFraudService'] = @skip_fraud_service unless @skip_fraud_service.nil? hash['token'] = @token unless @token.nil? hash['tokenize'] = @tokenize unless @tokenize.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 |