export class OrderUtils {
|
static getServiceFeeText(serviceFee: number, billingMethod: EnumBillingMethod) {
|
if (billingMethod === EnumBillingMethod.Face) {
|
return EnumBillingMethodUnitText[billingMethod];
|
}
|
return `${serviceFee ?? 0}${EnumBillingMethodUnitText[billingMethod]}`;
|
}
|
|
static isContainCheckIn(checkReceiveMethods: EnumTaskCheckReceiveMethod[]) {
|
if (!checkReceiveMethods) return false;
|
return checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn);
|
}
|
}
|