diff --git a/src/resources/subscription_ext.rs b/src/resources/subscription_ext.rs index c246564d5..99cf9feb0 100644 --- a/src/resources/subscription_ext.rs +++ b/src/resources/subscription_ext.rs @@ -1,5 +1,6 @@ use serde::Serialize; +use crate::CancellationDetails; use crate::client::{Client, Response}; use crate::ids::SubscriptionId; use crate::params::SearchList; @@ -8,12 +9,16 @@ use crate::resources::{CreateSubscriptionItems, Subscription}; #[derive(Clone, Debug, Default, Serialize)] pub struct CancelSubscription { #[serde(skip_serializing_if = "Option::is_none")] - pub at_period_end: Option, + pub cancellation_details: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub invoice_now: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub prorate: Option, } impl CancelSubscription { pub fn new() -> CancelSubscription { - CancelSubscription { at_period_end: None } + CancelSubscription { cancellation_details: None, invoice_now: None, prorate: None } } }