-
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.
Merge pull request #670 from recurly/add-revrec-features-to-python
[DO NOT MERGE] Add RevRec Features to Python
- Loading branch information
Showing
30 changed files
with
1,866 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
POST https://api.recurly.com/v2/plans/planmock/add_ons 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"?> | ||
<add_on> | ||
<add_on_code>addonrevrec</add_on_code> | ||
<liability_gl_account_id>t5ejtge1xw0x</liability_gl_account_id> | ||
<name>Add-On with RevRec</name> | ||
<performance_obligation_id>5</performance_obligation_id> | ||
<revenue_gl_account_id>t5ejtgf1vxh1</revenue_gl_account_id> | ||
<unit_amount_in_cents> | ||
<USD type="integer">40</USD> | ||
</unit_amount_in_cents> | ||
</add_on> | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/plans/planmock/add_ons/addonrevrec | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<add_on href="https://api.recurly.com/v2/plans/planmock/add_ons/addonrevrec"> | ||
<plan href="https://api.recurly.com/v2/plans/planmock"/> | ||
<add_on_code>addonrevrec</add_on_code> | ||
<name>Add-On with RevRec</name> | ||
<default_quantity type="integer">1</default_quantity> | ||
<display_quantity_on_hosted_page type="boolean">false</display_quantity_on_hosted_page> | ||
<tax_code nil="nil"></tax_code> | ||
<unit_amount_in_cents> | ||
<USD type="integer">40</USD> | ||
</unit_amount_in_cents> | ||
<accounting_code nil="nil"></accounting_code> | ||
<add_on_type>fixed</add_on_type> | ||
<optional type="boolean">true</optional> | ||
<revenue_schedule_type>evenly</revenue_schedule_type> | ||
<liability_gl_account_id>t5ejtge1xw0x</liability_gl_account_id> | ||
<revenue_gl_account_id>t5ejtgf1vxh1</revenue_gl_account_id> | ||
<performance_obligation_id>5</performance_obligation_id> | ||
<tier_type>flat</tier_type> | ||
<created_at type="datetime">2024-02-20T23:06:46Z</created_at> | ||
<updated_at type="datetime">2024-02-20T23:06:46Z</updated_at> | ||
</add_on> |
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,32 @@ | ||
GET https://api.recurly.com/v2/plans/planmock/add_ons/addonrevrec 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"?> | ||
<add_on href="https://api.recurly.com/v2/plans/planmock/add_ons/addonrevrec"> | ||
<plan href="https://api.recurly.com/v2/plans/planmock"/> | ||
<add_on_code>addonrevrec</add_on_code> | ||
<name>Add-On with RevRec</name> | ||
<default_quantity type="integer">1</default_quantity> | ||
<display_quantity_on_hosted_page type="boolean">false</display_quantity_on_hosted_page> | ||
<tax_code nil="nil"></tax_code> | ||
<unit_amount_in_cents> | ||
<USD type="integer">40</USD> | ||
</unit_amount_in_cents> | ||
<accounting_code nil="nil"></accounting_code> | ||
<add_on_type>fixed</add_on_type> | ||
<optional type="boolean">true</optional> | ||
<revenue_schedule_type>evenly</revenue_schedule_type> | ||
<liability_gl_account_id>t5ejtge1xw0x</liability_gl_account_id> | ||
<revenue_gl_account_id>t5ejtgf1vxh1</revenue_gl_account_id> | ||
<performance_obligation_id>5</performance_obligation_id> | ||
<tier_type>flat</tier_type> | ||
<created_at type="datetime">2024-02-20T23:06:46Z</created_at> | ||
<updated_at type="datetime">2024-02-20T23:06:46Z</updated_at> | ||
</add_on> |
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,39 @@ | ||
PUT https://api.recurly.com/v2/plans/planmock/add_ons/addonrevrec 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"?> | ||
<add_on> | ||
<liability_gl_account_id nil="nil"></liability_gl_account_id> | ||
<performance_obligation_id nil="nil"></performance_obligation_id> | ||
<revenue_gl_account_id nil="nil"></revenue_gl_account_id> | ||
</add_on> | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<add_on href="https://api.recurly.com/v2/plans/planmock/add_ons/addonrevrec"> | ||
<plan href="https://api.recurly.com/v2/plans/planmock"/> | ||
<add_on_code>addonrevrec</add_on_code> | ||
<name>Add-On with RevRec</name> | ||
<default_quantity type="integer">1</default_quantity> | ||
<display_quantity_on_hosted_page type="boolean">false</display_quantity_on_hosted_page> | ||
<tax_code nil="nil"></tax_code> | ||
<unit_amount_in_cents> | ||
<USD type="integer">40</USD> | ||
</unit_amount_in_cents> | ||
<accounting_code nil="nil"></accounting_code> | ||
<add_on_type>fixed</add_on_type> | ||
<optional type="boolean">true</optional> | ||
<revenue_schedule_type>evenly</revenue_schedule_type> | ||
<liability_gl_account_id nil="nil"></liability_gl_account_id> | ||
<revenue_gl_account_id nil="nil"></revenue_gl_account_id> | ||
<performance_obligation_id>6</performance_obligation_id> | ||
<tier_type>flat</tier_type> | ||
<created_at type="datetime">2024-02-20T23:06:46Z</created_at> | ||
<updated_at type="datetime">2024-02-20T23:14:00Z</updated_at> | ||
</add_on> |
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,56 @@ | ||
POST https://api.recurly.com/v2/accounts/chargemock/adjustments 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"?> | ||
<adjustment type="charge"> | ||
<currency>USD</currency> | ||
<description>test charge</description> | ||
<liability_gl_account_id>t5ejtge1xw0x</liability_gl_account_id> | ||
<performance_obligation_id>5</performance_obligation_id> | ||
<revenue_gl_account_id>t5ejtgf1vxh1</revenue_gl_account_id> | ||
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents> | ||
</adjustment> | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/adjustments/6f56942e01241200964cb6425c85b9d4 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<adjustment href="https://api.recurly.com/v2/adjustments/6f56942e01241200964cb6425c85b9d4" type="charge"> | ||
<account href="https://api.recurly.com/v2/accounts/chargemock"/> | ||
<bill_for_account href="https://api.recurly.com/v2/accounts/chargemock"/> | ||
<item_code nil="nil"></item_code> | ||
<external_sku nil="nil"></external_sku> | ||
<credit_adjustments href="https://api.recurly.com/v2/adjustments/6f56942e01241200964cb6425c85b9d4/credit_adjustments"/> | ||
<refundable_total_in_cents type="integer">0</refundable_total_in_cents> | ||
<uuid>6f56942e01241200964cb6425c85b9d4</uuid> | ||
<state>pending</state> | ||
<description>test charge</description> | ||
<accounting_code nil="nil"></accounting_code> | ||
<product_code nil="nil"></product_code> | ||
<origin>debit</origin> | ||
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents> | ||
<quantity type="integer">1</quantity> | ||
<discount_in_cents type="integer">0</discount_in_cents> | ||
<tax_in_cents type="integer">0</tax_in_cents> | ||
<total_in_cents type="integer">1000</total_in_cents> | ||
<tax_inclusive type="boolean">false</tax_inclusive> | ||
<currency>USD</currency> | ||
<proration_rate nil="nil"></proration_rate> | ||
<tax_exempt type="boolean">false</tax_exempt> | ||
<tax_code nil="nil"></tax_code> | ||
<start_date type="datetime">2024-02-26T23:38:41Z</start_date> | ||
<end_date nil="nil"></end_date> | ||
<created_at type="datetime">2024-02-26T23:38:42Z</created_at> | ||
<updated_at type="datetime">2024-02-26T23:38:42Z</updated_at> | ||
<revenue_schedule_type></revenue_schedule_type> | ||
<custom_fields type="array"> | ||
</custom_fields> | ||
<liability_gl_account_code>firstliab</liability_gl_account_code> | ||
<revenue_gl_account_code>firstrev</revenue_gl_account_code> | ||
<performance_obligation_id>5</performance_obligation_id> | ||
</adjustment> |
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,28 @@ | ||
POST https://api.recurly.com/v2/general_ledger_accounts 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"?> | ||
<general_ledger_account> | ||
<account_type>liability</account_type> | ||
<code>code2</code> | ||
<description>Liability Description</description> | ||
</general_ledger_account> | ||
|
||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/general_ledger_accounts/u9hmrpzksuy8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u9hmrpzksuy8"> | ||
<id>u9hmrpzksuy8</id> | ||
<code>code2</code> | ||
<account_type>liability</account_type> | ||
<description>Liability Description</description> | ||
<created_at type="datetime">2024-01-18T23:20:01Z</created_at> | ||
<updated_at type="datetime">2024-01-18T23:20:01Z</updated_at> | ||
</general_ledger_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,20 @@ | ||
GET https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix HTTP/1.1 | ||
X-Api-Version: {api-version} | ||
Accept: application/xml | ||
Authorization: Basic YXBpa2V5Og== | ||
User-Agent: {user-agent} | ||
|
||
HTTP/1.1 200 OK | ||
X-Records: 1 | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix"> | ||
<id>u90r5deeaxix</id> | ||
<code>code1</code> | ||
<account_type>revenue</account_type> | ||
<description>Some Description</description> | ||
<created_at type="datetime">2024-01-16T14:34:16Z</created_at> | ||
<updated_at type="datetime">2024-01-16T14:34:16Z</updated_at> | ||
</general_ledger_account> |
Oops, something went wrong.