[BUG]: Receipt Object - Status Enum #732
gordonturner
started this conversation in
Ideas
Replies: 3 comments 3 replies
-
Proposed label: OpenAPI |
Beta Was this translation helpful? Give feedback.
0 replies
-
Converting to an Idea discussion because we are closing the issues board down. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@etsyachristensen |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an existing issue for this?
Describe the bug
The List of Shop Receipt resources returned in the getShopReceipts has an inconsistency in the definition of the
status
object.status
required
string
Enum: "paid" "completed" "open" "payment processing" "canceled"
The current order status string. One of: Open, Paid, Completed, Payment Processing.
https://developer.etsy.com/documentation/reference/#operation/getShopReceipts
The generated code (via the Open API generator) creates a Java enum of the lower case text.
The returned values (and the values in the documentation) are returned with leading capital letters.
Result in an exception b/c of mismatch in the text expected and value returned.
Steps to reproduce
Generated java code by running:
Observe the enum created at:
org.openapitools.client.model.ShopReceipt.StatusEnum
Expected behavior
Expected that the returned value from the API should be lower case (I think).
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions