Created a source directly for purposes of deployment as zip file.

Updated to Python 3.
This commit is contained in:
JohnKent
2020-01-26 14:02:44 -05:00
parent 8bc23dc8b1
commit 3ffbd5ab3d
12 changed files with 33 additions and 262 deletions

View File

@@ -1,62 +1 @@
{
"htmlTemplate": "statement.pdf.jinja",
"txtTemplate": "statement.txt.jinja",
"format": "html",
"email": {
"from_address": "jkent3rd@gmail.com",
"to_address": "bck@virginia.edu",
"server": "smtp.gmail.com",
"password": "pvyrbcnzrjoizprn",
"template": "./template.txt",
"send_pdf": "true",
"send_text": "true",
"subject": "Your loan statement...",
"body": "Your loan statement is attached.",
"text": "Please see your most recent account statement."
},
"parameters": {
"account_number": "100001",
"principal": 35000.00,
"interest_rate": 5.0,
"periods_per_year": 12,
"periods": 180,
"start_date": "2018-06-25",
"start_interest_date": "2018-07-01",
"first_payment_month": "2018-08-01",
"monthly_payment": 278.15,
"payment_day_of_month": "01"
},
"borrower": {
"name": "Grandma Tina's Properties, LLC",
"address": "743 Madison St NW",
"city": "Washington",
"state": "DC",
"zip": "20011"
},
"lender": {
"name": "Brenda Kelly",
"phone": "434-286-2110",
"address": "150 Confederate Street",
"city": "Scottsville",
"state": "VA",
"zip": "24590"
},
"header": {
"title": "Mortgage Loan Statement - 185 James River Rd, Scottsville VA",
"date": "Today"
},
"payments": [
["2018-08-01", "278.15"],
["2018-09-01", "278.15"],
["2018-10-01", "278.15"],
["2018-11-01", "278.15"],
["2018-12-01", "278.15"],
["2019-01-01", "278.15"],
["2019-02-01", "278.15"],
["2019-03-01", "278.15"],
["2019-04-01", "278.15"],
["2019-05-01", "278.15"],
["2019-05-31", "278.15"],
["2019-07-01", "278.15"]
]
}
{"htmlTemplate": "statement.pdf.jinja", "parameters": {"monthly_payment": 278.15, "interest_rate": 5.0, "start_interest_date": "2018-07-01", "payment_day_of_month": "01", "first_payment_month": "2018-08-01", "account_number": "100001", "periods": 180, "start_date": "2018-06-25", "periods_per_year": 12, "principal": 35000.0}, "format": "html", "email": {"body": "Your loan statement is attached.", "to_address": "bck@virginia.edu", "from_address": "jkent3rd@gmail.com", "text": "Please see your most recent account statement.", "server": "smtp.gmail.com", "send_text": "true", "template": "./template.txt", "send_pdf": "true", "password": "pvyrbcnzrjoizprn", "subject": "Your loan statement..."}, "lender": {"city": "Scottsville", "name": "Brenda Kelly", "zip": "24590", "phone": "434-286-2110", "state": "VA", "address": "150 Confederate Street"}, "header": {"date": "Today", "title": "Mortgage Loan Statement - 185 James River Rd, Scottsville VA"}, "payments": [["2018-08-01", "278.15"], ["2018-09-01", "278.15"], ["2018-10-01", "278.15"], ["2018-11-01", "278.15"], ["2018-12-01", "278.15"], ["2019-01-01", "278.15"], ["2019-02-01", "278.15"], ["2019-03-01", "278.15"], ["2019-04-01", "278.15"], ["2019-05-01", "278.15"], ["2019-05-31", "278.15"], ["2019-07-01", "278.15"], ["2019-08-01", "278.15"], ["2019-09-02", "278.15"], ["2019-10-01", "278.15"], ["2019-11-01", "278.15"], ["2019-12-02", "278.15"], ["2020-01-02", "278.15"]], "borrower": {"city": "Washington", "state": "DC", "name": "Grandma Tina's Properties, LLC", "zip": "20011", "address": "743 Madison St NW"}, "txtTemplate": "statement.txt.jinja"}