Struct Billing

Source
pub struct Billing {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

Source§

impl Billing

Source

pub async fn account( &self, account_id: &str, ) -> Result<Response<Contact>, ClientError>

Get billing information.

This function performs a GET to the /accounts/{accountId}/billing endpoint.

Get billing information of a sub account.

Only master accounts can use this API. Zoom allows only approved partners to use master APIs and manage sub accounts’ billing information. Email the partner programs team at partner-success@zoom.us for more details.

Prerequisites:

  • Pro or a higher paid account with master account option enabled.

Scope:billing:master
Rate Limit Label: Medium

Parameters:

  • account_id: &str – User’s first name.
Source

pub async fn account_update( &self, account_id: &str, body: &BillingContact, ) -> Result<Response<()>, ClientError>

Update billing information.

This function performs a PATCH to the /accounts/{accountId}/billing endpoint.

Update billing information of a sub account.

This API can only be used by master accounts that pay all billing charges of their associated sub accounts. Zoom allows only approved partners to use master APIs and manage sub accounts’ billing information. Email the partner programs team at partner-success@zoom.us for more details.

Prerequisites:

  • Pro or a higher paid account with master account option enabled.

Scope:billing:master
Rate Limit Label: Heavy

Parameters:

  • account_id: &str – User’s first name.
Source

pub async fn account_plans( &self, account_id: &str, ) -> Result<Response<AccountPlansResponse>, ClientError>

Get plan Information.

This function performs a GET to the /accounts/{accountId}/plans endpoint.

Get plan information of a sub account that is managed by a master account.

This API can only be used by master accounts that pay all billing charges of their associated Pro or higher sub accounts. Zoom allows only approved partners to use master APIs and manage sub accounts’ billing information. Email the partner programs team at partner-success@zoom.us for more details.

Scopes: billing:master
Rate Limit Label: Medium

Parameters:

  • account_id: &str – User’s first name.
Source

pub async fn account_plan_create( &self, account_id: &str, body: &AccountPlanCreateRequestAllOf, ) -> Result<Response<()>, ClientError>

Subscribe plans.

This function performs a POST to the /accounts/{accountId}/plans endpoint.

Subscribe a sub account to a Zoom plan using your master account. This API can only be used by master accounts that pay all billing charges of their associated Pro or higher sub accounts. Zoom allows only approved partners to use master APIs and manage sub accounts’ subscriptions. Email the partner programs team at partner-success@zoom.us for more details.

Scopes: billing:master

Parameters:

  • account_id: &str – User’s first name.
Source

pub async fn account_plan_base_update( &self, account_id: &str, body: &PlanBase, ) -> Result<Response<()>, ClientError>

Update a base plan.

This function performs a PUT to the /accounts/{accountId}/plans/base endpoint.

Update a base plan of a sub account.

This API can only be used by master accounts that pay all billing charges of their associated Pro or higher subaccounts. Zoom allows only approved partners to use master APIs and manage subaccounts’ subscriptions. Email the partner programs team at partner-success@zoom.us for more details.

Scopes: billing:master
Rate Limit Label: Heavy

Prerequisites:

  • The subaccount must have a Pro or a higher plan.

Parameters:

  • account_id: &str – User’s first name.
Source

pub async fn account_plan_addon_update( &self, account_id: &str, body: &PlanBase, ) -> Result<Response<()>, ClientError>

Update an additional plan.

This function performs a PUT to the /accounts/{accountId}/plans/addons endpoint.

Update an additional plan for a sub account.

This API can only be used by master accounts that pay all billing charges of their associated Pro or higher sub accounts. Zoom allows only approved partners to use master APIs and manage sub accounts’ subscriptions. Email the partner programs team at partner-success@zoom.us for more details.


Prerequisites:

  • Pro or a higher plan with master account enabled.
  • The sub account must be a paid account. The billing charges for the sub account must be paid by the master account.

Scopes: billing:master
Rate Limit Label: Heavy

Parameters:

  • account_id: &str – User’s first name.
Source

pub async fn account_plan_addon_create( &self, account_id: &str, body: &AccountPlanAddonCreateRequestOneOf, ) -> Result<Response<AccountPlans>, ClientError>

Subscribe additional plan.

This function performs a POST to the /accounts/{accountId}/plans/addons endpoint.

Subscribe a subaccount to a Zoom addon plan. This API can only be used by master accounts that pay all billing charges of their associated Pro or higher subaccounts. Zoom allows only approved partners to use master APIs and manage subaccounts’ subscriptions. For more information, email the partner programs team at partner-success@zoom.us.

Scopes: billing:master
Rate Limit Label: Heavy

Prerequisites:

  • Pro or a higher plan with master account option enabled
  • The subaccount must be a paid account whose billing charges are paid by its master account

Parameters:

  • account_id: &str – User’s first name.
Source

pub async fn account_plan_base_delete( &self, account_id: &str, body: &AccountPlanBaseDeleteRequest, ) -> Result<Response<()>, ClientError>

Cancel a base plan.

This function performs a PATCH to the /accounts/{accountId}/plans/base/status endpoint.

Cancel a base plan for a sub account.

This API can only be used by master accounts that pay all billing charges of their associated Pro or higher sub accounts. Zoom allows only approved partners to use master APIs and manage sub accounts’ subscriptions. Email the partner programs team at partner-success@zoom.us for more details.

Scopes: billing:master
Rate Limit Label: Heavy
Prerequisites:

  • The sub account must have a Pro or a higher plan.

Parameters:

  • account_id: &str – User’s first name.
Source

pub async fn account_plan_addon_cancel( &self, account_id: &str, body: &AccountPlanAddonCancelRequest, ) -> Result<Response<()>, ClientError>

Cancel additional plans.

This function performs a PATCH to the /accounts/{accountId}/plans/addons/status endpoint.

Cancel additional plan of a sub account. The cancellation does not provide refund for the current subscription. The service remains active for the current session.

This API can only be used by master accounts that pay all billing charges of their associated Pro or higher sub accounts. Zoom allows only approved partners to use master APIs and manage sub accounts’ subscriptions. Email the partner programs team at partner-success@zoom.us for more details.

Rate Limit Label: Heavy

Prerequisites:

  • Pro or a higher plan with master account option enabled.
  • The sub account must be a paid account.
    Scope: billing:master
Source

pub async fn get_plan_usage( &self, account_id: &str, ) -> Result<Response<GetPlanUsageResponse>, ClientError>

Get plan usage.

This function performs a GET to the /accounts/{accountId}/plans/usage endpoint.

Get information on usage of plans of an account. This API supports regular accounts as well as master and sub accounts. To get plan usage of a regular account, use the account:read:admin scope and provide “me” as the value of the accountId path parameter.To get plan usage of a master account, provide the keyword “me” as the value of the accountId path parameter and use the billing:master scope. To get plan usage of a sub account, provide the actual account Id of the sub account as the value of the accountId path parameter and use the billing:master scope.

Prerequisite:
Account type: master account on a paid Pro, Business or Enterprise plan.
Scope: billing:master for master and sub accounts. account:read:admin for regular Zoom accounts.
Rate Limit Label: Heavy

Source

pub async fn account_invoice( &self, account_id: &str, from: NaiveDate, to: NaiveDate, ) -> Result<Response<AccountBillingInvoicesResponseData>, ClientError>

List billing invoices.

This function performs a GET to the /accounts/{accountId}/billing/invoices endpoint.

List invoices of a Zoom account.

To list a regular Zoom account’s invoices or a master account’s invoices, provide me as the value of the accountId path parameter. To list a sub account’s invoices, provide the account ID of the sub account in the accountId path parameter.

Prerequisites:

  • Account must be enrolled in Pro or a higher plan.

Scope:billing:master
Rate Limit Label: Heavy
Additional Rate Limit: You can make one API request per account(accountId) every five minutes until the daily limit is reached. This API has a daily limit of 6 requests per account(accountId).

Parameters:

  • from: chrono::NaiveDate – Start date for the invoice query in yyyy-mm-dd format. The date range defined by the “from” and “to” parameters should not exceed one year. The range defined should fall within the past three years. .
  • to: chrono::NaiveDate – End date for the invoice query in yyyy-mm-dd format.
Source

pub async fn get_account_invoice( &self, account_id: &str, invoice_id: &str, ) -> Result<Response<GetAccountBillingInvoiceResponse>, ClientError>

Get invoice details.

This function performs a GET to the /accounts/{accountId}/billing/invoices/{invoiceId} endpoint.

Get detailed information about a specific invoice.
To retrieve a regular Zoom account’s invoice details or a master account’s invoice details, provide me as the value of accountId path parameter. To list a sub account’s invoice details, provide the account ID of the sub account in the accountId path parameter.

Prerequisites:

  • Account must be enrolled in Pro or a higher plan.

Scope:billing:master

Rate Limit Label: Heavy
Additional Rate Limit: You can make one API request every thirty minutes until the daily limit is reached. This API has a daily limit of 100 requests per account.

Source

pub async fn download_invoice_pdf( &self, invoice_id: &str, ) -> Result<Response<()>, ClientError>

Download an invoice file.

This function performs a GET to the /api/download/billing/invoices/{invoiceId} endpoint.

Use this API to download a Zoom account’s billed invoice file, in PDF format. To get an account’s invoice ID, use the List billing invoices API.

Scopes: billing:master
Rate Limits:

  • You can make one request to this API every 30 minutes until the daily limit is reached.
  • This API has a daily limit of 100 requests per account.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,