pub struct MockPreviewInvoiceApi {
PreviewInvoiceApi_expectations: MockPreviewInvoiceApi_PreviewInvoiceApi,
}Fields§
§PreviewInvoiceApi_expectations: MockPreviewInvoiceApi_PreviewInvoiceApiImplementations§
Source§impl MockPreviewInvoiceApi
impl MockPreviewInvoiceApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockPreviewInvoiceApi
impl MockPreviewInvoiceApi
Sourcepub fn expect_preview_organization_subscription_plan_change_tax(
&mut self,
) -> &mut Expectation
pub fn expect_preview_organization_subscription_plan_change_tax( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the preview_organization_subscription_plan_change_tax method
Sourcepub fn expect_preview_organization_subscription_purchase_tax(
&mut self,
) -> &mut Expectation
pub fn expect_preview_organization_subscription_purchase_tax( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the preview_organization_subscription_purchase_tax method
Sourcepub fn expect_preview_organization_subscription_update_tax(
&mut self,
) -> &mut Expectation
pub fn expect_preview_organization_subscription_update_tax( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the preview_organization_subscription_update_tax method
Create an Expectation for mocking the preview_premium_subscription_purchase_tax method
Create an Expectation for mocking the preview_premium_upgrade_proration method
Trait Implementations§
Source§impl Debug for MockPreviewInvoiceApi
impl Debug for MockPreviewInvoiceApi
Source§impl Default for MockPreviewInvoiceApi
impl Default for MockPreviewInvoiceApi
Source§impl PreviewInvoiceApi for MockPreviewInvoiceApi
impl PreviewInvoiceApi for MockPreviewInvoiceApi
Source§fn preview_organization_subscription_plan_change_tax<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: &'a str,
preview_organization_subscription_plan_change_tax_request: Option<PreviewOrganizationSubscriptionPlanChangeTaxRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn preview_organization_subscription_plan_change_tax<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: &'a str,
preview_organization_subscription_plan_change_tax_request: Option<PreviewOrganizationSubscriptionPlanChangeTaxRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /billing/preview-invoice/organizations/{organizationId}/subscription/plan-change
Source§fn preview_organization_subscription_purchase_tax<'a, 'life0, 'async_trait>(
&'life0 self,
preview_organization_subscription_purchase_tax_request: Option<PreviewOrganizationSubscriptionPurchaseTaxRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn preview_organization_subscription_purchase_tax<'a, 'life0, 'async_trait>(
&'life0 self,
preview_organization_subscription_purchase_tax_request: Option<PreviewOrganizationSubscriptionPurchaseTaxRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /billing/preview-invoice/organizations/subscriptions/purchase
Source§fn preview_organization_subscription_update_tax<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: &'a str,
preview_organization_subscription_update_tax_request: Option<PreviewOrganizationSubscriptionUpdateTaxRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn preview_organization_subscription_update_tax<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: &'a str,
preview_organization_subscription_update_tax_request: Option<PreviewOrganizationSubscriptionUpdateTaxRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /billing/preview-invoice/organizations/{organizationId}/subscription/update
POST /billing/preview-invoice/premium/subscriptions/purchase
POST /billing/preview-invoice/premium/subscriptions/upgrade
Auto Trait Implementations§
impl Freeze for MockPreviewInvoiceApi
impl RefUnwindSafe for MockPreviewInvoiceApi
impl Send for MockPreviewInvoiceApi
impl Sync for MockPreviewInvoiceApi
impl Unpin for MockPreviewInvoiceApi
impl UnsafeUnpin for MockPreviewInvoiceApi
impl UnwindSafe for MockPreviewInvoiceApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more