class PhraseApp::RequestParams::InvitationCreateParams

InvitationCreateParams

Parameters:

email

The email of the invited user. The email can not be updated once created. Create a new invitation for each unique email.

locale_ids

List of locale ids the invited user has access to.

permissions

Additional permissions depending on invitation role. Available permissions are create_upload and review_translations

project_ids

List of project ids the invited user has access to.

role

Invitiation role, can be any of Manager, Developer, Translator.

Public Instance Methods

email=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 2001
def email=(val)
  super(val)
end
locale_ids=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 2005
def locale_ids=(val)
  super(val)
end
permissions=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 2009
def permissions=(val)
  super(JSON.load(val))
end
project_ids=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 2013
def project_ids=(val)
  super(val)
end
role=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 2017
def role=(val)
  super(val)
end
validate() click to toggle source
# File lib/phraseapp-ruby.rb, line 2021
def validate
  
  if email == nil || email == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"email\" of \"invitation_createParams\" not set")
  end
  if role == nil || role == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"role\" of \"invitation_createParams\" not set")
  end
end