mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
Co-authored-by: Rachit Naithani <81706961+racnan@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sakil Mostak <73734619+Sakilmostak@users.noreply.github.com> Co-authored-by: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com> Co-authored-by: Arjun Karthik <m.arjunkarthik@gmail.com> Co-authored-by: Brian Silah <71752651+unpervertedkid@users.noreply.github.com>
29 lines
778 B
Rust
29 lines
778 B
Rust
use common_utils::pii;
|
|
use masking::Secret;
|
|
pub mod dashboard_metadata;
|
|
|
|
#[derive(serde::Deserialize, Debug, Clone, serde::Serialize)]
|
|
pub struct ConnectAccountRequest {
|
|
pub email: pii::Email,
|
|
pub password: Secret<String>,
|
|
}
|
|
|
|
#[derive(serde::Serialize, Debug, Clone)]
|
|
pub struct ConnectAccountResponse {
|
|
pub token: Secret<String>,
|
|
pub merchant_id: String,
|
|
pub name: Secret<String>,
|
|
pub email: pii::Email,
|
|
pub verification_days_left: Option<i64>,
|
|
pub user_role: String,
|
|
//this field is added for audit/debug reasons
|
|
#[serde(skip_serializing)]
|
|
pub user_id: String,
|
|
}
|
|
|
|
#[derive(serde::Deserialize, Debug, serde::Serialize)]
|
|
pub struct ChangePasswordRequest {
|
|
pub new_password: Secret<String>,
|
|
pub old_password: Secret<String>,
|
|
}
|