Class: OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#force_authenticationtrue/false

Returns the current value of force_authentication.

Returns:

  • (true/false)

    the current value of force_authentication



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

def force_authentication
  @force_authentication
end

#is_deferred_paymenttrue/false

Returns the current value of is_deferred_payment.

Returns:

  • (true/false)

    the current value of is_deferred_payment



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

def is_deferred_payment
  @is_deferred_payment
end

#is_wip_transactiontrue/false

Returns the current value of is_wip_transaction.

Returns:

  • (true/false)

    the current value of is_wip_transaction



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

def is_wip_transaction
  @is_wip_transaction
end

#wip_merchant_authentication_methodString

Returns the current value of wip_merchant_authentication_method.

Returns:

  • (String)

    the current value of wip_merchant_authentication_method



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

def wip_merchant_authentication_method
  @wip_merchant_authentication_method
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

def from_hash(hash)
  super
  @force_authentication = hash['forceAuthentication'] if hash.key? 'forceAuthentication'
  @is_deferred_payment = hash['isDeferredPayment'] if hash.key? 'isDeferredPayment'
  @is_wip_transaction = hash['isWipTransaction'] if hash.key? 'isWipTransaction'
  @wip_merchant_authentication_method = hash['wipMerchantAuthenticationMethod'] if hash.key? 'wipMerchantAuthenticationMethod'
end

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['forceAuthentication'] = @force_authentication unless @force_authentication.nil?
  hash['isDeferredPayment'] = @is_deferred_payment unless @is_deferred_payment.nil?
  hash['isWipTransaction'] = @is_wip_transaction unless @is_wip_transaction.nil?
  hash['wipMerchantAuthenticationMethod'] = @wip_merchant_authentication_method unless @wip_merchant_authentication_method.nil?
  hash
end