Closed joao-conde closed 1 year ago
@joao-conde go ahead create a fork and make the changes :)
@joao-conde also, if there's a URL describing the deprecation (on the Shopify doc side) please add it to the description for future reference
@joamag added what I could find, the rest is a company private email which even I dont have access to.
found another reference to this topic https://shopify.dev/apps/metafields/migration
Releasing 0.6.5 with this fix. Closing this issue.
Rationale
This API client becomes unusable for the latest Shopify API version. It is business critical that this is compliant with their new API while maintaining retro-compatibility with other API versions.
Description
The latest version of the Shopify API will deprecate the field
Metafield.valueType
in favor ofMetafield.type
.Implementation
Software development
Change:
https://github.com/hivesolutions/shopify-api/blob/f7b484c469ae724418baab965c88c6112146d06f/src/shopify/product.py#L97
https://github.com/hivesolutions/shopify-api/blob/98595b8c7f8814b8b2435447889d74a92aaec4c3/src/shopify/order.py#L118
To accept both
value_type
andtype
as kwargs and set the metafield dictionary withtype = VALUE
thus maintaining retro compatibility.Reference