Skip to content

Commit

Permalink
chore: fix openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif-m committed Dec 5, 2024
1 parent dd680f5 commit 2e235da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -12433,7 +12433,7 @@
"details_layout": {
"allOf": [
{
"$ref": "#/components/schemas/api_enums.PaymentLinkDetailsLayout"
"$ref": "#/components/schemas/PaymentLinkDetailsLayout"
}
],
"nullable": true
Expand Down Expand Up @@ -12523,7 +12523,7 @@
"details_layout": {
"allOf": [
{
"$ref": "#/components/schemas/api_enums.PaymentLinkDetailsLayout"
"$ref": "#/components/schemas/PaymentLinkDetailsLayout"
}
],
"nullable": true
Expand Down
4 changes: 2 additions & 2 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -15290,7 +15290,7 @@
"details_layout": {
"allOf": [
{
"$ref": "#/components/schemas/api_enums.PaymentLinkDetailsLayout"
"$ref": "#/components/schemas/PaymentLinkDetailsLayout"
}
],
"nullable": true
Expand Down Expand Up @@ -15380,7 +15380,7 @@
"details_layout": {
"allOf": [
{
"$ref": "#/components/schemas/api_enums.PaymentLinkDetailsLayout"
"$ref": "#/components/schemas/PaymentLinkDetailsLayout"
}
],
"nullable": true
Expand Down
2 changes: 2 additions & 0 deletions crates/api_models/src/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2706,6 +2706,7 @@ pub struct PaymentLinkConfigRequest {
/// Configurations for the background image for details section
pub background_image: Option<PaymentLinkBackgroundImageConfig>,
/// Custom layout for details section
#[schema(value_type = Option<PaymentLinkDetailsLayout>, example = "layout1")]
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
}

Expand Down Expand Up @@ -2772,6 +2773,7 @@ pub struct PaymentLinkConfig {
/// Configurations for the background image for details section
pub background_image: Option<PaymentLinkBackgroundImageConfig>,
/// Custom layout for details section
#[schema(value_type = Option<PaymentLinkDetailsLayout>, example = "layout1")]
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
/// Toggle for HyperSwitch branding visibility
pub branding_visibility: Option<bool>,
Expand Down

0 comments on commit 2e235da

Please sign in to comment.