serde transparecy, pub

This commit is contained in:
djkato 2024-07-14 23:14:00 +02:00
parent 83d3f6e708
commit 388d3b5398
2 changed files with 5 additions and 4 deletions

View file

@ -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<ShippingListMethodsForCheckoutVec>);
#[derive(Serialize, Debug, Clone)]
struct ShippingListMethodsForCheckoutVec {
pub struct ShippingListMethodsForCheckoutVec {
pub id: String,
pub name: Option<String>,
#[serde(with = "rust_decimal::serde::float")]

View file

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