ScaleLeap / amazon-mws-api-sdk

A fully typed TypeScript and Node.js Amazon MWS API Unofficial SDK
https://npm.im/@scaleleap/amazon-mws-api-sdk
MIT License
20 stars 12 forks source link

FISWeight Enum isn't being parsed correctly #430

Open fny opened 2 years ago

fny commented 2 years ago

Here's the error:

Problem with the value of property "EstimatedShippingWeight": One of the following problems occured: (0) Problem with the value of property "Unit": Expected an enum member, but received a string with value "POUNDS"

Here is the culprit:

https://github.com/ScaleLeap/amazon-mws-api-sdk/blob/cf612e1bb007b73e9ef4c2e50972c98abcb6fb2b/src/sections/fulfillment-outbound-shipment/type.ts#L52-L55

Not sure how to get enums working properly, but making FISWeight a string cleared up the issue. I tried to uppercase pounds in the enum but nothing changed.

moltar commented 2 years ago

Looks like just a capitalization issue?