Skip to content

Commit

Permalink
Merge pull request bcgov#52 from turb0c0w/tyler/fixes_for_test_env
Browse files Browse the repository at this point in the history
Tyler/fixes for test env
  • Loading branch information
Arash-IND authored Jul 15, 2024
2 parents f9a06a9 + 635f750 commit c34bc87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions strr-api/src/strr_api/schemas/schemas/registration.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,12 @@
"type": "string"
},
"propertyType": {
"type": "string"
"type": "string",
"enum": ["PRIMARY", "SECONDARY", "ACCESSORY", "FLOAT_HOME", "OTHER"]
},
"ownershipType": {
"type": "string"
"type": "string",
"enum": ["OWN", "RENT", "CO_OWN"]
}
},
"required": [
Expand Down
1 change: 1 addition & 0 deletions strr-api/src/strr_api/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@
PAYMENT_REQUEST_TEMPLATE = {
"filingInfo": {"filingTypes": [{"filingTypeCode": "RENTAL_FEE"}]},
"businessInfo": {"corpType": "STRR"},
"paymentInfo": {"methodOfPayment": "DIRECT_PAY"},
}
strr_pay = PayService(default_invoice_payload=PAYMENT_REQUEST_TEMPLATE)
1 change: 1 addition & 0 deletions strr-api/tests/unit/services/test_pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def test_init_strr_pay(app):
assert strr_pay.default_invoice_payload == {
"businessInfo": {"corpType": "STRR"},
"filingInfo": {"filingTypes": [{"filingTypeCode": "RENTAL_FEE"}]},
"paymentInfo": {"methodOfPayment": "DIRECT_PAY"},
}


Expand Down

0 comments on commit c34bc87

Please sign in to comment.