Skip to content

Create resources based on the element if no href links to the object#90

Merged
bhelx merged 1 commit intomasterfrom
preview_associations
Oct 31, 2014
Merged

Create resources based on the element if no href links to the object#90
bhelx merged 1 commit intomasterfrom
preview_associations

Conversation

@cbarton
Copy link
Copy Markdown
Member

@cbarton cbarton commented Oct 30, 2014

cc/ @bhelx

When previewing a subscription change, the invoice is passed back in the body of the response with an href of "". If this is the case, we can materialize the Invoice from those attributes instead of following a nonexistent link.

tests:

sub = recurly.Subscription.get('<uuid>')
sub.quantity = <new quantity>
sub.preview()
for li in sub.invoice.line_items:
  print "line item: %s" % li

@bhelx bhelx self-assigned this Oct 30, 2014
@bhelx
Copy link
Copy Markdown
Contributor

bhelx commented Oct 31, 2014

👍

bhelx added a commit that referenced this pull request Oct 31, 2014
Create resources based on the element if no href links to the object
@bhelx bhelx merged commit ed039df into master Oct 31, 2014
@bhelx bhelx deleted the preview_associations branch October 31, 2014 17:25
@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

V2 V2 Client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants