recurly 0.4.11 → 0.4.13
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.
- data/README.md +4 -8
- data/lib/recurly.rb +10 -19
- data/lib/recurly/config_parser.rb +5 -2
- data/lib/recurly/plan.rb +0 -1
- data/lib/recurly/rails3/recurly.rake +10 -26
- data/lib/recurly/transparent.rb +2 -0
- data/lib/recurly/verification.rb +14 -8
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +3 -3
- data/spec/config/test1.yml +1 -3
- data/spec/config/test2.yml +2 -6
- data/spec/unit/config_spec.rb +9 -16
- data/spec/unit/transparent_spec.rb +0 -20
- data/spec/unit/verification_spec.rb +15 -9
- data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
- data/spec/vcr/account/close/1313708721.yml +107 -79
- data/spec/vcr/account/create-blank/1313708721.yml +37 -26
- data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
- data/spec/vcr/account/create-min/1313708721.yml +48 -30
- data/spec/vcr/account/create/1313708721.yml +52 -31
- data/spec/vcr/account/find/1313708721.yml +111 -81
- data/spec/vcr/account/list/1313708721.yml +1148 -719
- data/spec/vcr/account/update/1313708721.yml +182 -124
- data/spec/vcr/billing/create/1313708721.yml +156 -93
- data/spec/vcr/billing/destroy/1313708721.yml +198 -135
- data/spec/vcr/billing/errors/1313708721.yml +91 -56
- data/spec/vcr/billing/find/1313708721.yml +200 -122
- data/spec/vcr/billing/update/1313708721.yml +218 -126
- data/spec/vcr/charge/create/1313708721.yml +189 -120
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
- data/spec/vcr/charge/list-all/1313708721.yml +235 -157
- data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
- data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
- data/spec/vcr/charge/lookup/1313708721.yml +127 -87
- data/spec/vcr/coupon/create/1296774903.yml +83 -95
- data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
- data/spec/vcr/credit/create/1313708090.yml +127 -87
- data/spec/vcr/credit/delete/1313708090.yml +169 -129
- data/spec/vcr/credit/list/1313708090.yml +235 -157
- data/spec/vcr/credit/lookup/1313708090.yml +127 -87
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
- data/spec/vcr/invoice/create/1296674173.yml +259 -162
- data/spec/vcr/invoice/list/1296674173.yml +342 -227
- data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
- data/spec/vcr/plan/all.yml +206 -198
- data/spec/vcr/plan/find.yml +109 -103
- data/spec/vcr/plan/update.yml +126 -93
- data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
- data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
- data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
- data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
- data/spec/vcr/subscription/change1/1296674173.yml +303 -213
- data/spec/vcr/subscription/change2/1296674173.yml +303 -214
- data/spec/vcr/subscription/create/1296674173.yml +167 -111
- data/spec/vcr/subscription/find/1296674173.yml +210 -145
- data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
- data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
- data/spec/vcr/transaction/all/1311126815.yml +388 -206
- data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
- data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
- data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
- data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
- data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
- data/spec/vcr/transaction/void/1311126815.yml +280 -174
- metadata +109 -77
- data/spec/vcr/transaction/refund/1311126815.yml +0 -163
- data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,211 +1,304 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>invoice-lookup-1296674173</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 nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
user-agent:
|
23
|
+
- Recurly Ruby Client v0.4.13
|
24
|
+
content-type:
|
14
25
|
- application/xml
|
15
|
-
response: !ruby/struct:VCR::Response
|
16
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
+
response: !ruby/struct:VCR::Response
|
27
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
28
|
code: 201
|
18
29
|
message: Created
|
19
|
-
headers:
|
20
|
-
location:
|
21
|
-
- http://
|
22
|
-
content-type:
|
30
|
+
headers:
|
31
|
+
location:
|
32
|
+
- http://api.lvh.me:3000/accounts/invoice-lookup-1296674173
|
33
|
+
content-type:
|
23
34
|
- application/xml; charset=utf-8
|
24
|
-
cache-control:
|
35
|
+
cache-control:
|
25
36
|
- no-cache
|
26
|
-
x-ua-compatible:
|
37
|
+
x-ua-compatible:
|
27
38
|
- IE=Edge
|
28
|
-
set-cookie:
|
29
|
-
- _recurly_session=
|
30
|
-
|
31
|
-
server:
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=8dc236e34709d870eb13e7d6ae274d8f; domain=.lvh.me; path=/; HttpOnly
|
41
|
+
server:
|
32
42
|
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
body: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<account>
|
46
|
+
<id>invoice-lookup-1296674173</id>
|
47
|
+
<account_code>invoice-lookup-1296674173</account_code>
|
48
|
+
<username></username>
|
49
|
+
<email>verena@test.com</email>
|
50
|
+
<first_name>Verena</first_name>
|
51
|
+
<last_name>Test</last_name>
|
52
|
+
<company_name>Recurly Ruby Gem</company_name>
|
53
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
54
|
+
<closed type="boolean">false</closed>
|
55
|
+
<hosted_login_token>37a1fc4334f7420bbbc0dd6439acd662</hosted_login_token>
|
56
|
+
<created_at type="datetime">2011-09-22T22:01:53Z</created_at>
|
57
|
+
<state>active</state>
|
58
|
+
</account>
|
59
|
+
|
60
|
+
http_version: "1.1"
|
61
|
+
- !ruby/struct:VCR::HTTPInteraction
|
62
|
+
request: !ruby/struct:VCR::Request
|
42
63
|
method: :put
|
43
|
-
uri: http://api
|
44
|
-
body:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
64
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-lookup-1296674173/billing_info.xml
|
65
|
+
body: |
|
66
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
67
|
+
<billing-info>
|
68
|
+
<first-name>Verena</first-name>
|
69
|
+
<last-name>Test</last-name>
|
70
|
+
<address1>123 Test St</address1>
|
71
|
+
<city>San Francisco</city>
|
72
|
+
<state>CA</state>
|
73
|
+
<zip>94115</zip>
|
74
|
+
<country>US</country>
|
75
|
+
<credit-card>
|
76
|
+
<number>4111111111111111</number>
|
77
|
+
<year type="integer">2012</year>
|
78
|
+
<month type="integer">9</month>
|
79
|
+
<verification-value>123</verification-value>
|
80
|
+
</credit-card>
|
81
|
+
<account-code>invoice-lookup-1296674173</account-code>
|
82
|
+
</billing-info>
|
83
|
+
|
84
|
+
headers:
|
85
|
+
user-agent:
|
86
|
+
- Recurly Ruby Client v0.4.13
|
87
|
+
content-type:
|
54
88
|
- application/xml
|
55
|
-
response: !ruby/struct:VCR::Response
|
56
|
-
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
response: !ruby/struct:VCR::Response
|
90
|
+
status: !ruby/struct:VCR::ResponseStatus
|
57
91
|
code: 200
|
58
92
|
message: OK
|
59
|
-
headers:
|
60
|
-
content-type:
|
93
|
+
headers:
|
94
|
+
content-type:
|
61
95
|
- application/xml; charset=utf-8
|
62
|
-
etag:
|
63
|
-
-
|
64
|
-
cache-control:
|
96
|
+
etag:
|
97
|
+
- "\"8a7c79dcba4d1e9b5dfe23658f055be2\""
|
98
|
+
cache-control:
|
65
99
|
- max-age=0, private, must-revalidate
|
66
|
-
x-ua-compatible:
|
100
|
+
x-ua-compatible:
|
67
101
|
- IE=Edge
|
68
|
-
set-cookie:
|
69
|
-
- _recurly_session=
|
70
|
-
|
71
|
-
server:
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=aecda2d6793d58b85e70eab8c062ac06; domain=.lvh.me; path=/; HttpOnly
|
104
|
+
server:
|
72
105
|
- thin 1.2.11 codename Bat-Shit Crazy
|
73
|
-
body:
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
106
|
+
body: |
|
107
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
108
|
+
<billing_info>
|
109
|
+
<account_code>invoice-lookup-1296674173</account_code>
|
110
|
+
<first_name>Verena</first_name>
|
111
|
+
<last_name>Test</last_name>
|
112
|
+
<address1>123 Test St</address1>
|
113
|
+
<address2></address2>
|
114
|
+
<city>San Francisco</city>
|
115
|
+
<state>CA</state>
|
116
|
+
<country>US</country>
|
117
|
+
<zip>94115</zip>
|
118
|
+
<phone></phone>
|
119
|
+
<vat_number></vat_number>
|
120
|
+
<ip_address></ip_address>
|
121
|
+
<credit_card>
|
122
|
+
<type>visa</type>
|
123
|
+
<last_four>1111</last_four>
|
124
|
+
<month type="integer">9</month>
|
125
|
+
<year type="integer">2012</year>
|
126
|
+
</credit_card>
|
127
|
+
<updated_at type="datetime">2011-09-22T22:01:54Z</updated_at>
|
128
|
+
</billing_info>
|
129
|
+
|
130
|
+
http_version: "1.1"
|
131
|
+
- !ruby/struct:VCR::HTTPInteraction
|
132
|
+
request: !ruby/struct:VCR::Request
|
83
133
|
method: :post
|
84
|
-
uri: http://api
|
85
|
-
body:
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
134
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-lookup-1296674173/charges.xml
|
135
|
+
body: |
|
136
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
137
|
+
<charge>
|
138
|
+
<amount type="float">15.0</amount>
|
139
|
+
<description>charge description</description>
|
140
|
+
</charge>
|
141
|
+
|
142
|
+
headers:
|
143
|
+
user-agent:
|
144
|
+
- Recurly Ruby Client v0.4.13
|
145
|
+
content-type:
|
91
146
|
- application/xml
|
92
|
-
response: !ruby/struct:VCR::Response
|
93
|
-
status: !ruby/struct:VCR::ResponseStatus
|
147
|
+
response: !ruby/struct:VCR::Response
|
148
|
+
status: !ruby/struct:VCR::ResponseStatus
|
94
149
|
code: 201
|
95
150
|
message: Created
|
96
|
-
headers:
|
97
|
-
content-type:
|
151
|
+
headers:
|
152
|
+
content-type:
|
98
153
|
- application/xml; charset=utf-8
|
99
|
-
cache-control:
|
154
|
+
cache-control:
|
100
155
|
- no-cache
|
101
|
-
x-ua-compatible:
|
156
|
+
x-ua-compatible:
|
102
157
|
- IE=Edge
|
103
|
-
set-cookie:
|
104
|
-
- _recurly_session=
|
105
|
-
|
106
|
-
server:
|
158
|
+
set-cookie:
|
159
|
+
- _recurly_session=dc8feda72fceef101a56d7793579426e; domain=.lvh.me; path=/; HttpOnly
|
160
|
+
server:
|
107
161
|
- thin 1.2.11 codename Bat-Shit Crazy
|
108
|
-
body:
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
162
|
+
body: |
|
163
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
164
|
+
<charge type="charge">
|
165
|
+
<id>e6dd072602394bf98ad3bece4eb2885f</id>
|
166
|
+
<account_code>invoice-lookup-1296674173</account_code>
|
167
|
+
<quantity type="integer">1</quantity>
|
168
|
+
<unit_amount_in_cents type="integer">1500</unit_amount_in_cents>
|
169
|
+
<amount_in_cents type="integer">1500</amount_in_cents>
|
170
|
+
<currency>USD</currency>
|
171
|
+
<start_date type="datetime">2011-09-22T22:01:54Z</start_date>
|
172
|
+
<end_date nil="true" type="datetime"></end_date>
|
173
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
174
|
+
<description>charge description</description>
|
175
|
+
<created_at type="datetime">2011-09-22T22:01:54Z</created_at>
|
176
|
+
</charge>
|
121
177
|
|
178
|
+
http_version: "1.1"
|
179
|
+
- !ruby/struct:VCR::HTTPInteraction
|
180
|
+
request: !ruby/struct:VCR::Request
|
181
|
+
method: :post
|
182
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-lookup-1296674173/invoices.xml
|
183
|
+
body: |
|
184
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
122
185
|
<invoice>
|
123
|
-
|
124
186
|
</invoice>
|
125
187
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
-
|
130
|
-
content-type:
|
188
|
+
headers:
|
189
|
+
user-agent:
|
190
|
+
- Recurly Ruby Client v0.4.13
|
191
|
+
content-type:
|
131
192
|
- application/xml
|
132
|
-
response: !ruby/struct:VCR::Response
|
133
|
-
status: !ruby/struct:VCR::ResponseStatus
|
193
|
+
response: !ruby/struct:VCR::Response
|
194
|
+
status: !ruby/struct:VCR::ResponseStatus
|
134
195
|
code: 201
|
135
196
|
message: Created
|
136
|
-
headers:
|
137
|
-
location:
|
138
|
-
- http://
|
139
|
-
content-type:
|
197
|
+
headers:
|
198
|
+
location:
|
199
|
+
- http://api.lvh.me:3000/invoices/4c3e5cef9ab24565b61be9605f4dd6fc
|
200
|
+
content-type:
|
140
201
|
- application/xml; charset=utf-8
|
141
|
-
cache-control:
|
202
|
+
cache-control:
|
142
203
|
- no-cache
|
143
|
-
x-ua-compatible:
|
204
|
+
x-ua-compatible:
|
144
205
|
- IE=Edge
|
145
|
-
set-cookie:
|
146
|
-
- _recurly_session=
|
147
|
-
|
148
|
-
server:
|
206
|
+
set-cookie:
|
207
|
+
- _recurly_session=6389cbc039cd9ad2b42dccfc8adcde3e; domain=.lvh.me; path=/; HttpOnly
|
208
|
+
server:
|
149
209
|
- thin 1.2.11 codename Bat-Shit Crazy
|
150
|
-
body:
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
210
|
+
body: |
|
211
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
212
|
+
<invoice>
|
213
|
+
<id>4c3e5cef9ab24565b61be9605f4dd6fc</id>
|
214
|
+
<account_code>invoice-lookup-1296674173</account_code>
|
215
|
+
<date type="datetime">2011-09-22T22:01:54Z</date>
|
216
|
+
<invoice_number type="integer">1072</invoice_number>
|
217
|
+
<vat_number></vat_number>
|
218
|
+
<status>open</status>
|
219
|
+
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
220
|
+
<total_in_cents type="integer">1500</total_in_cents>
|
221
|
+
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
222
|
+
<paid_in_cents type="integer">0</paid_in_cents>
|
223
|
+
<total_due_in_cents type="integer">1500</total_due_in_cents>
|
224
|
+
<discount_in_cents type="integer">0</discount_in_cents>
|
225
|
+
<currency>USD</currency>
|
226
|
+
<line_items type="array">
|
227
|
+
<line_item>
|
228
|
+
<id>e6dd072602394bf98ad3bece4eb2885f</id>
|
229
|
+
<type>charge</type>
|
230
|
+
<amount_in_cents type="integer">1500</amount_in_cents>
|
231
|
+
<currency>USD</currency>
|
232
|
+
<start_date type="datetime">2011-09-22T22:01:54Z</start_date>
|
233
|
+
<end_date nil="true" type="datetime"></end_date>
|
234
|
+
<description>charge description</description>
|
235
|
+
<created_at type="datetime">2011-09-22T22:01:54Z</created_at>
|
236
|
+
<applied_coupon_code></applied_coupon_code>
|
237
|
+
</line_item>
|
238
|
+
</line_items>
|
239
|
+
<payments type="array">
|
240
|
+
</payments>
|
241
|
+
</invoice>
|
242
|
+
|
243
|
+
http_version: "1.1"
|
244
|
+
- !ruby/struct:VCR::HTTPInteraction
|
245
|
+
request: !ruby/struct:VCR::Request
|
168
246
|
method: :get
|
169
|
-
uri: http://api
|
170
|
-
body:
|
171
|
-
headers:
|
172
|
-
user-agent:
|
173
|
-
- Recurly Ruby Client v0.4.
|
174
|
-
accept:
|
247
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/invoices/4c3e5cef9ab24565b61be9605f4dd6fc.xml
|
248
|
+
body:
|
249
|
+
headers:
|
250
|
+
user-agent:
|
251
|
+
- Recurly Ruby Client v0.4.13
|
252
|
+
accept:
|
175
253
|
- application/xml
|
176
|
-
accept-encoding:
|
254
|
+
accept-encoding:
|
177
255
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
178
|
-
response: !ruby/struct:VCR::Response
|
179
|
-
status: !ruby/struct:VCR::ResponseStatus
|
256
|
+
response: !ruby/struct:VCR::Response
|
257
|
+
status: !ruby/struct:VCR::ResponseStatus
|
180
258
|
code: 200
|
181
259
|
message: OK
|
182
|
-
headers:
|
183
|
-
content-type:
|
260
|
+
headers:
|
261
|
+
content-type:
|
184
262
|
- application/xml; charset=utf-8
|
185
|
-
etag:
|
186
|
-
-
|
187
|
-
cache-control:
|
263
|
+
etag:
|
264
|
+
- "\"e7c4fb36c34e75844a0cff5619461b5e\""
|
265
|
+
cache-control:
|
188
266
|
- max-age=0, private, must-revalidate
|
189
|
-
x-ua-compatible:
|
267
|
+
x-ua-compatible:
|
190
268
|
- IE=Edge
|
191
|
-
|
192
|
-
- _recurly_session=ab40bd42d44d7b03825145635901028c; domain=.lvh.me; path=/;
|
193
|
-
HttpOnly
|
194
|
-
server:
|
269
|
+
server:
|
195
270
|
- thin 1.2.11 codename Bat-Shit Crazy
|
196
|
-
body:
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
271
|
+
body: |
|
272
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
273
|
+
<invoice>
|
274
|
+
<id>4c3e5cef9ab24565b61be9605f4dd6fc</id>
|
275
|
+
<account_code>invoice-lookup-1296674173</account_code>
|
276
|
+
<date type="datetime">2011-09-22T22:01:54Z</date>
|
277
|
+
<invoice_number type="integer">1072</invoice_number>
|
278
|
+
<vat_number></vat_number>
|
279
|
+
<status>open</status>
|
280
|
+
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
281
|
+
<total_in_cents type="integer">1500</total_in_cents>
|
282
|
+
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
283
|
+
<paid_in_cents type="integer">0</paid_in_cents>
|
284
|
+
<total_due_in_cents type="integer">1500</total_due_in_cents>
|
285
|
+
<discount_in_cents type="integer">0</discount_in_cents>
|
286
|
+
<currency>USD</currency>
|
287
|
+
<line_items type="array">
|
288
|
+
<line_item>
|
289
|
+
<id>e6dd072602394bf98ad3bece4eb2885f</id>
|
290
|
+
<type>charge</type>
|
291
|
+
<amount_in_cents type="integer">1500</amount_in_cents>
|
292
|
+
<currency>USD</currency>
|
293
|
+
<start_date type="datetime">2011-09-22T22:01:54Z</start_date>
|
294
|
+
<end_date nil="true" type="datetime"></end_date>
|
295
|
+
<description>charge description</description>
|
296
|
+
<created_at type="datetime">2011-09-22T22:01:54Z</created_at>
|
297
|
+
<applied_coupon_code></applied_coupon_code>
|
298
|
+
</line_item>
|
299
|
+
</line_items>
|
300
|
+
<payments type="array">
|
301
|
+
</payments>
|
302
|
+
</invoice>
|
303
|
+
|
304
|
+
http_version: "1.1"
|