class JeraPayment::Invoice

Public Instance Methods

early_payment_discounts() click to toggle source
# File lib/jera_payment/models/invoice.rb, line 37
def early_payment_discounts
  ActiveSupport::JSON.decode(self[:early_payment_discounts]).map{ |early_payment_discount| early_payment_discount.deep_symbolize_keys } if self[:early_payment_discounts]
end
early_payment_discounts=(value) click to toggle source
# File lib/jera_payment/models/invoice.rb, line 33
def early_payment_discounts=(value)
  write_attribute(:items, value&.to_json)
end
items() click to toggle source
# File lib/jera_payment/models/invoice.rb, line 29
def items
  ActiveSupport::JSON.decode(self[:items]) if self[:items]
end
items=(value) click to toggle source
# File lib/jera_payment/models/invoice.rb, line 25
def items=(value)
  write_attribute(:items, value&.to_json)
end
payer() click to toggle source
# File lib/jera_payment/models/invoice.rb, line 45
def payer
  ActiveSupport::JSON.decode(self[:payer]) if self[:payer]
end
payer=(value) click to toggle source
# File lib/jera_payment/models/invoice.rb, line 41
def payer=(value)
  write_attribute(:payer, value&.to_json)
end