-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
alexei
committed
Aug 3, 2022
1 parent
78146c3
commit dcf4b55
Showing
6 changed files
with
288 additions
and
3 deletions.
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,75 @@ | ||
POST https://api.recurly.com/v2/plans HTTP/1.1 | ||
X-Api-Version: {api-version} | ||
Accept: application/xml | ||
Authorization: Basic YXBpa2V5Og== | ||
User-Agent: {user-agent} | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plan> | ||
<plan_code>planmock</plan_code> | ||
<name>Mock Plan</name> | ||
<setup_fee_in_cents> | ||
<USD type="integer">200</USD> | ||
</setup_fee_in_cents> | ||
<total_billing_cycles type="integer">10</total_billing_cycles> | ||
<pricing_model>ramp</pricing_model> | ||
<ramp_intervals> | ||
<ramp_interval> | ||
<unit_amount_in_cents> | ||
<USD type="integer">2000</USD> | ||
</unit_amount_in_cents> | ||
<starting_billing_cycle type="integer">1</starting_billing_cycle> | ||
</ramp_interval> | ||
<ramp_interval> | ||
<unit_amount_in_cents> | ||
<USD type="integer">3000</USD> | ||
</unit_amount_in_cents> | ||
<starting_billing_cycle type="integer">2</starting_billing_cycle> | ||
</ramp_interval> | ||
</ramp_intervals> | ||
</plan> | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/plans/planmock | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plan href="https://api.recurly.com/v2/plans/planmock"> | ||
<add_ons href="https://api.recurly.com/v2/plans/planmock/add_ons"/> | ||
<plan_code>planmock</plan_code> | ||
<name>Mock Plan</name> | ||
<description nil="nil"></description> | ||
<success_url nil="nil"></success_url> | ||
<cancel_url nil="nil"></cancel_url> | ||
<display_donation_amounts type="boolean">false</display_donation_amounts> | ||
<display_quantity type="boolean">false</display_quantity> | ||
<display_phone_number type="boolean">false</display_phone_number> | ||
<bypass_hosted_confirmation type="boolean">false</bypass_hosted_confirmation> | ||
<unit_name>unit</unit_name> | ||
<payment_page_tos_link nil="nil"></payment_page_tos_link> | ||
<plan_interval_length type="integer">1</plan_interval_length> | ||
<plan_interval_unit>months</plan_interval_unit> | ||
<trial_interval_length type="integer">0</trial_interval_length> | ||
<trial_interval_unit>days</trial_interval_unit> | ||
<total_billing_cycles type="integer">10</total_billing_cycles> | ||
<created_at type="datetime">2011-10-03T22:23:12Z</created_at> | ||
<pricing_model>ramp</pricing_model> | ||
<setup_fee_in_cents> | ||
<USD type="integer">200</USD> | ||
</setup_fee_in_cents> | ||
<ramp_intervals> | ||
<ramp_interval> | ||
<starting_billing_cycle type="integer">1</starting_billing_cycle> | ||
<unit_amount_in_cents> | ||
<USD type="integer">2000</USD> | ||
</unit_amount_in_cents> | ||
</ramp_interval> | ||
<ramp_interval> | ||
<starting_billing_cycle type="integer">2</starting_billing_cycle> | ||
<unit_amount_in_cents> | ||
<USD type="integer">3000</USD> | ||
</unit_amount_in_cents> | ||
</ramp_interval> | ||
</ramp_intervals> | ||
</plan> |
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,52 @@ | ||
GET https://api.recurly.com/v2/plans/planmock HTTP/1.1 | ||
X-Api-Version: {api-version} | ||
Accept: application/xml | ||
Authorization: Basic YXBpa2V5Og== | ||
User-Agent: {user-agent} | ||
|
||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plan href="https://api.recurly.com/v2/plans/planmock"> | ||
<add_ons href="https://api.recurly.com/v2/plans/planmock/add_ons"/> | ||
<plan_code>planmock</plan_code> | ||
<name>Mock Plan</name> | ||
<description nil="nil"></description> | ||
<success_url nil="nil"></success_url> | ||
<cancel_url nil="nil"></cancel_url> | ||
<display_donation_amounts type="boolean">false</display_donation_amounts> | ||
<display_quantity type="boolean">false</display_quantity> | ||
<display_phone_number type="boolean">false</display_phone_number> | ||
<bypass_hosted_confirmation type="boolean">false</bypass_hosted_confirmation> | ||
<unit_name>unit</unit_name> | ||
<payment_page_tos_link nil="nil"></payment_page_tos_link> | ||
<plan_interval_length type="integer">1</plan_interval_length> | ||
<plan_interval_unit>months</plan_interval_unit> | ||
<trial_interval_length type="integer">0</trial_interval_length> | ||
<trial_interval_unit>days</trial_interval_unit> | ||
<total_billing_cycles type="integer">10</total_billing_cycles> | ||
<created_at type="datetime">2011-10-03T22:23:12Z</created_at> | ||
<trial_requires_billing_info type="boolean">false</trial_requires_billing_info> | ||
<unit_amount_in_cents> | ||
</unit_amount_in_cents> | ||
<pricing_model>ramp</pricing_model> | ||
<setup_fee_in_cents> | ||
<USD type="integer">200</USD> | ||
</setup_fee_in_cents> | ||
<ramp_intervals> | ||
<ramp_interval> | ||
<starting_billing_cycle type="integer">1</starting_billing_cycle> | ||
<unit_amount_in_cents> | ||
<USD type="integer">2000</USD> | ||
</unit_amount_in_cents> | ||
</ramp_interval> | ||
<ramp_interval> | ||
<starting_billing_cycle type="integer">2</starting_billing_cycle> | ||
<unit_amount_in_cents> | ||
<USD type="integer">3000</USD> | ||
</unit_amount_in_cents> | ||
</ramp_interval> | ||
</ramp_intervals> | ||
</plan> |
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,66 @@ | ||
PUT https://api.recurly.com/v2/plans/planmock HTTP/1.1 | ||
X-Api-Version: {api-version} | ||
Accept: application/xml | ||
Authorization: Basic YXBpa2V5Og== | ||
User-Agent: {user-agent} | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plan> | ||
<ramp_intervals> | ||
<ramp_interval> | ||
<unit_amount_in_cents> | ||
<USD type="integer">3000</USD> | ||
</unit_amount_in_cents> | ||
<starting_billing_cycle type="integer">1</starting_billing_cycle> | ||
</ramp_interval> | ||
<ramp_interval> | ||
<unit_amount_in_cents> | ||
<USD type="integer">4000</USD> | ||
</unit_amount_in_cents> | ||
<starting_billing_cycle type="integer">2</starting_billing_cycle> | ||
</ramp_interval> | ||
</ramp_intervals> | ||
</plan> | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plan href="https://api.recurly.com/v2/plans/planmock"> | ||
<add_ons href="https://api.recurly.com/v2/plans/planmock/add_ons"/> | ||
<plan_code>planmock</plan_code> | ||
<name>Mock Plan</name> | ||
<description nil="nil"></description> | ||
<success_url nil="nil"></success_url> | ||
<cancel_url nil="nil"></cancel_url> | ||
<display_donation_amounts type="boolean">false</display_donation_amounts> | ||
<display_quantity type="boolean">false</display_quantity> | ||
<display_phone_number type="boolean">false</display_phone_number> | ||
<bypass_hosted_confirmation type="boolean">false</bypass_hosted_confirmation> | ||
<unit_name>unit</unit_name> | ||
<payment_page_tos_link nil="nil"></payment_page_tos_link> | ||
<plan_interval_length type="integer">2</plan_interval_length> | ||
<plan_interval_unit>months</plan_interval_unit> | ||
<trial_interval_length type="integer">0</trial_interval_length> | ||
<trial_interval_unit>days</trial_interval_unit> | ||
<setup_fee_accounting_code>Setup Fee AC</setup_fee_accounting_code> | ||
<created_at type="datetime">2011-10-03T22:23:12Z</created_at> | ||
<setup_fee_in_cents> | ||
<USD type="integer">200</USD> | ||
</setup_fee_in_cents> | ||
<ramp_intervals> | ||
<ramp_interval> | ||
<starting_billing_cycle type="integer">1</starting_billing_cycle> | ||
<unit_amount_in_cents> | ||
<USD type="integer">3000</USD> | ||
</unit_amount_in_cents> | ||
</ramp_interval> | ||
<ramp_interval> | ||
<starting_billing_cycle type="integer">2</starting_billing_cycle> | ||
<unit_amount_in_cents> | ||
<USD type="integer">4000</USD> | ||
</unit_amount_in_cents> | ||
</ramp_interval> | ||
</ramp_intervals> | ||
</plan> |
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