Skip to content

Commit 20fcffb

Browse files
committed
address comments
1 parent ba0cab3 commit 20fcffb

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

crates/api_models/src/payments.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,7 @@ pub struct ExternalAuthenticationDetailsResponse {
25882588
/// Electronic Commerce Indicator (eci)
25892589
pub electronic_commerce_indicator: Option<String>,
25902590
/// Authentication Status
2591-
#[schema(value_type = Option<AuthenticationStatus>)]
2591+
#[schema(value_type = AuthenticationStatus)]
25922592
pub status: enums::AuthenticationStatus,
25932593
/// DS Transaction ID
25942594
pub ds_transaction_id: Option<String>,
@@ -3487,7 +3487,7 @@ pub struct SdkInformation {
34873487
/// Identifies the vendor and version for the 3DS SDK that is integrated in a 3DS Requestor App
34883488
pub sdk_reference_number: String,
34893489
/// Indicates maximum amount of time in minutes
3490-
pub sdk_max_timeout: i8,
3490+
pub sdk_max_timeout: u8,
34913491
}
34923492

34933493
#[derive(Clone, Default, Debug, serde::Serialize, serde::Deserialize, Eq, PartialEq, ToSchema)]

openapi/openapi_spec.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8115,6 +8115,9 @@
81158115
},
81168116
"ExternalAuthenticationDetailsResponse": {
81178117
"type": "object",
8118+
"required": [
8119+
"status"
8120+
],
81188121
"properties": {
81198122
"authentication_flow": {
81208123
"allOf": [
@@ -8130,12 +8133,7 @@
81308133
"nullable": true
81318134
},
81328135
"status": {
8133-
"allOf": [
8134-
{
8135-
"$ref": "#/components/schemas/AuthenticationStatus"
8136-
}
8137-
],
8138-
"nullable": true
8136+
"$ref": "#/components/schemas/AuthenticationStatus"
81398137
},
81408138
"ds_transaction_id": {
81418139
"type": "string",
@@ -16208,7 +16206,8 @@
1620816206
"sdk_max_timeout": {
1620916207
"type": "integer",
1621016208
"format": "int32",
16211-
"description": "Indicates maximum amount of time in minutes"
16209+
"description": "Indicates maximum amount of time in minutes",
16210+
"minimum": 0
1621216211
}
1621316212
}
1621416213
},

0 commit comments

Comments
 (0)