From 4987884b5803fabbacdcf578a2e983396d526e4d Mon Sep 17 00:00:00 2001 From: Zack Fu Zi Xiang Date: Wed, 17 Jul 2024 12:24:20 +0800 Subject: [PATCH] chore: support cancellation reason --- libs/shared-entity/src/dto/billing_dto.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/shared-entity/src/dto/billing_dto.rs b/libs/shared-entity/src/dto/billing_dto.rs index 5eb65198..8be28fe0 100644 --- a/libs/shared-entity/src/dto/billing_dto.rs +++ b/libs/shared-entity/src/dto/billing_dto.rs @@ -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, } #[derive(Serialize, Deserialize, Debug)]