Sha256: 05330a8050882e66d8964fa3748ada966a5fe9638914a51f72c261eb922a8673
Contents?: true
Size: 793 Bytes
Versions: 2
Compression:
Stored size: 793 Bytes
Contents
module Mollie module API module Object class Settlement < Base attr_accessor :id, :reference, :settled_datetime, :amount, :periods, :payment_ids, :refund_ids, :links def settled_datetime=(settled_datetime) @settled_datetime = Time.parse(settled_datetime.to_s) rescue nil end def amount=(amount) @amount = BigDecimal.new(amount.to_s) if amount end def periods=(periods) @periods = Util.nested_openstruct(periods) if periods.is_a?(Hash) end def payments links && links['payments'] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mollie-api-ruby-2.2.1 | lib/mollie/api/object/settlement.rb |
mollie-api-ruby-2.2.0 | lib/mollie/api/object/settlement.rb |