Merge pull request #5 from flibrary/master

Fix `Order` parsing error
This commit is contained in:
Edgar 2022-06-05 15:55:39 +02:00 committed by GitHub
commit b25befa815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,12 +215,20 @@ 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 {
/// 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. /// The name and address of the person to whom to ship the items.
#[skip_serializing_none] #[skip_serializing_none]
#[derive(Debug, Default, Serialize, Deserialize, Clone)] #[derive(Debug, Default, Serialize, Deserialize, Clone)]
pub struct ShippingDetail { pub struct ShippingDetail {
/// The name of the person to whom to ship the items. Supports only the full_name property. /// The name of the person to whom to ship the items. Supports only the full_name property.
pub name: Option<String>, pub name: Option<ShippingDetailName>,
/// The address of the person to whom to ship the items. /// The address of the person to whom to ship the items.
pub address: Option<Address>, pub address: Option<Address>,
} }