From 66dba1dff0b45a07998c503e2c664c3c9c230031 Mon Sep 17 00:00:00 2001 From: Sahkal Poddar Date: Mon, 3 Jun 2024 16:31:23 +0530 Subject: [PATCH] refactor(connector): fixed open-api specs --- crates/api_models/src/payments.rs | 2 ++ openapi/openapi_spec.json | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 1d4404f2243f..8c9c56f02382 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -4083,6 +4083,7 @@ pub struct GpayTransactionInfo { /// The total price status (ex: 'FINAL') pub total_price_status: String, /// The total price + #[schema(value_type = String, example = "38.02")] pub total_price: StringMajorUnit, } @@ -4439,6 +4440,7 @@ pub struct AmountInfo { #[serde(rename = "type")] pub total_type: Option, /// The total amount for the payment in majot unit string (Ex: 38.02) + #[schema(value_type = String, example = "38.02")] pub amount: StringMajorUnit, } diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.json index 620b8d29b013..5b4860e99710 100644 --- a/openapi/openapi_spec.json +++ b/openapi/openapi_spec.json @@ -5001,7 +5001,8 @@ }, "amount": { "type": "string", - "description": "The total amount for the payment" + "description": "The total amount for the payment in majot unit string (Ex: 38.02)", + "example": "38.02" } } }, @@ -9890,7 +9891,8 @@ }, "total_price": { "type": "string", - "description": "The total price" + "description": "The total price", + "example": "38.02" } } },