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

      actions :get

      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

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

      actions :add, :delete, :get, :get_list, :search, :search_more_with_id,
        :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

Add missing actions to payment methods
Add missing actions to payment methods

https://system.na1.netsuite.com/help/helpcenter/en_US/Output/Help/SuiteCloudCustomizationScriptingWebServices/SuiteTalkWebServices/PaymentMethod.html
