rust_nicepay/models/snap/
create_vacct_model.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct CreateVacctModel {
6 pub partner_service_id: Option<String>,
7 pub customer_no: Option<String>,
8 pub virtual_account_no: Option<String>,
9 pub virtual_account_name: Option<String>,
10 pub trx_id: Option<String>,
11 pub total_amount: Option<TotalAmount>,
12 pub additional_info: Option<AdditionalInfo>,
13}
14
15#[derive(Serialize, Deserialize)]
16#[serde(rename_all = "camelCase")]
17pub struct AdditionalInfo {
18 pub bank_cd: String,
19 pub goods_nm: String,
20 pub db_process_url: String,
21 pub vacct_valid_dt: String,
22 pub vacct_valid_tm: String,
23 pub ms_id: String,
24 pub ms_fee: String,
25 pub ms_fee_type: String,
26 pub mb_fee: String,
27 pub mb_fee_type: String,
28}
29
30#[derive(Serialize, Deserialize)]
31pub struct TotalAmount {
32 pub value: String,
33 pub currency: String,
34}