Sha256: 1d93ade8acd90108d8f5ef323f3c83f5210678ad3107354db0b517fc1c0a9448

Contents?: true

Size: 825 Bytes

Versions: 81

Compression:

Stored size: 825 Bytes

Contents

##
# crc   string  4 digit number; hexadecimal for Helix devices, decimal otherwise  
# dealerId  string  Dealer ID (36-character UUID)   
# mac   string  MAC address (hex, transmission order, colon/slash separated)  
# skipPartnerClaim  boolean   Set to true to skip Helix partner configuration   [true, false]
# 
  
# Method: devices.register
module Alula
  class DeviceRegisterProc < Alula::RpcResource

    class Response < Alula::RpcResponse
    end

    def self.call(mac:, dealer_id:, crc:, skip_partner_claim: false)
      payload = {
        mac: mac,
        crc: crc,
        dealerId: dealer_id,
        skipPartnerClaim: skip_partner_claim
      }

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

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
alula-ruby-2.6.1 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.6.0 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.5.0 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.4.0 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.3.0 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.2.0 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.1.2 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.1.1 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.1.0 lib/alula/procedures/device_register_proc.rb
alula-ruby-2.0.0 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.10.5 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.10.4 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.10.3 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.10.2 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.10.1 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.10.0 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.9.17 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.9.16 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.9.15 lib/alula/procedures/device_register_proc.rb
alula-ruby-1.9.14 lib/alula/procedures/device_register_proc.rb