Constclass QuoteFromSupplierA implements Step<JoinRound> {
public readonly inputCodec = joinRoundCodec;
public getStepType(): string {
return "QuoteFromSupplierA";
}
public execute(context: Context, round: JoinRound): StepDecision {
return quoteReceived.endBranch(context, round, "A");
}
}
Decoding throws a TypeError when roundKey is not a non-empty string without /, or when
branchCount is not a non-negative safe integer.
Encodes a JoinRound as the JSON object
{"roundKey": string, "branchCount": integer}.Use it as the
inputCodecof a branch Step whose input is exactly a JoinRound. Encoding writes only the two fields. Decoding ignores unknown fields, because later releases may add fields.