Skip to content

Commit

Permalink
restore accidentally deleted method
Browse files Browse the repository at this point in the history
fixes LIBERAPAYCOM-295
  • Loading branch information
Changaco committed Jan 29, 2025
1 parent d1e16b2 commit 1ddbb6e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions liberapay/models/exchange_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,15 @@ def get_owner_name(self):
else:
raise NotImplementedError(self.network)

def get_postal_address(self):
if self.network.startswith('stripe-'):
if self.address.startswith('pm_'):
return self.stripe_payment_method.billing_details.address
else:
return self.stripe_source.owner.address
else:
raise NotImplementedError(self.network)

def set_postal_address(self, addr):
if self.network.startswith('stripe-'):
addr = addr.copy()
Expand Down

0 comments on commit 1ddbb6e

Please sign in to comment.