-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validation for not valid service providers
- Loading branch information
1 parent
65ba23e
commit b742d50
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class UnknownServiceProvider(Exception): | ||
def __init__(self, service_provider: str): | ||
self.message = f'Unknown service provider: {service_provider}' |
32 changes: 32 additions & 0 deletions
32
...ll_failed[invoice_att-1111322016-Failed to make the consult, please try again later].yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
interactions: | ||
- request: | ||
body: '{"biller_id": 2901, "account_number": "1111322016"}' | ||
headers: | ||
Accept: [application/vnd.regalii.v3.1+json] | ||
Accept-Encoding: ['gzip, deflate'] | ||
Authorization: ['APIAuth 88879c1b066dc9aea6201f27be2bbba9:+TTf4cRhwxkSwXX4JlnGk/1ePY0='] | ||
Connection: [keep-alive] | ||
Content-Length: ['51'] | ||
Content-MD5: [ZkNGR5IItPT5UO5fquuDpg==] | ||
Content-Type: [application/json] | ||
Date: ['Tue, 29 Jan 2019 17:26:20 GMT'] | ||
User-Agent: [python-requests/2.20.1] | ||
method: POST | ||
uri: https://api.casiregalii.com/bills | ||
response: | ||
body: {string: '{"code":"R16","message":"Failed to make the consult, please try | ||
again later","id":8393}'} | ||
headers: | ||
Cache-Control: [no-cache] | ||
Connection: [keep-alive] | ||
Content-Type: [application/json; charset=utf-8] | ||
Date: ['Tue, 29 Jan 2019 17:26:21 GMT'] | ||
Strict-Transport-Security: [max-age=31536000] | ||
Transfer-Encoding: [chunked] | ||
X-Content-Type-Options: [nosniff] | ||
X-Frame-Options: [SAMEORIGIN] | ||
X-Request-Id: [edc24444-4346-4fba-8a30-0c990eb8c019] | ||
X-Runtime: ['1.061626'] | ||
X-XSS-Protection: [1; mode=block] | ||
status: {code: 422, message: Unprocessable Entity} | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters