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

Add 2023 07 version #1183

Merged
merged 2 commits into from
Jul 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
  •  
  •  
  •  
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,6 +5,7 @@ module ShopifyAPI
module AdminVersions
SUPPORTED_ADMIN_VERSIONS = T.let([
"unstable",
"2023-07",
"2023-04",
"2023-01",
"2022-10",
Expand All @@ -13,7 +14,7 @@ module AdminVersions
"2022-01",
], T::Array[String])

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

SUPPORTED_ADMIN_VERSIONS = ShopifyAPI::AdminVersions::SUPPORTED_ADMIN_VERSIONS
Expand Down
10 changes: 3 additions & 7 deletions lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,13 @@ def close(

sig do
params(
reason: T.untyped,
reason_notes: T.untyped,
notify_merchant: T.untyped,
fulfillment_hold: T.untyped,
body: T.untyped,
kwargs: T.untyped
).returns(T.untyped)
end
def hold(
reason: nil,
reason_notes: nil,
notify_merchant: nil,
fulfillment_hold: nil,
body: nil,
**kwargs
)
Expand All @@ -188,7 +184,7 @@ def hold(
operation: :hold,
session: @session,
ids: {id: @id},
params: {reason: reason, reason_notes: reason_notes, notify_merchant: notify_merchant}.merge(kwargs).compact,
params: {fulfillment_hold: fulfillment_hold}.merge(kwargs).compact,
body: body,
entity: self,
)
Expand Down
4 changes: 2 additions & 2 deletions lib/shopify_api/rest/resources/2022_04/shop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
@shop_owner = T.let(nil, T.nilable(String))
@source = T.let(nil, T.nilable(String))
@tax_shipping = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(T::Boolean))
@timezone = T.let(nil, T.nilable(String))
@transactional_sms_disabled = T.let(nil, T.nilable(T::Boolean))
@updated_at = T.let(nil, T.nilable(String))
Expand Down Expand Up @@ -177,7 +177,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
attr_reader :source
sig { returns(T.nilable(String)) }
attr_reader :tax_shipping
sig { returns(T.nilable(String)) }
sig { returns(T.nilable(T::Boolean)) }
attr_reader :taxes_included
sig { returns(T.nilable(String)) }
attr_reader :timezone
Expand Down
10 changes: 3 additions & 7 deletions lib/shopify_api/rest/resources/2022_07/fulfillment_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,13 @@ def close(

sig do
params(
reason: T.untyped,
reason_notes: T.untyped,
notify_merchant: T.untyped,
fulfillment_hold: T.untyped,
body: T.untyped,
kwargs: T.untyped
).returns(T.untyped)
end
def hold(
reason: nil,
reason_notes: nil,
notify_merchant: nil,
fulfillment_hold: nil,
body: nil,
**kwargs
)
Expand All @@ -189,7 +185,7 @@ def hold(
operation: :hold,
session: @session,
ids: {id: @id},
params: {reason: reason, reason_notes: reason_notes, notify_merchant: notify_merchant}.merge(kwargs).compact,
params: {fulfillment_hold: fulfillment_hold}.merge(kwargs).compact,
body: body,
entity: self,
)
Expand Down
4 changes: 2 additions & 2 deletions lib/shopify_api/rest/resources/2022_07/shop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
@shop_owner = T.let(nil, T.nilable(String))
@source = T.let(nil, T.nilable(String))
@tax_shipping = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(T::Boolean))
@timezone = T.let(nil, T.nilable(String))
@transactional_sms_disabled = T.let(nil, T.nilable(T::Boolean))
@updated_at = T.let(nil, T.nilable(String))
Expand Down Expand Up @@ -177,7 +177,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
attr_reader :source
sig { returns(T.nilable(String)) }
attr_reader :tax_shipping
sig { returns(T.nilable(String)) }
sig { returns(T.nilable(T::Boolean)) }
attr_reader :taxes_included
sig { returns(T.nilable(String)) }
attr_reader :timezone
Expand Down
10 changes: 3 additions & 7 deletions lib/shopify_api/rest/resources/2022_10/fulfillment_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,13 @@ def close(

sig do
params(
reason: T.untyped,
reason_notes: T.untyped,
notify_merchant: T.untyped,
fulfillment_hold: T.untyped,
body: T.untyped,
kwargs: T.untyped
).returns(T.untyped)
end
def hold(
reason: nil,
reason_notes: nil,
notify_merchant: nil,
fulfillment_hold: nil,
body: nil,
**kwargs
)
Expand All @@ -189,7 +185,7 @@ def hold(
operation: :hold,
session: @session,
ids: {id: @id},
params: {reason: reason, reason_notes: reason_notes, notify_merchant: notify_merchant}.merge(kwargs).compact,
params: {fulfillment_hold: fulfillment_hold}.merge(kwargs).compact,
body: body,
entity: self,
)
Expand Down
4 changes: 2 additions & 2 deletions lib/shopify_api/rest/resources/2022_10/shop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
@shop_owner = T.let(nil, T.nilable(String))
@source = T.let(nil, T.nilable(String))
@tax_shipping = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(T::Boolean))
@timezone = T.let(nil, T.nilable(String))
@transactional_sms_disabled = T.let(nil, T.nilable(T::Boolean))
@updated_at = T.let(nil, T.nilable(String))
Expand Down Expand Up @@ -180,7 +180,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
attr_reader :source
sig { returns(T.nilable(String)) }
attr_reader :tax_shipping
sig { returns(T.nilable(String)) }
sig { returns(T.nilable(T::Boolean)) }
attr_reader :taxes_included
sig { returns(T.nilable(String)) }
attr_reader :timezone
Expand Down
10 changes: 3 additions & 7 deletions lib/shopify_api/rest/resources/2023_01/fulfillment_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,13 @@ def close(

sig do
params(
reason: T.untyped,
reason_notes: T.untyped,
notify_merchant: T.untyped,
fulfillment_hold: T.untyped,
body: T.untyped,
kwargs: T.untyped
).returns(T.untyped)
end
def hold(
reason: nil,
reason_notes: nil,
notify_merchant: nil,
fulfillment_hold: nil,
body: nil,
**kwargs
)
Expand All @@ -195,7 +191,7 @@ def hold(
operation: :hold,
session: @session,
ids: {id: @id},
params: {reason: reason, reason_notes: reason_notes, notify_merchant: notify_merchant}.merge(kwargs).compact,
params: {fulfillment_hold: fulfillment_hold}.merge(kwargs).compact,
body: body,
entity: self,
)
Expand Down
4 changes: 2 additions & 2 deletions lib/shopify_api/rest/resources/2023_01/shop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
@shop_owner = T.let(nil, T.nilable(String))
@source = T.let(nil, T.nilable(String))
@tax_shipping = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(T::Boolean))
@timezone = T.let(nil, T.nilable(String))
@transactional_sms_disabled = T.let(nil, T.nilable(T::Boolean))
@updated_at = T.let(nil, T.nilable(String))
Expand Down Expand Up @@ -180,7 +180,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
attr_reader :source
sig { returns(T.nilable(String)) }
attr_reader :tax_shipping
sig { returns(T.nilable(String)) }
sig { returns(T.nilable(T::Boolean)) }
attr_reader :taxes_included
sig { returns(T.nilable(String)) }
attr_reader :timezone
Expand Down
4 changes: 2 additions & 2 deletions lib/shopify_api/rest/resources/2023_04/shop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
@shop_owner = T.let(nil, T.nilable(String))
@source = T.let(nil, T.nilable(String))
@tax_shipping = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(String))
@taxes_included = T.let(nil, T.nilable(T::Boolean))
@timezone = T.let(nil, T.nilable(String))
@transactional_sms_disabled = T.let(nil, T.nilable(T::Boolean))
@updated_at = T.let(nil, T.nilable(String))
Expand Down Expand Up @@ -180,7 +180,7 @@ def initialize(session: ShopifyAPI::Context.active_session)
attr_reader :source
sig { returns(T.nilable(String)) }
attr_reader :tax_shipping
sig { returns(T.nilable(String)) }
sig { returns(T.nilable(T::Boolean)) }
attr_reader :taxes_included
sig { returns(T.nilable(String)) }
attr_reader :timezone
Expand Down
Loading