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.212.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.212.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.211.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.210.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.210.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.209.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.209.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.208.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.207.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.206.2 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.206.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.206.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.205.2 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.205.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.205.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.204.3 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.204.2 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.204.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.204.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.203.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb