-
Notifications
You must be signed in to change notification settings - Fork 128
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 #139 from recurly/2.3.0
bump 2.3.0
- Loading branch information
Showing
26 changed files
with
334 additions
and
19 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
recurly (2.2.3) | ||
recurly (2.3.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
|
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
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ class Address < Resource | |
phone | ||
) | ||
end | ||
end | ||
end |
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
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,14 @@ | ||
require 'bigdecimal' | ||
|
||
module Recurly | ||
class TaxDetail < Resource | ||
define_attribute_methods %w( | ||
name | ||
type | ||
tax_rate | ||
tax_in_cents | ||
) | ||
|
||
embedded! true | ||
end | ||
end |
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,32 @@ | ||
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/abcdef1234567890"> | ||
<adjustments href="https://api.recurly.com/v2/accounts/abcdef1234567890/adjustments"/> | ||
<billing_info href="https://api.recurly.com/v2/accounts/abcdef1234567890/billing_info"/> | ||
<invoices href="https://api.recurly.com/v2/accounts/abcdef1234567890/invoices"/> | ||
<redemption href="https://api.recurly.com/v2/accounts/abcdef1234567890/redemption"/> | ||
<subscriptions href="https://api.recurly.com/v2/accounts/abcdef1234567890/subscriptions"/> | ||
<transactions href="https://api.recurly.com/v2/accounts/abcdef1234567890/transactions"/> | ||
<account_code>abcdef1234567890</account_code> | ||
<username>shmohawk58</username> | ||
<email>[email protected]</email> | ||
<first_name>Larry</first_name> | ||
<last_name>David</last_name> | ||
<company_name>Home Box Office</company_name> | ||
<accept_language>en-US</accept_language> | ||
<hosted_login_token>18d935f06b0547ddad8cdf2490ac802e</hosted_login_token> | ||
<created_at type="datetime">2011-04-30T12:00:00Z</created_at> | ||
<vat_number>12345-67</vat_number> | ||
<tax_exempt type="boolean">true</tax_exempt> | ||
<address> | ||
<address1>123 Main St.</address1> | ||
<address2 nil="nil"></address2> | ||
<city>San Francisco</city> | ||
<state>CA</state> | ||
<zip>94105</zip> | ||
<country>US</country> | ||
<phone>8015551234</phone> | ||
</address> | ||
</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
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 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<adjustment href="https://api.recurly.com/v2/adjustments/abcdef1234567890" type="charge"> | ||
<account href="https://api.recurly.com/v2/accounts/account"/> | ||
<invoice href="https://api.recurly.com/v2/invoices/created-invoice"/> | ||
<subscription href="https://api.recurly.com/v2/subscriptions/abcdef1234567890"/> | ||
<uuid>abcdef1234567890</uuid> | ||
<state>pending</state> | ||
<accounting_code nil="nil"></accounting_code> | ||
<origin>plan</origin> | ||
<description>$12 Annual Subscription</description> | ||
<unit_amount_in_cents type="integer">1200</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">1200</total_in_cents> | ||
<currency>USD</currency> | ||
<tax_exempt type="boolean">false</tax_exempt> | ||
<product_code>basic</product_code> | ||
<start_date type="datetime">2011-04-30T07:00:00Z</start_date> | ||
<end_date type="datetime">2011-04-30T07:00:00Z</end_date> | ||
<created_at type="datetime">2011-08-31T03:30:00Z</created_at> | ||
</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,87 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<invoice href="https://api.recurly.com/v2/invoices/created-invoice"> | ||
<account href="https://api.recurly.com/v2/accounts/abcdef1234567890"/> | ||
<uuid>created-invoice</uuid> | ||
<state>open</state> | ||
<invoice_number type="integer">1000</invoice_number> | ||
<po_number nil="nil"></po_number> | ||
<vat_number nil="nil"></vat_number> | ||
<subtotal_in_cents type="integer">300</subtotal_in_cents> | ||
<tax_in_cents type="integer">100</tax_in_cents> | ||
<total_in_cents type="integer">300</total_in_cents> | ||
<currency>USD</currency> | ||
<created_at type="datetime">2011-04-30T08:00:00Z</created_at> | ||
<tax_type>usst</tax_type> | ||
<line_items> | ||
<adjustment href="https://api.recurly.com/v2/adjustments/charge" type="charge"> | ||
<account href="https://api.recurly.com/v2/accounts/abcdef1234567890"/> | ||
<invoice href="https://api.recurly.com/v2/invoices/created-invoice"/> | ||
<uuid>charge</uuid> | ||
<state>invoiced</state> | ||
<description>Special charge</description> | ||
<origin>one_time</origin> | ||
<unit_amount_in_cents type="integer">300</unit_amount_in_cents> | ||
<quantity type="integer">1</quantity> | ||
<discount_in_cents type="integer">0</discount_in_cents> | ||
<tax_in_cents type="integer">100</tax_in_cents> | ||
<total_in_cents type="integer">300</total_in_cents> | ||
<currency>USD</currency> | ||
<taxable type="boolean">false</taxable> | ||
<start_date nil="nil"></start_date> | ||
<end_date nil="nil"></end_date> | ||
<created_at type="datetime">2011-04-30T08:00:00Z</created_at> | ||
</adjustment> | ||
</line_items> | ||
<transactions> | ||
<transaction href="https://api.recurly.com/v2/transactions/transaction" type="credit_card"> | ||
<account href="https://api.recurly.com/v2/accounts/abcdef1234567890"/> | ||
<invoice href="https://api.recurly.com/v2/invoices/created-invoice"/> | ||
<uuid>transaction</uuid> | ||
<action>purchase</action> | ||
<amount_in_cents type="integer">300</amount_in_cents> | ||
<tax_in_cents type="integer">0</tax_in_cents> | ||
<currency>USD</currency> | ||
<status>success</status> | ||
<reference nil="nil"></reference> | ||
<recurring type="boolean">false</recurring> | ||
<test type="boolean">true</test> | ||
<voidable type="boolean">true</voidable> | ||
<refundable type="boolean">true</refundable> | ||
<cvv_result code="" nil="nil"></cvv_result> | ||
<avs_result code="" nil="nil"></avs_result> | ||
<avs_result_street nil="nil"></avs_result_street> | ||
<avs_result_postal nil="nil"></avs_result_postal> | ||
<created_at type="datetime">2011-04-30T08:00:00Z</created_at> | ||
<details> | ||
<account> | ||
<account_code>abcdef1234567890</account_code> | ||
<first_name>Lucille</first_name> | ||
<last_name>Bluth</last_name> | ||
<company nil="nil"></company> | ||
<email>[email protected]</email> | ||
<billing_info type="credit_card"> | ||
<first_name>George</first_name> | ||
<last_name>Bluth</last_name> | ||
<address1 nil="nil"></address1> | ||
<address2 nil="nil"></address2> | ||
<city nil="nil"></city> | ||
<state nil="nil"></state> | ||
<zip nil="nil"></zip> | ||
<country nil="nil"></country> | ||
<phone nil="nil"></phone> | ||
<vat_number nil="nil"></vat_number> | ||
<card_type>Visa</card_type> | ||
<year type="integer">2014</year> | ||
<month type="integer">1</month> | ||
<first_six>411111</first_six> | ||
<last_four>1111</last_four> | ||
</billing_info> | ||
</account> | ||
</details> | ||
<a name="refund" href="https://api.recurly.com/v2/transactions/transaction" method="delete"/> | ||
</transaction> | ||
</transactions> | ||
</invoice> |
Oops, something went wrong.