Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/bitwarden-api-api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ src/apis/slack_integration_api.rs
src/apis/stripe_api.rs
src/apis/sync_api.rs
src/apis/tax_api.rs
src/apis/teams_integration_api.rs
src/apis/trash_api.rs
src/apis/two_factor_api.rs
src/apis/users_api.rs
Expand Down
6 changes: 5 additions & 1 deletion crates/bitwarden-api-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ client.
- API version: latest
- Package version: 1.0.0
- Server Git commit:
[`d2577f670e1cf9ca32791135d2197cff1fe12096`](https://github.com/bitwarden/server/commit/d2577f670e1cf9ca32791135d2197cff1fe12096)
[`fedc6b865b359aa68598df68b928a4c06246cfc0`](https://github.com/bitwarden/server/commit/fedc6b865b359aa68598df68b928a4c06246cfc0)
- Generator version: 7.15.0
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`

Expand Down Expand Up @@ -254,6 +254,7 @@ All URIs are relative to *https://api.bitwarden.com*
| _OrganizationBillingVNextApi_ | [**add_credit_via_bit_pay**](docs/OrganizationBillingVNextApi.md#organization_billing_v_next_add_credit_via_bit_pay) | **POST** /organizations/{organizationId}/billing/vnext/credit/bitpay |
| _OrganizationBillingVNextApi_ | [**get_billing_address**](docs/OrganizationBillingVNextApi.md#organization_billing_v_next_get_billing_address) | **GET** /organizations/{organizationId}/billing/vnext/address |
| _OrganizationBillingVNextApi_ | [**get_credit**](docs/OrganizationBillingVNextApi.md#organization_billing_v_next_get_credit) | **GET** /organizations/{organizationId}/billing/vnext/credit |
| _OrganizationBillingVNextApi_ | [**get_metadata**](docs/OrganizationBillingVNextApi.md#organization_billing_v_next_get_metadata) | **GET** /organizations/{organizationId}/billing/vnext/metadata |
| _OrganizationBillingVNextApi_ | [**get_payment_method**](docs/OrganizationBillingVNextApi.md#organization_billing_v_next_get_payment_method) | **GET** /organizations/{organizationId}/billing/vnext/payment-method |
| _OrganizationBillingVNextApi_ | [**get_warnings**](docs/OrganizationBillingVNextApi.md#organization_billing_v_next_get_warnings) | **GET** /organizations/{organizationId}/billing/vnext/warnings |
| _OrganizationBillingVNextApi_ | [**restart_subscription**](docs/OrganizationBillingVNextApi.md#organization_billing_v_next_restart_subscription) | **POST** /organizations/{organizationId}/billing/vnext/subscription/restart |
Expand Down Expand Up @@ -477,6 +478,9 @@ All URIs are relative to *https://api.bitwarden.com*
| _TaxApi_ | [**preview_organization_subscription_purchase_tax**](docs/TaxApi.md#tax_preview_organization_subscription_purchase_tax) | **POST** /billing/tax/organizations/subscriptions/purchase |
| _TaxApi_ | [**preview_organization_subscription_update_tax**](docs/TaxApi.md#tax_preview_organization_subscription_update_tax) | **PUT** /billing/tax/organizations/{organizationId}/subscription/update |
| _TaxApi_ | [**preview_premium_subscription_purchase_tax**](docs/TaxApi.md#tax_preview_premium_subscription_purchase_tax) | **POST** /billing/tax/premium/subscriptions/purchase |
| _TeamsIntegrationApi_ | [**create**](docs/TeamsIntegrationApi.md#teams_integration_create) | **GET** /organizations/integrations/teams/create |
| _TeamsIntegrationApi_ | [**incoming_post**](docs/TeamsIntegrationApi.md#teams_integration_incoming_post) | **POST** /organizations/integrations/teams/incoming |
| _TeamsIntegrationApi_ | [**redirect**](docs/TeamsIntegrationApi.md#teams_integration_redirect) | **GET** /organizations/{organizationId}/integrations/teams/redirect |
| _TrashApi_ | [**empty_trash**](docs/TrashApi.md#trash_empty_trash) | **POST** /secrets/{organizationId}/trash/empty |
| _TrashApi_ | [**list_by_organization**](docs/TrashApi.md#trash_list_by_organization) | **GET** /secrets/{organizationId}/trash |
| _TrashApi_ | [**restore_trash**](docs/TrashApi.md#trash_restore_trash) | **POST** /secrets/{organizationId}/trash/restore |
Expand Down
12 changes: 12 additions & 0 deletions crates/bitwarden-api-api/src/apis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ pub mod slack_integration_api;
pub mod stripe_api;
pub mod sync_api;
pub mod tax_api;
pub mod teams_integration_api;
pub mod trash_api;
pub mod two_factor_api;
pub mod users_api;
Expand Down Expand Up @@ -259,6 +260,7 @@ struct ApiClientReal {
stripe_api: stripe_api::StripeApiClient,
sync_api: sync_api::SyncApiClient,
tax_api: tax_api::TaxApiClient,
teams_integration_api: teams_integration_api::TeamsIntegrationApiClient,
trash_api: trash_api::TrashApiClient,
two_factor_api: two_factor_api::TwoFactorApiClient,
users_api: users_api::UsersApiClient,
Expand Down Expand Up @@ -336,6 +338,7 @@ pub struct ApiClientMock {
pub stripe_api: stripe_api::MockStripeApi,
pub sync_api: sync_api::MockSyncApi,
pub tax_api: tax_api::MockTaxApi,
pub teams_integration_api: teams_integration_api::MockTeamsIntegrationApi,
pub trash_api: trash_api::MockTrashApi,
pub two_factor_api: two_factor_api::MockTwoFactorApi,
pub users_api: users_api::MockUsersApi,
Expand Down Expand Up @@ -407,6 +410,7 @@ impl ApiClient {
stripe_api: stripe_api::StripeApiClient::new(configuration.clone()),
sync_api: sync_api::SyncApiClient::new(configuration.clone()),
tax_api: tax_api::TaxApiClient::new(configuration.clone()),
teams_integration_api: teams_integration_api::TeamsIntegrationApiClient::new(configuration.clone()),
trash_api: trash_api::TrashApiClient::new(configuration.clone()),
two_factor_api: two_factor_api::TwoFactorApiClient::new(configuration.clone()),
users_api: users_api::UsersApiClient::new(configuration.clone()),
Expand Down Expand Up @@ -479,6 +483,7 @@ impl ApiClient {
stripe_api: stripe_api::MockStripeApi::new(),
sync_api: sync_api::MockSyncApi::new(),
tax_api: tax_api::MockTaxApi::new(),
teams_integration_api: teams_integration_api::MockTeamsIntegrationApi::new(),
trash_api: trash_api::MockTrashApi::new(),
two_factor_api: two_factor_api::MockTwoFactorApi::new(),
users_api: users_api::MockUsersApi::new(),
Expand Down Expand Up @@ -959,6 +964,13 @@ impl ApiClient {
ApiClient::Mock(mock) => &mock.tax_api,
}
}
pub fn teams_integration_api(&self) -> &dyn teams_integration_api::TeamsIntegrationApi {
match self {
ApiClient::Real(real) => &real.teams_integration_api,
#[cfg(feature = "mockall")]
ApiClient::Mock(mock) => &mock.teams_integration_api,
}
}
pub fn trash_api(&self) -> &dyn trash_api::TrashApi {
match self {
ApiClient::Real(real) => &real.trash_api,
Expand Down
Loading