mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
revert(order_details): revert back order_details to be an object, and removing meta_data from PaymentIntent (#1279)
This commit is contained in:
@ -1562,14 +1562,12 @@ pub struct OrderDetails {
|
||||
/// The quantity of the product to be purchased
|
||||
#[schema(example = 1)]
|
||||
pub quantity: u16,
|
||||
/// the amount per quantity of product
|
||||
pub amount: i64,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct Metadata {
|
||||
/// Information about the product and quantity for specific connectors. (e.g. Klarna)
|
||||
pub order_details: Option<Vec<OrderDetails>>,
|
||||
pub order_details: Option<OrderDetails>,
|
||||
/// Information used for routing
|
||||
pub routing_parameters: Option<HashMap<String, String>>,
|
||||
/// Any other metadata that is to be provided
|
||||
|
||||
Reference in New Issue
Block a user