mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
fix(webhooks): send stripe compatible webhooks for stripe compatible merchants (#1986)
This commit is contained in:
committed by
GitHub
parent
698677263b
commit
36631ad97b
@ -69,7 +69,7 @@ pub struct MerchantAccountCreate {
|
||||
|
||||
/// You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
|
||||
#[schema(value_type = Option<Object>, example = r#"{ "city": "NY", "unit": "245" }"#)]
|
||||
pub metadata: Option<pii::SecretSerdeValue>,
|
||||
pub metadata: Option<MerchantAccountMetadata>,
|
||||
|
||||
/// API key that will be used for server side API access
|
||||
#[schema(example = "AH3423bkjbkjdsfbkj")]
|
||||
@ -96,6 +96,13 @@ pub struct MerchantAccountCreate {
|
||||
pub organization_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize, ToSchema)]
|
||||
pub struct MerchantAccountMetadata {
|
||||
pub compatible_connector: Option<api_enums::Connector>,
|
||||
|
||||
#[serde(flatten)]
|
||||
pub data: Option<pii::SecretSerdeValue>,
|
||||
}
|
||||
#[derive(Clone, Debug, Deserialize, ToSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct MerchantAccountUpdate {
|
||||
|
||||
Reference in New Issue
Block a user