Class: OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInput
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb
Instance Attribute Summary collapse
-
#allow_dynamic_linking ⇒ true/false
The current value of allow_dynamic_linking.
-
#authorization_mode ⇒ String
The current value of authorization_mode.
-
#card ⇒ OnlinePayments::SDK::Domain::Card
The current value of card.
-
#card_on_file_recurring_expiration ⇒ String
The current value of card_on_file_recurring_expiration.
-
#card_on_file_recurring_frequency ⇒ String
The current value of card_on_file_recurring_frequency.
-
#currency_conversion ⇒ OnlinePayments::SDK::Domain::CurrencyConversionInput
The current value of currency_conversion.
-
#initial_scheme_transaction_id ⇒ String
The current value of initial_scheme_transaction_id.
-
#is_recurring ⇒ true/false
The current value of is_recurring.
-
#payment_product130_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput
The current value of payment_product130_specific_input.
-
#payment_product3012_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput
The current value of payment_product3012_specific_input.
-
#payment_product3208_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput
The current value of payment_product3208_specific_input.
-
#payment_product3209_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput
The current value of payment_product3209_specific_input.
-
#payment_product5002_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct5002SpecificInput
The current value of payment_product5002_specific_input.
-
#payment_product_id ⇒ Integer
The current value of payment_product_id.
-
#recurring ⇒ OnlinePayments::SDK::Domain::CardRecurrenceDetails
The current value of recurring.
-
#return_url ⇒ String
The current value of return_url.
-
#scheme_reference_data ⇒ String
The current value of scheme_reference_data.
-
#skip_authentication ⇒ true/false
The current value of skip_authentication.
-
#three_d_secure ⇒ OnlinePayments::SDK::Domain::ThreeDSecure
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 OnlinePayments::SDK::DataObject
Instance Attribute Details
#allow_dynamic_linking ⇒ true/false
Returns the current value of allow_dynamic_linking.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def allow_dynamic_linking @allow_dynamic_linking end |
#authorization_mode ⇒ String
Returns the current value of authorization_mode.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def @authorization_mode end |
#card ⇒ OnlinePayments::SDK::Domain::Card
Returns the current value of card.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def card @card end |
#card_on_file_recurring_expiration ⇒ String
Returns the current value of card_on_file_recurring_expiration.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def card_on_file_recurring_expiration @card_on_file_recurring_expiration end |
#card_on_file_recurring_frequency ⇒ String
Returns the current value of card_on_file_recurring_frequency.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def card_on_file_recurring_frequency @card_on_file_recurring_frequency end |
#currency_conversion ⇒ OnlinePayments::SDK::Domain::CurrencyConversionInput
Returns the current value of currency_conversion.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def currency_conversion @currency_conversion end |
#initial_scheme_transaction_id ⇒ String
Returns the current value of initial_scheme_transaction_id.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def initial_scheme_transaction_id @initial_scheme_transaction_id end |
#is_recurring ⇒ true/false
Returns the current value of is_recurring.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def is_recurring @is_recurring end |
#payment_product130_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput
Returns the current value of payment_product130_specific_input.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def payment_product130_specific_input @payment_product130_specific_input end |
#payment_product3012_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput
Returns the current value of payment_product3012_specific_input.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def payment_product3012_specific_input @payment_product3012_specific_input end |
#payment_product3208_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput
Returns the current value of payment_product3208_specific_input.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def payment_product3208_specific_input @payment_product3208_specific_input end |
#payment_product3209_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput
Returns the current value of payment_product3209_specific_input.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def payment_product3209_specific_input @payment_product3209_specific_input end |
#payment_product5002_specific_input ⇒ OnlinePayments::SDK::Domain::PaymentProduct5002SpecificInput
Returns the current value of payment_product5002_specific_input.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def payment_product5002_specific_input @payment_product5002_specific_input end |
#payment_product_id ⇒ Integer
Returns the current value of payment_product_id.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def payment_product_id @payment_product_id end |
#recurring ⇒ OnlinePayments::SDK::Domain::CardRecurrenceDetails
Returns the current value of recurring.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def recurring @recurring end |
#return_url ⇒ String
Returns the current value of return_url.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def return_url @return_url end |
#scheme_reference_data ⇒ String
Returns the current value of scheme_reference_data.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def scheme_reference_data @scheme_reference_data end |
#skip_authentication ⇒ true/false
Returns the current value of skip_authentication.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def skip_authentication @skip_authentication end |
#three_d_secure ⇒ OnlinePayments::SDK::Domain::ThreeDSecure
Returns the current value of three_d_secure.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def three_d_secure @three_d_secure end |
#token ⇒ String
Returns the current value of token.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def token @token end |
#tokenize ⇒ true/false
Returns the current value of tokenize.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def tokenize @tokenize end |
#transaction_channel ⇒ String
Returns the current value of transaction_channel.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def transaction_channel @transaction_channel end |
#unscheduled_card_on_file_requestor ⇒ String
Returns the current value of unscheduled_card_on_file_requestor.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 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.
42 43 44 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 42 def unscheduled_card_on_file_sequence_indicator @unscheduled_card_on_file_sequence_indicator end |
Instance Method Details
#from_hash(hash) ⇒ Object
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 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 98 def from_hash(hash) super @allow_dynamic_linking = hash['allowDynamicLinking'] if hash.key? 'allowDynamicLinking' @authorization_mode = hash['authorizationMode'] if hash.key? 'authorizationMode' if hash.key? 'card' raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash @card = OnlinePayments::SDK::Domain::Card.new_from_hash(hash['card']) end @card_on_file_recurring_expiration = hash['cardOnFileRecurringExpiration'] if hash.key? 'cardOnFileRecurringExpiration' @card_on_file_recurring_frequency = hash['cardOnFileRecurringFrequency'] if hash.key? 'cardOnFileRecurringFrequency' if hash.key? 'currencyConversion' raise TypeError, "value '%s' is not a Hash" % [hash['currencyConversion']] unless hash['currencyConversion'].is_a? Hash @currency_conversion = OnlinePayments::SDK::Domain::CurrencyConversionInput.new_from_hash(hash['currencyConversion']) end @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] if hash.key? 'initialSchemeTransactionId' @is_recurring = hash['isRecurring'] if hash.key? 'isRecurring' if hash.key? 'paymentProduct130SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash @payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput']) end if hash.key? 'paymentProduct3012SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012SpecificInput']] unless hash['paymentProduct3012SpecificInput'].is_a? Hash @payment_product3012_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput.new_from_hash(hash['paymentProduct3012SpecificInput']) end if hash.key? 'paymentProduct3208SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3208SpecificInput']] unless hash['paymentProduct3208SpecificInput'].is_a? Hash @payment_product3208_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput.new_from_hash(hash['paymentProduct3208SpecificInput']) end if hash.key? 'paymentProduct3209SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3209SpecificInput']] unless hash['paymentProduct3209SpecificInput'].is_a? Hash @payment_product3209_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput.new_from_hash(hash['paymentProduct3209SpecificInput']) end if hash.key? 'paymentProduct5002SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5002SpecificInput']] unless hash['paymentProduct5002SpecificInput'].is_a? Hash @payment_product5002_specific_input = OnlinePayments::SDK::Domain::PaymentProduct5002SpecificInput.new_from_hash(hash['paymentProduct5002SpecificInput']) 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 = OnlinePayments::SDK::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring']) end @return_url = hash['returnUrl'] if hash.key? 'returnUrl' @scheme_reference_data = hash['schemeReferenceData'] if hash.key? 'schemeReferenceData' @skip_authentication = hash['skipAuthentication'] if hash.key? 'skipAuthentication' if hash.key? 'threeDSecure' raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash @three_d_secure = OnlinePayments::SDK::Domain::ThreeDSecure.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
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 95 96 |
# File 'lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb', line 69 def to_h hash = super hash['allowDynamicLinking'] = @allow_dynamic_linking unless @allow_dynamic_linking.nil? hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil? hash['card'] = @card.to_h if @card hash['cardOnFileRecurringExpiration'] = @card_on_file_recurring_expiration unless @card_on_file_recurring_expiration.nil? hash['cardOnFileRecurringFrequency'] = @card_on_file_recurring_frequency unless @card_on_file_recurring_frequency.nil? hash['currencyConversion'] = @currency_conversion.to_h if @currency_conversion hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil? hash['isRecurring'] = @is_recurring unless @is_recurring.nil? hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h if @payment_product3012_specific_input hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h if @payment_product3208_specific_input hash['paymentProduct3209SpecificInput'] = @payment_product3209_specific_input.to_h if @payment_product3209_specific_input hash['paymentProduct5002SpecificInput'] = @payment_product5002_specific_input.to_h if @payment_product5002_specific_input hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil? hash['recurring'] = @recurring.to_h if @recurring hash['returnUrl'] = @return_url unless @return_url.nil? hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil? hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil? 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 |