Creating a talent marketplace
Let’s walk though how we would model a talent marketplace by using multiple price functions in the price model. We’ll start with a basic scenario and see how we can add price functions to compose sophisticated business models. Basic metered billing: Cody is a consultant who provides consulting services at $100 per hour that is collected monthly. This is the example from the developer quick start. To handle Cody’s billing, we create a price model with: One price function of type per-unit-meter and meter name cody-hours-worked and meter rate $100. Billing frequency: monthly. Usage based billing with tiers: Consulting retainer for 125 for any additional hours. We create a price model with:- Two price functions:
- Type
per-unitof $3500 - Type
per-unit-meterand meter namecody-hours-workedwith two tier. Tier 1: 0 to 40, meter rate is 125
- Billing frequency:
monthly.
- Three price functions:
- Type
per-unitof $3500 with destination account Cody. - Type
per-unit-meterand meter namecody-hours-workedwith two tier. Tier 1: 0 to 40, meter rate is 125 with destination account Cody. - Type
percentagewith percent15%an amountsum-function-outputs.
- Billing frequency:
monthly.
- Four price functions:
- Type
per-unitof $3500. - Type
per-unit-meterand meter namecody-hours-workedwith two tier. Tier 1: 0 to 40, meter rate is 125. - Type
percentagewith percent 10% an amountsum-function-outputsand index values [0,1]. - Type
percentagewith percent 5% an amountsum-function-outputsand index values [0,1] and destination account Ruby.
- Billing frequency:
monthly.