updateDpPeriodTime(dpCode: string, data: UpdateDpPeriodTimeParams, option?: UpdateDpPeriodTimeOption)

Requires:
@ray-js/lock-sdk≥1.0.0

Description

Update the time range of a time-range DP

Parameters

ParameterTypeRequiredDescription
dpCodestringYesDP code
YesStart/end time
NoOptions

Return Value

Type: Promise<void>
None (resolve after successful delivery)

Examples

import { updateDpPeriodTime } from '@ray-js/lock-sdk';
await updateDpPeriodTime('dp_code', { start: 0, end: 100 });