class ShopifyAPI::ShippingZone

Attributes

carrier_shipping_rate_providers[R]
countries[R]
id[R]
location_group_id[R]
name[R]
price_based_shipping_rates[R]
profile_id[R]
provinces[R]
weight_based_shipping_rates[R]

Public Class Methods

all( fields: nil, session: ShopifyAPI::Context.active_session, **kwargs ) click to toggle source
# File lib/shopify_api/rest/resources/2022_04/shipping_zone.rb, line 70
def all(
  fields: nil,
  session: ShopifyAPI::Context.active_session,
  **kwargs
)
  response = base_find(
    session: session,
    ids: {},
    params: {fields: fields}.merge(kwargs).compact,
  )

  T.cast(response, T::Array[ShippingZone])
end
new(session: ShopifyAPI::Context.active_session, from_hash: nil) click to toggle source
Calls superclass method ShopifyAPI::Rest::Base::new
# File lib/shopify_api/rest/resources/2022_04/shipping_zone.rb, line 19
def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil)

  @carrier_shipping_rate_providers = T.let(nil, T.untyped)
  @countries = T.let(nil, T.nilable(T::Array[T.untyped]))
  @id = T.let(nil, T.nilable(Integer))
  @location_group_id = T.let(nil, T.nilable(String))
  @name = T.let(nil, T.nilable(String))
  @price_based_shipping_rates = T.let(nil, T.nilable(T::Array[T.untyped]))
  @profile_id = T.let(nil, T.nilable(String))
  @provinces = T.let(nil, T.nilable(T::Array[T.untyped]))
  @weight_based_shipping_rates = T.let(nil, T.nilable(T::Array[T.untyped]))

  super(session: session, from_hash: from_hash)
end