Skip to content

Commit

Permalink
Merge pull request #224 from Anto59290/fix/219_add_delivery_in_gift_c…
Browse files Browse the repository at this point in the history
…ard_class_nodename

Fixes #219: Add Delivery class in nodename of Gift card
  • Loading branch information
bhelx authored Nov 15, 2017
2 parents 23a9d4a + 2196b83 commit c24c2b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion recurly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
1 change: 1 addition & 0 deletions tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c24c2b3

Please sign in to comment.