Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 478 column 14 path $.payload.FinancialEvents.FailedAdhocDisbursementEventList #337

Closed
dengliming opened this issue Sep 28, 2023 · 4 comments · May be fixed by #341

Comments

@dengliming
Copy link

dengliming commented Sep 28, 2023

FailedAdhocDisbursementEventList is defined as the object. But the repsonse is array.

Reference document:

java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 478 column 14 path $.payload.FinancialEvents.FailedAdhocDisbursementEventList

@lvjueweibaba
Copy link

How to solve this problem?

@dengliming
Copy link
Author

You can change this part yourself.

"FailedAdhocDisbursementEvent": {
      "type": "object",
      "properties": {
        "FundsTransfersType": {
          "type": "string",
          "description": "The type of fund transfer. \n\nExample \"Refund\""
        },
        "TransferId": {
          "type": "string",
          "description": "The transfer identifier."
        },
        "DisbursementId": {
          "type": "string",
          "description": "The disbursement identifier."
        },
        "PaymentDisbursementType": {
          "type": "string",
          "description": "The type of payment for disbursement. \n\nExample `CREDIT_CARD`"
        },
        "Status": {
          "type": "string",
          "description": "The status of the failed `AdhocDisbursement`. \n\nExample `HARD_DECLINED`"
        },
        "TransferAmount": {
          "description": "The amount of the Adhoc Disbursement.",
          "$ref": "#/definitions/Currency"
        },
        "PostedDate": {
          "description": "The date and time when the financial event was posted.",
          "$ref": "#/definitions/Date"
        }
      },
      "description": "Failed ad hoc disbursement event."
    },
    "FailedAdhocDisbursementEventList": {
      "type": "array",
      "description": "Failed ad hoc disbursement event list.",
      "items": {
        "$ref": "#/definitions/FailedAdhocDisbursementEvent"
      }
    },

Copy link

github-actions bot commented May 9, 2024

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.

Copy link

closed for inactivity

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants