pub trait OrganizationSponsorshipsApi: Send + Sync {
// Required methods
fn admin_initiated_revoke_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
sponsored_friendly_name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AdminInitiatedRevokeSponsorshipError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn create_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
organization_sponsorship_create_request_model: Option<OrganizationSponsorshipCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSponsorshipError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_sponsored_organizations<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<OrganizationSponsorshipInvitesResponseModelListResponseModel, Error<GetSponsoredOrganizationsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_sync_status<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSyncStatusError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn pre_validate_sponsorship_token<'a, 'life0, 'async_trait>(
&'life0 self,
sponsorship_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<PreValidateSponsorshipResponseModel, Error<PreValidateSponsorshipTokenError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn redeem_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsorship_token: Option<&'a str>,
organization_sponsorship_redeem_request_model: Option<OrganizationSponsorshipRedeemRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RedeemSponsorshipError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn remove_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsored_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveSponsorshipError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn resend_sponsorship_offer<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
sponsored_friendly_name: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ResendSponsorshipOfferError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn revoke_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RevokeSponsorshipError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn sync<'a, 'life0, 'async_trait>(
&'life0 self,
organization_sponsorship_sync_request_model: Option<OrganizationSponsorshipSyncRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationSponsorshipSyncResponseModel, Error<SyncError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn admin_initiated_revoke_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
sponsored_friendly_name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AdminInitiatedRevokeSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn admin_initiated_revoke_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
sponsored_friendly_name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AdminInitiatedRevokeSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organization/sponsorship/{sponsoringOrgId}/{sponsoredFriendlyName}/revoke
Sourcefn create_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
organization_sponsorship_create_request_model: Option<OrganizationSponsorshipCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn create_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
organization_sponsorship_create_request_model: Option<OrganizationSponsorshipCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organization/sponsorship/{sponsoringOrgId}/families-for-enterprise
Sourcefn get_sponsored_organizations<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<OrganizationSponsorshipInvitesResponseModelListResponseModel, Error<GetSponsoredOrganizationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_sponsored_organizations<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<OrganizationSponsorshipInvitesResponseModelListResponseModel, Error<GetSponsoredOrganizationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organization/sponsorship/{sponsoringOrgId}/sponsored
Sourcefn get_sync_status<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSyncStatusError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_sync_status<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSyncStatusError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organization/sponsorship/{sponsoringOrgId}/sync-status
Sourcefn pre_validate_sponsorship_token<'a, 'life0, 'async_trait>(
&'life0 self,
sponsorship_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<PreValidateSponsorshipResponseModel, Error<PreValidateSponsorshipTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn pre_validate_sponsorship_token<'a, 'life0, 'async_trait>(
&'life0 self,
sponsorship_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<PreValidateSponsorshipResponseModel, Error<PreValidateSponsorshipTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organization/sponsorship/validate-token
Sourcefn redeem_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsorship_token: Option<&'a str>,
organization_sponsorship_redeem_request_model: Option<OrganizationSponsorshipRedeemRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RedeemSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn redeem_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsorship_token: Option<&'a str>,
organization_sponsorship_redeem_request_model: Option<OrganizationSponsorshipRedeemRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RedeemSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organization/sponsorship/redeem
Sourcefn remove_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsored_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn remove_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsored_org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organization/sponsorship/sponsored/{sponsoredOrgId}
Sourcefn resend_sponsorship_offer<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
sponsored_friendly_name: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ResendSponsorshipOfferError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn resend_sponsorship_offer<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_org_id: Uuid,
sponsored_friendly_name: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ResendSponsorshipOfferError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organization/sponsorship/{sponsoringOrgId}/families-for-enterprise/resend
Sourcefn revoke_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RevokeSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn revoke_sponsorship<'a, 'life0, 'async_trait>(
&'life0 self,
sponsoring_organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RevokeSponsorshipError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organization/sponsorship/{sponsoringOrganizationId}
Sourcefn sync<'a, 'life0, 'async_trait>(
&'life0 self,
organization_sponsorship_sync_request_model: Option<OrganizationSponsorshipSyncRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationSponsorshipSyncResponseModel, Error<SyncError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn sync<'a, 'life0, 'async_trait>(
&'life0 self,
organization_sponsorship_sync_request_model: Option<OrganizationSponsorshipSyncRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationSponsorshipSyncResponseModel, Error<SyncError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organization/sponsorship/sync