Commands

When running commands as cron jobs, set the -q (--quiet) option, to decrease verbosity.

app

                                                                                          
 Usage: python -m app [OPTIONS] COMMAND [ARGS]...                                         
                                                                                          
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --quiet               -q                                                               │
│ --install-completion            Install completion for the current shell.              │
│ --show-completion               Show completion for the current shell, to copy it or   │
│                                 customize the installation.                            │
│ --help                          Show this message and exit.                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────╮
│ fetch-awards                    Fetch new awards from the date of the most recently    │
│                                 updated award, or in the selected period.              │
│ fetch-award-by-id-and-supplier  Fetch one award, by award ID and supplier ID, and      │
│                                 process it like the fetch-awards command.              │
│ send-reminders                  Remind borrowers to accept or decline invitations,     │
│                                 submit applications and start external onboarding.     │
│ update-applications-to-lapsed   Lapse applications that have been waiting for the      │
│                                 borrower to respond for some time.                     │
│ sla-overdue-applications        Send reminders to lenders and OCP about overdue        │
│                                 applications.                                          │
│ remove-dated-application-data   Clear personal data and delete borrower documents from │
│                                 applications that have been in a final state for some  │
│                                 time.                                                  │
│ dev                             Commands for maintainers of Credere.                   │
╰────────────────────────────────────────────────────────────────────────────────────────╯

fetch-awards

                                                                                          
 Usage: python -m app fetch-awards [OPTIONS]                                              
                                                                                          
 Fetch new awards from the date of the most recently updated award, or in the selected    
 period.                                                                                  
                                                                                          
                                                                                          
 -  If the award already exists, skip the award.                                          
    Otherwise, create the award.                                                          
 -  If the borrower opted out of Credere entirely, skip the award.                        
    Otherwise, create or update the borrower.                                             
 -  If the application already exists, skip the award.                                    
    Otherwise, create a PENDING application and email an invitation to the borrower.      
                                                                                          
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --from-date         [%Y-%m-%d]                                                         │
│ --until-date        [%Y-%m-%d]                                                         │
│ --help                          Show this message and exit.                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯

fetch-award-by-id-and-supplier

                                                                                          
 Usage: python -m app fetch-award-by-id-and-supplier [OPTIONS] AWARD_ID SUPPLIER_ID       
                                                                                          
 Fetch one award, by award ID and supplier ID, and process it like the fetch-awards       
 command.                                                                                 
                                                                                          
 Use this to manually invite a borrower who wasn't automatically invited.                 
                                                                                          
╭─ Arguments ────────────────────────────────────────────────────────────────────────────╮
│ *    award_id         TEXT  [required]                                                 │
│ *    supplier_id      TEXT  [required]                                                 │
╰────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯

send-reminders

                                                                                          
 Usage: python -m app send-reminders [OPTIONS]                                            
                                                                                          
 Remind borrowers to accept or decline invitations, submit applications and start         
 external onboarding.                                                                     
                                                                                          
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯

update-applications-to-lapsed

                                                                                          
 Usage: python -m app update-applications-to-lapsed [OPTIONS]                             
                                                                                          
 Lapse applications that have been waiting for the borrower to respond for some time.     
                                                                                          
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯

sla-overdue-applications

                                                                                          
 Usage: python -m app sla-overdue-applications [OPTIONS]                                  
                                                                                          
 Send reminders to lenders and OCP about overdue applications.                            
                                                                                          
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯

remove-dated-application-data

                                                                                          
 Usage: python -m app remove-dated-application-data [OPTIONS]                             
                                                                                          
 Clear personal data and delete borrower documents from applications that have been in a  
 final state for some time.                                                               
                                                                                          
 If the borrower has no other active applications, clear the borrower's personal data.    
                                                                                          
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯

dev

                                                                                          
 Usage: python -m app dev [OPTIONS] COMMAND [ARGS]...                                     
                                                                                          
 Commands for maintainers of Credere.                                                     
                                                                                          
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────╮
│ routes          Print a table of routes.                                               │
│ cli-input-json  Print a JSON string for the aws ses create-template --cli-input-json   │
│                 argument.                                                              │
╰────────────────────────────────────────────────────────────────────────────────────────╯

routes

                                                                                          
 Usage: python -m app dev routes [OPTIONS]                                                
                                                                                          
 Print a table of routes.                                                                 
                                                                                          
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --file                             FILENAME                                            │
│ --csv-format    --no-csv-format              [default: no-csv-format]                  │
│ --help                                       Show this message and exit.               │
╰────────────────────────────────────────────────────────────────────────────────────────╯

cli-input-json

                                                                                          
 Usage: python -m app dev cli-input-json [OPTIONS] NAME FILE                              
                                                                                          
 Print a JSON string for the aws ses create-template --cli-input-json argument.           
                                                                                          
╭─ Arguments ────────────────────────────────────────────────────────────────────────────╮
│ *    name      TEXT      [required]                                                    │
│ *    file      FILENAME  [required]                                                    │
╰────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                            │
╰────────────────────────────────────────────────────────────────────────────────────────╯