From 3d1d859c31d5d54ae78d970a73d959c4e30c6518 Mon Sep 17 00:00:00 2001 From: djfiander Date: Wed, 12 Apr 2006 15:20:54 +0000 Subject: [PATCH] More documentation --- ILS.pod | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/ILS.pod b/ILS.pod index f1d637c..07198ac 100644 --- a/ILS.pod +++ b/ILS.pod @@ -68,6 +68,12 @@ patron and an item are C functions, while others, like C or C, are functions of the corresponding sub-module. +In the stub implementation provided with the SIP system, the +C<$status> objects returned by the various transactions are all +objects that are subclasses of a virtual C +object, but this is not required of the SIP code, as long as the +status objects support the appropriate methods. + =head2 C<$status = $ils-Echeckout($patron_id, $item_id, $sc_renew)> Check out (or possibly renew) item with barcode C<$item_id> to @@ -194,7 +200,7 @@ terminal's receipt printer. =back -=head2 C<$status = $ils-Eblock_patron($patron_id, $card_retained, $blocked_card_msg); +=head2 C<$status = $ils-Eblock_patron($patron_id, $card_retained, $blocked_card_msg);> Block the account of the patron identified by C<$patron_id>. If the self check unit captured the patron's card, then @@ -215,3 +221,64 @@ unit. The function returns a boolean C<$status>, where C indicates success, and two strings: a screen message to display on the self check unit's console, and a print line to be printed on the unit's receipt printer. + +=head2 C<$status = $ils-Epay_fee($patron_id, $patron_pwd, $fee_amt, $fee_type, $pay_type, $fee_id, $trans_id, $currency)> + +Reports that the self check terminal handled fee payment from +patron C<$patron_id> (who has password C<$patron_pwd>, which is +an optional parameter). The +other parameters are: + +=over + +=item C<$fee_amt> + +The amount of the fee. + +=item C<$fee_type> + +The type of fee, according a table in the SIP protocol +specification. + +=item C<$pay_type> + +The payment method. Defined in the SIP protocol specification. + +=item C<$fee_id> + +Optional. Identifies which particular fee was paid. This +identifier would have been sent from the ILS to the Self Check +unit by a previous "Patron Information Response" message. + +=item C<$trans_id> + +Optional. A transaction identifier set by the payment device. +This should be recorded by the ILS for financial tracking +purposes. + +=item C<$currency> + +The currency used to pay the fee. Use the three-character +alphabetic codes defined in ISO 4217:1995. + +=back + +The status object returned by the C must support the +following methods: + +=over + +=item C + +Returns C if the fee was properly recorded; C +otherwise. + +=item C + +Transaction identifier of the transaction. This parallels the +optional C<$trans_id> sent from the terminal to the ILS. This +may return an empty string. + +=item C, C + +Defined as for every other transaction. -- 2.11.0