Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#exemption_requestString

Returns the current value of exemption_request.

Returns:

  • (String)

    the current value of exemption_request



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

def exemption_request
  @exemption_request
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/redirect_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/redirect_payment_product5001_specific_input.rb', line 25

def from_hash(hash)
  super
  if hash.has_key? 'exemptionRequest'
    @exemption_request = hash['exemptionRequest']
  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/redirect_payment_product5001_specific_input.rb', line 18

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