-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from recurly/fix-subresource-double-encode
Fixes issue with broken association lookups
- Loading branch information
Showing
6 changed files
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<account href="https://api.recurly.com/v2/accounts/my%20account"> | ||
<adjustments href="https://api.recurly.com/v2/accounts/my%20account/adjustments" /> | ||
<billing_info href="https://api.recurly.com/v2/accounts/my%20account/billing_info" /> | ||
<invoices href="https://api.recurly.com/v2/accounts/my%20account/invoices" /> | ||
<subscriptions href="https://api.recurly.com/v2/accounts/my%20account/subscriptions" /> | ||
<transactions href="https://api.recurly.com/v2/accounts/my%20account/transactions" /> | ||
<account_code>my account</account_code> | ||
<state>active</state> | ||
<username>my account</username> | ||
<email /> | ||
<first_name /> | ||
<last_name /> | ||
<company_name /> | ||
<vat_number /> | ||
<address> | ||
<address1 /> | ||
<address2 /> | ||
<city /> | ||
<state /> | ||
<zip /> | ||
<country /> | ||
<phone /> | ||
</address> | ||
<accept_language nil="nil" /> | ||
<hosted_login_token>d75e6a51189ca6ffe19d519d5da0aaa7</hosted_login_token> | ||
<created_at type="datetime">2014-08-04T23:18:21Z</created_at> | ||
</account> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/accounts/my%20account/subscriptions.xml | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<subscriptions type="array"> | ||
<subscription href="https://api.recurly.com/v2/subscriptions/2ad6a72fd96eaee2b26f1542819a4206"> | ||
<account href="https://api.recurly.com/v2/accounts/my%20account" /> | ||
<invoice href="https://api.recurly.com/v2/invoices/1000" /> | ||
<plan href="https://api.recurly.com/v2/plans/basic"> | ||
<plan_code>basic</plan_code> | ||
<name>Basic Plan</name> | ||
</plan> | ||
<uuid>2ad6a72fd96eaee2b26f1542819a4206</uuid> | ||
<state>active</state> | ||
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents> | ||
<currency>USD</currency> | ||
<quantity type="integer">1</quantity> | ||
<activated_at type="datetime">2014-10-31T20:18:27Z</activated_at> | ||
<canceled_at nil="nil" /> | ||
<expires_at nil="nil" /> | ||
<total_billing_cycles nil="nil" /> | ||
<remaining_billing_cycles nil="nil" /> | ||
<current_period_started_at type="datetime">2014-10-31T20:18:27Z</current_period_started_at> | ||
<current_period_ends_at type="datetime">2014-11-30T20:18:27Z</current_period_ends_at> | ||
<trial_started_at nil="nil" /> | ||
<trial_ends_at nil="nil" /> | ||
<subscription_add_ons type="array"></subscription_add_ons> | ||
<a name="cancel" href="https://api.recurly.com/v2/subscriptions/2ad6a72fd96eaee2b26f1542819a4206/cancel" method="put" /> | ||
<a name="terminate" href="https://api.recurly.com/v2/subscriptions/2ad6a72fd96eaee2b26f1542819a4206/terminate" method="put" /> | ||
<a name="postpone" href="https://api.recurly.com/v2/subscriptions/2ad6a72fd96eaee2b26f1542819a4206/postpone" method="put" /> | ||
</subscription> | ||
</subscriptions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/accounts/abcdef1234567890/subscriptions.xml | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<subscriptions type="array"> | ||
<subscription href="https://api.recurly.com/v2/subscriptions/2ad6a72fd96eaee2b26f1542819a4206"> | ||
<account href="https://api.recurly.com/v2/accounts/abcdef1234567890" /> | ||
<invoice href="https://api.recurly.com/v2/invoices/1000" /> | ||
<plan href="https://api.recurly.com/v2/plans/basic"> | ||
<plan_code>basic</plan_code> | ||
<name>Basic Plan</name> | ||
</plan> | ||
<uuid>2ad6a72fd96eaee2b26f1542819a4206</uuid> | ||
<state>active</state> | ||
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents> | ||
<currency>USD</currency> | ||
<quantity type="integer">1</quantity> | ||
<activated_at type="datetime">2014-10-31T20:18:27Z</activated_at> | ||
<canceled_at nil="nil" /> | ||
<expires_at nil="nil" /> | ||
<total_billing_cycles nil="nil" /> | ||
<remaining_billing_cycles nil="nil" /> | ||
<current_period_started_at type="datetime">2014-10-31T20:18:27Z</current_period_started_at> | ||
<current_period_ends_at type="datetime">2014-11-30T20:18:27Z</current_period_ends_at> | ||
<trial_started_at nil="nil" /> | ||
<trial_ends_at nil="nil" /> | ||
<subscription_add_ons type="array"></subscription_add_ons> | ||
<a name="cancel" href="https://api.recurly.com/v2/subscriptions/2ad6a72fd96eaee2b26f1542819a4206/cancel" method="put" /> | ||
<a name="terminate" href="https://api.recurly.com/v2/subscriptions/2ad6a72fd96eaee2b26f1542819a4206/terminate" method="put" /> | ||
<a name="postpone" href="https://api.recurly.com/v2/subscriptions/2ad6a72fd96eaee2b26f1542819a4206/postpone" method="put" /> | ||
</subscription> | ||
</subscriptions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters