stripe_tester 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/lib/stripe_tester.rb +2 -2
  4. data/lib/stripe_tester/version.rb +1 -1
  5. data/spec/stripe_tester_spec.rb +11 -11
  6. data/stripe_webhooks/2015-10-16/account_external_account_created.yml +24 -0
  7. data/stripe_webhooks/2015-10-16/account_external_account_deleted.yml +24 -0
  8. data/stripe_webhooks/2015-10-16/account_external_account_updated.yml +25 -0
  9. data/stripe_webhooks/2015-10-16/account_updated.yml +90 -0
  10. data/stripe_webhooks/2015-10-16/balance_available.yml +19 -0
  11. data/stripe_webhooks/2015-10-16/bitcoin_receiver_created.yml +30 -0
  12. data/stripe_webhooks/2015-10-16/bitcoin_receiver_filled.yml +30 -0
  13. data/stripe_webhooks/2015-10-16/bitcoin_receiver_transaction_created.yml +18 -0
  14. data/stripe_webhooks/2015-10-16/bitcoin_receiver_updated.yml +31 -0
  15. data/stripe_webhooks/2015-10-16/charge_captured.yml +66 -0
  16. data/stripe_webhooks/2015-10-16/charge_dispute_closed.yml +56 -0
  17. data/stripe_webhooks/2015-10-16/charge_dispute_created.yml +56 -0
  18. data/stripe_webhooks/2015-10-16/charge_dispute_funds_reinstated.yml +56 -0
  19. data/stripe_webhooks/2015-10-16/charge_dispute_funds_withdrawn.yml +56 -0
  20. data/stripe_webhooks/2015-10-16/charge_dispute_updated.yml +85 -0
  21. data/stripe_webhooks/2015-10-16/charge_failed.yml +66 -0
  22. data/stripe_webhooks/2015-10-16/charge_refunded.yml +77 -0
  23. data/stripe_webhooks/2015-10-16/charge_succeeded.yml +66 -0
  24. data/stripe_webhooks/2015-10-16/charge_updated.yml +68 -0
  25. data/stripe_webhooks/2015-10-16/coupon_created.yml +25 -0
  26. data/stripe_webhooks/2015-10-16/coupon_deleted.yml +25 -0
  27. data/stripe_webhooks/2015-10-16/coupon_updated.yml +26 -0
  28. data/stripe_webhooks/2015-10-16/customer_bank_account_created.yml +24 -0
  29. data/stripe_webhooks/2015-10-16/customer_bank_account_deleted.yml +24 -0
  30. data/stripe_webhooks/2015-10-16/customer_bank_account_updated.yml +25 -0
  31. data/stripe_webhooks/2015-10-16/customer_card_created.yml +33 -0
  32. data/stripe_webhooks/2015-10-16/customer_card_deleted.yml +33 -0
  33. data/stripe_webhooks/2015-10-16/customer_card_updated.yml +35 -0
  34. data/stripe_webhooks/2015-10-16/customer_created.yml +36 -0
  35. data/stripe_webhooks/2015-10-16/customer_deleted.yml +36 -0
  36. data/stripe_webhooks/2015-10-16/customer_discount_created.yml +31 -0
  37. data/stripe_webhooks/2015-10-16/customer_discount_deleted.yml +31 -0
  38. data/stripe_webhooks/2015-10-16/customer_discount_updated.yml +47 -0
  39. data/stripe_webhooks/2015-10-16/customer_subscription_created.yml +41 -0
  40. data/stripe_webhooks/2015-10-16/customer_subscription_deleted.yml +41 -0
  41. data/stripe_webhooks/2015-10-16/customer_subscription_trial_will_end.yml +41 -0
  42. data/stripe_webhooks/2015-10-16/customer_subscription_updated.yml +55 -0
  43. data/stripe_webhooks/2015-10-16/customer_updated.yml +38 -0
  44. data/stripe_webhooks/2015-10-16/invoice_created.yml +74 -0
  45. data/stripe_webhooks/2015-10-16/invoice_payment_failed.yml +74 -0
  46. data/stripe_webhooks/2015-10-16/invoice_payment_succeeded.yml +74 -0
  47. data/stripe_webhooks/2015-10-16/invoice_updated.yml +76 -0
  48. data/stripe_webhooks/2015-10-16/invoiceitem_created.yml +29 -0
  49. data/stripe_webhooks/2015-10-16/invoiceitem_deleted.yml +29 -0
  50. data/stripe_webhooks/2015-10-16/invoiceitem_updated.yml +31 -0
  51. data/stripe_webhooks/2015-10-16/order_created.yml +45 -0
  52. data/stripe_webhooks/2015-10-16/order_payment_failed.yml +45 -0
  53. data/stripe_webhooks/2015-10-16/order_payment_succeeded.yml +45 -0
  54. data/stripe_webhooks/2015-10-16/order_updated.yml +46 -0
  55. data/stripe_webhooks/2015-10-16/plan_created.yml +23 -0
  56. data/stripe_webhooks/2015-10-16/plan_deleted.yml +23 -0
  57. data/stripe_webhooks/2015-10-16/plan_updated.yml +25 -0
  58. data/stripe_webhooks/2015-10-16/product_created.yml +34 -0
  59. data/stripe_webhooks/2015-10-16/product_updated.yml +35 -0
  60. data/stripe_webhooks/2015-10-16/recipient_created.yml +30 -0
  61. data/stripe_webhooks/2015-10-16/recipient_deleted.yml +30 -0
  62. data/stripe_webhooks/2015-10-16/recipient_updated.yml +31 -0
  63. data/stripe_webhooks/2015-10-16/transfer_canceled.yml +38 -0
  64. data/stripe_webhooks/2015-10-16/transfer_created.yml +38 -0
  65. data/stripe_webhooks/2015-10-16/transfer_failed.yml +38 -0
  66. data/stripe_webhooks/2015-10-16/transfer_paid.yml +38 -0
  67. data/stripe_webhooks/2015-10-16/transfer_updated.yml +40 -0
  68. data/supported_webhook_versions.md +134 -2
  69. metadata +64 -2
@@ -0,0 +1,66 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.succeeded
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: ch_00000000000000
13
+ object: charge
14
+ amount: 212
15
+ amount_refunded: 0
16
+ application_fee:
17
+ balance_transaction: txn_00000000000000
18
+ captured: true
19
+ created: 1419171865
20
+ currency: usd
21
+ customer: cus_00000000000000
22
+ description:
23
+ destination:
24
+ dispute:
25
+ failure_code:
26
+ failure_message:
27
+ fraud_details: {}
28
+ invoice: in_00000000000000
29
+ livemode: false
30
+ metadata: {}
31
+ paid: true
32
+ receipt_email:
33
+ receipt_number:
34
+ refunded: false
35
+ refunds:
36
+ object: list
37
+ data: []
38
+ has_more: false
39
+ total_count: 0
40
+ url: "/v1/charges/ch_5MuSnHsHswLrRL/refunds"
41
+ shipping:
42
+ source:
43
+ id: card_00000000000000
44
+ object: card
45
+ address_city:
46
+ address_country:
47
+ address_line1:
48
+ address_line1_check:
49
+ address_line2:
50
+ address_state:
51
+ address_zip:
52
+ address_zip_check:
53
+ brand: Visa
54
+ country: US
55
+ customer: cus_00000000000000
56
+ cvc_check: pass
57
+ dynamic_last4:
58
+ exp_month: 12
59
+ exp_year: 2017
60
+ funding: credit
61
+ last4: '4242'
62
+ metadata: {}
63
+ name: Shit man
64
+ tokenization_method:
65
+ statement_descriptor:
66
+ status: succeeded
@@ -0,0 +1,68 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: ch_00000000000000
13
+ object: charge
14
+ amount: 212
15
+ amount_refunded: 0
16
+ application_fee:
17
+ balance_transaction: txn_00000000000000
18
+ captured: true
19
+ created: 1419171865
20
+ currency: usd
21
+ customer: cus_00000000000000
22
+ description:
23
+ destination:
24
+ dispute:
25
+ failure_code:
26
+ failure_message:
27
+ fraud_details: {}
28
+ invoice: in_00000000000000
29
+ livemode: false
30
+ metadata: {}
31
+ paid: true
32
+ receipt_email:
33
+ receipt_number:
34
+ refunded: false
35
+ refunds:
36
+ object: list
37
+ data: []
38
+ has_more: false
39
+ total_count: 0
40
+ url: "/v1/charges/ch_5MuSnHsHswLrRL/refunds"
41
+ shipping:
42
+ source:
43
+ id: card_00000000000000
44
+ object: card
45
+ address_city:
46
+ address_country:
47
+ address_line1:
48
+ address_line1_check:
49
+ address_line2:
50
+ address_state:
51
+ address_zip:
52
+ address_zip_check:
53
+ brand: Visa
54
+ country: US
55
+ customer: cus_00000000000000
56
+ cvc_check: pass
57
+ dynamic_last4:
58
+ exp_month: 12
59
+ exp_year: 2017
60
+ funding: credit
61
+ last4: '4242'
62
+ metadata: {}
63
+ name: Shit man
64
+ tokenization_method:
65
+ statement_descriptor:
66
+ status: succeeded
67
+ previous_attributes:
68
+ description: Old description
@@ -0,0 +1,25 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: coupon.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: 25OFF_00000000000000
13
+ object: coupon
14
+ amount_off:
15
+ created: 1450089116
16
+ currency: usd
17
+ duration: repeating
18
+ duration_in_months: 3
19
+ livemode: false
20
+ max_redemptions:
21
+ metadata: {}
22
+ percent_off: 25
23
+ redeem_by:
24
+ times_redeemed: 0
25
+ valid: true
@@ -0,0 +1,25 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: coupon.deleted
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: 25OFF_00000000000000
13
+ object: coupon
14
+ amount_off:
15
+ created: 1450089119
16
+ currency: usd
17
+ duration: repeating
18
+ duration_in_months: 3
19
+ livemode: false
20
+ max_redemptions:
21
+ metadata: {}
22
+ percent_off: 25
23
+ redeem_by:
24
+ times_redeemed: 0
25
+ valid: true
@@ -0,0 +1,26 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: coupon.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: 25OFF_00000000000000
13
+ object: coupon
14
+ amount_off:
15
+ created: 1450089122
16
+ currency: usd
17
+ duration: repeating
18
+ duration_in_months: 3
19
+ livemode: false
20
+ max_redemptions:
21
+ metadata: {}
22
+ percent_off: 25
23
+ redeem_by:
24
+ times_redeemed: 0
25
+ valid: true
26
+ previous_attributes:
@@ -0,0 +1,24 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.bank_account.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: ba_00000000000000
13
+ object: bank_account
14
+ account: acct_00000000000000
15
+ bank_name: STRIPE TEST BANK
16
+ country: US
17
+ currency: usd
18
+ default_for_currency: false
19
+ fingerprint: BoBS64BqvgqBDUKQ
20
+ last4: '6789'
21
+ metadata: {}
22
+ name:
23
+ routing_number: '110000000'
24
+ status: new
@@ -0,0 +1,24 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.bank_account.deleted
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: ba_00000000000000
13
+ object: bank_account
14
+ account: acct_00000000000000
15
+ bank_name: STRIPE TEST BANK
16
+ country: US
17
+ currency: usd
18
+ default_for_currency: false
19
+ fingerprint: BoBS64BqvgqBDUKQ
20
+ last4: '6789'
21
+ metadata: {}
22
+ name:
23
+ routing_number: '110000000'
24
+ status: new
@@ -0,0 +1,25 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.bank_account.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: ba_00000000000000
13
+ object: bank_account
14
+ account: acct_00000000000000
15
+ bank_name: STRIPE TEST BANK
16
+ country: US
17
+ currency: usd
18
+ default_for_currency: false
19
+ fingerprint: BoBS64BqvgqBDUKQ
20
+ last4: '6789'
21
+ metadata: {}
22
+ name:
23
+ routing_number: '110000000'
24
+ status: new
25
+ previous_attributes:
@@ -0,0 +1,33 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.card.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: card_00000000000000
13
+ object: card
14
+ address_city:
15
+ address_country:
16
+ address_line1:
17
+ address_line1_check:
18
+ address_line2:
19
+ address_state:
20
+ address_zip:
21
+ address_zip_check:
22
+ brand: Visa
23
+ country: US
24
+ customer:
25
+ cvc_check:
26
+ dynamic_last4:
27
+ exp_month: 8
28
+ exp_year: 2016
29
+ funding: credit
30
+ last4: '4242'
31
+ metadata: {}
32
+ name:
33
+ tokenization_method:
@@ -0,0 +1,33 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.card.deleted
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: card_00000000000000
13
+ object: card
14
+ address_city:
15
+ address_country:
16
+ address_line1:
17
+ address_line1_check:
18
+ address_line2:
19
+ address_state:
20
+ address_zip:
21
+ address_zip_check:
22
+ brand: Visa
23
+ country: US
24
+ customer:
25
+ cvc_check:
26
+ dynamic_last4:
27
+ exp_month: 8
28
+ exp_year: 2016
29
+ funding: credit
30
+ last4: '4242'
31
+ metadata: {}
32
+ name:
33
+ tokenization_method:
@@ -0,0 +1,35 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.card.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: card_00000000000000
13
+ object: card
14
+ address_city:
15
+ address_country:
16
+ address_line1:
17
+ address_line1_check:
18
+ address_line2:
19
+ address_state:
20
+ address_zip:
21
+ address_zip_check:
22
+ brand: Visa
23
+ country: US
24
+ customer:
25
+ cvc_check:
26
+ dynamic_last4:
27
+ exp_month: 8
28
+ exp_year: 2016
29
+ funding: credit
30
+ last4: '4242'
31
+ metadata: {}
32
+ name:
33
+ tokenization_method:
34
+ previous_attributes:
35
+ exp_year: '2013'
@@ -0,0 +1,36 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: cus_00000000000000
13
+ object: customer
14
+ account_balance: 0
15
+ created: 1450089125
16
+ currency: usd
17
+ default_source:
18
+ delinquent: false
19
+ description:
20
+ discount:
21
+ email:
22
+ livemode: false
23
+ metadata: {}
24
+ shipping:
25
+ sources:
26
+ object: list
27
+ data: []
28
+ has_more: false
29
+ total_count: 0
30
+ url: "/v1/customers/cus_7WxXbTKgSeqBYw/sources"
31
+ subscriptions:
32
+ object: list
33
+ data: []
34
+ has_more: false
35
+ total_count: 0
36
+ url: "/v1/customers/cus_7WxXbTKgSeqBYw/subscriptions"
@@ -0,0 +1,36 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.deleted
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: cus_00000000000000
13
+ object: customer
14
+ account_balance: 0
15
+ created: 1450089132
16
+ currency: usd
17
+ default_source:
18
+ delinquent: false
19
+ description:
20
+ discount:
21
+ email:
22
+ livemode: false
23
+ metadata: {}
24
+ shipping:
25
+ sources:
26
+ object: list
27
+ data: []
28
+ has_more: false
29
+ total_count: 0
30
+ url: "/v1/customers/cus_7WxXQiImde971X/sources"
31
+ subscriptions:
32
+ object: list
33
+ data: []
34
+ has_more: false
35
+ total_count: 0
36
+ url: "/v1/customers/cus_7WxXQiImde971X/subscriptions"