pub trait ProviderBillingVNextApi: Send + Sync {
// Required methods
fn add_credit_via_bit_pay<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
bit_pay_credit_request: Option<BitPayCreditRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AddCreditViaBitPayError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_billing_address<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetBillingAddressError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_credit<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetCreditError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_payment_method<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetPaymentMethodError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_warnings<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetWarningsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn update_billing_address<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
billing_address_request: Option<BillingAddressRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateBillingAddressError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn update_payment_method<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
tokenized_payment_method_request: Option<TokenizedPaymentMethodRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdatePaymentMethodError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn add_credit_via_bit_pay<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
bit_pay_credit_request: Option<BitPayCreditRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AddCreditViaBitPayError>>> + 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,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
bit_pay_credit_request: Option<BitPayCreditRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AddCreditViaBitPayError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{providerId}/billing/vnext/credit/bitpay
Sourcefn get_billing_address<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetBillingAddressError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_billing_address<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetBillingAddressError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/billing/vnext/address
Sourcefn get_credit<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetCreditError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_credit<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetCreditError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/billing/vnext/credit
Sourcefn get_payment_method<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetPaymentMethodError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_payment_method<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetPaymentMethodError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/billing/vnext/payment-method
Sourcefn get_warnings<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetWarningsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_warnings<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetWarningsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/billing/vnext/warnings
Sourcefn update_billing_address<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
billing_address_request: Option<BillingAddressRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateBillingAddressError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_billing_address<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
billing_address_request: Option<BillingAddressRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateBillingAddressError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /providers/{providerId}/billing/vnext/address
Sourcefn update_payment_method<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
tokenized_payment_method_request: Option<TokenizedPaymentMethodRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdatePaymentMethodError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_payment_method<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: &'a str,
id: Option<Uuid>,
name: Option<&'a str>,
business_name: Option<&'a str>,
business_address1: Option<&'a str>,
business_address2: Option<&'a str>,
business_address3: Option<&'a str>,
business_country: Option<&'a str>,
business_tax_number: Option<&'a str>,
billing_email: Option<&'a str>,
billing_phone: Option<&'a str>,
status: Option<ProviderStatusType>,
use_events: Option<bool>,
type: Option<ProviderType>,
enabled: Option<bool>,
creation_date: Option<String>,
revision_date: Option<String>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
discount_id: Option<&'a str>,
tokenized_payment_method_request: Option<TokenizedPaymentMethodRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdatePaymentMethodError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /providers/{providerId}/billing/vnext/payment-method