Sha256: bf2c3aa2e9e7fe9ed1b3c3b8dcd46105a505649e9c3ec5d17987f4c691e00d6f

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

#
# Ruby classes automatically generated from java classes-- don't edit
#
module Killbill
  module Plugin
    module Model

      class ExtBusEventType

        @@admissible_values  = [:ACCOUNT_CREATION, :ACCOUNT_CHANGE, :SUBSCRIPTION_CREATION, :SUBSCRIPTION_PHASE, :SUBSCRIPTION_CHANGE, :SUBSCRIPTION_CANCEL, :SUBSCRIPTION_UNCANCEL, :OVERDUE_CHANGE, :INVOICE_CREATION, :INVOICE_ADJUSTMENT, :PAYMENT_SUCCESS, :PAYMENT_FAILED, :TAG_CREATION, :TAG_DELETION, :CUSTOM_FIELD_CREATION, :CUSTOM_FIELD_DELETION]
        attr_reader :enum

        def initialize(value)
          raise ArgumentError.new("Enum ExtBusEventType does not have such value : #{value}") if ! ExtBusEventType.is_admissible_value?(value)
          @enum = value
        end

        def ==(other)
          return false if other.nil?
          self.enum == other.enum
        end

        def self.is_admissible_value?(value)
          @@admissible_values.include?(value)
        end

        def self.admissible_values
          @@admissible_values
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
killbill-1.0.19 lib/killbill/gen/ext_bus_event_type.rb
killbill-1.0.18 lib/killbill/gen/ext_bus_event_type.rb
killbill-1.0.17 lib/killbill/gen/ext_bus_event_type.rb
killbill-1.0.16 lib/killbill/gen/ext_bus_event_type.rb