Class: OnlinePayments::SDK::Domain::PaymentProduct130SpecificThreeDSecure

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#acquirer_exemptiontrue/false

Returns the current value of acquirer_exemption.

Returns:

  • (true/false)

    the current value of acquirer_exemption



13
14
15
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 13

def acquirer_exemption
  @acquirer_exemption
end

#merchant_scoreString

Returns the current value of merchant_score.

Returns:

  • (String)

    the current value of merchant_score



13
14
15
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 13

def merchant_score
  @merchant_score
end

#number_of_itemsInteger

Returns the current value of number_of_items.

Returns:

  • (Integer)

    the current value of number_of_items



13
14
15
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 13

def number_of_items
  @number_of_items
end

#usecaseString

Returns the current value of usecase.

Returns:

  • (String)

    the current value of usecase



13
14
15
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 13

def usecase
  @usecase
end

Instance Method Details

#from_hash(hash) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 29

def from_hash(hash)
  super
  @acquirer_exemption = hash['acquirerExemption'] if hash.key? 'acquirerExemption'
  @merchant_score = hash['merchantScore'] if hash.key? 'merchantScore'
  @number_of_items = hash['numberOfItems'] if hash.key? 'numberOfItems'
  @usecase = hash['usecase'] if hash.key? 'usecase'
end

#to_hHash

Returns:

  • (Hash)


20
21
22
23
24
25
26
27
# File 'lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb', line 20

def to_h
  hash = super
  hash['acquirerExemption'] = @acquirer_exemption unless @acquirer_exemption.nil?
  hash['merchantScore'] = @merchant_score unless @merchant_score.nil?
  hash['numberOfItems'] = @number_of_items unless @number_of_items.nil?
  hash['usecase'] = @usecase unless @usecase.nil?
  hash
end