Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(refunds): remove to schema from refund aggregate response and exclude it from open api documentation #6405

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
16 changes: 0 additions & 16 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -18158,22 +18158,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 @@ -21907,22 +21907,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 @@ -492,7 +492,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 @@ -432,7 +432,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
Loading