Some fields in a CreditMemoMod request cannot be cleared. If any of the following fields is included in a credit-memo modify request, it must contain a value:
Within CreditMemoLineMod or CreditMemoLineGroupMod:
(For more details about what it means for a field to be clearable or not clearable, see Modify, delete, and void requests and responses.)
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 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 | <?xml version="1.0" encoding="utf-8"?> <?qbxml version="17.0"?> <QBXML> <QBXMLMsgsRq onError="stopOnError"> <CreditMemoModRq> <CreditMemoMod> <!-- required --> <TxnID >IDTYPE</TxnID> <!-- required --> <EditSequence >STRTYPE</EditSequence> <!-- required --> <CustomerRef> <!-- optional --> <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> <!-- optional --> <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> <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> <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> <ItemSalesTaxRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ItemSalesTaxRef> <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 --> <ExchangeRate >FLOATTYPE</ExchangeRate> <!-- optional --> <!-- BEGIN OR --> <CreditMemoLineMod> <!-- 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 --> <!-- OR --> <PriceLevelRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </PriceLevelRef> <!-- 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 --> <ServiceDate >DATETYPE</ServiceDate> <!-- optional --> <SalesTaxCodeRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </SalesTaxCodeRef> <OverrideItemAccountRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </OverrideItemAccountRef> <Other1 >STRTYPE</Other1> <!-- optional --> <Other2 >STRTYPE</Other2> <!-- optional --> </CreditMemoLineMod> <!-- OR --> <CreditMemoLineGroupMod> <!-- optional --> <TxnLineID >IDTYPE</TxnLineID> <!-- required --> <ItemGroupRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </ItemGroupRef> <Quantity >QUANTYPE</Quantity> <!-- optional --> <UnitOfMeasure >STRTYPE</UnitOfMeasure> <!-- optional --> <OverrideUOMSetRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </OverrideUOMSetRef> <CreditMemoLineMod> <!-- 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 --> <!-- OR --> <PriceLevelRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </PriceLevelRef> <!-- 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 --> <ServiceDate >DATETYPE</ServiceDate> <!-- optional --> <SalesTaxCodeRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </SalesTaxCodeRef> <OverrideItemAccountRef> <!-- optional --> <ListID >IDTYPE</ListID> <!-- optional --> <FullName >STRTYPE</FullName> <!-- optional --> </OverrideItemAccountRef> <Other1 >STRTYPE</Other1> <!-- optional --> <Other2 >STRTYPE</Other2> <!-- optional --> </CreditMemoLineMod> </CreditMemoLineGroupMod> <!-- END OR --> </CreditMemoMod> <IncludeRetElement >STRTYPE</IncludeRetElement> <!-- optional, may repeat --> </CreditMemoModRq> <CreditMemoModRs statusCode="INTTYPE" statusSeverity="STRTYPE" statusMessage="STRTYPE"> <CreditMemoRet> <!-- optional --> <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> <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> <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> <ErrorRecovery> <!-- optional --> <!-- BEGIN OR --> <ListID >IDTYPE</ListID> <!-- optional --> <!-- OR --> <OwnerID >GUIDTYPE</OwnerID> <!-- optional --> <!-- OR --> <TxnID >IDTYPE</TxnID> <!-- optional --> <!-- END OR --> <TxnNumber >INTTYPE</TxnNumber> <!-- optional --> <EditSequence >STRTYPE</EditSequence> <!-- optional --> <ExternalGUID >GUIDTYPE</ExternalGUID> <!-- optional --> </ErrorRecovery> </CreditMemoModRs> </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 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 | '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 DoCreditMemoMod()
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
BuildCreditMemoModRq(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
WalkCreditMemoModRs(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 BuildCreditMemoModRq(requestMsgSet as IMsgSetRequest)
Dim CreditMemoModRq as ICreditMemoMod
CreditMemoModRq= requestMsgSet.AppendCreditMemoModRq()
'Set field value for TxnID
CreditMemoModRq.TxnID.SetValue("200000-1011023419")
'Set field value for EditSequence
CreditMemoModRq.EditSequence.SetValue("ab")
'Set field value for ListID
CreditMemoModRq.CustomerRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.CustomerRef.FullName.SetValue("ab")
'Set field value for ListID
CreditMemoModRq.ClassRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.ClassRef.FullName.SetValue("ab")
'Set field value for ListID
CreditMemoModRq.ARAccountRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.ARAccountRef.FullName.SetValue("ab")
'Set field value for ListID
CreditMemoModRq.TemplateRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.TemplateRef.FullName.SetValue("ab")
'Set field value for TxnDate
CreditMemoModRq.TxnDate.SetValue(DateTime.Parse("12/15/2007"))
'Set field value for RefNumber
CreditMemoModRq.RefNumber.SetValue("ab")
'Set field value for Addr1
CreditMemoModRq.BillAddress.Addr1.SetValue("ab")
'Set field value for Addr2
CreditMemoModRq.BillAddress.Addr2.SetValue("ab")
'Set field value for Addr3
CreditMemoModRq.BillAddress.Addr3.SetValue("ab")
'Set field value for Addr4
CreditMemoModRq.BillAddress.Addr4.SetValue("ab")
'Set field value for Addr5
CreditMemoModRq.BillAddress.Addr5.SetValue("ab")
'Set field value for City
CreditMemoModRq.BillAddress.City.SetValue("ab")
'Set field value for State
CreditMemoModRq.BillAddress.State.SetValue("ab")
'Set field value for PostalCode
CreditMemoModRq.BillAddress.PostalCode.SetValue("ab")
'Set field value for Country
CreditMemoModRq.BillAddress.Country.SetValue("ab")
'Set field value for Note
CreditMemoModRq.BillAddress.Note.SetValue("ab")
'Set field value for Addr1
CreditMemoModRq.ShipAddress.Addr1.SetValue("ab")
'Set field value for Addr2
CreditMemoModRq.ShipAddress.Addr2.SetValue("ab")
'Set field value for Addr3
CreditMemoModRq.ShipAddress.Addr3.SetValue("ab")
'Set field value for Addr4
CreditMemoModRq.ShipAddress.Addr4.SetValue("ab")
'Set field value for Addr5
CreditMemoModRq.ShipAddress.Addr5.SetValue("ab")
'Set field value for City
CreditMemoModRq.ShipAddress.City.SetValue("ab")
'Set field value for State
CreditMemoModRq.ShipAddress.State.SetValue("ab")
'Set field value for PostalCode
CreditMemoModRq.ShipAddress.PostalCode.SetValue("ab")
'Set field value for Country
CreditMemoModRq.ShipAddress.Country.SetValue("ab")
'Set field value for Note
CreditMemoModRq.ShipAddress.Note.SetValue("ab")
'Set field value for IsPending
CreditMemoModRq.IsPending.SetValue(True)
'Set field value for PONumber
CreditMemoModRq.PONumber.SetValue("ab")
'Set field value for ListID
CreditMemoModRq.TermsRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.TermsRef.FullName.SetValue("ab")
'Set field value for DueDate
CreditMemoModRq.DueDate.SetValue(DateTime.Parse("12/15/2007"))
'Set field value for ListID
CreditMemoModRq.SalesRepRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.SalesRepRef.FullName.SetValue("ab")
'Set field value for FOB
CreditMemoModRq.FOB.SetValue("ab")
'Set field value for ShipDate
CreditMemoModRq.ShipDate.SetValue(DateTime.Parse("12/15/2007"))
'Set field value for ListID
CreditMemoModRq.ShipMethodRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.ShipMethodRef.FullName.SetValue("ab")
'Set field value for ListID
CreditMemoModRq.ItemSalesTaxRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.ItemSalesTaxRef.FullName.SetValue("ab")
'Set field value for Memo
CreditMemoModRq.Memo.SetValue("ab")
'Set field value for ListID
CreditMemoModRq.CustomerMsgRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.CustomerMsgRef.FullName.SetValue("ab")
'Set field value for IsToBePrinted
CreditMemoModRq.IsToBePrinted.SetValue(True)
'Set field value for IsToBeEmailed
CreditMemoModRq.IsToBeEmailed.SetValue(True)
'Set field value for IsTaxIncluded
CreditMemoModRq.IsTaxIncluded.SetValue(True)
'Set field value for ListID
CreditMemoModRq.CustomerSalesTaxCodeRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoModRq.CustomerSalesTaxCodeRef.FullName.SetValue("ab")
'Set field value for Other
CreditMemoModRq.Other.SetValue("ab")
'Set field value for ExchangeRate
CreditMemoModRq.ExchangeRate.SetValue("IQBFloatType")
Dim ORCreditMemoLineModListElement6079 as IORCreditMemoLineMod
ORCreditMemoLineModListElement6079 =CreditMemoModRq.ORCreditMemoLineModList.Append()
Dim ORCreditMemoLineModListElementType6080 as String
ORCreditMemoLineModListElementType6080 = "CreditMemoLineMod"
if (ORCreditMemoLineModListElementType6080 == "CreditMemoLineMod") then
'Set field value for TxnLineID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.TxnLineID.SetValue("200000-1011023419")
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ItemRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ItemRef.FullName.SetValue("ab")
'Set field value for Desc
ORCreditMemoLineModListElement6079.CreditMemoLineMod.Desc.SetValue("ab")
'Set field value for Quantity
ORCreditMemoLineModListElement6079.CreditMemoLineMod.Quantity.SetValue(2)
'Set field value for UnitOfMeasure
ORCreditMemoLineModListElement6079.CreditMemoLineMod.UnitOfMeasure.SetValue("ab")
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.OverrideUOMSetRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineMod.OverrideUOMSetRef.FullName.SetValue("ab")
Dim ORRatePriceLevelElementType6081 as String
ORRatePriceLevelElementType6081 = "Rate"
if (ORRatePriceLevelElementType6081 == "Rate") then
'Set field value for Rate
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORRatePriceLevel.Rate.SetValue(15.65)
End If
if (ORRatePriceLevelElementType6081 == "RatePercent") then
'Set field value for RatePercent
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORRatePriceLevel.RatePercent.SetValue(20.00)
End If
if (ORRatePriceLevelElementType6081 == "PriceLevelRef") then
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab")
End If
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ClassRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ClassRef.FullName.SetValue("ab")
'Set field value for Amount
ORCreditMemoLineModListElement6079.CreditMemoLineMod.Amount.SetValue(10.01)
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.InventorySiteRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineMod.InventorySiteRef.FullName.SetValue("ab")
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.InventorySiteLocationRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineMod.InventorySiteLocationRef.FullName.SetValue("ab")
Dim ORSerialLotNumberElementType6082 as String
ORSerialLotNumberElementType6082 = "SerialNumber"
if (ORSerialLotNumberElementType6082 == "SerialNumber") then
'Set field value for SerialNumber
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORSerialLotNumber.SerialNumber.SetValue("ab")
End If
if (ORSerialLotNumberElementType6082 == "LotNumber") then
'Set field value for LotNumber
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ORSerialLotNumber.LotNumber.SetValue("ab")
End If
'Set field value for ServiceDate
ORCreditMemoLineModListElement6079.CreditMemoLineMod.ServiceDate.SetValue(DateTime.Parse("12/15/2007"))
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.SalesTaxCodeRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineMod.SalesTaxCodeRef.FullName.SetValue("ab")
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineMod.OverrideItemAccountRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineMod.OverrideItemAccountRef.FullName.SetValue("ab")
'Set field value for Other1
ORCreditMemoLineModListElement6079.CreditMemoLineMod.Other1.SetValue("ab")
'Set field value for Other2
ORCreditMemoLineModListElement6079.CreditMemoLineMod.Other2.SetValue("ab")
End If
if (ORCreditMemoLineModListElementType6080 == "CreditMemoLineGroupMod") then
'Set field value for TxnLineID
ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.TxnLineID.SetValue("200000-1011023419")
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.ItemGroupRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.ItemGroupRef.FullName.SetValue("ab")
'Set field value for Quantity
ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.Quantity.SetValue(2)
'Set field value for UnitOfMeasure
ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.UnitOfMeasure.SetValue("ab")
'Set field value for ListID
ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.OverrideUOMSetRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.OverrideUOMSetRef.FullName.SetValue("ab")
Dim CreditMemoLineMod6083 as ICreditMemoLineMod
CreditMemoLineMod6083=ORCreditMemoLineModListElement6079.CreditMemoLineGroupMod.CreditMemoLineModList.Append()
'Set field value for TxnLineID
CreditMemoLineMod6083.TxnLineID.SetValue("200000-1011023419")
'Set field value for ListID
CreditMemoLineMod6083.ItemRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoLineMod6083.ItemRef.FullName.SetValue("ab")
'Set field value for Desc
CreditMemoLineMod6083.Desc.SetValue("ab")
'Set field value for Quantity
CreditMemoLineMod6083.Quantity.SetValue(2)
'Set field value for UnitOfMeasure
CreditMemoLineMod6083.UnitOfMeasure.SetValue("ab")
'Set field value for ListID
CreditMemoLineMod6083.OverrideUOMSetRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoLineMod6083.OverrideUOMSetRef.FullName.SetValue("ab")
Dim ORRatePriceLevelElementType6084 as String
ORRatePriceLevelElementType6084 = "Rate"
if (ORRatePriceLevelElementType6084 == "Rate") then
'Set field value for Rate
CreditMemoLineMod6083.ORRatePriceLevel.Rate.SetValue(15.65)
End If
if (ORRatePriceLevelElementType6084 == "RatePercent") then
'Set field value for RatePercent
CreditMemoLineMod6083.ORRatePriceLevel.RatePercent.SetValue(20.00)
End If
if (ORRatePriceLevelElementType6084 == "PriceLevelRef") then
'Set field value for ListID
CreditMemoLineMod6083.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoLineMod6083.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab")
End If
'Set field value for ListID
CreditMemoLineMod6083.ClassRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoLineMod6083.ClassRef.FullName.SetValue("ab")
'Set field value for Amount
CreditMemoLineMod6083.Amount.SetValue(10.01)
'Set field value for ListID
CreditMemoLineMod6083.InventorySiteRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoLineMod6083.InventorySiteRef.FullName.SetValue("ab")
'Set field value for ListID
CreditMemoLineMod6083.InventorySiteLocationRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoLineMod6083.InventorySiteLocationRef.FullName.SetValue("ab")
Dim ORSerialLotNumberElementType6085 as String
ORSerialLotNumberElementType6085 = "SerialNumber"
if (ORSerialLotNumberElementType6085 == "SerialNumber") then
'Set field value for SerialNumber
CreditMemoLineMod6083.ORSerialLotNumber.SerialNumber.SetValue("ab")
End If
if (ORSerialLotNumberElementType6085 == "LotNumber") then
'Set field value for LotNumber
CreditMemoLineMod6083.ORSerialLotNumber.LotNumber.SetValue("ab")
End If
'Set field value for ServiceDate
CreditMemoLineMod6083.ServiceDate.SetValue(DateTime.Parse("12/15/2007"))
'Set field value for ListID
CreditMemoLineMod6083.SalesTaxCodeRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoLineMod6083.SalesTaxCodeRef.FullName.SetValue("ab")
'Set field value for ListID
CreditMemoLineMod6083.OverrideItemAccountRef.ListID.SetValue("200000-1011023419")
'Set field value for FullName
CreditMemoLineMod6083.OverrideItemAccountRef.FullName.SetValue("ab")
'Set field value for Other1
CreditMemoLineMod6083.Other1.SetValue("ab")
'Set field value for Other2
CreditMemoLineMod6083.Other2.SetValue("ab")
End If
'Set field value for IncludeRetElementList
'May create more than one of these if needed
CreditMemoModRq.IncludeRetElementList.Add("ab")
End Sub
Public Sub WalkCreditMemoModRs( 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.rtCreditMemoModRs) then
'upcast to more specific type here, this is safe because we checked with response.Type check above
Dim CreditMemoRet as ICreditMemoRet
CreditMemoRet = CType(response.Detail,ICreditMemoRet)
WalkCreditMemoRet(CreditMemoRet)
End If
End If
End If
Next j
End Sub
Public Sub WalkCreditMemoRet(CreditMemoRet as ICreditMemoRet)
if (CreditMemoRet is nothing) then
Exit Sub
End If
'Go through all the elements of ICreditMemoRet
'Get value of TxnID
Dim TxnID6086 as String
TxnID6086 = CreditMemoRet.TxnID.GetValue()
'Get value of TimeCreated
Dim TimeCreated6087 as DateTime
TimeCreated6087 = CreditMemoRet.TimeCreated.GetValue()
'Get value of TimeModified
Dim TimeModified6088 as DateTime
TimeModified6088 = CreditMemoRet.TimeModified.GetValue()
'Get value of EditSequence
Dim EditSequence6089 as String
EditSequence6089 = CreditMemoRet.EditSequence.GetValue()
'Get value of TxnNumber
if ( not CreditMemoRet.TxnNumber is nothing) then
Dim TxnNumber6090 as Integer
TxnNumber6090 = CreditMemoRet.TxnNumber.GetValue()
End If
'Get value of ListID
if ( not CreditMemoRet.CustomerRef.ListID is nothing) then
Dim ListID6091 as String
ListID6091 = CreditMemoRet.CustomerRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.CustomerRef.FullName is nothing) then
Dim FullName6092 as String
FullName6092 = 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 ListID6093 as String
ListID6093 = CreditMemoRet.ClassRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.ClassRef.FullName is nothing) then
Dim FullName6094 as String
FullName6094 = 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 ListID6095 as String
ListID6095 = CreditMemoRet.ARAccountRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.ARAccountRef.FullName is nothing) then
Dim FullName6096 as String
FullName6096 = 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 ListID6097 as String
ListID6097 = CreditMemoRet.TemplateRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.TemplateRef.FullName is nothing) then
Dim FullName6098 as String
FullName6098 = CreditMemoRet.TemplateRef.FullName.GetValue()
End If
End If
'Get value of TxnDate
Dim TxnDate6099 as DateTime
TxnDate6099 = CreditMemoRet.TxnDate.GetValue()
'Get value of RefNumber
if ( not CreditMemoRet.RefNumber is nothing) then
Dim RefNumber6100 as String
RefNumber6100 = 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 Addr16101 as String
Addr16101 = CreditMemoRet.BillAddress.Addr1.GetValue()
End If
'Get value of Addr2
if ( not CreditMemoRet.BillAddress.Addr2 is nothing) then
Dim Addr26102 as String
Addr26102 = CreditMemoRet.BillAddress.Addr2.GetValue()
End If
'Get value of Addr3
if ( not CreditMemoRet.BillAddress.Addr3 is nothing) then
Dim Addr36103 as String
Addr36103 = CreditMemoRet.BillAddress.Addr3.GetValue()
End If
'Get value of Addr4
if ( not CreditMemoRet.BillAddress.Addr4 is nothing) then
Dim Addr46104 as String
Addr46104 = CreditMemoRet.BillAddress.Addr4.GetValue()
End If
'Get value of Addr5
if ( not CreditMemoRet.BillAddress.Addr5 is nothing) then
Dim Addr56105 as String
Addr56105 = CreditMemoRet.BillAddress.Addr5.GetValue()
End If
'Get value of City
if ( not CreditMemoRet.BillAddress.City is nothing) then
Dim City6106 as String
City6106 = CreditMemoRet.BillAddress.City.GetValue()
End If
'Get value of State
if ( not CreditMemoRet.BillAddress.State is nothing) then
Dim State6107 as String
State6107 = CreditMemoRet.BillAddress.State.GetValue()
End If
'Get value of PostalCode
if ( not CreditMemoRet.BillAddress.PostalCode is nothing) then
Dim PostalCode6108 as String
PostalCode6108 = CreditMemoRet.BillAddress.PostalCode.GetValue()
End If
'Get value of Country
if ( not CreditMemoRet.BillAddress.Country is nothing) then
Dim Country6109 as String
Country6109 = CreditMemoRet.BillAddress.Country.GetValue()
End If
'Get value of Note
if ( not CreditMemoRet.BillAddress.Note is nothing) then
Dim Note6110 as String
Note6110 = 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 Addr16111 as String
Addr16111 = CreditMemoRet.BillAddressBlock.Addr1.GetValue()
End If
'Get value of Addr2
if ( not CreditMemoRet.BillAddressBlock.Addr2 is nothing) then
Dim Addr26112 as String
Addr26112 = CreditMemoRet.BillAddressBlock.Addr2.GetValue()
End If
'Get value of Addr3
if ( not CreditMemoRet.BillAddressBlock.Addr3 is nothing) then
Dim Addr36113 as String
Addr36113 = CreditMemoRet.BillAddressBlock.Addr3.GetValue()
End If
'Get value of Addr4
if ( not CreditMemoRet.BillAddressBlock.Addr4 is nothing) then
Dim Addr46114 as String
Addr46114 = CreditMemoRet.BillAddressBlock.Addr4.GetValue()
End If
'Get value of Addr5
if ( not CreditMemoRet.BillAddressBlock.Addr5 is nothing) then
Dim Addr56115 as String
Addr56115 = 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 Addr16116 as String
Addr16116 = CreditMemoRet.ShipAddress.Addr1.GetValue()
End If
'Get value of Addr2
if ( not CreditMemoRet.ShipAddress.Addr2 is nothing) then
Dim Addr26117 as String
Addr26117 = CreditMemoRet.ShipAddress.Addr2.GetValue()
End If
'Get value of Addr3
if ( not CreditMemoRet.ShipAddress.Addr3 is nothing) then
Dim Addr36118 as String
Addr36118 = CreditMemoRet.ShipAddress.Addr3.GetValue()
End If
'Get value of Addr4
if ( not CreditMemoRet.ShipAddress.Addr4 is nothing) then
Dim Addr46119 as String
Addr46119 = CreditMemoRet.ShipAddress.Addr4.GetValue()
End If
'Get value of Addr5
if ( not CreditMemoRet.ShipAddress.Addr5 is nothing) then
Dim Addr56120 as String
Addr56120 = CreditMemoRet.ShipAddress.Addr5.GetValue()
End If
'Get value of City
if ( not CreditMemoRet.ShipAddress.City is nothing) then
Dim City6121 as String
City6121 = CreditMemoRet.ShipAddress.City.GetValue()
End If
'Get value of State
if ( not CreditMemoRet.ShipAddress.State is nothing) then
Dim State6122 as String
State6122 = CreditMemoRet.ShipAddress.State.GetValue()
End If
'Get value of PostalCode
if ( not CreditMemoRet.ShipAddress.PostalCode is nothing) then
Dim PostalCode6123 as String
PostalCode6123 = CreditMemoRet.ShipAddress.PostalCode.GetValue()
End If
'Get value of Country
if ( not CreditMemoRet.ShipAddress.Country is nothing) then
Dim Country6124 as String
Country6124 = CreditMemoRet.ShipAddress.Country.GetValue()
End If
'Get value of Note
if ( not CreditMemoRet.ShipAddress.Note is nothing) then
Dim Note6125 as String
Note6125 = 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 Addr16126 as String
Addr16126 = CreditMemoRet.ShipAddressBlock.Addr1.GetValue()
End If
'Get value of Addr2
if ( not CreditMemoRet.ShipAddressBlock.Addr2 is nothing) then
Dim Addr26127 as String
Addr26127 = CreditMemoRet.ShipAddressBlock.Addr2.GetValue()
End If
'Get value of Addr3
if ( not CreditMemoRet.ShipAddressBlock.Addr3 is nothing) then
Dim Addr36128 as String
Addr36128 = CreditMemoRet.ShipAddressBlock.Addr3.GetValue()
End If
'Get value of Addr4
if ( not CreditMemoRet.ShipAddressBlock.Addr4 is nothing) then
Dim Addr46129 as String
Addr46129 = CreditMemoRet.ShipAddressBlock.Addr4.GetValue()
End If
'Get value of Addr5
if ( not CreditMemoRet.ShipAddressBlock.Addr5 is nothing) then
Dim Addr56130 as String
Addr56130 = CreditMemoRet.ShipAddressBlock.Addr5.GetValue()
End If
End If
'Get value of IsPending
if ( not CreditMemoRet.IsPending is nothing) then
Dim IsPending6131 as Boolean
IsPending6131 = CreditMemoRet.IsPending.GetValue()
End If
'Get value of PONumber
if ( not CreditMemoRet.PONumber is nothing) then
Dim PONumber6132 as String
PONumber6132 = 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 ListID6133 as String
ListID6133 = CreditMemoRet.TermsRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.TermsRef.FullName is nothing) then
Dim FullName6134 as String
FullName6134 = CreditMemoRet.TermsRef.FullName.GetValue()
End If
End If
'Get value of DueDate
if ( not CreditMemoRet.DueDate is nothing) then
Dim DueDate6135 as DateTime
DueDate6135 = 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 ListID6136 as String
ListID6136 = CreditMemoRet.SalesRepRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.SalesRepRef.FullName is nothing) then
Dim FullName6137 as String
FullName6137 = CreditMemoRet.SalesRepRef.FullName.GetValue()
End If
End If
'Get value of FOB
if ( not CreditMemoRet.FOB is nothing) then
Dim FOB6138 as String
FOB6138 = CreditMemoRet.FOB.GetValue()
End If
'Get value of ShipDate
if ( not CreditMemoRet.ShipDate is nothing) then
Dim ShipDate6139 as DateTime
ShipDate6139 = 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 ListID6140 as String
ListID6140 = CreditMemoRet.ShipMethodRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.ShipMethodRef.FullName is nothing) then
Dim FullName6141 as String
FullName6141 = CreditMemoRet.ShipMethodRef.FullName.GetValue()
End If
End If
'Get value of Subtotal
if ( not CreditMemoRet.Subtotal is nothing) then
Dim Subtotal6142 as Double
Subtotal6142 = 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 ListID6143 as String
ListID6143 = CreditMemoRet.ItemSalesTaxRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.ItemSalesTaxRef.FullName is nothing) then
Dim FullName6144 as String
FullName6144 = CreditMemoRet.ItemSalesTaxRef.FullName.GetValue()
End If
End If
'Get value of SalesTaxPercentage
if ( not CreditMemoRet.SalesTaxPercentage is nothing) then
Dim SalesTaxPercentage6145 as Double
SalesTaxPercentage6145 = CreditMemoRet.SalesTaxPercentage.GetValue()
End If
'Get value of SalesTaxTotal
if ( not CreditMemoRet.SalesTaxTotal is nothing) then
Dim SalesTaxTotal6146 as Double
SalesTaxTotal6146 = CreditMemoRet.SalesTaxTotal.GetValue()
End If
'Get value of TotalAmount
if ( not CreditMemoRet.TotalAmount is nothing) then
Dim TotalAmount6147 as Double
TotalAmount6147 = CreditMemoRet.TotalAmount.GetValue()
End If
'Get value of CreditRemaining
if ( not CreditMemoRet.CreditRemaining is nothing) then
Dim CreditRemaining6148 as Double
CreditRemaining6148 = 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 ListID6149 as String
ListID6149 = CreditMemoRet.CurrencyRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.CurrencyRef.FullName is nothing) then
Dim FullName6150 as String
FullName6150 = CreditMemoRet.CurrencyRef.FullName.GetValue()
End If
End If
'Get value of ExchangeRate
if ( not CreditMemoRet.ExchangeRate is nothing) then
Dim ExchangeRate6151 as IQBFloatType
ExchangeRate6151 = CreditMemoRet.ExchangeRate.GetValue()
End If
'Get value of CreditRemainingInHomeCurrency
if ( not CreditMemoRet.CreditRemainingInHomeCurrency is nothing) then
Dim CreditRemainingInHomeCurrency6152 as Double
CreditRemainingInHomeCurrency6152 = CreditMemoRet.CreditRemainingInHomeCurrency.GetValue()
End If
'Get value of Memo
if ( not CreditMemoRet.Memo is nothing) then
Dim Memo6153 as String
Memo6153 = 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 ListID6154 as String
ListID6154 = CreditMemoRet.CustomerMsgRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.CustomerMsgRef.FullName is nothing) then
Dim FullName6155 as String
FullName6155 = CreditMemoRet.CustomerMsgRef.FullName.GetValue()
End If
End If
'Get value of IsToBePrinted
if ( not CreditMemoRet.IsToBePrinted is nothing) then
Dim IsToBePrinted6156 as Boolean
IsToBePrinted6156 = CreditMemoRet.IsToBePrinted.GetValue()
End If
'Get value of IsToBeEmailed
if ( not CreditMemoRet.IsToBeEmailed is nothing) then
Dim IsToBeEmailed6157 as Boolean
IsToBeEmailed6157 = CreditMemoRet.IsToBeEmailed.GetValue()
End If
'Get value of IsTaxIncluded
if ( not CreditMemoRet.IsTaxIncluded is nothing) then
Dim IsTaxIncluded6158 as Boolean
IsTaxIncluded6158 = 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 ListID6159 as String
ListID6159 = CreditMemoRet.CustomerSalesTaxCodeRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoRet.CustomerSalesTaxCodeRef.FullName is nothing) then
Dim FullName6160 as String
FullName6160 = CreditMemoRet.CustomerSalesTaxCodeRef.FullName.GetValue()
End If
End If
'Get value of Other
if ( not CreditMemoRet.Other is nothing) then
Dim Other6161 as String
Other6161 = CreditMemoRet.Other.GetValue()
End If
'Get value of ExternalGUID
if ( not CreditMemoRet.ExternalGUID is nothing) then
Dim ExternalGUID6162 as String
ExternalGUID6162 = CreditMemoRet.ExternalGUID.GetValue()
End If
if (not CreditMemoRet.LinkedTxnList is nothing)
Dim i6163 as Integer
for i6163 = 0 to CreditMemoRet.LinkedTxnList.Count - 1
Dim LinkedTxn as ILinkedTxn
LinkedTxn = CreditMemoRet.LinkedTxnList.GetAt(i6163)
'Get value of TxnID
Dim TxnID6164 as String
TxnID6164 = LinkedTxnTxnID.GetValue()
'Get value of TxnType
Dim TxnType6165 as ENTxnType
TxnType6165 = LinkedTxnTxnType.GetValue()
'Get value of TxnDate
Dim TxnDate6166 as DateTime
TxnDate6166 = LinkedTxnTxnDate.GetValue()
'Get value of RefNumber
if ( not LinkedTxnRefNumber is nothing) then
Dim RefNumber6167 as String
RefNumber6167 = LinkedTxnRefNumber.GetValue()
End If
'Get value of LinkType
if ( not LinkedTxnLinkType is nothing) then
Dim LinkType6168 as ENLinkType
LinkType6168 = LinkedTxnLinkType.GetValue()
End If
'Get value of Amount
Dim Amount6169 as Double
Amount6169 = LinkedTxnAmount.GetValue()
Next i6163
End If
if (not CreditMemoRet.ORCreditMemoLineRetList is nothing) then
Dim i6170 as Integer
for i6170 = 0 to CreditMemoRet.ORCreditMemoLineRetList.Count - 1
Dim ORCreditMemoLineRet6171 as IORCreditMemoLineRet
ORCreditMemoLineRet6171 = CreditMemoRet.ORCreditMemoLineRetList.GetAt(i6170)
if (not ORCreditMemoLineRet6171.CreditMemoLineRet is nothing) then
if (not ORCreditMemoLineRet6171.CreditMemoLineRet. is nothing) then
'Get value of TxnLineID
Dim TxnLineID6172 as String
TxnLineID6172 = ORCreditMemoLineRet6171.CreditMemoLineRet.TxnLineID.GetValue()
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef. is nothing) then
'Get value of ListID
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef.ListID is nothing) then
Dim ListID6173 as String
ListID6173 = ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef.ListID.GetValue()
End If
'Get value of FullName
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef.FullName is nothing) then
Dim FullName6174 as String
FullName6174 = ORCreditMemoLineRet6171.CreditMemoLineRet.ItemRef.FullName.GetValue()
End If
End If
'Get value of Desc
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Desc is nothing) then
Dim Desc6175 as String
Desc6175 = ORCreditMemoLineRet6171.CreditMemoLineRet.Desc.GetValue()
End If
'Get value of Quantity
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Quantity is nothing) then
Dim Quantity6176 as Integer
Quantity6176 = ORCreditMemoLineRet6171.CreditMemoLineRet.Quantity.GetValue()
End If
'Get value of UnitOfMeasure
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.UnitOfMeasure is nothing) then
Dim UnitOfMeasure6177 as String
UnitOfMeasure6177 = ORCreditMemoLineRet6171.CreditMemoLineRet.UnitOfMeasure.GetValue()
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef. is nothing) then
'Get value of ListID
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef.ListID is nothing) then
Dim ListID6178 as String
ListID6178 = ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue()
End If
'Get value of FullName
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef.FullName is nothing) then
Dim FullName6179 as String
FullName6179 = ORCreditMemoLineRet6171.CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue()
End If
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate is nothing) then
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.Rate is nothing) then
'Get value of Rate
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.Rate is nothing) then
Dim Rate6181 as Double
Rate6181 = ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.Rate.GetValue()
End If
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.RatePercent is nothing) then
'Get value of RatePercent
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.RatePercent is nothing) then
Dim RatePercent6182 as Double
RatePercent6182 = ORCreditMemoLineRet6171.CreditMemoLineRet.ORRate.RatePercent.GetValue()
End If
End If
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef. is nothing) then
'Get value of ListID
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef.ListID is nothing) then
Dim ListID6183 as String
ListID6183 = ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef.ListID.GetValue()
End If
'Get value of FullName
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef.FullName is nothing) then
Dim FullName6184 as String
FullName6184 = ORCreditMemoLineRet6171.CreditMemoLineRet.ClassRef.FullName.GetValue()
End If
End If
'Get value of Amount
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Amount is nothing) then
Dim Amount6185 as Double
Amount6185 = ORCreditMemoLineRet6171.CreditMemoLineRet.Amount.GetValue()
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef. is nothing) then
'Get value of ListID
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef.ListID is nothing) then
Dim ListID6186 as String
ListID6186 = ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef.ListID.GetValue()
End If
'Get value of FullName
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef.FullName is nothing) then
Dim FullName6187 as String
FullName6187 = ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteRef.FullName.GetValue()
End If
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef. is nothing) then
'Get value of ListID
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef.ListID is nothing) then
Dim ListID6188 as String
ListID6188 = ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue()
End If
'Get value of FullName
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef.FullName is nothing) then
Dim FullName6189 as String
FullName6189 = ORCreditMemoLineRet6171.CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue()
End If
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber is nothing) then
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.SerialNumber is nothing) then
'Get value of SerialNumber
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.SerialNumber is nothing) then
Dim SerialNumber6191 as String
SerialNumber6191 = ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue()
End If
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.LotNumber is nothing) then
'Get value of LotNumber
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.LotNumber is nothing) then
Dim LotNumber6192 as String
LotNumber6192 = ORCreditMemoLineRet6171.CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue()
End If
End If
End If
'Get value of ExpirationDateForSerialLotNumber
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ExpirationDateForSerialLotNumber is nothing) then
Dim ExpDate as String
ExpDate = ORCreditMemoLineRet6171.CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue()
End If
'Get value of ServiceDate
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.ServiceDate is nothing) then
Dim ServiceDate6193 as DateTime
ServiceDate6193 = ORCreditMemoLineRet6171.CreditMemoLineRet.ServiceDate.GetValue()
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef. is nothing) then
'Get value of ListID
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef.ListID is nothing) then
Dim ListID6194 as String
ListID6194 = ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue()
End If
'Get value of FullName
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef.FullName is nothing) then
Dim FullName6195 as String
FullName6195 = ORCreditMemoLineRet6171.CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue()
End If
End If
'Get value of Other1
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Other1 is nothing) then
Dim Other16196 as String
Other16196 = ORCreditMemoLineRet6171.CreditMemoLineRet.Other1.GetValue()
End If
'Get value of Other2
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.Other2 is nothing) then
Dim Other26197 as String
Other26197 = ORCreditMemoLineRet6171.CreditMemoLineRet.Other2.GetValue()
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo. is nothing) then
'Get value of CreditCardNumber
Dim CreditCardNumber6198 as String
CreditCardNumber6198 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue()
'Get value of ExpirationMonth
Dim ExpirationMonth6199 as Integer
ExpirationMonth6199 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue()
'Get value of ExpirationYear
Dim ExpirationYear6200 as Integer
ExpirationYear6200 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue()
'Get value of NameOnCard
Dim NameOnCard6201 as String
NameOnCard6201 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue()
'Get value of CreditCardAddress
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress is nothing) then
Dim CreditCardAddress6202 as String
CreditCardAddress6202 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue()
End If
'Get value of CreditCardPostalCode
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode is nothing) then
Dim CreditCardPostalCode6203 as String
CreditCardPostalCode6203 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue()
End If
'Get value of CommercialCardCode
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode is nothing) then
Dim CommercialCardCode6204 as String
CommercialCardCode6204 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue()
End If
'Get value of TransactionMode
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode is nothing) then
Dim TransactionMode6205 as ENTransactionMode
TransactionMode6205 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue()
End If
'Get value of CreditCardTxnType
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType is nothing) then
Dim CreditCardTxnType6206 as ENCreditCardTxnType
CreditCardTxnType6206 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue()
End If
'Get value of ResultCode
Dim ResultCode6207 as Integer
ResultCode6207 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue()
'Get value of ResultMessage
Dim ResultMessage6208 as String
ResultMessage6208 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue()
'Get value of CreditCardTransID
Dim CreditCardTransID6209 as String
CreditCardTransID6209 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue()
'Get value of MerchantAccountNumber
Dim MerchantAccountNumber6210 as String
MerchantAccountNumber6210 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue()
'Get value of AuthorizationCode
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode is nothing) then
Dim AuthorizationCode6211 as String
AuthorizationCode6211 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue()
End If
'Get value of AVSStreet
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet is nothing) then
Dim AVSStreet6212 as ENAVSStreet
AVSStreet6212 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue()
End If
'Get value of AVSZip
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip is nothing) then
Dim AVSZip6213 as ENAVSZip
AVSZip6213 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue()
End If
'Get value of CardSecurityCodeMatch
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch is nothing) then
Dim CardSecurityCodeMatch6214 as ENCardSecurityCodeMatch
CardSecurityCodeMatch6214 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue()
End If
'Get value of ReconBatchID
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID is nothing) then
Dim ReconBatchID6215 as String
ReconBatchID6215 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue()
End If
'Get value of PaymentGroupingCode
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode is nothing) then
Dim PaymentGroupingCode6216 as Integer
PaymentGroupingCode6216 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue()
End If
'Get value of PaymentStatus
Dim PaymentStatus6217 as ENPaymentStatus
PaymentStatus6217 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue()
'Get value of TxnAuthorizationTime
Dim TxnAuthorizationTime6218 as DateTime
TxnAuthorizationTime6218 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue()
'Get value of TxnAuthorizationStamp
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp is nothing) then
Dim TxnAuthorizationStamp6219 as Integer
TxnAuthorizationStamp6219 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue()
End If
'Get value of ClientTransID
if ( not ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID is nothing) then
Dim ClientTransID6220 as String
ClientTransID6220 = ORCreditMemoLineRet6171.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue()
End If
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineRet.DataExtRetList is nothing)
Dim i6221 as Integer
for i6221 = 0 to ORCreditMemoLineRet6171.CreditMemoLineRet.DataExtRetList.Count - 1
Dim DataExtRet as IDataExtRet
DataExtRet = ORCreditMemoLineRet6171.CreditMemoLineRet.DataExtRetList.GetAt(i6221)
'Get value of OwnerID
if ( not DataExtRetOwnerID is nothing) then
Dim OwnerID6222 as String
OwnerID6222 = DataExtRetOwnerID.GetValue()
End If
'Get value of DataExtName
Dim DataExtName6223 as String
DataExtName6223 = DataExtRetDataExtName.GetValue()
'Get value of DataExtType
Dim DataExtType6224 as ENDataExtType
DataExtType6224 = DataExtRetDataExtType.GetValue()
'Get value of DataExtValue
Dim DataExtValue6225 as String
DataExtValue6225 = DataExtRetDataExtValue.GetValue()
Next i6221
End If
End If
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet is nothing) then
if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet. is nothing) then
'Get value of TxnLineID
Dim TxnLineID6226 as String
TxnLineID6226 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.TxnLineID.GetValue()
'Get value of ListID
if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.ItemGroupRef.ListID is nothing) then
Dim ListID6227 as String
ListID6227 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.ItemGroupRef.ListID.GetValue()
End If
'Get value of FullName
if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.ItemGroupRef.FullName is nothing) then
Dim FullName6228 as String
FullName6228 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.ItemGroupRef.FullName.GetValue()
End If
'Get value of Desc
if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.Desc is nothing) then
Dim Desc6229 as String
Desc6229 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.Desc.GetValue()
End If
'Get value of Quantity
if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.Quantity is nothing) then
Dim Quantity6230 as Integer
Quantity6230 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.Quantity.GetValue()
End If
'Get value of UnitOfMeasure
if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.UnitOfMeasure is nothing) then
Dim UnitOfMeasure6231 as String
UnitOfMeasure6231 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.UnitOfMeasure.GetValue()
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef. is nothing) then
'Get value of ListID
if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID is nothing) then
Dim ListID6232 as String
ListID6232 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID.GetValue()
End If
'Get value of FullName
if ( not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName is nothing) then
Dim FullName6233 as String
FullName6233 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName.GetValue()
End If
End If
'Get value of IsPrintItemsInGroup
Dim IsPrintItemsInGroup6234 as Boolean
IsPrintItemsInGroup6234 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.IsPrintItemsInGroup.GetValue()
'Get value of TotalAmount
Dim TotalAmount6235 as Double
TotalAmount6235 = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.TotalAmount.GetValue()
if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.CreditMemoLineRetList is nothing)
Dim i6236 as Integer
for i6236 = 0 to ORCreditMemoLineRet6171.CreditMemoLineGroupRet.CreditMemoLineRetList.Count - 1
Dim CreditMemoLineRet as ICreditMemoLineRet
CreditMemoLineRet = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.CreditMemoLineRetList.GetAt(i6236)
'Get value of TxnLineID
Dim TxnLineID6237 as String
TxnLineID6237 = CreditMemoLineRetTxnLineID.GetValue()
if (not CreditMemoLineRetItemRef. is nothing) then
'Get value of ListID
if ( not CreditMemoLineRetItemRef.ListID is nothing) then
Dim ListID6238 as String
ListID6238 = CreditMemoLineRetItemRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoLineRetItemRef.FullName is nothing) then
Dim FullName6239 as String
FullName6239 = CreditMemoLineRetItemRef.FullName.GetValue()
End If
End If
'Get value of Desc
if ( not CreditMemoLineRetDesc is nothing) then
Dim Desc6240 as String
Desc6240 = CreditMemoLineRetDesc.GetValue()
End If
'Get value of Quantity
if ( not CreditMemoLineRetQuantity is nothing) then
Dim Quantity6241 as Integer
Quantity6241 = CreditMemoLineRetQuantity.GetValue()
End If
'Get value of UnitOfMeasure
if ( not CreditMemoLineRetUnitOfMeasure is nothing) then
Dim UnitOfMeasure6242 as String
UnitOfMeasure6242 = CreditMemoLineRetUnitOfMeasure.GetValue()
End If
if (not CreditMemoLineRetOverrideUOMSetRef. is nothing) then
'Get value of ListID
if ( not CreditMemoLineRetOverrideUOMSetRef.ListID is nothing) then
Dim ListID6243 as String
ListID6243 = CreditMemoLineRetOverrideUOMSetRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoLineRetOverrideUOMSetRef.FullName is nothing) then
Dim FullName6244 as String
FullName6244 = 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 Rate6246 as Double
Rate6246 = 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 RatePercent6247 as Double
RatePercent6247 = 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 ListID6248 as String
ListID6248 = CreditMemoLineRetClassRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoLineRetClassRef.FullName is nothing) then
Dim FullName6249 as String
FullName6249 = CreditMemoLineRetClassRef.FullName.GetValue()
End If
End If
'Get value of Amount
if ( not CreditMemoLineRetAmount is nothing) then
Dim Amount6250 as Double
Amount6250 = CreditMemoLineRetAmount.GetValue()
End If
if (not CreditMemoLineRetInventorySiteRef. is nothing) then
'Get value of ListID
if ( not CreditMemoLineRetInventorySiteRef.ListID is nothing) then
Dim ListID6251 as String
ListID6251 = CreditMemoLineRetInventorySiteRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoLineRetInventorySiteRef.FullName is nothing) then
Dim FullName6252 as String
FullName6252 = 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 ListID6253 as String
ListID6253 = CreditMemoLineRetInventorySiteLocationRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoLineRetInventorySiteLocationRef.FullName is nothing) then
Dim FullName6254 as String
FullName6254 = 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 SerialNumber6256 as String
SerialNumber6256 = 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 LotNumber6257 as String
LotNumber6257 = 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 ServiceDate6258 as DateTime
ServiceDate6258 = CreditMemoLineRetServiceDate.GetValue()
End If
if (not CreditMemoLineRetSalesTaxCodeRef. is nothing) then
'Get value of ListID
if ( not CreditMemoLineRetSalesTaxCodeRef.ListID is nothing) then
Dim ListID6259 as String
ListID6259 = CreditMemoLineRetSalesTaxCodeRef.ListID.GetValue()
End If
'Get value of FullName
if ( not CreditMemoLineRetSalesTaxCodeRef.FullName is nothing) then
Dim FullName6260 as String
FullName6260 = CreditMemoLineRetSalesTaxCodeRef.FullName.GetValue()
End If
End If
'Get value of Other1
if ( not CreditMemoLineRetOther1 is nothing) then
Dim Other16261 as String
Other16261 = CreditMemoLineRetOther1.GetValue()
End If
'Get value of Other2
if ( not CreditMemoLineRetOther2 is nothing) then
Dim Other26262 as String
Other26262 = CreditMemoLineRetOther2.GetValue()
End If
if (not CreditMemoLineRetCreditCardTxnInfo. is nothing) then
'Get value of CreditCardNumber
Dim CreditCardNumber6263 as String
CreditCardNumber6263 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue()
'Get value of ExpirationMonth
Dim ExpirationMonth6264 as Integer
ExpirationMonth6264 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue()
'Get value of ExpirationYear
Dim ExpirationYear6265 as Integer
ExpirationYear6265 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue()
'Get value of NameOnCard
Dim NameOnCard6266 as String
NameOnCard6266 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue()
'Get value of CreditCardAddress
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress is nothing) then
Dim CreditCardAddress6267 as String
CreditCardAddress6267 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue()
End If
'Get value of CreditCardPostalCode
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode is nothing) then
Dim CreditCardPostalCode6268 as String
CreditCardPostalCode6268 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue()
End If
'Get value of CommercialCardCode
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode is nothing) then
Dim CommercialCardCode6269 as String
CommercialCardCode6269 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue()
End If
'Get value of TransactionMode
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode is nothing) then
Dim TransactionMode6270 as ENTransactionMode
TransactionMode6270 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue()
End If
'Get value of CreditCardTxnType
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType is nothing) then
Dim CreditCardTxnType6271 as ENCreditCardTxnType
CreditCardTxnType6271 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue()
End If
'Get value of ResultCode
Dim ResultCode6272 as Integer
ResultCode6272 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue()
'Get value of ResultMessage
Dim ResultMessage6273 as String
ResultMessage6273 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue()
'Get value of CreditCardTransID
Dim CreditCardTransID6274 as String
CreditCardTransID6274 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue()
'Get value of MerchantAccountNumber
Dim MerchantAccountNumber6275 as String
MerchantAccountNumber6275 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue()
'Get value of AuthorizationCode
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode is nothing) then
Dim AuthorizationCode6276 as String
AuthorizationCode6276 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue()
End If
'Get value of AVSStreet
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet is nothing) then
Dim AVSStreet6277 as ENAVSStreet
AVSStreet6277 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue()
End If
'Get value of AVSZip
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip is nothing) then
Dim AVSZip6278 as ENAVSZip
AVSZip6278 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue()
End If
'Get value of CardSecurityCodeMatch
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch is nothing) then
Dim CardSecurityCodeMatch6279 as ENCardSecurityCodeMatch
CardSecurityCodeMatch6279 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue()
End If
'Get value of ReconBatchID
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID is nothing) then
Dim ReconBatchID6280 as String
ReconBatchID6280 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue()
End If
'Get value of PaymentGroupingCode
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode is nothing) then
Dim PaymentGroupingCode6281 as Integer
PaymentGroupingCode6281 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue()
End If
'Get value of PaymentStatus
Dim PaymentStatus6282 as ENPaymentStatus
PaymentStatus6282 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue()
'Get value of TxnAuthorizationTime
Dim TxnAuthorizationTime6283 as DateTime
TxnAuthorizationTime6283 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue()
'Get value of TxnAuthorizationStamp
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp is nothing) then
Dim TxnAuthorizationStamp6284 as Integer
TxnAuthorizationStamp6284 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue()
End If
'Get value of ClientTransID
if ( not CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID is nothing) then
Dim ClientTransID6285 as String
ClientTransID6285 = CreditMemoLineRetCreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue()
End If
End If
if (not CreditMemoLineRetDataExtRetList is nothing)
Dim i6286 as Integer
for i6286 = 0 to CreditMemoLineRetDataExtRetList.Count - 1
Dim DataExtRet as IDataExtRet
DataExtRet = CreditMemoLineRetDataExtRetList.GetAt(i6286)
'Get value of OwnerID
if ( not DataExtRetOwnerID is nothing) then
Dim OwnerID6287 as String
OwnerID6287 = DataExtRetOwnerID.GetValue()
End If
'Get value of DataExtName
Dim DataExtName6288 as String
DataExtName6288 = DataExtRetDataExtName.GetValue()
'Get value of DataExtType
Dim DataExtType6289 as ENDataExtType
DataExtType6289 = DataExtRetDataExtType.GetValue()
'Get value of DataExtValue
Dim DataExtValue6290 as String
DataExtValue6290 = DataExtRetDataExtValue.GetValue()
Next i6286
End If
Next i6236
End If
if (not ORCreditMemoLineRet6171.CreditMemoLineGroupRet.DataExtRetList is nothing)
Dim i6291 as Integer
for i6291 = 0 to ORCreditMemoLineRet6171.CreditMemoLineGroupRet.DataExtRetList.Count - 1
Dim DataExtRet as IDataExtRet
DataExtRet = ORCreditMemoLineRet6171.CreditMemoLineGroupRet.DataExtRetList.GetAt(i6291)
'Get value of OwnerID
if ( not DataExtRetOwnerID is nothing) then
Dim OwnerID6292 as String
OwnerID6292 = DataExtRetOwnerID.GetValue()
End If
'Get value of DataExtName
Dim DataExtName6293 as String
DataExtName6293 = DataExtRetDataExtName.GetValue()
'Get value of DataExtType
Dim DataExtType6294 as ENDataExtType
DataExtType6294 = DataExtRetDataExtType.GetValue()
'Get value of DataExtValue
Dim DataExtValue6295 as String
DataExtValue6295 = DataExtRetDataExtValue.GetValue()
Next i6291
End If
End If
End If
Next i6170
End If
if (not CreditMemoRet.DataExtRetList is nothing)
Dim i6296 as Integer
for i6296 = 0 to CreditMemoRet.DataExtRetList.Count - 1
Dim DataExtRet as IDataExtRet
DataExtRet = CreditMemoRet.DataExtRetList.GetAt(i6296)
'Get value of OwnerID
if ( not DataExtRetOwnerID is nothing) then
Dim OwnerID6297 as String
OwnerID6297 = DataExtRetOwnerID.GetValue()
End If
'Get value of DataExtName
Dim DataExtName6298 as String
DataExtName6298 = DataExtRetDataExtName.GetValue()
'Get value of DataExtType
Dim DataExtType6299 as ENDataExtType
DataExtType6299 = DataExtRetDataExtType.GetValue()
'Get value of DataExtValue
Dim DataExtValue6300 as String
DataExtValue6300 = DataExtRetDataExtValue.GetValue()
Next i6296
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 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 | //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 DoCreditMemoMod() { 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; BuildCreditMemoModRq(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; WalkCreditMemoModRs(responseMsgSet); } catch (Exception e) { MessageBox.Show(e.Message, "Error"); if (sessionBegun) { sessionManager.EndSession(); } if (connectionOpen) { sessionManager.CloseConnection(); } } } void BuildCreditMemoModRq(IMsgSetRequest requestMsgSet) { ICreditMemoMod CreditMemoModRq= requestMsgSet.AppendCreditMemoModRq(); //Set field value for TxnID CreditMemoModRq.TxnID.SetValue("200000-1011023419"); //Set field value for EditSequence CreditMemoModRq.EditSequence.SetValue("ab"); //Set field value for ListID CreditMemoModRq.CustomerRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.CustomerRef.FullName.SetValue("ab"); //Set field value for ListID CreditMemoModRq.ClassRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.ClassRef.FullName.SetValue("ab"); //Set field value for ListID CreditMemoModRq.ARAccountRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.ARAccountRef.FullName.SetValue("ab"); //Set field value for ListID CreditMemoModRq.TemplateRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.TemplateRef.FullName.SetValue("ab"); //Set field value for TxnDate CreditMemoModRq.TxnDate.SetValue(DateTime.Parse("12/15/2007")); //Set field value for RefNumber CreditMemoModRq.RefNumber.SetValue("ab"); //Set field value for Addr1 CreditMemoModRq.BillAddress.Addr1.SetValue("ab"); //Set field value for Addr2 CreditMemoModRq.BillAddress.Addr2.SetValue("ab"); //Set field value for Addr3 CreditMemoModRq.BillAddress.Addr3.SetValue("ab"); //Set field value for Addr4 CreditMemoModRq.BillAddress.Addr4.SetValue("ab"); //Set field value for Addr5 CreditMemoModRq.BillAddress.Addr5.SetValue("ab"); //Set field value for City CreditMemoModRq.BillAddress.City.SetValue("ab"); //Set field value for State CreditMemoModRq.BillAddress.State.SetValue("ab"); //Set field value for PostalCode CreditMemoModRq.BillAddress.PostalCode.SetValue("ab"); //Set field value for Country CreditMemoModRq.BillAddress.Country.SetValue("ab"); //Set field value for Note CreditMemoModRq.BillAddress.Note.SetValue("ab"); //Set field value for Addr1 CreditMemoModRq.ShipAddress.Addr1.SetValue("ab"); //Set field value for Addr2 CreditMemoModRq.ShipAddress.Addr2.SetValue("ab"); //Set field value for Addr3 CreditMemoModRq.ShipAddress.Addr3.SetValue("ab"); //Set field value for Addr4 CreditMemoModRq.ShipAddress.Addr4.SetValue("ab"); //Set field value for Addr5 CreditMemoModRq.ShipAddress.Addr5.SetValue("ab"); //Set field value for City CreditMemoModRq.ShipAddress.City.SetValue("ab"); //Set field value for State CreditMemoModRq.ShipAddress.State.SetValue("ab"); //Set field value for PostalCode CreditMemoModRq.ShipAddress.PostalCode.SetValue("ab"); //Set field value for Country CreditMemoModRq.ShipAddress.Country.SetValue("ab"); //Set field value for Note CreditMemoModRq.ShipAddress.Note.SetValue("ab"); //Set field value for IsPending CreditMemoModRq.IsPending.SetValue(true); //Set field value for PONumber CreditMemoModRq.PONumber.SetValue("ab"); //Set field value for ListID CreditMemoModRq.TermsRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.TermsRef.FullName.SetValue("ab"); //Set field value for DueDate CreditMemoModRq.DueDate.SetValue(DateTime.Parse("12/15/2007")); //Set field value for ListID CreditMemoModRq.SalesRepRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.SalesRepRef.FullName.SetValue("ab"); //Set field value for FOB CreditMemoModRq.FOB.SetValue("ab"); //Set field value for ShipDate CreditMemoModRq.ShipDate.SetValue(DateTime.Parse("12/15/2007")); //Set field value for ListID CreditMemoModRq.ShipMethodRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.ShipMethodRef.FullName.SetValue("ab"); //Set field value for ListID CreditMemoModRq.ItemSalesTaxRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.ItemSalesTaxRef.FullName.SetValue("ab"); //Set field value for Memo CreditMemoModRq.Memo.SetValue("ab"); //Set field value for ListID CreditMemoModRq.CustomerMsgRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.CustomerMsgRef.FullName.SetValue("ab"); //Set field value for IsToBePrinted CreditMemoModRq.IsToBePrinted.SetValue(true); //Set field value for IsToBeEmailed CreditMemoModRq.IsToBeEmailed.SetValue(true); //Set field value for IsTaxIncluded CreditMemoModRq.IsTaxIncluded.SetValue(true); //Set field value for ListID CreditMemoModRq.CustomerSalesTaxCodeRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoModRq.CustomerSalesTaxCodeRef.FullName.SetValue("ab"); //Set field value for Other CreditMemoModRq.Other.SetValue("ab"); //Set field value for ExchangeRate CreditMemoModRq.ExchangeRate.SetValue("IQBFloatType"); IORCreditMemoLineMod ORCreditMemoLineModListElement5857 =CreditMemoModRq.ORCreditMemoLineModList.Append(); string ORCreditMemoLineModListElementType5858 = "CreditMemoLineMod"; if (ORCreditMemoLineModListElementType5858 == "CreditMemoLineMod") { //Set field value for TxnLineID ORCreditMemoLineModListElement5857.CreditMemoLineMod.TxnLineID.SetValue("200000-1011023419"); //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineMod.ItemRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineMod.ItemRef.FullName.SetValue("ab"); //Set field value for Desc ORCreditMemoLineModListElement5857.CreditMemoLineMod.Desc.SetValue("ab"); //Set field value for Quantity ORCreditMemoLineModListElement5857.CreditMemoLineMod.Quantity.SetValue(2); //Set field value for UnitOfMeasure ORCreditMemoLineModListElement5857.CreditMemoLineMod.UnitOfMeasure.SetValue("ab"); //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineMod.OverrideUOMSetRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineMod.OverrideUOMSetRef.FullName.SetValue("ab"); string ORRatePriceLevelElementType5859 = "Rate"; if (ORRatePriceLevelElementType5859 == "Rate") { //Set field value for Rate ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORRatePriceLevel.Rate.SetValue(15.65); } if (ORRatePriceLevelElementType5859 == "RatePercent") { //Set field value for RatePercent ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORRatePriceLevel.RatePercent.SetValue(20.00); } if (ORRatePriceLevelElementType5859 == "PriceLevelRef") { //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab"); } //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineMod.ClassRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineMod.ClassRef.FullName.SetValue("ab"); //Set field value for Amount ORCreditMemoLineModListElement5857.CreditMemoLineMod.Amount.SetValue(10.01); //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineMod.InventorySiteRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineMod.InventorySiteRef.FullName.SetValue("ab"); //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineMod.InventorySiteLocationRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineMod.InventorySiteLocationRef.FullName.SetValue("ab"); string ORSerialLotNumberElementType5860 = "SerialNumber"; if (ORSerialLotNumberElementType5860 == "SerialNumber") { //Set field value for SerialNumber ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORSerialLotNumber.SerialNumber.SetValue("ab"); } if (ORSerialLotNumberElementType5860 == "LotNumber") { //Set field value for LotNumber ORCreditMemoLineModListElement5857.CreditMemoLineMod.ORSerialLotNumber.LotNumber.SetValue("ab"); } //Set field value for ServiceDate ORCreditMemoLineModListElement5857.CreditMemoLineMod.ServiceDate.SetValue(DateTime.Parse("12/15/2007")); //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineMod.SalesTaxCodeRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineMod.SalesTaxCodeRef.FullName.SetValue("ab"); //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineMod.OverrideItemAccountRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineMod.OverrideItemAccountRef.FullName.SetValue("ab"); //Set field value for Other1 ORCreditMemoLineModListElement5857.CreditMemoLineMod.Other1.SetValue("ab"); //Set field value for Other2 ORCreditMemoLineModListElement5857.CreditMemoLineMod.Other2.SetValue("ab"); } if (ORCreditMemoLineModListElementType5858 == "CreditMemoLineGroupMod") { //Set field value for TxnLineID ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.TxnLineID.SetValue("200000-1011023419"); //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.ItemGroupRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.ItemGroupRef.FullName.SetValue("ab"); //Set field value for Quantity ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.Quantity.SetValue(2); //Set field value for UnitOfMeasure ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.UnitOfMeasure.SetValue("ab"); //Set field value for ListID ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.OverrideUOMSetRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.OverrideUOMSetRef.FullName.SetValue("ab"); ICreditMemoLineMod CreditMemoLineMod5861=ORCreditMemoLineModListElement5857.CreditMemoLineGroupMod.CreditMemoLineModList.Append(); //Set field value for TxnLineID CreditMemoLineMod5861.TxnLineID.SetValue("200000-1011023419"); //Set field value for ListID CreditMemoLineMod5861.ItemRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoLineMod5861.ItemRef.FullName.SetValue("ab"); //Set field value for Desc CreditMemoLineMod5861.Desc.SetValue("ab"); //Set field value for Quantity CreditMemoLineMod5861.Quantity.SetValue(2); //Set field value for UnitOfMeasure CreditMemoLineMod5861.UnitOfMeasure.SetValue("ab"); //Set field value for ListID CreditMemoLineMod5861.OverrideUOMSetRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoLineMod5861.OverrideUOMSetRef.FullName.SetValue("ab"); string ORRatePriceLevelElementType5862 = "Rate"; if (ORRatePriceLevelElementType5862 == "Rate") { //Set field value for Rate CreditMemoLineMod5861.ORRatePriceLevel.Rate.SetValue(15.65); } if (ORRatePriceLevelElementType5862 == "RatePercent") { //Set field value for RatePercent CreditMemoLineMod5861.ORRatePriceLevel.RatePercent.SetValue(20.00); } if (ORRatePriceLevelElementType5862 == "PriceLevelRef") { //Set field value for ListID CreditMemoLineMod5861.ORRatePriceLevel.PriceLevelRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoLineMod5861.ORRatePriceLevel.PriceLevelRef.FullName.SetValue("ab"); } //Set field value for ListID CreditMemoLineMod5861.ClassRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoLineMod5861.ClassRef.FullName.SetValue("ab"); //Set field value for Amount CreditMemoLineMod5861.Amount.SetValue(10.01); //Set field value for ListID CreditMemoLineMod5861.InventorySiteRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoLineMod5861.InventorySiteRef.FullName.SetValue("ab"); //Set field value for ListID CreditMemoLineMod5861.InventorySiteLocationRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoLineMod5861.InventorySiteLocationRef.FullName.SetValue("ab"); string ORSerialLotNumberElementType5863 = "SerialNumber"; if (ORSerialLotNumberElementType5863 == "SerialNumber") { //Set field value for SerialNumber CreditMemoLineMod5861.ORSerialLotNumber.SerialNumber.SetValue("ab"); } if (ORSerialLotNumberElementType5863 == "LotNumber") { //Set field value for LotNumber CreditMemoLineMod5861.ORSerialLotNumber.LotNumber.SetValue("ab"); } //Set field value for ServiceDate CreditMemoLineMod5861.ServiceDate.SetValue(DateTime.Parse("12/15/2007")); //Set field value for ListID CreditMemoLineMod5861.SalesTaxCodeRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoLineMod5861.SalesTaxCodeRef.FullName.SetValue("ab"); //Set field value for ListID CreditMemoLineMod5861.OverrideItemAccountRef.ListID.SetValue("200000-1011023419"); //Set field value for FullName CreditMemoLineMod5861.OverrideItemAccountRef.FullName.SetValue("ab"); //Set field value for Other1 CreditMemoLineMod5861.Other1.SetValue("ab"); //Set field value for Other2 CreditMemoLineMod5861.Other2.SetValue("ab"); } //Set field value for IncludeRetElementList //May create more than one of these if needed CreditMemoModRq.IncludeRetElementList.Add("ab"); } void WalkCreditMemoModRs(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.rtCreditMemoModRs) { //upcast to more specific type here, this is safe because we checked with response.Type check above ICreditMemoRet CreditMemoRet = (ICreditMemoRet)response.Detail; WalkCreditMemoRet(CreditMemoRet); } } } } } void WalkCreditMemoRet(ICreditMemoRet CreditMemoRet) { if (CreditMemoRet == null) return; //Go through all the elements of ICreditMemoRet //Get value of TxnID string TxnID5864 = (string)CreditMemoRet.TxnID.GetValue(); //Get value of TimeCreated DateTime TimeCreated5865 = (DateTime)CreditMemoRet.TimeCreated.GetValue(); //Get value of TimeModified DateTime TimeModified5866 = (DateTime)CreditMemoRet.TimeModified.GetValue(); //Get value of EditSequence string EditSequence5867 = (string)CreditMemoRet.EditSequence.GetValue(); //Get value of TxnNumber if (CreditMemoRet.TxnNumber != null) { int TxnNumber5868 = (int)CreditMemoRet.TxnNumber.GetValue(); } //Get value of ListID if (CreditMemoRet.CustomerRef.ListID != null) { string ListID5869 = (string)CreditMemoRet.CustomerRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.CustomerRef.FullName != null) { string FullName5870 = (string)CreditMemoRet.CustomerRef.FullName.GetValue(); } if (CreditMemoRet.ClassRef != null) { //Get value of ListID if (CreditMemoRet.ClassRef.ListID != null) { string ListID5871 = (string)CreditMemoRet.ClassRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.ClassRef.FullName != null) { string FullName5872 = (string)CreditMemoRet.ClassRef.FullName.GetValue(); } } if (CreditMemoRet.ARAccountRef != null) { //Get value of ListID if (CreditMemoRet.ARAccountRef.ListID != null) { string ListID5873 = (string)CreditMemoRet.ARAccountRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.ARAccountRef.FullName != null) { string FullName5874 = (string)CreditMemoRet.ARAccountRef.FullName.GetValue(); } } if (CreditMemoRet.TemplateRef != null) { //Get value of ListID if (CreditMemoRet.TemplateRef.ListID != null) { string ListID5875 = (string)CreditMemoRet.TemplateRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.TemplateRef.FullName != null) { string FullName5876 = (string)CreditMemoRet.TemplateRef.FullName.GetValue(); } } //Get value of TxnDate DateTime TxnDate5877 = (DateTime)CreditMemoRet.TxnDate.GetValue(); //Get value of RefNumber if (CreditMemoRet.RefNumber != null) { string RefNumber5878 = (string)CreditMemoRet.RefNumber.GetValue(); } if (CreditMemoRet.BillAddress != null) { //Get value of Addr1 if (CreditMemoRet.BillAddress.Addr1 != null) { string Addr15879 = (string)CreditMemoRet.BillAddress.Addr1.GetValue(); } //Get value of Addr2 if (CreditMemoRet.BillAddress.Addr2 != null) { string Addr25880 = (string)CreditMemoRet.BillAddress.Addr2.GetValue(); } //Get value of Addr3 if (CreditMemoRet.BillAddress.Addr3 != null) { string Addr35881 = (string)CreditMemoRet.BillAddress.Addr3.GetValue(); } //Get value of Addr4 if (CreditMemoRet.BillAddress.Addr4 != null) { string Addr45882 = (string)CreditMemoRet.BillAddress.Addr4.GetValue(); } //Get value of Addr5 if (CreditMemoRet.BillAddress.Addr5 != null) { string Addr55883 = (string)CreditMemoRet.BillAddress.Addr5.GetValue(); } //Get value of City if (CreditMemoRet.BillAddress.City != null) { string City5884 = (string)CreditMemoRet.BillAddress.City.GetValue(); } //Get value of State if (CreditMemoRet.BillAddress.State != null) { string State5885 = (string)CreditMemoRet.BillAddress.State.GetValue(); } //Get value of PostalCode if (CreditMemoRet.BillAddress.PostalCode != null) { string PostalCode5886 = (string)CreditMemoRet.BillAddress.PostalCode.GetValue(); } //Get value of Country if (CreditMemoRet.BillAddress.Country != null) { string Country5887 = (string)CreditMemoRet.BillAddress.Country.GetValue(); } //Get value of Note if (CreditMemoRet.BillAddress.Note != null) { string Note5888 = (string)CreditMemoRet.BillAddress.Note.GetValue(); } } if (CreditMemoRet.BillAddressBlock != null) { //Get value of Addr1 if (CreditMemoRet.BillAddressBlock.Addr1 != null) { string Addr15889 = (string)CreditMemoRet.BillAddressBlock.Addr1.GetValue(); } //Get value of Addr2 if (CreditMemoRet.BillAddressBlock.Addr2 != null) { string Addr25890 = (string)CreditMemoRet.BillAddressBlock.Addr2.GetValue(); } //Get value of Addr3 if (CreditMemoRet.BillAddressBlock.Addr3 != null) { string Addr35891 = (string)CreditMemoRet.BillAddressBlock.Addr3.GetValue(); } //Get value of Addr4 if (CreditMemoRet.BillAddressBlock.Addr4 != null) { string Addr45892 = (string)CreditMemoRet.BillAddressBlock.Addr4.GetValue(); } //Get value of Addr5 if (CreditMemoRet.BillAddressBlock.Addr5 != null) { string Addr55893 = (string)CreditMemoRet.BillAddressBlock.Addr5.GetValue(); } } if (CreditMemoRet.ShipAddress != null) { //Get value of Addr1 if (CreditMemoRet.ShipAddress.Addr1 != null) { string Addr15894 = (string)CreditMemoRet.ShipAddress.Addr1.GetValue(); } //Get value of Addr2 if (CreditMemoRet.ShipAddress.Addr2 != null) { string Addr25895 = (string)CreditMemoRet.ShipAddress.Addr2.GetValue(); } //Get value of Addr3 if (CreditMemoRet.ShipAddress.Addr3 != null) { string Addr35896 = (string)CreditMemoRet.ShipAddress.Addr3.GetValue(); } //Get value of Addr4 if (CreditMemoRet.ShipAddress.Addr4 != null) { string Addr45897 = (string)CreditMemoRet.ShipAddress.Addr4.GetValue(); } //Get value of Addr5 if (CreditMemoRet.ShipAddress.Addr5 != null) { string Addr55898 = (string)CreditMemoRet.ShipAddress.Addr5.GetValue(); } //Get value of City if (CreditMemoRet.ShipAddress.City != null) { string City5899 = (string)CreditMemoRet.ShipAddress.City.GetValue(); } //Get value of State if (CreditMemoRet.ShipAddress.State != null) { string State5900 = (string)CreditMemoRet.ShipAddress.State.GetValue(); } //Get value of PostalCode if (CreditMemoRet.ShipAddress.PostalCode != null) { string PostalCode5901 = (string)CreditMemoRet.ShipAddress.PostalCode.GetValue(); } //Get value of Country if (CreditMemoRet.ShipAddress.Country != null) { string Country5902 = (string)CreditMemoRet.ShipAddress.Country.GetValue(); } //Get value of Note if (CreditMemoRet.ShipAddress.Note != null) { string Note5903 = (string)CreditMemoRet.ShipAddress.Note.GetValue(); } } if (CreditMemoRet.ShipAddressBlock != null) { //Get value of Addr1 if (CreditMemoRet.ShipAddressBlock.Addr1 != null) { string Addr16.04 = (string)CreditMemoRet.ShipAddressBlock.Addr1.GetValue(); } //Get value of Addr2 if (CreditMemoRet.ShipAddressBlock.Addr2 != null) { string Addr25905 = (string)CreditMemoRet.ShipAddressBlock.Addr2.GetValue(); } //Get value of Addr3 if (CreditMemoRet.ShipAddressBlock.Addr3 != null) { string Addr35906 = (string)CreditMemoRet.ShipAddressBlock.Addr3.GetValue(); } //Get value of Addr4 if (CreditMemoRet.ShipAddressBlock.Addr4 != null) { string Addr45907 = (string)CreditMemoRet.ShipAddressBlock.Addr4.GetValue(); } //Get value of Addr5 if (CreditMemoRet.ShipAddressBlock.Addr5 != null) { string Addr55908 = (string)CreditMemoRet.ShipAddressBlock.Addr5.GetValue(); } } //Get value of IsPending if (CreditMemoRet.IsPending != null) { bool IsPending5909 = (bool)CreditMemoRet.IsPending.GetValue(); } //Get value of PONumber if (CreditMemoRet.PONumber != null) { string PONumber5910 = (string)CreditMemoRet.PONumber.GetValue(); } if (CreditMemoRet.TermsRef != null) { //Get value of ListID if (CreditMemoRet.TermsRef.ListID != null) { string ListID5911 = (string)CreditMemoRet.TermsRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.TermsRef.FullName != null) { string FullName5912 = (string)CreditMemoRet.TermsRef.FullName.GetValue(); } } //Get value of DueDate if (CreditMemoRet.DueDate != null) { DateTime DueDate5913 = (DateTime)CreditMemoRet.DueDate.GetValue(); } if (CreditMemoRet.SalesRepRef != null) { //Get value of ListID if (CreditMemoRet.SalesRepRef.ListID != null) { string ListID5914 = (string)CreditMemoRet.SalesRepRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.SalesRepRef.FullName != null) { string FullName5915 = (string)CreditMemoRet.SalesRepRef.FullName.GetValue(); } } //Get value of FOB if (CreditMemoRet.FOB != null) { string FOB5916 = (string)CreditMemoRet.FOB.GetValue(); } //Get value of ShipDate if (CreditMemoRet.ShipDate != null) { DateTime ShipDate5917 = (DateTime)CreditMemoRet.ShipDate.GetValue(); } if (CreditMemoRet.ShipMethodRef != null) { //Get value of ListID if (CreditMemoRet.ShipMethodRef.ListID != null) { string ListID5918 = (string)CreditMemoRet.ShipMethodRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.ShipMethodRef.FullName != null) { string FullName5919 = (string)CreditMemoRet.ShipMethodRef.FullName.GetValue(); } } //Get value of Subtotal if (CreditMemoRet.Subtotal != null) { double Subtotal5920 = (double)CreditMemoRet.Subtotal.GetValue(); } if (CreditMemoRet.ItemSalesTaxRef != null) { //Get value of ListID if (CreditMemoRet.ItemSalesTaxRef.ListID != null) { string ListID5921 = (string)CreditMemoRet.ItemSalesTaxRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.ItemSalesTaxRef.FullName != null) { string FullName5922 = (string)CreditMemoRet.ItemSalesTaxRef.FullName.GetValue(); } } //Get value of SalesTaxPercentage if (CreditMemoRet.SalesTaxPercentage != null) { double SalesTaxPercentage5923 = (double)CreditMemoRet.SalesTaxPercentage.GetValue(); } //Get value of SalesTaxTotal if (CreditMemoRet.SalesTaxTotal != null) { double SalesTaxTotal5924 = (double)CreditMemoRet.SalesTaxTotal.GetValue(); } //Get value of TotalAmount if (CreditMemoRet.TotalAmount != null) { double TotalAmount5925 = (double)CreditMemoRet.TotalAmount.GetValue(); } //Get value of CreditRemaining if (CreditMemoRet.CreditRemaining != null) { double CreditRemaining5926 = (double)CreditMemoRet.CreditRemaining.GetValue(); } if (CreditMemoRet.CurrencyRef != null) { //Get value of ListID if (CreditMemoRet.CurrencyRef.ListID != null) { string ListID5927 = (string)CreditMemoRet.CurrencyRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.CurrencyRef.FullName != null) { string FullName5928 = (string)CreditMemoRet.CurrencyRef.FullName.GetValue(); } } //Get value of ExchangeRate if (CreditMemoRet.ExchangeRate != null) { IQBFloatType ExchangeRate5929 = (IQBFloatType)CreditMemoRet.ExchangeRate.GetValue(); } //Get value of CreditRemainingInHomeCurrency if (CreditMemoRet.CreditRemainingInHomeCurrency != null) { double CreditRemainingInHomeCurrency5930 = (double)CreditMemoRet.CreditRemainingInHomeCurrency.GetValue(); } //Get value of Memo if (CreditMemoRet.Memo != null) { string Memo5931 = (string)CreditMemoRet.Memo.GetValue(); } if (CreditMemoRet.CustomerMsgRef != null) { //Get value of ListID if (CreditMemoRet.CustomerMsgRef.ListID != null) { string ListID5932 = (string)CreditMemoRet.CustomerMsgRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.CustomerMsgRef.FullName != null) { string FullName5933 = (string)CreditMemoRet.CustomerMsgRef.FullName.GetValue(); } } //Get value of IsToBePrinted if (CreditMemoRet.IsToBePrinted != null) { bool IsToBePrinted5934 = (bool)CreditMemoRet.IsToBePrinted.GetValue(); } //Get value of IsToBeEmailed if (CreditMemoRet.IsToBeEmailed != null) { bool IsToBeEmailed5935 = (bool)CreditMemoRet.IsToBeEmailed.GetValue(); } //Get value of IsTaxIncluded if (CreditMemoRet.IsTaxIncluded != null) { bool IsTaxIncluded5936 = (bool)CreditMemoRet.IsTaxIncluded.GetValue(); } if (CreditMemoRet.CustomerSalesTaxCodeRef != null) { //Get value of ListID if (CreditMemoRet.CustomerSalesTaxCodeRef.ListID != null) { string ListID5937 = (string)CreditMemoRet.CustomerSalesTaxCodeRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoRet.CustomerSalesTaxCodeRef.FullName != null) { string FullName5938 = (string)CreditMemoRet.CustomerSalesTaxCodeRef.FullName.GetValue(); } } //Get value of Other if (CreditMemoRet.Other != null) { string Other5939 = (string)CreditMemoRet.Other.GetValue(); } //Get value of ExternalGUID if (CreditMemoRet.ExternalGUID != null) { string ExternalGUID5940 = (string)CreditMemoRet.ExternalGUID.GetValue(); } if (CreditMemoRet.LinkedTxnList != null) { for (int i5941 = 0; i5941 < CreditMemoRet.LinkedTxnList.Count; i5941++) { ILinkedTxn LinkedTxn = CreditMemoRet.LinkedTxnList.GetAt(i5941); //Get value of TxnID string TxnID5942 = (string)LinkedTxn.TxnID.GetValue(); //Get value of TxnType ENTxnType TxnType5943 = (ENTxnType)LinkedTxn.TxnType.GetValue(); //Get value of TxnDate DateTime TxnDate5944 = (DateTime)LinkedTxn.TxnDate.GetValue(); //Get value of RefNumber if (LinkedTxn.RefNumber != null) { string RefNumber5945 = (string)LinkedTxn.RefNumber.GetValue(); } //Get value of LinkType if (LinkedTxn.LinkType != null) { ENLinkType LinkType5946 = (ENLinkType)LinkedTxn.LinkType.GetValue(); } //Get value of Amount double Amount5947 = (double)LinkedTxn.Amount.GetValue(); } } if (CreditMemoRet.ORCreditMemoLineRetList != null) { for (int i5948 = 0; i5948 < CreditMemoRet.ORCreditMemoLineRetList.Count; i5948++) { IORCreditMemoLineRet ORCreditMemoLineRet5949 = CreditMemoRet.ORCreditMemoLineRetList.GetAt(i5948); if (ORCreditMemoLineRet5949.CreditMemoLineRet != null) { if (ORCreditMemoLineRet5949.CreditMemoLineRet != null) { //Get value of TxnLineID string TxnLineID5950 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.TxnLineID.GetValue(); if (ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef != null) { //Get value of ListID if (ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef.ListID != null) { string ListID5951 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef.FullName != null) { string FullName5952 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ItemRef.FullName.GetValue(); } } //Get value of Desc if (ORCreditMemoLineRet5949.CreditMemoLineRet.Desc != null) { string Desc5953 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.Desc.GetValue(); } //Get value of Quantity if (ORCreditMemoLineRet5949.CreditMemoLineRet.Quantity != null) { int Quantity5954 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.Quantity.GetValue(); } //Get value of UnitOfMeasure if (ORCreditMemoLineRet5949.CreditMemoLineRet.UnitOfMeasure != null) { string UnitOfMeasure5955 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.UnitOfMeasure.GetValue(); } if (ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef != null) { //Get value of ListID if (ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef.ListID != null) { string ListID5956 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef.FullName != null) { string FullName5957 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue(); } } if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate != null) { if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.Rate != null) { //Get value of Rate if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.Rate != null) { double Rate5959 = (double)ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.Rate.GetValue(); } } if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.RatePercent != null) { //Get value of RatePercent if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.RatePercent != null) { double RatePercent5960 = (double)ORCreditMemoLineRet5949.CreditMemoLineRet.ORRate.RatePercent.GetValue(); } } } if (ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef != null) { //Get value of ListID if (ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef.ListID != null) { string ListID5961 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef.FullName != null) { string FullName5962 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ClassRef.FullName.GetValue(); } } //Get value of Amount if (ORCreditMemoLineRet5949.CreditMemoLineRet.Amount != null) { double Amount5963 = (double)ORCreditMemoLineRet5949.CreditMemoLineRet.Amount.GetValue(); } if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef != null) { //Get value of ListID if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef.ListID != null) { string ListID5964 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef.FullName != null) { string FullName5965 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteRef.FullName.GetValue(); } } if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef != null) { //Get value of ListID if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef.ListID != null) { string ListID5966 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef.FullName != null) { string FullName5967 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue(); } } if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber != null) { if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null) { //Get value of SerialNumber if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null) { string SerialNumber5969 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue(); } } if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.LotNumber != null) { //Get value of LotNumber if (ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.LotNumber != null) { string LotNumber5970 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue(); } } } //Get value of ExpirationDateForSerialLotNumber if (ORCreditMemoLineRet5949.CreditMemoLineRet.ExpirationDateForSerialLotNumber != null) { string ExpDate = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.ExpirationDateForSerialLotNumber.GetValue(); } //Get value of ServiceDate if (ORCreditMemoLineRet5949.CreditMemoLineRet.ServiceDate != null) { DateTime ServiceDate5971 = (DateTime)ORCreditMemoLineRet5949.CreditMemoLineRet.ServiceDate.GetValue(); } if (ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef != null) { //Get value of ListID if (ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef.ListID != null) { string ListID5972 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef.FullName != null) { string FullName5973 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue(); } } //Get value of Other1 if (ORCreditMemoLineRet5949.CreditMemoLineRet.Other1 != null) { string Other15974 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.Other1.GetValue(); } //Get value of Other2 if (ORCreditMemoLineRet5949.CreditMemoLineRet.Other2 != null) { string Other25975 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.Other2.GetValue(); } if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo != null) { //Get value of CreditCardNumber string CreditCardNumber5976 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue(); //Get value of ExpirationMonth int ExpirationMonth5977 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue(); //Get value of ExpirationYear int ExpirationYear5978 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue(); //Get value of NameOnCard string NameOnCard5979 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue(); //Get value of CreditCardAddress if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress != null) { string CreditCardAddress5980 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue(); } //Get value of CreditCardPostalCode if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode != null) { string CreditCardPostalCode5981 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue(); } //Get value of CommercialCardCode if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode != null) { string CommercialCardCode5982 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue(); } //Get value of TransactionMode if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode != null) { ENTransactionMode TransactionMode5983 = (ENTransactionMode)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue(); } //Get value of CreditCardTxnType if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType != null) { ENCreditCardTxnType CreditCardTxnType5984 = (ENCreditCardTxnType)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue(); } //Get value of ResultCode int ResultCode5985 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue(); //Get value of ResultMessage string ResultMessage5986 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue(); //Get value of CreditCardTransID string CreditCardTransID5987 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue(); //Get value of MerchantAccountNumber string MerchantAccountNumber5988 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue(); //Get value of AuthorizationCode if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode != null) { string AuthorizationCode5989 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue(); } //Get value of AVSStreet if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet != null) { ENAVSStreet AVSStreet5990 = (ENAVSStreet)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue(); } //Get value of AVSZip if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip != null) { ENAVSZip AVSZip5991 = (ENAVSZip)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue(); } //Get value of CardSecurityCodeMatch if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch != null) { ENCardSecurityCodeMatch CardSecurityCodeMatch5992 = (ENCardSecurityCodeMatch)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue(); } //Get value of ReconBatchID if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID != null) { string ReconBatchID5993 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue(); } //Get value of PaymentGroupingCode if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode != null) { int PaymentGroupingCode5994 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue(); } //Get value of PaymentStatus ENPaymentStatus PaymentStatus5995 = (ENPaymentStatus)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue(); //Get value of TxnAuthorizationTime DateTime TxnAuthorizationTime5996 = (DateTime)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue(); //Get value of TxnAuthorizationStamp if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp != null) { int TxnAuthorizationStamp5997 = (int)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue(); } //Get value of ClientTransID if (ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID != null) { string ClientTransID5998 = (string)ORCreditMemoLineRet5949.CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue(); } } if (ORCreditMemoLineRet5949.CreditMemoLineRet.DataExtRetList != null) { for (int i5999 = 0; i5999 < ORCreditMemoLineRet5949.CreditMemoLineRet.DataExtRetList.Count; i5999++) { IDataExtRet DataExtRet = ORCreditMemoLineRet5949.CreditMemoLineRet.DataExtRetList.GetAt(i5999); //Get value of OwnerID if (DataExtRet.OwnerID != null) { string OwnerID6000 = (string)DataExtRet.OwnerID.GetValue(); } //Get value of DataExtName string DataExtName6001 = (string)DataExtRet.DataExtName.GetValue(); //Get value of DataExtType ENDataExtType DataExtType6002 = (ENDataExtType)DataExtRet.DataExtType.GetValue(); //Get value of DataExtValue string DataExtValue6003 = (string)DataExtRet.DataExtValue.GetValue(); } } } } if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet != null) { if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet != null) { //Get value of TxnLineID string TxnLineID6004 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.TxnLineID.GetValue(); //Get value of ListID if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.ItemGroupRef.ListID != null) { string ListID6005 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.ItemGroupRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.ItemGroupRef.FullName != null) { string FullName6006 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.ItemGroupRef.FullName.GetValue(); } //Get value of Desc if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.Desc != null) { string Desc6007 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.Desc.GetValue(); } //Get value of Quantity if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.Quantity != null) { int Quantity6008 = (int)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.Quantity.GetValue(); } //Get value of UnitOfMeasure if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.UnitOfMeasure != null) { string UnitOfMeasure6009 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.UnitOfMeasure.GetValue(); } if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef != null) { //Get value of ListID if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID != null) { string ListID6010 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef.ListID.GetValue(); } //Get value of FullName if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName != null) { string FullName6011 = (string)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.OverrideUOMSetRef.FullName.GetValue(); } } //Get value of IsPrintItemsInGroup bool IsPrintItemsInGroup6012 = (bool)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.IsPrintItemsInGroup.GetValue(); //Get value of TotalAmount double TotalAmount6013 = (double)ORCreditMemoLineRet5949.CreditMemoLineGroupRet.TotalAmount.GetValue(); if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.CreditMemoLineRetList != null) { for (int i6014 = 0; i6014 < ORCreditMemoLineRet5949.CreditMemoLineGroupRet.CreditMemoLineRetList.Count; i6014++) { ICreditMemoLineRet CreditMemoLineRet = ORCreditMemoLineRet5949.CreditMemoLineGroupRet.CreditMemoLineRetList.GetAt(i6014); //Get value of TxnLineID string TxnLineID6015 = (string)CreditMemoLineRet.TxnLineID.GetValue(); if (CreditMemoLineRet.ItemRef != null) { //Get value of ListID if (CreditMemoLineRet.ItemRef.ListID != null) { string ListID6016 = (string)CreditMemoLineRet.ItemRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.ItemRef.FullName != null) { string FullName6017 = (string)CreditMemoLineRet.ItemRef.FullName.GetValue(); } } //Get value of Desc if (CreditMemoLineRet.Desc != null) { string Desc6018 = (string)CreditMemoLineRet.Desc.GetValue(); } //Get value of Quantity if (CreditMemoLineRet.Quantity != null) { int Quantity6019 = (int)CreditMemoLineRet.Quantity.GetValue(); } //Get value of UnitOfMeasure if (CreditMemoLineRet.UnitOfMeasure != null) { string UnitOfMeasure6020 = (string)CreditMemoLineRet.UnitOfMeasure.GetValue(); } if (CreditMemoLineRet.OverrideUOMSetRef != null) { //Get value of ListID if (CreditMemoLineRet.OverrideUOMSetRef.ListID != null) { string ListID6021 = (string)CreditMemoLineRet.OverrideUOMSetRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.OverrideUOMSetRef.FullName != null) { string FullName6022 = (string)CreditMemoLineRet.OverrideUOMSetRef.FullName.GetValue(); } } if (CreditMemoLineRet.ORRate != null) { if (CreditMemoLineRet.ORRate.Rate != null) { //Get value of Rate if (CreditMemoLineRet.ORRate.Rate != null) { double Rate6024 = (double)CreditMemoLineRet.ORRate.Rate.GetValue(); } } if (CreditMemoLineRet.ORRate.RatePercent != null) { //Get value of RatePercent if (CreditMemoLineRet.ORRate.RatePercent != null) { double RatePercent6025 = (double)CreditMemoLineRet.ORRate.RatePercent.GetValue(); } } } if (CreditMemoLineRet.ClassRef != null) { //Get value of ListID if (CreditMemoLineRet.ClassRef.ListID != null) { string ListID6026 = (string)CreditMemoLineRet.ClassRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.ClassRef.FullName != null) { string FullName6027 = (string)CreditMemoLineRet.ClassRef.FullName.GetValue(); } } //Get value of Amount if (CreditMemoLineRet.Amount != null) { double Amount6028 = (double)CreditMemoLineRet.Amount.GetValue(); } if (CreditMemoLineRet.InventorySiteRef != null) { //Get value of ListID if (CreditMemoLineRet.InventorySiteRef.ListID != null) { string ListID6029 = (string)CreditMemoLineRet.InventorySiteRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.InventorySiteRef.FullName != null) { string FullName6030 = (string)CreditMemoLineRet.InventorySiteRef.FullName.GetValue(); } } if (CreditMemoLineRet.InventorySiteLocationRef != null) { //Get value of ListID if (CreditMemoLineRet.InventorySiteLocationRef.ListID != null) { string ListID6031 = (string)CreditMemoLineRet.InventorySiteLocationRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.InventorySiteLocationRef.FullName != null) { string FullName6032 = (string)CreditMemoLineRet.InventorySiteLocationRef.FullName.GetValue(); } } if (CreditMemoLineRet.ORSerialLotNumber != null) { if (CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null) { //Get value of SerialNumber if (CreditMemoLineRet.ORSerialLotNumber.SerialNumber != null) { string SerialNumber6034 = (string)CreditMemoLineRet.ORSerialLotNumber.SerialNumber.GetValue(); } } if (CreditMemoLineRet.ORSerialLotNumber.LotNumber != null) { //Get value of LotNumber if (CreditMemoLineRet.ORSerialLotNumber.LotNumber != null) { string LotNumber6035 = (string)CreditMemoLineRet.ORSerialLotNumber.LotNumber.GetValue(); } } } //Get value of ExpirationDateForSerialLotNumber if (CreditMemoLineRet.ExpirationDateForSerialLotNumber != null) { string ExpDate = (string)CreditMemoLineRet.ServiceDate.GetValue(); } //Get value of ServiceDate if (CreditMemoLineRet.ServiceDate != null) { DateTime ServiceDate6036 = (DateTime)CreditMemoLineRet.ServiceDate.GetValue(); } if (CreditMemoLineRet.SalesTaxCodeRef != null) { //Get value of ListID if (CreditMemoLineRet.SalesTaxCodeRef.ListID != null) { string ListID6037 = (string)CreditMemoLineRet.SalesTaxCodeRef.ListID.GetValue(); } //Get value of FullName if (CreditMemoLineRet.SalesTaxCodeRef.FullName != null) { string FullName6038 = (string)CreditMemoLineRet.SalesTaxCodeRef.FullName.GetValue(); } } //Get value of Other1 if (CreditMemoLineRet.Other1 != null) { string Other16039 = (string)CreditMemoLineRet.Other1.GetValue(); } //Get value of Other2 if (CreditMemoLineRet.Other2 != null) { string Other26040 = (string)CreditMemoLineRet.Other2.GetValue(); } if (CreditMemoLineRet.CreditCardTxnInfo != null) { //Get value of CreditCardNumber string CreditCardNumber6041 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardNumber.GetValue(); //Get value of ExpirationMonth int ExpirationMonth6042 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationMonth.GetValue(); //Get value of ExpirationYear int ExpirationYear6043 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.ExpirationYear.GetValue(); //Get value of NameOnCard string NameOnCard6044 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.NameOnCard.GetValue(); //Get value of CreditCardAddress if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress != null) { string CreditCardAddress6045 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardAddress.GetValue(); } //Get value of CreditCardPostalCode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode != null) { string CreditCardPostalCode6046 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardPostalCode.GetValue(); } //Get value of CommercialCardCode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode != null) { string CommercialCardCode6047 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CommercialCardCode.GetValue(); } //Get value of TransactionMode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode != null) { ENTransactionMode TransactionMode6048 = (ENTransactionMode)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.TransactionMode.GetValue(); } //Get value of CreditCardTxnType if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType != null) { ENCreditCardTxnType CreditCardTxnType6049 = (ENCreditCardTxnType)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnInputInfo.CreditCardTxnType.GetValue(); } //Get value of ResultCode int ResultCode6050 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultCode.GetValue(); //Get value of ResultMessage string ResultMessage6051 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ResultMessage.GetValue(); //Get value of CreditCardTransID string CreditCardTransID6052 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CreditCardTransID.GetValue(); //Get value of MerchantAccountNumber string MerchantAccountNumber6053 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.MerchantAccountNumber.GetValue(); //Get value of AuthorizationCode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode != null) { string AuthorizationCode6054 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AuthorizationCode.GetValue(); } //Get value of AVSStreet if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet != null) { ENAVSStreet AVSStreet6055 = (ENAVSStreet)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSStreet.GetValue(); } //Get value of AVSZip if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip != null) { ENAVSZip AVSZip6056 = (ENAVSZip)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.AVSZip.GetValue(); } //Get value of CardSecurityCodeMatch if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch != null) { ENCardSecurityCodeMatch CardSecurityCodeMatch6057 = (ENCardSecurityCodeMatch)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.CardSecurityCodeMatch.GetValue(); } //Get value of ReconBatchID if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID != null) { string ReconBatchID6058 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ReconBatchID.GetValue(); } //Get value of PaymentGroupingCode if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode != null) { int PaymentGroupingCode6059 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentGroupingCode.GetValue(); } //Get value of PaymentStatus ENPaymentStatus PaymentStatus6060 = (ENPaymentStatus)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.PaymentStatus.GetValue(); //Get value of TxnAuthorizationTime DateTime TxnAuthorizationTime6061 = (DateTime)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationTime.GetValue(); //Get value of TxnAuthorizationStamp if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp != null) { int TxnAuthorizationStamp6062 = (int)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.TxnAuthorizationStamp.GetValue(); } //Get value of ClientTransID if (CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID != null) { string ClientTransID6063 = (string)CreditMemoLineRet.CreditCardTxnInfo.CreditCardTxnResultInfo.ClientTransID.GetValue(); } } if (CreditMemoLineRet.DataExtRetList != null) { for (int i6064 = 0; i6064 < CreditMemoLineRet.DataExtRetList.Count; i6064++) { IDataExtRet DataExtRet = CreditMemoLineRet.DataExtRetList.GetAt(i6064); //Get value of OwnerID if (DataExtRet.OwnerID != null) { string OwnerID6065 = (string)DataExtRet.OwnerID.GetValue(); } //Get value of DataExtName string DataExtName6066 = (string)DataExtRet.DataExtName.GetValue(); //Get value of DataExtType ENDataExtType DataExtType6067 = (ENDataExtType)DataExtRet.DataExtType.GetValue(); //Get value of DataExtValue string DataExtValue6068 = (string)DataExtRet.DataExtValue.GetValue(); } } } } if (ORCreditMemoLineRet5949.CreditMemoLineGroupRet.DataExtRetList != null) { for (int i6069 = 0; i6069 < ORCreditMemoLineRet5949.CreditMemoLineGroupRet.DataExtRetList.Count; i6069++) { IDataExtRet DataExtRet = ORCreditMemoLineRet5949.CreditMemoLineGroupRet.DataExtRetList.GetAt(i6069); //Get value of OwnerID if (DataExtRet.OwnerID != null) { string OwnerID6070 = (string)DataExtRet.OwnerID.GetValue(); } //Get value of DataExtName string DataExtName6071 = (string)DataExtRet.DataExtName.GetValue(); //Get value of DataExtType ENDataExtType DataExtType6072 = (ENDataExtType)DataExtRet.DataExtType.GetValue(); //Get value of DataExtValue string DataExtValue6073 = (string)DataExtRet.DataExtValue.GetValue(); } } } } } } if (CreditMemoRet.DataExtRetList != null) { for (int i6074 = 0; i6074 < CreditMemoRet.DataExtRetList.Count; i6074++) { IDataExtRet DataExtRet = CreditMemoRet.DataExtRetList.GetAt(i6074); //Get value of OwnerID if (DataExtRet.OwnerID != null) { string OwnerID6075 = (string)DataExtRet.OwnerID.GetValue(); } //Get value of DataExtName string DataExtName6076 = (string)DataExtRet.DataExtName.GetValue(); //Get value of DataExtType ENDataExtType DataExtType6077 = (ENDataExtType)DataExtRet.DataExtType.GetValue(); //Get value of DataExtValue string DataExtValue6078 = (string)DataExtRet.DataExtValue.GetValue(); } } } } } |