GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  RT::CLIENT::REST::TRANSACTION (3)

.ds Aq ’

NAME

RT::Client::REST::Transaction -- this object represents a transaction.

CONTENTS

SYNOPSIS



  my $transactions = $ticket->transactions;

  my $count = $transactions->count;
  print "There are $count transactions.\n";

  my $iterator = $transactions->get_iterator;
  while (my $tr = &$iterator) {
      print "Id: ", $tr->id, "; Type: ", $tr->type, "\n";
  }



DESCRIPTION

A transaction is a second-class citizen, as it does not exist (at least from the current REST protocol implementation) by itself. At the moment, it is always associated with a ticket (see <B>parent_idB> attribute). Thus, you will rarely retrieve a transaction by itself; instead, you should use transactions() method of RT::Client::REST::Ticket object to get an iterator for all (or some) transactions for that ticket.

ATTRIBUTES

<B>idB> Numeric ID of the transaction.
<B>creatorB> Username of the user who created the transaction.
<B>parent_idB> Numeric ID of the object the transaction is associated with.
<B>typeB> Type of the transactions. Please referer to RT::Client::REST documentation for the list of transaction types you can expect this field to contain. Note that there may be some transaction types not (dis)covered yet.
<B>old_valueB> Old value.
<B>new_valueB> New value.
<B>fieldB> Name of the field the transaction is describing (if any).
<B>attachmentsB> I have never seen it set to anything yet. (I will some day investigate this).
<B>createdB> Time when the transaction was created.
<B>contentB> Actual content of the transaction.
<B>descriptionB> Human-readable description of the transaction as provided by RT.
<B>dataB> Not sure what this is yet.

METHODS

<B>RT::Client::REST::TransactionB> is a read-only object, so you cannot store() it. Also, because it is a second-class citizen, you cannot search() or count() it — use transactions() method provided by RT::Client::REST::Ticket.
retrieve To retrieve a transaction, attributes <B>idB> and <B>parent_idB> must be set.

INTERNAL METHODS

<B>rt_typeB> Returns ’transaction’.

SEE ALSO

RT::Client::REST, RT::Client::REST::Ticket, RT::Client::REST::SearchResult.

AUTHOR

Dmitri Tikhonov <dtikhonov@yahoo.com>

LICENSE

Perl license.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 RT::CLIENT::REST::TRANSACTION (3) 2015-11-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.