recurly 0.2.3 → 0.2.4

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 (80) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/charge.rb +6 -0
  3. data/lib/recurly/subscription.rb +23 -5
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/charge_spec.rb +45 -0
  6. data/spec/integration/credit_spec.rb +19 -0
  7. data/spec/integration/subscription_spec.rb +62 -9
  8. data/spec/vcr/account/close/1287167046.yml +15 -15
  9. data/spec/vcr/account/create-blank/1287167046.yml +3 -3
  10. data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
  11. data/spec/vcr/account/create-min/1287167046.yml +6 -6
  12. data/spec/vcr/account/create/1287167046.yml +6 -6
  13. data/spec/vcr/account/find/1287167046.yml +14 -14
  14. data/spec/vcr/account/list/1287167046.yml +101 -101
  15. data/spec/vcr/account/update/1287167046.yml +26 -26
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +23 -23
  18. data/spec/vcr/billing/find/1286682213.yml +21 -21
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +24 -24
  21. data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
  22. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  23. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  24. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  25. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  26. data/spec/vcr/credit/create/1286681343.yml +20 -20
  27. data/spec/vcr/credit/create/1287460732.yml +171 -0
  28. data/spec/vcr/credit/create/1287461340.yml +171 -0
  29. data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
  30. data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
  31. data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
  32. data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
  33. data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
  34. data/spec/vcr/credit/list/1286681343.yml +36 -36
  35. data/spec/vcr/credit/list/1287460732.yml +299 -0
  36. data/spec/vcr/credit/list/1287461340.yml +299 -0
  37. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  38. data/spec/vcr/credit/lookup/1287460732.yml +171 -0
  39. data/spec/vcr/credit/lookup/1287461340.yml +171 -0
  40. data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
  41. data/spec/vcr/invoice/create/1287167121.yml +36 -36
  42. data/spec/vcr/invoice/list/1287167121.yml +52 -52
  43. data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
  44. data/spec/vcr/plan/all.yml +9 -9
  45. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  46. data/spec/vcr/plan/find.yml +9 -9
  47. data/spec/vcr/plan/update.yml +9 -9
  48. data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
  49. data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
  50. data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
  51. data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
  52. data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
  53. data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
  54. data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
  55. data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
  56. data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
  57. data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
  58. data/spec/vcr/transaction/all/1287186411.yml +80 -80
  59. data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
  60. data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
  61. data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
  62. data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
  63. data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
  64. data/spec/vcr/transaction/refund/1287186411.yml +24 -24
  65. data/spec/vcr/transaction/void/1287186411.yml +60 -60
  66. metadata +67 -56
  67. data/spec/vcr/subscription/change1/1287439446.yml +0 -409
  68. data/spec/vcr/subscription/change1/1287442108.yml +0 -409
  69. data/spec/vcr/subscription/change2/1287439446.yml +0 -409
  70. data/spec/vcr/subscription/change2/1287442108.yml +0 -409
  71. data/spec/vcr/subscription/create/1287439446.yml +0 -224
  72. data/spec/vcr/subscription/create/1287442108.yml +0 -224
  73. data/spec/vcr/subscription/find/1287439446.yml +0 -283
  74. data/spec/vcr/subscription/find/1287442352.yml +0 -283
  75. data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
  76. data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
  77. data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
  78. data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
  79. data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
  80. data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
@@ -0,0 +1,171 @@
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-create-1287461340</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-create-1287461340
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "585"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:09:07 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "581"
44
+ set-cookie:
45
+ - account_credentials=5b4960aa47b148b32b2de275ef532b19e89ad7f87c6a9fbd9e2cbdc7c876577c1b9ab62f0eb4c6e585f0e93dcfd9d9107a7dc592ee23adc91ea1eb61f3ef57c9%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=a571658dd15e51ff338fb953ac64c870; 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-create-1287461340</id>
54
+ <account_code>credit-create-1287461340</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>f9eed9d5699849bcacc66be717827282</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:09:07Z</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-create-1287461340/credits.xml
72
+ body: |
73
+ <?xml version="1.0" encoding="UTF-8"?>
74
+ <credit>
75
+ <amount type="float">10.05</amount>
76
+ <description>free moniez</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:09:08 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "450"
105
+ set-cookie:
106
+ - _recurly_session=b953798a96a75a946ae9478101c4e1d3; 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>3a59776e53e14aa3a1b9d99746e9e617</id>
113
+ <account_code>credit-create-1287461340</account_code>
114
+ <amount_in_cents type="integer">-1005</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:09:07Z</start_date>
116
+ <end_date nil="true" type="datetime"></end_date>
117
+ <description>free moniez</description>
118
+ <created_at type="datetime">2010-10-19T04:09:08Z</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-create-1287461340/credits/3a59776e53e14aa3a1b9d99746e9e617.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
+ - "\"37f5241ad8242a53d3ec42a259b96888\""
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:09:08 GMT
151
+ server:
152
+ - nginx/0.7.65
153
+ content-length:
154
+ - "450"
155
+ set-cookie:
156
+ - _recurly_session=a5a17aefff8fd8782864cc9c8b48496d; 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>3a59776e53e14aa3a1b9d99746e9e617</id>
163
+ <account_code>credit-create-1287461340</account_code>
164
+ <amount_in_cents type="integer">-1005</amount_in_cents>
165
+ <start_date type="datetime">2010-10-19T04:09:07Z</start_date>
166
+ <end_date nil="true" type="datetime"></end_date>
167
+ <description>free moniez</description>
168
+ <created_at type="datetime">2010-10-19T04:09:08Z</created_at>
169
+ </credit>
170
+
171
+ http_version: "1.1"
@@ -0,0 +1,233 @@
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>delete-invoiced-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/delete-invoiced-1287460732
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "612"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:07:56 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "585"
44
+ set-cookie:
45
+ - account_credentials=e051bd8d8bd7d5982c04b1af3bf3169723da8d1f0b38abb79f2de73f2c0f29eb0fb9b2768a22bfd926cda48374c1b10f18432d3e5fb527d8e59c772ba7a3ecf2%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=499703c15118fed1d7a637470bbc92d5; 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>delete-invoiced-1287460732</id>
54
+ <account_code>delete-invoiced-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>3ed8b524c6474691a3c1c48eae79c03a</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:07:56Z</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/delete-invoiced-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
+ - "46"
99
+ date:
100
+ - Tue, 19 Oct 2010 04:07:57 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "456"
105
+ set-cookie:
106
+ - _recurly_session=64dda0288d2af144dee670ed3418c2ae; 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>5a65fb1d4f1a494e957ab3417aca9a1e</id>
113
+ <account_code>delete-invoiced-1287460732</account_code>
114
+ <amount_in_cents type="integer">-1315</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:07:57Z</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:57Z</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/delete-invoiced-1287460732/credits/5a65fb1d4f1a494e957ab3417aca9a1e.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
+ - "\"d6cdf09b9cbb70c1130de0b706772f8e\""
143
+ connection:
144
+ - close
145
+ content-type:
146
+ - application/xml; charset=utf-8
147
+ x-runtime:
148
+ - "14"
149
+ date:
150
+ - Tue, 19 Oct 2010 04:07:57 GMT
151
+ server:
152
+ - nginx/0.7.65
153
+ content-length:
154
+ - "456"
155
+ set-cookie:
156
+ - _recurly_session=718956e33cadd14b60c0431a32972bfd; 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>5a65fb1d4f1a494e957ab3417aca9a1e</id>
163
+ <account_code>delete-invoiced-1287460732</account_code>
164
+ <amount_in_cents type="integer">-1315</amount_in_cents>
165
+ <start_date type="datetime">2010-10-19T04:07:57Z</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:57Z</created_at>
169
+ </credit>
170
+
171
+ http_version: "1.1"
172
+ - !ruby/struct:VCR::HTTPInteraction
173
+ request: !ruby/struct:VCR::Request
174
+ method: :post
175
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-invoiced-1287460732/invoices.xml
176
+ body: |
177
+ <?xml version="1.0" encoding="UTF-8"?>
178
+ <invoice>
179
+ </invoice>
180
+
181
+ headers:
182
+ accept:
183
+ - "*/*"
184
+ connection:
185
+ - close
186
+ content-type:
187
+ - application/xml
188
+ authorization:
189
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
190
+ response: !ruby/struct:VCR::Response
191
+ status: !ruby/struct:VCR::ResponseStatus
192
+ code: 201
193
+ message: Created
194
+ headers:
195
+ location:
196
+ - https://recurlytest3-test.recurly.com/invoices/207fb9533696452bb202c20664b44c34
197
+ connection:
198
+ - close
199
+ content-type:
200
+ - application/xml; charset=utf-8
201
+ x-runtime:
202
+ - "82"
203
+ date:
204
+ - Tue, 19 Oct 2010 04:07:58 GMT
205
+ server:
206
+ - nginx/0.7.65
207
+ content-length:
208
+ - "689"
209
+ set-cookie:
210
+ - _recurly_session=f8b3ffd9a4e342579e01f90fc5a80244; domain=.recurly.com; path=/; Secure; HttpOnly
211
+ cache-control:
212
+ - no-cache
213
+ body: |
214
+ <?xml version="1.0" encoding="UTF-8"?>
215
+ <invoice>
216
+ <id>207fb9533696452bb202c20664b44c34</id>
217
+ <account_code>delete-invoiced-1287460732</account_code>
218
+ <date type="datetime">2010-10-19T04:07:58Z</date>
219
+ <invoice_number type="integer">2023</invoice_number>
220
+ <vat_number></vat_number>
221
+ <status>closed</status>
222
+ <subtotal_in_cents type="integer">0</subtotal_in_cents>
223
+ <total_in_cents type="integer">0</total_in_cents>
224
+ <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
225
+ <paid_in_cents type="integer">0</paid_in_cents>
226
+ <total_due_in_cents type="integer">0</total_due_in_cents>
227
+ <line_items type="array">
228
+ </line_items>
229
+ <payments type="array">
230
+ </payments>
231
+ </invoice>
232
+
233
+ http_version: "1.1"
@@ -0,0 +1,283 @@
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>delete-invoiced-1287461340</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/delete-invoiced-1287461340
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "586"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:09:20 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "585"
44
+ set-cookie:
45
+ - account_credentials=3fef03e73a5e90b758fc02c8b1989cd3530d2ef6441c5d528ca088539374c18a6f45f5339420a770a4345551f7e6a08966d4eca40df7713e6f01234c9e11845f%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=b0ce36716dafc1fb6adf43c4ffc49abd; 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>delete-invoiced-1287461340</id>
54
+ <account_code>delete-invoiced-1287461340</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>e5fa51b0f3f64a39a2343029261ca8cf</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:09:20Z</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/delete-invoiced-1287461340/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
+ - "47"
99
+ date:
100
+ - Tue, 19 Oct 2010 04:09:21 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "456"
105
+ set-cookie:
106
+ - _recurly_session=1ec83ccdcee7dceb145675bc07f1a9a7; 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>797ee21aa61d48f9847000daa591aad8</id>
113
+ <account_code>delete-invoiced-1287461340</account_code>
114
+ <amount_in_cents type="integer">-1315</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:09:21Z</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:09:21Z</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/delete-invoiced-1287461340/credits/797ee21aa61d48f9847000daa591aad8.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
+ - "\"d0dee5da05fb2535b49ac5bff04118c4\""
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:09:21 GMT
151
+ server:
152
+ - nginx/0.7.65
153
+ content-length:
154
+ - "456"
155
+ set-cookie:
156
+ - _recurly_session=87a866921aeb32f34edacd4784388c02; 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>797ee21aa61d48f9847000daa591aad8</id>
163
+ <account_code>delete-invoiced-1287461340</account_code>
164
+ <amount_in_cents type="integer">-1315</amount_in_cents>
165
+ <start_date type="datetime">2010-10-19T04:09:21Z</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:09:21Z</created_at>
169
+ </credit>
170
+
171
+ http_version: "1.1"
172
+ - !ruby/struct:VCR::HTTPInteraction
173
+ request: !ruby/struct:VCR::Request
174
+ method: :post
175
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-invoiced-1287461340/invoices.xml
176
+ body: |
177
+ <?xml version="1.0" encoding="UTF-8"?>
178
+ <invoice>
179
+ </invoice>
180
+
181
+ headers:
182
+ accept:
183
+ - "*/*"
184
+ connection:
185
+ - close
186
+ content-type:
187
+ - application/xml
188
+ authorization:
189
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
190
+ response: !ruby/struct:VCR::Response
191
+ status: !ruby/struct:VCR::ResponseStatus
192
+ code: 201
193
+ message: Created
194
+ headers:
195
+ location:
196
+ - https://recurlytest3-test.recurly.com/invoices/f443d4ff5b284017a8be383a26612d30
197
+ connection:
198
+ - close
199
+ content-type:
200
+ - application/xml; charset=utf-8
201
+ x-runtime:
202
+ - "55"
203
+ date:
204
+ - Tue, 19 Oct 2010 04:09:22 GMT
205
+ server:
206
+ - nginx/0.7.65
207
+ content-length:
208
+ - "689"
209
+ set-cookie:
210
+ - _recurly_session=71d9c4f62f4441280c2122f9448ba918; domain=.recurly.com; path=/; Secure; HttpOnly
211
+ cache-control:
212
+ - no-cache
213
+ body: |
214
+ <?xml version="1.0" encoding="UTF-8"?>
215
+ <invoice>
216
+ <id>f443d4ff5b284017a8be383a26612d30</id>
217
+ <account_code>delete-invoiced-1287461340</account_code>
218
+ <date type="datetime">2010-10-19T04:09:22Z</date>
219
+ <invoice_number type="integer">2024</invoice_number>
220
+ <vat_number></vat_number>
221
+ <status>closed</status>
222
+ <subtotal_in_cents type="integer">0</subtotal_in_cents>
223
+ <total_in_cents type="integer">0</total_in_cents>
224
+ <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
225
+ <paid_in_cents type="integer">0</paid_in_cents>
226
+ <total_due_in_cents type="integer">0</total_due_in_cents>
227
+ <line_items type="array">
228
+ </line_items>
229
+ <payments type="array">
230
+ </payments>
231
+ </invoice>
232
+
233
+ http_version: "1.1"
234
+ - !ruby/struct:VCR::HTTPInteraction
235
+ request: !ruby/struct:VCR::Request
236
+ method: :get
237
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-invoiced-1287461340/credits/797ee21aa61d48f9847000daa591aad8.xml
238
+ body:
239
+ headers:
240
+ accept:
241
+ - application/xml
242
+ connection:
243
+ - close
244
+ authorization:
245
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
246
+ response: !ruby/struct:VCR::Response
247
+ status: !ruby/struct:VCR::ResponseStatus
248
+ code: 200
249
+ message: OK
250
+ headers:
251
+ x-ua-compatible:
252
+ - IE=Edge
253
+ etag:
254
+ - "\"d0dee5da05fb2535b49ac5bff04118c4\""
255
+ connection:
256
+ - close
257
+ content-type:
258
+ - application/xml; charset=utf-8
259
+ x-runtime:
260
+ - "14"
261
+ date:
262
+ - Tue, 19 Oct 2010 04:09:22 GMT
263
+ server:
264
+ - nginx/0.7.65
265
+ content-length:
266
+ - "456"
267
+ set-cookie:
268
+ - _recurly_session=c93ecc9f08e35ba42fbe5409fd2d3fdc; domain=.recurly.com; path=/; Secure; HttpOnly
269
+ cache-control:
270
+ - private, max-age=0, must-revalidate
271
+ body: |
272
+ <?xml version="1.0" encoding="UTF-8"?>
273
+ <credit type="credit">
274
+ <id>797ee21aa61d48f9847000daa591aad8</id>
275
+ <account_code>delete-invoiced-1287461340</account_code>
276
+ <amount_in_cents type="integer">-1315</amount_in_cents>
277
+ <start_date type="datetime">2010-10-19T04:09:21Z</start_date>
278
+ <end_date nil="true" type="datetime"></end_date>
279
+ <description>free moniez 4 u</description>
280
+ <created_at type="datetime">2010-10-19T04:09:21Z</created_at>
281
+ </credit>
282
+
283
+ http_version: "1.1"