abuzuhri / Amazon-SP-API-CSharp

.Net C# library for the new Amazon Selling Partner API
MIT License
217 stars 191 forks source link

Added fallback property for FulfillmentChannel property when json property name does not match #787

Closed jsaxdev closed 3 weeks ago

jsaxdev commented 3 weeks ago

There was a change in #745 where DataMember attribute Name property was changed. As far as I know it was changed for to correctly deserialize 'Listings Items' feeds JSON but if JSON comes from API getListingsItem it fails to deserialize correctly because that JSON contains property name fulfillmentChannelCode instead of _fulfillment_channelcode . So I decided to add 'fallback' private property.