-
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
Showing
6 changed files
with
287 additions
and
6 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/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"?> | ||
<account> | ||
<account_code>testmock</account_code> | ||
<custom_fields> | ||
<custom_field> | ||
<name>field_1</name> | ||
<value>my field value</value> | ||
</custom_field> | ||
</custom_fields> | ||
</account> | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/accounts/testmock | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<account href="https://api.recurly.com/v2/accounts/testmock"> | ||
<adjustments href="https://api.recurly.com/v2/accounts/testmock/adjustments"/> | ||
<billing_info href="https://api.recurly.com/v2/accounts/testmock/billing_info"/> | ||
<invoices href="https://api.recurly.com/v2/accounts/testmock/invoices"/> | ||
<shipping_addresses href="https://api.recurly.com/v2/accounts/testmock/shipping_addresses"/> | ||
<subscriptions href="https://api.recurly.com/v2/accounts/testmock/subscriptions"/> | ||
<transactions href="https://api.recurly.com/v2/accounts/testmock/transactions"/> | ||
<account_code>testmock</account_code> | ||
<username nil="nil"></username> | ||
<email nil="nil"></email> | ||
<first_name nil="nil"></first_name> | ||
<last_name nil="nil"></last_name> | ||
<company_name nil="nil"></company_name> | ||
<vat_number nil="nil"></vat_number> | ||
<accept_language nil="nil"></accept_language> | ||
<custom_fields type="array"> | ||
<custom_field> | ||
<name>field_1</name> | ||
<value>my field value</value> | ||
</custom_field> | ||
</custom_fields> | ||
</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,37 @@ | ||
GET https://api.recurly.com/v2/accounts/testmock 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"?> | ||
<account href="https://api.recurly.com/v2/accounts/testmock"> | ||
<adjustments href="https://api.recurly.com/v2/accounts/testmock/adjustments"/> | ||
<billing_info href="https://api.recurly.com/v2/accounts/testmock/billing_info"/> | ||
<invoices href="https://api.recurly.com/v2/accounts/testmock/invoices"/> | ||
<subscriptions href="https://api.recurly.com/v2/accounts/testmock/subscriptions"/> | ||
<transactions href="https://api.recurly.com/v2/accounts/testmock/transactions"/> | ||
<account_balance href="https://api.recurly.com/v2/accounts/testmock/balance"/> | ||
<account_code>testmock</account_code> | ||
<username nil="nil"></username> | ||
<email nil="nil"></email> | ||
<first_name nil="nil"></first_name> | ||
<last_name nil="nil"></last_name> | ||
<company_name nil="nil"></company_name> | ||
<entity_use_code>I</entity_use_code> | ||
<accept_language nil="nil"></accept_language> | ||
<custom_fields type="array"> | ||
<custom_field> | ||
<name>field1</name> | ||
<value>original value1</value> | ||
</custom_field> | ||
<custom_field> | ||
<name>field2</name> | ||
<value>original value2</value> | ||
</custom_field> | ||
</custom_fields> | ||
</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,37 @@ | ||
PUT https://api.recurly.com/v2/accounts/testmock 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"?> | ||
<account> | ||
<custom_fields> | ||
<custom_field /> | ||
<custom_field> | ||
<name>field2</name> | ||
<value>new value2</value> | ||
</custom_field> | ||
</custom_fields> | ||
<account_code>testmock</account_code> | ||
</account> | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/accounts/testmock | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<account href="https://api.recurly.com/v2/accounts/testmock"> | ||
<account_code>testmock</account_code> | ||
<custom_fields type="array"> | ||
<custom_field> | ||
<name>field1</name> | ||
<value>original value1</value> | ||
</custom_field> | ||
<custom_field> | ||
<name>field2</name> | ||
<value>new value2</value> | ||
</custom_field> | ||
</custom_fields> | ||
</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,75 @@ | ||
POST https://api.recurly.com/v2/subscriptions 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"?> | ||
<subscription> | ||
<plan_code>basicplan</plan_code> | ||
<currency>USD</currency> | ||
<account> | ||
<account_code>subscribe-mock-2</account_code> | ||
<custom_fields> | ||
<custom_field> | ||
<name>my_account_field</name> | ||
<value>here is the account value you seek</value> | ||
</custom_field> | ||
</custom_fields> | ||
<billing_info type="credit_card"> | ||
<first_name>Verena</first_name> | ||
<last_name>Example</last_name> | ||
<number>4111 1111 1111 1111</number> | ||
<verification_value>7777</verification_value> | ||
<year>2015</year> | ||
<month>12</month> | ||
<address1>123 Main St</address1> | ||
<city>San José</city> | ||
<state>CA</state> | ||
<zip>94105</zip> | ||
<country>US</country> | ||
<currency>USD</currency> | ||
</billing_info> | ||
</account> | ||
<custom_fields> | ||
<custom_field> | ||
<name>my_sub_field</name> | ||
<value>definitely sub value</value> | ||
</custom_field> | ||
</custom_fields> | ||
</subscription> | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/plans/basicplan | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<subscription | ||
href="https://api.recurly.com/v2/subscriptions/123456789012345678901234567890ab"> | ||
<uuid>123456789012345678901234567890ab</uuid> | ||
<account href="https://api.recurly.com/v2/accounts/subscribe-mock-2"/> | ||
<plan href="https://api.recurly.com/v2/plans/basicplan"> | ||
<plan_code>basicplan</plan_code> | ||
<name>Basic Plan</name> | ||
</plan> | ||
<state>active</state> | ||
<quantity type="integer">1</quantity> | ||
<currency>EUR</currency> | ||
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents> | ||
<activated_at type="datetime">2011-05-27T07:00:00Z</activated_at> | ||
<canceled_at nil="nil"></canceled_at> | ||
<expires_at nil="nil"></expires_at> | ||
<current_period_started_at type="datetime">2011-06-27T07:00:00Z</current_period_started_at> | ||
<current_period_ends_at type="datetime">2010-07-27T07:00:00Z</current_period_ends_at> | ||
<trial_started_at nil="nil"></trial_started_at> | ||
<trial_ends_at nil="nil"></trial_ends_at> | ||
<subscription_add_ons type="array"> | ||
</subscription_add_ons> | ||
<custom_fields type="array"> | ||
<custom_field> | ||
<name>my_sub_field</name> | ||
<value>definitely sub value</value> | ||
</custom_field> | ||
</custom_fields> | ||
</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