-
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.
Support for external products & references
- Loading branch information
Showing
8 changed files
with
165 additions
and
5 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,25 @@ | ||
POST https://api.recurly.com/v2/external_products/ru1u1gms4msk/external_product_references 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"?> | ||
<external_product_reference> | ||
<external_connection_type>google_play_store</external_connection_type> | ||
<reference_code>948eb638-bef5-4e48-a955-2646d7e353e5</reference_code> | ||
</external_product_reference> | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/external_products/ru1u1gms4msk/external_product_references/swafyj8wqw6n | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<external_product_reference href="https://api.recurly.com/v2/external_products/ru1u1gms4msk/external_product_references/swafyj8wqw6n"> | ||
<id>swafyj8wqw6n</id> | ||
<reference_code>948eb638-bef5-4e48-a955-2646d7e353e5</reference_code> | ||
<external_connection_type>google_play_store</external_connection_type> | ||
<created_at type="datetime">2023-05-15T18:46:48Z</created_at> | ||
<updated_at type="datetime">2023-05-15T18:46:48Z</updated_at> | ||
</external_product_reference> |
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,8 @@ | ||
DELETE https://api.recurly.com/v2/external_products/ru1u1gms4msk/external_product_references/ru1u1gn5otsv HTTP/1.1 | ||
X-Api-Version: {api-version} | ||
Accept: application/xml | ||
Authorization: Basic YXBpa2V5Og== | ||
User-Agent: {user-agent} | ||
|
||
HTTP/1.1 204 No Content |
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,18 @@ | ||
GET https://api.recurly.com/v2/external_products/ru1u1gms4msk/external_product_references/ru1u1gn5otsv 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"?> | ||
<external_product_reference href="https://api.recurly.com/v2/external_products/ru1u1gms4msk/external_product_references/ru1u1gn5otsv"> | ||
<id>ru1u1gn5otsv</id> | ||
<reference_code>code_test_google</reference_code> | ||
<external_connection_type>google_play_store</external_connection_type> | ||
<created_at type="datetime">2022-11-03T21:12:35Z</created_at> | ||
<updated_at type="datetime">2022-11-03T21:12:35Z</updated_at> | ||
</external_product_reference> |
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,8 @@ | ||
DELETE https://api.recurly.com/v2/external_products/ru1u1gms4msk HTTP/1.1 | ||
X-Api-Version: {api-version} | ||
Accept: application/xml | ||
Authorization: Basic YXBpa2V5Og== | ||
User-Agent: {user-agent} | ||
|
||
HTTP/1.1 204 No Content |
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,43 @@ | ||
PUT https://api.recurly.com/v2/external_products/ru1u1gms4msk 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"?> | ||
<external_product> | ||
<plan_code>test-plan</plan_code> | ||
</external_product> | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/external_products/ru1u1gms4msk | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<external_product href="https://api.recurly.com/v2/external_products/ru1u1gms4msk"> | ||
<id>sol7gvrm8vkh</id> | ||
<plan href="https://api.recurly.com/v2/plans/5_abril"> | ||
<plan_code>5_abril</plan_code> | ||
<name>5 de abril</name> | ||
</plan> | ||
<name>product_name_teste</name> | ||
<created_at type="datetime">2022-11-03T21:12:35Z</created_at> | ||
<updated_at type="datetime">2022-11-03T21:12:35Z</updated_at> | ||
<external_product_references type="array"> | ||
<external_product_reference href="https://api.recurly.com/v2/external_products/ru1u1gms4msk/external_product_references/ru1u1gn5otsv"> | ||
<id>ru1u1gn5otsv</id> | ||
<reference_code>code_teste_google</reference_code> | ||
<external_connection_type>google_play_store</external_connection_type> | ||
<created_at type="datetime">2022-11-03T21:12:35Z</created_at> | ||
<updated_at type="datetime">2022-11-03T21:12:35Z</updated_at> | ||
</external_product_reference> | ||
<external_product_reference href="https://api.recurly.com/v2/external_products/ru1u1gms4msk/external_product_references/ru1u1gn7ebod"> | ||
<id>ru1u1gn7ebod</id> | ||
<reference_code>code_teste_apple</reference_code> | ||
<external_connection_type>apple_app_store</external_connection_type> | ||
<created_at type="datetime">2022-11-03T21:12:35Z</created_at> | ||
<updated_at type="datetime">2022-11-03T21:12:35Z</updated_at> | ||
</external_product_reference> | ||
</external_product_references> | ||
</external_product> |
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