use std::collections::HashMap;
use serde::{Deserialize, Serialize};
pub type Notes = HashMap<String, String>;
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize)]
pub struct NotesUpdate {
pub notes: Notes,
}
impl NotesUpdate {
pub fn new(notes: Notes) -> Self {
Self { notes }
}
}
impl From<Notes> for NotesUpdate {
fn from(notes: Notes) -> Self {
Self { notes }
}
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum PaymentMethod {
Card,
Netbanking,
Wallet,
Upi,
Emi,
Paylater,
Cardless,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum EntityMode {
Test,
Live,
#[serde(other)]
Unknown,
}