Stancer::Dispute - Dispute representation
version 1.0.0
order_id
Read/Write string, 1 to 24 characters.
External order id.
payment
Read/Write instance of Stancer::Payment.
Stancer::Payment
Related payment object.
response
Read-only 2 or 4 characters string.
API response code.
Stancer::Dispute->new() : self
Stancer::Dispute->new($token) : self
Stancer::Dispute->new(%args) : self
Stancer::Dispute->new(\%args) : self
This method accept an optional string, it will be used as an entity ID for API calls.
# Get an empty new payment my $new = Stancer::Dispute->new(); # Get an existing payment my $exist = Stancer::Dispute->new($token);
Dispute->list(%terms) : DisputeIterator
Dispute->list(\%terms) : DisputeIterator
List all disputes.
%terms must be an hash or a reference to an hash (\%terms) with at least one of the following key :
%terms
\%terms
created
Must be an unix timestamp, a DateTime or a DateTime::Span object which will filter payments created after this value. If a DateTime::Span is passed, created_until will be ignored and replaced with DateTime::Span->end.
DateTime
DateTime::Span
created_until
DateTime::Span->end
Must be an unix timestamp or a DateTime object which will filter payments created before this value. If a DateTime::Span is passed to created, this value will be ignored.
limit
Must be an integer between 1 and 100 and will limit the number of objects to be returned. API defaults is to return 10 elements.
start
Must be an integer and will be used as a pagination cursor, starts at 0.
We use the Log::Any framework for logging events. You may tell where it should log using any available Log::Any::Adapter module.
For example, to log everything to a file you just have to add a line to your script, like this: #! /usr/bin/env perl use Log::Any::Adapter (File => '/var/log/payment.log'); use Stancer::Dispute;
You must import Log::Any::Adapter before our libraries, to initialize the logger instance before use.
Log::Any::Adapter
You can choose your log level on import directly: use Log::Any::Adapter (File => '/var/log/payment.log', log_level => 'info');
Read the Log::Any documentation to know what other options you have.
Never, never, NEVER register a card or a bank account number in your database.
Always uses HTTPS in card/SEPA in communication.
Our API will never give you a complete card/SEPA number, only the last four digits. If you need to keep track, use these last four digit.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Stancer or by email to bug-stancer@rt.cpan.org.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Joel Da Silva <jdasilva@corp.free.fr>
This software is Copyright (c) 2018 by Iliad78.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Stancer::Sepa, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Stancer::Sepa
CPAN shell
perl -MCPAN -e shell install Stancer::Sepa
For more information on module installation, please visit the detailed CPAN module installation guide.