-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_poq.rs
31 lines (27 loc) · 1.19 KB
/
create_poq.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//! Create Product Offering Qualification Example
//!
#![allow(unused_imports)]
use tmflib::common::related_party::RelatedParty;
#[cfg(all(feature = "tmf620", feature = "build-V4"))]
use tmflib::tmf620::product_offering::{ProductOffering,ProductOfferingRef};
#[cfg(all(feature = "tmf620", feature = "build-V5"))]
use tmflib::tmf620::product_offering_v5::{ProductOffering,ProductOfferingRef};
use tmflib::tmf629::customer::Customer;
#[cfg(all(feature = "tmf632", feature = "build-V4"))]
use tmflib::tmf632::organization_v4::Organization;
#[cfg(all(feature = "tmf632", feature = "build-V5"))]
use tmflib::tmf632::organization_v5::Organization;
#[cfg(all(feature = "tmf679", feature = "build-V4"))]
use tmflib::tmf679::product_qualification::ProductOfferingQualification;
use tmflib::HasRelatedParty;
fn main() {
#[cfg(all(feature = "tmf679", feature = "build-V4"))]
{
let org = Organization::new("ACustomer");
let customer = Customer::new(org);
let offering = ProductOffering::new("MyOffer");
let mut poq = ProductOfferingQualification::new(Some(ProductOfferingRef::from(offering)));
poq.add_party(RelatedParty::from(&customer));
dbg!(poq);
}
}