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); }
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); }
/// <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; }
/// <summary> /// /// </summary> public SendInvoiceCall() { ApiRequest = new SendInvoiceRequestType(); }