November 2018
Intermediate to advanced
528 pages
13h 21m
English
After the buyer submits an LC request, the issuing bank approves the LC form, and sends it to the confirming bank. In our model file, we define the related IssuingBankApproveLC transaction and the related event as follows:
transaction IssuingBankApproveLC { --> LetterOfCredit lc}event IssuingBankApproveLCEvent { --> LetterOfCredit lc}
The transaction logic here is similar to the previous step, where we use getAssetRegistry to find the existing LC asset and we update the LC status, before emitting the IssuingBankApproveLCEvent. The letter status is set to ISSUE_LC, and the LC step to 2:
/** * issuing bank approval buyer LC * @param {org.example.lc.IssuingBankApproveLC} issuingBankApproveLC - * Issuing Bank approval LC transaction ...Read now
Unlock full access