serde transparecy, pub
This commit is contained in:
parent
83d3f6e708
commit
388d3b5398
2 changed files with 5 additions and 4 deletions
|
@ -36,16 +36,19 @@ pub struct ExcludedMethodsResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Debug, Clone)]
|
#[derive(Serialize, Debug, Clone)]
|
||||||
|
#[serde(transparent)]
|
||||||
pub struct OrderCalculateTaxes(CheckoutCalculateTaxesResponse);
|
pub struct OrderCalculateTaxes(CheckoutCalculateTaxesResponse);
|
||||||
|
|
||||||
#[derive(Serialize, Debug, Clone)]
|
#[derive(Serialize, Debug, Clone)]
|
||||||
|
#[serde(transparent)]
|
||||||
pub struct OrderFilterShippingMethods(CheckoutFilterShippingMethodsResponse);
|
pub struct OrderFilterShippingMethods(CheckoutFilterShippingMethodsResponse);
|
||||||
|
|
||||||
#[derive(Serialize, Debug, Clone)]
|
#[derive(Serialize, Debug, Clone)]
|
||||||
|
#[serde(transparent)]
|
||||||
pub struct ShippingListMethodsForCheckout(Vec<ShippingListMethodsForCheckoutVec>);
|
pub struct ShippingListMethodsForCheckout(Vec<ShippingListMethodsForCheckoutVec>);
|
||||||
|
|
||||||
#[derive(Serialize, Debug, Clone)]
|
#[derive(Serialize, Debug, Clone)]
|
||||||
struct ShippingListMethodsForCheckoutVec {
|
pub struct ShippingListMethodsForCheckoutVec {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub name: Option<String>,
|
pub name: Option<String>,
|
||||||
#[serde(with = "rust_decimal::serde::float")]
|
#[serde(with = "rust_decimal::serde::float")]
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
use http::HeaderMap;
|
|
||||||
use strum_macros::{AsRefStr, EnumString};
|
|
||||||
|
|
||||||
use crate::headers::SALEOR_EVENT_HEADER;
|
use crate::headers::SALEOR_EVENT_HEADER;
|
||||||
|
use http::HeaderMap;
|
||||||
|
|
||||||
use super::{AsyncWebhookEventType, SyncWebhookEventType};
|
use super::{AsyncWebhookEventType, SyncWebhookEventType};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue