Sha256: 722f61860ab9f4b78b3355bf4b4d0ed8b6f719f09669cdc4120ffc48068d3e5f
Contents?: true
Size: 623 Bytes
Versions: 5
Compression:
Stored size: 623 Bytes
Contents
require 'autoinc' # # Invoice - for wasya.co # _vp_ 20171031 # class Ish::Invoice include Mongoid::Document include Mongoid::Timestamps include Mongoid::Autoinc store_in collection: 'ish_invoice' field :email, type: String field :invoice_id, type: String # stripe field :leadset_id, type: Integer def leadset Leadset.find leadset_id end field :number, type: Integer increments :number field :amount, type: Integer has_many :payments, :class_name => 'Ish::Payment' field :paid_amount, type: Integer, :default => 0 field :description, type: String field :items, type: Array end
Version data entries
5 entries across 5 versions & 1 rubygems