Skip to content

Commit

Permalink
fix(refunds): remove to schema from refund aggregate response and exc…
Browse files Browse the repository at this point in the history
…lude it from open api documentation (#6405)

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sandeep Kumar <[email protected]>
Co-authored-by: Sai Harsha Vardhan <[email protected]>
Co-authored-by: Shankar Singh C <[email protected]>
Co-authored-by: spritianeja03 <[email protected]>
Co-authored-by: Spriti Aneja <[email protected]>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Kashif <[email protected]>
  • Loading branch information
9 people authored Nov 5, 2024
1 parent a6b3f86 commit fa4d2cb
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 35 deletions.
16 changes: 0 additions & 16 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -17045,22 +17045,6 @@
}
}
},
"RefundAggregateResponse": {
"type": "object",
"required": [
"status_with_count"
],
"properties": {
"status_with_count": {
"type": "object",
"description": "The list of refund status with their count",
"additionalProperties": {
"type": "integer",
"format": "int64"
}
}
}
},
"RefundErrorDetails": {
"type": "object",
"required": [
Expand Down
16 changes: 0 additions & 16 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -21824,22 +21824,6 @@
}
}
},
"RefundAggregateResponse": {
"type": "object",
"required": [
"status_with_count"
],
"properties": {
"status_with_count": {
"type": "object",
"description": "The list of refund status with their count",
"additionalProperties": {
"type": "integer",
"format": "int64"
}
}
}
},
"RefundListRequest": {
"allOf": [
{
Expand Down
2 changes: 1 addition & 1 deletion crates/api_models/src/refunds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ pub struct RefundListFilters {
pub refund_status: Vec<enums::RefundStatus>,
}

#[derive(Clone, Debug, serde::Serialize, ToSchema)]
#[derive(Clone, Debug, serde::Serialize)]
pub struct RefundAggregateResponse {
/// The list of refund status with their count
pub status_with_count: HashMap<enums::RefundStatus, i64>,
Expand Down
1 change: 0 additions & 1 deletion crates/openapi/src/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::payment_methods::PaymentMethodCollectLinkResponse,
api_models::refunds::RefundListRequest,
api_models::refunds::RefundListResponse,
api_models::refunds::RefundAggregateResponse,
api_models::payments::AmountFilter,
api_models::mandates::MandateRevokedResponse,
api_models::mandates::MandateResponse,
Expand Down
1 change: 0 additions & 1 deletion crates/openapi/src/openapi_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::payment_methods::PaymentMethodCollectLinkResponse,
api_models::refunds::RefundListRequest,
api_models::refunds::RefundListResponse,
api_models::refunds::RefundAggregateResponse,
api_models::payments::AmountFilter,
api_models::mandates::MandateRevokedResponse,
api_models::mandates::MandateResponse,
Expand Down

0 comments on commit fa4d2cb

Please sign in to comment.