我正在使用 nSoftware 与 QuickBooks 进行交互。我的要求是仅更新客户的信用卡到期月份和年份。用于此的代码是
nsoftware.InQB.Customer cust = new nsoftware.InQB.Customer();
cust.GetByName("test");
cust.CreditCard.ExpMonth = customer.CreditCardItem.CardExpMonth;
cust.CreditCard.ExpYear = customer.CreditCardItem.CardExpYear;
cust.Update();
问题是 GetByName 方法返回的客户对象的信用卡号如“xxxxxxxxxxxxxx1234”。更新客户对象将实际信用卡号更新为 xxx....1234。我的要求是只更新到期月份和年份。
开发环境:- ASP.Net 4.0,C#