Sha256: 2d9e84e8f58e3076881d954259e1a881a672d7060aee29cbb33115413cb3164d

Contents?: true

Size: 985 Bytes

Versions: 13

Compression:

Stored size: 985 Bytes

Contents

# frozen_string_literal: true

module ChartMogul
  module LineItems
    class Subscription < ChartMogul::Object
      readonly_attr :uuid

      writeable_attr :type, default: 'subscription'
      writeable_attr :subscription_external_id
      writeable_attr :service_period_start, type: :time
      writeable_attr :service_period_end, type: :time
      writeable_attr :amount_in_cents
      writeable_attr :cancelled_at, type: :time
      writeable_attr :prorated
      writeable_attr :quantity
      writeable_attr :discount_amount_in_cents
      writeable_attr :discount_code
      writeable_attr :tax_amount_in_cents
      writeable_attr :transaction_fees_in_cents
      writeable_attr :external_id
      writeable_attr :subscription_set_external_id

      readonly_attr :subscription_uuid
      writeable_attr :invoice_uuid
      writeable_attr :plan_uuid

      def initialize(attributes = {})
        super(attributes)
        @type = 'subscription'
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
chartmogul-ruby-2.1.0 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-2.0.0 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.7.3 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.7.2 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.7.1 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.6.9 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.6.8 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.6.7 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.6.6 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.6.4 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.6.3 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.6.2 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.6.1 lib/chartmogul/line_items/subscription.rb