Queries for the specified credit memo or set of credit memos.
Request
Response
XMLOps
VB.NET
C#
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 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 196 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 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 | <?xml version="1.0" encoding="utf-8"?> <?qbxml version="16.0"?> <QBXML> <QBXMLMsgsRq onError="stopOnError"> <CreditMemoQueryRq metaData="ENUMTYPE" iterator="ENUMTYPE" iteratorID="UUIDTYPE"> <!-- BEGIN OR --> <TxnID >IDTYPE</TxnID> <!-- optional, may repeat --> <!-- OR --> <RefNumber >STRTYPE</RefNumber> <!-- optional, may repeat --> <!-- OR --> <RefNumberCaseSensitive >STRTYPE</RefNumberCaseSensitive> <!-- optional, may repeat --> <!-- OR --> <MaxReturned >INTTYPE</MaxReturned> <!-- optional --> <!-- BEGIN OR --> <ModifiedDateRangeFilter> <!-- optional --> <FromModifiedDate >DATETIMETYPE</FromModifiedDate> <!-- optional --> <ToModifiedDate >DATETIMETYPE</ToModifiedDate> <!-- optional --> </ModifiedDateRangeFilter> <!-- OR --> <TxnDateRangeFilter> <!-- optional --> <!-- BEGIN OR --> <FromTxnDate >DATETYPE</FromTxnDate> <!-- optional --> <ToTxnDate >DATETYPE</ToTxnDate> <!-- optional --> <!-- OR --> <!-- DateMacro may have one of the following values: All, Today, ThisWeek, ThisWeekToDate, ThisMonth, ThisMonthToDate, ThisCalendarQuarter, ThisCalendarQuarterToDate, ThisFiscalQuarter, ThisFiscalQuarterToDate, ThisCalendarYear, ThisCalendarYearToDate, ThisFiscalYear, ThisFiscalYearToDate, Yesterday, LastWeek, LastWeekToDate, LastMonth, LastMonthToDate, LastCalendarQuarter, LastCalendarQuarterToDate, LastFiscalQuarter, LastFiscalQuarterToDate, LastCalendarYear, LastCalendarYearToDate, LastFiscalYear, LastFiscalYearToDate, NextWeek, NextFourWeeks, NextMonth, NextCalendarQuarter, NextCalendarYear, NextFiscalQuarter, NextFiscalYear --> <DateMacro >ENUMTYPE</DateMacro> <!-- optional --> <!-- END OR --> </TxnDateRangeFilter> <!-- END OR --> <EntityFilter> <!-- optional --> <!-- BEGIN OR --> <ListID >IDTYPE</ListID> <!-- optional, may repeat --> <!-- OR --> <FullName >STRTYPE</FullName> <!-- optional, may repeat --> <!-- OR --> <ListIDWithChildren >IDTYPE</ListIDWithChildren> <!-- optional --> <!-- OR --> <FullNameWithChildren >STRTYPE</FullNameWithChildren> <!-- optional --> <!-- END OR --> </EntityFilter> <AccountFilter> <!-- optional --> <!-- BEGIN OR --> <ListID >IDTYPE</ListID> <!-- optional, may repeat --> <!-- OR --> <FullName >STRTYPE</FullName> <!-- optional, may repeat --> <!-- OR --> <ListIDWithChildren >IDTYPE</ListIDWithChildren> <!-- optional --> <!-- OR --> <FullNameWithChildren >STRTYPE</FullNameWithChildren> <!-- optional --> <!-- END OR --> </AccountFilter> <!-- BEGIN OR --> <RefNumberFilter> <!-- optional --> <!-- MatchCriterion may have one of the following values: StartsWith, Contains, EndsWith --> <MatchCriterion >ENUMTYPE</MatchCriterion> <!-- required --> <RefNumber >STRTYPE</RefNumber> <!-- required --> </RefNumberFilter> <!-- OR --> <RefNumberRangeFilter> <!-- optional --> <FromRefNumber >STRTYPE</FromRefNumber> <!-- optional --> <ToRefNumber >STRTYPE</ToRefNumber> <!-- optional --> </RefNumberRangeFilter> <!-- END OR --> <CurrencyFilter> <!-- optional --> <!-- BEGIN OR --> <ListID >IDTYPE</ListID> <!-- optional, may repeat --> <!-- OR --> <FullName >STRTYPE</FullName> <!-- optional, may repeat --> <!-- END OR --> </CurrencyFilter> <!-- END OR --> <IncludeLineItems >BOOLTYPE</IncludeLineItems> <!-- optional --> <IncludeLinkedTxns >BOOLTYPE</IncludeLinkedTxns> <!-- optional --> <IncludeRetElement >STRTYPE</IncludeRetElement> <!-- optional, may repeat --> <OwnerID >GUIDTYPE</OwnerID> <!-- optional, may repeat --> </CreditMemoQueryRq> <CreditMemoQueryRs statusCode="INTTYPE" statusSeverity="STRTYPE" statusMessage="STRTYPE" retCount="INTTYPE" iteratorRemainingCount="INTTYPE" iteratorID="UUIDTYPE"> <CreditMemoRet> <!-- optional, may repeat --> <TxnID >IDTYPE</TxnID> <!-- required --> <TimeCreated >DATETIMETYPE</TimeCreated> <!-- required --> <TimeModified >DATETIMETYPE</TimeModified> <!-- required --> <EditSequence >STRTYPE</EditSequence> <!-- required --> <TxnNumber >INTTYPE</TxnNumber> <!-- optional --> <CustomerRef> <!-- required --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </CustomerRef> <ClassRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ClassRef> <ARAccountRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ARAccountRef> <TemplateRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </TemplateRef> <TxnDate >DATETYPE</TxnDate> <!-- required --> <RefNumber >STRTYPE</RefNumber> <!-- optional --> <BillAddress> <!-- optional --> <Addr1 >STRTYPE</Addr1> <!-- optional --> <Addr2 >STRTYPE</Addr2> <!-- optional --> <Addr3 >STRTYPE</Addr3> <!-- optional --> <Addr4 >STRTYPE</Addr4> <!-- optional --> <Addr5 >STRTYPE</Addr5> <!-- optional --> <City >STRTYPE</City> <!-- optional --> <State >STRTYPE</State> <!-- optional --> <PostalCode >STRTYPE</PostalCode> <!-- optional --> <Country >STRTYPE</Country> <!-- optional --> <Note >STRTYPE</Note> <!-- optional --> </BillAddress> <BillAddressBlock> <!-- optional --> <Addr1 >STRTYPE</Addr1> <!-- optional --> <Addr2 >STRTYPE</Addr2> <!-- optional --> <Addr3 >STRTYPE</Addr3> <!-- optional --> <Addr4 >STRTYPE</Addr4> <!-- optional --> <Addr5 >STRTYPE</Addr5> <!-- optional --> </BillAddressBlock> <ShipAddress> <!-- optional --> <Addr1 >STRTYPE</Addr1> <!-- optional --> <Addr2 >STRTYPE</Addr2> <!-- optional --> <Addr3 >STRTYPE</Addr3> <!-- optional --> <Addr4 >STRTYPE</Addr4> <!-- optional --> <Addr5 >STRTYPE</Addr5> <!-- optional --> <City >STRTYPE</City> <!-- optional --> <State >STRTYPE</State> <!-- optional --> <PostalCode >STRTYPE</PostalCode> <!-- optional --> <Country >STRTYPE</Country> <!-- optional --> <Note >STRTYPE</Note> <!-- optional --> </ShipAddress> <ShipAddressBlock> <!-- optional --> <Addr1 >STRTYPE</Addr1> <!-- optional --> <Addr2 >STRTYPE</Addr2> <!-- optional --> <Addr3 >STRTYPE</Addr3> <!-- optional --> <Addr4 >STRTYPE</Addr4> <!-- optional --> <Addr5 >STRTYPE</Addr5> <!-- optional --> </ShipAddressBlock> <IsPending >BOOLTYPE</IsPending> <!-- optional --> <PONumber >STRTYPE</PONumber> <!-- optional --> <TermsRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </TermsRef> <DueDate >DATETYPE</DueDate> <!-- optional --> <SalesRepRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </SalesRepRef> <FOB >STRTYPE</FOB> <!-- optional --> <ShipDate >DATETYPE</ShipDate> <!-- optional --> <ShipMethodRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ShipMethodRef> <Subtotal >AMTTYPE</Subtotal> <!-- optional --> <ItemSalesTaxRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ItemSalesTaxRef> <SalesTaxPercentage >PERCENTTYPE</SalesTaxPercentage> <!-- optional --> <SalesTaxTotal >AMTTYPE</SalesTaxTotal> <!-- optional --> <TotalAmount >AMTTYPE</TotalAmount> <!-- optional --> <CreditRemaining >AMTTYPE</CreditRemaining> <!-- optional --> <CurrencyRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </CurrencyRef> <ExchangeRate >FLOATTYPE</ExchangeRate> <!-- optional --> <CreditRemainingInHomeCurrency >AMTTYPE</CreditRemainingInHomeCurrency> <!-- optional --> <Memo >STRTYPE</Memo> <!-- optional --> <CustomerMsgRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </CustomerMsgRef> <IsToBePrinted >BOOLTYPE</IsToBePrinted> <!-- optional --> <IsToBeEmailed >BOOLTYPE</IsToBeEmailed> <!-- optional --> <IsTaxIncluded >BOOLTYPE</IsTaxIncluded> <!-- optional --> <CustomerSalesTaxCodeRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </CustomerSalesTaxCodeRef> <Other >STRTYPE</Other> <!-- optional --> <ExternalGUID >GUIDTYPE</ExternalGUID> <!-- optional --> <LinkedTxn> <!-- optional, may repeat --> <TxnID >IDTYPE</TxnID> <!-- required --> <!-- TxnType may have one of the following values: ARRefundCreditCard, Bill, BillPaymentCheck, BillPaymentCreditCard, BuildAssembly, Charge, Check, CreditCardCharge, CreditCardCredit, CreditMemo, Deposit, Estimate, InventoryAdjustment, Invoice, ItemReceipt, JournalEntry, LiabilityAdjustment, Paycheck, PayrollLiabilityCheck, PurchaseOrder, ReceivePayment, SalesOrder, SalesReceipt, SalesTaxPaymentCheck, Transfer, VendorCredit, YTDAdjustment --> <TxnType >ENUMTYPE</TxnType> <!-- required --> <TxnDate >DATETYPE</TxnDate> <!-- required --> <RefNumber >STRTYPE</RefNumber> <!-- optional --> <!-- LinkType may have one of the following values: AMTTYPE, QUANTYPE --> <LinkType >ENUMTYPE</LinkType> <!-- optional --> <Amount >AMTTYPE</Amount> <!-- required --> </LinkedTxn> <!-- BEGIN OR --> <CreditMemoLineRet> <!-- optional --> <TxnLineID >IDTYPE</TxnLineID> <!-- required --> <ItemRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ItemRef> <Desc >STRTYPE</Desc> <!-- optional --> <Quantity >QUANTYPE</Quantity> <!-- optional --> <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional --> <OverrideUOMSetRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </OverrideUOMSetRef> <!-- BEGIN OR --> <Rate >PRICETYPE</Rate> <!-- optional --> <!-- OR --> <RatePercent >PERCENTTYPE</RatePercent> <!-- optional --> <!-- END OR --> <ClassRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ClassRef> <Amount >AMTTYPE</Amount> <!-- optional --> <InventorySiteRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </InventorySiteRef> <InventorySiteLocationRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </InventorySiteLocationRef> <!-- BEGIN OR --> <SerialNumber >STRTYPE</SerialNumber> <!-- optional --> <!-- OR --> <LotNumber >STRTYPE</LotNumber> <!-- optional --> <!-- END OR --> <ExpirationDateForSerialLotNumber>STRTYPE</ExpirationDateForSerialLotNumber> <!-- optional --> <ServiceDate >DATETYPE</ServiceDate> <!-- optional --> <SalesTaxCodeRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </SalesTaxCodeRef> <Other1 >STRTYPE</Other1> <!-- optional --> <Other2 >STRTYPE</Other2> <!-- optional --> <CreditCardTxnInfo> <!-- optional --> <CreditCardTxnInputInfo> <!-- required --> <CreditCardNumber >STRTYPE</CreditCardNumber> <!-- required --> <ExpirationMonth >INTTYPE</ExpirationMonth> <!-- required --> <ExpirationYear >INTTYPE</ExpirationYear> <!-- required --> <NameOnCard >STRTYPE</NameOnCard> <!-- required --> <CreditCardAddress >STRTYPE</CreditCardAddress> <!-- optional --> <CreditCardPostalCode >STRTYPE</CreditCardPostalCode> <!-- optional --> <CommercialCardCode >STRTYPE</CommercialCardCode> <!-- optional --> <!-- TransactionMode may have one of the following values: CardNotPresent [DEFAULT], CardPresent --> <TransactionMode >ENUMTYPE</TransactionMode> <!-- optional --> <!-- CreditCardTxnType may have one of the following values: Authorization, Capture, Charge, Refund, VoiceAuthorization --> <CreditCardTxnType >ENUMTYPE</CreditCardTxnType> <!-- optional --> </CreditCardTxnInputInfo> <CreditCardTxnResultInfo> <!-- required --> <ResultCode >INTTYPE</ResultCode> <!-- required --> <ResultMessage >STRTYPE</ResultMessage> <!-- required --> <CreditCardTransID >STRTYPE</CreditCardTransID> <!-- required --> <MerchantAccountNumber >STRTYPE</MerchantAccountNumber> <!-- required --> <AuthorizationCode >STRTYPE</AuthorizationCode> <!-- optional --> <!-- AVSStreet may have one of the following values: Pass, Fail, NotAvailable --> <AVSStreet >ENUMTYPE</AVSStreet> <!-- optional --> <!-- AVSZip may have one of the following values: Pass, Fail, NotAvailable --> <AVSZip >ENUMTYPE</AVSZip> <!-- optional --> <!-- CardSecurityCodeMatch may have one of the following values: Pass, Fail, NotAvailable --> <CardSecurityCodeMatch >ENUMTYPE</CardSecurityCodeMatch> <!-- optional --> <ReconBatchID >STRTYPE</ReconBatchID> <!-- optional --> <PaymentGroupingCode >INTTYPE</PaymentGroupingCode> <!-- optional --> <!-- PaymentStatus may have one of the following values: Unknown, Completed --> <PaymentStatus >ENUMTYPE</PaymentStatus> <!-- required --> <TxnAuthorizationTime >DATETIMETYPE</TxnAuthorizationTime> <!-- required --> <TxnAuthorizationStamp >INTTYPE</TxnAuthorizationStamp> <!-- optional --> <ClientTransID >STRTYPE</ClientTransID> <!-- optional --> </CreditCardTxnResultInfo> </CreditCardTxnInfo> <DataExtRet> <!-- optional, may repeat --> <OwnerID >GUIDTYPE</OwnerID> <!-- optional --> <DataExtName >STRTYPE</DataExtName> <!-- required --> <!-- DataExtType may have one of the following values: AMTTYPE, DATETIMETYPE, INTTYPE, PERCENTTYPE, PRICETYPE, QUANTYPE, STR1024TYPE, STR255TYPE --> <DataExtType >ENUMTYPE</DataExtType> <!-- required --> <DataExtValue >STRTYPE</DataExtValue> <!-- required --> </DataExtRet> </CreditMemoLineRet> <!-- OR --> <CreditMemoLineGroupRet> <!-- optional --> <TxnLineID >IDTYPE</TxnLineID> <!-- required --> <ItemGroupRef> <!-- required --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ItemGroupRef> <Desc >STRTYPE</Desc> <!-- optional --> <Quantity >QUANTYPE</Quantity> <!-- optional --> <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional --> <OverrideUOMSetRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </OverrideUOMSetRef> <IsPrintItemsInGroup >BOOLTYPE</IsPrintItemsInGroup> <!-- required --> <TotalAmount >AMTTYPE</TotalAmount> <!-- required --> <CreditMemoLineRet> <!-- optional, may repeat --> <TxnLineID >IDTYPE</TxnLineID> <!-- required --> <ItemRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ItemRef> <Desc >STRTYPE</Desc> <!-- optional --> <Quantity >QUANTYPE</Quantity> <!-- optional --> <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional --> <OverrideUOMSetRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </OverrideUOMSetRef> <!-- BEGIN OR --> <Rate >PRICETYPE</Rate> <!-- optional --> <!-- OR --> <RatePercent >PERCENTTYPE</RatePercent> <!-- optional --> <!-- END OR --> <ClassRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ClassRef> <Amount >AMTTYPE</Amount> <!-- optional --> <InventorySiteRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </InventorySiteRef> <InventorySiteLocationRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </InventorySiteLocationRef> <!-- BEGIN OR --> <SerialNumber >STRTYPE</SerialNumber> <!-- optional --> <!-- OR --> <LotNumber >STRTYPE</LotNumber> <!-- optional --> <!-- END OR --> <ExpirationDateForSerialLotNumber>STRTYPE</ExpirationDateForSerialLotNumber> <!-- optional --> <ServiceDate >DATETYPE</ServiceDate> <!-- optional --> <SalesTaxCodeRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </SalesTaxCodeRef> <Other1 >STRTYPE</Other1> <!-- optional --> <Other2 >STRTYPE</Other2> <!-- optional --> <CreditCardTxnInfo> <!-- optional --> <CreditCardTxnInputInfo> <!-- required --> <CreditCardNumber >STRTYPE</CreditCardNumber> <!-- required --> <ExpirationMonth >INTTYPE</ExpirationMonth> <!-- required --> <ExpirationYear >INTTYPE</ExpirationYear> <!-- required --> <NameOnCard >STRTYPE</NameOnCard> <!-- required --> <CreditCardAddress >STRTYPE</CreditCardAddress> <!-- optional --> <CreditCardPostalCode >STRTYPE</CreditCardPostalCode> <!-- optional --> <CommercialCardCode >STRTYPE</CommercialCardCode> <!-- optional --> <!-- TransactionMode may have one of the following values: CardNotPresent [DEFAULT], CardPresent --> <TransactionMode >ENUMTYPE</TransactionMode> <!-- optional --> <!-- CreditCardTxnType may have one of the following values: Authorization, Capture, Charge, Refund, VoiceAuthorization --> <CreditCardTxnType >ENUMTYPE</CreditCardTxnType> <!-- optional --> </CreditCardTxnInputInfo> <CreditCardTxnResultInfo> <!-- required --> <ResultCode >INTTYPE</ResultCode> <!-- required --> <ResultMessage >STRTYPE</ResultMessage> <!-- required --> <CreditCardTransID >STRTYPE</CreditCardTransID> <!-- required --> <MerchantAccountNumber >STRTYPE</MerchantAccountNumber> <!-- required --> <AuthorizationCode >STRTYPE</AuthorizationCode> <!-- optional --> <!-- AVSStreet may have one of the following values: Pass, Fail, NotAvailable --> <AVSStreet >ENUMTYPE</AVSStreet> <!-- optional --> <!-- AVSZip may have one of the following values: Pass, Fail, NotAvailable --> <AVSZip >ENUMTYPE</AVSZip> <!-- optional --> <!-- CardSecurityCodeMatch may have one of the following values: Pass, Fail, NotAvailable --> <CardSecurityCodeMatch >ENUMTYPE</CardSecurityCodeMatch> <!-- optional --> <ReconBatchID >STRTYPE</ReconBatchID> <!-- optional --> <PaymentGroupingCode >INTTYPE</PaymentGroupingCode> <!-- optional --> <!-- PaymentStatus may have one of the following values: Unknown, Completed --> <PaymentStatus >ENUMTYPE</PaymentStatus> <!-- required --> <TxnAuthorizationTime >DATETIMETYPE</TxnAuthorizationTime> <!-- required --> <TxnAuthorizationStamp >INTTYPE</TxnAuthorizationStamp> <!-- optional --> <ClientTransID >STRTYPE</ClientTransID> <!-- optional --> </CreditCardTxnResultInfo> </CreditCardTxnInfo> <DataExtRet> <!-- optional, may repeat --> <OwnerID >GUIDTYPE</OwnerID> <!-- optional --> <DataExtName >STRTYPE</DataExtName> <!-- required --> <!-- DataExtType may have one of the following values: AMTTYPE, DATETIMETYPE, INTTYPE, PERCENTTYPE, PRICETYPE, QUANTYPE, STR1024TYPE, STR255TYPE --> <DataExtType >ENUMTYPE</DataExtType> <!-- required --> <DataExtValue >STRTYPE</DataExtValue> <!-- required --> </DataExtRet> </CreditMemoLineRet> <DataExtRet> <!-- optional, may repeat --> <OwnerID >GUIDTYPE</OwnerID> <!-- optional --> <DataExtName >STRTYPE</DataExtName> <!-- required --> <!-- DataExtType may have one of the following values: AMTTYPE, DATETIMETYPE, INTTYPE, PERCENTTYPE, PRICETYPE, QUANTYPE, STR1024TYPE, STR255TYPE --> <DataExtType >ENUMTYPE</DataExtType> <!-- required --> <DataExtValue >STRTYPE</DataExtValue> <!-- required --> </DataExtRet> </CreditMemoLineGroupRet> <!-- END OR --> <DataExtRet> <!-- optional, may repeat --> <OwnerID >GUIDTYPE</OwnerID> <!-- optional --> <DataExtName >STRTYPE</DataExtName> <!-- required --> <!-- DataExtType may have one of the following values: AMTTYPE, DATETIMETYPE, INTTYPE, PERCENTTYPE, PRICETYPE, QUANTYPE, STR1024TYPE, STR255TYPE --> <DataExtType >ENUMTYPE</DataExtType> <!-- required --> <DataExtValue >STRTYPE</DataExtValue> <!-- required --> </DataExtRet> </CreditMemoRet> </CreditMemoQueryRs> </QBXMLMsgsRq> </QBXML> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 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 196 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 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 | 'The following sample code is generated as an illustration of 'Creating requests and parsing responses ONLY 'This code is NOT intended to show best practices or ideal code 'Use at your most careful discretion imports System imports System.Net imports System.Drawing imports System.Collections imports System.ComponentModel imports System.Windows.Forms imports System.Data imports System.IO imports Interop.QBFC16 Module com.intuit.idn.samples Public Class Sample Public Sub DoCreditMemoQuery() Dim sessionBegun as Boolean sessionBegun = False Dim connectionOpen as Boolean connectionOpen = False Dim sessionManager as QBSessionManager sessionManager = nothing Try 'Create the session Manager object sessionManager = new QBSessionManager 'Create the message set request object to hold our request Dim requestMsgSet as IMsgSetRequest requestMsgSet = sessionManager.CreateMsgSetRequest("US",16,0) requestMsgSet.Attributes.OnError = ENRqOnError.roeContinue BuildCreditMemoQueryRq(requestMsgSet) 'Connect to QuickBooks and begin a session sessionManager.OpenConnection("","Sample Code from OSR") connectionOpen = True sessionManager.BeginSession("", ENOpenMode.omDontCare) sessionBegun = True 'Send the request and get the response from QuickBooks Dim responseMsgSet as IMsgSetResponse responseMsgSet = sessionManager.DoRequests(requestMsgSet) 'End the session and close the connection to QuickBooks sessionManager.EndSession() sessionBegun = False sessionManager.CloseConnection() connectionOpen = False WalkCreditMemoQueryRs(responseMsgSet) Catch e as Exception MessageBox.Show(e.Message, "Error") if (sessionBegun) then sessionManager.EndSession() End If if (connectionOpen) then sessionManager.CloseConnection() End If End Try End Sub Public Sub BuildCreditMemoQueryRq(requestMsgSet as IMsgSetRequest) Dim CreditMemoQueryRq as ICreditMemoQuery CreditMemoQueryRq= requestMsgSet.AppendCreditMemoQueryRq() Dim ORTxnQueryElementType6523 as String ORTxnQueryElementType6523 = "TxnIDList" if (ORTxnQueryElementType6523 == "TxnIDList") then 'Set field value for TxnIDList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnIDList.Add("200000-1011023419") End If if (ORTxnQueryElementType6523 == "RefNumberList") then 'Set field value for RefNumberList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.RefNumberList.Add("ab") End If if (ORTxnQueryElementType6523 == "RefNumberCaseSensitiveList") then 'Set field value for RefNumberCaseSensitiveList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.RefNumberCaseSensitiveList.Add("ab") End If if (ORTxnQueryElementType6523 == "TxnFilter") then 'Set field value for MaxReturned CreditMemoQueryRq.ORTxnQuery.TxnFilter.MaxReturned.SetValue(6) Dim ORDateRangeFilterElementType6524 as String ORDateRangeFilterElementType6524 = "ModifiedDateRangeFilter" if (ORDateRangeFilterElementType6524 == "ModifiedDateRangeFilter") then 'Set field value for FromModifiedDate CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.ModifiedDateRangeFilter.FromModifiedDate.SetValue(DateTime.Parse("12/15/2007 12:15:12"),false) 'Set field value for ToModifiedDate CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.ModifiedDateRangeFilter.ToModifiedDate.SetValue(DateTime.Parse("12/15/2007 12:15:12"),false) End If if (ORDateRangeFilterElementType6524 == "TxnDateRangeFilter") then Dim ORTxnDateRangeFilterElementType6525 as String ORTxnDateRangeFilterElementType6525 = "TxnDateFilter" if (ORTxnDateRangeFilterElementType6525 == "TxnDateFilter") then 'Set field value for FromTxnDate CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.TxnDateRangeFilter.ORTxnDateRangeFilter.TxnDateFilter.FromTxnDate.SetValue(DateTime.Parse("12/15/2007")) 'Set field value for ToTxnDate CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.TxnDateRangeFilter.ORTxnDateRangeFilter.TxnDateFilter.ToTxnDate.SetValue(DateTime.Parse("12/15/2007")) End If if (ORTxnDateRangeFilterElementType6525 == "DateMacro") then 'Set field value for DateMacro CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.TxnDateRangeFilter.ORTxnDateRangeFilter.DateMacro.SetValue(ENDateMacro.dmAll) End If End If Dim OREntityFilterElementType6526 as String OREntityFilterElementType6526 = "ListIDList" if (OREntityFilterElementType6526 == "ListIDList") then 'Set field value for ListIDList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.EntityFilter.OREntityFilter.ListIDList.Add("200000-1011023419") End If if (OREntityFilterElementType6526 == "FullNameList") then 'Set field value for FullNameList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.EntityFilter.OREntityFilter.FullNameList.Add("ab") End If if (OREntityFilterElementType6526 == "ListIDWithChildren") then 'Set field value for ListIDWithChildren CreditMemoQueryRq.ORTxnQuery.TxnFilter.EntityFilter.OREntityFilter.ListIDWithChildren.SetValue("200000-1011023419") End If if (OREntityFilterElementType6526 == "FullNameWithChildren") then 'Set field value for FullNameWithChildren CreditMemoQueryRq.ORTxnQuery.TxnFilter.EntityFilter.OREntityFilter.FullNameWithChildren.SetValue("ab") End If Dim ORAccountFilterElementType6527 as String ORAccountFilterElementType6527 = "ListIDList" if (ORAccountFilterElementType6527 == "ListIDList") then 'Set field value for ListIDList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.AccountFilter.ORAccountFilter.ListIDList.Add("200000-1011023419") End If if (ORAccountFilterElementType6527 == "FullNameList") then 'Set field value for FullNameList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.AccountFilter.ORAccountFilter.FullNameList.Add("ab") End If if (ORAccountFilterElementType6527 == "ListIDWithChildren") then 'Set field value for ListIDWithChildren CreditMemoQueryRq.ORTxnQuery.TxnFilter.AccountFilter.ORAccountFilter.ListIDWithChildren.SetValue("200000-1011023419") End If if (ORAccountFilterElementType6527 == "FullNameWithChildren") then 'Set field value for FullNameWithChildren CreditMemoQueryRq.ORTxnQuery.TxnFilter.AccountFilter.ORAccountFilter.FullNameWithChildren.SetValue("ab") End If Dim ORRefNumberFilterElementType6528 as String ORRefNumberFilterElementType6528 = "RefNumberFilter" if (ORRefNumberFilterElementType6528 == "RefNumberFilter") then 'Set field value for MatchCriterion CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORRefNumberFilter.RefNumberFilter.MatchCriterion.SetValue(ENMatchCriterion.mcStartsWith) 'Set field value for RefNumber CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORRefNumberFilter.RefNumberFilter.RefNumber.SetValue("ab") End If if (ORRefNumberFilterElementType6528 == "RefNumberRangeFilter") then 'Set field value for FromRefNumber CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORRefNumberFilter.RefNumberRangeFilter.FromRefNumber.SetValue("ab") 'Set field value for ToRefNumber CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORRefNumberFilter.RefNumberRangeFilter.ToRefNumber.SetValue("ab") End If Dim ORCurrencyFilterElementType6529 as String ORCurrencyFilterElementType6529 = "ListIDList" if (ORCurrencyFilterElementType6529 == "ListIDList") then 'Set field value for ListIDList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.CurrencyFilter.ORCurrencyFilter.ListIDList.Add("200000-1011023419") End If if (ORCurrencyFilterElementType6529 == "FullNameList") then 'Set field value for FullNameList 'May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.CurrencyFilter.ORCurrencyFilter.FullNameList.Add("ab") End If End If 'Set field value for IncludeLineItems CreditMemoQueryRq.IncludeLineItems.SetValue(True) 'Set field value for IncludeLinkedTxns CreditMemoQueryRq.IncludeLinkedTxns.SetValue(True) 'Set field value for IncludeRetElementList 'May create more than one of these if needed CreditMemoQueryRq.IncludeRetElementList.Add("ab") 'Set field value for OwnerIDList 'May create more than one of these if needed CreditMemoQueryRq.OwnerIDList.Add(System.Guid.NewGuid().ToString()) End Sub Public Sub WalkCreditMemoQueryRs( responseMsgSet as IMsgSetResponse) if (responseMsgSet is nothing) then Exit Sub End If Dim responseList as IResponseList responseList = responseMsgSet.ResponseList if (responseList is nothing) then Exit Sub End If 'if we sent only one request, there is only one response, we'll walk the list for this sample for j=0 to responseList.Count-1 Dim response as IResponse response = responseList.GetAt(j) 'check the status code of the response, 0=ok, >0 is warning if (response.StatusCode >= 0) then 'the request-specific response is in the details, make sure we have some if (not response.Detail is nothing) then 'make sure the response is the type we're expecting Dim responseType as ENResponseType responseType = CType(response.Type.GetValue(),ENResponseType) if (responseType == ENResponseType.rtCreditMemoQueryRs) then 'upcast to more specific type here, this is safe because we checked with response.Type check above Dim CreditMemoRet as ICreditMemoRetList CreditMemoRet = CType(response.Detail,ICreditMemoRetList) WalkCreditMemoRet(CreditMemoRet) End If End If End If Next j End Sub Public Sub WalkCreditMemoRet(CreditMemoRet as ICreditMemoRetList) if (CreditMemoRet is nothing) then Exit Sub End If 'Go through all the elements of ICreditMemoRetList 'Get value of TxnID Dim TxnID6530 as String TxnID6530 = CreditMemoRet.TxnID.GetValue() 'Get value of TimeCreated Dim TimeCreated6531 as DateTime TimeCreated6531 = CreditMemoRet.TimeCreated.GetValue() 'Get value of TimeModified Dim TimeModified6532 as DateTime TimeModified6532 = CreditMemoRet.TimeModified.GetValue() 'Get value of EditSequence Dim EditSequence6533 as String EditSequence6533 = CreditMemoRet.EditSequence.GetValue() 'Get value of TxnNumber if ( not CreditMemoRet.TxnNumber is nothing) then Dim TxnNumber6534 as Integer TxnNumber6534 = CreditMemoRet.TxnNumber.GetValue() End If 'Get value of ListID if ( not CreditMemoRet.CustomerRef.ListID is nothing) then Dim ListID6535 as String ListID6535 = CreditMemoRet.CustomerRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.CustomerRef.FullName is nothing) then Dim FullName6536 as String FullName6536 = CreditMemoRet.CustomerRef.FullName.GetValue() End If if (not CreditMemoRet.ClassRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.ClassRef.ListID is nothing) then Dim ListID6537 as String ListID6537 = CreditMemoRet.ClassRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.ClassRef.FullName is nothing) then Dim FullName6538 as String FullName6538 = CreditMemoRet.ClassRef.FullName.GetValue() End If End If if (not CreditMemoRet.ARAccountRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.ARAccountRef.ListID is nothing) then Dim ListID6539 as String ListID6539 = CreditMemoRet.ARAccountRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.ARAccountRef.FullName is nothing) then Dim FullName6540 as String FullName6540 = CreditMemoRet.ARAccountRef.FullName.GetValue() End If End If if (not CreditMemoRet.TemplateRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.TemplateRef.ListID is nothing) then Dim ListID6541 as String ListID6541 = CreditMemoRet.TemplateRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.TemplateRef.FullName is nothing) then Dim FullName6542 as String FullName6542 = CreditMemoRet.TemplateRef.FullName.GetValue() End If End If 'Get value of TxnDate Dim TxnDate6543 as DateTime TxnDate6543 = CreditMemoRet.TxnDate.GetValue() 'Get value of RefNumber if ( not CreditMemoRet.RefNumber is nothing) then Dim RefNumber6544 as String RefNumber6544 = CreditMemoRet.RefNumber.GetValue() End If if (not CreditMemoRet.BillAddress. is nothing) then 'Get value of Addr1 if ( not CreditMemoRet.BillAddress.Addr1 is nothing) then Dim Addr16545 as String Addr16545 = CreditMemoRet.BillAddress.Addr1.GetValue() End If 'Get value of Addr2 if ( not CreditMemoRet.BillAddress.Addr2 is nothing) then Dim Addr26546 as String Addr26546 = CreditMemoRet.BillAddress.Addr2.GetValue() End If 'Get value of Addr3 if ( not CreditMemoRet.BillAddress.Addr3 is nothing) then Dim Addr36547 as String Addr36547 = CreditMemoRet.BillAddress.Addr3.GetValue() End If 'Get value of Addr4 if ( not CreditMemoRet.BillAddress.Addr4 is nothing) then Dim Addr46548 as String Addr46548 = CreditMemoRet.BillAddress.Addr4.GetValue() End If 'Get value of Addr5 if ( not CreditMemoRet.BillAddress.Addr5 is nothing) then Dim Addr56549 as String Addr56549 = CreditMemoRet.BillAddress.Addr5.GetValue() End If 'Get value of City if ( not CreditMemoRet.BillAddress.City is nothing) then Dim City6550 as String City6550 = CreditMemoRet.BillAddress.City.GetValue() End If 'Get value of State if ( not CreditMemoRet.BillAddress.State is nothing) then Dim State6551 as String State6551 = CreditMemoRet.BillAddress.State.GetValue() End If 'Get value of PostalCode if ( not CreditMemoRet.BillAddress.PostalCode is nothing) then Dim PostalCode6552 as String PostalCode6552 = CreditMemoRet.BillAddress.PostalCode.GetValue() End If 'Get value of Country if ( not CreditMemoRet.BillAddress.Country is nothing) then Dim Country6553 as String Country6553 = CreditMemoRet.BillAddress.Country.GetValue() End If 'Get value of Note if ( not CreditMemoRet.BillAddress.Note is nothing) then Dim Note6554 as String Note6554 = CreditMemoRet.BillAddress.Note.GetValue() End If End If if (not CreditMemoRet.BillAddressBlock. is nothing) then 'Get value of Addr1 if ( not CreditMemoRet.BillAddressBlock.Addr1 is nothing) then Dim Addr16555 as String Addr16555 = CreditMemoRet.BillAddressBlock.Addr1.GetValue() End If 'Get value of Addr2 if ( not CreditMemoRet.BillAddressBlock.Addr2 is nothing) then Dim Addr26556 as String Addr26556 = CreditMemoRet.BillAddressBlock.Addr2.GetValue() End If 'Get value of Addr3 if ( not CreditMemoRet.BillAddressBlock.Addr3 is nothing) then Dim Addr36557 as String Addr36557 = CreditMemoRet.BillAddressBlock.Addr3.GetValue() End If 'Get value of Addr4 if ( not CreditMemoRet.BillAddressBlock.Addr4 is nothing) then Dim Addr46558 as String Addr46558 = CreditMemoRet.BillAddressBlock.Addr4.GetValue() End If 'Get value of Addr5 if ( not CreditMemoRet.BillAddressBlock.Addr5 is nothing) then Dim Addr56559 as String Addr56559 = CreditMemoRet.BillAddressBlock.Addr5.GetValue() End If End If if (not CreditMemoRet.ShipAddress. is nothing) then 'Get value of Addr1 if ( not CreditMemoRet.ShipAddress.Addr1 is nothing) then Dim Addr16560 as String Addr16560 = CreditMemoRet.ShipAddress.Addr1.GetValue() End If 'Get value of Addr2 if ( not CreditMemoRet.ShipAddress.Addr2 is nothing) then Dim Addr26561 as String Addr26561 = CreditMemoRet.ShipAddress.Addr2.GetValue() End If 'Get value of Addr3 if ( not CreditMemoRet.ShipAddress.Addr3 is nothing) then Dim Addr36562 as String Addr36562 = CreditMemoRet.ShipAddress.Addr3.GetValue() End If 'Get value of Addr4 if ( not CreditMemoRet.ShipAddress.Addr4 is nothing) then Dim Addr46563 as String Addr46563 = CreditMemoRet.ShipAddress.Addr4.GetValue() End If 'Get value of Addr5 if ( not CreditMemoRet.ShipAddress.Addr5 is nothing) then Dim Addr56564 as String Addr56564 = CreditMemoRet.ShipAddress.Addr5.GetValue() End If 'Get value of City if ( not CreditMemoRet.ShipAddress.City is nothing) then Dim City6565 as String City6565 = CreditMemoRet.ShipAddress.City.GetValue() End If 'Get value of State if ( not CreditMemoRet.ShipAddress.State is nothing) then Dim State6566 as String State6566 = CreditMemoRet.ShipAddress.State.GetValue() End If 'Get value of PostalCode if ( not CreditMemoRet.ShipAddress.PostalCode is nothing) then Dim PostalCode6567 as String PostalCode6567 = CreditMemoRet.ShipAddress.PostalCode.GetValue() End If 'Get value of Country if ( not CreditMemoRet.ShipAddress.Country is nothing) then Dim Country6568 as String Country6568 = CreditMemoRet.ShipAddress.Country.GetValue() End If 'Get value of Note if ( not CreditMemoRet.ShipAddress.Note is nothing) then Dim Note6569 as String Note6569 = CreditMemoRet.ShipAddress.Note.GetValue() End If End If if (not CreditMemoRet.ShipAddressBlock. is nothing) then 'Get value of Addr1 if ( not CreditMemoRet.ShipAddressBlock.Addr1 is nothing) then Dim Addr16570 as String Addr16570 = CreditMemoRet.ShipAddressBlock.Addr1.GetValue() End If 'Get value of Addr2 if ( not CreditMemoRet.ShipAddressBlock.Addr2 is nothing) then Dim Addr26571 as String Addr26571 = CreditMemoRet.ShipAddressBlock.Addr2.GetValue() End If 'Get value of Addr3 if ( not CreditMemoRet.ShipAddressBlock.Addr3 is nothing) then Dim Addr36572 as String Addr36572 = CreditMemoRet.ShipAddressBlock.Addr3.GetValue() End If 'Get value of Addr4 if ( not CreditMemoRet.ShipAddressBlock.Addr4 is nothing) then Dim Addr46573 as String Addr46573 = CreditMemoRet.ShipAddressBlock.Addr4.GetValue() End If 'Get value of Addr5 if ( not CreditMemoRet.ShipAddressBlock.Addr5 is nothing) then Dim Addr56574 as String Addr56574 = CreditMemoRet.ShipAddressBlock.Addr5.GetValue() End If End If 'Get value of IsPending if ( not CreditMemoRet.IsPending is nothing) then Dim IsPending6575 as Boolean IsPending6575 = CreditMemoRet.IsPending.GetValue() End If 'Get value of PONumber if ( not CreditMemoRet.PONumber is nothing) then Dim PONumber6576 as String PONumber6576 = CreditMemoRet.PONumber.GetValue() End If if (not CreditMemoRet.TermsRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.TermsRef.ListID is nothing) then Dim ListID6577 as String ListID6577 = CreditMemoRet.TermsRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.TermsRef.FullName is nothing) then Dim FullName6578 as String FullName6578 = CreditMemoRet.TermsRef.FullName.GetValue() End If End If 'Get value of DueDate if ( not CreditMemoRet.DueDate is nothing) then Dim DueDate6579 as DateTime DueDate6579 = CreditMemoRet.DueDate.GetValue() End If if (not CreditMemoRet.SalesRepRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.SalesRepRef.ListID is nothing) then Dim ListID6580 as String ListID6580 = CreditMemoRet.SalesRepRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.SalesRepRef.FullName is nothing) then Dim FullName6581 as String FullName6581 = CreditMemoRet.SalesRepRef.FullName.GetValue() End If End If 'Get value of FOB if ( not CreditMemoRet.FOB is nothing) then Dim FOB6582 as String FOB6582 = CreditMemoRet.FOB.GetValue() End If 'Get value of ShipDate if ( not CreditMemoRet.ShipDate is nothing) then Dim ShipDate6583 as DateTime ShipDate6583 = CreditMemoRet.ShipDate.GetValue() End If if (not CreditMemoRet.ShipMethodRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.ShipMethodRef.ListID is nothing) then Dim ListID6584 as String ListID6584 = CreditMemoRet.ShipMethodRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.ShipMethodRef.FullName is nothing) then Dim FullName6585 as String FullName6585 = CreditMemoRet.ShipMethodRef.FullName.GetValue() End If End If 'Get value of Subtotal if ( not CreditMemoRet.Subtotal is nothing) then Dim Subtotal6586 as Double Subtotal6586 = CreditMemoRet.Subtotal.GetValue() End If if (not CreditMemoRet.ItemSalesTaxRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.ItemSalesTaxRef.ListID is nothing) then Dim ListID6587 as String ListID6587 = CreditMemoRet.ItemSalesTaxRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.ItemSalesTaxRef.FullName is nothing) then Dim FullName6588 as String FullName6588 = CreditMemoRet.ItemSalesTaxRef.FullName.GetValue() End If End If 'Get value of SalesTaxPercentage if ( not CreditMemoRet.SalesTaxPercentage is nothing) then Dim SalesTaxPercentage6589 as Double SalesTaxPercentage6589 = CreditMemoRet.SalesTaxPercentage.GetValue() End If 'Get value of SalesTaxTotal if ( not CreditMemoRet.SalesTaxTotal is nothing) then Dim SalesTaxTotal6590 as Double SalesTaxTotal6590 = CreditMemoRet.SalesTaxTotal.GetValue() End If 'Get value of TotalAmount if ( not CreditMemoRet.TotalAmount is nothing) then Dim TotalAmount6591 as Double TotalAmount6591 = CreditMemoRet.TotalAmount.GetValue() End If 'Get value of CreditRemaining if ( not CreditMemoRet.CreditRemaining is nothing) then Dim CreditRemaining6592 as Double CreditRemaining6592 = CreditMemoRet.CreditRemaining.GetValue() End If if (not CreditMemoRet.CurrencyRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.CurrencyRef.ListID is nothing) then Dim ListID6593 as String ListID6593 = CreditMemoRet.CurrencyRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.CurrencyRef.FullName is nothing) then Dim FullName6594 as String FullName6594 = CreditMemoRet.CurrencyRef.FullName.GetValue() End If End If 'Get value of ExchangeRate if ( not CreditMemoRet.ExchangeRate is nothing) then Dim ExchangeRate6595 as IQBFloatType ExchangeRate6595 = CreditMemoRet.ExchangeRate.GetValue() End If 'Get value of CreditRemainingInHomeCurrency if ( not CreditMemoRet.CreditRemainingInHomeCurrency is nothing) then Dim CreditRemainingInHomeCurrency6596 as Double CreditRemainingInHomeCurrency6596 = CreditMemoRet.CreditRemainingInHomeCurrency.GetValue() End If 'Get value of Memo if ( not CreditMemoRet.Memo is nothing) then Dim Memo6597 as String Memo6597 = CreditMemoRet.Memo.GetValue() End If if (not CreditMemoRet.CustomerMsgRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.CustomerMsgRef.ListID is nothing) then Dim ListID6598 as String ListID6598 = CreditMemoRet.CustomerMsgRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.CustomerMsgRef.FullName is nothing) then Dim FullName6599 as String FullName6599 = CreditMemoRet.CustomerMsgRef.FullName.GetValue() End If End If 'Get value of IsToBePrinted if ( not CreditMemoRet.IsToBePrinted is nothing) then Dim IsToBePrinted6600 as Boolean IsToBePrinted6600 = CreditMemoRet.IsToBePrinted.GetValue() End If 'Get value of IsToBeEmailed if ( not CreditMemoRet.IsToBeEmailed is nothing) then Dim IsToBeEmailed6601 as Boolean IsToBeEmailed6601 = CreditMemoRet.IsToBeEmailed.GetValue() End If 'Get value of IsTaxIncluded if ( not CreditMemoRet.IsTaxIncluded is nothing) then Dim IsTaxIncluded6602 as Boolean IsTaxIncluded6602 = CreditMemoRet.IsTaxIncluded.GetValue() End If if (not CreditMemoRet.CustomerSalesTaxCodeRef. is nothing) then 'Get value of ListID if ( not CreditMemoRet.CustomerSalesTaxCodeRef.ListID is nothing) then Dim ListID6603 as String ListID6603 = CreditMemoRet.CustomerSalesTaxCodeRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoRet.CustomerSalesTaxCodeRef.FullName is nothing) then Dim FullName6604 as String FullName6604 = CreditMemoRet.CustomerSalesTaxCodeRef.FullName.GetValue() End If End If 'Get value of Other if ( not CreditMemoRet.Other is nothing) then Dim Other6605 as String Other6605 = CreditMemoRet.Other.GetValue() End If 'Get value of ExternalGUID if ( not CreditMemoRet.ExternalGUID is nothing) then Dim ExternalGUID6606 as String ExternalGUID6606 = CreditMemoRet.ExternalGUID.GetValue() End If if (not CreditMemoRet.LinkedTxnList is nothing) Dim i6607 as Integer for i6607 = 0 to CreditMemoRet.LinkedTxnList.Count - 1 Dim LinkedTxn as ILinkedTxn LinkedTxn = CreditMemoRet.LinkedTxnList.GetAt(i6607) 'Get value of TxnID Dim TxnID6608 as String TxnID6608 = LinkedTxnTxnID.GetValue() 'Get value of TxnType Dim TxnType6609 as ENTxnType TxnType6609 = LinkedTxnTxnType.GetValue() 'Get value of TxnDate Dim TxnDate6610 as DateTime TxnDate6610 = LinkedTxnTxnDate.GetValue() 'Get value of RefNumber if ( not LinkedTxnRefNumber is nothing) then Dim RefNumber6611 as String RefNumber6611 = LinkedTxnRefNumber.GetValue() End If 'Get value of LinkType if ( not LinkedTxnLinkType is nothing) then Dim LinkType6612 as ENLinkType LinkType6612 = LinkedTxnLinkType.GetValue() End If 'Get value of Amount Dim Amount6613 as Double Amount6613 = LinkedTxnAmount.GetValue() Next i6607 End If if (not CreditMemoRet.ORCreditMemoLineRetList is nothing) then Dim i6614 as Integer for i6614 = 0 to CreditMemoRet.ORCreditMemoLineRetList.Count - 1 Dim ORCreditMemoLineRet6615 as IORCreditMemoLineRet ORCreditMemoLineRet6615 = CreditMemoRet.ORCreditMemoLineRetList.GetAt(i6614) if (not ORCreditMemoLineRet6615.CreditMemoLineRet is nothing) then if (not ORCreditMemoLineRet6615.CreditMemoLineRet. is nothing) then 'Get value of TxnLineID Dim TxnLineID6616 as String TxnLineID6616 = ORCreditMemoLineRet6615.CreditMemoLineRet.TxnLineID.GetValue() if (not ORCreditMemoLineRet6615.CreditMemoLineRet.ItemRef. is nothing) then 'Get value of ListID if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ItemRef.ListID is nothing) then Dim ListID6617 as String ListID6617 = ORCreditMemoLineRet6615.CreditMemoLineRet.ItemRef.ListID.GetValue() End If 'Get value of FullName if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ItemRef.FullName is nothing) then Dim FullName6618 as String FullName6618 = ORCreditMemoLineRet6615.CreditMemoLineRet.ItemRef.FullName.GetValue() End If End If 'Get value of Desc if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.Desc is nothing) then Dim Desc6619 as String Desc6619 = ORCreditMemoLineRet6615.CreditMemoLineRet.Desc.GetValue() End If 'Get value of Quantity if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.Quantity is nothing) then Dim Quantity6620 as Integer Quantity6620 = ORCreditMemoLineRet6615.CreditMemoLineRet.Quantity.GetValue() End If 'Get value of UnitOfMeasure if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.UnitOfMeasure is nothing) then Dim UnitOfMeasure6621 as String UnitOfMeasure6621 = ORCreditMemoLineRet6615.CreditMemoLineRet.UnitOfMeasure.GetValue() End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.OverrideUOMSetRef. is nothing) then 'Get value of ListID if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.OverrideUOMSetRef.ListID is nothing) then Dim ListID6622 as String ListID6622 = ORCreditMemoLineRet6615.CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue() End If 'Get value of FullName if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.OverrideUOMSetRef.FullName is nothing) then Dim FullName6623 as String FullName6623 = ORCreditMemoLineRet6615.CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue() End If End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.ORRate is nothing) then if (not ORCreditMemoLineRet6615.CreditMemoLineRet.ORRate.Rate is nothing) then 'Get value of Rate if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ORRate.Rate is nothing) then Dim Rate6625 as Double Rate6625 = ORCreditMemoLineRet6615.CreditMemoLineRet.ORRate.Rate.GetValue() End If End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.ORRate.RatePercent is nothing) then 'Get value of RatePercent if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ORRate.RatePercent is nothing) then Dim RatePercent6626 as Double RatePercent6626 = ORCreditMemoLineRet6615.CreditMemoLineRet.ORRate.RatePercent.GetValue() End If End If End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.ClassRef. is nothing) then 'Get value of ListID if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ClassRef.ListID is nothing) then Dim ListID6627 as String ListID6627 = ORCreditMemoLineRet6615.CreditMemoLineRet.ClassRef.ListID.GetValue() End If 'Get value of FullName if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ClassRef.FullName is nothing) then Dim FullName6628 as String FullName6628 = ORCreditMemoLineRet6615.CreditMemoLineRet.ClassRef.FullName.GetValue() End If End If 'Get value of Amount if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.Amount is nothing) then Dim Amount6629 as Double Amount6629 = ORCreditMemoLineRet6615.CreditMemoLineRet.Amount.GetValue() End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteRef. is nothing) then 'Get value of ListID if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteRef.ListID is nothing) then Dim ListID6630 as String ListID6630 = ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteRef.ListID.GetValue() End If 'Get value of FullName if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteRef.FullName is nothing) then Dim FullName6631 as String FullName6631 = ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteRef.FullName.GetValue() End If End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteLocationRef. is nothing) then 'Get value of ListID if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteLocationRef.ListID is nothing) then Dim ListID6632 as String ListID6632 = ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue() End If 'Get value of FullName if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteLocationRef.FullName is nothing) then Dim FullName6633 as String FullName6633 = ORCreditMemoLineRet6615.CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue() End If End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.ORSerialLotNumber is nothing) then if (not ORCreditMemoLineRet6615.CreditMemoLineRet.ORSerialLotNumber.SerialNumber is nothing) then 'Get value of SerialNumber if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ORSerialLotNumber.SerialNumber is nothing) then Dim SerialNumber6635 as String SerialNumber6635 = ORCreditMemoLineRet6615.CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue() End If End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.ORSerialLotNumber.LotNumber is nothing) then 'Get value of LotNumber if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ORSerialLotNumber.LotNumber is nothing) then Dim LotNumber6636 as String LotNumber6636 = ORCreditMemoLineRet6615.CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue() End If End If End If 'Get value of ExpirationDateForSerialLotNumber if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ExpirationDateForSerialLotNumber is nothing) then Dim ExpDate as String ExpDate = ORCreditMemoLineRet6615.CreditMemoLineRetExpirationDateForSerialLotNumber.GetValue() End If 'Get value of ServiceDate if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.ServiceDate is nothing) then Dim ServiceDate6637 as DateTime ServiceDate6637 = ORCreditMemoLineRet6615.CreditMemoLineRet.ServiceDate.GetValue() End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.SalesTaxCodeRef. is nothing) then 'Get value of ListID if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.SalesTaxCodeRef.ListID is nothing) then Dim ListID6638 as String ListID6638 = ORCreditMemoLineRet6615.CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue() End If 'Get value of FullName if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.SalesTaxCodeRef.FullName is nothing) then Dim FullName6639 as String FullName6639 = ORCreditMemoLineRet6615.CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue() End If End If 'Get value of Other1 if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.Other1 is nothing) then Dim Other16640 as String Other16640 = ORCreditMemoLineRet6615.CreditMemoLineRet.Other1.GetValue() End If 'Get value of Other2 if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.Other2 is nothing) then Dim Other26641 as String Other26641 = ORCreditMemoLineRet6615.CreditMemoLineRet.Other2.GetValue() End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo. is nothing) then 'Get value of CreditCardNumber Dim CreditCardNumber6642 as String CreditCardNumber6642 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue() 'Get value of ExpirationMonth Dim ExpirationMonth6643 as Integer ExpirationMonth6643 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue() 'Get value of ExpirationYear Dim ExpirationYear6644 as Integer ExpirationYear6644 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue() 'Get value of NameOnCard Dim NameOnCard6645 as String NameOnCard6645 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue() 'Get value of CreditCardAddress if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress is nothing) then Dim CreditCardAddress6646 as String CreditCardAddress6646 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue() End If 'Get value of CreditCardPostalCode if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode is nothing) then Dim CreditCardPostalCode6647 as String CreditCardPostalCode6647 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue() End If 'Get value of CommercialCardCode if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode is nothing) then Dim CommercialCardCode6648 as String CommercialCardCode6648 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue() End If 'Get value of TransactionMode if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode is nothing) then Dim TransactionMode6649 as ENTransactionMode TransactionMode6649 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue() End If 'Get value of CreditCardTxnType if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType is nothing) then Dim CreditCardTxnType6650 as ENCreditCardTxnType CreditCardTxnType6650 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue() End If 'Get value of ResultCode Dim ResultCode6651 as Integer ResultCode6651 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue() 'Get value of ResultMessage Dim ResultMessage6652 as String ResultMessage6652 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue() 'Get value of CreditCardTransID Dim CreditCardTransID6653 as String CreditCardTransID6653 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue() 'Get value of MerchantAccountNumber Dim MerchantAccountNumber6654 as String MerchantAccountNumber6654 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue() 'Get value of AuthorizationCode if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode is nothing) then Dim AuthorizationCode6655 as String AuthorizationCode6655 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue() End If 'Get value of AVSStreet if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet is nothing) then Dim AVSStreet6656 as ENAVSStreet AVSStreet6656 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue() End If 'Get value of AVSZip if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip is nothing) then Dim AVSZip6657 as ENAVSZip AVSZip6657 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue() End If 'Get value of CardSecurityCodeMatch if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch is nothing) then Dim CardSecurityCodeMatch6658 as ENCardSecurityCodeMatch CardSecurityCodeMatch6658 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue() End If 'Get value of ReconBatchID if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID is nothing) then Dim ReconBatchID6659 as String ReconBatchID6659 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue() End If 'Get value of PaymentGroupingCode if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode is nothing) then Dim PaymentGroupingCode6660 as Integer PaymentGroupingCode6660 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue() End If 'Get value of PaymentStatus Dim PaymentStatus6661 as ENPaymentStatus PaymentStatus6661 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue() 'Get value of TxnAuthorizationTime Dim TxnAuthorizationTime6662 as DateTime TxnAuthorizationTime6662 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue() 'Get value of TxnAuthorizationStamp if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp is nothing) then Dim TxnAuthorizationStamp6663 as Integer TxnAuthorizationStamp6663 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue() End If 'Get value of ClientTransID if ( not ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID is nothing) then Dim ClientTransID6664 as String ClientTransID6664 = ORCreditMemoLineRet6615.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue() End If End If if (not ORCreditMemoLineRet6615.CreditMemoLineRet.DataExtRetList is nothing) Dim i6665 as Integer for i6665 = 0 to ORCreditMemoLineRet6615.CreditMemoLineRet.DataExtRetList.Count - 1 Dim DataExtRet as IDataExtRet DataExtRet = ORCreditMemoLineRet6615.CreditMemoLineRet.DataExtRetList.GetAt(i6665) 'Get value of OwnerID if ( not DataExtRetOwnerID is nothing) then Dim OwnerID6666 as String OwnerID6666 = DataExtRetOwnerID.GetValue() End If 'Get value of DataExtName Dim DataExtName6667 as String DataExtName6667 = DataExtRetDataExtName.GetValue() 'Get value of DataExtType Dim DataExtType6668 as ENDataExtType DataExtType6668 = DataExtRetDataExtType.GetValue() 'Get value of DataExtValue Dim DataExtValue6669 as String DataExtValue6669 = DataExtRetDataExtValue.GetValue() Next i6665 End If End If End If if (not ORCreditMemoLineRet6615.CreditMemoLineGroupRet is nothing) then if (not ORCreditMemoLineRet6615.CreditMemoLineGroupRet. is nothing) then 'Get value of TxnLineID Dim TxnLineID6670 as String TxnLineID6670 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.TxnLineID.GetValue() 'Get value of ListID if ( not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.ItemGroupRef.ListID is nothing) then Dim ListID6671 as String ListID6671 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.ItemGroupRef.ListID.GetValue() End If 'Get value of FullName if ( not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.ItemGroupRef.FullName is nothing) then Dim FullName6672 as String FullName6672 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.ItemGroupRef.FullName.GetValue() End If 'Get value of Desc if ( not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.Desc is nothing) then Dim Desc6673 as String Desc6673 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.Desc.GetValue() End If 'Get value of Quantity if ( not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.Quantity is nothing) then Dim Quantity6674 as Integer Quantity6674 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.Quantity.GetValue() End If 'Get value of UnitOfMeasure if ( not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.UnitOfMeasure is nothing) then Dim UnitOfMeasure6675 as String UnitOfMeasure6675 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.UnitOfMeasure.GetValue() End If if (not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.OverrideUOMSetRef. is nothing) then 'Get value of ListID if ( not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID is nothing) then Dim ListID6676 as String ListID6676 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID.GetValue() End If 'Get value of FullName if ( not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName is nothing) then Dim FullName6677 as String FullName6677 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName.GetValue() End If End If 'Get value of IsPrintItemsInGroup Dim IsPrintItemsInGroup6678 as Boolean IsPrintItemsInGroup6678 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.IsPrintItemsInGroup.GetValue() 'Get value of TotalAmount Dim TotalAmount6679 as Double TotalAmount6679 = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.TotalAmount.GetValue() if (not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.CreditMemoLineRetList is nothing) Dim i6680 as Integer for i6680 = 0 to ORCreditMemoLineRet6615.CreditMemoLineGroupRet.CreditMemoLineRetList.Count - 1 Dim CreditMemoLineRet as ICreditMemoLineRet CreditMemoLineRet = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.CreditMemoLineRetList.GetAt(i6680) 'Get value of TxnLineID Dim TxnLineID6681 as String TxnLineID6681 = CreditMemoLineRetTxnLineID.GetValue() if (not CreditMemoLineRetItemRef. is nothing) then 'Get value of ListID if ( not CreditMemoLineRetItemRef.ListID is nothing) then Dim ListID6682 as String ListID6682 = CreditMemoLineRetItemRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoLineRetItemRef.FullName is nothing) then Dim FullName6683 as String FullName6683 = CreditMemoLineRetItemRef.FullName.GetValue() End If End If 'Get value of Desc if ( not CreditMemoLineRetDesc is nothing) then Dim Desc6684 as String Desc6684 = CreditMemoLineRetDesc.GetValue() End If 'Get value of Quantity if ( not CreditMemoLineRetQuantity is nothing) then Dim Quantity6685 as Integer Quantity6685 = CreditMemoLineRetQuantity.GetValue() End If 'Get value of UnitOfMeasure if ( not CreditMemoLineRetUnitOfMeasure is nothing) then Dim UnitOfMeasure6686 as String UnitOfMeasure6686 = CreditMemoLineRetUnitOfMeasure.GetValue() End If if (not CreditMemoLineRetOverrideUOMSetRef. is nothing) then 'Get value of ListID if ( not CreditMemoLineRetOverrideUOMSetRef.ListID is nothing) then Dim ListID6687 as String ListID6687 = CreditMemoLineRetOverrideUOMSetRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoLineRetOverrideUOMSetRef.FullName is nothing) then Dim FullName6688 as String FullName6688 = CreditMemoLineRetOverrideUOMSetRef.FullName.GetValue() End If End If if (not CreditMemoLineRetORRate is nothing) then if (not CreditMemoLineRetORRate.Rate is nothing) then 'Get value of Rate if ( not CreditMemoLineRetORRate.Rate is nothing) then Dim Rate6690 as Double Rate6690 = CreditMemoLineRetORRate.Rate.GetValue() End If End If if (not CreditMemoLineRetORRate.RatePercent is nothing) then 'Get value of RatePercent if ( not CreditMemoLineRetORRate.RatePercent is nothing) then Dim RatePercent6691 as Double RatePercent6691 = CreditMemoLineRetORRate.RatePercent.GetValue() End If End If End If if (not CreditMemoLineRetClassRef. is nothing) then 'Get value of ListID if ( not CreditMemoLineRetClassRef.ListID is nothing) then Dim ListID6692 as String ListID6692 = CreditMemoLineRetClassRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoLineRetClassRef.FullName is nothing) then Dim FullName6693 as String FullName6693 = CreditMemoLineRetClassRef.FullName.GetValue() End If End If 'Get value of Amount if ( not CreditMemoLineRetAmount is nothing) then Dim Amount6694 as Double Amount6694 = CreditMemoLineRetAmount.GetValue() End If if (not CreditMemoLineRetInventorySiteRef. is nothing) then 'Get value of ListID if ( not CreditMemoLineRetInventorySiteRef.ListID is nothing) then Dim ListID6695 as String ListID6695 = CreditMemoLineRetInventorySiteRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoLineRetInventorySiteRef.FullName is nothing) then Dim FullName6696 as String FullName6696 = CreditMemoLineRetInventorySiteRef.FullName.GetValue() End If End If if (not CreditMemoLineRetInventorySiteLocationRef. is nothing) then 'Get value of ListID if ( not CreditMemoLineRetInventorySiteLocationRef.ListID is nothing) then Dim ListID6697 as String ListID6697 = CreditMemoLineRetInventorySiteLocationRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoLineRetInventorySiteLocationRef.FullName is nothing) then Dim FullName6698 as String FullName6698 = CreditMemoLineRetInventorySiteLocationRef.FullName.GetValue() End If End If if (not CreditMemoLineRetORSerialLotNumber is nothing) then if (not CreditMemoLineRetORSerialLotNumber.SerialNumber is nothing) then 'Get value of SerialNumber if ( not CreditMemoLineRetORSerialLotNumber.SerialNumber is nothing) then Dim SerialNumber6700 as String SerialNumber6700 = CreditMemoLineRetORSerialLotNumber.SerialNumber.GetValue() End If End If if (not CreditMemoLineRetORSerialLotNumber.LotNumber is nothing) then 'Get value of LotNumber if ( not CreditMemoLineRetORSerialLotNumber.LotNumber is nothing) then Dim LotNumber6701 as String LotNumber6701 = CreditMemoLineRetORSerialLotNumber.LotNumber.GetValue() End If End If End If 'Get value of ExpirationDateForSerialLotNumber if ( not CreditMemoLineRetExpirationDateForSerialLotNumber is nothing) then Dim ExpDate as String ExpDate = CreditMemoLineRetExpirationDateForSerialLotNumber.GetValue() End If 'Get value of ServiceDate if ( not CreditMemoLineRetServiceDate is nothing) then Dim ServiceDate6702 as DateTime ServiceDate6702 = CreditMemoLineRetServiceDate.GetValue() End If if (not CreditMemoLineRetSalesTaxCodeRef. is nothing) then 'Get value of ListID if ( not CreditMemoLineRetSalesTaxCodeRef.ListID is nothing) then Dim ListID6703 as String ListID6703 = CreditMemoLineRetSalesTaxCodeRef.ListID.GetValue() End If 'Get value of FullName if ( not CreditMemoLineRetSalesTaxCodeRef.FullName is nothing) then Dim FullName6704 as String FullName6704 = CreditMemoLineRetSalesTaxCodeRef.FullName.GetValue() End If End If 'Get value of Other1 if ( not CreditMemoLineRetOther1 is nothing) then Dim Other16705 as String Other16705 = CreditMemoLineRetOther1.GetValue() End If 'Get value of Other2 if ( not CreditMemoLineRetOther2 is nothing) then Dim Other26706 as String Other26706 = CreditMemoLineRetOther2.GetValue() End If if (not CreditMemoLineRetCreditCardTxnInfo. is nothing) then 'Get value of CreditCardNumber Dim CreditCardNumber6707 as String CreditCardNumber6707 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue() 'Get value of ExpirationMonth Dim ExpirationMonth6708 as Integer ExpirationMonth6708 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue() 'Get value of ExpirationYear Dim ExpirationYear6709 as Integer ExpirationYear6709 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue() 'Get value of NameOnCard Dim NameOnCard6710 as String NameOnCard6710 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue() 'Get value of CreditCardAddress if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress is nothing) then Dim CreditCardAddress6711 as String CreditCardAddress6711 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue() End If 'Get value of CreditCardPostalCode if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode is nothing) then Dim CreditCardPostalCode6712 as String CreditCardPostalCode6712 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue() End If 'Get value of CommercialCardCode if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode is nothing) then Dim CommercialCardCode6713 as String CommercialCardCode6713 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue() End If 'Get value of TransactionMode if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode is nothing) then Dim TransactionMode6714 as ENTransactionMode TransactionMode6714 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue() End If 'Get value of CreditCardTxnType if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType is nothing) then Dim CreditCardTxnType6715 as ENCreditCardTxnType CreditCardTxnType6715 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue() End If 'Get value of ResultCode Dim ResultCode6716 as Integer ResultCode6716 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue() 'Get value of ResultMessage Dim ResultMessage6717 as String ResultMessage6717 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue() 'Get value of CreditCardTransID Dim CreditCardTransID6718 as String CreditCardTransID6718 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue() 'Get value of MerchantAccountNumber Dim MerchantAccountNumber6719 as String MerchantAccountNumber6719 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue() 'Get value of AuthorizationCode if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode is nothing) then Dim AuthorizationCode6720 as String AuthorizationCode6720 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue() End If 'Get value of AVSStreet if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet is nothing) then Dim AVSStreet6721 as ENAVSStreet AVSStreet6721 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue() End If 'Get value of AVSZip if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip is nothing) then Dim AVSZip6722 as ENAVSZip AVSZip6722 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue() End If 'Get value of CardSecurityCodeMatch if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch is nothing) then Dim CardSecurityCodeMatch6723 as ENCardSecurityCodeMatch CardSecurityCodeMatch6723 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue() End If 'Get value of ReconBatchID if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID is nothing) then Dim ReconBatchID6724 as String ReconBatchID6724 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue() End If 'Get value of PaymentGroupingCode if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode is nothing) then Dim PaymentGroupingCode6725 as Integer PaymentGroupingCode6725 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue() End If 'Get value of PaymentStatus Dim PaymentStatus6726 as ENPaymentStatus PaymentStatus6726 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue() 'Get value of TxnAuthorizationTime Dim TxnAuthorizationTime6727 as DateTime TxnAuthorizationTime6727 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue() 'Get value of TxnAuthorizationStamp if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp is nothing) then Dim TxnAuthorizationStamp6728 as Integer TxnAuthorizationStamp6728 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue() End If 'Get value of ClientTransID if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID is nothing) then Dim ClientTransID6729 as String ClientTransID6729 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue() End If End If if (not CreditMemoLineRetDataExtRetList is nothing) Dim i6730 as Integer for i6730 = 0 to CreditMemoLineRetDataExtRetList.Count - 1 Dim DataExtRet as IDataExtRet DataExtRet = CreditMemoLineRetDataExtRetList.GetAt(i6730) 'Get value of OwnerID if ( not DataExtRetOwnerID is nothing) then Dim OwnerID6731 as String OwnerID6731 = DataExtRetOwnerID.GetValue() End If 'Get value of DataExtName Dim DataExtName6732 as String DataExtName6732 = DataExtRetDataExtName.GetValue() 'Get value of DataExtType Dim DataExtType6733 as ENDataExtType DataExtType6733 = DataExtRetDataExtType.GetValue() 'Get value of DataExtValue Dim DataExtValue6734 as String DataExtValue6734 = DataExtRetDataExtValue.GetValue() Next i6730 End If Next i6680 End If if (not ORCreditMemoLineRet6615.CreditMemoLineGroupRet.DataExtRetList is nothing) Dim i6735 as Integer for i6735 = 0 to ORCreditMemoLineRet6615.CreditMemoLineGroupRet.DataExtRetList.Count - 1 Dim DataExtRet as IDataExtRet DataExtRet = ORCreditMemoLineRet6615.CreditMemoLineGroupRet.DataExtRetList.GetAt(i6735) 'Get value of OwnerID if ( not DataExtRetOwnerID is nothing) then Dim OwnerID6736 as String OwnerID6736 = DataExtRetOwnerID.GetValue() End If 'Get value of DataExtName Dim DataExtName6737 as String DataExtName6737 = DataExtRetDataExtName.GetValue() 'Get value of DataExtType Dim DataExtType6738 as ENDataExtType DataExtType6738 = DataExtRetDataExtType.GetValue() 'Get value of DataExtValue Dim DataExtValue6739 as String DataExtValue6739 = DataExtRetDataExtValue.GetValue() Next i6735 End If End If End If Next i6614 End If if (not CreditMemoRet.DataExtRetList is nothing) Dim i6740 as Integer for i6740 = 0 to CreditMemoRet.DataExtRetList.Count - 1 Dim DataExtRet as IDataExtRet DataExtRet = CreditMemoRet.DataExtRetList.GetAt(i6740) 'Get value of OwnerID if ( not DataExtRetOwnerID is nothing) then Dim OwnerID6741 as String OwnerID6741 = DataExtRetOwnerID.GetValue() End If 'Get value of DataExtName Dim DataExtName6742 as String DataExtName6742 = DataExtRetDataExtName.GetValue() 'Get value of DataExtType Dim DataExtType6743 as ENDataExtType DataExtType6743 = DataExtRetDataExtType.GetValue() 'Get value of DataExtValue Dim DataExtValue6744 as String DataExtValue6744 = DataExtRetDataExtValue.GetValue() Next i6740 End If End Sub End Class End Module |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 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 196 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 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 | //The following sample code is generated as an illustration of //Creating requests and parsing responses ONLY //This code is NOT intended to show best practices or ideal code //Use at your most careful discretion using System; using System.Net; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.IO; using Interop.QBFC16; namespace com.intuit.idn.samples { public class Sample { public void DoCreditMemoQuery() { bool sessionBegun = false; bool connectionOpen = false; QBSessionManager sessionManager = null; try { //Create the session Manager object sessionManager = new QBSessionManager(); //Create the message set request object to hold our request IMsgSetRequest requestMsgSet = sessionManager.CreateMsgSetRequest("US",16,0); requestMsgSet.Attributes.OnError = ENRqOnError.roeContinue; BuildCreditMemoQueryRq(requestMsgSet); //Connect to QuickBooks and begin a session sessionManager.OpenConnection("","Sample Code from OSR"); connectionOpen = true; sessionManager.BeginSession("", ENOpenMode.omDontCare); sessionBegun = true; //Send the request and get the response from QuickBooks IMsgSetResponse responseMsgSet = sessionManager.DoRequests(requestMsgSet); //End the session and close the connection to QuickBooks sessionManager.EndSession(); sessionBegun = false; sessionManager.CloseConnection(); connectionOpen = false; WalkCreditMemoQueryRs(responseMsgSet); } catch (Exception e) { MessageBox.Show(e.Message, "Error"); if (sessionBegun) { sessionManager.EndSession(); } if (connectionOpen) { sessionManager.CloseConnection(); } } } void BuildCreditMemoQueryRq(IMsgSetRequest requestMsgSet) { ICreditMemoQuery CreditMemoQueryRq= requestMsgSet.AppendCreditMemoQueryRq(); //Set attributes //Set field value for metaData CreditMemoQueryRq.metaData.SetValue("IQBENmetaDataType"); //Set field value for iterator CreditMemoQueryRq.iterator.SetValue("IQBENiteratorType"); //Set field value for iteratorID CreditMemoQueryRq.iteratorID.SetValue("IQBUUIDType"); string ORTxnQueryElementType6301 = "TxnIDList"; if (ORTxnQueryElementType6301 == "TxnIDList") { //Set field value for TxnIDList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnIDList.Add("200000-1011023419"); } if (ORTxnQueryElementType6301 == "RefNumberList") { //Set field value for RefNumberList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.RefNumberList.Add("ab"); } if (ORTxnQueryElementType6301 == "RefNumberCaseSensitiveList") { //Set field value for RefNumberCaseSensitiveList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.RefNumberCaseSensitiveList.Add("ab"); } if (ORTxnQueryElementType6301 == "TxnFilter") { //Set field value for MaxReturned CreditMemoQueryRq.ORTxnQuery.TxnFilter.MaxReturned.SetValue(6); string ORDateRangeFilterElementType6302 = "ModifiedDateRangeFilter"; if (ORDateRangeFilterElementType6302 == "ModifiedDateRangeFilter") { //Set field value for FromModifiedDate CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.ModifiedDateRangeFilter.FromModifiedDate.SetValue(DateTime.Parse("12/15/2007 12:15:12"),false); //Set field value for ToModifiedDate CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.ModifiedDateRangeFilter.ToModifiedDate.SetValue(DateTime.Parse("12/15/2007 12:15:12"),false); } if (ORDateRangeFilterElementType6302 == "TxnDateRangeFilter") { string ORTxnDateRangeFilterElementType6303 = "TxnDateFilter"; if (ORTxnDateRangeFilterElementType6303 == "TxnDateFilter") { //Set field value for FromTxnDate CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.TxnDateRangeFilter.ORTxnDateRangeFilter.TxnDateFilter.FromTxnDate.SetValue(DateTime.Parse("12/15/2007")); //Set field value for ToTxnDate CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.TxnDateRangeFilter.ORTxnDateRangeFilter.TxnDateFilter.ToTxnDate.SetValue(DateTime.Parse("12/15/2007")); } if (ORTxnDateRangeFilterElementType6303 == "DateMacro") { //Set field value for DateMacro CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORDateRangeFilter.TxnDateRangeFilter.ORTxnDateRangeFilter.DateMacro.SetValue(ENDateMacro.dmAll); } } string OREntityFilterElementType6304 = "ListIDList"; if (OREntityFilterElementType6304 == "ListIDList") { //Set field value for ListIDList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.EntityFilter.OREntityFilter.ListIDList.Add("200000-1011023419"); } if (OREntityFilterElementType6304 == "FullNameList") { //Set field value for FullNameList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.EntityFilter.OREntityFilter.FullNameList.Add("ab"); } if (OREntityFilterElementType6304 == "ListIDWithChildren") { //Set field value for ListIDWithChildren CreditMemoQueryRq.ORTxnQuery.TxnFilter.EntityFilter.OREntityFilter.ListIDWithChildren.SetValue("200000-1011023419"); } if (OREntityFilterElementType6304 == "FullNameWithChildren") { //Set field value for FullNameWithChildren CreditMemoQueryRq.ORTxnQuery.TxnFilter.EntityFilter.OREntityFilter.FullNameWithChildren.SetValue("ab"); } string ORAccountFilterElementType6305 = "ListIDList"; if (ORAccountFilterElementType6305 == "ListIDList") { //Set field value for ListIDList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.AccountFilter.ORAccountFilter.ListIDList.Add("200000-1011023419"); } if (ORAccountFilterElementType6305 == "FullNameList") { //Set field value for FullNameList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.AccountFilter.ORAccountFilter.FullNameList.Add("ab"); } if (ORAccountFilterElementType6305 == "ListIDWithChildren") { //Set field value for ListIDWithChildren CreditMemoQueryRq.ORTxnQuery.TxnFilter.AccountFilter.ORAccountFilter.ListIDWithChildren.SetValue("200000-1011023419"); } if (ORAccountFilterElementType6305 == "FullNameWithChildren") { //Set field value for FullNameWithChildren CreditMemoQueryRq.ORTxnQuery.TxnFilter.AccountFilter.ORAccountFilter.FullNameWithChildren.SetValue("ab"); } string ORRefNumberFilterElementType6306 = "RefNumberFilter"; if (ORRefNumberFilterElementType6306 == "RefNumberFilter") { //Set field value for MatchCriterion CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORRefNumberFilter.RefNumberFilter.MatchCriterion.SetValue(ENMatchCriterion.mcStartsWith); //Set field value for RefNumber CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORRefNumberFilter.RefNumberFilter.RefNumber.SetValue("ab"); } if (ORRefNumberFilterElementType6306 == "RefNumberRangeFilter") { //Set field value for FromRefNumber CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORRefNumberFilter.RefNumberRangeFilter.FromRefNumber.SetValue("ab"); //Set field value for ToRefNumber CreditMemoQueryRq.ORTxnQuery.TxnFilter.ORRefNumberFilter.RefNumberRangeFilter.ToRefNumber.SetValue("ab"); } string ORCurrencyFilterElementType6307 = "ListIDList"; if (ORCurrencyFilterElementType6307 == "ListIDList") { //Set field value for ListIDList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.CurrencyFilter.ORCurrencyFilter.ListIDList.Add("200000-1011023419"); } if (ORCurrencyFilterElementType6307 == "FullNameList") { //Set field value for FullNameList //May create more than one of these if needed CreditMemoQueryRq.ORTxnQuery.TxnFilter.CurrencyFilter.ORCurrencyFilter.FullNameList.Add("ab"); } } //Set field value for IncludeLineItems CreditMemoQueryRq.IncludeLineItems.SetValue(true); //Set field value for IncludeLinkedTxns CreditMemoQueryRq.IncludeLinkedTxns.SetValue(true); //Set field value for IncludeRetElementList //May create more than one of these if needed CreditMemoQueryRq.IncludeRetElementList.Add("ab"); //Set field value for OwnerIDList //May create more than one of these if needed CreditMemoQueryRq.OwnerIDList.Add(Guid.NewGuid().ToString()); } void WalkCreditMemoQueryRs(IMsgSetResponse responseMsgSet) { if (responseMsgSet == null) return; IResponseList responseList = responseMsgSet.ResponseList; if (responseList == null) return; //if we sent only one request, there is only one response, we'll walk the list for this sample for(int i=0; i < responseList.Count; i++) { IResponse response = responseList.GetAt(i); //check the status code of the response, 0=ok, >0 is warning if (response.StatusCode >= 0) { //the request-specific response is in the details, make sure we have some if (response.Detail != null) { //make sure the response is the type we're expecting ENResponseType responseType = (ENResponseType)response.Type.GetValue(); if (responseType == ENResponseType.rtCreditMemoQueryRs) { //upcast to more specific type here, this is safe because we checked with response.Type check above ICreditMemoRetList CreditMemoRet = (ICreditMemoRetList)response.Detail; WalkCreditMemoRet(CreditMemoRet); } } } } } void WalkCreditMemoRet(ICreditMemoRetList CreditMemoRet) { if (CreditMemoRet == null) return; //Go through all the elements of ICreditMemoRetList //Get value of TxnID string TxnID6308 = (string)CreditMemoRet.TxnID.GetValue(); //Get value of TimeCreated DateTime TimeCreated6309 = (DateTime)CreditMemoRet.TimeCreated.GetValue(); //Get value of TimeModified DateTime TimeModified6310 = (DateTime)CreditMemoRet.TimeModified.GetValue(); //Get value of EditSequence string EditSequence6311 = (string)CreditMemoRet.EditSequence.GetValue(); //Get value of TxnNumber if (CreditMemoRet.TxnNumber != null) { int TxnNumber6312 = (int)CreditMemoRet.TxnNumber.GetValue(); } //Get value of ListID if (CreditMemoRet.CustomerRef.ListID != null) { string ListID6313 = (string)CreditMemoRet.CustomerRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.CustomerRef.FullName != null) { string FullName6314 = (string)CreditMemoRet.CustomerRef.FullName.GetValue(); } if (CreditMemoRet.ClassRef != null) { //Get value of ListID if (CreditMemoRet.ClassRef.ListID != null) { string ListID6315 = (string)CreditMemoRet.ClassRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.ClassRef.FullName != null) { string FullName6316 = (string)CreditMemoRet.ClassRef.FullName.GetValue(); } } if (CreditMemoRet.ARAccountRef != null) { //Get value of ListID if (CreditMemoRet.ARAccountRef.ListID != null) { string ListID6317 = (string)CreditMemoRet.ARAccountRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.ARAccountRef.FullName != null) { string FullName6318 = (string)CreditMemoRet.ARAccountRef.FullName.GetValue(); } } if (CreditMemoRet.TemplateRef != null) { //Get value of ListID if (CreditMemoRet.TemplateRef.ListID != null) { string ListID6319 = (string)CreditMemoRet.TemplateRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.TemplateRef.FullName != null) { string FullName6320 = (string)CreditMemoRet.TemplateRef.FullName.GetValue(); } } //Get value of TxnDate DateTime TxnDate6321 = (DateTime)CreditMemoRet.TxnDate.GetValue(); //Get value of RefNumber if (CreditMemoRet.RefNumber != null) { string RefNumber6322 = (string)CreditMemoRet.RefNumber.GetValue(); } if (CreditMemoRet.BillAddress != null) { //Get value of Addr1 if (CreditMemoRet.BillAddress.Addr1 != null) { string Addr16323 = (string)CreditMemoRet.BillAddress.Addr1.GetValue(); } //Get value of Addr2 if (CreditMemoRet.BillAddress.Addr2 != null) { string Addr26324 = (string)CreditMemoRet.BillAddress.Addr2.GetValue(); } //Get value of Addr3 if (CreditMemoRet.BillAddress.Addr3 != null) { string Addr36325 = (string)CreditMemoRet.BillAddress.Addr3.GetValue(); } //Get value of Addr4 if (CreditMemoRet.BillAddress.Addr4 != null) { string Addr46326 = (string)CreditMemoRet.BillAddress.Addr4.GetValue(); } //Get value of Addr5 if (CreditMemoRet.BillAddress.Addr5 != null) { string Addr56327 = (string)CreditMemoRet.BillAddress.Addr5.GetValue(); } //Get value of City if (CreditMemoRet.BillAddress.City != null) { string City6328 = (string)CreditMemoRet.BillAddress.City.GetValue(); } //Get value of State if (CreditMemoRet.BillAddress.State != null) { string State6329 = (string)CreditMemoRet.BillAddress.State.GetValue(); } //Get value of PostalCode if (CreditMemoRet.BillAddress.PostalCode != null) { string PostalCode6330 = (string)CreditMemoRet.BillAddress.PostalCode.GetValue(); } //Get value of Country if (CreditMemoRet.BillAddress.Country != null) { string Country6331 = (string)CreditMemoRet.BillAddress.Country.GetValue(); } //Get value of Note if (CreditMemoRet.BillAddress.Note != null) { string Note6332 = (string)CreditMemoRet.BillAddress.Note.GetValue(); } } if (CreditMemoRet.BillAddressBlock != null) { //Get value of Addr1 if (CreditMemoRet.BillAddressBlock.Addr1 != null) { string Addr16333 = (string)CreditMemoRet.BillAddressBlock.Addr1.GetValue(); } //Get value of Addr2 if (CreditMemoRet.BillAddressBlock.Addr2 != null) { string Addr26334 = (string)CreditMemoRet.BillAddressBlock.Addr2.GetValue(); } //Get value of Addr3 if (CreditMemoRet.BillAddressBlock.Addr3 != null) { string Addr36335 = (string)CreditMemoRet.BillAddressBlock.Addr3.GetValue(); } //Get value of Addr4 if (CreditMemoRet.BillAddressBlock.Addr4 != null) { string Addr46336 = (string)CreditMemoRet.BillAddressBlock.Addr4.GetValue(); } //Get value of Addr5 if (CreditMemoRet.BillAddressBlock.Addr5 != null) { string Addr56337 = (string)CreditMemoRet.BillAddressBlock.Addr5.GetValue(); } } if (CreditMemoRet.ShipAddress != null) { //Get value of Addr1 if (CreditMemoRet.ShipAddress.Addr1 != null) { string Addr16338 = (string)CreditMemoRet.ShipAddress.Addr1.GetValue(); } //Get value of Addr2 if (CreditMemoRet.ShipAddress.Addr2 != null) { string Addr26339 = (string)CreditMemoRet.ShipAddress.Addr2.GetValue(); } //Get value of Addr3 if (CreditMemoRet.ShipAddress.Addr3 != null) { string Addr36340 = (string)CreditMemoRet.ShipAddress.Addr3.GetValue(); } //Get value of Addr4 if (CreditMemoRet.ShipAddress.Addr4 != null) { string Addr46341 = (string)CreditMemoRet.ShipAddress.Addr4.GetValue(); } //Get value of Addr5 if (CreditMemoRet.ShipAddress.Addr5 != null) { string Addr56342 = (string)CreditMemoRet.ShipAddress.Addr5.GetValue(); } //Get value of City if (CreditMemoRet.ShipAddress.City != null) { string City6343 = (string)CreditMemoRet.ShipAddress.City.GetValue(); } //Get value of State if (CreditMemoRet.ShipAddress.State != null) { string State6344 = (string)CreditMemoRet.ShipAddress.State.GetValue(); } //Get value of PostalCode if (CreditMemoRet.ShipAddress.PostalCode != null) { string PostalCode6345 = (string)CreditMemoRet.ShipAddress.PostalCode.GetValue(); } //Get value of Country if (CreditMemoRet.ShipAddress.Country != null) { string Country6346 = (string)CreditMemoRet.ShipAddress.Country.GetValue(); } //Get value of Note if (CreditMemoRet.ShipAddress.Note != null) { string Note6347 = (string)CreditMemoRet.ShipAddress.Note.GetValue(); } } if (CreditMemoRet.ShipAddressBlock != null) { //Get value of Addr1 if (CreditMemoRet.ShipAddressBlock.Addr1 != null) { string Addr16348 = (string)CreditMemoRet.ShipAddressBlock.Addr1.GetValue(); } //Get value of Addr2 if (CreditMemoRet.ShipAddressBlock.Addr2 != null) { string Addr26349 = (string)CreditMemoRet.ShipAddressBlock.Addr2.GetValue(); } //Get value of Addr3 if (CreditMemoRet.ShipAddressBlock.Addr3 != null) { string Addr36350 = (string)CreditMemoRet.ShipAddressBlock.Addr3.GetValue(); } //Get value of Addr4 if (CreditMemoRet.ShipAddressBlock.Addr4 != null) { string Addr46351 = (string)CreditMemoRet.ShipAddressBlock.Addr4.GetValue(); } //Get value of Addr5 if (CreditMemoRet.ShipAddressBlock.Addr5 != null) { string Addr56352 = (string)CreditMemoRet.ShipAddressBlock.Addr5.GetValue(); } } //Get value of IsPending if (CreditMemoRet.IsPending != null) { bool IsPending6353 = (bool)CreditMemoRet.IsPending.GetValue(); } //Get value of PONumber if (CreditMemoRet.PONumber != null) { string PONumber6354 = (string)CreditMemoRet.PONumber.GetValue(); } if (CreditMemoRet.TermsRef != null) { //Get value of ListID if (CreditMemoRet.TermsRef.ListID != null) { string ListID6355 = (string)CreditMemoRet.TermsRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.TermsRef.FullName != null) { string FullName6356 = (string)CreditMemoRet.TermsRef.FullName.GetValue(); } } //Get value of DueDate if (CreditMemoRet.DueDate != null) { DateTime DueDate6357 = (DateTime)CreditMemoRet.DueDate.GetValue(); } if (CreditMemoRet.SalesRepRef != null) { //Get value of ListID if (CreditMemoRet.SalesRepRef.ListID != null) { string ListID6358 = (string)CreditMemoRet.SalesRepRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.SalesRepRef.FullName != null) { string FullName6359 = (string)CreditMemoRet.SalesRepRef.FullName.GetValue(); } } //Get value of FOB if (CreditMemoRet.FOB != null) { string FOB6360 = (string)CreditMemoRet.FOB.GetValue(); } //Get value of ShipDate if (CreditMemoRet.ShipDate != null) { DateTime ShipDate6361 = (DateTime)CreditMemoRet.ShipDate.GetValue(); } if (CreditMemoRet.ShipMethodRef != null) { //Get value of ListID if (CreditMemoRet.ShipMethodRef.ListID != null) { string ListID6362 = (string)CreditMemoRet.ShipMethodRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.ShipMethodRef.FullName != null) { string FullName6363 = (string)CreditMemoRet.ShipMethodRef.FullName.GetValue(); } } //Get value of Subtotal if (CreditMemoRet.Subtotal != null) { double Subtotal6364 = (double)CreditMemoRet.Subtotal.GetValue(); } if (CreditMemoRet.ItemSalesTaxRef != null) { //Get value of ListID if (CreditMemoRet.ItemSalesTaxRef.ListID != null) { string ListID6365 = (string)CreditMemoRet.ItemSalesTaxRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.ItemSalesTaxRef.FullName != null) { string FullName6366 = (string)CreditMemoRet.ItemSalesTaxRef.FullName.GetValue(); } } //Get value of SalesTaxPercentage if (CreditMemoRet.SalesTaxPercentage != null) { double SalesTaxPercentage6367 = (double)CreditMemoRet.SalesTaxPercentage.GetValue(); } //Get value of SalesTaxTotal if (CreditMemoRet.SalesTaxTotal != null) { double SalesTaxTotal6368 = (double)CreditMemoRet.SalesTaxTotal.GetValue(); } //Get value of TotalAmount if (CreditMemoRet.TotalAmount != null) { double TotalAmount6369 = (double)CreditMemoRet.TotalAmount.GetValue(); } //Get value of CreditRemaining if (CreditMemoRet.CreditRemaining != null) { double CreditRemaining6370 = (double)CreditMemoRet.CreditRemaining.GetValue(); } if (CreditMemoRet.CurrencyRef != null) { //Get value of ListID if (CreditMemoRet.CurrencyRef.ListID != null) { string ListID6371 = (string)CreditMemoRet.CurrencyRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.CurrencyRef.FullName != null) { string FullName6372 = (string)CreditMemoRet.CurrencyRef.FullName.GetValue(); } } //Get value of ExchangeRate if (CreditMemoRet.ExchangeRate != null) { IQBFloatType ExchangeRate6373 = (IQBFloatType)CreditMemoRet.ExchangeRate.GetValue(); } //Get value of CreditRemainingInHomeCurrency if (CreditMemoRet.CreditRemainingInHomeCurrency != null) { double CreditRemainingInHomeCurrency6374 = (double)CreditMemoRet.CreditRemainingInHomeCurrency.GetValue(); } //Get value of Memo if (CreditMemoRet.Memo != null) { string Memo6375 = (string)CreditMemoRet.Memo.GetValue(); } if (CreditMemoRet.CustomerMsgRef != null) { //Get value of ListID if (CreditMemoRet.CustomerMsgRef.ListID != null) { string ListID6376 = (string)CreditMemoRet.CustomerMsgRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.CustomerMsgRef.FullName != null) { string FullName6377 = (string)CreditMemoRet.CustomerMsgRef.FullName.GetValue(); } } //Get value of IsToBePrinted if (CreditMemoRet.IsToBePrinted != null) { bool IsToBePrinted6378 = (bool)CreditMemoRet.IsToBePrinted.GetValue(); } //Get value of IsToBeEmailed if (CreditMemoRet.IsToBeEmailed != null) { bool IsToBeEmailed6379 = (bool)CreditMemoRet.IsToBeEmailed.GetValue(); } //Get value of IsTaxIncluded if (CreditMemoRet.IsTaxIncluded != null) { bool IsTaxIncluded6380 = (bool)CreditMemoRet.IsTaxIncluded.GetValue(); } if (CreditMemoRet.CustomerSalesTaxCodeRef != null) { //Get value of ListID if (CreditMemoRet.CustomerSalesTaxCodeRef.ListID != null) { string ListID6381 = (string)CreditMemoRet.CustomerSalesTaxCodeRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.CustomerSalesTaxCodeRef.FullName != null) { string FullName6382 = (string)CreditMemoRet.CustomerSalesTaxCodeRef.FullName.GetValue(); } } //Get value of Other if (CreditMemoRet.Other != null) { string Other6383 = (string)CreditMemoRet.Other.GetValue(); } //Get value of ExternalGUID if (CreditMemoRet.ExternalGUID != null) { string ExternalGUID6384 = (string)CreditMemoRet.ExternalGUID.GetValue(); } if (CreditMemoRet.LinkedTxnList != null) { for (int i6385 = 0; i6385 < CreditMemoRet.LinkedTxnList.Count; i6385++) { ILinkedTxn LinkedTxn = CreditMemoRet.LinkedTxnList.GetAt(i6385); //Get value of TxnID string TxnID6386 = (string)LinkedTxn.TxnID.GetValue(); //Get value of TxnType ENTxnType TxnType6387 = (ENTxnType)LinkedTxn.TxnType.GetValue(); //Get value of TxnDate DateTime TxnDate6388 = (DateTime)LinkedTxn.TxnDate.GetValue(); //Get value of RefNumber if (LinkedTxn.RefNumber != null) { string RefNumber6389 = (string)LinkedTxn.RefNumber.GetValue(); } //Get value of LinkType if (LinkedTxn.LinkType != null) { ENLinkType LinkType6390 = (ENLinkType)LinkedTxn.LinkType.GetValue(); } //Get value of Amount double Amount6391 = (double)LinkedTxn.Amount.GetValue(); } } if (CreditMemoRet.ORCreditMemoLineRetList != null) { for (int i6392 = 0; i6392 < CreditMemoRet.ORCreditMemoLineRetList.Count; i6392++) { IORCreditMemoLineRet ORCreditMemoLineRet6393 = CreditMemoRet.ORCreditMemoLineRetList.GetAt(i6392); if (ORCreditMemoLineRet6393.CreditMemoLineRet != null) { if (ORCreditMemoLineRet6393.CreditMemoLineRet != null) { //Get value of TxnLineID string TxnLineID6394 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.TxnLineID.GetValue(); if (ORCreditMemoLineRet6393.CreditMemoLineRet.ItemRef != null) { //Get value of ListID if (ORCreditMemoLineRet6393.CreditMemoLineRet.ItemRef.ListID != null) { string ListID6395 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.ItemRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet6393.CreditMemoLineRet.ItemRef.FullName != null) { string FullName6396 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.ItemRef.FullName.GetValue(); } } //Get value of Desc if (ORCreditMemoLineRet6393.CreditMemoLineRet.Desc != null) { string Desc6397 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.Desc.GetValue(); } //Get value of Quantity if (ORCreditMemoLineRet6393.CreditMemoLineRet.Quantity != null) { int Quantity6398 = (int)ORCreditMemoLineRet6393.CreditMemoLineRet.Quantity.GetValue(); } //Get value of UnitOfMeasure if (ORCreditMemoLineRet6393.CreditMemoLineRet.UnitOfMeasure != null) { string UnitOfMeasure6399 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.UnitOfMeasure.GetValue(); } if (ORCreditMemoLineRet6393.CreditMemoLineRet.OverrideUOMSetRef != null) { //Get value of ListID if (ORCreditMemoLineRet6393.CreditMemoLineRet.OverrideUOMSetRef.ListID != null) { string ListID6400 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet6393.CreditMemoLineRet.OverrideUOMSetRef.FullName != null) { string FullName6401 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue(); } } if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORRate != null) { if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORRate.Rate != null) { //Get value of Rate if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORRate.Rate != null) { double Rate6403 = (double)ORCreditMemoLineRet6393.CreditMemoLineRet.ORRate.Rate.GetValue(); } } if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORRate.RatePercent != null) { //Get value of RatePercent if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORRate.RatePercent != null) { double RatePercent6404 = (double)ORCreditMemoLineRet6393.CreditMemoLineRet.ORRate.RatePercent.GetValue(); } } } if (ORCreditMemoLineRet6393.CreditMemoLineRet.ClassRef != null) { //Get value of ListID if (ORCreditMemoLineRet6393.CreditMemoLineRet.ClassRef.ListID != null) { string ListID6405 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.ClassRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet6393.CreditMemoLineRet.ClassRef.FullName != null) { string FullName6406 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.ClassRef.FullName.GetValue(); } } //Get value of Amount if (ORCreditMemoLineRet6393.CreditMemoLineRet.Amount != null) { double Amount6407 = (double)ORCreditMemoLineRet6393.CreditMemoLineRet.Amount.GetValue(); } if (ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteRef != null) { //Get value of ListID if (ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteRef.ListID != null) { string ListID6408 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteRef.FullName != null) { string FullName6409 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteRef.FullName.GetValue(); } } if (ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteLocationRef != null) { //Get value of ListID if (ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteLocationRef.ListID != null) { string ListID6410 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteLocationRef.FullName != null) { string FullName6411 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue(); } } if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORSerialLotNumber != null) { if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null) { //Get value of SerialNumber if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null) { string SerialNumber6413 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue(); } } if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORSerialLotNumber.LotNumber != null) { //Get value of LotNumber if (ORCreditMemoLineRet6393.CreditMemoLineRet.ORSerialLotNumber.LotNumber != null) { string LotNumber6414 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue(); } } } //Get value of ExpirationDateForSerialLotNumber if (ORCreditMemoLineRet6393.CreditMemoLineRet.ExpirationDateForSerialLotNumber != null) { string ExpDate = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue(); } //Get value of ServiceDate if (ORCreditMemoLineRet6393.CreditMemoLineRet.ServiceDate != null) { DateTime ServiceDate6415 = (DateTime)ORCreditMemoLineRet6393.CreditMemoLineRet.ServiceDate.GetValue(); } if (ORCreditMemoLineRet6393.CreditMemoLineRet.SalesTaxCodeRef != null) { //Get value of ListID if (ORCreditMemoLineRet6393.CreditMemoLineRet.SalesTaxCodeRef.ListID != null) { string ListID6416 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet6393.CreditMemoLineRet.SalesTaxCodeRef.FullName != null) { string FullName6417 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue(); } } //Get value of Other1 if (ORCreditMemoLineRet6393.CreditMemoLineRet.Other1 != null) { string Other16418 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.Other1.GetValue(); } //Get value of Other2 if (ORCreditMemoLineRet6393.CreditMemoLineRet.Other2 != null) { string Other26419 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.Other2.GetValue(); } if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo != null) { //Get value of CreditCardNumber string CreditCardNumber6420 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue(); //Get value of ExpirationMonth int ExpirationMonth6421 = (int)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue(); //Get value of ExpirationYear int ExpirationYear6422 = (int)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue(); //Get value of NameOnCard string NameOnCard6423 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue(); //Get value of CreditCardAddress if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress != null) { string CreditCardAddress6424 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue(); } //Get value of CreditCardPostalCode if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode != null) { string CreditCardPostalCode6425 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue(); } //Get value of CommercialCardCode if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode != null) { string CommercialCardCode6426 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue(); } //Get value of TransactionMode if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode != null) { ENTransactionMode TransactionMode6427 = (ENTransactionMode)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue(); } //Get value of CreditCardTxnType if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType != null) { ENCreditCardTxnType CreditCardTxnType6428 = (ENCreditCardTxnType)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue(); } //Get value of ResultCode int ResultCode6429 = (int)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue(); //Get value of ResultMessage string ResultMessage6430 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue(); //Get value of CreditCardTransID string CreditCardTransID6431 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue(); //Get value of MerchantAccountNumber string MerchantAccountNumber6432 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue(); //Get value of AuthorizationCode if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode != null) { string AuthorizationCode6433 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue(); } //Get value of AVSStreet if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet != null) { ENAVSStreet AVSStreet6434 = (ENAVSStreet)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue(); } //Get value of AVSZip if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip != null) { ENAVSZip AVSZip6435 = (ENAVSZip)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue(); } //Get value of CardSecurityCodeMatch if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch != null) { ENCardSecurityCodeMatch CardSecurityCodeMatch6436 = (ENCardSecurityCodeMatch)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue(); } //Get value of ReconBatchID if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID != null) { string ReconBatchID6437 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue(); } //Get value of PaymentGroupingCode if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode != null) { int PaymentGroupingCode6438 = (int)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue(); } //Get value of PaymentStatus ENPaymentStatus PaymentStatus6439 = (ENPaymentStatus)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue(); //Get value of TxnAuthorizationTime DateTime TxnAuthorizationTime6440 = (DateTime)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue(); //Get value of TxnAuthorizationStamp if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp != null) { int TxnAuthorizationStamp6441 = (int)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue(); } //Get value of ClientTransID if (ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID != null) { string ClientTransID6442 = (string)ORCreditMemoLineRet6393.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue(); } } if (ORCreditMemoLineRet6393.CreditMemoLineRet.DataExtRetList != null) { for (int i6443 = 0; i6443 < ORCreditMemoLineRet6393.CreditMemoLineRet.DataExtRetList.Count; i6443++) { IDataExtRet DataExtRet = ORCreditMemoLineRet6393.CreditMemoLineRet.DataExtRetList.GetAt(i6443); //Get value of OwnerID if (DataExtRet.OwnerID != null) { string OwnerID6444 = (string)DataExtRet.OwnerID.GetValue(); } //Get value of DataExtName string DataExtName6445 = (string)DataExtRet.DataExtName.GetValue(); //Get value of DataExtType ENDataExtType DataExtType6446 = (ENDataExtType)DataExtRet.DataExtType.GetValue(); //Get value of DataExtValue string DataExtValue6447 = (string)DataExtRet.DataExtValue.GetValue(); } } } } if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet != null) { if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet != null) { //Get value of TxnLineID string TxnLineID6448 = (string)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.TxnLineID.GetValue(); //Get value of ListID if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.ItemGroupRef.ListID != null) { string ListID6449 = (string)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.ItemGroupRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.ItemGroupRef.FullName != null) { string FullName6450 = (string)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.ItemGroupRef.FullName.GetValue(); } //Get value of Desc if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.Desc != null) { string Desc6451 = (string)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.Desc.GetValue(); } //Get value of Quantity if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.Quantity != null) { int Quantity6452 = (int)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.Quantity.GetValue(); } //Get value of UnitOfMeasure if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.UnitOfMeasure != null) { string UnitOfMeasure6453 = (string)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.UnitOfMeasure.GetValue(); } if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.OverrideUOMSetRef != null) { //Get value of ListID if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID != null) { string ListID6454 = (string)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName != null) { string FullName6455 = (string)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName.GetValue(); } } //Get value of IsPrintItemsInGroup bool IsPrintItemsInGroup6456 = (bool)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.IsPrintItemsInGroup.GetValue(); //Get value of TotalAmount double TotalAmount6457 = (double)ORCreditMemoLineRet6393.CreditMemoLineGroupRet.TotalAmount.GetValue(); if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.CreditMemoLineRetList != null) { for (int i6458 = 0; i6458 < ORCreditMemoLineRet6393.CreditMemoLineGroupRet.CreditMemoLineRetList.Count; i6458++) { ICreditMemoLineRet CreditMemoLineRet = ORCreditMemoLineRet6393.CreditMemoLineGroupRet.CreditMemoLineRetList.GetAt(i6458); //Get value of TxnLineID string TxnLineID6459 = (string)CreditMemoLineRet.TxnLineID.GetValue(); if (CreditMemoLineRet.ItemRef != null) { //Get value of ListID if (CreditMemoLineRet.ItemRef.ListID != null) { string ListID6460 = (string)CreditMemoLineRet.ItemRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.ItemRef.FullName != null) { string FullName6461 = (string)CreditMemoLineRet.ItemRef.FullName.GetValue(); } } //Get value of Desc if (CreditMemoLineRet.Desc != null) { string Desc6462 = (string)CreditMemoLineRet.Desc.GetValue(); } //Get value of Quantity if (CreditMemoLineRet.Quantity != null) { int Quantity6463 = (int)CreditMemoLineRet.Quantity.GetValue(); } //Get value of UnitOfMeasure if (CreditMemoLineRet.UnitOfMeasure != null) { string UnitOfMeasure6464 = (string)CreditMemoLineRet.UnitOfMeasure.GetValue(); } if (CreditMemoLineRet.OverrideUOMSetRef != null) { //Get value of ListID if (CreditMemoLineRet.OverrideUOMSetRef.ListID != null) { string ListID6465 = (string)CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.OverrideUOMSetRef.FullName != null) { string FullName6466 = (string)CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue(); } } if (CreditMemoLineRet.ORRate != null) { if (CreditMemoLineRet.ORRate.Rate != null) { //Get value of Rate if (CreditMemoLineRet.ORRate.Rate != null) { double Rate6468 = (double)CreditMemoLineRet.ORRate.Rate.GetValue(); } } if (CreditMemoLineRet.ORRate.RatePercent != null) { //Get value of RatePercent if (CreditMemoLineRet.ORRate.RatePercent != null) { double RatePercent6469 = (double)CreditMemoLineRet.ORRate.RatePercent.GetValue(); } } } if (CreditMemoLineRet.ClassRef != null) { //Get value of ListID if (CreditMemoLineRet.ClassRef.ListID != null) { string ListID6470 = (string)CreditMemoLineRet.ClassRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.ClassRef.FullName != null) { string FullName6471 = (string)CreditMemoLineRet.ClassRef.FullName.GetValue(); } } //Get value of Amount if (CreditMemoLineRet.Amount != null) { double Amount6472 = (double)CreditMemoLineRet.Amount.GetValue(); } if (CreditMemoLineRet.InventorySiteRef != null) { //Get value of ListID if (CreditMemoLineRet.InventorySiteRef.ListID != null) { string ListID6473 = (string)CreditMemoLineRet.InventorySiteRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.InventorySiteRef.FullName != null) { string FullName6474 = (string)CreditMemoLineRet.InventorySiteRef.FullName.GetValue(); } } if (CreditMemoLineRet.InventorySiteLocationRef != null) { //Get value of ListID if (CreditMemoLineRet.InventorySiteLocationRef.ListID != null) { string ListID6475 = (string)CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.InventorySiteLocationRef.FullName != null) { string FullName6476 = (string)CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue(); } } if (CreditMemoLineRet.ORSerialLotNumber != null) { if (CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null) { //Get value of SerialNumber if (CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null) { string SerialNumber6478 = (string)CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue(); } } if (CreditMemoLineRet.ORSerialLotNumber.LotNumber != null) { //Get value of LotNumber if (CreditMemoLineRet.ORSerialLotNumber.LotNumber != null) { string LotNumber6479 = (string)CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue(); } } } //Get value of ExpirationDateForSerialLotNumber if (CreditMemoLineRet.Other1 != null) { string ExpDate = (string)CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue(); } //Get value of ServiceDate if (CreditMemoLineRet.ServiceDate != null) { DateTime ServiceDate6480 = (DateTime)CreditMemoLineRet.ServiceDate.GetValue(); } if (CreditMemoLineRet.SalesTaxCodeRef != null) { //Get value of ListID if (CreditMemoLineRet.SalesTaxCodeRef.ListID != null) { string ListID6481 = (string)CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.SalesTaxCodeRef.FullName != null) { string FullName6482 = (string)CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue(); } } //Get value of Other1 if (CreditMemoLineRet.Other1 != null) { string Other16483 = (string)CreditMemoLineRet.Other1.GetValue(); } //Get value of Other2 if (CreditMemoLineRet.Other2 != null) { string Other26484 = (string)CreditMemoLineRet.Other2.GetValue(); } if (CreditMemoLineRet.CreditCardTxnInfo != null) { //Get value of CreditCardNumber string CreditCardNumber6485 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue(); //Get value of ExpirationMonth int ExpirationMonth6486 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue(); //Get value of ExpirationYear int ExpirationYear6487 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue(); //Get value of NameOnCard string NameOnCard6488 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue(); //Get value of CreditCardAddress if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress != null) { string CreditCardAddress6489 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue(); } //Get value of CreditCardPostalCode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode != null) { string CreditCardPostalCode6490 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue(); } //Get value of CommercialCardCode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode != null) { string CommercialCardCode6491 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue(); } //Get value of TransactionMode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode != null) { ENTransactionMode TransactionMode6492 = (ENTransactionMode)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue(); } //Get value of CreditCardTxnType if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType != null) { ENCreditCardTxnType CreditCardTxnType6493 = (ENCreditCardTxnType)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue(); } //Get value of ResultCode int ResultCode6494 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue(); //Get value of ResultMessage string ResultMessage6495 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue(); //Get value of CreditCardTransID string CreditCardTransID6496 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue(); //Get value of MerchantAccountNumber string MerchantAccountNumber6497 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue(); //Get value of AuthorizationCode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode != null) { string AuthorizationCode6498 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue(); } //Get value of AVSStreet if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet != null) { ENAVSStreet AVSStreet6499 = (ENAVSStreet)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue(); } //Get value of AVSZip if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip != null) { ENAVSZip AVSZip6500 = (ENAVSZip)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue(); } //Get value of CardSecurityCodeMatch if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch != null) { ENCardSecurityCodeMatch CardSecurityCodeMatch6501 = (ENCardSecurityCodeMatch)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue(); } //Get value of ReconBatchID if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID != null) { string ReconBatchID6502 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue(); } //Get value of PaymentGroupingCode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode != null) { int PaymentGroupingCode6503 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue(); } //Get value of PaymentStatus ENPaymentStatus PaymentStatus6504 = (ENPaymentStatus)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue(); //Get value of TxnAuthorizationTime DateTime TxnAuthorizationTime6505 = (DateTime)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue(); //Get value of TxnAuthorizationStamp if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp != null) { int TxnAuthorizationStamp6506 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue(); } //Get value of ClientTransID if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID != null) { string ClientTransID6507 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue(); } } if (CreditMemoLineRet.DataExtRetList != null) { for (int i6508 = 0; i6508 < CreditMemoLineRet.DataExtRetList.Count; i6508++) { IDataExtRet DataExtRet = CreditMemoLineRet.DataExtRetList.GetAt(i6508); //Get value of OwnerID if (DataExtRet.OwnerID != null) { string OwnerID6509 = (string)DataExtRet.OwnerID.GetValue(); } //Get value of DataExtName string DataExtName6510 = (string)DataExtRet.DataExtName.GetValue(); //Get value of DataExtType ENDataExtType DataExtType6511 = (ENDataExtType)DataExtRet.DataExtType.GetValue(); //Get value of DataExtValue string DataExtValue6512 = (string)DataExtRet.DataExtValue.GetValue(); } } } } if (ORCreditMemoLineRet6393.CreditMemoLineGroupRet.DataExtRetList != null) { for (int i6513 = 0; i6513 < ORCreditMemoLineRet6393.CreditMemoLineGroupRet.DataExtRetList.Count; i6513++) { IDataExtRet DataExtRet = ORCreditMemoLineRet6393.CreditMemoLineGroupRet.DataExtRetList.GetAt(i6513); //Get value of OwnerID if (DataExtRet.OwnerID != null) { string OwnerID6514 = (string)DataExtRet.OwnerID.GetValue(); } //Get value of DataExtName string DataExtName6515 = (string)DataExtRet.DataExtName.GetValue(); //Get value of DataExtType ENDataExtType DataExtType6516 = (ENDataExtType)DataExtRet.DataExtType.GetValue(); //Get value of DataExtValue string DataExtValue6517 = (string)DataExtRet.DataExtValue.GetValue(); } } } } } } if (CreditMemoRet.DataExtRetList != null) { for (int i6518 = 0; i6518 < CreditMemoRet.DataExtRetList.Count; i6518++) { IDataExtRet DataExtRet = CreditMemoRet.DataExtRetList.GetAt(i6518); //Get value of OwnerID if (DataExtRet.OwnerID != null) { string OwnerID6519 = (string)DataExtRet.OwnerID.GetValue(); } //Get value of DataExtName string DataExtName6520 = (string)DataExtRet.DataExtName.GetValue(); //Get value of DataExtType ENDataExtType DataExtType6521 = (ENDataExtType)DataExtRet.DataExtType.GetValue(); //Get value of DataExtValue string DataExtValue6522 = (string)DataExtRet.DataExtValue.GetValue(); } } } } } |