intuit / intuit/QuickBooks-V3-DotNET-SDK

Error converting value "Bounced Email" to type DeliveryErrorTypeEnum

Open
#212 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
121
Forks
145
Avg merge
17h 1m
Merged PRs (30d)
1

Description

When attempting to deserialize the JSON result of a QuickBooks Query API request into an Intuit.Ipp.Data.Invoice object, I am encountering the following error for some invoices:
`Error converting value "Bounced Email" to type 'Intuit.Ipp.Data.DeliveryErrorTypeEnum'.`

It seems the QB API is returning the delivery error type with a whitespace character, which the SDK is failing to parse to the `DeliveryErrorTypeEnum.BouncedEmail` value.

Is this an issue with the SDK or the API? I posted a similar question on the [Intuit Developer site](https://help.developer.intuit.com/s/question/0D54R00008PIcIGSA1/query-api-error-converting-value-bounced-email-to-type-deliveryerrortypeenum), but haven't yet received any useful feedback.

Thanks!

Json snipppet:
`"QueryResponse": {
"Invoice": [
{
...
"DeliveryInfo": {
"DeliveryType": "Email",
"DeliveryTime": "2021-12-09T07:39:49-08:00",
"DeliveryErrorType": "Bounced Email"
}
}
],
"startPosition": 1,
"maxResults": 1,
"totalCount": 1
},
"time": "2021-12-10T12:44:45.752-08:00"`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.