NAME

Business::CAMT::Message - base class for messages

SYNOPSIS

my $camt = Business::CAMT->new(...);

my $msg  = $camt->read(...);
my $msg  = $camt->create(...);

$msg->write('file.xml');
print $msg->toString;

DESCRIPTION

This module is the base class for objects which are able to interpret the CAMT messages.

METHODS

Constructors

Business::CAMT::Message->fromData(%options)

This method accepts the same %options as new(). All options passed in are passed to that constructor.

Business::CAMT::Message->new(%options)

The data (probably read from a file) is wrapped into this class. When data is undef, then undef will be returned.

-Option --Default
 camt     <required>
 data     <required>
 set      <required>
 version  <required>
camt => Business::CAMT object
data => HASH
set => STRING
version => STRING

Accessors

$obj->camt()
$obj->set()
$obj->version()

Other

$obj->toString()

Convert the HASH into a string, using Data::Dumper. This is usefull, because you do not want to include the hidden object attributes in your output.

$obj->write($file, %options)

All %options are passed to Business::CAMT::write().

example: for write

$msg->write($file);
$camt->write($file, $msg);   # same

SEE ALSO

This module is part of Business-CAMT distribution version 0.11, built on November 26, 2024. Website: http://perl.overmeer.net/CPAN/

LICENSE

Copyrights 2024 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/

1 POD Error

The following errors were encountered while parsing the POD:

Around line 30:

Deleting unknown formatting code N<>