collab: Enable automatic tax calculation for all new subscriptions (#34720)
Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
parent
70bde54a2c
commit
4bdac8026c
3 changed files with 26 additions and 8 deletions
|
@ -73,6 +73,7 @@ pub enum StripeCancellationDetailsReason {
|
|||
pub struct StripeCreateSubscriptionParams {
|
||||
pub customer: StripeCustomerId,
|
||||
pub items: Vec<StripeCreateSubscriptionItems>,
|
||||
pub automatic_tax: Option<StripeAutomaticTax>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -224,6 +225,11 @@ pub struct StripeTaxIdCollection {
|
|||
pub enabled: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct StripeAutomaticTax {
|
||||
pub enabled: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct StripeCheckoutSession {
|
||||
pub url: Option<String>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue