class PaymentsApi::PaymentDetails

Payment Information Data

Attributes

memo[RW]

Memo from Originator to Beneficiary @return [String]

payment_reference[RW]

Payment Reference Information. Typically includes FI to FI notes @return [String]

purpose_of_payment[RW]

Purpose of payment @return [String]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/payments_api/models/payment_details.rb, line 39
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  purpose_of_payment = hash['purposeOfPayment']
  memo = hash['memo']
  payment_reference = hash['paymentReference']

  # Create object from extracted values.
  PaymentDetails.new(purpose_of_payment,
                     memo,
                     payment_reference)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/payments_api/models/payment_details.rb, line 22
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['purpose_of_payment'] = 'purposeOfPayment'
  @_hash['memo'] = 'memo'
  @_hash['payment_reference'] = 'paymentReference'
  @_hash
end
new(purpose_of_payment = nil, memo = nil, payment_reference = nil) click to toggle source
# File lib/payments_api/models/payment_details.rb, line 30
def initialize(purpose_of_payment = nil,
               memo = nil,
               payment_reference = nil)
  @purpose_of_payment = purpose_of_payment
  @memo = memo
  @payment_reference = payment_reference
end