Calculate the fees charged to a barber for a money amount.
Use this operation to estimate barber-facing appointment and payout fees.
The amount of money to calculate the fee for. A monetary amount in the lowest denomination for the given currency. The numeric value is represented as a string so that it can be exact with no loss of precision.
^(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
The type of barber fee to calculate. The available barber fee calculation types.
standardPayout, instantPayout, appointment Ok. The operation succeeded.
The calculated barber fees for the given monetary amount.
The appointment subtotal before fees are applied.
^(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
The calculated fee for the given money amount.
^(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
The appointment total after fees are applied.
^(0|[1-9][0-9]*)\.[0-9][0-9]$"456.78"
The barber fee calculation type.
appointment