Quickbooks Error: Property IsProject does not exist. Class IPPCustomer

Quickbooks Error: Property IsProject does not exist. Class IPPCustomer

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

当我尝试使用以下代码将客户添加到 Quickbooks 时。

$dataService->Add($customerObj);

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

属性 IsProject 不存在。 ClassIPPCustomer

其中 $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
    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: 
    QuickBooksOnline\API\DataIPPTelephoneNumber (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: 
    QuickBooksOnline\API\DataIPPEmailAddress (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 的库,两者具有相同的 class IPPCustomer, 因此,每当我调用任何 dataservice 函数时,它都会导入旧库 classes。我删除了旧库。现在一切正常。

谢谢