コード例 #1
0
		public void SendInvoice()
		{
			Assert.IsNotNull(TestData.NewItem, "Failed because no item available -- requires successful AddItem test");
			//
			SendInvoiceCall api = new SendInvoiceCall(this.apiContext);
			SendInvoiceRequestType req = new SendInvoiceRequestType();
			api.CheckoutInstructions = "SDK checkout instruction.";
			api.EmailCopyToSeller = true; req.EmailCopyToSellerSpecified = true;
			api.InsuranceFee = new AmountType(); api.InsuranceFee.Value = 2.0; api.InsuranceFee.currencyID = CurrencyCodeType.USD;
			api.InsuranceOption = InsuranceOptionCodeType.Required;
			api.ItemID = TestData.NewItem.ItemID;
			api.PayPalEmailAddress = "*****@*****.**";
			api.TransactionID = "0";

			// Make API call.
			ApiException gotException = null;
			try
			{
			api.Execute();
			}
			catch(ApiException ex)
			{
				gotException = ex;
			}
			Assert.IsNotNull(gotException);
			
		}
コード例 #2
0
        public void SendInvoice()
        {
            Assert.IsNotNull(TestData.NewItem, "Failed because no item available -- requires successful AddItem test");
            //
            SendInvoiceCall        api = new SendInvoiceCall(this.apiContext);
            SendInvoiceRequestType req = new SendInvoiceRequestType();

            api.CheckoutInstructions = "SDK checkout instruction.";
            api.EmailCopyToSeller    = true; req.EmailCopyToSellerSpecified = true;
            api.InsuranceFee         = new AmountType(); api.InsuranceFee.Value = 2.0; api.InsuranceFee.currencyID = CurrencyCodeType.USD;
            api.InsuranceOption      = InsuranceOptionCodeType.Required;
            api.ItemID             = TestData.NewItem.ItemID;
            api.PayPalEmailAddress = "*****@*****.**";
            api.TransactionID      = "0";

            // Make API call.
            ApiException gotException = null;

            try
            {
                api.Execute();
            }
            catch (ApiException ex)
            {
                gotException = ex;
            }
            Assert.IsNotNull(gotException);
        }
コード例 #3
0
ファイル: SendInvoiceCall.cs プロジェクト: fireworm71/Gamez
 /// <summary>
 /// 
 /// </summary>
 /// <param name="ApiContext">The <see cref="ApiCall.ApiContext"/> for this API Call of type <see cref="ApiContext"/>.</param>
 public SendInvoiceCall(ApiContext ApiContext)
 {
     ApiRequest = new SendInvoiceRequestType();
     this.ApiContext = ApiContext;
 }
コード例 #4
0
ファイル: SendInvoiceCall.cs プロジェクト: fireworm71/Gamez
 /// <summary>
 /// 
 /// </summary>
 public SendInvoiceCall()
 {
     ApiRequest = new SendInvoiceRequestType();
 }
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="ApiContext">The <see cref="ApiCall.ApiContext"/> for this API Call of type <see cref="ApiContext"/>.</param>
 public SendInvoiceCall(ApiContext ApiContext)
 {
     ApiRequest      = new SendInvoiceRequestType();
     this.ApiContext = ApiContext;
 }
コード例 #6
0
 /// <summary>
 ///
 /// </summary>
 public SendInvoiceCall()
 {
     ApiRequest = new SendInvoiceRequestType();
 }