revert(order_details): revert back order_details to be an object, and removing meta_data from PaymentIntent (#1279)

This commit is contained in:
rishavkar
2023-05-26 13:19:33 +05:30
committed by GitHub
parent e78b3a65d4
commit 597ec16907
16 changed files with 56 additions and 114 deletions

View File

@ -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