Class: TencentCloud::Ocr::V20181119::VatInvoiceVerifyResponse

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

Overview

VatInvoiceVerify返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invoice = nil, vehicleinvoiceinfo = nil, usedvehicleinvoiceinfo = nil, requestid = nil) ⇒ VatInvoiceVerifyResponse

Returns a new instance of VatInvoiceVerifyResponse.



14132
14133
14134
14135
14136
14137
# File 'lib/v20181119/models.rb', line 14132

def initialize(invoice=nil, vehicleinvoiceinfo=nil, usedvehicleinvoiceinfo=nil, requestid=nil)
  @Invoice = invoice
  @VehicleInvoiceInfo = vehicleinvoiceinfo
  @UsedVehicleInvoiceInfo = usedvehicleinvoiceinfo
  @RequestId = requestid
end

Instance Attribute Details

#InvoiceObject

Parameters:

  • Invoice:

    增值税发票信息,详情请点击左侧链接。

  • VehicleInvoiceInfo:

    机动车销售统一发票信息

  • UsedVehicleInvoiceInfo:

    二手车销售统一发票信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



14130
14131
14132
# File 'lib/v20181119/models.rb', line 14130

def Invoice
  @Invoice
end

#RequestIdObject

Parameters:

  • Invoice:

    增值税发票信息,详情请点击左侧链接。

  • VehicleInvoiceInfo:

    机动车销售统一发票信息

  • UsedVehicleInvoiceInfo:

    二手车销售统一发票信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



14130
14131
14132
# File 'lib/v20181119/models.rb', line 14130

def RequestId
  @RequestId
end

#UsedVehicleInvoiceInfoObject

Parameters:

  • Invoice:

    增值税发票信息,详情请点击左侧链接。

  • VehicleInvoiceInfo:

    机动车销售统一发票信息

  • UsedVehicleInvoiceInfo:

    二手车销售统一发票信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



14130
14131
14132
# File 'lib/v20181119/models.rb', line 14130

def UsedVehicleInvoiceInfo
  @UsedVehicleInvoiceInfo
end

#VehicleInvoiceInfoObject

Parameters:

  • Invoice:

    增值税发票信息,详情请点击左侧链接。

  • VehicleInvoiceInfo:

    机动车销售统一发票信息

  • UsedVehicleInvoiceInfo:

    二手车销售统一发票信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



14130
14131
14132
# File 'lib/v20181119/models.rb', line 14130

def VehicleInvoiceInfo
  @VehicleInvoiceInfo
end

Instance Method Details

#deserialize(params) ⇒ Object



14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
# File 'lib/v20181119/models.rb', line 14139

def deserialize(params)
  unless params['Invoice'].nil?
    @Invoice = VatInvoice.new
    @Invoice.deserialize(params['Invoice'])
  end
  unless params['VehicleInvoiceInfo'].nil?
    @VehicleInvoiceInfo = VehicleInvoiceInfo.new
    @VehicleInvoiceInfo.deserialize(params['VehicleInvoiceInfo'])
  end
  unless params['UsedVehicleInvoiceInfo'].nil?
    @UsedVehicleInvoiceInfo = UsedVehicleInvoiceInfo.new
    @UsedVehicleInvoiceInfo.deserialize(params['UsedVehicleInvoiceInfo'])
  end
  @RequestId = params['RequestId']
end