Class: TencentCloud::Ocr::V20181119::ElectronicAirTransport

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

Overview

全电发票(航空运输电子客票行程单)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code = nil, number = nil, date = nil, amount = nil, checkcode = nil, total = nil, deductionmark = nil, statecode = nil, buyertaxcode = nil, buyername = nil, tax = nil, domesticinternationalmark = nil, passengername = nil, passengerno = nil, electronicnumber = nil, electronicairtransportdetails = nil) ⇒ ElectronicAirTransport

Returns a new instance of ElectronicAirTransport.



2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
# File 'lib/v20181119/models.rb', line 2115

def initialize(code=nil, number=nil, date=nil, amount=nil, checkcode=nil, total=nil, deductionmark=nil, statecode=nil, buyertaxcode=nil, buyername=nil, tax=nil, domesticinternationalmark=nil, passengername=nil, passengerno=nil, electronicnumber=nil, electronicairtransportdetails=nil)
  @Code = code
  @Number = number
  @Date = date
  @Amount = amount
  @CheckCode = checkcode
  @Total = total
  @DeductionMark = deductionmark
  @StateCode = statecode
  @BuyerTaxCode = buyertaxcode
  @BuyerName = buyername
  @Tax = tax
  @DomesticInternationalMark = domesticinternationalmark
  @PassengerName = passengername
  @PassengerNo = passengerno
  @ElectronicNumber = electronicnumber
  @ElectronicAirTransportDetails = electronicairtransportdetails
end

Instance Attribute Details

#AmountObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def Amount
  @Amount
end

#BuyerNameObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def BuyerName
  @BuyerName
end

#BuyerTaxCodeObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def BuyerTaxCode
  @BuyerTaxCode
end

#CheckCodeObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def CheckCode
  @CheckCode
end

#CodeObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def Code
  @Code
end

#DateObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def Date
  @Date
end

#DeductionMarkObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def DeductionMark
  @DeductionMark
end

#DomesticInternationalMarkObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def DomesticInternationalMark
  @DomesticInternationalMark
end

#ElectronicAirTransportDetailsObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def ElectronicAirTransportDetails
  @ElectronicAirTransportDetails
end

#ElectronicNumberObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def ElectronicNumber
  @ElectronicNumber
end

#NumberObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def Number
  @Number
end

#PassengerNameObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def PassengerName
  @PassengerName
end

#PassengerNoObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def PassengerNo
  @PassengerNo
end

#StateCodeObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def StateCode
  @StateCode
end

#TaxObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def Tax
  @Tax
end

#TotalObject

注意:此字段可能返回 null,表示取不到有效值。



2113
2114
2115
# File 'lib/v20181119/models.rb', line 2113

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
# File 'lib/v20181119/models.rb', line 2134

def deserialize(params)
  @Code = params['Code']
  @Number = params['Number']
  @Date = params['Date']
  @Amount = params['Amount']
  @CheckCode = params['CheckCode']
  @Total = params['Total']
  @DeductionMark = params['DeductionMark']
  @StateCode = params['StateCode']
  @BuyerTaxCode = params['BuyerTaxCode']
  @BuyerName = params['BuyerName']
  @Tax = params['Tax']
  @DomesticInternationalMark = params['DomesticInternationalMark']
  @PassengerName = params['PassengerName']
  @PassengerNo = params['PassengerNo']
  @ElectronicNumber = params['ElectronicNumber']
  unless params['ElectronicAirTransportDetails'].nil?
    @ElectronicAirTransportDetails = []
    params['ElectronicAirTransportDetails'].each do |i|
      electronicairtransportdetail_tmp = ElectronicAirTransportDetail.new
      electronicairtransportdetail_tmp.deserialize(i)
      @ElectronicAirTransportDetails << electronicairtransportdetail_tmp
    end
  end
end