This repository was archived by the owner on Feb 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoverageLifecycle.py
More file actions
53 lines (45 loc) · 2.04 KB
/
coverageLifecycle.py
File metadata and controls
53 lines (45 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from .api import http_method
coverage_lifecycle_endpoint = {
'request_quote': 'coverage',
'update_quote': 'coverage/{}', # cover-id
'activate_cover': 'coverage/{}/activate', # cover-id
'reject_cover': 'coverage/{}/reject', # id
'settle_cover': 'coverage/{}/settle', # id
'claim_cover': 'coverage/{}/claim', # cover-id
'get-claim': 'coverage/{}/claim' # cover-id
}
class CoverageLifecycle:
def __init__(self, api):
self.api = api
def request_quote(self, seller_id, buyer_id, invoice_amount, invoice_currency, invoice_due_at, invoice_issued_at, invoice_number, invoice=None):
raise NotImplementedError
def activate_cover(self, cover_id):
raise NotImplementedError
def reject_cover(self, id):
raise NotImplementedError
def settle_cover(self, id, settledat):
raise NotImplementedError
def claim_cover(self,
file,
contacts=None,
contacts.creditor=None,
contacts.creditor.contactInformation=None,
contacts.creditor.contactInformation.firstName=None,
contacts.creditor.contactInformation.lastName=None,
contacts.creditor.contactInformation.officePhone=None,
contacts.creditor.contactInformation.mobilePhone=None,
contacts.creditor.contactInformation.email=None,
contacts.debtor=None,
contacts.debtor.contactInformation=None,
contacts.debtor.contactInformation.lastName=None,
contacts.debtor.contactInformation.officePhone=None,
contacts.debtor.contactInformation.mobilePhone=None,
contacts.debtor.contactInformation.email=None,
claimContextInfo=None,
claimContextInfo.referenceNumber=None,
claimContextInfo.isInvoiceDisputed=None,
claimContextInfo.isInsolvencyProceeding=None,
claimContextInfo.comment=None):
raise NotImplementedError
def get_claim(self, cover_id):
raise NotImplementedError