Sha256: 652d4491bc1b0b71bc43f61254aeecc41b21303408ca6e89370a35dc66db6dff

Contents?: true

Size: 642 Bytes

Versions: 13

Compression:

Stored size: 642 Bytes

Contents

module NetSuite
  module Records
    class Promotions
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Namespaces::TranSales

      record_refs :coupon_code, :promo_code

      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

13 entries across 13 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/promotions.rb
netsuite-0.9.2 lib/netsuite/records/promotions.rb
netsuite-0.9.1 lib/netsuite/records/promotions.rb
netsuite-0.9.0 lib/netsuite/records/promotions.rb
netsuite-0.8.12 lib/netsuite/records/promotions.rb
netsuite-0.8.11 lib/netsuite/records/promotions.rb
netsuite-0.8.10 lib/netsuite/records/promotions.rb
netsuite-0.8.9 lib/netsuite/records/promotions.rb
netsuite-0.8.8 lib/netsuite/records/promotions.rb
netsuite-0.8.7 lib/netsuite/records/promotions.rb
netsuite-0.8.6 lib/netsuite/records/promotions.rb
netsuite-0.8.5 lib/netsuite/records/promotions.rb
netsuite-0.8.4 lib/netsuite/records/promotions.rb