forked from amer2004/SweetHome
26 lines
809 B
JavaScript
26 lines
809 B
JavaScript
/**
|
|
* CommissionType Enum
|
|
* Defines who pays the platform commission
|
|
* Used in: Property pricing, booking financials
|
|
*/
|
|
const CommissionType = Object.freeze({
|
|
FROM_OWNER: 'from_owner',
|
|
FROM_TENANT: 'from_tenant',
|
|
FROM_BOTH: 'from_both',
|
|
});
|
|
|
|
// Map type → Arabic label
|
|
const CommissionTypeLabels = Object.freeze({
|
|
[CommissionType.FROM_OWNER]: 'من المالك',
|
|
[CommissionType.FROM_TENANT]: 'من المستأجر',
|
|
[CommissionType.FROM_BOTH]: 'من الاثنين',
|
|
});
|
|
|
|
const CommissionTypeTranslationKeys = Object.freeze({
|
|
[CommissionType.FROM_OWNER]: 'commissionType.fromOwner',
|
|
[CommissionType.FROM_TENANT]: 'commissionType.fromTenant',
|
|
[CommissionType.FROM_BOTH]: 'commissionType.fromBoth',
|
|
});
|
|
|
|
export { CommissionType, CommissionTypeLabels, CommissionTypeTranslationKeys };
|