Skip to content

Latest commit

 

History

History
72 lines (69 loc) · 2.08 KB

File metadata and controls

72 lines (69 loc) · 2.08 KB

Important Constants

  • endpoint: "https://www2.donotcall.gov"
    • submit_registration_url: endpoint + "/save-phone-registration",
    • confirm_registration_url: endpoint + "/confirm-phone-registration",
    • submit_verification_url: endpoint + "/save-phone-verification",
    • submit_complaint_url: endpoint + "/save-complaint",
    • complaint_step2_url: endpoint + "/complaint-step2" (Doesn't appear to be used)
    • complaint_text_url: endpoint + "/complaint-text-message-link"

Upload Model

  • phoneNumber
  • dateOfCall
  • timeOfCall
  • minuteOfCall
  • wasPrerecorded
  • isMobileCall
  • subjectMatter
  • companyPhoneNumber
  • companyName
  • haveDoneBusiness
  • askedToStop
  • firstName
  • lastName
  • streetAddress1
  • streetAddress2
  • city
  • state
  • zip
  • comments
  • language
  • validFlag

Program Flow

  1. Step 1
  • Validation
    • Send to URL dnc_app.config.complaint_step2_url
      • Only data _model.phoneNumber, _model.dateOfCall
  • Outcomes
    • DONE Outcomes
      • 0 (full success)
      • partials/report/step2InvalidPhoneRegistration
      • partials/report/step2InGracePeriod
      • Issue: run dnc_app.utils.getSupportId(e)
    • FAIL Outcomes [1]
  1. Step 2
  • Final validation
    • validFlag not ""
    • run chkConsumerCompanyPhone()
  • 4 possible outcomes

Other Notes

  • Subject Matter # 8 -> "partials/report/step2DebtCollectorCall"
  • Subject Matter #15 -> "partials/report/step2SurveyCall"
  • Text Message Step 2 -> "partials/report/step2MobileCall"
  • Subject Matter Values
    • 0 Unknown
    • 1 Other
    • 2 Dropped call or no message
    • 3 Reducing your debt (credit cards, mortgage, student loans)
    • 4 Calls pretending to be government, businesses, or family and friends
    • 5 Medical & prescriptions
    • 6 Home security & alarms
    • 7 Computer & technical support
    • 8 Debt collection
    • 9 Energy, solar, & utilities
    • 10 Home improvement & cleaning
    • 11 Work from home & other ways to make money
    • 12 Warranties & protection plans
    • 13 Lotteries, prizes & sweepstakes
    • 14 Vacation & timeshares
    • 15 Surveys & political calls
    • 16 Charities