Skip to content

Latest commit

 

History

History
92 lines (60 loc) · 1.72 KB

README.md

File metadata and controls

92 lines (60 loc) · 1.72 KB

Co-op Claim Automation

Automatically fills out form and uploads files for co-op claims.

Getting Started

Prerequisites

Installing

Clone the repo

git clone https://github.com/hutsoninc/coop-claim-automation.git

Move into the repo directory and run npm install

cd coop-claim-automation && npm install

Setup

Create a new file called .env in the root directory and enter your environment variables.

DEALER_CLAIM_URL=your-url
DEERE_USER=your-username
DEERE_PWD=your-password

Make a directory to store claim data.

This is where you will store all the files necessary to submit a claim. When submitting a claim, make a new folder and name it with the preapproval number.

mkdir claim-data
cd claim-data && mkdir processed skipped zipped

Move back to the root directory, then into the app directory.

cd ../app

Create claim and config files.

The claims.csv file is where you will enter in your claim information. You may also enter it in the claims.json file directly.

touch claims.csv claims.json config.json

Windows

echo "" > claims.csv
echo "" > claims.json
echo "" > config.json

In config.json file:

{
    "email": "your-email",
    "name": "your-name",
    "phone": "your-phone"
}

In claims.csv file:

Media Type,Invoice Amount,Media Name,Invoice Number,Invoice Date,Preapproval Number

Built With

Authors

  • Austin Gordon - Development - GitHub

License

This project is licensed under the MIT License - see the LICENSE.md file for details.