Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

InvoiceLineItemConverter cannot deserialize invoice line items with type billing_line_items and billing provider: one_time #144

Open
vgupta opened this issue Jul 10, 2021 · 4 comments

Comments

@vgupta
Copy link

vgupta commented Jul 10, 2021

After upgrading SDK from version 1.14.0 to 1.15.3, I am getting parsing exceptions for billing provider one_time.

Base Description: com.microsoft.store.partnercenter.exception.PartnerResponseParseException: Could not deserialize response. Detailed message: InvoiceLineItemConverter cannot deserialize invoice line items with type billing_line_items and billing provider: one_time (through reference chain: com.microsoft.store.partnercenter.models.ResourceCollection["items"]->java.util.ArrayList[0])

After debugging I found that BillingProvider.ONE_TIME.toString() is returning 'onetime' while it billingprovider value is one_time.

This is show stopper bug. Due to this, I am not able to process onetime invoices.

Check attached screenshot
error

@vgupta
Copy link
Author

vgupta commented Jul 10, 2021

@IsaiahWilliams can you please check?

@vgupta
Copy link
Author

vgupta commented Jul 11, 2021

@msize Looks like this issue has been already fixed in commit 0f3ccc2 but not released yet. Is there any plan to release?

Due to this issue, I am not able to use API to fetch one-time invoice line items.

@msize
Copy link

msize commented Jul 13, 2021

@vgupta I'm not a staff of Microsoft and haven't any permission on this project. I'm, like you, just a user of this library.

@lennydeveloper
Copy link

I know it is a bit late but this may be useful for people who come in the future to review possible solutions to this specific error.

Change the version to 1.15.1

Works for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants