pub struct BillingStatus {
pub uses_shopify_billing: bool,
pub third_party_detected: Vec<String>,
pub has_subscription: bool,
pub has_usage_billing: bool,
pub has_one_time: bool,
}Expand description
Billing compliance status
Fields§
§uses_shopify_billing: boolWhether Shopify Billing API is used
third_party_detected: Vec<String>List of third-party payment providers detected
has_subscription: boolWhether subscription billing is implemented
has_usage_billing: boolWhether usage-based billing is implemented
has_one_time: boolWhether one-time charges are implemented
Implementations§
Source§impl BillingStatus
impl BillingStatus
Sourcepub fn is_compliant(&self) -> bool
pub fn is_compliant(&self) -> bool
Check if billing is compliant (uses Shopify, no third-party)
Sourcepub fn has_billing(&self) -> bool
pub fn has_billing(&self) -> bool
Check if any billing is implemented
Trait Implementations§
Source§impl Clone for BillingStatus
impl Clone for BillingStatus
Source§fn clone(&self) -> BillingStatus
fn clone(&self) -> BillingStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BillingStatus
impl Debug for BillingStatus
Source§impl Default for BillingStatus
impl Default for BillingStatus
Source§fn default() -> BillingStatus
fn default() -> BillingStatus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BillingStatus
impl RefUnwindSafe for BillingStatus
impl Send for BillingStatus
impl Sync for BillingStatus
impl Unpin for BillingStatus
impl UnwindSafe for BillingStatus
Blanket Implementations§
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
Mutably borrows from an owned value. Read more