paymentlib/nswcpp/dto/
payment_completion_call_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use serde::{Deserialize, Serialize};

use crate::nswcpp::jsonb::b_pay::BPay;
use crate::nswcpp::jsonb::card::Card;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct PaymentCompletionCallRequest {
    pub payment_method: String,
    pub payment_reference: String,
    pub payment_completion_reference: String,
    pub bank_reference: String,
    pub amount: f64,
    pub surcharge: f64,
    pub surcharge_gst: f64,
    pub agency_transaction_id: String,
    pub account_token: String,
    pub email_address: String,
    pub card: Option<Vec<Card>>,
    pub b_pay: Option<Vec<BPay>>,
}