Skip to content

Commit

Permalink
Remove redundant patch in account.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bhch committed Oct 5, 2022
1 parent 00b843f commit b2a80c0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions async_stripe/api_resources/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@ async def retrieve_patch(cls, id=None, api_key=None, **params):
stripe.Account.retrieve = classmethod(retrieve_patch)


def serialize_patch(self, previous):
params = super(Account, self).serialize(previous)
previous = previous or self._previous or {}

for k, v in six.iteritems(self):
if (
k == "individual"
and isinstance(v, stripe.api_resources.Person)
and k not in params
):
params[k] = v.serialize(previous.get(k, None))

return params


nested_resources = ["capability", "login_link", "external_account", "person",]

patch_nested_resources(stripe.Account, nested_resources)

0 comments on commit b2a80c0

Please sign in to comment.