TotalPaymentsOnOffer

From The Contingency Market

Jump to: navigation, search

Contents

TotalPaymentsOnOffer(ulSessionID,uSequenceID,sIntegrity,sOfferID,bOnCompletion,bPaid)

Accumulate the total payment so far in favour of the agent making the specified offer, given the acceptance or completion of deals involving it.

PARAMETERS

ulong ulSessionID 
ID of authenticated session.
uint uSequenceID 
Sequence number.
string sIntegrity 
md5("ipaddr(sid,seq)-> TotalPaymentsOnOffer(sOfferID,bOnCompletion,bPaid)/secret")
string sOfferID 
ID of offer for which payments are required.
string bOnCompletion 
false=total of payments on deal, true=total of payments on success/failure.
string bPaid 
false=total of payments due, true=total of payments paid.

RETURNS

double

double 
total payment (positive if credit, negative if debit).

FAULTS

Session.

TEST

TotalPaymentsOnOffer() currently returns: 'Null ID invalid'.

Views
Personal tools