Class: ShopifyAPI::Shop
- Inherits:
-
Rest::Base
- Object
- Rest::Base
- ShopifyAPI::Shop
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2021_07/shop.rb,
lib/shopify_api/rest/resources/2021_10/shop.rb,
lib/shopify_api/rest/resources/2022_01/shop.rb,
lib/shopify_api/rest/resources/2022_04/shop.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
readonly
Returns the value of attribute address1.
-
#address2 ⇒ Object
readonly
Returns the value of attribute address2.
-
#checkout_api_supported ⇒ Object
readonly
Returns the value of attribute checkout_api_supported.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#cookie_consent_level ⇒ Object
readonly
Returns the value of attribute cookie_consent_level.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#country_name ⇒ Object
readonly
Returns the value of attribute country_name.
-
#county_taxes ⇒ Object
readonly
Returns the value of attribute county_taxes.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#customer_email ⇒ Object
readonly
Returns the value of attribute customer_email.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#eligible_for_card_reader_giveaway ⇒ Object
readonly
Returns the value of attribute eligible_for_card_reader_giveaway.
-
#eligible_for_payments ⇒ Object
readonly
Returns the value of attribute eligible_for_payments.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#enabled_presentment_currencies ⇒ Object
readonly
Returns the value of attribute enabled_presentment_currencies.
-
#finances ⇒ Object
readonly
Returns the value of attribute finances.
-
#force_ssl ⇒ Object
readonly
Returns the value of attribute force_ssl.
-
#google_apps_domain ⇒ Object
readonly
Returns the value of attribute google_apps_domain.
-
#google_apps_login_enabled ⇒ Object
readonly
Returns the value of attribute google_apps_login_enabled.
-
#has_discounts ⇒ Object
readonly
Returns the value of attribute has_discounts.
-
#has_gift_cards ⇒ Object
readonly
Returns the value of attribute has_gift_cards.
-
#has_storefront ⇒ Object
readonly
Returns the value of attribute has_storefront.
-
#iana_timezone ⇒ Object
readonly
Returns the value of attribute iana_timezone.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
-
#money_format ⇒ Object
readonly
Returns the value of attribute money_format.
-
#money_in_emails_format ⇒ Object
readonly
Returns the value of attribute money_in_emails_format.
-
#money_with_currency_format ⇒ Object
readonly
Returns the value of attribute money_with_currency_format.
-
#money_with_currency_in_emails_format ⇒ Object
readonly
Returns the value of attribute money_with_currency_in_emails_format.
-
#multi_location_enabled ⇒ Object
readonly
Returns the value of attribute multi_location_enabled.
-
#myshopify_domain ⇒ Object
readonly
Returns the value of attribute myshopify_domain.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#password_enabled ⇒ Object
readonly
Returns the value of attribute password_enabled.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#plan_display_name ⇒ Object
readonly
Returns the value of attribute plan_display_name.
-
#plan_name ⇒ Object
readonly
Returns the value of attribute plan_name.
-
#pre_launch_enabled ⇒ Object
readonly
Returns the value of attribute pre_launch_enabled.
-
#primary_locale ⇒ Object
readonly
Returns the value of attribute primary_locale.
-
#primary_location_id ⇒ Object
readonly
Returns the value of attribute primary_location_id.
-
#province ⇒ Object
readonly
Returns the value of attribute province.
-
#province_code ⇒ Object
readonly
Returns the value of attribute province_code.
-
#requires_extra_payments_agreement ⇒ Object
readonly
Returns the value of attribute requires_extra_payments_agreement.
-
#setup_required ⇒ Object
readonly
Returns the value of attribute setup_required.
-
#shop_owner ⇒ Object
readonly
Returns the value of attribute shop_owner.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#tax_shipping ⇒ Object
readonly
Returns the value of attribute tax_shipping.
-
#taxes_included ⇒ Object
readonly
Returns the value of attribute taxes_included.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
-
#transactional_sms_disabled ⇒ Object
readonly
Returns the value of attribute transactional_sms_disabled.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#weight_unit ⇒ Object
readonly
Returns the value of attribute weight_unit.
-
#zip ⇒ Object
readonly
Returns the value of attribute zip.
Attributes inherited from Rest::Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(session: ShopifyAPI::Context.active_session) ⇒ Shop
constructor
A new instance of Shop.
Methods inherited from Rest::Base
base_find, class_name, create_instance, create_instances_from_response, #delete, get_path, has_many?, has_one?, json_body_name, #method_missing, next_page?, next_page_info, prev_page?, prev_page_info, primary_key, read_only_attributes, request, #respond_to_missing?, #save, #save!, #to_hash
Constructor Details
#initialize(session: ShopifyAPI::Context.active_session) ⇒ Shop
Returns a new instance of Shop.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 12 def initialize(session: ShopifyAPI::Context.active_session) super(session: session) @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(String)) @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(String)) @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(String)) @taxes_included = T.let(nil, T.nilable(String)) @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)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ShopifyAPI::Rest::Base
Instance Attribute Details
#address1 ⇒ Object (readonly)
Returns the value of attribute address1.
79 80 81 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 79 def address1 @address1 end |
#address2 ⇒ Object (readonly)
Returns the value of attribute address2.
81 82 83 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 81 def address2 @address2 end |
#checkout_api_supported ⇒ Object (readonly)
Returns the value of attribute checkout_api_supported.
83 84 85 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 83 def checkout_api_supported @checkout_api_supported end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
85 86 87 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 85 def city @city end |
#cookie_consent_level ⇒ Object (readonly)
Returns the value of attribute cookie_consent_level.
87 88 89 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 87 def @cookie_consent_level end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
89 90 91 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 89 def country @country end |
#country_code ⇒ Object (readonly)
Returns the value of attribute country_code.
91 92 93 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 91 def country_code @country_code end |
#country_name ⇒ Object (readonly)
Returns the value of attribute country_name.
93 94 95 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 93 def country_name @country_name end |
#county_taxes ⇒ Object (readonly)
Returns the value of attribute county_taxes.
95 96 97 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 95 def county_taxes @county_taxes end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
97 98 99 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 97 def created_at @created_at end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
99 100 101 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 99 def currency @currency end |
#customer_email ⇒ Object (readonly)
Returns the value of attribute customer_email.
101 102 103 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 101 def customer_email @customer_email end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
103 104 105 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 103 def domain @domain end |
#eligible_for_card_reader_giveaway ⇒ Object (readonly)
Returns the value of attribute eligible_for_card_reader_giveaway.
105 106 107 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 105 def eligible_for_card_reader_giveaway @eligible_for_card_reader_giveaway end |
#eligible_for_payments ⇒ Object (readonly)
Returns the value of attribute eligible_for_payments.
107 108 109 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 107 def eligible_for_payments @eligible_for_payments end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
109 110 111 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 109 def email @email end |
#enabled_presentment_currencies ⇒ Object (readonly)
Returns the value of attribute enabled_presentment_currencies.
111 112 113 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 111 def enabled_presentment_currencies @enabled_presentment_currencies end |
#finances ⇒ Object (readonly)
Returns the value of attribute finances.
113 114 115 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 113 def finances @finances end |
#force_ssl ⇒ Object (readonly)
Returns the value of attribute force_ssl.
115 116 117 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 115 def force_ssl @force_ssl end |
#google_apps_domain ⇒ Object (readonly)
Returns the value of attribute google_apps_domain.
117 118 119 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 117 def google_apps_domain @google_apps_domain end |
#google_apps_login_enabled ⇒ Object (readonly)
Returns the value of attribute google_apps_login_enabled.
119 120 121 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 119 def google_apps_login_enabled @google_apps_login_enabled end |
#has_discounts ⇒ Object (readonly)
Returns the value of attribute has_discounts.
121 122 123 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 121 def has_discounts @has_discounts end |
#has_gift_cards ⇒ Object (readonly)
Returns the value of attribute has_gift_cards.
123 124 125 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 123 def has_gift_cards @has_gift_cards end |
#has_storefront ⇒ Object (readonly)
Returns the value of attribute has_storefront.
125 126 127 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 125 def has_storefront @has_storefront end |
#iana_timezone ⇒ Object (readonly)
Returns the value of attribute iana_timezone.
127 128 129 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 127 def iana_timezone @iana_timezone end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
129 130 131 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 129 def id @id end |
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
131 132 133 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 131 def latitude @latitude end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
133 134 135 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 133 def longitude @longitude end |
#money_format ⇒ Object (readonly)
Returns the value of attribute money_format.
135 136 137 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 135 def money_format @money_format end |
#money_in_emails_format ⇒ Object (readonly)
Returns the value of attribute money_in_emails_format.
137 138 139 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 137 def money_in_emails_format @money_in_emails_format end |
#money_with_currency_format ⇒ Object (readonly)
Returns the value of attribute money_with_currency_format.
139 140 141 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 139 def money_with_currency_format @money_with_currency_format end |
#money_with_currency_in_emails_format ⇒ Object (readonly)
Returns the value of attribute money_with_currency_in_emails_format.
141 142 143 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 141 def money_with_currency_in_emails_format @money_with_currency_in_emails_format end |
#multi_location_enabled ⇒ Object (readonly)
Returns the value of attribute multi_location_enabled.
143 144 145 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 143 def multi_location_enabled @multi_location_enabled end |
#myshopify_domain ⇒ Object (readonly)
Returns the value of attribute myshopify_domain.
145 146 147 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 145 def myshopify_domain @myshopify_domain end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
147 148 149 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 147 def name @name end |
#password_enabled ⇒ Object (readonly)
Returns the value of attribute password_enabled.
149 150 151 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 149 def password_enabled @password_enabled end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
151 152 153 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 151 def phone @phone end |
#plan_display_name ⇒ Object (readonly)
Returns the value of attribute plan_display_name.
153 154 155 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 153 def plan_display_name @plan_display_name end |
#plan_name ⇒ Object (readonly)
Returns the value of attribute plan_name.
155 156 157 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 155 def plan_name @plan_name end |
#pre_launch_enabled ⇒ Object (readonly)
Returns the value of attribute pre_launch_enabled.
157 158 159 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 157 def pre_launch_enabled @pre_launch_enabled end |
#primary_locale ⇒ Object (readonly)
Returns the value of attribute primary_locale.
159 160 161 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 159 def primary_locale @primary_locale end |
#primary_location_id ⇒ Object (readonly)
Returns the value of attribute primary_location_id.
161 162 163 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 161 def primary_location_id @primary_location_id end |
#province ⇒ Object (readonly)
Returns the value of attribute province.
163 164 165 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 163 def province @province end |
#province_code ⇒ Object (readonly)
Returns the value of attribute province_code.
165 166 167 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 165 def province_code @province_code end |
#requires_extra_payments_agreement ⇒ Object (readonly)
Returns the value of attribute requires_extra_payments_agreement.
167 168 169 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 167 def requires_extra_payments_agreement @requires_extra_payments_agreement end |
#setup_required ⇒ Object (readonly)
Returns the value of attribute setup_required.
169 170 171 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 169 def setup_required @setup_required end |
#shop_owner ⇒ Object (readonly)
Returns the value of attribute shop_owner.
171 172 173 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 171 def shop_owner @shop_owner end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
173 174 175 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 173 def source @source end |
#tax_shipping ⇒ Object (readonly)
Returns the value of attribute tax_shipping.
175 176 177 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 175 def tax_shipping @tax_shipping end |
#taxes_included ⇒ Object (readonly)
Returns the value of attribute taxes_included.
177 178 179 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 177 def taxes_included @taxes_included end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
179 180 181 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 179 def timezone @timezone end |
#transactional_sms_disabled ⇒ Object (readonly)
Returns the value of attribute transactional_sms_disabled.
181 182 183 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 181 def transactional_sms_disabled @transactional_sms_disabled end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
183 184 185 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 183 def updated_at @updated_at end |
#weight_unit ⇒ Object (readonly)
Returns the value of attribute weight_unit.
185 186 187 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 185 def weight_unit @weight_unit end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
187 188 189 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 187 def zip @zip end |
Class Method Details
.all(fields: nil, session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/shopify_api/rest/resources/2021_07/shop.rb', line 197 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 |