-
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 #667 from recurly/add-general-ledger-accounts
Adding support for General Ledger Accounts
- Loading branch information
Showing
7 changed files
with
193 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
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> |
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,30 @@ | ||
GET 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} | ||
|
||
HTTP/1.1 200 OK | ||
X-Records: 1 | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<general_ledger_accounts type="array"> | ||
<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> | ||
<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> | ||
</general_ledger_accounts> |
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,22 @@ | ||
GET https://api.recurly.com/v2/general_ledger_accounts?account_type=revenue 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_accounts type="array"> | ||
<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> | ||
</general_ledger_accounts> |
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,27 @@ | ||
PUT 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} | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<general_ledger_account> | ||
<code>code2</code> | ||
<description>Updated Description</description> | ||
</general_ledger_account> | ||
|
||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<general_ledger_account href="https://api.recurly.com/v2/general_ledger_accounts/u90r5deeaxix"> | ||
<id>u90r5deeaxix</id> | ||
<code>code2</code> | ||
<account_type>liability</account_type> | ||
<description>Updated Description</description> | ||
<created_at type="datetime">2024-01-18T23:20:01Z</created_at> | ||
<updated_at type="datetime">2024-01-18T23:24:47Z</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