Skip to content

Commit 9f73c30

Browse files
author
Mack
committed
feat: add Opal Token retrieve/deactivate + missing report types
Medium-priority SDK sync — missing operations: - Opal Token: add retrieve() and deactivate() methods (only had create()) - Reports: add ach.debit.daily and reserve_fbo_balance.created.previous_day types
1 parent 8ef0c7d commit 9f73c30

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

method/resources/Opal/Token.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,9 @@ def __init__(self, config: Configuration):
102102

103103
def create(self, opts: OpalTokenCreateOpts) -> MethodResponse[OpalToken]:
104104
return super(OpalTokenResource, self)._create(opts)
105+
106+
def retrieve(self, _id: str) -> MethodResponse[OpalToken]:
107+
return super(OpalTokenResource, self)._get_with_id(_id)
108+
109+
def deactivate(self, _id: str) -> MethodResponse[OpalToken]:
110+
return super(OpalTokenResource, self)._delete(_id)

method/resources/Report.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
'ach.pull.previous',
1616
'ach.pull.nightly',
1717
'ach.reversals.nightly',
18-
'entities.created.previous_day'
18+
'entities.created.previous_day',
19+
'ach.debit.daily',
20+
'reserve_fbo_balance.created.previous_day'
1921
]
2022

2123

@@ -48,7 +50,7 @@ def retrieve(self, _id: str) -> MethodResponse[Report]:
4850
return super(ReportResource, self)._get_with_id(_id)
4951

5052
def create(self, opts: ReportCreateOpts, request_opts: Optional[RequestOpts] = None) -> MethodResponse[Report]:
51-
return super(ReportResource, self)._create(opts, request_opts)
53+
return super(ReportResource, self)._create(opts, request_opts=request_opts)
5254

5355
def download(self, _id: str) -> str:
5456
return super(ReportResource, self)._download(_id)

0 commit comments

Comments
 (0)