Sha256: 52e1867b82be23525906c275f56e86dd4ef4a463b2aba560de7fee522c3d050d

Contents?: true

Size: 942 Bytes

Versions: 90

Compression:

Stored size: 942 Bytes

Contents

require_relative '../model'
module Spaceship
  class ConnectAPI
    class CustomAppUser
      include Spaceship::ConnectAPI::Model

      attr_accessor :apple_id

      attr_mapping({
        "appleId" => "apple_id"
      })

      def self.type
        return "customAppUsers"
      end

      #
      # API
      #

      def self.all(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
        resps = Spaceship::ConnectAPI.get_custom_app_users(
          app_id: app_id,
          filter: filter,
          includes: includes,
          limit: nil,
          sort: nil
        ).all_pages
        return resps.flat_map(&:to_models)
      end

      def self.create(app_id: nil, apple_id: nil)
        return Spaceship::ConnectAPI.post_custom_app_user(app_id: app_id, apple_id: apple_id).first
      end

      def delete!
        Spaceship::ConnectAPI.delete_custom_app_user(custom_app_user_id: id)
      end
    end
  end
end

Version data entries

90 entries across 90 versions & 4 rubygems

Version Path
fastlane-2.202.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.201.2 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.201.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.201.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.201.0.rc3 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.201.0.rc2 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.201.0.rc1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.200.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.199.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.198.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.198.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.197.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.196.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.195.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.194.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.193.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.193.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.192.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.191.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.190.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb