Skip to content

Commit

Permalink
refactor(connector): fixed open-api specs
Browse files Browse the repository at this point in the history
  • Loading branch information
sahkal committed Jun 3, 2024
1 parent 3c5a29f commit 66dba1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions crates/api_models/src/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4083,6 +4083,7 @@ pub struct GpayTransactionInfo {
/// The total price status (ex: 'FINAL')
pub total_price_status: String,
/// The total price
#[schema(value_type = String, example = "38.02")]
pub total_price: StringMajorUnit,
}

Expand Down Expand Up @@ -4439,6 +4440,7 @@ pub struct AmountInfo {
#[serde(rename = "type")]
pub total_type: Option<String>,
/// The total amount for the payment in majot unit string (Ex: 38.02)
#[schema(value_type = String, example = "38.02")]
pub amount: StringMajorUnit,
}

Expand Down
6 changes: 4 additions & 2 deletions openapi/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5001,7 +5001,8 @@
},
"amount": {
"type": "string",
"description": "The total amount for the payment"
"description": "The total amount for the payment in majot unit string (Ex: 38.02)",
"example": "38.02"
}
}
},
Expand Down Expand Up @@ -9890,7 +9891,8 @@
},
"total_price": {
"type": "string",
"description": "The total price"
"description": "The total price",
"example": "38.02"
}
}
},
Expand Down

0 comments on commit 66dba1d

Please sign in to comment.