Skip to content

Commit 9a3aadc

Browse files
committed
Add credit card endpoints
1 parent 8e05d3f commit 9a3aadc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

threescale_api/resources.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,16 @@ def applications(self) -> Applications:
12521252
def users(self) -> AccountUsers:
12531253
return AccountUsers(parent=self, instance_klass=AccountUser)
12541254

1255+
def credit_card_set(self, params: dict = None, **kwargs):
1256+
url = self.url + "/credit_card"
1257+
response = self.client.rest.put(url=url, json=params, **kwargs)
1258+
return response
1259+
1260+
def credit_card_delete(self, params: dict = None, **kwargs):
1261+
url = self.url + "/credit_card"
1262+
response = self.client.rest.delete(url=url, json=params, **kwargs)
1263+
return response
1264+
12551265

12561266
class UserPermissions(DefaultResource):
12571267
pass

0 commit comments

Comments
 (0)