Class: Alula::UploadTouchpadBrandingProc

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/upload_touchpad_branding_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:, branding_file:) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/alula/procedures/upload_touchpad_branding_proc.rb', line 6

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

  request(
    http_method: :post,
    path: '/upload/v1/dealers/branding/touchpad',
    payload: payload,
    handler: Response,
    wrap: false,
    opts: {
      multipart: true
    }
  )
end