Skip to content

API ReferenceReact componentsInterface

LOCDetailsViewProps

Beta

Param

loc

The Letter of Credit data to display.

Param

mode

Sets the view mode between beneficiary and creator.

Param

disableLOCExtension

Determines if the LOC extension is disabled. Default is false

Param

allowRedeem

Determines if the LOC can be redeemed. Default is false

Param

allowCancel

Determines if the LOC can be cancelled. Default is false

Param

onWorkflowPrepared

Reports a workflow this view prepared (cancellation or extension) to the host flow, which executes it.

Param

onRedeem

Called when the user chooses to redeem.

Param

className

Additional class names for styling.

Properties

allowCancel?

optional allowCancel?: boolean;

Beta


allowRedeem?

optional allowRedeem?: boolean;

Beta


cancelAuthorization?

optional cancelAuthorization?: CancelLOCAuthorizationSource;

Beta

Per-render cancellation authorization. undefined inherits LOCConfig.cancelAuthorization; null disables it for this view.


className?

optional className?: string;

Beta


createdAtTimestamp?

optional createdAtTimestamp?: bigint;

Beta

Creation timestamp from the canonical LOC origin; omitted while that read is unavailable.


disableLOCExtension?

optional disableLOCExtension?: boolean;

Beta


loc

loc: OutstandingLetterOfCredit;

Beta


mode?

optional mode?: "beneficiary" | "creator";

Beta


onRedeem?

optional onRedeem?: () => void;

Beta

Returns

void


onWorkflowPrepared?

optional onWorkflowPrepared?: (prepared) => void;

Beta

Parameters

ParameterType
preparedPreparedWorkflowHandoff

Returns

void