pub struct MockAccountBillingVNextApi {
AccountBillingVNextApi_expectations: MockAccountBillingVNextApi_AccountBillingVNextApi,
}Fields§
§AccountBillingVNextApi_expectations: MockAccountBillingVNextApi_AccountBillingVNextApiImplementations§
Source§impl MockAccountBillingVNextApi
impl MockAccountBillingVNextApi
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 MockAccountBillingVNextApi
impl MockAccountBillingVNextApi
Sourcepub fn expect_add_credit_via_bit_pay(&mut self) -> &mut Expectation
pub fn expect_add_credit_via_bit_pay(&mut self) -> &mut Expectation
Create an Expectation for mocking the add_credit_via_bit_pay method
Sourcepub fn expect_create_portal_session(&mut self) -> &mut Expectation
pub fn expect_create_portal_session(&mut self) -> &mut Expectation
Create an Expectation for mocking the create_portal_session method
Create an Expectation for mocking the create_premium_checkout_session method
Sourcepub fn expect_create_subscription(&mut self) -> &mut Expectation
pub fn expect_create_subscription(&mut self) -> &mut Expectation
Create an Expectation for mocking the create_subscription method
Sourcepub fn expect_get_applicable_discounts(&mut self) -> &mut Expectation
pub fn expect_get_applicable_discounts(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_applicable_discounts method
Sourcepub fn expect_get_credit(&mut self) -> &mut Expectation
pub fn expect_get_credit(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_credit method
Sourcepub fn expect_get_license(&mut self) -> &mut Expectation
pub fn expect_get_license(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_license method
Sourcepub fn expect_get_payment_method(&mut self) -> &mut Expectation
pub fn expect_get_payment_method(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_payment_method method
Sourcepub fn expect_get_subscription(&mut self) -> &mut Expectation
pub fn expect_get_subscription(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_subscription method
Sourcepub fn expect_reinstate_subscription(&mut self) -> &mut Expectation
pub fn expect_reinstate_subscription(&mut self) -> &mut Expectation
Create an Expectation for mocking the reinstate_subscription method
Sourcepub fn expect_update_payment_method(&mut self) -> &mut Expectation
pub fn expect_update_payment_method(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_payment_method method
Sourcepub fn expect_update_subscription_storage(&mut self) -> &mut Expectation
pub fn expect_update_subscription_storage(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_subscription_storage method
Create an Expectation for mocking the upgrade_premium_to_organization method
Trait Implementations§
Source§impl AccountBillingVNextApi for MockAccountBillingVNextApi
impl AccountBillingVNextApi for MockAccountBillingVNextApi
Source§fn add_credit_via_bit_pay<'a, 'life0, 'async_trait>(
&'life0 self,
bit_pay_credit_request: Option<BitPayCreditRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn add_credit_via_bit_pay<'a, 'life0, 'async_trait>(
&'life0 self,
bit_pay_credit_request: Option<BitPayCreditRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /account/billing/vnext/credit/bitpay
Source§fn create_portal_session<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_portal_session<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /account/billing/vnext/portal-session
POST /account/billing/vnext/premium/checkout
Source§fn create_subscription<'a, 'life0, 'async_trait>(
&'life0 self,
premium_cloud_hosted_subscription_request: Option<PremiumCloudHostedSubscriptionRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn create_subscription<'a, 'life0, 'async_trait>(
&'life0 self,
premium_cloud_hosted_subscription_request: Option<PremiumCloudHostedSubscriptionRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /account/billing/vnext/subscription
Source§fn get_applicable_discounts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_applicable_discounts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /account/billing/vnext/discounts
Source§fn get_credit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_credit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /account/billing/vnext/credit
Source§fn get_license<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_license<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /account/billing/vnext/license
Source§fn get_payment_method<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_payment_method<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /account/billing/vnext/payment-method
Source§fn get_subscription<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_subscription<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /account/billing/vnext/subscription
Source§fn reinstate_subscription<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reinstate_subscription<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /account/billing/vnext/subscription/reinstate
Source§fn update_payment_method<'a, 'life0, 'async_trait>(
&'life0 self,
tokenized_payment_method_request: Option<TokenizedPaymentMethodRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_payment_method<'a, 'life0, 'async_trait>(
&'life0 self,
tokenized_payment_method_request: Option<TokenizedPaymentMethodRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /account/billing/vnext/payment-method
Source§fn update_subscription_storage<'a, 'life0, 'async_trait>(
&'life0 self,
storage_update_request: Option<StorageUpdateRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_subscription_storage<'a, 'life0, 'async_trait>(
&'life0 self,
storage_update_request: Option<StorageUpdateRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /account/billing/vnext/subscription/storage
POST /account/billing/vnext/upgrade
Source§impl Debug for MockAccountBillingVNextApi
impl Debug for MockAccountBillingVNextApi
Auto Trait Implementations§
impl Freeze for MockAccountBillingVNextApi
impl RefUnwindSafe for MockAccountBillingVNextApi
impl Send for MockAccountBillingVNextApi
impl Sync for MockAccountBillingVNextApi
impl Unpin for MockAccountBillingVNextApi
impl UnsafeUnpin for MockAccountBillingVNextApi
impl UnwindSafe for MockAccountBillingVNextApi
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