mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(connector): [Bambora] Add support for cards Authorize, psync, capture, void, refund, Rsync (#677)
This commit is contained in:
		| @ -51,6 +51,26 @@ pub trait PaymentsRequestData { | ||||
|     fn get_return_url(&self) -> Result<String, Error>; | ||||
| } | ||||
|  | ||||
| pub trait PaymentsAuthorizeRequestData { | ||||
|     fn is_auto_capture(&self) -> bool; | ||||
| } | ||||
|  | ||||
| impl PaymentsAuthorizeRequestData for types::PaymentsAuthorizeData { | ||||
|     fn is_auto_capture(&self) -> bool { | ||||
|         self.capture_method == Some(storage_models::enums::CaptureMethod::Automatic) | ||||
|     } | ||||
| } | ||||
|  | ||||
| pub trait PaymentsSyncRequestData { | ||||
|     fn is_auto_capture(&self) -> bool; | ||||
| } | ||||
|  | ||||
| impl PaymentsSyncRequestData for types::PaymentsSyncData { | ||||
|     fn is_auto_capture(&self) -> bool { | ||||
|         self.capture_method == Some(storage_models::enums::CaptureMethod::Automatic) | ||||
|     } | ||||
| } | ||||
|  | ||||
| pub trait PaymentsCancelRequestData { | ||||
|     fn get_amount(&self) -> Result<i64, Error>; | ||||
|     fn get_currency(&self) -> Result<storage_models::enums::Currency, Error>; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jagan
					Jagan