Class: TencentCloud::Ocr::V20181119::AirTicketInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::AirTicketInfo
- Defined in:
- lib/v20181119/models.rb
Overview
航空运输电子客票行程单信息
Instance Attribute Summary collapse
- #AgentCode ⇒ Object
- #CivilAviationDevelopmentFund ⇒ Object
- #DetailInformationOfAirTicketTuple ⇒ Object
- #ElectronicInvoiceAirTransportReceiptNumber ⇒ Object
- #ElectronicTicketNum ⇒ Object
- #Endorsement ⇒ Object
- #Fare ⇒ Object
- #FuelSurcharge ⇒ Object
- #Insurance ⇒ Object
- #IssueDate ⇒ Object
- #IssueParty ⇒ Object
- #IssuingStatus ⇒ Object
- #MarkingOfDomesticOrInternational ⇒ Object
- #NameOfPurchaser ⇒ Object
- #NameOfSeller ⇒ Object
- #NumberOfGPOrder ⇒ Object
- #OtherTaxes ⇒ Object
- #PassengerName ⇒ Object
- #PromptInformation ⇒ Object
- #TotalAmount ⇒ Object
- #UnifiedSocialCreditCodeOfPurchaser ⇒ Object
- #ValidIdNumber ⇒ Object
- #VatRate ⇒ Object
- #VatTaxAmount ⇒ Object
- #VerificationCode ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(passengername = nil, valididnumber = nil, endorsement = nil, numberofgporder = nil, electronicinvoiceairtransportreceiptnumber = nil, detailinformationofairtickettuple = nil, fare = nil, fuelsurcharge = nil, vatrate = nil, vattaxamount = nil, civilaviationdevelopmentfund = nil, othertaxes = nil, totalamount = nil, electronicticketnum = nil, verificationcode = nil, promptinformation = nil, insurance = nil, agentcode = nil, issueparty = nil, issuedate = nil, issuingstatus = nil, markingofdomesticorinternational = nil, nameofpurchaser = nil, nameofseller = nil, unifiedsocialcreditcodeofpurchaser = nil) ⇒ AirTicketInfo
constructor
A new instance of AirTicketInfo.
Constructor Details
#initialize(passengername = nil, valididnumber = nil, endorsement = nil, numberofgporder = nil, electronicinvoiceairtransportreceiptnumber = nil, detailinformationofairtickettuple = nil, fare = nil, fuelsurcharge = nil, vatrate = nil, vattaxamount = nil, civilaviationdevelopmentfund = nil, othertaxes = nil, totalamount = nil, electronicticketnum = nil, verificationcode = nil, promptinformation = nil, insurance = nil, agentcode = nil, issueparty = nil, issuedate = nil, issuingstatus = nil, markingofdomesticorinternational = nil, nameofpurchaser = nil, nameofseller = nil, unifiedsocialcreditcodeofpurchaser = nil) ⇒ AirTicketInfo
Returns a new instance of AirTicketInfo.
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'lib/v20181119/models.rb', line 169 def initialize(passengername=nil, valididnumber=nil, endorsement=nil, numberofgporder=nil, electronicinvoiceairtransportreceiptnumber=nil, detailinformationofairtickettuple=nil, fare=nil, fuelsurcharge=nil, vatrate=nil, vattaxamount=nil, civilaviationdevelopmentfund=nil, othertaxes=nil, totalamount=nil, electronicticketnum=nil, verificationcode=nil, promptinformation=nil, insurance=nil, agentcode=nil, issueparty=nil, issuedate=nil, issuingstatus=nil, markingofdomesticorinternational=nil, nameofpurchaser=nil, nameofseller=nil, =nil) @PassengerName = passengername @ValidIdNumber = valididnumber @Endorsement = endorsement @NumberOfGPOrder = numberofgporder @ElectronicInvoiceAirTransportReceiptNumber = electronicinvoiceairtransportreceiptnumber @DetailInformationOfAirTicketTuple = detailinformationofairtickettuple @Fare = fare @FuelSurcharge = fuelsurcharge @VatRate = vatrate @VatTaxAmount = vattaxamount @CivilAviationDevelopmentFund = civilaviationdevelopmentfund @OtherTaxes = othertaxes @TotalAmount = totalamount @ElectronicTicketNum = electronicticketnum @VerificationCode = verificationcode @PromptInformation = promptinformation @Insurance = insurance @AgentCode = agentcode @IssueParty = issueparty @IssueDate = issuedate @IssuingStatus = issuingstatus @MarkingOfDomesticOrInternational = markingofdomesticorinternational @NameOfPurchaser = nameofpurchaser @NameOfSeller = nameofseller @UnifiedSocialCreditCodeOfPurchaser = end |
Instance Attribute Details
#AgentCode ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def AgentCode @AgentCode end |
#CivilAviationDevelopmentFund ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def CivilAviationDevelopmentFund @CivilAviationDevelopmentFund end |
#DetailInformationOfAirTicketTuple ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def DetailInformationOfAirTicketTuple @DetailInformationOfAirTicketTuple end |
#ElectronicInvoiceAirTransportReceiptNumber ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def ElectronicInvoiceAirTransportReceiptNumber @ElectronicInvoiceAirTransportReceiptNumber end |
#ElectronicTicketNum ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def ElectronicTicketNum @ElectronicTicketNum end |
#Endorsement ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def Endorsement @Endorsement end |
#Fare ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def Fare @Fare end |
#FuelSurcharge ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def FuelSurcharge @FuelSurcharge end |
#Insurance ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def Insurance @Insurance end |
#IssueDate ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def IssueDate @IssueDate end |
#IssueParty ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def IssueParty @IssueParty end |
#IssuingStatus ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def IssuingStatus @IssuingStatus end |
#MarkingOfDomesticOrInternational ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def MarkingOfDomesticOrInternational @MarkingOfDomesticOrInternational end |
#NameOfPurchaser ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def NameOfPurchaser @NameOfPurchaser end |
#NameOfSeller ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def NameOfSeller @NameOfSeller end |
#NumberOfGPOrder ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def NumberOfGPOrder @NumberOfGPOrder end |
#OtherTaxes ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def OtherTaxes @OtherTaxes end |
#PassengerName ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def PassengerName @PassengerName end |
#PromptInformation ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def PromptInformation @PromptInformation end |
#TotalAmount ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def TotalAmount @TotalAmount end |
#UnifiedSocialCreditCodeOfPurchaser ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def UnifiedSocialCreditCodeOfPurchaser @UnifiedSocialCreditCodeOfPurchaser end |
#ValidIdNumber ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def ValidIdNumber @ValidIdNumber end |
#VatRate ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def VatRate @VatRate end |
#VatTaxAmount ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def VatTaxAmount @VatTaxAmount end |
#VerificationCode ⇒ Object
167 168 169 |
# File 'lib/v20181119/models.rb', line 167 def VerificationCode @VerificationCode end |
Instance Method Details
#deserialize(params) ⇒ Object
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/v20181119/models.rb', line 197 def deserialize(params) @PassengerName = params['PassengerName'] @ValidIdNumber = params['ValidIdNumber'] @Endorsement = params['Endorsement'] @NumberOfGPOrder = params['NumberOfGPOrder'] @ElectronicInvoiceAirTransportReceiptNumber = params['ElectronicInvoiceAirTransportReceiptNumber'] unless params['DetailInformationOfAirTicketTuple'].nil? @DetailInformationOfAirTicketTuple = [] params['DetailInformationOfAirTicketTuple'].each do |i| detailinformationofairtickettuplelist_tmp = DetailInformationOfAirTicketTupleList.new detailinformationofairtickettuplelist_tmp.deserialize(i) @DetailInformationOfAirTicketTuple << detailinformationofairtickettuplelist_tmp end end @Fare = params['Fare'] @FuelSurcharge = params['FuelSurcharge'] @VatRate = params['VatRate'] @VatTaxAmount = params['VatTaxAmount'] @CivilAviationDevelopmentFund = params['CivilAviationDevelopmentFund'] @OtherTaxes = params['OtherTaxes'] @TotalAmount = params['TotalAmount'] @ElectronicTicketNum = params['ElectronicTicketNum'] @VerificationCode = params['VerificationCode'] @PromptInformation = params['PromptInformation'] @Insurance = params['Insurance'] @AgentCode = params['AgentCode'] @IssueParty = params['IssueParty'] @IssueDate = params['IssueDate'] @IssuingStatus = params['IssuingStatus'] @MarkingOfDomesticOrInternational = params['MarkingOfDomesticOrInternational'] @NameOfPurchaser = params['NameOfPurchaser'] @NameOfSeller = params['NameOfSeller'] @UnifiedSocialCreditCodeOfPurchaser = params['UnifiedSocialCreditCodeOfPurchaser'] end |