@@ -15,22 +15,28 @@ final class ListPendingInvitations
1515 private int $ per_page ;
1616 /**Page number of the results to fetch.**/
1717 private int $ page ;
18+ /**Filter invitations by their member role.**/
19+ private string $ role ;
20+ /**Filter invitations by their invitation source.**/
21+ private string $ invitation_source ;
1822 public function operationId () : string
1923 {
2024 return self ::OPERATION_ID ;
2125 }
22- public function __construct (\League \OpenAPIValidation \Schema \SchemaValidator $ requestSchemaValidator , \League \OpenAPIValidation \Schema \SchemaValidator $ responseSchemaValidator , \ApiClients \Client \Github \OpenAPI \ApiGitHubCom \OptimizedHydratorMapper $ hydrator , string $ org , int $ per_page = 30 , int $ page = 1 )
26+ public function __construct (\League \OpenAPIValidation \Schema \SchemaValidator $ requestSchemaValidator , \League \OpenAPIValidation \Schema \SchemaValidator $ responseSchemaValidator , \ApiClients \Client \Github \OpenAPI \ApiGitHubCom \OptimizedHydratorMapper $ hydrator , string $ org , int $ per_page = 30 , int $ page = 1 , string $ role = ' all ' , string $ invitation_source = ' all ' )
2327 {
2428 $ this ->requestSchemaValidator = $ requestSchemaValidator ;
2529 $ this ->responseSchemaValidator = $ responseSchemaValidator ;
2630 $ this ->hydrator = $ hydrator ;
2731 $ this ->org = $ org ;
2832 $ this ->per_page = $ per_page ;
2933 $ this ->page = $ page ;
34+ $ this ->role = $ role ;
35+ $ this ->invitation_source = $ invitation_source ;
3036 }
3137 function createRequest (array $ data = array ()) : \Psr \Http \Message \RequestInterface
3238 {
33- return new \RingCentral \Psr7 \Request ('GET ' , \str_replace (array ('{org} ' , '{per_page} ' , '{page} ' ), array ($ this ->org , $ this ->per_page , $ this ->page ), '/orgs/{org}/invitations?per_page={per_page}&page={page} ' ));
39+ return new \RingCentral \Psr7 \Request ('GET ' , \str_replace (array ('{org} ' , '{per_page} ' , '{page} ' , ' {role} ' , ' {invitation_source} ' ), array ($ this ->org , $ this ->per_page , $ this ->page , $ this -> role , $ this -> invitation_source ), '/orgs/{org}/invitations?per_page={per_page}&page={page}&role={role}&invitation_source={invitation_source } ' ));
3440 }
3541 /**
3642 * @return \Rx\Observable<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\OrganizationInvitation>|\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\BasicError
0 commit comments