add ShippingDetailName

This commit is contained in:
Harry Ying 2022-05-27 22:03:41 +08:00
parent 7714124270
commit d9889f01e1
No known key found for this signature in database
GPG key ID: AE53B4C2E58EDD45

View file

@ -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<String>,
pub name: Option<ShippingDetailName>,
/// The address of the person to whom to ship the items.
pub address: Option<Address>,
}