Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): [cybersource] add connector_customer_id to TransactionResponse #5549

Closed
1 change: 1 addition & 0 deletions connector-template/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ impl<F,T> TryFrom<types::ResponseRouterData<F, {{project-name | downcase | pasca
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ impl<F> TryFrom<ResponseRouterData<F, BamboraResponse, PaymentsAuthorizeData, Pa
connector_response_reference_id: Some(pg_response.order_number.to_string()),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
}),
Expand Down Expand Up @@ -474,6 +475,7 @@ impl<F> TryFrom<ResponseRouterData<F, BamboraResponse, PaymentsAuthorizeData, Pa
),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -517,6 +519,7 @@ impl<F>
connector_response_reference_id: Some(item.response.order_number.to_string()),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -562,6 +565,7 @@ impl<F>
connector_response_reference_id: Some(item.response.order_number.to_string()),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -597,6 +601,7 @@ impl<F>
connector_response_reference_id: Some(item.response.order_number.to_string()),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -632,6 +637,7 @@ impl<F>
connector_response_reference_id: Some(item.response.order_number.to_string()),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BitpayPaymentsResponse, T, PaymentsResp
.or(Some(item.response.data.id)),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FiservPaymentsResponse, T, PaymentsResp
),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -424,6 +425,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FiservSyncResponse, T, PaymentsResponse
),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ impl<F>
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
status: enums::AttemptStatus::from(item.response),
..item.data
Expand Down Expand Up @@ -429,6 +430,7 @@ impl<F>
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
status: enums::AttemptStatus::from(item.response),
..item.data
Expand Down Expand Up @@ -478,6 +480,7 @@ impl<F>
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
status: enums::AttemptStatus::from(item.response),
..item.data
Expand Down Expand Up @@ -558,6 +561,7 @@ impl<F>
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
status: enums::AttemptStatus::from(item.response),
..item.data
Expand Down Expand Up @@ -615,6 +619,7 @@ impl<F>
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
status: enums::AttemptStatus::from(item.response),
..item.data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, StaxPaymentsResponse, T, PaymentsRespon
),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub enum PaymentsResponseData {
connector_response_reference_id: Option<String>,
incremental_authorization_allowed: Option<bool>,
charge_id: Option<String>,
connector_customer_id: Option<String>,
},
MultipleCaptureResponse {
// pending_capture_id_list: Vec<String>,
Expand Down
1 change: 1 addition & 0 deletions crates/router/src/connector/aci/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@ impl<F, T>
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down
9 changes: 9 additions & 0 deletions crates/router/src/connector/adyen/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3195,6 +3195,7 @@ impl TryFrom<types::PaymentsCancelResponseRouterData<AdyenCancelResponse>>
connector_response_reference_id: Some(item.response.reference),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -3230,6 +3231,7 @@ impl<F>
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
payment_method_balance: Some(types::PaymentMethodBalance {
currency: item.response.balance.currency,
Expand Down Expand Up @@ -3295,6 +3297,7 @@ pub fn get_adyen_response(
connector_response_reference_id: Some(response.merchant_reference),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
};
Ok((status, error, payments_response_data))
}
Expand Down Expand Up @@ -3359,6 +3362,7 @@ pub fn get_webhook_response(
connector_response_reference_id: Some(response.merchant_reference_id),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
};
Ok((status, error, payments_response_data))
}
Expand Down Expand Up @@ -3432,6 +3436,7 @@ pub fn get_redirection_response(
.or(response.psp_reference),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
};
Ok((status, error, payments_response_data))
}
Expand Down Expand Up @@ -3490,6 +3495,7 @@ pub fn get_present_to_shopper_response(
.or(response.psp_reference),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
};
Ok((status, error, payments_response_data))
}
Expand Down Expand Up @@ -3547,6 +3553,7 @@ pub fn get_qr_code_response(
.or(response.psp_reference),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
};
Ok((status, error, payments_response_data))
}
Expand Down Expand Up @@ -3590,6 +3597,7 @@ pub fn get_redirection_error_response(
.or(response.psp_reference),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
};

Ok((status, error, payments_response_data))
Expand Down Expand Up @@ -3957,6 +3965,7 @@ impl TryFrom<types::PaymentsCaptureResponseRouterData<AdyenCaptureResponse>>
connector_response_reference_id: Some(item.response.reference),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
amount_captured: Some(0),
..item.data
Expand Down
2 changes: 2 additions & 0 deletions crates/router/src/connector/airwallex/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ impl<F, T>
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -617,6 +618,7 @@ impl
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down
4 changes: 4 additions & 0 deletions crates/router/src/connector/authorizedotnet/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ impl<F, T>
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
}),
Expand Down Expand Up @@ -1124,6 +1125,7 @@ impl<F, T>
),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
},
..item.data
Expand Down Expand Up @@ -1197,6 +1199,7 @@ impl<F, T>
),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
},
..item.data
Expand Down Expand Up @@ -1522,6 +1525,7 @@ impl<F, Req>
connector_response_reference_id: Some(transaction.transaction_id.clone()),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
status: payment_status,
..item.data
Expand Down
4 changes: 4 additions & 0 deletions crates/router/src/connector/bamboraapac/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ impl<F>
connector_response_reference_id: Some(connector_transaction_id),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -468,6 +469,7 @@ impl<F>
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -614,6 +616,7 @@ impl<F>
connector_response_reference_id: Some(connector_transaction_id),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down Expand Up @@ -913,6 +916,7 @@ impl<F>
connector_response_reference_id: Some(connector_transaction_id),
incremental_authorization_allowed: None,
charge_id: None,
connector_customer_id: None,
}),
..item.data
})
Expand Down
Loading
Loading