Sha256: 096e71be832c15bda716388f926de14565538e3a45aa509f01669bd9806e9eae
Contents?: true
Size: 1.79 KB
Versions: 77
Compression:
Stored size: 1.79 KB
Contents
# typed: false # frozen_string_literal: true ######################################################################################################################## # This file is auto-generated. If you have an issue, please create a GitHub issue. # ######################################################################################################################## module ShopifyAPI class Currency < ShopifyAPI::Rest::Base extend T::Sig @prev_page_info = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar) @next_page_info = T.let(Concurrent::ThreadLocalVar.new { nil }, Concurrent::ThreadLocalVar) sig { params(session: T.nilable(ShopifyAPI::Auth::Session)).void } def initialize(session: ShopifyAPI::Context.active_session) super(session: session) @currency = T.let(nil, T.nilable(String)) @rate_updated_at = T.let(nil, T.nilable(String)) end @has_one = T.let({}, T::Hash[Symbol, Class]) @has_many = T.let({}, T::Hash[Symbol, Class]) @paths = T.let([ {http_method: :get, operation: :get, ids: [], path: "currencies.json"} ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]]) sig { returns(T.nilable(String)) } attr_reader :currency sig { returns(T.nilable(String)) } attr_reader :rate_updated_at class << self sig do params( session: Auth::Session, kwargs: T.untyped ).returns(T::Array[Currency]) end def all( session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {}, params: {}.merge(kwargs).compact, ) T.cast(response, T::Array[Currency]) end end end end
Version data entries
77 entries across 16 versions & 1 rubygems