Sha256: 6ab6e307a6caec0d84e9cfed506f97de0d40e2d2515164d3071ee37ea06b8350
Contents?: true
Size: 531 Bytes
Versions: 6
Compression:
Stored size: 531 Bytes
Contents
module StripeLocal class Coupon < ActiveRecord::Base include ObjectAdapter self.primary_key = :id time_writer :redeem_by has_many :discounts, inverse_of: :coupon has_many :customers, through: :discounts, source: :customer #=!=#>>> # string :id # integer :percent_off # integer :amount_off # string :currency # string :duration # datetime :redeem_by # integer :max_redemptions # integer :times_redeemed # integer :duration_in_months # boolean :synced #=ยก=#>>> end end
Version data entries
6 entries across 6 versions & 1 rubygems