use crate::core::macros::tmf_struct;
use crate::core::{BillingAccount, Channel, Duration, Price, Quantity, Ref};
use crate::product::{PriceAlteration, ProductOfferingPrice};
tmf_struct! {
@name = "OrderPrice";
pub struct OrderPrice {
name: String,
description: String,
price_type: String,
recurring_charge_period: String,
unit_of_measure: String,
price: Price,
price_alteration: Vec<PriceAlteration>,
product_offering_price: Ref<ProductOfferingPrice>,
billing_account: Ref<BillingAccount>,
}
}
tmf_struct! {
@name = "OrderTerm";
pub struct OrderTerm {
name: String,
description: String,
duration: Duration,
}
}
tmf_struct! {
@name = "RelatedChannel";
pub struct RelatedChannel {
channel: Ref<Channel>,
role: String,
}
}
tmf_struct! {
@name = "OrderRelationship";
pub struct OrderRelationship {
id: String,
href: String,
name: String,
relationship_type: String,
@renamed {
"@referredType" referred_type: String,
}
}
}
pub type OrderQuantity = Quantity;