recurly 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

Files changed (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -1,129 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>account-get-1301879142</account-code>
10
- <first-name>Verena</first-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
- <accept-language type="yaml" nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
26
- content-type:
27
- - application/xml
28
- accept:
29
- - "*/*"
30
- connection:
31
- - close
32
- response: !ruby/struct:VCR::Response
33
- status: !ruby/struct:VCR::ResponseStatus
34
- code: 201
35
- message: "Created "
36
- headers:
37
- cache-control:
38
- - no-cache
39
- location:
40
- - http://app.recurly.local:3000/accounts/account-get-1301879142
41
- x-runtime:
42
- - "301"
43
- content-type:
44
- - application/xml; charset=utf-8
45
- content-length:
46
- - "577"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
- date:
50
- - Thu, 21 Apr 2011 18:06:32 GMT
51
- connection:
52
- - close
53
- set-cookie:
54
- - _recurly_session=71982c248e01a7fc46e2dd2a7f447cce; domain=.recurly.local; path=/; HttpOnly
55
- body: |
56
- <?xml version="1.0" encoding="UTF-8"?>
57
- <account>
58
- <id>account-get-1301879142</id>
59
- <account_code>account-get-1301879142</account_code>
60
- <username></username>
61
- <email>verena@test.com</email>
62
- <first_name>Verena</first_name>
63
- <last_name>Test</last_name>
64
- <company_name>Recurly Ruby Gem</company_name>
65
- <balance_in_cents type="integer">0</balance_in_cents>
66
- <closed type="boolean">false</closed>
67
- <hosted_login_token>78204c90f9da4443bed3a750e2c943ff</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:06:32Z</created_at>
69
- <state>active</state>
70
- </account>
71
-
72
- http_version: "1.1"
73
- - !ruby/struct:VCR::HTTPInteraction
74
- request: !ruby/struct:VCR::Request
75
- method: :get
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-get-1301879142.xml
77
- body:
78
- headers:
79
- authorization:
80
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
81
- user-agent:
82
- - Recurly Ruby Client v0.4.6
83
- accept:
84
- - application/xml
85
- accept-encoding:
86
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
- connection:
88
- - close
89
- response: !ruby/struct:VCR::Response
90
- status: !ruby/struct:VCR::ResponseStatus
91
- code: 200
92
- message: "OK "
93
- headers:
94
- x-runtime:
95
- - "270"
96
- content-type:
97
- - application/xml; charset=utf-8
98
- etag:
99
- - "\"a75cd91421c04f5b7e27d743cfde4779\""
100
- cache-control:
101
- - private, max-age=0, must-revalidate
102
- content-length:
103
- - "577"
104
- server:
105
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
106
- date:
107
- - Thu, 21 Apr 2011 18:06:34 GMT
108
- connection:
109
- - close
110
- set-cookie:
111
- - _recurly_session=88b20258440446c4cf2a38d2d3025f78; domain=.recurly.local; path=/; HttpOnly
112
- body: |
113
- <?xml version="1.0" encoding="UTF-8"?>
114
- <account>
115
- <id>account-get-1301879142</id>
116
- <account_code>account-get-1301879142</account_code>
117
- <username></username>
118
- <email>verena@test.com</email>
119
- <first_name>Verena</first_name>
120
- <last_name>Test</last_name>
121
- <company_name>Recurly Ruby Gem</company_name>
122
- <balance_in_cents type="integer">0</balance_in_cents>
123
- <closed type="boolean">false</closed>
124
- <hosted_login_token>78204c90f9da4443bed3a750e2c943ff</hosted_login_token>
125
- <created_at type="datetime">2011-04-21T18:06:32Z</created_at>
126
- <state>active</state>
127
- </account>
128
-
129
- http_version: "1.1"