@@ -271,7 +271,6 @@ pub struct PaymentsCreateIntentRequest {
271
271
pub force_3ds_challenge : Option < bool > ,
272
272
273
273
/// Merchant connector details used to make payments.
274
- #[ schema( value_type = Option <MerchantConnectorDetails >) ]
275
274
pub merchant_connector_details : Option < MerchantConnectorDetails > ,
276
275
}
277
276
@@ -5371,7 +5370,6 @@ pub struct PaymentsConfirmIntentRequest {
5371
5370
pub payment_token : Option < String > ,
5372
5371
5373
5372
/// Merchant connector details used to make payments.
5374
- #[ schema( value_type = Option <MerchantConnectorDetails >) ]
5375
5373
pub merchant_connector_details : Option < MerchantConnectorDetails > ,
5376
5374
}
5377
5375
@@ -5547,7 +5545,6 @@ pub struct PaymentsRequest {
5547
5545
pub is_iframe_redirection_enabled : Option < bool > ,
5548
5546
5549
5547
/// Merchant connector details used to make payments.
5550
- #[ schema( value_type = Option <MerchantConnectorDetails >) ]
5551
5548
pub merchant_connector_details : Option < MerchantConnectorDetails > ,
5552
5549
}
5553
5550
@@ -5609,9 +5606,9 @@ impl From<&PaymentsRequest> for PaymentsConfirmIntentRequest {
5609
5606
// Serialize is implemented because, this will be serialized in the api events.
5610
5607
// Usually request types should not have serialize implemented.
5611
5608
//
5612
- /// Request for Payment Status
5609
+ /// Request body for Payment Status
5613
5610
#[ cfg( feature = "v2" ) ]
5614
- #[ derive( Default , Debug , serde:: Deserialize , serde:: Serialize , ToSchema ) ]
5611
+ #[ derive( Debug , serde:: Deserialize , serde:: Serialize , ToSchema ) ]
5615
5612
pub struct PaymentsRetrieveRequest {
5616
5613
/// A boolean used to indicate if the payment status should be fetched from the connector
5617
5614
/// If this is set to true, the status will be fetched from the connector
@@ -5627,12 +5624,12 @@ pub struct PaymentsRetrieveRequest {
5627
5624
/// If enabled, provides whole connector response
5628
5625
pub all_keys_required : Option < bool > ,
5629
5626
/// Merchant connector details used to make payments.
5630
- #[ schema( value_type = Option <MerchantConnectorDetails >) ]
5631
5627
pub merchant_connector_details : Option < MerchantConnectorDetails > ,
5632
5628
}
5633
5629
5634
5630
#[ cfg( feature = "v2" ) ]
5635
5631
#[ derive( Debug , serde:: Deserialize , serde:: Serialize , ToSchema ) ]
5632
+ /// Request for Payment Status
5636
5633
pub struct PaymentsStatusRequest {
5637
5634
/// A boolean used to indicate if the payment status should be fetched from the connector
5638
5635
/// If this is set to true, the status will be fetched from the connector
0 commit comments