-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include tier attributes in request body #500
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<subscription href="https://api.recurly.com/v2/subscriptions/012345678901234567890123456789ab"> | ||
<account href="https://api.recurly.com/v2/accounts/verena"/> | ||
<redemptions href="https://api.recurly.com/v2/subscriptions/012345678901234567890123456789ab/redemptions"/> | ||
<plan href="https://api.recurly.com/v2/plans/silver"> | ||
<plan_code>silver</plan_code> | ||
<name>Silver Plan</name> | ||
</plan> | ||
<uuid>012345678901234567890123456789ab</uuid> | ||
<state>active</state> | ||
<net_terms type="integer">10</net_terms> | ||
<collection_method>manual</collection_method> | ||
<po_number>1000</po_number> | ||
<quantity type="integer">1</quantity> | ||
<total_amount_in_cents type="integer">1000</total_amount_in_cents> | ||
<activated_at type="datetime">2011-04-30T07:00:00Z</activated_at> | ||
<canceled_at nil="nil"></canceled_at> | ||
<expires_at nil="nil"></expires_at> | ||
<current_period_started_at type="datetime">2011-04-01T07:00:00Z</current_period_started_at> | ||
<current_period_ends_at type="datetime">2011-05-01T06:59:59Z</current_period_ends_at> | ||
<trial_started_at nil="nil"></trial_started_at> | ||
<trial_ends_at nil="nil"></trial_ends_at> | ||
<tax_in_cents type="integer">0</tax_in_cents> | ||
<tax_type>usst</tax_type> | ||
<terms_and_conditions>Some Terms and Conditions</terms_and_conditions> | ||
<customer_notes>Some Customer Notes</customer_notes> | ||
<vat_reverse_charge_notes>Some VAT Notes</vat_reverse_charge_notes> | ||
<started_with_gift type="boolean">false</started_with_gift> | ||
<no_billing_info_reason>plan_free_trial</no_billing_info_reason> | ||
<converted_at nil="nil"></converted_at> | ||
<remaining_pause_cycles type="integer">1</remaining_pause_cycles>> | ||
<paused_at type="datetime">2020-01-01T01:00:00Z</paused_at> | ||
<subscription_add_ons type="array"> | ||
<subscription_add_on> | ||
<add_on_type>fixed</add_on_type> | ||
<add_on_code>marketing_emails</add_on_code> | ||
<name>Marketing Emails</name> | ||
<quantity type="integer">1</quantity> | ||
<revenue_schedule_type>evenly</revenue_schedule_type> | ||
<tier_type>tiered</tier_type> | ||
<tiers type="array"> | ||
<tier> | ||
<ending_quantity type="integer">60</ending_quantity> | ||
<unit_amount_in_cents type="integer">123</unit_amount_in_cents> | ||
</tier> | ||
<tier> | ||
<ending_quantity type="integer">999999999</ending_quantity> | ||
<unit_amount_in_cents type="integer">80</unit_amount_in_cents> | ||
</tier> | ||
</tiers> | ||
</subscription_add_on> | ||
</subscription_add_ons> | ||
<custom_fields type="array"> | ||
<custom_field> | ||
<name>shasta</name> | ||
<value>ate my tacos</value> | ||
</custom_field> | ||
<custom_field> | ||
<name>license-number</name> | ||
<value>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</value> | ||
</custom_field> | ||
</custom_fields> | ||
<a name="cancel" href="https://api.recurly.com/v2/subscriptions/012345678901234567890123456789ab/cancel" method="put"/> | ||
<a name="terminate" href="https://api.recurly.com/v2/subscriptions/012345678901234567890123456789ab/terminate" method="put"/> | ||
</subscription> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a comment here for context.