pub struct PaymentResponse {
pub outcome: TransactionOutcome,
pub result_code: String,
pub pan: String,
pub transaction_type: String,
pub auth_code: String,
pub host_date_time: String,
pub error_description: String,
pub card_type: String,
pub acquirer_id: String,
pub stan: String,
pub online_id: String,
pub currency: DccInfo,
}Expand description
Raw payment-family response ('E' without DCC, 'V' with DCC). Reused for reversal /
card verification / pre-auth closure which share the layout.
Fields§
§outcome: TransactionOutcomeNormalized outcome.
result_code: StringRaw result code ("00"/"01"/"05"/"09").
pan: StringPAN (positive), raw.
transaction_type: StringTransaction/entry type (positive), raw "ICC"/"MAG"/…
auth_code: StringAuthorization code (positive), raw.
host_date_time: StringHost date/time (positive), raw DDDHHMM.
error_description: StringError description (negative), raw.
card_type: StringCard type (common), raw "1"/"2"/"3".
acquirer_id: StringAcquirer id (common), raw.
stan: StringSTAN (common), raw.
online_id: StringOnline id (common), raw.
currency: DccInfoDCC block (only when a 'V' response carried one).
Trait Implementations§
Source§impl Clone for PaymentResponse
impl Clone for PaymentResponse
Source§fn clone(&self) -> PaymentResponse
fn clone(&self) -> PaymentResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaymentResponse
impl Debug for PaymentResponse
Source§impl Default for PaymentResponse
impl Default for PaymentResponse
Source§fn default() -> PaymentResponse
fn default() -> PaymentResponse
Returns the “default value” for a type. Read more
impl Eq for PaymentResponse
Source§impl PartialEq for PaymentResponse
impl PartialEq for PaymentResponse
impl StructuralPartialEq for PaymentResponse
Auto Trait Implementations§
impl Freeze for PaymentResponse
impl RefUnwindSafe for PaymentResponse
impl Send for PaymentResponse
impl Sync for PaymentResponse
impl Unpin for PaymentResponse
impl UnsafeUnpin for PaymentResponse
impl UnwindSafe for PaymentResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more