Class: OnlinePayments::SDK::Domain::SubsequentCardPaymentMethodSpecificInput
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::SubsequentCardPaymentMethodSpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb
Instance Attribute Summary collapse
-
#authorization_mode ⇒ String
The current value of authorization_mode.
-
#payment_number ⇒ Integer
The current value of payment_number.
-
#scheme_reference_data ⇒ String
The current value of scheme_reference_data.
-
#subsequent_type ⇒ String
The current value of subsequent_type.
-
#token ⇒ String
The current value of token.
-
#transaction_channel ⇒ String
The current value of transaction_channel.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#authorization_mode ⇒ String
Returns the current value of authorization_mode.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def @authorization_mode end |
#payment_number ⇒ Integer
Returns the current value of payment_number.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def payment_number @payment_number end |
#scheme_reference_data ⇒ String
Returns the current value of scheme_reference_data.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def scheme_reference_data @scheme_reference_data end |
#subsequent_type ⇒ String
Returns the current value of subsequent_type.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def subsequent_type @subsequent_type end |
#token ⇒ String
Returns the current value of token.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def token @token end |
#transaction_channel ⇒ String
Returns the current value of transaction_channel.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 15 def transaction_channel @transaction_channel end |
Instance Method Details
#from_hash(hash) ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 35 def from_hash(hash) super @authorization_mode = hash['authorizationMode'] if hash.key? 'authorizationMode' @payment_number = hash['paymentNumber'] if hash.key? 'paymentNumber' @scheme_reference_data = hash['schemeReferenceData'] if hash.key? 'schemeReferenceData' @subsequent_type = hash['subsequentType'] if hash.key? 'subsequentType' @token = hash['token'] if hash.key? 'token' @transaction_channel = hash['transactionChannel'] if hash.key? 'transactionChannel' end |
#to_h ⇒ Hash
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 24 def to_h hash = super hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil? hash['paymentNumber'] = @payment_number unless @payment_number.nil? hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil? hash['subsequentType'] = @subsequent_type unless @subsequent_type.nil? hash['token'] = @token unless @token.nil? hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil? hash end |