Sha256: 91d9d003a1cb74f789bf2c2bdd3a85b052e9ea163665a1fff14f028323a19a0f
Contents?: true
Size: 718 Bytes
Versions: 6
Compression:
Stored size: 718 Bytes
Contents
# typed: true require 'sorbet-runtime' module Moneylovercli module Api class Transaction < MoneyLover sig do params(account: String, category_id: String, amount: Integer, display_date: String) .returns(HTTParty::Response) end def add(account:, category_id:, amount:, display_date:) self.class.post('/transaction/add', body: { account: account, category: category_id, amount: amount, displayDate: display_date }, headers: { authorization: "AuthJWT #{@token}" }) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems