Class: OnlinePayments::SDK::Domain::SubsequentPaymentProduct5001SpecificInput

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#authorization_modeString

Returns the current value of authorization_mode.

Returns:

  • (String)

    the current value of authorization_mode



11
12
13
# File 'lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb', line 11

def authorization_mode
  @authorization_mode
end

#subsequent_typeString

Returns the current value of subsequent_type.

Returns:

  • (String)

    the current value of subsequent_type



11
12
13
# File 'lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb', line 11

def subsequent_type
  @subsequent_type
end

Instance Method Details

#from_hash(hash) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'authorizationMode'
    @authorization_mode = hash['authorizationMode']
  end
  if hash.has_key? 'subsequentType'
    @subsequent_type = hash['subsequentType']
  end
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
23
# File 'lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb', line 18

def to_h
  hash = super
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
  hash['subsequentType'] = @subsequent_type unless @subsequent_type.nil?
  hash
end