[Webfunds-commits] java/webfunds/sox Payment.java
Ian Grigg
iang@cypherpunks.ai
Thu, 30 Nov 2000 09:39:13 -0400 (AST)
iang 00/11/30 09:39:13
Modified: webfunds/sox Payment.java
Log:
better example()
Revision Changes Path
1.25 +10 -6 java/webfunds/sox/Payment.java
Index: Payment.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/Payment.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- Payment.java 2000/11/09 13:13:50 1.24
+++ Payment.java 2000/11/30 13:39:13 1.25
@@ -1,5 +1,5 @@
/*
- * $Id: Payment.java,v 1.24 2000/11/09 13:13:50 iang Exp $
+ * $Id: Payment.java,v 1.25 2000/11/30 13:39:13 iang Exp $
*
* Copyright (c) Systemics Inc 1995-2000 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -429,16 +429,20 @@
AccountId ac1 = AccountId.example();
AccountId ac2 = AccountId.example();
- String pid = webfunds.utils.Hex.data2hex(Utils.exampleData(9));
- byte[] desc = Utils.exampleData(10);
- byte[] sig = Utils.exampleData(40);
- if ((desc[0] & 0x8) == 0x8)
+ String pid = webfunds.utils.Hex.data2hex(Utils.exampleData());
+ byte[] desc = Utils.exampleData();
+ byte[] sig = Utils.exampleData();
+
+ byte b = Utils.exampleByte();
+ if ((b & 0x1) == 0x1)
sig = null;
// hmm, make sure these are sensible
long now = exampleTime();
long then = exampleTime();
+ long qty = Utils.exampleLong();
+
if (then < now)
{
long t = now;
@@ -447,7 +451,7 @@
}
Payment e;
- e = new Payment(pid, ac1, ac2, item, 10, desc, false, now, then);
+ e = new Payment(pid, ac1, ac2, item, qty, desc, false, now, then);
e.setSignature(sig);
return e;