Sha256: dd9344be8e72e0b90a8b4e6a27d7cd4ff7e4e078895406bfacacbe16d67a2c2b

Contents?: true

Size: 723 Bytes

Versions: 61

Compression:

Stored size: 723 Bytes

Contents

module NetSuite
  module Records
    class BillingScheduleRecurrence
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Namespaces::ListAcct

      fields :amount, :count, :recurrence_date, :recurrence_id,
        :relative_to_previous, :units

      record_refs :payment_terms

      def initialize(attributes_or_record = {})
        case attributes_or_record
        when Hash
          initialize_from_attributes_hash(attributes_or_record)
        when self.class
          initialize_from_record(attributes_or_record)
        end
      end

      def initialize_from_record(record)
        self.attributes = record.send(:attributes)
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
netsuite-0.5.6 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.5.5 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.5.4 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.5.3 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.5.2 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.5.1 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.5.0 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.9 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.8 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.7 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.6 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.5 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.4 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.3 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.2 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.1 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.4.0 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.3.3 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.3.2 lib/netsuite/records/billing_schedule_recurrence.rb
netsuite-0.3.1 lib/netsuite/records/billing_schedule_recurrence.rb