mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
41 lines
1.2 KiB
Rust
41 lines
1.2 KiB
Rust
use diesel::{Identifiable, Insertable, Queryable};
|
|
|
|
use crate::schema::locker_mock_up;
|
|
|
|
#[derive(Clone, Debug, Eq, Identifiable, Queryable, PartialEq)]
|
|
#[diesel(table_name = locker_mock_up)]
|
|
pub struct LockerMockUp {
|
|
pub id: i32,
|
|
pub card_id: String,
|
|
pub external_id: String,
|
|
pub card_fingerprint: String,
|
|
pub card_global_fingerprint: String,
|
|
pub merchant_id: String,
|
|
pub card_number: String,
|
|
pub card_exp_year: String,
|
|
pub card_exp_month: String,
|
|
pub name_on_card: Option<String>,
|
|
pub nickname: Option<String>,
|
|
pub customer_id: Option<String>,
|
|
pub duplicate: Option<bool>,
|
|
pub card_cvc: Option<String>,
|
|
pub payment_method_id: Option<String>,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Default, Insertable, router_derive::DebugAsDisplay)]
|
|
#[diesel(table_name = locker_mock_up)]
|
|
pub struct LockerMockUpNew {
|
|
pub card_id: String,
|
|
pub external_id: String,
|
|
pub card_fingerprint: String,
|
|
pub card_global_fingerprint: String,
|
|
pub merchant_id: String,
|
|
pub card_number: String,
|
|
pub card_exp_year: String,
|
|
pub card_exp_month: String,
|
|
pub name_on_card: Option<String>,
|
|
pub card_cvc: Option<String>,
|
|
pub payment_method_id: Option<String>,
|
|
pub customer_id: Option<String>,
|
|
}
|