NAME

Paymill::REST::Item::Preauthorization - Item class for a preauthorization

SYNOPSIS

my $preauth_api = Paymill::REST::Preauthorizations->new;
$preauth = $preauth_api->find('preauth_lk2j34h5lk34h5lkjh2');

say $preauth->amount;  # Prints amount of the preauthorization

DESCRIPTION

Represents a preauthorization with all attributes and all sub items.

ATTRIBUTES

id

String containing the identifier of the client

amount

Integer containing the assigned amount

currency

String containing the currency for the amount

status

String indicating the current status of the preauthorization. Can be one of:

  • open

  • pending

  • closed

  • failed

  • deleted

  • preauth

livemode

Boolean indicating whether this preauthorization has been made with the live keys or not

created_at

DateTime object indicating the date of the creation as returned by the API

updated_at

DateTime object indicating the date of the last update as returned by the API

app_id

String representing the app id that created this preauthorization

SUB ITEMS

client

A client object.

See also Paymill::REST::Item::Client.

payment

A payment object.

See also Paymill::REST::Item::Payment.

AVAILABLE OPERATIONS

delete

Paymill::REST::Operations::Delete

SEE ALSO

Paymill::REST for more documentation.

AUTHOR

Matthias Dietrich <perl@rainboxx.de>

COPYRIGHT

Copyright 2013 - Matthias Dietrich

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.