Skip to content

Commit

Permalink
Merge pull request #230 from rruckley/bug-tmfc002-229
Browse files Browse the repository at this point in the history
Bug: Added missing APIs for TMFC002
  • Loading branch information
rruckley authored Jan 29, 2025
2 parents c3011c1 + fef6952 commit 0f10ed2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ common = ["tmf620","tmf629","tmf632","tmf666","tmf667","tmf669","tmf674"]
# Product Catalog Management
TMFC001 = ["tmf620","common"]
# Product Order Capture and Validation
TMFC002 = ["tmf622","common"]
TMFC002 = ["tmf622","tmf648","tmf663","common"]
# Product Order Delivery Orchestration and Management
TMFC003 = ["common"]
TMFC004 = ["common"]
Expand Down Expand Up @@ -216,7 +216,7 @@ default = ["all","build-V4"]
chrono = "0.4.39"
rust_iso4217 = "0.1.1"
serde = { version = "1.0.217", features = ["derive"]}
serde_json = "1.0.137"
serde_json = "1.0.138"
sha256 = { version = "1.5", default-features = false }
uuid = { version = "1.12.1", features = ["v4"]}
tmflib-derive = { version = "0.1.30" }
Expand Down
14 changes: 9 additions & 5 deletions examples/create_ticket.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
//! Create Ticket Example
#[cfg(feature = "tmf621")]
use tmflib::{tmf621::trouble_ticket::TroubleTicket, HasDescription};

fn main() {
let ticket = TroubleTicket::new("A Ticket")
.description("This is a trouble ticket");


dbg!(ticket);
#[cfg(feature = "tmf621")]
{
let ticket = TroubleTicket::new("A Ticket")
.description("This is a trouble ticket");


dbg!(ticket);
}
}

0 comments on commit 0f10ed2

Please sign in to comment.