refactor(api_models): add created_at and updated_at fields in RefundResponse (#387)

This commit is contained in:
Narayan Bhat
2023-01-16 19:05:57 +05:30
committed by GitHub
parent 902a8b5ee9
commit 9fbe738427
2 changed files with 6 additions and 25 deletions

View File

@ -76,6 +76,10 @@ pub struct RefundResponse {
#[schema(value_type = Option<Object>)]
pub metadata: Option<serde_json::Value>,
pub error_message: Option<String>,
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub created_at: Option<PrimitiveDateTime>,
#[serde(with = "common_utils::custom_serde::iso8601::option")]
pub updated_at: Option<PrimitiveDateTime>,
}
#[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)]