Trait OrganizationSponsorshipsApi

Source
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§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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}

Source

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

Source

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}

Source

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

Implementors§