Method: ActiveMerchant::Billing::UsaEpayAdvancedGateway#quick_update_customer

Defined in:
lib/active_merchant/billing/gateways/usa_epay_advanced.rb

#quick_update_customer(options = {}) ⇒ Object

Update a customer by replacing only the provided fields.

Required

  • :customer_number – customer to update

  • :update_data – FieldValue array of fields to retrieve

    • :first_name

    • :last_name

    • :id

    • :company

    • :address

    • :address2

    • :city

    • :state

    • :zip

    • :country

    • :phone

    • :fax

    • :email

    • :url

    • :receipt_note

    • :send_receipt

    • :notes

    • :description

    • :order_id

    • :enabled

    • :schedule

    • :next

    • :num_left

    • :amount

    • :custom_data

    • :source

    • :user

    • :card_number

    • :card_exp

    • :account

    • :routing

    • :check_format or :record_type

Response

  • #message – boolean; Returns true if successful. Exception thrown all failures.



432
433
434
435
436
437
438
# File 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb', line 432

def quick_update_customer(options = {})
  requires! options, :customer_number
  requires! options, :update_data

  request = build_request(__method__, options)
  commit(__method__, request)
end