Sha256: e81421772511878c550d0e06fd5eda4aac0db291863ad05db8e8da92a352ad4f

Contents?: true

Size: 946 Bytes

Versions: 31

Compression:

Stored size: 946 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module ShopifyAPI
  module Auth
    class AssociatedUser < T::Struct
      extend T::Sig

      prop :id, Integer
      prop :first_name, String
      prop :last_name, String
      prop :email, String
      prop :email_verified, T::Boolean
      prop :account_owner, T::Boolean
      prop :locale, String
      prop :collaborator, T::Boolean

      alias_method :eql?, :==
      sig { params(other: T.nilable(AssociatedUser)).returns(T::Boolean) }
      def ==(other)
        if other
          id == other.id &&
            first_name == other.first_name &&
            last_name == other.last_name &&
            email == other.email &&
            email_verified == other.email_verified &&
            account_owner == other.account_owner &&
            locale == other.locale &&
            collaborator == other.collaborator
        else
          false
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
shopify_api-14.8.0 lib/shopify_api/auth/associated_user.rb
shopify_api-14.7.0 lib/shopify_api/auth/associated_user.rb
shopify_api-14.6.0 lib/shopify_api/auth/associated_user.rb
shopify_api-14.5.0 lib/shopify_api/auth/associated_user.rb
shopify_api-14.4.0 lib/shopify_api/auth/associated_user.rb
shopify_api-14.3.0 lib/shopify_api/auth/associated_user.rb
shopify_api-14.2.0 lib/shopify_api/auth/associated_user.rb
shopify_api-14.1.0 lib/shopify_api/auth/associated_user.rb
shopify_api-14.0.1 lib/shopify_api/auth/associated_user.rb
shopify_api-14.0.0 lib/shopify_api/auth/associated_user.rb
shopify_api-13.4.0 lib/shopify_api/auth/associated_user.rb
shopify_api-13.3.1 lib/shopify_api/auth/associated_user.rb
shopify_api-13.3.0 lib/shopify_api/auth/associated_user.rb
shopify_api-13.2.0 lib/shopify_api/auth/associated_user.rb
shopify_api-13.1.0 lib/shopify_api/auth/associated_user.rb
shopify_api-13.0.0 lib/shopify_api/auth/associated_user.rb
shopify_api-12.5.0 lib/shopify_api/auth/associated_user.rb
shopify_api-12.4.0 lib/shopify_api/auth/associated_user.rb
shopify_api-12.3.0 lib/shopify_api/auth/associated_user.rb
shopify_api-12.2.1 lib/shopify_api/auth/associated_user.rb