Skip to content

Add PaymentStatus value "Pending"#21

Open
moeEvolve wants to merge 1 commit intoworstone:masterfrom
moeEvolve:master
Open

Add PaymentStatus value "Pending"#21
moeEvolve wants to merge 1 commit intoworstone:masterfrom
moeEvolve:master

Conversation

@moeEvolve
Copy link

I ran into a problem getting orders that have a payment_status of "pending". Below is an excerpt of the exception I found in the RestResponse returned from Orders.get().

"ErrorException": {
"ClassName": "BigCommerce4Net.Api.NewtonSoftJsonDeserializerException",
"Message": "Error converting value "pending" to type 'BigCommerce4Net.Domain.PaymentStatus'. Path 'payment_status', line 1, position 950.",
}

Adding an EnumMember to handle "pending" resolves this issue.

More info if you're interested:
I have only recently come across this "pending" status on orders paid with PayPal Express and an order status of Awaiting Payment (7).

This bug has the potential to getting a list of orders. For example I had a few dozen Awaiting Payment orders to process. When calling Orders.Get with a filter of status_id = 7 the response Data was null but the response content was the big ol' JSON response from BigCommerce which contained all the order data.

@moeEvolve
Copy link
Author

@worstone can I have you look at this please? Thanks!

@AZDeveloper777
Copy link

Just wanted to acknowledge seeing this. No timeline, but at least I'm aware of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments