@@ -181,11 +181,8 @@ class LetterOfCredit extends Component {
181181 "$class" : "org.example.loc.ProductDetails" ,
182182 "productType" : type ,
183183 "quantity" : quantity ,
184- "pricePerUnit" : price . toFixed ( 2 ) ,
185- "id" : "string"
186- } ,
187- "transactionId" : "" ,
188- "timestamp" : "2018-03-13T11:35:00.218Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
184+ "pricePerUnit" : price . toFixed ( 2 )
185+ }
189186 } )
190187 . then ( ( ) => {
191188 this . setState ( {
@@ -219,9 +216,7 @@ class LetterOfCredit extends Component {
219216 axios . post ( this . config . restServer . httpURL + '/Approve' , {
220217 "$class" : "org.example.loc.Approve" ,
221218 "loc" : letter ,
222- "approvingParty" : resourceURL + approvingParty ,
223- "transactionId" : "" ,
224- "timestamp" : "2018-03-13T11:25:08.043Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
219+ "approvingParty" : resourceURL + approvingParty
225220 } )
226221 . then ( ( ) => {
227222 this . setState ( {
@@ -243,9 +238,7 @@ class LetterOfCredit extends Component {
243238 axios . post ( this . config . restServer . httpURL + '/Reject' , {
244239 "$class" : "org.example.loc.Reject" ,
245240 "loc" : letter ,
246- "closeReason" : "Letter has been rejected" ,
247- "transactionId" : "" ,
248- "timestamp" : "2018-03-13T11:35:00.281Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
241+ "closeReason" : "Letter has been rejected"
249242 } )
250243 . then ( ( ) => {
251244 this . setState ( {
@@ -265,10 +258,7 @@ class LetterOfCredit extends Component {
265258 let letter = "resource:org.example.loc.LetterOfCredit#" + letterId ;
266259 axios . post ( this . config . restServer . httpURL + '/ReadyForPayment' , {
267260 "$class" : "org.example.loc.ReadyForPayment" ,
268- "loc" : letter ,
269- 'beneficiary' : "resource:org.example.loc.Customer#bob" ,
270- "transactionId" : "" ,
271- "timestamp" : "2018-03-13T11:35:00.281Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
261+ "loc" : letter
272262 } )
273263 . then ( ( ) => {
274264 this . setState ( {
@@ -289,9 +279,7 @@ class LetterOfCredit extends Component {
289279 axios . post ( this . config . restServer . httpURL + '/Close' , {
290280 "$class" : "org.example.loc.Close" ,
291281 "loc" : letter ,
292- "closeReason" : "Letter has been completed." ,
293- "transactionId" : "" ,
294- "timestamp" : "2018-03-13T11:35:00.139Z" // the transactions seem to need this field filled in; when submitted the correct time will replace this value
282+ "closeReason" : "Letter has been completed."
295283 } )
296284 . then ( ( ) => {
297285 this . setState ( {
0 commit comments