Sha256: aed79115e8ff1209bf973bff1712ef09a5e3ce78a5a315f9fcb07d84e421fdf5

Contents?: true

Size: 855 Bytes

Versions: 6

Compression:

Stored size: 855 Bytes

Contents

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 :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

6 entries across 6 versions & 1 rubygems

Version Path
chartmogul-ruby-1.1.3 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.1.1 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.1.0 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.0.2 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.0.1 lib/chartmogul/line_items/subscription.rb
chartmogul-ruby-1.0.0 lib/chartmogul/line_items/subscription.rb