1. A person commits extortion if the person does any of the following with the purpose of obtaining for oneself or another anything of value, tangible or intangible, including labor or services:
a. Threatens to inflict physical injury on some person, or to commit any public offense.
b. Threatens to accuse another of a public offense.
c. Threatens to expose any person to hatred, contempt, or ridicule.
d. Threatens to harm the credit or business or professional reputation of any person.
e. Threatens to take or withhold action as a public officer or employee, or to cause some public official or employee to take or withhold action.
f. Threatens to testify or provide information or to withhold testimony or information with respect to another’s legal claim or defense.
g. Threatens to wrongfully injure the property of another.
2. Extortion is a class “D” felony.
3. It is a defense to a charge of extortion that the person making a threat other than a threat to commit a public offense, reasonably believed that the person had a right to make such threats in order to recover property, or to receive compensation for property or services, or to recover a debt to which the person has a good faith claim.