Class: OnlinePayments::SDK::Domain::PaymentProduct11

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#payment_beneficiaryString

Returns the current value of payment_beneficiary.

Returns:

  • (String)

    the current value of payment_beneficiary



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

def payment_beneficiary
  @payment_beneficiary
end

#payment_bicString

Returns the current value of payment_bic.

Returns:

  • (String)

    the current value of payment_bic



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

def payment_bic
  @payment_bic
end

#payment_ibanString

Returns the current value of payment_iban.

Returns:

  • (String)

    the current value of payment_iban



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

def payment_iban
  @payment_iban
end

#payment_referenceString

Returns the current value of payment_reference.

Returns:

  • (String)

    the current value of payment_reference



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

def payment_reference
  @payment_reference
end

#qr_codeString

Returns the current value of qr_code.

Returns:

  • (String)

    the current value of qr_code



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

def qr_code
  @qr_code
end

Instance Method Details

#from_hash(hash) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/onlinepayments/sdk/domain/payment_product11.rb', line 37

def from_hash(hash)
  super
  if hash.has_key? 'paymentBIC'
    @payment_bic = hash['paymentBIC']
  end
  if hash.has_key? 'paymentBeneficiary'
    @payment_beneficiary = hash['paymentBeneficiary']
  end
  if hash.has_key? 'paymentIBAN'
    @payment_iban = hash['paymentIBAN']
  end
  if hash.has_key? 'paymentReference'
    @payment_reference = hash['paymentReference']
  end
  if hash.has_key? 'qrCode'
    @qr_code = hash['qrCode']
  end
end

#to_hHash

Returns:

  • (Hash)


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

def to_h
  hash = super
  hash['paymentBIC'] = @payment_bic unless @payment_bic.nil?
  hash['paymentBeneficiary'] = @payment_beneficiary unless @payment_beneficiary.nil?
  hash['paymentIBAN'] = @payment_iban unless @payment_iban.nil?
  hash['paymentReference'] = @payment_reference unless @payment_reference.nil?
  hash['qrCode'] = @qr_code unless @qr_code.nil?
  hash
end