stripe_local 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,5 @@ describe StripeLocal::Invoice do
12
12
  i.subtotal.should eq 9900
13
13
  i.lines(true).size.should be 1
14
14
  i.lines.first.amount.should eq 9900
15
- i.lines.first.period_start.should eq "2013-05-07 18:23:47 -0500"
16
15
  end
17
16
  end
@@ -0,0 +1,75 @@
1
+ {
2
+ "amount_due": 10900,
3
+ "application_fee": null,
4
+ "attempt_count": 0,
5
+ "attempted": true,
6
+ "charge": "ch_32R5X6QvlcUgxS",
7
+ "closed": true,
8
+ "currency": "usd",
9
+ "customer": "cus_32R581Js1C3JX2",
10
+ "date": 1385850494,
11
+ "discount": null,
12
+ "ending_balance": 0,
13
+ "id": "in_32R5ebuWFy95pQ",
14
+ "lines": {
15
+ "count": 2,
16
+ "data": [
17
+ {
18
+ "amount": 1000,
19
+ "currency": "usd",
20
+ "description": "one time signup fee",
21
+ "id": "ii_32R5jfmWW1UO6Q",
22
+ "livemode": false,
23
+ "metadata": {},
24
+ "object": "line_item",
25
+ "period": {
26
+ "end": 1385850493,
27
+ "start": 1385850493
28
+ },
29
+ "plan": null,
30
+ "proration": false,
31
+ "quantity": null,
32
+ "type": "invoiceitem"
33
+ },
34
+ {
35
+ "amount": 9900,
36
+ "currency": "usd",
37
+ "description": null,
38
+ "id": "sub_32R5OltYH6jb9R",
39
+ "livemode": false,
40
+ "metadata": null,
41
+ "object": "line_item",
42
+ "period": {
43
+ "end": 1388442494,
44
+ "start": 1385850494
45
+ },
46
+ "plan": {
47
+ "amount": 9900,
48
+ "currency": "usd",
49
+ "id": "HR99",
50
+ "interval": "month",
51
+ "interval_count": 1,
52
+ "livemode": false,
53
+ "metadata": {},
54
+ "name": "HR Solutions On-Call",
55
+ "object": "plan",
56
+ "trial_period_days": null
57
+ },
58
+ "proration": false,
59
+ "quantity": 1,
60
+ "type": "subscription"
61
+ }
62
+ ],
63
+ "object": "list",
64
+ "url": "/v1/invoices/in_32R5ebuWFy95pQ/lines"
65
+ },
66
+ "livemode": false,
67
+ "next_payment_attempt": null,
68
+ "object": "invoice",
69
+ "paid": true,
70
+ "period_end": 1385850494,
71
+ "period_start": 1385850494,
72
+ "starting_balance": 0,
73
+ "subtotal": 10900,
74
+ "total": 10900
75
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe_local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Cohen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-30 00:00:00.000000000 Z
11
+ date: 2013-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -291,6 +291,7 @@ files:
291
291
  - spec/webhook_fixtures/customer.created.json
292
292
  - spec/webhook_fixtures/customer.subscription.created.json
293
293
  - spec/webhook_fixtures/customer_creation_response.json
294
+ - spec/webhook_fixtures/invoice.created.json
294
295
  - spec/webhook_fixtures/invoice.payment_succeeded.json
295
296
  - spec/webhook_fixtures/plan.created.json
296
297
  - spec/webhook_fixtures/transfer.json
@@ -385,6 +386,7 @@ test_files:
385
386
  - spec/webhook_fixtures/customer.created.json
386
387
  - spec/webhook_fixtures/customer.subscription.created.json
387
388
  - spec/webhook_fixtures/customer_creation_response.json
389
+ - spec/webhook_fixtures/invoice.created.json
388
390
  - spec/webhook_fixtures/invoice.payment_succeeded.json
389
391
  - spec/webhook_fixtures/plan.created.json
390
392
  - spec/webhook_fixtures/transfer.json