class ShopifyAPI::Shop

Attributes

address1[R]
address2[R]
checkout_api_supported[R]
city[R]
country[R]
country_code[R]
country_name[R]
county_taxes[R]
created_at[R]
currency[R]
customer_email[R]
domain[R]
eligible_for_card_reader_giveaway[R]
eligible_for_payments[R]
email[R]
enabled_presentment_currencies[R]
finances[R]
force_ssl[R]
google_apps_domain[R]
google_apps_login_enabled[R]
has_discounts[R]
has_gift_cards[R]
has_storefront[R]
iana_timezone[R]
id[R]
latitude[R]
longitude[R]
money_format[R]
money_in_emails_format[R]
money_with_currency_format[R]
money_with_currency_in_emails_format[R]
multi_location_enabled[R]
myshopify_domain[R]
name[R]
password_enabled[R]
phone[R]
plan_display_name[R]
plan_name[R]
pre_launch_enabled[R]
primary_locale[R]
primary_location_id[R]
province[R]
province_code[R]
requires_extra_payments_agreement[R]
setup_required[R]
shop_owner[R]
source[R]
tax_shipping[R]
taxes_included[R]
timezone[R]
transactional_sms_disabled[R]
updated_at[R]
weight_unit[R]
zip[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/shop.rb, line 205
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[Shop])
end
current(fields: nil, session: ShopifyAPI::Context.active_session) click to toggle source
# File lib/shopify_api/rest/resources/2022_04/shop.rb, line 225
def current(fields: nil, session: ShopifyAPI::Context.active_session)
  all(session: session, fields: fields).first
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/shop.rb, line 19
def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil)

  @address1 = T.let(nil, T.nilable(String))
  @address2 = T.let(nil, T.nilable(String))
  @checkout_api_supported = T.let(nil, T.nilable(T::Boolean))
  @city = T.let(nil, T.nilable(String))
  @cookie_consent_level = T.let(nil, T.nilable(String))
  @country = T.let(nil, T.nilable(String))
  @country_code = T.let(nil, T.nilable(String))
  @country_name = T.let(nil, T.nilable(String))
  @county_taxes = T.let(nil, T.nilable(T::Boolean))
  @created_at = T.let(nil, T.nilable(String))
  @currency = T.let(nil, T.nilable(String))
  @customer_email = T.let(nil, T.nilable(String))
  @domain = T.let(nil, T.nilable(String))
  @eligible_for_card_reader_giveaway = T.let(nil, T.nilable(T::Boolean))
  @eligible_for_payments = T.let(nil, T.nilable(T::Boolean))
  @email = T.let(nil, T.nilable(String))
  @enabled_presentment_currencies = T.let(nil, T.nilable(T::Array[T.untyped]))
  @finances = T.let(nil, T.nilable(T::Boolean))
  @force_ssl = T.let(nil, T.nilable(T::Boolean))
  @google_apps_domain = T.let(nil, T.nilable(String))
  @google_apps_login_enabled = T.let(nil, T.nilable(T::Boolean))
  @has_discounts = T.let(nil, T.nilable(T::Boolean))
  @has_gift_cards = T.let(nil, T.nilable(T::Boolean))
  @has_storefront = T.let(nil, T.nilable(T::Boolean))
  @iana_timezone = T.let(nil, T.nilable(String))
  @id = T.let(nil, T.nilable(Integer))
  @latitude = T.let(nil, T.nilable(Float))
  @longitude = T.let(nil, T.nilable(Float))
  @money_format = T.let(nil, T.nilable(String))
  @money_in_emails_format = T.let(nil, T.nilable(String))
  @money_with_currency_format = T.let(nil, T.nilable(String))
  @money_with_currency_in_emails_format = T.let(nil, T.nilable(String))
  @multi_location_enabled = T.let(nil, T.nilable(T::Boolean))
  @myshopify_domain = T.let(nil, T.nilable(String))
  @name = T.let(nil, T.nilable(String))
  @password_enabled = T.let(nil, T.nilable(T::Boolean))
  @phone = T.let(nil, T.nilable(String))
  @plan_display_name = T.let(nil, T.nilable(String))
  @plan_name = T.let(nil, T.nilable(String))
  @pre_launch_enabled = T.let(nil, T.nilable(T::Boolean))
  @primary_locale = T.let(nil, T.nilable(String))
  @primary_location_id = T.let(nil, T.nilable(Integer))
  @province = T.let(nil, T.nilable(String))
  @province_code = T.let(nil, T.nilable(String))
  @requires_extra_payments_agreement = T.let(nil, T.nilable(T::Boolean))
  @setup_required = T.let(nil, T.nilable(T::Boolean))
  @shop_owner = T.let(nil, T.nilable(String))
  @source = T.let(nil, T.nilable(String))
  @tax_shipping = T.let(nil, T.nilable(T::Boolean))
  @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))
  @weight_unit = T.let(nil, T.nilable(String))
  @zip = T.let(nil, T.nilable(String))

  super(session: session, from_hash: from_hash)
end