public void ReviseCheckoutStatus()
 {
     ReviseCheckoutStatusCall api = new ReviseCheckoutStatusCall(this.apiContext);
     TransactionType tran = null;
     if( TestData.SellerTransactions != null && TestData.SellerTransactions.Count > 0 )
     tran = TestData.SellerTransactions[0];
     // Make API call.
     ApiException gotException = null;
     // Negative test.
     try
     {
         if( tran != null )
         {
             api.ItemID = tran.Item.ItemID;
             api.TransactionID = tran.TransactionID;
             api.CheckoutStatus = CompleteStatusCodeType.Incomplete;
         }
         api.Execute();
     }
     catch(ApiException ex)
     {
         gotException = ex;
     }
     if( gotException != null )
     Assert.IsNull(tran);
 }
		private void BtnReviseCheckoutStatus_Click(object sender, System.EventArgs e)
		{
			try
			{
				TxtStatus.Text = "";

				ReviseCheckoutStatusCall apicall = new ReviseCheckoutStatusCall(Context);
				
				apicall.PaymentMethodUsed = (BuyerPaymentMethodCodeType) Enum.Parse(typeof(BuyerPaymentMethodCodeType), CboPaymentMethod.SelectedItem.ToString());
				if (TxtAmountPaid.Text != String.Empty)
				{
					apicall.AmountPaid = new AmountType();
					apicall.AmountPaid.currencyID = CurrencyUtility.GetDefaultCurrencyCodeType(Context.Site);
					apicall.AmountPaid.Value = Convert.ToDouble(TxtAmountPaid.Text);
				}

				apicall.ShippingService = CboShipSvc.SelectedItem.ToString();

				if (OptItem.Checked)
				{
					apicall.ReviseCheckoutStatus(TxtItemId.Text, TxtTransactionId.Text,(CompleteStatusCodeType) Enum.Parse(typeof(CompleteStatusCodeType), CboCheckoutStatus.SelectedItem.ToString()));


				} 
				else
				{
					apicall.ReviseCheckoutStatus(TxtOrderId.Text,(CompleteStatusCodeType) Enum.Parse(typeof(CompleteStatusCodeType), CboCheckoutStatus.SelectedItem.ToString()));

				}
				TxtStatus.Text = apicall.ApiResponse.Ack.ToString();

			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.Message);
			}

		}