You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an event has event.object_.Payment defined both the counterparty_alias.label_monetary_account and counterparty_alias.pointer are None
Quick test code:
# Get paymentspayments=endpoint.Payment.list(
monetary_account_id=monetary_account_id,
params=params,
).value# Add parameters to only list for current monetary_account_idparams['monetary_account_id'] =monetary_account_idparams['display_user_event'] ='false'# Get eventsevents=endpoint.Event.list(
params=params,
).valueforpaymentinpayments:
print(payment.counterparty_alias.label_monetary_account)
foreventinevents:
ifevent.object_.Payment:
print(event.object_.Payment.counterparty_alias.label_monetary_account)
Output:
<bunq.sdk.model.generated.object_.LabelMonetaryAccount object at 0x7f3489f4ab70><bunq.sdk.model.generated.object_.LabelMonetaryAccount object at 0x7f3489f4d668><bunq.sdk.model.generated.object_.LabelMonetaryAccount object at 0x7f3489ed1160>NoneNoneNone
What should happen:
The Payment object within Event.object_ should have the same attributes as the Payment object
Steps to reproduce:
Quick test code:
Output:
What should happen:
What happens:
Traceback
SDK version and environment
The text was updated successfully, but these errors were encountered: