stripe_tester 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. data/README.md +49 -1
  2. data/lib/stripe_tester.rb +29 -6
  3. data/lib/stripe_tester/version.rb +1 -1
  4. data/spec/stripe_tester_spec.rb +19 -1
  5. data/stripe_webhooks/2013-08-13/account_updated.yml +21 -0
  6. data/stripe_webhooks/2013-08-13/balance_available.yml +18 -0
  7. data/stripe_webhooks/2013-08-13/charge_dispute_closed.yml +19 -0
  8. data/stripe_webhooks/2013-08-13/charge_dispute_created.yml +19 -0
  9. data/stripe_webhooks/2013-08-13/charge_dispute_updated.yml +21 -0
  10. data/stripe_webhooks/2013-08-13/charge_failed.yml +47 -0
  11. data/stripe_webhooks/2013-08-13/charge_refunded.yml +48 -0
  12. data/stripe_webhooks/2013-08-13/charge_succeeded.yml +47 -0
  13. data/stripe_webhooks/2013-08-13/coupon_created.yml +19 -0
  14. data/stripe_webhooks/2013-08-13/coupon_deleted.yml +19 -0
  15. data/stripe_webhooks/2013-08-13/customer_card_created.yml +29 -0
  16. data/stripe_webhooks/2013-08-13/customer_card_deleted.yml +29 -0
  17. data/stripe_webhooks/2013-08-13/customer_card_updated.yml +31 -0
  18. data/stripe_webhooks/2013-08-13/customer_created.yml +69 -0
  19. data/stripe_webhooks/2013-08-13/customer_deleted.yml +69 -0
  20. data/stripe_webhooks/2013-08-13/customer_discount_created.yml +24 -0
  21. data/stripe_webhooks/2013-08-13/customer_discount_deleted.yml +24 -0
  22. data/stripe_webhooks/2013-08-13/customer_discount_updated.yml +37 -0
  23. data/stripe_webhooks/2013-08-13/customer_subscription_created.yml +32 -0
  24. data/stripe_webhooks/2013-08-13/customer_subscription_deleted.yml +32 -0
  25. data/stripe_webhooks/2013-08-13/customer_subscription_trial_will_end.yml +32 -0
  26. data/stripe_webhooks/2013-08-13/customer_subscription_updated.yml +43 -0
  27. data/stripe_webhooks/2013-08-13/customer_updated.yml +71 -0
  28. data/stripe_webhooks/2013-08-13/invoice_created.yml +57 -0
  29. data/stripe_webhooks/2013-08-13/invoice_payment_failed.yml +57 -0
  30. data/stripe_webhooks/2013-08-13/invoice_payment_succeeded.yml +57 -0
  31. data/stripe_webhooks/2013-08-13/invoice_updated.yml +59 -0
  32. data/stripe_webhooks/2013-08-13/invoiceitem_created.yml +18 -0
  33. data/stripe_webhooks/2013-08-13/invoiceitem_deleted.yml +18 -0
  34. data/stripe_webhooks/2013-08-13/invoiceitem_updated.yml +20 -0
  35. data/stripe_webhooks/2013-08-13/plan_created.yml +17 -0
  36. data/stripe_webhooks/2013-08-13/plan_deleted.yml +17 -0
  37. data/stripe_webhooks/2013-08-13/plan_updated.yml +19 -0
  38. data/stripe_webhooks/2013-08-13/transfer_created.yml +21 -0
  39. data/stripe_webhooks/2013-08-13/transfer_failed.yml +21 -0
  40. data/stripe_webhooks/2013-08-13/transfer_paid.yml +21 -0
  41. data/stripe_webhooks/2013-08-13/transfer_updated.yml +23 -0
  42. data/wercker.yml +22 -0
  43. metadata +41 -3
@@ -0,0 +1,43 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.updated
6
+ object: event
7
+ data:
8
+ object:
9
+ id: su_00000000000000
10
+ plan:
11
+ interval: month
12
+ name: Gold
13
+ amount: 7900
14
+ currency: usd
15
+ id: gold-v1_00000000000000
16
+ object: plan
17
+ livemode: false
18
+ interval_count: 1
19
+ trial_period_days: 30
20
+ object: subscription
21
+ start: 1381515456
22
+ status: trialing
23
+ customer: cus_00000000000000
24
+ cancel_at_period_end: false
25
+ current_period_start: 1381502959
26
+ current_period_end: 1384094959
27
+ ended_at:
28
+ trial_start: 1381502959
29
+ trial_end: 1384094959
30
+ canceled_at:
31
+ quantity: 1
32
+ application_fee_percent:
33
+ previous_attributes:
34
+ plan:
35
+ interval: month
36
+ name: Old plan
37
+ amount: 7900
38
+ currency: usd
39
+ id: OLD_PLAN_ID
40
+ object: plan
41
+ livemode: false
42
+ interval_count: 1
43
+ trial_period_days: 30
@@ -0,0 +1,71 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.updated
6
+ object: event
7
+ data:
8
+ object:
9
+ object: customer
10
+ created: 1381502839
11
+ id: cus_00000000000000
12
+ livemode: false
13
+ description: Demo Organization
14
+ email:
15
+ delinquent: false
16
+ metadata:
17
+ subscription:
18
+ id: su_00000000000000
19
+ plan:
20
+ interval: month
21
+ name: Bronze
22
+ amount: 1900
23
+ currency: usd
24
+ id: bronze-v1_00000000000000
25
+ object: plan
26
+ livemode: false
27
+ interval_count: 1
28
+ trial_period_days: 30
29
+ object: subscription
30
+ start: 1381503076
31
+ status: trialing
32
+ customer: cus_00000000000000
33
+ cancel_at_period_end: false
34
+ current_period_start: 1381502959
35
+ current_period_end: 1384094959
36
+ ended_at:
37
+ trial_start: 1381502959
38
+ trial_end: 1384094959
39
+ canceled_at:
40
+ quantity: 1
41
+ application_fee_percent:
42
+ discount:
43
+ account_balance: 0
44
+ cards:
45
+ object: list
46
+ count: 1
47
+ url: /v1/customers/cus_2jaMnKi14NFHOn/cards
48
+ data:
49
+ -
50
+ id: card_2jcPZBywLcGWwb
51
+ object: card
52
+ last4: '4242'
53
+ type: Visa
54
+ exp_month: 8
55
+ exp_year: 2018
56
+ fingerprint: XslDljXmd9D6ii0D
57
+ customer: cus_2jaMnKi14NFHOn
58
+ country: US
59
+ name:
60
+ address_line1:
61
+ address_line2:
62
+ address_city:
63
+ address_state:
64
+ address_zip:
65
+ address_country:
66
+ cvc_check: pass
67
+ address_line1_check:
68
+ address_zip_check:
69
+ default_card: card_2jcPZBywLcGWwb
70
+ previous_attributes:
71
+ description: Old description
@@ -0,0 +1,57 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.created
6
+ object: event
7
+ data:
8
+ object:
9
+ date: 1381502959
10
+ id: in_00000000000000
11
+ period_start: 1381502959
12
+ period_end: 1381502959
13
+ lines:
14
+ data:
15
+ -
16
+ id: su_2jdlfGgkFBBFyV
17
+ object: line_item
18
+ type: subscription
19
+ livemode: true
20
+ amount: 0
21
+ currency: usd
22
+ proration: false
23
+ period:
24
+ start: 1381502959
25
+ end: 1384094959
26
+ quantity: 1
27
+ plan:
28
+ interval: month
29
+ name: Gold
30
+ amount: 7900
31
+ currency: usd
32
+ id: gold-v1
33
+ object: plan
34
+ livemode: false
35
+ interval_count: 1
36
+ trial_period_days: 30
37
+ description:
38
+ count: 1
39
+ object: list
40
+ url: /v1/invoices/in_2jaOyRoBFb6TY6/lines
41
+ subtotal: 0
42
+ total: 0
43
+ customer: cus_00000000000000
44
+ object: invoice
45
+ attempted: false
46
+ closed: true
47
+ paid: true
48
+ livemode: false
49
+ attempt_count: 0
50
+ amount_due: 0
51
+ currency: usd
52
+ starting_balance: 0
53
+ ending_balance:
54
+ next_payment_attempt:
55
+ charge:
56
+ discount:
57
+ application_fee:
@@ -0,0 +1,57 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.payment_failed
6
+ object: event
7
+ data:
8
+ object:
9
+ date: 1381502959
10
+ id: in_00000000000000
11
+ period_start: 1381502959
12
+ period_end: 1381502959
13
+ lines:
14
+ data:
15
+ -
16
+ id: su_2jdl17PuBQkbQY
17
+ object: line_item
18
+ type: subscription
19
+ livemode: true
20
+ amount: 0
21
+ currency: usd
22
+ proration: false
23
+ period:
24
+ start: 1381502959
25
+ end: 1384094959
26
+ quantity: 1
27
+ plan:
28
+ interval: month
29
+ name: Gold
30
+ amount: 7900
31
+ currency: usd
32
+ id: gold-v1
33
+ object: plan
34
+ livemode: false
35
+ interval_count: 1
36
+ trial_period_days: 30
37
+ description:
38
+ count: 1
39
+ object: list
40
+ url: /v1/invoices/in_2jaOyRoBFb6TY6/lines
41
+ subtotal: 0
42
+ total: 0
43
+ customer: cus_00000000000000
44
+ object: invoice
45
+ attempted: true
46
+ closed: false
47
+ paid: false
48
+ livemode: false
49
+ attempt_count: 0
50
+ amount_due: 0
51
+ currency: usd
52
+ starting_balance: 0
53
+ ending_balance:
54
+ next_payment_attempt:
55
+ charge:
56
+ discount:
57
+ application_fee:
@@ -0,0 +1,57 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.payment_succeeded
6
+ object: event
7
+ data:
8
+ object:
9
+ date: 1381502959
10
+ id: in_00000000000000
11
+ period_start: 1381502959
12
+ period_end: 1381502959
13
+ lines:
14
+ data:
15
+ -
16
+ id: su_2jdll7Xw8rfavB
17
+ object: line_item
18
+ type: subscription
19
+ livemode: true
20
+ amount: 0
21
+ currency: usd
22
+ proration: false
23
+ period:
24
+ start: 1381502959
25
+ end: 1384094959
26
+ quantity: 1
27
+ plan:
28
+ interval: month
29
+ name: Gold
30
+ amount: 7900
31
+ currency: usd
32
+ id: gold-v1
33
+ object: plan
34
+ livemode: false
35
+ interval_count: 1
36
+ trial_period_days: 30
37
+ description:
38
+ count: 1
39
+ object: list
40
+ url: /v1/invoices/in_2jaOyRoBFb6TY6/lines
41
+ subtotal: 0
42
+ total: 0
43
+ customer: cus_00000000000000
44
+ object: invoice
45
+ attempted: true
46
+ closed: true
47
+ paid: true
48
+ livemode: false
49
+ attempt_count: 0
50
+ amount_due: 0
51
+ currency: usd
52
+ starting_balance: 0
53
+ ending_balance:
54
+ next_payment_attempt:
55
+ charge: _00000000000000
56
+ discount:
57
+ application_fee:
@@ -0,0 +1,59 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.updated
6
+ object: event
7
+ data:
8
+ object:
9
+ date: 1381502959
10
+ id: in_00000000000000
11
+ period_start: 1381502959
12
+ period_end: 1381502959
13
+ lines:
14
+ data:
15
+ -
16
+ id: su_2jdlFxq6XpjkJ1
17
+ object: line_item
18
+ type: subscription
19
+ livemode: true
20
+ amount: 0
21
+ currency: usd
22
+ proration: false
23
+ period:
24
+ start: 1381502959
25
+ end: 1384094959
26
+ quantity: 1
27
+ plan:
28
+ interval: month
29
+ name: Gold
30
+ amount: 7900
31
+ currency: usd
32
+ id: gold-v1
33
+ object: plan
34
+ livemode: false
35
+ interval_count: 1
36
+ trial_period_days: 30
37
+ description:
38
+ count: 1
39
+ object: list
40
+ url: /v1/invoices/in_2jaOyRoBFb6TY6/lines
41
+ subtotal: 0
42
+ total: 0
43
+ customer: cus_00000000000000
44
+ object: invoice
45
+ attempted: true
46
+ closed: true
47
+ paid: true
48
+ livemode: false
49
+ attempt_count: 0
50
+ amount_due: 0
51
+ currency: usd
52
+ starting_balance: 0
53
+ ending_balance:
54
+ next_payment_attempt:
55
+ charge:
56
+ discount:
57
+ application_fee:
58
+ previous_attributes:
59
+ lines:
@@ -0,0 +1,18 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.created
6
+ object: event
7
+ data:
8
+ object:
9
+ object: invoiceitem
10
+ id: ii_00000000000000
11
+ date: 1381515476
12
+ amount: 1000
13
+ livemode: false
14
+ proration: false
15
+ currency: usd
16
+ customer: cus_00000000000000
17
+ description: My First Invoice Item (created for API docs)
18
+ invoice:
@@ -0,0 +1,18 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.deleted
6
+ object: event
7
+ data:
8
+ object:
9
+ object: invoiceitem
10
+ id: ii_00000000000000
11
+ date: 1381515487
12
+ amount: 1000
13
+ livemode: false
14
+ proration: false
15
+ currency: usd
16
+ customer: cus_00000000000000
17
+ description: My First Invoice Item (created for API docs)
18
+ invoice:
@@ -0,0 +1,20 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.updated
6
+ object: event
7
+ data:
8
+ object:
9
+ object: invoiceitem
10
+ id: ii_00000000000000
11
+ date: 1381515478
12
+ amount: 1000
13
+ livemode: false
14
+ proration: false
15
+ currency: usd
16
+ customer: cus_00000000000000
17
+ description: My First Invoice Item (created for API docs)
18
+ invoice:
19
+ previous_attributes:
20
+ amount: 2121
@@ -0,0 +1,17 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: plan.created
6
+ object: event
7
+ data:
8
+ object:
9
+ interval: month
10
+ name: Gold
11
+ amount: 7900
12
+ currency: usd
13
+ id: gold-v1_00000000000000
14
+ object: plan
15
+ livemode: false
16
+ interval_count: 1
17
+ trial_period_days: 30
@@ -0,0 +1,17 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: plan.deleted
6
+ object: event
7
+ data:
8
+ object:
9
+ interval: month
10
+ name: Gold
11
+ amount: 7900
12
+ currency: usd
13
+ id: gold-v1_00000000000000
14
+ object: plan
15
+ livemode: false
16
+ interval_count: 1
17
+ trial_period_days: 30