Skip to content

IPPPayment->Line->LineEx cannot be deserialized. #536

Open
@andy-commonsku

Description

@andy-commonsku

This is the request/response log:

RESPONSE URI FOR SEQUENCE ID 00347
==================================
https://sandbox-quickbooks.api.intuit.com/v3/company/193514292517157/batch?requestid=252404860885650493&minorversion=71

RESPONSE HEADERS
================
date: Mon, 27 Jan 2025 10:59:42 GMT
content-type: application/xml
x-spanid: 01dae7ea-6563-590c-4b54-b0273c0047a2
x-amzn-trace-id: Root=1-6797671e-194659d9013ba33a082fee51
x-content-type-options: nosniff
x-envoy-upstream-service-time: 234
server: istio-envoy
x-envoy-decorator-operation: v3-facade-service-desired-service.dev-devx-v3facadeservice-usw2-stg-ids.svc.cluster.local:8090/*
strict-transport-security: max-age=31536000
intuit_tid: 1-6797671e-194659d9013ba33a082fee51
x-request-id: 1-6797671e-194659d9013ba33a082fee51

RESPONSE BODY
=============
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2025-01-27T02:59:42.509-08:00">
  <BatchItemResponse bId="bId0">
    <QueryResponse startPosition="1" maxResults="1">
      <Payment domain="QBO" sparse="false">
        <Id>971</Id>
        <SyncToken>0</SyncToken>
        <MetaData>
          <CreateTime>2025-01-27T02:59:41-08:00</CreateTime>
          <LastUpdatedTime>2025-01-27T02:59:41-08:00</LastUpdatedTime>
        </MetaData>
        <TxnDate>2025-01-27</TxnDate>
        <CurrencyRef name="United States Dollar">USD</CurrencyRef>
        <ExchangeRate>1</ExchangeRate>
        <Line>
          <Amount>34.08</Amount>
          <LinkedTxn>
            <TxnId>699</TxnId>
            <TxnType>Invoice</TxnType>
          </LinkedTxn>
          <LineEx>
            <NameValue>
              <Name>txnId</Name>
              <Value>699</Value>
            </NameValue>
            <NameValue>
              <Name>txnOpenBalance</Name>
              <Value>34.08</Value>
            </NameValue>
            <NameValue>
              <Name>txnReferenceNumber</Name>
              <Value>32413</Value>
            </NameValue>
          </LineEx>
        </Line>
        <CustomerRef name="Winter Client - janice">337</CustomerRef>
        <DepositToAccountRef>4</DepositToAccountRef>
        <TotalAmt>34.08</TotalAmt>
        <UnappliedAmt>0</UnappliedAmt>
        <ProcessPayment>false</ProcessPayment>
      </Payment>
    </QueryResponse>
  </BatchItemResponse>
</IntuitResponse>

But the deserialized php object shows that:

       'LineEx' =>
      \QuickBooksOnline\API\Data\IPPIntuitAnyType::__set_state(array(
      )),

minorVersion: 71
realm_id: 193514292517157
sandbox: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions