From 5a8c1daf31228187097fe02b820ad0e36f7648a6 Mon Sep 17 00:00:00 2001 From: Zack Fu Zi Xiang Date: Fri, 19 Jul 2024 21:58:40 +0800 Subject: [PATCH] chore: add shared entitity subscription plan detail --- libs/shared-entity/src/dto/billing_dto.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libs/shared-entity/src/dto/billing_dto.rs b/libs/shared-entity/src/dto/billing_dto.rs index 8be28fe0..4aebc401 100644 --- a/libs/shared-entity/src/dto/billing_dto.rs +++ b/libs/shared-entity/src/dto/billing_dto.rs @@ -134,3 +134,16 @@ pub struct SetSubscriptionRecurringInterval { pub plan: SubscriptionPlan, pub recurring_interval: RecurringInterval, } + +#[derive(Serialize, Deserialize, Debug)] +pub struct SubscriptionPlanDetail { + pub currency: Currency, + pub price_cents: i64, + pub plan: SubscriptionPlan, +} + +#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq, Hash, Default)] +pub enum Currency { + #[default] + USD, +}