Module: AppStoreConnectApi::Domain::UserInvitations

Included in:
AppStoreConnectApi::Domain
Defined in:
lib/app_store_connect_api/domain/user_invitations.rb

Instance Method Summary collapse

Instance Method Details

#create_user_invitation(attributes, relationships = {}) ⇒ Object Also known as: invite_user



17
18
19
20
21
# File 'lib/app_store_connect_api/domain/user_invitations.rb', line 17

def create_user_invitation(attributes, relationships = {})
  post '/v1/userInvitations', data: { attributes: attributes,
                                      relationships: Utils::RelationshipMapper.expand(relationships, 'visibleApps' => 'apps'),
                                      type: 'user_invitations' }
end

#delete_user_invitation(user_invitation_id) ⇒ Object Also known as: cancel_user_invitation



25
26
27
# File 'lib/app_store_connect_api/domain/user_invitations.rb', line 25

def delete_user_invitation(user_invitation_id)
  delete "/v1/userInvitations/#{user_invitation_id}"
end

#user_invitation(user_invitation_id, options = {}) ⇒ Object



12
13
14
# File 'lib/app_store_connect_api/domain/user_invitations.rb', line 12

def user_invitation(user_invitation_id, options = {})
  get "/v1/userInvitations/#{user_invitation_id}", options
end

#user_invitation_visible_apps(user_invitation_id, options = {}) ⇒ Object



31
32
33
# File 'lib/app_store_connect_api/domain/user_invitations.rb', line 31

def user_invitation_visible_apps(user_invitation_id, options = {})
  get "/v1/userInvitations/#{user_invitation_id}/visibleApps", options
end

#user_invitations(options = {}) ⇒ Object



7
8
9
# File 'lib/app_store_connect_api/domain/user_invitations.rb', line 7

def user_invitations(options = {})
  get '/v1/userInvitations', options
end