stripe_tester 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -149
  3. data/lib/stripe_tester/version.rb +1 -1
  4. data/stripe_webhooks/2015-04-07/account_updated.yml +86 -0
  5. data/stripe_webhooks/2015-04-07/balance_available.yml +19 -0
  6. data/stripe_webhooks/2015-04-07/charge_captured.yml +65 -0
  7. data/stripe_webhooks/2015-04-07/charge_dispute_closed.yml +28 -0
  8. data/stripe_webhooks/2015-04-07/charge_dispute_created.yml +55 -0
  9. data/stripe_webhooks/2015-04-07/charge_dispute_updated.yml +30 -0
  10. data/stripe_webhooks/2015-04-07/charge_failed.yml +65 -0
  11. data/stripe_webhooks/2015-04-07/charge_refunded.yml +76 -0
  12. data/stripe_webhooks/2015-04-07/charge_succeeded.yml +65 -0
  13. data/stripe_webhooks/2015-04-07/charge_updated.yml +67 -0
  14. data/stripe_webhooks/2015-04-07/coupon_created.yml +25 -0
  15. data/stripe_webhooks/2015-04-07/coupon_deleted.yml +25 -0
  16. data/stripe_webhooks/2015-04-07/customer_card_created.yml +32 -0
  17. data/stripe_webhooks/2015-04-07/customer_card_deleted.yml +32 -0
  18. data/stripe_webhooks/2015-04-07/customer_card_updated.yml +34 -0
  19. data/stripe_webhooks/2015-04-07/customer_created.yml +35 -0
  20. data/stripe_webhooks/2015-04-07/customer_deleted.yml +35 -0
  21. data/stripe_webhooks/2015-04-07/customer_discount_created.yml +31 -0
  22. data/stripe_webhooks/2015-04-07/customer_discount_deleted.yml +31 -0
  23. data/stripe_webhooks/2015-04-07/customer_discount_updated.yml +47 -0
  24. data/stripe_webhooks/2015-04-07/customer_subscription_created.yml +41 -0
  25. data/stripe_webhooks/2015-04-07/customer_subscription_deleted.yml +41 -0
  26. data/stripe_webhooks/2015-04-07/customer_subscription_trial_will_end.yml +41 -0
  27. data/stripe_webhooks/2015-04-07/customer_subscription_updated.yml +55 -0
  28. data/stripe_webhooks/2015-04-07/customer_updated.yml +37 -0
  29. data/stripe_webhooks/2015-04-07/invoice_created.yml +74 -0
  30. data/stripe_webhooks/2015-04-07/invoice_payment_failed.yml +74 -0
  31. data/stripe_webhooks/2015-04-07/invoice_payment_succeeded.yml +74 -0
  32. data/stripe_webhooks/2015-04-07/invoice_updated.yml +76 -0
  33. data/stripe_webhooks/2015-04-07/invoiceitem_created.yml +29 -0
  34. data/stripe_webhooks/2015-04-07/invoiceitem_deleted.yml +29 -0
  35. data/stripe_webhooks/2015-04-07/invoiceitem_updated.yml +31 -0
  36. data/stripe_webhooks/2015-04-07/plan_created.yml +23 -0
  37. data/stripe_webhooks/2015-04-07/plan_deleted.yml +23 -0
  38. data/stripe_webhooks/2015-04-07/plan_updated.yml +25 -0
  39. data/stripe_webhooks/2015-04-07/transfer_created.yml +38 -0
  40. data/stripe_webhooks/2015-04-07/transfer_failed.yml +38 -0
  41. data/stripe_webhooks/2015-04-07/transfer_paid.yml +38 -0
  42. data/stripe_webhooks/2015-04-07/transfer_updated.yml +40 -0
  43. data/supported_webhook_versions.md +200 -0
  44. metadata +42 -2
@@ -0,0 +1,74 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.payment_failed
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ date: 1419171865
13
+ id: in_00000000000000
14
+ period_start: 1419171865
15
+ period_end: 1419171865
16
+ lines:
17
+ data:
18
+ - id: sub_6Gmdh2ufGvIWXb
19
+ object: line_item
20
+ type: subscription
21
+ livemode: true
22
+ amount: 2000
23
+ currency: usd
24
+ proration: false
25
+ period:
26
+ start: 1434737037
27
+ end: 1437329037
28
+ subscription:
29
+ quantity: 1
30
+ plan:
31
+ interval: month
32
+ name: ddd
33
+ created: 1419171857
34
+ amount: 212
35
+ currency: usd
36
+ id: '1233'
37
+ object: plan
38
+ livemode: false
39
+ interval_count: 1
40
+ trial_period_days:
41
+ metadata: {}
42
+ statement_descriptor:
43
+ description:
44
+ discountable: true
45
+ metadata: {}
46
+ total_count: 1
47
+ object: list
48
+ url: "/v1/invoices/in_5MuSBtaLR6r61c/lines"
49
+ subtotal: 212
50
+ total: 212
51
+ customer: cus_00000000000000
52
+ object: invoice
53
+ attempted: true
54
+ closed: false
55
+ forgiven: false
56
+ paid: false
57
+ livemode: false
58
+ attempt_count: 1
59
+ amount_due: 212
60
+ currency: usd
61
+ starting_balance: 0
62
+ ending_balance: 0
63
+ next_payment_attempt:
64
+ webhooks_delivered_at: 1419171872
65
+ charge: ch_00000000000000
66
+ discount:
67
+ application_fee:
68
+ subscription: sub_00000000000000
69
+ tax_percent:
70
+ tax:
71
+ metadata: {}
72
+ statement_descriptor:
73
+ description:
74
+ receipt_number:
@@ -0,0 +1,74 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.payment_succeeded
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ date: 1419171865
13
+ id: in_00000000000000
14
+ period_start: 1419171865
15
+ period_end: 1419171865
16
+ lines:
17
+ data:
18
+ - id: sub_6GmdIA0kSKbnfA
19
+ object: line_item
20
+ type: subscription
21
+ livemode: true
22
+ amount: 2000
23
+ currency: usd
24
+ proration: false
25
+ period:
26
+ start: 1434737040
27
+ end: 1437329040
28
+ subscription:
29
+ quantity: 1
30
+ plan:
31
+ interval: month
32
+ name: ddd
33
+ created: 1419171857
34
+ amount: 212
35
+ currency: usd
36
+ id: '1233'
37
+ object: plan
38
+ livemode: false
39
+ interval_count: 1
40
+ trial_period_days:
41
+ metadata: {}
42
+ statement_descriptor:
43
+ description:
44
+ discountable: true
45
+ metadata: {}
46
+ total_count: 1
47
+ object: list
48
+ url: "/v1/invoices/in_5MuSBtaLR6r61c/lines"
49
+ subtotal: 212
50
+ total: 212
51
+ customer: cus_00000000000000
52
+ object: invoice
53
+ attempted: true
54
+ closed: true
55
+ forgiven: false
56
+ paid: true
57
+ livemode: false
58
+ attempt_count: 1
59
+ amount_due: 212
60
+ currency: usd
61
+ starting_balance: 0
62
+ ending_balance: 0
63
+ next_payment_attempt:
64
+ webhooks_delivered_at: 1419171872
65
+ charge: _00000000000000
66
+ discount:
67
+ application_fee:
68
+ subscription: sub_00000000000000
69
+ tax_percent:
70
+ tax:
71
+ metadata: {}
72
+ statement_descriptor:
73
+ description:
74
+ receipt_number:
@@ -0,0 +1,76 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoice.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ date: 1419171865
13
+ id: in_00000000000000
14
+ period_start: 1419171865
15
+ period_end: 1419171865
16
+ lines:
17
+ data:
18
+ - id: sub_6GmdVCUlhMNhrs
19
+ object: line_item
20
+ type: subscription
21
+ livemode: true
22
+ amount: 2000
23
+ currency: usd
24
+ proration: false
25
+ period:
26
+ start: 1434737048
27
+ end: 1437329048
28
+ subscription:
29
+ quantity: 1
30
+ plan:
31
+ interval: month
32
+ name: ddd
33
+ created: 1419171857
34
+ amount: 212
35
+ currency: usd
36
+ id: '1233'
37
+ object: plan
38
+ livemode: false
39
+ interval_count: 1
40
+ trial_period_days:
41
+ metadata: {}
42
+ statement_descriptor:
43
+ description:
44
+ discountable: true
45
+ metadata: {}
46
+ total_count: 1
47
+ object: list
48
+ url: "/v1/invoices/in_5MuSBtaLR6r61c/lines"
49
+ subtotal: 212
50
+ total: 212
51
+ customer: cus_00000000000000
52
+ object: invoice
53
+ attempted: true
54
+ closed: true
55
+ forgiven: false
56
+ paid: true
57
+ livemode: false
58
+ attempt_count: 1
59
+ amount_due: 212
60
+ currency: usd
61
+ starting_balance: 0
62
+ ending_balance: 0
63
+ next_payment_attempt:
64
+ webhooks_delivered_at: 1419171872
65
+ charge: ch_00000000000000
66
+ discount:
67
+ application_fee:
68
+ subscription: sub_00000000000000
69
+ tax_percent:
70
+ tax:
71
+ metadata: {}
72
+ statement_descriptor:
73
+ description:
74
+ receipt_number:
75
+ previous_attributes:
76
+ lines: []
@@ -0,0 +1,29 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ object: invoiceitem
13
+ id: ii_00000000000000
14
+ date: 1432058652
15
+ amount: 1000
16
+ livemode: false
17
+ proration: false
18
+ currency: usd
19
+ customer: cus_00000000000000
20
+ discountable: true
21
+ description: My First Invoice Item (created for API docs)
22
+ metadata: {}
23
+ invoice:
24
+ subscription:
25
+ quantity:
26
+ plan:
27
+ period:
28
+ start: 1432058652
29
+ end: 1432058652
@@ -0,0 +1,29 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.deleted
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ object: invoiceitem
13
+ id: ii_00000000000000
14
+ date: 1432058655
15
+ amount: 1000
16
+ livemode: false
17
+ proration: false
18
+ currency: usd
19
+ customer: cus_00000000000000
20
+ discountable: true
21
+ description: My First Invoice Item (created for API docs)
22
+ metadata: {}
23
+ invoice:
24
+ subscription:
25
+ quantity:
26
+ plan:
27
+ period:
28
+ start: 1432058655
29
+ end: 1432058655
@@ -0,0 +1,31 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: invoiceitem.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ object: invoiceitem
13
+ id: ii_00000000000000
14
+ date: 1432058658
15
+ amount: 1000
16
+ livemode: false
17
+ proration: false
18
+ currency: usd
19
+ customer: cus_00000000000000
20
+ discountable: true
21
+ description: My First Invoice Item (created for API docs)
22
+ metadata: {}
23
+ invoice:
24
+ subscription:
25
+ quantity:
26
+ plan:
27
+ period:
28
+ start: 1432058658
29
+ end: 1432058658
30
+ previous_attributes:
31
+ amount: 2121
@@ -0,0 +1,23 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: plan.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ interval: month
13
+ name: ddd
14
+ created: 1419171857
15
+ amount: 212
16
+ currency: usd
17
+ id: '1233_00000000000000'
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_descriptor:
@@ -0,0 +1,23 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: plan.deleted
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ interval: month
13
+ name: ddd
14
+ created: 1419171857
15
+ amount: 212
16
+ currency: usd
17
+ id: '1233_00000000000000'
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_descriptor:
@@ -0,0 +1,25 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: plan.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ interval: month
13
+ name: ddd
14
+ created: 1419171857
15
+ amount: 212
16
+ currency: usd
17
+ id: '1233_00000000000000'
18
+ object: plan
19
+ livemode: false
20
+ interval_count: 1
21
+ trial_period_days:
22
+ metadata: {}
23
+ statement_descriptor:
24
+ previous_attributes:
25
+ name: Old name
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: transfer.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ id: tr_00000000000000
13
+ object: transfer
14
+ created: 1419558754
15
+ date: 1419724800
16
+ livemode: false
17
+ amount: 176
18
+ currency: usd
19
+ reversed: false
20
+ status: pending
21
+ type: bank_account
22
+ reversals:
23
+ object: list
24
+ total_count: 0
25
+ has_more: false
26
+ url: "/v1/transfers/tr_5OaSQEul366zPx/reversals"
27
+ data: []
28
+ balance_transaction: txn_00000000000000
29
+ destination:
30
+ description: STRIPE TRANSFER
31
+ failure_message:
32
+ failure_code:
33
+ amount_reversed: 0
34
+ metadata: {}
35
+ statement_descriptor:
36
+ recipient:
37
+ source_transaction:
38
+ application_fee:
@@ -0,0 +1,38 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: transfer.failed
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ id: tr_00000000000000
13
+ object: transfer
14
+ created: 1419558754
15
+ date: 1419724800
16
+ livemode: false
17
+ amount: 176
18
+ currency: usd
19
+ reversed: false
20
+ status: failed
21
+ type: bank_account
22
+ reversals:
23
+ object: list
24
+ total_count: 0
25
+ has_more: false
26
+ url: "/v1/transfers/tr_5OaSQEul366zPx/reversals"
27
+ data: []
28
+ balance_transaction: txn_00000000000000
29
+ destination:
30
+ description: STRIPE TRANSFER
31
+ failure_message:
32
+ failure_code:
33
+ amount_reversed: 0
34
+ metadata: {}
35
+ statement_descriptor:
36
+ recipient:
37
+ source_transaction:
38
+ application_fee: