feat(Connector): [Noon] Add reference id in Order Struct (#1371)

This commit is contained in:
SamraatBansal
2023-06-07 13:34:05 +05:30
committed by GitHub
parent 5c2232b737
commit f0cd5ee20d

View File

@ -37,6 +37,7 @@ pub struct NoonOrder {
currency: Option<storage_models::enums::Currency>,
channel: NoonChannels,
category: Option<String>,
reference: String,
//Short description of the order.
name: String,
}
@ -142,6 +143,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for NoonPaymentsRequest {
currency,
channel: NoonChannels::Web,
category,
reference: item.payment_id.clone(),
name,
};
let payment_action = if item.request.is_auto_capture()? {