November 2018
Intermediate to advanced
528 pages
13h 21m
English
This will be the final step in the LC process, where the buyer receives the goods and the seller receives the payment. Therefore, we define a closing transaction referencing the targeted LC and the reason behind the closure:
transaction Close { --> LetterOfCredit lc o String closeReason}event CloseEvent { --> LetterOfCredit lc o String closeReason}
The letter status is set to CLOSED, and the step to 10:
/** * Close the LOC * @param {org.example.lc.Close} close - the Close transaction * @transaction */async function close(closeRequest) { // eslint-disable-line no-unused-vars const factory = getFactory(); const namespace = 'org.example.lc'; let letter = closeRequest.lc; if (letter.status === 'SELL_RECEIVED_PAYMENT') { letter.status ...Read now
Unlock full access