November 2018
Intermediate to advanced
528 pages
13h 21m
English
When the buyer receives the goods, the issuing bank transfers payment to the confirming bank. In this step, we define the BanksTransferPayment transaction and related event and update the LC status:
transaction BanksTransferPayment { --> LetterOfCredit lc}event BanksTransferPaymentEvent { --> LetterOfCredit lc}
The letter status is set to BANKS_PAYMENT_TRANSFER, and the step to 8:
/** * banks Transfer Payment * @param {org.example.lc.BanksTransferPayment} banksTransferPayment - banks Transfer Payment * @transaction */async function banksTransferPayment(request) { // eslint-disable-line no-unused-vars const factory = getFactory(); const namespace = 'org.example.lc'; let letter = request.lc; if (letter.status === 'CLOSED') ...Read now
Unlock full access