This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "policy": { | |
| "states": "Oregon", | |
| "lineOfBusiness": "Commercial", | |
| "policyLineItem": "Owner Operator", | |
| "coverageTerm": "Annual", | |
| "policyCategory": "Taxicabs and Limousines", | |
| "underwritingCode": "New Business", | |
| "agent": "Quantum Risk Solutions (QRSBRK)", | |
| "effectiveDate": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* changes, | |
| added name to the policy, | |
| added | |
| "overallPremium", | |
| "personalInjuryProtectionPremium", | |
| "medicalPaymentsPremium", | |
| "underinsuredMotoristPremium", | |
| "uninsuredMotoristPremium" | |
| "hiredCSLPremium", | |
| "nonOwnedCSLPremium" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // the end point im hitting is https://lyricgen.hmtaapi.com/api/v1/newslettercontacts/ | |
| // it returns the current list but doesnt update it. | |
| // if i try and update something even on the site( https://lyricgen.hmtaapi.com/api/v1/newslettercontacts/) such as | |
| // { first_name: 'luke', newsletter: 1,} it returns a server error | |
| async saveAndCloseOutNewletter() { | |
| const { firstName, lastName, email } = this.state; | |
| const body = { | |
| first_name: firstName, | |
| last_name: lastName, |