Sha256: 6993df3ec14381605e9b207cabc4fc7565aaaad57c05ceb116b01357948fee5e

Contents?: true

Size: 1.56 KB

Versions: 65

Compression:

Stored size: 1.56 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 Balance < 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)

    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: "shopify_payments/balance.json"}
    ], T::Array[T::Hash[String, T.any(T::Array[Symbol], String, Symbol)]])

    class << self
      sig do
        params(
          session: Auth::Session,
          kwargs: T.untyped
        ).returns(T::Array[Balance])
      end
      def all(
        session: ShopifyAPI::Context.active_session,
        **kwargs
      )
        response = base_find(
          session: session,
          ids: {},
          params: {}.merge(kwargs).compact,
        )

        T.cast(response, T::Array[Balance])
      end

    end

  end
end

Version data entries

65 entries across 16 versions & 1 rubygems

Version Path
shopify_api-11.0.0 lib/shopify_api/rest/resources/2022_01/balance.rb
shopify_api-10.1.0 lib/shopify_api/rest/resources/2021_10/balance.rb
shopify_api-10.1.0 lib/shopify_api/rest/resources/2021_07/balance.rb
shopify_api-10.1.0 lib/shopify_api/rest/resources/2022_01/balance.rb
shopify_api-10.1.0 lib/shopify_api/rest/resources/2022_04/balance.rb