Sha256: 2c89602d8fa684f48a0ddae3b5e66b0f8da8ccc05d2243d865c20ddb26badc63

Contents?: true

Size: 864 Bytes

Versions: 28

Compression:

Stored size: 864 Bytes

Contents

module NetSuite
  module Records
    class GiftCertificate
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::ListAcct

      actions :get, :get_list, :add, :initialize, :delete, :update, :upsert, :search

      fields :amount_remaining, :created_date, :email, :expiration_date, :gift_cert_code,
             :last_modified_date, :message, :name, :original_amount, :sender

      attr_reader :internal_id
      # NOTE as of 2016_1 there is no external ID available for this record

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)

        initialize_from_attributes_hash(attributes)
      end

      def self.search_class_name
        "GiftCertificate"
      end

    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/gift_certificate.rb
netsuite-0.9.2 lib/netsuite/records/gift_certificate.rb
netsuite-0.9.1 lib/netsuite/records/gift_certificate.rb
netsuite-0.9.0 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.12 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.11 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.10 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.9 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.8 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.7 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.6 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.5 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.4 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.3 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.2 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.1 lib/netsuite/records/gift_certificate.rb
netsuite-0.8.0 lib/netsuite/records/gift_certificate.rb
netsuite-0.7.9 lib/netsuite/records/gift_certificate.rb
netsuite-0.7.8 lib/netsuite/records/gift_certificate.rb
netsuite-0.7.7 lib/netsuite/records/gift_certificate.rb