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.225.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.224.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.223.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.223.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.222.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.221.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.221.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.220.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.219.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.218.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-security-patched-2.216.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.217.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.216.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.215.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.215.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-mercafacil-2.214.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.214.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.213.0 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane-2.212.2 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb
fastlane_pricing_fix-2.212.1 spaceship/lib/spaceship/connect_api/models/custom_app_user.rb