DOCUMENT
Data Type : Billing
DOCUMENT - Document Billing Record
#include <billing.h>
Definition :
typedef struct {
WORD Type;
TIMEDATE ReplicaID;
char Username[MAXUSERNAME+1];
OID OriginatorID;
NUMBER Charge;
} DOCUMENT;
Description :
To create Document billing records, you must include the Document keyword in the notes.ini BillingClass variable on the billing server. This enables the Lotus Domino Server to write document-related information to the billing message queue which then can be read into the DOCUMENT structure by a Domino billing add-in server task.
When a document contains a $ChargeRead hidden field, the server writes a Document billing record to the message queue on a NSFNoteOpen. If the document contains a $ChargeWrite hidden field, the server writes a billing record to the message queue on a NSFNoteUpdate. This feature provides a mechanism for third party information providers to charge for access to documents.
To insert hidden charge fields in a form, see the Domino Administration Help database.
Structure Description
Type: Valid values are BILLCHARGEREAD or BILLCHARGEWRITE.
ReplicaID: Unique identifier (ID) of the open database.
Username: Authenticated name of the user accessing the document.
Originator ID: The Originator ID (OID) of the note, used to report the Universal Note ID (UNID).
Charge: Cost value of the $ChargeRead or $ChargeWrite field.
See Also : AGENTREC BILLCHARGExxx BILLMSG BILLREC DBREC HTTPREQREC MAILREC REPLREC SESSIONREC