• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

inc/Module/H05-Jan-2008-2,0811,566

lib/Business/TW/TSIB/H05-Jan-2008-25492

t/H05-Jan-2008-8461

ChangesH A D05-Jan-2008277 1610

MANIFESTH A D05-Jan-2008481 2322

META.ymlH A D05-Jan-2008477 2221

Makefile.PLH A D04-Dec-2007381 1712

READMEH A D04-Dec-20072.8 KiB8460

README

1NAME
2    Business::TW::TSIB::CStorePayment - Module for Taishin Bank Convenient
3    Store Payment Management
4
5SYNOPSIS
6        use Business::TW::TSIB::CStorePayment;
7        my $csp = Business::TW::TSIB::CStorePayment->new({ corp_code => 'CPCU' });
8        my @bar = $csp->generate( { due    => DateTime->new( year => 2007, month => 4, day => 2 ),
9                                    collect_until => DateTime->new( year => 2007, month => 4, day => 2 ),
10                                    amount => 3900,
11                                    ar_id  => '20892' } );
12
13        # render the code39 barcode with GD::Barcode
14        my @png = map { GD::Barcode::Code39->new("*$_*")->plot->png } @bar;
15
16        # not yet
17        my $entries = Business::TW::TSIB::CStorePayment->parse_summary($fh);
18
19        # entries is arrayref of Business::TW::TSIB::CStorePayment::Entry objects,
20
21DESCRIPTION
22    This module provides utility functions for the convenient store payment
23    collection service by TSIB (Taishin International Bank, Taiwan).
24
25METHODS
26  new( { corp_code => $corp_code} )
27    Initialize the payment collection context with "corp_code" provided by
28    TSIB.
29
30  $csp->generate( $args )
31    Generate bar codes for the given arguments. Returns a list of 3 strings
32    that are to be printed as barcode. $args is a hash ref and must contain:
33
34    due A DateTime object for due day of the payment.
35
36    collect_until
37        A DateTime object for last collection date, default to "due".
38
39    amount
40        The expected amount of the transaction.
41
42    ar_id
43        The arbitary account receivable identifier.
44
45  $self->parse_summary($fh)
46AUTHOR
47    Chia-liang Kao, "<clkao AT aiink.com>" ,
48
49BUGS
50    Please report any bugs or feature requests to
51    "bug-business-tw-taishinbank-cstorepayment at rt.cpan.org", or through
52    the web interface at
53    <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Business-TW-TSIB-CStoreP
54    ayment>. I will be notified, and then you'll automatically be notified
55    of progress on your bug as I make changes.
56
57SUPPORT
58    You can find documentation for this module with the perldoc command.
59
60        perldoc Business::TW::TSIB::CStorePayment
61
62    You can also look for information at:
63
64    * AnnoCPAN: Annotated CPAN documentation
65        <http://annocpan.org/dist/Business-TW-TSIB-CStorePayment>
66
67    * CPAN Ratings
68        <http://cpanratings.perl.org/d/Business-TW-TSIB-CStorePayment>
69
70    * RT: CPAN's request tracker
71        <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-TW-TSIB-CStorePay
72        ment>
73
74    * Search CPAN
75        <http://search.cpan.org/dist/Business-TW-TSIB-CStorePayment>
76
77ACKNOWLEDGEMENTS
78COPYRIGHT & LICENSE
79    Copyright 2007 AIINK co., ltd, all rights reserved.
80
81    This program is free software; you can redistribute it and/or modify it
82    under the same terms as Perl itself.
83
84