Sha256: c7bea7ea8d1b86a39820e9726bff5e3abaa394ebf49fa8798b2c12beec7edbc1

Contents?: true

Size: 809 Bytes

Versions: 9

Compression:

Stored size: 809 Bytes

Contents

module NetSuite
  module Records
    class PaymentMethod
      include Support::Fields
      include Support::RecordRefs
      include Support::Actions

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

      fields :credit_card, :express_checkout_arrangement, :is_debit_card, :is_inactive, :is_online, :name,
        :pay_pal_email_address, :undep_funds, :use_express_checkout

      record_ref :account

      attr_reader :internal_id
      attr_accessor :external_id

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

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netsuite-0.4.8 lib/netsuite/records/payment_method.rb
netsuite-0.4.7 lib/netsuite/records/payment_method.rb
netsuite-0.4.6 lib/netsuite/records/payment_method.rb
netsuite-0.4.5 lib/netsuite/records/payment_method.rb
netsuite-0.4.4 lib/netsuite/records/payment_method.rb
netsuite-0.4.3 lib/netsuite/records/payment_method.rb
netsuite-0.4.2 lib/netsuite/records/payment_method.rb
netsuite-0.4.1 lib/netsuite/records/payment_method.rb
netsuite-0.4.0 lib/netsuite/records/payment_method.rb