Class: Alula::DealerSuspendProc

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/dealer_suspend_proc.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(dealer_id:) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/alula/procedures/dealer_suspend_proc.rb', line 12

def self.call(dealer_id:)
  payload = {
    dealerId: dealer_id,
  }

  request( 
    http_method: :post,
    path: '/rpc/v1/dealers/suspend',
    payload: payload,
    handler: Response
  )
end