Class: Worldline::Connect::SDK::V1::Domain::AbstractCardPaymentMethodSpecificInput
- Inherits:
-
AbstractPaymentMethodSpecificInput
- Object
- Domain::DataObject
- AbstractPaymentMethodSpecificInput
- Worldline::Connect::SDK::V1::Domain::AbstractCardPaymentMethodSpecificInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb
Direct Known Subclasses
CardPaymentMethodSpecificInput, CardPaymentMethodSpecificInputBase
Instance Attribute Summary collapse
-
#acquirer_promotion_code ⇒ String
The current value of acquirer_promotion_code.
-
#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.
-
#recurring_payment_sequence_indicator ⇒ Object
deprecated
Deprecated.
Use recurring.recurringPaymentSequenceIndicator instead
-
#requires_approval ⇒ true/false
The current value of requires_approval.
-
#skip_authentication ⇒ Object
deprecated
Deprecated.
Use threeDSecure.skipAuthentication instead
-
#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.
-
#transaction_channel ⇒ String
The current value of transaction_channel.
-
#unscheduled_card_on_file_indicator ⇒ Object
deprecated
Deprecated.
Use unscheduledCardOnFileSequenceIndicator instead
-
#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
#acquirer_promotion_code ⇒ String
Returns the current value of acquirer_promotion_code.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def acquirer_promotion_code @acquirer_promotion_code end |
#authorization_mode ⇒ String
Returns the current value of authorization_mode.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def @authorization_mode end |
#customer_reference ⇒ String
Returns the current value of customer_reference.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def customer_reference @customer_reference end |
#initial_scheme_transaction_id ⇒ String
Returns the current value of initial_scheme_transaction_id.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def initial_scheme_transaction_id @initial_scheme_transaction_id end |
#recurring ⇒ Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails
Returns the current value of recurring.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def recurring @recurring end |
#recurring_payment_sequence_indicator ⇒ Object
Use recurring.recurringPaymentSequenceIndicator instead
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def recurring_payment_sequence_indicator @recurring_payment_sequence_indicator end |
#requires_approval ⇒ true/false
Returns the current value of requires_approval.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def requires_approval @requires_approval end |
#skip_authentication ⇒ Object
Use threeDSecure.skipAuthentication instead
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def skip_authentication @skip_authentication end |
#skip_fraud_service ⇒ true/false
Returns the current value of skip_fraud_service.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def skip_fraud_service @skip_fraud_service end |
#token ⇒ String
Returns the current value of token.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def token @token end |
#tokenize ⇒ true/false
Returns the current value of tokenize.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def tokenize @tokenize end |
#transaction_channel ⇒ String
Returns the current value of transaction_channel.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def transaction_channel @transaction_channel end |
#unscheduled_card_on_file_indicator ⇒ Object
Use unscheduledCardOnFileSequenceIndicator instead
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def unscheduled_card_on_file_indicator @unscheduled_card_on_file_indicator end |
#unscheduled_card_on_file_requestor ⇒ String
Returns the current value of unscheduled_card_on_file_requestor.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 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.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 28 def unscheduled_card_on_file_sequence_indicator @unscheduled_card_on_file_sequence_indicator end |
Instance Method Details
#from_hash(hash) ⇒ Object
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 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 84 def from_hash(hash) super if hash.has_key? 'acquirerPromotionCode' @acquirer_promotion_code = hash['acquirerPromotionCode'] end if hash.has_key? 'authorizationMode' @authorization_mode = 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? '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 ⇒ Hash
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb', line 64 def to_h hash = super hash['acquirerPromotionCode'] = @acquirer_promotion_code unless @acquirer_promotion_code.nil? hash['authorizationMode'] = @authorization_mode unless @authorization_mode.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['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil? hash['requiresApproval'] = @requires_approval unless @requires_approval.nil? hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil? hash['skipFraudService'] = @skip_fraud_service unless @skip_fraud_service.nil? hash['token'] = @token unless @token.nil? hash['tokenize'] = @tokenize unless @tokenize.nil? hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil? hash['unscheduledCardOnFileIndicator'] = @unscheduled_card_on_file_indicator unless @unscheduled_card_on_file_indicator.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 |