Sha256: 90184c41430c1530860bfee8b4309416098e4b993c241b98a7f7b50f55eac81e
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
module Recurly class Adjustment < Resource # @macro [attach] scope # @scope class # @return [Pager<Adjustment>] a pager that yields +$1+. scope :charges, :type => 'charge' scope :credits, :type => 'credit' scope :pending, :state => 'pending' scope :invoiced, :state => 'invoiced' # @return [Account, nil] belongs_to :account # @return [Invoice, nil] belongs_to :invoice # @return [Subscription, nil] belongs_to :subscription define_attribute_methods %w( uuid state description accounting_code origin unit_amount_in_cents quantity discount_in_cents total_in_cents currency product_code start_date end_date created_at quantity_remaining revenue_schedule_type tax_in_cents tax_type tax_region tax_rate tax_exempt tax_code tax_details ) alias to_param uuid # @return ["charge", "credit", nil] The type of adjustment. attr_reader :type # Adjustments should be built through {Account} instances. # # @return [Adjustment] A new adjustment. # @example # account.adjustments.new attributes # @see Resource#initialize def initialize attributes = {} super({ :currency => Recurly.default_currency }.merge attributes) end # Adjustments are only writeable through an {Account} instance. embedded! true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recurly-2.7.0 | lib/recurly/adjustment.rb |