mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(connector): [Trustpay] add webhooks (payment and refund events) (#746)
Co-authored-by: Sangamesh <sangamesh.kulkarni@juspay.in> Co-authored-by: sai harsha <sai.harsha@sai.harsha-MacBookPro> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -41,8 +41,18 @@ pub struct IncomingWebhookRequestDetails<'a> {
|
||||
|
||||
pub type MerchantWebhookConfig = std::collections::HashSet<IncomingWebhookEvent>;
|
||||
|
||||
pub enum RefundIdType {
|
||||
RefundId(String),
|
||||
ConnectorRefundId(String),
|
||||
}
|
||||
|
||||
pub enum ObjectReferenceId {
|
||||
PaymentId(payments::PaymentIdType),
|
||||
RefundId(RefundIdType),
|
||||
}
|
||||
|
||||
pub struct IncomingWebhookDetails {
|
||||
pub object_reference_id: String,
|
||||
pub object_reference_id: ObjectReferenceId,
|
||||
pub resource_object: Vec<u8>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user