Skip to content

Commit

Permalink
refactor(router): updated openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
prajjwalkumar17 committed Oct 18, 2023
1 parent d338a66 commit f8c1c2d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion crates/router/src/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::customers::CustomerResponse,
api_models::admin::AcceptedCountries,
api_models::admin::AcceptedCurrencies,
api_models::enums::StraightThroughAlgorithm,
api_models::admin::StraightThroughAlgorithm,
api_models::enums::PaymentType,
api_models::enums::PaymentMethod,
api_models::enums::PaymentMethodType,
Expand Down
40 changes: 27 additions & 13 deletions openapi/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8658,7 +8658,7 @@
"routing": {
"allOf": [
{
"$ref": "#/components/schemas/RoutingAlgorithm"
"$ref": "#/components/schemas/StraightThroughAlgorithm"
}
],
"nullable": true
Expand Down Expand Up @@ -9022,7 +9022,7 @@
"routing": {
"allOf": [
{
"$ref": "#/components/schemas/RoutingAlgorithm"
"$ref": "#/components/schemas/StraightThroughAlgorithm"
}
],
"nullable": true
Expand Down Expand Up @@ -10946,17 +10946,6 @@
}
}
},
"RoutingAlgorithm": {
"type": "string",
"description": "The routing algorithm to be used to process the incoming request from merchant to outgoing payment processor or payment method. The default is 'Custom'",
"enum": [
"round_robin",
"max_conversion",
"min_cost",
"custom"
],
"example": "custom"
},
"SamsungPayWalletData": {
"type": "object",
"required": [
Expand Down Expand Up @@ -11211,6 +11200,31 @@
}
}
},
"StraightThroughAlgorithm": {
"oneOf": [
{
"type": "object",
"required": [
"type",
"data"
],
"properties": {
"type": {
"type": "string",
"enum": [
"single"
]
},
"data": {
"$ref": "#/components/schemas/api_enums.RoutableConnectors"
}
}
}
],
"discriminator": {
"propertyName": "type"
}
},
"SwishQrData": {
"type": "object"
},
Expand Down

0 comments on commit f8c1c2d

Please sign in to comment.