Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add QBD Customer with Billing Address
- //Documentation: http://goo.gl/1GCXg
- var oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey, consumerSecret);
- var context = new ServiceContext(oauthValidator, realmId, IntuitServicesType.QBD);
- var commonService = new DataServices(context);
- Intuit.Ipp.Data.Qbd.Customer qbdCustomer = new Intuit.Ipp.Data.Qbd.Customer();
- qbdCustomer.Name = "Shawn Carter";
- PhysicalAddress physicalAddress = new PhysicalAddress();
- physicalAddress.Line1 = "123 Main St.";
- physicalAddress.Line2 = "Apt. 12";
- physicalAddress.City = "Mountain View";
- physicalAddress.CountrySubDivisionCode = "CA";
- physicalAddress.Country = "USA";
- physicalAddress.PostalCode = "94043";
- physicalAddress.Tag = new string[] { "Billing" };
- qbdCustomer.Address = new PhysicalAddress[] { physicalAddress };
- Intuit.Ipp.Data.Qbd.Customer customerAdded = commonService.Add(qbdCustomer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement