mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	fix(router): outgoing webhook api call (#1193)
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							1f52a66452
						
					
				
				
					commit
					31a52d8058
				
			| @ -37,7 +37,7 @@ impl From<StripeBillingDetails> for payments::Address { | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[derive(Default, Serialize, PartialEq, Eq, Deserialize, Clone)] | ||||
| #[derive(Default, Serialize, PartialEq, Eq, Deserialize, Clone, Debug)] | ||||
| pub struct StripeCard { | ||||
|     pub number: cards::CardNumber, | ||||
|     pub exp_month: pii::Secret<String>, | ||||
| @ -221,7 +221,7 @@ impl TryFrom<StripePaymentIntentRequest> for payments::PaymentsRequest { | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[derive(Clone, Default, Eq, PartialEq, Serialize, Deserialize)] | ||||
| #[derive(Clone, Default, Eq, PartialEq, Serialize, Deserialize, Debug)] | ||||
| #[serde(rename_all = "snake_case")] | ||||
| pub enum StripePaymentStatus { | ||||
|     Succeeded, | ||||
| @ -288,7 +288,7 @@ pub struct StripeCaptureRequest { | ||||
|     pub amount_to_capture: Option<i64>, | ||||
| } | ||||
|  | ||||
| #[derive(Default, Eq, PartialEq, Serialize)] | ||||
| #[derive(Default, Eq, PartialEq, Serialize, Debug)] | ||||
| pub struct StripePaymentIntentResponse { | ||||
|     pub id: Option<String>, | ||||
|     pub object: &'static str, | ||||
| @ -328,7 +328,7 @@ pub struct StripePaymentIntentResponse { | ||||
|     pub last_payment_error: Option<LastPaymentError>, | ||||
| } | ||||
|  | ||||
| #[derive(Default, Eq, PartialEq, Serialize)] | ||||
| #[derive(Default, Eq, PartialEq, Serialize, Debug)] | ||||
| pub struct LastPaymentError { | ||||
|     charge: Option<String>, | ||||
|     code: Option<String>, | ||||
| @ -402,7 +402,7 @@ impl From<payments::PaymentsResponse> for StripePaymentIntentResponse { | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[derive(Default, Eq, PartialEq, Serialize)] | ||||
| #[derive(Default, Eq, PartialEq, Serialize, Debug)] | ||||
| pub struct StripePaymentMethod { | ||||
|     #[serde(rename = "id")] | ||||
|     payment_method_id: String, | ||||
| @ -414,7 +414,7 @@ pub struct StripePaymentMethod { | ||||
|     livemode: bool, | ||||
| } | ||||
|  | ||||
| #[derive(Default, Eq, PartialEq, Serialize)] | ||||
| #[derive(Default, Eq, PartialEq, Serialize, Debug)] | ||||
| pub struct Charges { | ||||
|     object: &'static str, | ||||
|     data: Vec<String>, | ||||
| @ -604,13 +604,13 @@ impl ForeignFrom<Option<Request3DS>> for api_models::enums::AuthenticationType { | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[derive(Default, Eq, PartialEq, Serialize)] | ||||
| #[derive(Default, Eq, PartialEq, Serialize, Debug)] | ||||
| pub struct RedirectUrl { | ||||
|     pub return_url: Option<String>, | ||||
|     pub url: Option<String>, | ||||
| } | ||||
|  | ||||
| #[derive(Eq, PartialEq, Serialize)] | ||||
| #[derive(Eq, PartialEq, Serialize, Debug)] | ||||
| pub struct StripeNextAction { | ||||
|     #[serde(rename = "type")] | ||||
|     stype: payments::NextActionType, | ||||
|  | ||||
| @ -20,7 +20,7 @@ pub struct StripeUpdateRefundRequest { | ||||
|     pub metadata: Option<pii::SecretSerdeValue>, | ||||
| } | ||||
|  | ||||
| #[derive(Clone, Serialize, PartialEq, Eq)] | ||||
| #[derive(Clone, Serialize, PartialEq, Eq, Debug)] | ||||
| pub struct StripeRefundResponse { | ||||
|     pub id: String, | ||||
|     pub amount: i64, | ||||
| @ -31,7 +31,7 @@ pub struct StripeRefundResponse { | ||||
|     pub metadata: pii::SecretSerdeValue, | ||||
| } | ||||
|  | ||||
| #[derive(Clone, Serialize, Deserialize, Eq, PartialEq)] | ||||
| #[derive(Clone, Serialize, Deserialize, Eq, PartialEq, Debug)] | ||||
| #[serde(rename_all = "snake_case")] | ||||
| pub enum StripeRefundStatus { | ||||
|     Succeeded, | ||||
|  | ||||
| @ -8,7 +8,7 @@ use super::{ | ||||
|     payment_intents::types::StripePaymentIntentResponse, refunds::types::StripeRefundResponse, | ||||
| }; | ||||
|  | ||||
| #[derive(Serialize)] | ||||
| #[derive(Serialize, Debug)] | ||||
| pub struct StripeOutgoingWebhook { | ||||
|     id: Option<String>, | ||||
|     #[serde(rename = "type")] | ||||
| @ -18,7 +18,7 @@ pub struct StripeOutgoingWebhook { | ||||
|  | ||||
| impl api::OutgoingWebhookType for StripeOutgoingWebhook {} | ||||
|  | ||||
| #[derive(Serialize)] | ||||
| #[derive(Serialize, Debug)] | ||||
| #[serde(tag = "type", content = "object", rename_all = "snake_case")] | ||||
| pub enum StripeWebhookObject { | ||||
|     PaymentIntent(StripePaymentIntentResponse), | ||||
| @ -26,7 +26,7 @@ pub enum StripeWebhookObject { | ||||
|     Dispute(StripeDisputeResponse), | ||||
| } | ||||
|  | ||||
| #[derive(Serialize)] | ||||
| #[derive(Serialize, Debug)] | ||||
| pub struct StripeDisputeResponse { | ||||
|     pub id: String, | ||||
|     pub amount: String, | ||||
| @ -36,7 +36,7 @@ pub struct StripeDisputeResponse { | ||||
|     pub status: StripeDisputeStatus, | ||||
| } | ||||
|  | ||||
| #[derive(Serialize)] | ||||
| #[derive(Serialize, Debug)] | ||||
| #[serde(rename_all = "snake_case")] | ||||
| pub enum StripeDisputeStatus { | ||||
|     WarningNeedsResponse, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user