Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate resources for 2023_04 release #1137

Merged
merged 4 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Note: For changes to the API, see https://shopify.dev/changelog?filter=api
- [#1113](https://github.com/Shopify/shopify-api-ruby/pull/1113) Handle JSON::ParserError when http response is HTML and raise ShopifyAPI::Errors::HttpResponseError
- [#1098](https://github.com/Shopify/shopify-api-ruby/pull/1098) Gracefully handle HTTP 204 repsonse bodies
- [#1104](https://github.com/Shopify/shopify-api-ruby/pull/1104) Allow api version overrides.
- [#1137](https://github.com/Shopify/shopify-api-ruby/pull/1137) Support for 2023_04 API version. Fix reported typing bugs.

## Version 12.4.0

Expand Down
3 changes: 2 additions & 1 deletion lib/shopify_api/admin_versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ module ShopifyAPI
module AdminVersions
SUPPORTED_ADMIN_VERSIONS = T.let([
"unstable",
"2023-04",
"2023-01",
"2022-10",
"2022-07",
"2022-04",
"2022-01",
], T::Array[String])

LATEST_SUPPORTED_ADMIN_VERSION = T.let("2023-01", String)
LATEST_SUPPORTED_ADMIN_VERSION = T.let("2023-04", String)
end

SUPPORTED_ADMIN_VERSIONS = ShopifyAPI::AdminVersions::SUPPORTED_ADMIN_VERSIONS
Expand Down
4 changes: 3 additions & 1 deletion lib/shopify_api/rest/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,10 @@ def create_instance(data:, session:, instance: nil)
end
instance.public_send("#{attribute}=", attr_list)
elsif has_one?(attr_sym) && value
# force a hash if core returns values that instantiate objects like "USD"
data_hash = value.is_a?(Hash) ? value : { attribute.to_s => value }
instance.public_send("#{attribute}=",
T.unsafe(@has_one[attr_sym]).create_instance(data: value, session: session))
T.unsafe(@has_one[attr_sym]).create_instance(data: data_hash, session: session))
else
instance.public_send("#{attribute}=", value)
instance.original_state[attr_sym] = value
Expand Down
104 changes: 0 additions & 104 deletions lib/shopify_api/rest/resources/2022_01/application_charge.rb

This file was deleted.

116 changes: 0 additions & 116 deletions lib/shopify_api/rest/resources/2022_01/carrier_service.rb

This file was deleted.

Loading