Sha256: f88747d155b7608077f9f956e8012cb3f9b42098fe14a62c31bd70da53ee0e4b

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

module ChargeBee
  class InvoiceEstimate < Model

    class LineItem < Model
      attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id
    end

    class Discount < Model
      attr_accessor :amount, :description, :entity_type, :entity_id
    end

    class Tax < Model
      attr_accessor :name, :amount, :description
    end

    class LineItemTax < Model
      attr_accessor :line_item_id, :tax_name, :tax_rate, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
    end

    class LineItemTier < Model
      attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
    end

    class LineItemDiscount < Model
      attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
    end

  attr_accessor :recurring, :price_type, :currency_code, :sub_total, :total, :credits_applied,
  :amount_paid, :amount_due, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_tiers,
  :line_item_discounts, :round_off_amount

  # OPERATIONS
  #-----------

  end # ~InvoiceEstimate
end # ~ChargeBee

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chargebee-2.6.2 lib/chargebee/models/invoice_estimate.rb
chargebee-2.6.1 lib/chargebee/models/invoice_estimate.rb
chargebee-2.6.0 lib/chargebee/models/invoice_estimate.rb
chargebee-2.5.9 lib/chargebee/models/invoice_estimate.rb
chargebee-2.5.8 lib/chargebee/models/invoice_estimate.rb