Class: TencentCloud::Ocr::V20181119::TextWaybill

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

运单识别结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(recname = nil, recnum = nil, recaddr = nil, sendername = nil, sendernum = nil, senderaddr = nil, waybillnum = nil) ⇒ TextWaybill

Returns a new instance of TextWaybill.



12260
12261
12262
12263
12264
12265
12266
12267
12268
# File 'lib/v20181119/models.rb', line 12260

def initialize(recname=nil, recnum=nil, recaddr=nil, sendername=nil, sendernum=nil, senderaddr=nil, waybillnum=nil)
  @RecName = recname
  @RecNum = recnum
  @RecAddr = recaddr
  @SenderName = sendername
  @SenderNum = sendernum
  @SenderAddr = senderaddr
  @WaybillNum = waybillnum
end

Instance Attribute Details

#RecAddrObject

Parameters:

  • RecName:

    收件人姓名

  • RecNum:

    收件人手机号

  • RecAddr:

    收件人地址

  • SenderName:

    寄件人姓名

  • SenderNum:

    寄件人手机号

  • SenderAddr:

    寄件人地址

  • WaybillNum:

    运单号



12258
12259
12260
# File 'lib/v20181119/models.rb', line 12258

def RecAddr
  @RecAddr
end

#RecNameObject

Parameters:

  • RecName:

    收件人姓名

  • RecNum:

    收件人手机号

  • RecAddr:

    收件人地址

  • SenderName:

    寄件人姓名

  • SenderNum:

    寄件人手机号

  • SenderAddr:

    寄件人地址

  • WaybillNum:

    运单号



12258
12259
12260
# File 'lib/v20181119/models.rb', line 12258

def RecName
  @RecName
end

#RecNumObject

Parameters:

  • RecName:

    收件人姓名

  • RecNum:

    收件人手机号

  • RecAddr:

    收件人地址

  • SenderName:

    寄件人姓名

  • SenderNum:

    寄件人手机号

  • SenderAddr:

    寄件人地址

  • WaybillNum:

    运单号



12258
12259
12260
# File 'lib/v20181119/models.rb', line 12258

def RecNum
  @RecNum
end

#SenderAddrObject

Parameters:

  • RecName:

    收件人姓名

  • RecNum:

    收件人手机号

  • RecAddr:

    收件人地址

  • SenderName:

    寄件人姓名

  • SenderNum:

    寄件人手机号

  • SenderAddr:

    寄件人地址

  • WaybillNum:

    运单号



12258
12259
12260
# File 'lib/v20181119/models.rb', line 12258

def SenderAddr
  @SenderAddr
end

#SenderNameObject

Parameters:

  • RecName:

    收件人姓名

  • RecNum:

    收件人手机号

  • RecAddr:

    收件人地址

  • SenderName:

    寄件人姓名

  • SenderNum:

    寄件人手机号

  • SenderAddr:

    寄件人地址

  • WaybillNum:

    运单号



12258
12259
12260
# File 'lib/v20181119/models.rb', line 12258

def SenderName
  @SenderName
end

#SenderNumObject

Parameters:

  • RecName:

    收件人姓名

  • RecNum:

    收件人手机号

  • RecAddr:

    收件人地址

  • SenderName:

    寄件人姓名

  • SenderNum:

    寄件人手机号

  • SenderAddr:

    寄件人地址

  • WaybillNum:

    运单号



12258
12259
12260
# File 'lib/v20181119/models.rb', line 12258

def SenderNum
  @SenderNum
end

#WaybillNumObject

Parameters:

  • RecName:

    收件人姓名

  • RecNum:

    收件人手机号

  • RecAddr:

    收件人地址

  • SenderName:

    寄件人姓名

  • SenderNum:

    寄件人手机号

  • SenderAddr:

    寄件人地址

  • WaybillNum:

    运单号



12258
12259
12260
# File 'lib/v20181119/models.rb', line 12258

def WaybillNum
  @WaybillNum
end

Instance Method Details

#deserialize(params) ⇒ Object



12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
# File 'lib/v20181119/models.rb', line 12270

def deserialize(params)
  unless params['RecName'].nil?
    @RecName = WaybillObj.new
    @RecName.deserialize(params['RecName'])
  end
  unless params['RecNum'].nil?
    @RecNum = WaybillObj.new
    @RecNum.deserialize(params['RecNum'])
  end
  unless params['RecAddr'].nil?
    @RecAddr = WaybillObj.new
    @RecAddr.deserialize(params['RecAddr'])
  end
  unless params['SenderName'].nil?
    @SenderName = WaybillObj.new
    @SenderName.deserialize(params['SenderName'])
  end
  unless params['SenderNum'].nil?
    @SenderNum = WaybillObj.new
    @SenderNum.deserialize(params['SenderNum'])
  end
  unless params['SenderAddr'].nil?
    @SenderAddr = WaybillObj.new
    @SenderAddr.deserialize(params['SenderAddr'])
  end
  unless params['WaybillNum'].nil?
    @WaybillNum = WaybillObj.new
    @WaybillNum.deserialize(params['WaybillNum'])
  end
end