我正在使用QuickBooks-V3-PHP-SDK将快速手册集成到我的项目中。
当我尝试使用以下代码将客户添加到 Quickbooks 时。
$dataService->Add($customerObj);
我在sendRequestParseResponseBodyAndHandleHttpError中收到以下异常,这是 sdk 的内部函数。
属性 IsProject 不存在。IPPCustomer 类
其中 $customerObj 等于
QuickBooksOnline\API\DataIPPCustomer (object) [Object ID #1110][75 properties]
Taxable: (null) NULL
BillAddr:
QuickBooksOnline\API\DataIPPPhysicalAddress (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:
QuickBooksOnline\API\DataIPPPhysicalAddress (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
MYYA