diff --git a/sdk/src/webhooks/sync_response.rs b/sdk/src/webhooks/sync_response.rs index 0c14473..2e19b19 100644 --- a/sdk/src/webhooks/sync_response.rs +++ b/sdk/src/webhooks/sync_response.rs @@ -36,16 +36,19 @@ pub struct ExcludedMethodsResponse { } #[derive(Serialize, Debug, Clone)] +#[serde(transparent)] pub struct OrderCalculateTaxes(CheckoutCalculateTaxesResponse); #[derive(Serialize, Debug, Clone)] +#[serde(transparent)] pub struct OrderFilterShippingMethods(CheckoutFilterShippingMethodsResponse); #[derive(Serialize, Debug, Clone)] +#[serde(transparent)] pub struct ShippingListMethodsForCheckout(Vec); #[derive(Serialize, Debug, Clone)] -struct ShippingListMethodsForCheckoutVec { +pub struct ShippingListMethodsForCheckoutVec { pub id: String, pub name: Option, #[serde(with = "rust_decimal::serde::float")] diff --git a/sdk/src/webhooks/utils.rs b/sdk/src/webhooks/utils.rs index 3f0d1af..d021a7a 100644 --- a/sdk/src/webhooks/utils.rs +++ b/sdk/src/webhooks/utils.rs @@ -1,7 +1,5 @@ -use http::HeaderMap; -use strum_macros::{AsRefStr, EnumString}; - use crate::headers::SALEOR_EVENT_HEADER; +use http::HeaderMap; use super::{AsyncWebhookEventType, SyncWebhookEventType};