The number of Bonvoy points you earn is based on your room rate. For most brands you earn 10 Bonvoy points per USD 1 spent. Element, Residence Inn, and TownePlace Suites earn 5 points per USD. For Marriott Executive Apartments and ExecuStay - 2.5 points per USD.
Food and beverage spending in a restaurant associated with the property earns 10 Bonvoy points USD 1 spent. Tier bonuses apply if the spend is associated with a member's stay.