tap_msg/message/
mod.rs

1//! Message types and processing for TAP messages.
2//!
3//! This module defines the message structures and types used in the
4//! Transaction Authorization Protocol (TAP).
5
6// Import all message modules
7pub mod agent_management;
8pub mod authorize;
9pub mod cancel;
10pub mod connection;
11pub mod did_presentation;
12pub mod error;
13pub mod invoice;
14pub mod participant;
15pub mod payment;
16pub mod policy;
17pub mod presentation;
18pub mod reject;
19pub mod relationship;
20pub mod revert;
21pub mod settle;
22pub mod tap_message_trait;
23pub mod transfer;
24pub mod update_party;
25pub mod update_policies;
26pub mod validation;
27
28// Re-export agent management types
29pub use agent_management::{AddAgents, RemoveAgent, ReplaceAgent};
30
31// Re-export attachment types
32pub use crate::didcomm::{Attachment, AttachmentData, SimpleAttachmentData};
33
34// Re-export authorization types
35pub use authorize::Authorize;
36
37// Re-export cancel type
38pub use cancel::Cancel;
39
40// Re-export connection types
41pub use connection::{
42    AuthorizationRequired, Connect, ConnectionConstraints, OutOfBand, TransactionLimits,
43};
44
45// Re-export DIDComm presentation types
46pub use did_presentation::DIDCommPresentation;
47
48// Re-export error type
49pub use error::ErrorBody;
50
51// Re-export invoice types
52pub use invoice::{
53    DocumentReference, Invoice, LineItem, OrderReference, TaxCategory, TaxSubtotal, TaxTotal,
54};
55
56// Re-export participant types
57pub use participant::Participant;
58
59// Re-export payment types
60pub use payment::{Payment, PaymentBuilder};
61
62// Re-export policy types
63pub use policy::{Policy, RequireAuthorization, RequirePresentation, RequireProofOfControl};
64
65// Re-export presentation types
66pub use presentation::{Presentation, RequestPresentation};
67
68// Re-export reject type
69pub use reject::Reject;
70
71// Re-export relationship type
72pub use relationship::ConfirmRelationship;
73
74// Re-export revert type
75pub use revert::Revert;
76
77// Re-export settle type
78pub use settle::Settle;
79
80// Re-export transfer types
81pub use transfer::Transfer;
82
83// Re-export update party type
84pub use update_party::UpdateParty;
85
86// Re-export update policies type
87pub use update_policies::UpdatePolicies;
88
89// Re-export the TapMessage trait and related functionality
90pub use tap_message_trait::{create_tap_message, Connectable, TapMessage, TapMessageBody};