Class: OnlinePayments::SDK::Domain::SubsequentCardPaymentMethodSpecificInput

Inherits:
OnlinePayments::SDK::DataObject show all
Defined in:
lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#authorization_modeString

Returns the current value of authorization_mode.

Returns:

  • (String)

    the current value of authorization_mode



14
15
16
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 14

def authorization_mode
  @authorization_mode
end

#scheme_reference_dataString

Returns the current value of scheme_reference_data.

Returns:

  • (String)

    the current value of scheme_reference_data



14
15
16
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 14

def scheme_reference_data
  @scheme_reference_data
end

#subsequent_typeString

Returns the current value of subsequent_type.

Returns:

  • (String)

    the current value of subsequent_type



14
15
16
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 14

def subsequent_type
  @subsequent_type
end

#tokenString

Returns the current value of token.

Returns:

  • (String)

    the current value of token



14
15
16
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 14

def token
  @token
end

#transaction_channelString

Returns the current value of transaction_channel.

Returns:

  • (String)

    the current value of transaction_channel



14
15
16
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 14

def transaction_channel
  @transaction_channel
end

Instance Method Details

#from_hash(hash) ⇒ Object



32
33
34
35
36
37
38
39
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 32

def from_hash(hash)
  super
  @authorization_mode = hash['authorizationMode'] if hash.key? 'authorizationMode'
  @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_hHash

Returns:

  • (Hash)


22
23
24
25
26
27
28
29
30
# File 'lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb', line 22

def to_h
  hash = super
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.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