Class: Pay::Asaas::Api::Customer

Inherits:
Pay::Asaas::ApiClient show all
Defined in:
lib/pay/asaas/api/customer.rb

Class Method Summary collapse

Methods inherited from Pay::Asaas::ApiClient

all, configure, find, headers, request, update

Class Method Details

.create(params:) ⇒ Object

Set notificationDisabled by default



10
11
12
13
14
# File 'lib/pay/asaas/api/customer.rb', line 10

def self.create(params:)
  params[:notificationDisabled] = true if params[:notificationDisabled].blank?

  super
end

.resource_keyObject



5
6
7
# File 'lib/pay/asaas/api/customer.rb', line 5

def self.resource_key
  "customers"
end