recurly 0.2.4 → 0.2.5

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 (62) hide show
  1. data/lib/recurly/charge.rb +5 -6
  2. data/lib/recurly/version.rb +1 -1
  3. data/spec/integration/charge_spec.rb +1 -0
  4. data/spec/vcr/account/close/1287167046.yml +15 -15
  5. data/spec/vcr/account/create-blank/1287167046.yml +3 -3
  6. data/spec/vcr/account/create-duplicate/1287167046.yml +9 -9
  7. data/spec/vcr/account/create-min/1287167046.yml +6 -6
  8. data/spec/vcr/account/create/1287167046.yml +6 -6
  9. data/spec/vcr/account/find/1287167046.yml +14 -14
  10. data/spec/vcr/account/list/1287167046.yml +100 -100
  11. data/spec/vcr/account/update/1287167046.yml +26 -26
  12. data/spec/vcr/billing/create/1286682213.yml +16 -16
  13. data/spec/vcr/billing/destroy/1286682213.yml +24 -24
  14. data/spec/vcr/billing/find/1286682213.yml +20 -20
  15. data/spec/vcr/billing/update/1286682213.yml +21 -21
  16. data/spec/vcr/charge/create/{1286681273.yml → 1287465632.yml} +35 -35
  17. data/spec/vcr/charge/delete-uninvoiced/{1287460783.yml → 1287465632.yml} +102 -56
  18. data/spec/vcr/charge/list-all/{1286681273.yml → 1287465632.yml} +51 -51
  19. data/spec/vcr/charge/list-invoiced/{1286681273.yml → 1287465632.yml} +80 -80
  20. data/spec/vcr/charge/list-pending/{1286681273.yml → 1287465632.yml} +51 -51
  21. data/spec/vcr/charge/lookup/{1286681273.yml → 1287465632.yml} +27 -27
  22. data/spec/vcr/credit/create/{1287461340.yml → 1287461400.yml} +25 -25
  23. data/spec/vcr/credit/{delete-uninvoiced/1287460732.yml → delete/1287461400.yml} +34 -34
  24. data/spec/vcr/credit/list/{1287460732.yml → 1287461400.yml} +50 -50
  25. data/spec/vcr/credit/lookup/{1287461340.yml → 1287461400.yml} +26 -26
  26. data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
  27. data/spec/vcr/invoice/create/1287167121.yml +36 -36
  28. data/spec/vcr/invoice/list/1287167121.yml +51 -51
  29. data/spec/vcr/invoice/lookup/1287167121.yml +37 -37
  30. data/spec/vcr/plan/all.yml +9 -9
  31. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  32. data/spec/vcr/plan/find.yml +9 -9
  33. data/spec/vcr/plan/update.yml +9 -9
  34. data/spec/vcr/subscription/cancel-with-code/1287455769.yml +51 -51
  35. data/spec/vcr/subscription/cancel/1287455769.yml +42 -42
  36. data/spec/vcr/subscription/change1/1287455769.yml +38 -38
  37. data/spec/vcr/subscription/change2/1287455769.yml +38 -38
  38. data/spec/vcr/subscription/create/1287455769.yml +17 -17
  39. data/spec/vcr/subscription/find/1287455769.yml +24 -24
  40. data/spec/vcr/subscription/reactivate/1287455769.yml +44 -44
  41. data/spec/vcr/subscription/refund-full/1287455769.yml +36 -36
  42. data/spec/vcr/subscription/refund-none/1287455769.yml +35 -35
  43. data/spec/vcr/subscription/refund-partial/1287455769.yml +36 -36
  44. data/spec/vcr/transaction/all/1287186411.yml +45 -45
  45. data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
  46. data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
  47. data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
  48. data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
  49. data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
  50. data/spec/vcr/transaction/refund/1287186411.yml +24 -24
  51. data/spec/vcr/transaction/void/1287186411.yml +61 -61
  52. metadata +23 -43
  53. data/spec/vcr/credit/create/1286681343.yml +0 -171
  54. data/spec/vcr/credit/create/1287460732.yml +0 -171
  55. data/spec/vcr/credit/delete-invoiced/1287460732.yml +0 -233
  56. data/spec/vcr/credit/delete-invoiced/1287461340.yml +0 -283
  57. data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +0 -246
  58. data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +0 -221
  59. data/spec/vcr/credit/list/1286681343.yml +0 -299
  60. data/spec/vcr/credit/list/1287461340.yml +0 -299
  61. data/spec/vcr/credit/lookup/1286681343.yml +0 -171
  62. data/spec/vcr/credit/lookup/1287460732.yml +0 -171
@@ -1,171 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>credit-lookup-1287460732</account-code>
10
- <company-name>Recurly Ruby Gem</company-name>
11
- <last-name>Test</last-name>
12
- <email>verena@test.com</email>
13
- <first-name>Verena</first-name>
14
- </account>
15
-
16
- headers:
17
- accept:
18
- - "*/*"
19
- connection:
20
- - close
21
- content-type:
22
- - application/xml
23
- authorization:
24
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
25
- response: !ruby/struct:VCR::Response
26
- status: !ruby/struct:VCR::ResponseStatus
27
- code: 201
28
- message: Created
29
- headers:
30
- location:
31
- - https://recurlytest3-test.recurly.com/accounts/credit-lookup-1287460732
32
- connection:
33
- - close
34
- content-type:
35
- - application/xml; charset=utf-8
36
- x-runtime:
37
- - "584"
38
- date:
39
- - Tue, 19 Oct 2010 04:07:49 GMT
40
- server:
41
- - nginx/0.7.65
42
- content-length:
43
- - "581"
44
- set-cookie:
45
- - account_credentials=deaab2785a743353549509c18f6202ba2c5981f2fdba1894d51cc7d377fbf935627d619184d03f25d44261f8bbef1323997d0acdc7609403cd1042da76d219c4%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
- - ""
47
- - _recurly_session=48a11b6ae4ded6f9580c85e0449ce0be; domain=.recurly.com; path=/; Secure; HttpOnly
48
- cache-control:
49
- - no-cache
50
- body: |
51
- <?xml version="1.0" encoding="UTF-8"?>
52
- <account>
53
- <id>credit-lookup-1287460732</id>
54
- <account_code>credit-lookup-1287460732</account_code>
55
- <username></username>
56
- <email>verena@test.com</email>
57
- <first_name>Verena</first_name>
58
- <last_name>Test</last_name>
59
- <company_name>Recurly Ruby Gem</company_name>
60
- <balance_in_cents type="integer">0</balance_in_cents>
61
- <closed type="boolean">false</closed>
62
- <hosted_login_token>54c615d9e8884504b171982e41d75728</hosted_login_token>
63
- <created_at type="datetime">2010-10-19T04:07:49Z</created_at>
64
- <state>active</state>
65
- </account>
66
-
67
- http_version: "1.1"
68
- - !ruby/struct:VCR::HTTPInteraction
69
- request: !ruby/struct:VCR::Request
70
- method: :post
71
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287460732/credits.xml
72
- body: |
73
- <?xml version="1.0" encoding="UTF-8"?>
74
- <credit>
75
- <amount type="float">13.15</amount>
76
- <description>free moniez 4 u</description>
77
- </credit>
78
-
79
- headers:
80
- accept:
81
- - "*/*"
82
- connection:
83
- - close
84
- content-type:
85
- - application/xml
86
- authorization:
87
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
88
- response: !ruby/struct:VCR::Response
89
- status: !ruby/struct:VCR::ResponseStatus
90
- code: 201
91
- message: Created
92
- headers:
93
- connection:
94
- - close
95
- content-type:
96
- - application/xml; charset=utf-8
97
- x-runtime:
98
- - "48"
99
- date:
100
- - Tue, 19 Oct 2010 04:07:50 GMT
101
- server:
102
- - nginx/0.7.65
103
- content-length:
104
- - "454"
105
- set-cookie:
106
- - _recurly_session=0110a0bd477ca8a2907543e62dec3e84; domain=.recurly.com; path=/; Secure; HttpOnly
107
- cache-control:
108
- - no-cache
109
- body: |
110
- <?xml version="1.0" encoding="UTF-8"?>
111
- <credit type="credit">
112
- <id>a68efb078adc4b91af0b0d7b0c743d27</id>
113
- <account_code>credit-lookup-1287460732</account_code>
114
- <amount_in_cents type="integer">-1315</amount_in_cents>
115
- <start_date type="datetime">2010-10-19T04:07:50Z</start_date>
116
- <end_date nil="true" type="datetime"></end_date>
117
- <description>free moniez 4 u</description>
118
- <created_at type="datetime">2010-10-19T04:07:50Z</created_at>
119
- </credit>
120
-
121
- http_version: "1.1"
122
- - !ruby/struct:VCR::HTTPInteraction
123
- request: !ruby/struct:VCR::Request
124
- method: :get
125
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1287460732/credits/a68efb078adc4b91af0b0d7b0c743d27.xml
126
- body:
127
- headers:
128
- accept:
129
- - application/xml
130
- connection:
131
- - close
132
- authorization:
133
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
134
- response: !ruby/struct:VCR::Response
135
- status: !ruby/struct:VCR::ResponseStatus
136
- code: 200
137
- message: OK
138
- headers:
139
- x-ua-compatible:
140
- - IE=Edge
141
- etag:
142
- - "\"3a22bc79e16f7d188031c5ea700fd370\""
143
- connection:
144
- - close
145
- content-type:
146
- - application/xml; charset=utf-8
147
- x-runtime:
148
- - "23"
149
- date:
150
- - Tue, 19 Oct 2010 04:07:51 GMT
151
- server:
152
- - nginx/0.7.65
153
- content-length:
154
- - "454"
155
- set-cookie:
156
- - _recurly_session=4db1d9d57612e3ce60b483255597056c; domain=.recurly.com; path=/; Secure; HttpOnly
157
- cache-control:
158
- - private, max-age=0, must-revalidate
159
- body: |
160
- <?xml version="1.0" encoding="UTF-8"?>
161
- <credit type="credit">
162
- <id>a68efb078adc4b91af0b0d7b0c743d27</id>
163
- <account_code>credit-lookup-1287460732</account_code>
164
- <amount_in_cents type="integer">-1315</amount_in_cents>
165
- <start_date type="datetime">2010-10-19T04:07:50Z</start_date>
166
- <end_date nil="true" type="datetime"></end_date>
167
- <description>free moniez 4 u</description>
168
- <created_at type="datetime">2010-10-19T04:07:50Z</created_at>
169
- </credit>
170
-
171
- http_version: "1.1"