Class: PhraseApp::RequestParams::InvitationCreateParams

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/phraseapp-ruby.rb

Overview

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.

project_ids

List of project ids the invited user has access to.

role

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

Instance Method Summary collapse

Instance Method Details

#email=(val) ⇒ Object



1474
1475
1476
# File 'lib/phraseapp-ruby.rb', line 1474

def email=(val)
  super(val)
end

#locale_ids=(val) ⇒ Object



1478
1479
1480
# File 'lib/phraseapp-ruby.rb', line 1478

def locale_ids=(val)
  super(val)
end

#project_ids=(val) ⇒ Object



1482
1483
1484
# File 'lib/phraseapp-ruby.rb', line 1482

def project_ids=(val)
  super(val)
end

#role=(val) ⇒ Object



1486
1487
1488
# File 'lib/phraseapp-ruby.rb', line 1486

def role=(val)
  super(val)
end

#validateObject



1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'lib/phraseapp-ruby.rb', line 1490

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