diff --git a/recurly/__init__.py b/recurly/__init__.py index 2ebe27de..d01aecc3 100644 --- a/recurly/__init__.py +++ b/recurly/__init__.py @@ -438,7 +438,7 @@ class GiftCard(Resource): 'unit_amount_in_cents', ) _classes_for_nodename = {'recipient_account': Account,'gifter_account': - Account} + Account, 'delivery': Delivery} def preview(self): """Preview the purchase of this gift card""" diff --git a/tests/test_resources.py b/tests/test_resources.py index 745973cb..42a5df19 100644 --- a/tests/test_resources.py +++ b/tests/test_resources.py @@ -1545,6 +1545,7 @@ def test_gift_cards_purchase(self): gift_card.save() self.assertTrue(gift_card._url is not None) + self.assertTrue(gift_card.delivery is not None) self.assertTrue(gift_card.canceled_at is None) def test_gift_cards_preview(self):