快速手册错误: 属性是项目不存在.类 IPPCustomer



我正在使用QuickBooks-V3-PHP-SDK将Quickbooks集成到我的项目中。

当我尝试使用以下代码将 cutomer 添加到快速手册时。

$dataService->Add($customerObj);

我在sendRequestParseResponseBodyAndHandleHttpError中收到以下异常,这是sdk的内部函数。

属性是项目不存在。类 IPPC管理员

其中$customerObj等于

QuickBooksOnlineAPIDataIPPCustomer (object) [Object ID #1110][75 properties]
Taxable: (null) NULL
BillAddr: 
QuickBooksOnlineAPIDataIPPPhysicalAddress (object) [Object ID #1115][16 properties]
Id: (null) NULL
Line1: (string) "a"
Line2: (string) ""
Line3: (null) NULL
Line4: (null) NULL
Line5: (null) NULL
City: (string) "a"
Country: (string) "United States"
CountryCode: (string) "US"
CountrySubDivisionCode: (string) "IL"
PostalCode: (null) NULL
PostalCodeSuffix: (null) NULL
Lat: (null) NULL
Long: (null) NULL
Tag: (null) NULL
Note: (null) NULL
ShipAddr: 
QuickBooksOnlineAPIDataIPPPhysicalAddress (object) [Object ID #1115][16 properties]
Id: (null) NULL
Line1: (string) "a"
Line2: (string) ""
Line3: (null) NULL
Line4: (null) NULL
Line5: (null) NULL
City: (string) "a"
Country: (string) "United States"
CountryCode: (string) "US"
CountrySubDivisionCode: (string) "IL"
PostalCode: (null) NULL
PostalCodeSuffix: (null) NULL
Lat: (null) NULL
Long: (null) NULL
Tag: (null) NULL
Note: (null) NULL
OtherAddr: (null) NULL
ContactName: (null) NULL
AltContactName: (null) NULL
Notes: (null) NULL
Job: (null) NULL
BillWithParent: (null) NULL
RootCustomerRef: (null) NULL
ParentRef: (null) NULL
Level: (null) NULL
CustomerTypeRef: (null) NULL
SalesTermRef: (null) NULL
SalesRepRef: (null) NULL
TaxGroupCodeRef: (null) NULL
TaxRateRef: (null) NULL
PaymentMethodRef: (null) NULL
CCDetail: (null) NULL
PriceLevelRef: (null) NULL
Balance: (null) NULL
OpenBalanceDate: (null) NULL
BalanceWithJobs: (null) NULL
CreditLimit: (null) NULL
AcctNum: (null) NULL
CurrencyRef: (null) NULL
OverDueBalance: (null) NULL
TotalRevenue: (null) NULL
TotalExpense: (null) NULL
PreferredDeliveryMethod: (string) "Email"
ResaleNum: (null) NULL
JobInfo: (null) NULL
TDSEnabled: (null) NULL
CustomerEx: (null) NULL
SecondaryTaxIdentifier: (null) NULL
ARAccountRef: (null) NULL
PrimaryTaxIdentifier: (null) NULL
TaxExemptionReasonId: (null) NULL
IsProject: (null) NULL
BusinessNumber: (null) NULL
GSTIN: (null) NULL
GSTRegistrationType: (null) NULL
IsCISContractor: (null) NULL
ClientCompanyId: (null) NULL
ClientEntityId: (null) NULL
IntuitId: (null) NULL
Organization: (null) NULL
Title: (null) NULL
GivenName: (string) "Kuliza Technologies"
MiddleName: (null) NULL
FamilyName: (null) NULL
Suffix: (null) NULL
FullyQualifiedName: (null) NULL
CompanyName: (string) "Kuliza"
DisplayName: (string) "Kuliza_4something21"
PrintOnCheckName: (string) "Kuliza"
UserId: (null) NULL
Active: (null) NULL
PrimaryPhone: 
QuickBooksOnlineAPIDataIPPTelephoneNumber (object) [Object ID #1111][9 properties]
Id: (null) NULL
DeviceType: (null) NULL
CountryCode: (null) NULL
AreaCode: (null) NULL
ExchangeCode: (null) NULL
Extension: (null) NULL
FreeFormNumber: (string) "2546321525"
Default: (null) NULL
Tag: (null) NULL
AlternatePhone: (null) NULL
Mobile: (null) NULL
Fax: (null) NULL
PrimaryEmailAddr: 
QuickBooksOnlineAPIDataIPPEmailAddress (object) [Object ID #1112][4 properties]
Id: (null) NULL
Address: (string) "jai.kansra+il@kuliza.com"
Default: (null) NULL
Tag: (null) NULL
WebAddr: (null) NULL
OtherContactInfo: (null) NULL
DefaultTaxCodeRef: (null) NULL
Id: (null) NULL
SyncToken: (null) NULL
MetaData: (null) NULL
CustomField: (null) NULL
AttachableRef: (null) NULL
domain: (null) NULL
status: (null) NULL
sparse: (null) NULL
Name: (string) "Kuliza Technologies"

实际上我添加了一个名为QuickBooks-V3-PHP-SDK的新库,但在此之前,还有另一个属于Quickbooks的库,并且两者都具有相同的类IPPCoustomer, 因此,每当我调用任何数据服务函数时,它都会导入旧的库类。我删除了旧库。它现在工作正常。

谢谢

相关内容

  • 没有找到相关文章

最新更新