```ruby
module Xeroid
  module Objects
    class Payment
      attr_reader :invoice, :account, :amount, :date, :currency_rate

      def initialize(attributes)
        @invoice = attributes[:invoice]
        @account = attributes[:account]
        @amount = attributes[:amount]
        @date = attributes[:date]
        @currency_rate = attributes[:currency_rate]
      end
    end
  end
end
```

Bring Payment object up to date
user
```ruby
require 'xeroid/objects/attributes'

module Xeroid
  module Objects
    class Payment
      include Attributes

      attribute :invoice, :account, :date
      big_decimal :amount, :currency_rate
    end
  end
end
```
assistant