paymentlib/nswcpp/dto/
contact_center_payment_completion_call.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::nswcpp::enums::status::Status;
use crate::nswcpp::jsonb::gateway_response::GatewayResponse;
use crate::nswcpp::jsonb::payment_components::PaymentComponents;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct ContactCenterPaymentCompletionCall {
    pub payment_reference: String,
    pub status: Status,
    pub payment_completion_reference: String,
    pub requested_amount: f64,
    pub amount: f64,
    pub total_surcharge_amount: f64,
    pub is_recurring_payment: bool,
    pub payment_components: Vec<PaymentComponents>,
    pub agency_transaction_id: String,
    pub calling_system: String,
    pub customer_reference: String,
    pub gateway_response: Vec<GatewayResponse>,
}