Sha256: 8f5becf67855aab6539a533bb75648f11a645e0a200d076bb3328a0d9eaf6c00

Contents?: true

Size: 795 Bytes

Versions: 7

Compression:

Stored size: 795 Bytes

Contents

# frozen_string_literal: true

##
# qrCode: string
# accountId: string
# customerId: string
# serialNumber: string
# verificationCode: string
# brand: string
# model: string
#
# Method: video.register
module Alula
  class VideoRegisterProc < Alula::RpcResource
    class Response < Alula::RpcResponse
    end

    def self.call(**kwargs)
      payload = {
        qrCode: kwargs[:qr_code],
        accountId: kwargs[:account_id],
        customerId: kwargs[:customer_id],
        serialNumber: kwargs[:serial_number],
        verificationCode: kwargs[:verification_code],
        brand: kwargs[:brand],
        model: kwargs[:model]
      }

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alula-ruby-2.6.3 lib/alula/procedures/video_register_proc.rb
alula-ruby-2.6.2 lib/alula/procedures/video_register_proc.rb
alula-ruby-2.6.1 lib/alula/procedures/video_register_proc.rb
alula-ruby-2.6.0 lib/alula/procedures/video_register_proc.rb
alula-ruby-2.5.0 lib/alula/procedures/video_register_proc.rb
alula-ruby-2.4.0 lib/alula/procedures/video_register_proc.rb
alula-ruby-2.3.0 lib/alula/procedures/video_register_proc.rb