| | |
| | | import { EnumBillingMethod, BillingMethodEnumUnit } from '@12333/constants'; |
| | | import { |
| | | EnumBillingMethod, |
| | | BillingMethodEnumUnit, |
| | | EnumTaskCheckReceiveMethod, |
| | | } from '@12333/constants'; |
| | | |
| | | export class OrderUtils { |
| | | static getServiceFeeText(serviceFee: number, billingMethod: EnumBillingMethod) { |
| | |
| | | } |
| | | return `${serviceFee ?? 0}${BillingMethodEnumUnit[billingMethod]}`; |
| | | } |
| | | |
| | | static isContainCheckIn(checkReceiveMethods: EnumTaskCheckReceiveMethod[]) { |
| | | if (!checkReceiveMethods) return false; |
| | | return checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn); |
| | | } |
| | | } |