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-lookup-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-lookup-1287461340
32
+ connection:
33
+ - close
34
+ content-type:
35
+ - application/xml; charset=utf-8
36
+ x-runtime:
37
+ - "609"
38
+ date:
39
+ - Tue, 19 Oct 2010 04:09:14 GMT
40
+ server:
41
+ - nginx/0.7.65
42
+ content-length:
43
+ - "581"
44
+ set-cookie:
45
+ - account_credentials=046bae521e071fa785b8dc73ffb146458b8cd820626ccdc01bebe25abb9244bc0ae686ed4e3ec6f92d201bc1c19a790f3360a130cf319166b16ec2bd0fd17506%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
+ - ""
47
+ - _recurly_session=d117ee5f9c732d050ab74887886c19fc; 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-1287461340</id>
54
+ <account_code>credit-lookup-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>cf97dca0555549bfb06fcbedeb650c4d</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T04:09:14Z</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-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
+ - "194"
99
+ date:
100
+ - Tue, 19 Oct 2010 04:09:15 GMT
101
+ server:
102
+ - nginx/0.7.65
103
+ content-length:
104
+ - "454"
105
+ set-cookie:
106
+ - _recurly_session=567b945bb8f008cc47182483bf4fb03b; 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>d08748f865d84d35bbf0d59e3ad5c81c</id>
113
+ <account_code>credit-lookup-1287461340</account_code>
114
+ <amount_in_cents type="integer">-1315</amount_in_cents>
115
+ <start_date type="datetime">2010-10-19T04:09:14Z</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:14Z</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-1287461340/credits/d08748f865d84d35bbf0d59e3ad5c81c.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
+ - "\"d82ef6d916d896fda4b2e1794b9ead48\""
143
+ connection:
144
+ - close
145
+ content-type:
146
+ - application/xml; charset=utf-8
147
+ x-runtime:
148
+ - "15"
149
+ date:
150
+ - Tue, 19 Oct 2010 04:09:15 GMT
151
+ server:
152
+ - nginx/0.7.65
153
+ content-length:
154
+ - "454"
155
+ set-cookie:
156
+ - _recurly_session=38341244f2fa8c036104f50812025142; 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>d08748f865d84d35bbf0d59e3ad5c81c</id>
163
+ <account_code>credit-lookup-1287461340</account_code>
164
+ <amount_in_cents type="integer">-1315</amount_in_cents>
165
+ <start_date type="datetime">2010-10-19T04:09:14Z</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:14Z</created_at>
169
+ </credit>
170
+
171
+ http_version: "1.1"
@@ -34,17 +34,17 @@
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "586"
37
+ - "588"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:57 GMT
39
+ - Tue, 19 Oct 2010 03:19:51 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "605"
44
44
  set-cookie:
45
- - account_credentials=aa85b1c4d0fd112e6a02900d0932c4060f614587fc3ebf053c15fb403a67b453a40b1afb724e759c70409d4d8772628f277438da2b6c8a6a368673ff37d7ed30%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=91658633c691f46044375ce87f6b301d572c7814a8519992bdf0268526959c2d721aad6581644aa7a31eb7ce356462bb2defa84e8890ac3b46c4dfd0e7adb4f9%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=d0c8a5a9d62ec0b8a89ea90f85e1b59e; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=d34a7ab5619ffc792b25b780fd58ef7d; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>c7f8700f0d60462e95a81666d3101e3b</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:57Z</created_at>
62
+ <hosted_login_token>d245051fe7184f0cb123063eb7823a23</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:51Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -105,21 +105,21 @@
105
105
  x-ua-compatible:
106
106
  - IE=Edge
107
107
  etag:
108
- - "\"95910c07c89337f1d5e6d2c4fade0392\""
108
+ - "\"34232f41987c1971de4d6f03b33d9af6\""
109
109
  connection:
110
110
  - close
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
113
  x-runtime:
114
- - "57"
114
+ - "227"
115
115
  date:
116
- - Mon, 18 Oct 2010 22:05:58 GMT
116
+ - Tue, 19 Oct 2010 03:19:52 GMT
117
117
  server:
118
118
  - nginx/0.7.65
119
119
  content-length:
120
120
  - "650"
121
121
  set-cookie:
122
- - _recurly_session=7d9a0926e2f1ba34025ae864a43097fc; domain=.recurly.com; path=/; Secure; HttpOnly
122
+ - _recurly_session=bfdb924ea5f408b63909162b84e6aab6; domain=.recurly.com; path=/; Secure; HttpOnly
123
123
  cache-control:
124
124
  - private, max-age=0, must-revalidate
125
125
  body: |
@@ -143,7 +143,7 @@
143
143
  <month type="integer">10</month>
144
144
  <year type="integer">2011</year>
145
145
  </credit_card>
146
- <updated_at type="datetime">2010-10-18T22:05:58Z</updated_at>
146
+ <updated_at type="datetime">2010-10-19T03:19:52Z</updated_at>
147
147
  </billing_info>
148
148
 
149
149
  http_version: "1.1"
@@ -175,15 +175,15 @@
175
175
  content-type:
176
176
  - application/xml; charset=utf-8
177
177
  x-runtime:
178
- - "23"
178
+ - "13"
179
179
  date:
180
- - Mon, 18 Oct 2010 22:05:58 GMT
180
+ - Tue, 19 Oct 2010 03:19:52 GMT
181
181
  server:
182
182
  - nginx/0.7.65
183
183
  content-length:
184
184
  - "98"
185
185
  set-cookie:
186
- - _recurly_session=e0e698006fbd212192f8e81ae8ea0da0; domain=.recurly.com; path=/; Secure; HttpOnly
186
+ - _recurly_session=3c415f090a3c0eb7e2c4c7048f31f14d; domain=.recurly.com; path=/; Secure; HttpOnly
187
187
  cache-control:
188
188
  - no-cache
189
189
  body: |
@@ -34,17 +34,17 @@
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "605"
37
+ - "751"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:53 GMT
39
+ - Tue, 19 Oct 2010 03:19:47 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "583"
44
44
  set-cookie:
45
- - account_credentials=7c3b38d3d81ed358144edce04574cc0aa47bca2ad12bc421888f095630328d585d01fe58e0101ca8519bd2761147c8e66af50220779db23a05aa4b08602c0f8b%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=bbfa064dab12fcc0883f671b4555fcd02ddccca99bb34492773c099404adb2b6a14bef7608d276160e309dd7892fb43f1f1902c217fa9c3f7ca7daffe5d5fbb2%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=976b27aa4e979fb51c1b577d092fddd5; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=1c859bc10c9c5d3d57de5af7a7123948; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>e435dbe2500b48f3a93d0062da319cb8</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:53Z</created_at>
62
+ <hosted_login_token>9b328fb7b50a4451b5171f6cbbbdac0e</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:46Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -105,21 +105,21 @@
105
105
  x-ua-compatible:
106
106
  - IE=Edge
107
107
  etag:
108
- - "\"2d669e5c99cd4cccc7171aa9c1c6f121\""
108
+ - "\"d5810a9a9d3d95cbae0f3048f7c8937c\""
109
109
  connection:
110
110
  - close
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
113
  x-runtime:
114
- - "83"
114
+ - "59"
115
115
  date:
116
- - Mon, 18 Oct 2010 22:05:54 GMT
116
+ - Tue, 19 Oct 2010 03:19:47 GMT
117
117
  server:
118
118
  - nginx/0.7.65
119
119
  content-length:
120
120
  - "639"
121
121
  set-cookie:
122
- - _recurly_session=2c8c674b80a1ec226295568ec91c9e8d; domain=.recurly.com; path=/; Secure; HttpOnly
122
+ - _recurly_session=ec978eaa6bdbe2b1ba44bcb4e3b6afa8; domain=.recurly.com; path=/; Secure; HttpOnly
123
123
  cache-control:
124
124
  - private, max-age=0, must-revalidate
125
125
  body: |
@@ -143,7 +143,7 @@
143
143
  <month type="integer">10</month>
144
144
  <year type="integer">2011</year>
145
145
  </credit_card>
146
- <updated_at type="datetime">2010-10-18T22:05:54Z</updated_at>
146
+ <updated_at type="datetime">2010-10-19T03:19:47Z</updated_at>
147
147
  </billing_info>
148
148
 
149
149
  http_version: "1.1"
@@ -177,27 +177,27 @@
177
177
  content-type:
178
178
  - application/xml; charset=utf-8
179
179
  x-runtime:
180
- - "46"
180
+ - "64"
181
181
  date:
182
- - Mon, 18 Oct 2010 22:05:55 GMT
182
+ - Tue, 19 Oct 2010 03:19:48 GMT
183
183
  server:
184
184
  - nginx/0.7.65
185
185
  content-length:
186
186
  - "457"
187
187
  set-cookie:
188
- - _recurly_session=eaa6d1b89fa1173c9f84582da23ada8c; domain=.recurly.com; path=/; Secure; HttpOnly
188
+ - _recurly_session=4d5063924cf90014b4242b7192cac569; domain=.recurly.com; path=/; Secure; HttpOnly
189
189
  cache-control:
190
190
  - no-cache
191
191
  body: |
192
192
  <?xml version="1.0" encoding="UTF-8"?>
193
193
  <charge type="charge">
194
- <id>a9a81d57b5ff49c8b4107d2ccb77ac39</id>
194
+ <id>037d038406b4463283989968edaa7bb3</id>
195
195
  <account_code>invoice-create-1287167121</account_code>
196
196
  <amount_in_cents type="integer">1000</amount_in_cents>
197
- <start_date type="datetime">2010-10-18T22:05:54Z</start_date>
197
+ <start_date type="datetime">2010-10-19T03:19:48Z</start_date>
198
198
  <end_date nil="true" type="datetime"></end_date>
199
199
  <description>charge description</description>
200
- <created_at type="datetime">2010-10-18T22:05:54Z</created_at>
200
+ <created_at type="datetime">2010-10-19T03:19:48Z</created_at>
201
201
  </charge>
202
202
 
203
203
  http_version: "1.1"
@@ -231,27 +231,27 @@
231
231
  content-type:
232
232
  - application/xml; charset=utf-8
233
233
  x-runtime:
234
- - "45"
234
+ - "65"
235
235
  date:
236
- - Mon, 18 Oct 2010 22:05:55 GMT
236
+ - Tue, 19 Oct 2010 03:19:49 GMT
237
237
  server:
238
238
  - nginx/0.7.65
239
239
  content-length:
240
240
  - "457"
241
241
  set-cookie:
242
- - _recurly_session=b4bc2dfadfe7703affebb9b14559700e; domain=.recurly.com; path=/; Secure; HttpOnly
242
+ - _recurly_session=0e0d8943cfcbb0cc1ff469179837b683; domain=.recurly.com; path=/; Secure; HttpOnly
243
243
  cache-control:
244
244
  - no-cache
245
245
  body: |
246
246
  <?xml version="1.0" encoding="UTF-8"?>
247
247
  <charge type="charge">
248
- <id>db1e5408968948fdb5d2689d33f29bd8</id>
248
+ <id>21cbd02ead9740aba0d472ba90c89876</id>
249
249
  <account_code>invoice-create-1287167121</account_code>
250
250
  <amount_in_cents type="integer">1500</amount_in_cents>
251
- <start_date type="datetime">2010-10-18T22:05:55Z</start_date>
251
+ <start_date type="datetime">2010-10-19T03:19:49Z</start_date>
252
252
  <end_date nil="true" type="datetime"></end_date>
253
253
  <description>charge description</description>
254
- <created_at type="datetime">2010-10-18T22:05:55Z</created_at>
254
+ <created_at type="datetime">2010-10-19T03:19:49Z</created_at>
255
255
  </charge>
256
256
 
257
257
  http_version: "1.1"
@@ -279,30 +279,30 @@
279
279
  message: Created
280
280
  headers:
281
281
  location:
282
- - https://recurlytest3-test.recurly.com/invoices/bc3e8d7591754d7dab4d2f8fec286f06
282
+ - https://recurlytest3-test.recurly.com/invoices/6f492c3de8534352bb80b074596f8a51
283
283
  connection:
284
284
  - close
285
285
  content-type:
286
286
  - application/xml; charset=utf-8
287
287
  x-runtime:
288
- - "104"
288
+ - "73"
289
289
  date:
290
- - Mon, 18 Oct 2010 22:05:56 GMT
290
+ - Tue, 19 Oct 2010 03:19:50 GMT
291
291
  server:
292
292
  - nginx/0.7.65
293
293
  content-length:
294
294
  - "1517"
295
295
  set-cookie:
296
- - _recurly_session=5604f9c1cd96a1274e273ca747ca38e9; domain=.recurly.com; path=/; Secure; HttpOnly
296
+ - _recurly_session=ae782894c320873f5f06bc23fdb38bb9; domain=.recurly.com; path=/; Secure; HttpOnly
297
297
  cache-control:
298
298
  - no-cache
299
299
  body: |
300
300
  <?xml version="1.0" encoding="UTF-8"?>
301
301
  <invoice>
302
- <id>bc3e8d7591754d7dab4d2f8fec286f06</id>
302
+ <id>6f492c3de8534352bb80b074596f8a51</id>
303
303
  <account_code>invoice-create-1287167121</account_code>
304
- <date type="datetime">2010-10-18T22:05:56Z</date>
305
- <invoice_number type="integer">1866</invoice_number>
304
+ <date type="datetime">2010-10-19T03:19:49Z</date>
305
+ <invoice_number type="integer">1994</invoice_number>
306
306
  <vat_number></vat_number>
307
307
  <status>open</status>
308
308
  <subtotal_in_cents type="integer">2500</subtotal_in_cents>
@@ -312,22 +312,22 @@
312
312
  <total_due_in_cents type="integer">2500</total_due_in_cents>
313
313
  <line_items type="array">
314
314
  <line_item>
315
- <id>a9a81d57b5ff49c8b4107d2ccb77ac39</id>
315
+ <id>037d038406b4463283989968edaa7bb3</id>
316
316
  <type>charge</type>
317
317
  <amount_in_cents type="integer">1000</amount_in_cents>
318
- <start_date type="datetime">2010-10-18T22:05:54Z</start_date>
318
+ <start_date type="datetime">2010-10-19T03:19:48Z</start_date>
319
319
  <end_date nil="true" type="datetime"></end_date>
320
320
  <description>charge description</description>
321
- <created_at type="datetime">2010-10-18T22:05:54Z</created_at>
321
+ <created_at type="datetime">2010-10-19T03:19:48Z</created_at>
322
322
  </line_item>
323
323
  <line_item>
324
- <id>db1e5408968948fdb5d2689d33f29bd8</id>
324
+ <id>21cbd02ead9740aba0d472ba90c89876</id>
325
325
  <type>charge</type>
326
326
  <amount_in_cents type="integer">1500</amount_in_cents>
327
- <start_date type="datetime">2010-10-18T22:05:55Z</start_date>
327
+ <start_date type="datetime">2010-10-19T03:19:49Z</start_date>
328
328
  <end_date nil="true" type="datetime"></end_date>
329
329
  <description>charge description</description>
330
- <created_at type="datetime">2010-10-18T22:05:55Z</created_at>
330
+ <created_at type="datetime">2010-10-19T03:19:49Z</created_at>
331
331
  </line_item>
332
332
  </line_items>
333
333
  <payments type="array">