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
and the customer only has 1 card, any further operation on the customer object will issue a PUT on the actual customer object, however, the source_uri which might reference the deleted card will throw a 409 since that card will have been deleted.
Here's an executable snippet:
card=balanced.Card.find('/v1/marketplaces/:marketplace_id/cards/:card_id')
customer=balanced.Customer().save()
customer.add_card(card.uri)
assertlen(customer.cards) ==1assertcustomer.cards[0].uri==card.uriassertcustomer.source_uri==card.uricustomer.cards[0].delete()
assertlen(customer.cards) ==0customer.source_uri# this still exists, it should be None!
The text was updated successfully, but these errors were encountered:
If I delete a card from a Customer:
and the customer only has 1 card, any further operation on the customer object will issue a
PUT
on the actual customer object, however, thesource_uri
which might reference the deleted card will throw a 409 since that card will have been deleted.Here's an executable snippet:
The text was updated successfully, but these errors were encountered: