chore: support cancellation reason

This commit is contained in:
Zack Fu Zi Xiang 2024-07-17 12:24:20 +08:00
parent 53cbe992bf
commit 4987884b58
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,8 @@ pub struct WorkspaceUsageAndLimit {
pub struct SubscriptionCancelRequest {
pub workspace_id: String,
pub plan: SubscriptionPlan,
pub sync: bool, // if true, this request will block until stripe has sent the cancelation webhook
pub sync: bool, // if true, this request will block until stripe has sent the cancellation webhook
pub reason: Option<String>,
}
#[derive(Serialize, Deserialize, Debug)]