stripe_tester 0.1.0 → 0.1.1

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. checksums.yaml +4 -4
  2. data/README.md +63 -16
  3. data/lib/stripe_tester/version.rb +1 -1
  4. data/stripe_webhooks/2014-10-07/account_updated.yml +28 -0
  5. data/stripe_webhooks/2014-10-07/balance_available.yml +17 -0
  6. data/stripe_webhooks/2014-10-07/charge_captured.yml +62 -0
  7. data/stripe_webhooks/2014-10-07/charge_dispute_closed.yml +22 -0
  8. data/stripe_webhooks/2014-10-07/charge_dispute_created.yml +22 -0
  9. data/stripe_webhooks/2014-10-07/charge_dispute_updated.yml +24 -0
  10. data/stripe_webhooks/2014-10-07/charge_failed.yml +62 -0
  11. data/stripe_webhooks/2014-10-07/charge_refunded.yml +73 -0
  12. data/stripe_webhooks/2014-10-07/charge_succeeded.yml +62 -0
  13. data/stripe_webhooks/2014-10-07/charge_updated.yml +64 -0
  14. data/stripe_webhooks/2014-10-07/coupon_created.yml +23 -0
  15. data/stripe_webhooks/2014-10-07/coupon_deleted.yml +23 -0
  16. data/stripe_webhooks/2014-10-07/customer_card_created.yml +30 -0
  17. data/stripe_webhooks/2014-10-07/customer_card_deleted.yml +30 -0
  18. data/stripe_webhooks/2014-10-07/customer_card_updated.yml +32 -0
  19. data/stripe_webhooks/2014-10-07/customer_created.yml +33 -0
  20. data/stripe_webhooks/2014-10-07/customer_deleted.yml +33 -0
  21. data/stripe_webhooks/2014-10-07/customer_discount_created.yml +29 -0
  22. data/stripe_webhooks/2014-10-07/customer_discount_deleted.yml +29 -0
  23. data/stripe_webhooks/2014-10-07/customer_discount_updated.yml +45 -0
  24. data/stripe_webhooks/2014-10-07/customer_subscription_created.yml +38 -0
  25. data/stripe_webhooks/2014-10-07/customer_subscription_deleted.yml +38 -0
  26. data/stripe_webhooks/2014-10-07/customer_subscription_trial_will_end.yml +38 -0
  27. data/stripe_webhooks/2014-10-07/customer_subscription_updated.yml +52 -0
  28. data/stripe_webhooks/2014-10-07/customer_updated.yml +35 -0
  29. data/stripe_webhooks/2014-10-07/invoice_created.yml +69 -0
  30. data/stripe_webhooks/2014-10-07/invoice_payment_failed.yml +69 -0
  31. data/stripe_webhooks/2014-10-07/invoice_payment_succeeded.yml +69 -0
  32. data/stripe_webhooks/2014-10-07/invoice_updated.yml +71 -0
  33. data/stripe_webhooks/2014-10-07/invoiceitem_created.yml +23 -0
  34. data/stripe_webhooks/2014-10-07/invoiceitem_deleted.yml +23 -0
  35. data/stripe_webhooks/2014-10-07/invoiceitem_updated.yml +25 -0
  36. data/stripe_webhooks/2014-10-07/plan_created.yml +21 -0
  37. data/stripe_webhooks/2014-10-07/plan_deleted.yml +21 -0
  38. data/stripe_webhooks/2014-10-07/plan_updated.yml +23 -0
  39. data/stripe_webhooks/2014-10-07/transfer_created.yml +25 -0
  40. data/stripe_webhooks/2014-10-07/transfer_failed.yml +25 -0
  41. data/stripe_webhooks/2014-10-07/transfer_paid.yml +25 -0
  42. data/stripe_webhooks/2014-10-07/transfer_updated.yml +27 -0
  43. metadata +41 -2
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: sub_00000000000000
11
+ plan:
12
+ interval: month
13
+ name: "-JYI_nRwd_ltcGRLnVys"
14
+ created: 1412299176
15
+ amount: 2000
16
+ currency: usd
17
+ id: "-JYI_00000000000000"
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_description:
24
+ object: subscription
25
+ start: 1414767879
26
+ status: active
27
+ customer: cus_00000000000000
28
+ cancel_at_period_end: false
29
+ current_period_start: 1414767879
30
+ current_period_end: 1417359879
31
+ ended_at:
32
+ trial_start:
33
+ trial_end:
34
+ canceled_at:
35
+ quantity: 1
36
+ application_fee_percent:
37
+ discount:
38
+ metadata: {}
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.deleted
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: sub_00000000000000
11
+ plan:
12
+ interval: month
13
+ name: "-JYI_nRwd_ltcGRLnVys"
14
+ created: 1412299176
15
+ amount: 2000
16
+ currency: usd
17
+ id: "-JYI_00000000000000"
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_description:
24
+ object: subscription
25
+ start: 1414767887
26
+ status: canceled
27
+ customer: cus_00000000000000
28
+ cancel_at_period_end: false
29
+ current_period_start: 1414767887
30
+ current_period_end: 1417359887
31
+ ended_at: 1414739965
32
+ trial_start:
33
+ trial_end:
34
+ canceled_at:
35
+ quantity: 1
36
+ application_fee_percent:
37
+ discount:
38
+ metadata: {}
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.trial_will_end
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: sub_00000000000000
11
+ plan:
12
+ interval: month
13
+ name: "-JYI_nRwd_ltcGRLnVys"
14
+ created: 1412299176
15
+ amount: 2000
16
+ currency: usd
17
+ id: "-JYI_00000000000000"
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_description:
24
+ object: subscription
25
+ start: 1414767891
26
+ status: trialing
27
+ customer: cus_00000000000000
28
+ cancel_at_period_end: false
29
+ current_period_start: 1414767891
30
+ current_period_end: 1417359891
31
+ ended_at:
32
+ trial_start: 1414739952
33
+ trial_end: 1414999152
34
+ canceled_at:
35
+ quantity: 1
36
+ application_fee_percent:
37
+ discount:
38
+ metadata: {}
@@ -0,0 +1,52 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.subscription.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: sub_00000000000000
11
+ plan:
12
+ interval: month
13
+ name: "-JYI_nRwd_ltcGRLnVys"
14
+ created: 1412299176
15
+ amount: 2000
16
+ currency: usd
17
+ id: "-JYI_00000000000000"
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_description:
24
+ object: subscription
25
+ start: 1414767883
26
+ status: active
27
+ customer: cus_00000000000000
28
+ cancel_at_period_end: false
29
+ current_period_start: 1414767883
30
+ current_period_end: 1417359883
31
+ ended_at:
32
+ trial_start:
33
+ trial_end:
34
+ canceled_at:
35
+ quantity: 1
36
+ application_fee_percent:
37
+ discount:
38
+ metadata: {}
39
+ previous_attributes:
40
+ plan:
41
+ interval: month
42
+ name: Old plan
43
+ created: 1414767883
44
+ amount: 2000
45
+ currency: usd
46
+ id: OLD_PLAN_ID
47
+ object: plan
48
+ livemode: false
49
+ interval_count: 1
50
+ trial_period_days:
51
+ metadata: {}
52
+ statement_description:
@@ -0,0 +1,35 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ object: customer
11
+ created: 1414767846
12
+ id: cus_00000000000000
13
+ livemode: false
14
+ description:
15
+ email:
16
+ delinquent: false
17
+ metadata: {}
18
+ subscriptions:
19
+ object: list
20
+ total_count: 0
21
+ has_more: false
22
+ url: "/v1/customers/cus_53oZVdcDDYmikJ/subscriptions"
23
+ data: []
24
+ discount:
25
+ account_balance: 0
26
+ currency: usd
27
+ cards:
28
+ object: list
29
+ total_count: 0
30
+ has_more: false
31
+ url: "/v1/customers/cus_53oZVdcDDYmikJ/cards"
32
+ data: []
33
+ default_card:
34
+ previous_attributes:
35
+ description: Old description
@@ -0,0 +1,69 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ date: 1414767895
11
+ id: in_00000000000000
12
+ period_start: 1414767895
13
+ period_end: 1414767895
14
+ lines:
15
+ data:
16
+ - id: sub_53oarLFb5Hber4
17
+ object: line_item
18
+ type: subscription
19
+ livemode: true
20
+ amount: 2000
21
+ currency: usd
22
+ proration: false
23
+ period:
24
+ start: 1417359895
25
+ end: 1420038295
26
+ subscription:
27
+ quantity: 1
28
+ plan:
29
+ interval: month
30
+ name: Gold Special
31
+ created: 1414767895
32
+ amount: 2000
33
+ currency: usd
34
+ id: gold
35
+ object: plan
36
+ livemode: false
37
+ interval_count: 1
38
+ trial_period_days:
39
+ metadata: {}
40
+ statement_description:
41
+ description:
42
+ metadata: {}
43
+ count: 1
44
+ object: list
45
+ url: "/v1/invoices/in_53oa9oqBV28wzB/lines"
46
+ subtotal: 0
47
+ total: 0
48
+ customer: cus_00000000000000
49
+ object: invoice
50
+ attempted: false
51
+ closed: false
52
+ forgiven: false
53
+ paid: true
54
+ livemode: false
55
+ attempt_count: 0
56
+ amount_due: 0
57
+ currency: usd
58
+ starting_balance: 0
59
+ ending_balance:
60
+ next_payment_attempt: 1414771495
61
+ webhooks_delivered_at:
62
+ charge:
63
+ discount:
64
+ application_fee:
65
+ subscription:
66
+ metadata: {}
67
+ statement_description:
68
+ description:
69
+ receipt_number:
@@ -0,0 +1,69 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.payment_failed
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ date: 1414767907
11
+ id: in_00000000000000
12
+ period_start: 1414767907
13
+ period_end: 1414767907
14
+ lines:
15
+ data:
16
+ - id: sub_53oaL7bNefgPSu
17
+ object: line_item
18
+ type: subscription
19
+ livemode: true
20
+ amount: 2000
21
+ currency: usd
22
+ proration: false
23
+ period:
24
+ start: 1417359907
25
+ end: 1420038307
26
+ subscription:
27
+ quantity: 1
28
+ plan:
29
+ interval: month
30
+ name: Gold Special
31
+ created: 1414767907
32
+ amount: 2000
33
+ currency: usd
34
+ id: gold
35
+ object: plan
36
+ livemode: false
37
+ interval_count: 1
38
+ trial_period_days:
39
+ metadata: {}
40
+ statement_description:
41
+ description:
42
+ metadata: {}
43
+ count: 1
44
+ object: list
45
+ url: "/v1/invoices/in_53oazF0kmdJNtg/lines"
46
+ subtotal: 0
47
+ total: 0
48
+ customer: cus_00000000000000
49
+ object: invoice
50
+ attempted: true
51
+ closed: false
52
+ forgiven: false
53
+ paid: false
54
+ livemode: false
55
+ attempt_count: 0
56
+ amount_due: 0
57
+ currency: usd
58
+ starting_balance: 0
59
+ ending_balance:
60
+ next_payment_attempt: 1414771507
61
+ webhooks_delivered_at:
62
+ charge:
63
+ discount:
64
+ application_fee:
65
+ subscription:
66
+ metadata: {}
67
+ statement_description:
68
+ description:
69
+ receipt_number:
@@ -0,0 +1,69 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.payment_succeeded
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ date: 1414767903
11
+ id: in_00000000000000
12
+ period_start: 1414767903
13
+ period_end: 1414767903
14
+ lines:
15
+ data:
16
+ - id: sub_53oa3l1ggoccxa
17
+ object: line_item
18
+ type: subscription
19
+ livemode: true
20
+ amount: 2000
21
+ currency: usd
22
+ proration: false
23
+ period:
24
+ start: 1417359903
25
+ end: 1420038303
26
+ subscription:
27
+ quantity: 1
28
+ plan:
29
+ interval: month
30
+ name: Gold Special
31
+ created: 1414767903
32
+ amount: 2000
33
+ currency: usd
34
+ id: gold
35
+ object: plan
36
+ livemode: false
37
+ interval_count: 1
38
+ trial_period_days:
39
+ metadata: {}
40
+ statement_description:
41
+ description:
42
+ metadata: {}
43
+ count: 1
44
+ object: list
45
+ url: "/v1/invoices/in_53oaSu7ScvoCnL/lines"
46
+ subtotal: 0
47
+ total: 0
48
+ customer: cus_00000000000000
49
+ object: invoice
50
+ attempted: true
51
+ closed: true
52
+ forgiven: false
53
+ paid: true
54
+ livemode: false
55
+ attempt_count: 0
56
+ amount_due: 0
57
+ currency: usd
58
+ starting_balance: 0
59
+ ending_balance:
60
+ next_payment_attempt: 1414771503
61
+ webhooks_delivered_at:
62
+ charge: _00000000000000
63
+ discount:
64
+ application_fee:
65
+ subscription:
66
+ metadata: {}
67
+ statement_description:
68
+ description:
69
+ receipt_number:
@@ -0,0 +1,71 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ date: 1414767898
11
+ id: in_00000000000000
12
+ period_start: 1414767898
13
+ period_end: 1414767898
14
+ lines:
15
+ data:
16
+ - id: sub_53oaSE3GS2gt5F
17
+ object: line_item
18
+ type: subscription
19
+ livemode: true
20
+ amount: 2000
21
+ currency: usd
22
+ proration: false
23
+ period:
24
+ start: 1417359899
25
+ end: 1420038299
26
+ subscription:
27
+ quantity: 1
28
+ plan:
29
+ interval: month
30
+ name: Gold Special
31
+ created: 1414767899
32
+ amount: 2000
33
+ currency: usd
34
+ id: gold
35
+ object: plan
36
+ livemode: false
37
+ interval_count: 1
38
+ trial_period_days:
39
+ metadata: {}
40
+ statement_description:
41
+ description:
42
+ metadata: {}
43
+ count: 1
44
+ object: list
45
+ url: "/v1/invoices/in_53oaY0b7NNOynT/lines"
46
+ subtotal: 0
47
+ total: 0
48
+ customer: cus_00000000000000
49
+ object: invoice
50
+ attempted: false
51
+ closed: false
52
+ forgiven: false
53
+ paid: false
54
+ livemode: false
55
+ attempt_count: 0
56
+ amount_due: 0
57
+ currency: usd
58
+ starting_balance: 0
59
+ ending_balance:
60
+ next_payment_attempt: 1414771498
61
+ webhooks_delivered_at:
62
+ charge:
63
+ discount:
64
+ application_fee:
65
+ subscription:
66
+ metadata: {}
67
+ statement_description:
68
+ description:
69
+ receipt_number:
70
+ previous_attributes:
71
+ lines: []