From d9889f01e18fa0306bbac45a5b070734476daa6d Mon Sep 17 00:00:00 2001 From: Harry Ying Date: Fri, 27 May 2022 22:03:41 +0800 Subject: [PATCH 1/2] add ShippingDetailName --- src/data/orders.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/data/orders.rs b/src/data/orders.rs index 5c97cf2..bda7609 100644 --- a/src/data/orders.rs +++ b/src/data/orders.rs @@ -215,12 +215,19 @@ impl Default for ItemCategoryType { } } +#[skip_serializing_none] +#[derive(Debug, Default, Serialize, Deserialize, Clone)] +pub struct ShippingDetailName { + /// The name of the person to whom to ship the items. Supports only the full_name property. + pub full_name: String, +} + /// The name and address of the person to whom to ship the items. #[skip_serializing_none] #[derive(Debug, Default, Serialize, Deserialize, Clone)] pub struct ShippingDetail { /// The name of the person to whom to ship the items. Supports only the full_name property. - pub name: Option, + pub name: Option, /// The address of the person to whom to ship the items. pub address: Option
, } From 0b03154d4e4ee0efe54935300d326bd14dd6c9cd Mon Sep 17 00:00:00 2001 From: Harry Ying Date: Sat, 28 May 2022 00:06:08 +0800 Subject: [PATCH 2/2] add ShippingDetailName doc --- src/data/orders.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/orders.rs b/src/data/orders.rs index bda7609..fedf827 100644 --- a/src/data/orders.rs +++ b/src/data/orders.rs @@ -215,6 +215,7 @@ impl Default for ItemCategoryType { } } +/// The name of the person to whom to ship the items. #[skip_serializing_none] #[derive(Debug, Default, Serialize, Deserialize, Clone)] pub struct ShippingDetailName {