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,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-10-16'
10
+ data:
11
+ object:
12
+ id: in_00000000000000
13
+ object: invoice
14
+ amount_due: 212
15
+ application_fee:
16
+ attempt_count: 1
17
+ attempted: true
18
+ charge: _00000000000000
19
+ closed: true
20
+ currency: usd
21
+ customer: cus_00000000000000
22
+ date: 1419171865
23
+ description:
24
+ discount:
25
+ ending_balance: 0
26
+ forgiven: false
27
+ lines:
28
+ data:
29
+ - id: sub_7WxYdJFwhYUhuz
30
+ object: line_item
31
+ amount: 2000
32
+ currency: usd
33
+ description:
34
+ discountable: true
35
+ livemode: true
36
+ metadata: {}
37
+ period:
38
+ start: 1452767594
39
+ end: 1455445994
40
+ plan:
41
+ id: '1233'
42
+ object: plan
43
+ amount: 212
44
+ created: 1419171857
45
+ currency: usd
46
+ interval: month
47
+ interval_count: 1
48
+ livemode: false
49
+ metadata: {}
50
+ name: ddd
51
+ statement_descriptor:
52
+ trial_period_days:
53
+ proration: false
54
+ quantity: 1
55
+ subscription:
56
+ type: subscription
57
+ total_count: 1
58
+ object: list
59
+ url: "/v1/invoices/in_5MuSBtaLR6r61c/lines"
60
+ livemode: false
61
+ metadata: {}
62
+ next_payment_attempt:
63
+ paid: true
64
+ period_end: 1419171865
65
+ period_start: 1419171865
66
+ receipt_number:
67
+ starting_balance: 0
68
+ statement_descriptor:
69
+ subscription: sub_00000000000000
70
+ subtotal: 212
71
+ tax:
72
+ tax_percent:
73
+ total: 212
74
+ webhooks_delivered_at: 1419171872
@@ -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-10-16'
10
+ data:
11
+ object:
12
+ id: in_00000000000000
13
+ object: invoice
14
+ amount_due: 212
15
+ application_fee:
16
+ attempt_count: 1
17
+ attempted: true
18
+ charge: ch_00000000000000
19
+ closed: true
20
+ currency: usd
21
+ customer: cus_00000000000000
22
+ date: 1419171865
23
+ description:
24
+ discount:
25
+ ending_balance: 0
26
+ forgiven: false
27
+ lines:
28
+ data:
29
+ - id: sub_7WxYL86eFTLHZs
30
+ object: line_item
31
+ amount: 2000
32
+ currency: usd
33
+ description:
34
+ discountable: true
35
+ livemode: true
36
+ metadata: {}
37
+ period:
38
+ start: 1452767597
39
+ end: 1455445997
40
+ plan:
41
+ id: '1233'
42
+ object: plan
43
+ amount: 212
44
+ created: 1419171857
45
+ currency: usd
46
+ interval: month
47
+ interval_count: 1
48
+ livemode: false
49
+ metadata: {}
50
+ name: ddd
51
+ statement_descriptor:
52
+ trial_period_days:
53
+ proration: false
54
+ quantity: 1
55
+ subscription:
56
+ type: subscription
57
+ total_count: 1
58
+ object: list
59
+ url: "/v1/invoices/in_5MuSBtaLR6r61c/lines"
60
+ livemode: false
61
+ metadata: {}
62
+ next_payment_attempt:
63
+ paid: true
64
+ period_end: 1419171865
65
+ period_start: 1419171865
66
+ receipt_number:
67
+ starting_balance: 0
68
+ statement_descriptor:
69
+ subscription: sub_00000000000000
70
+ subtotal: 212
71
+ tax:
72
+ tax_percent:
73
+ total: 212
74
+ webhooks_delivered_at: 1419171872
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-10-16'
10
+ data:
11
+ object:
12
+ id: ii_00000000000000
13
+ object: invoiceitem
14
+ amount: 1000
15
+ currency: usd
16
+ customer: cus_00000000000000
17
+ date: 1450089200
18
+ description: My First Invoice Item (created for API docs)
19
+ discountable: true
20
+ invoice:
21
+ livemode: false
22
+ metadata: {}
23
+ period:
24
+ start: 1450089200
25
+ end: 1450089200
26
+ plan:
27
+ proration: false
28
+ quantity:
29
+ subscription:
@@ -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-10-16'
10
+ data:
11
+ object:
12
+ id: ii_00000000000000
13
+ object: invoiceitem
14
+ amount: 1000
15
+ currency: usd
16
+ customer: cus_00000000000000
17
+ date: 1450089203
18
+ description: My First Invoice Item (created for API docs)
19
+ discountable: true
20
+ invoice:
21
+ livemode: false
22
+ metadata: {}
23
+ period:
24
+ start: 1450089203
25
+ end: 1450089203
26
+ plan:
27
+ proration: false
28
+ quantity:
29
+ subscription:
@@ -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-10-16'
10
+ data:
11
+ object:
12
+ id: ii_00000000000000
13
+ object: invoiceitem
14
+ amount: 1000
15
+ currency: usd
16
+ customer: cus_00000000000000
17
+ date: 1450089207
18
+ description: My First Invoice Item (created for API docs)
19
+ discountable: true
20
+ invoice:
21
+ livemode: false
22
+ metadata: {}
23
+ period:
24
+ start: 1450089207
25
+ end: 1450089207
26
+ plan:
27
+ proration: false
28
+ quantity:
29
+ subscription:
30
+ previous_attributes:
31
+ amount: 2121
@@ -0,0 +1,45 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: order.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: or_00000000000000
13
+ object: order
14
+ amount: 1500
15
+ application:
16
+ application_fee:
17
+ charge:
18
+ created: 1450089210
19
+ currency: usd
20
+ customer:
21
+ email:
22
+ items:
23
+ - object: order_item
24
+ amount: 1500
25
+ currency: usd
26
+ description: T-shirt
27
+ parent: sk_76hLngh4vvAVrA
28
+ quantity:
29
+ type: sku
30
+ livemode: false
31
+ metadata: {}
32
+ selected_shipping_method:
33
+ shipping:
34
+ address:
35
+ city: Anytown
36
+ country: US
37
+ line1: 1234 Main street
38
+ line2:
39
+ postal_code: '123456'
40
+ state:
41
+ name: Jenny Rosen
42
+ phone:
43
+ shipping_methods:
44
+ status: created
45
+ updated: 1450089210
@@ -0,0 +1,45 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: order.payment_failed
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: or_00000000000000
13
+ object: order
14
+ amount: 1500
15
+ application:
16
+ application_fee:
17
+ charge:
18
+ created: 1450089214
19
+ currency: usd
20
+ customer:
21
+ email:
22
+ items:
23
+ - object: order_item
24
+ amount: 1500
25
+ currency: usd
26
+ description: T-shirt
27
+ parent: sk_76hLngh4vvAVrA
28
+ quantity:
29
+ type: sku
30
+ livemode: false
31
+ metadata: {}
32
+ selected_shipping_method:
33
+ shipping:
34
+ address:
35
+ city: Anytown
36
+ country: US
37
+ line1: 1234 Main street
38
+ line2:
39
+ postal_code: '123456'
40
+ state:
41
+ name: Jenny Rosen
42
+ phone:
43
+ shipping_methods:
44
+ status: created
45
+ updated: 1450089214
@@ -0,0 +1,45 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: order.payment_succeeded
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: or_00000000000000
13
+ object: order
14
+ amount: 1500
15
+ application:
16
+ application_fee:
17
+ charge:
18
+ created: 1450089218
19
+ currency: usd
20
+ customer:
21
+ email:
22
+ items:
23
+ - object: order_item
24
+ amount: 1500
25
+ currency: usd
26
+ description: T-shirt
27
+ parent: sk_76hLngh4vvAVrA
28
+ quantity:
29
+ type: sku
30
+ livemode: false
31
+ metadata: {}
32
+ selected_shipping_method:
33
+ shipping:
34
+ address:
35
+ city: Anytown
36
+ country: US
37
+ line1: 1234 Main street
38
+ line2:
39
+ postal_code: '123456'
40
+ state:
41
+ name: Jenny Rosen
42
+ phone:
43
+ shipping_methods:
44
+ status: created
45
+ updated: 1450089218
@@ -0,0 +1,46 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: order.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: or_00000000000000
13
+ object: order
14
+ amount: 1500
15
+ application:
16
+ application_fee:
17
+ charge:
18
+ created: 1450089227
19
+ currency: usd
20
+ customer:
21
+ email:
22
+ items:
23
+ - object: order_item
24
+ amount: 1500
25
+ currency: usd
26
+ description: T-shirt
27
+ parent: sk_76hLngh4vvAVrA
28
+ quantity:
29
+ type: sku
30
+ livemode: false
31
+ metadata: {}
32
+ selected_shipping_method:
33
+ shipping:
34
+ address:
35
+ city: Anytown
36
+ country: US
37
+ line1: 1234 Main street
38
+ line2:
39
+ postal_code: '123456'
40
+ state:
41
+ name: Jenny Rosen
42
+ phone:
43
+ shipping_methods:
44
+ status: created
45
+ updated: 1450089227
46
+ previous_attributes:
@@ -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-10-16'
10
+ data:
11
+ object:
12
+ id: '1233_00000000000000'
13
+ object: plan
14
+ amount: 212
15
+ created: 1419171857
16
+ currency: usd
17
+ interval: month
18
+ interval_count: 1
19
+ livemode: false
20
+ metadata: {}
21
+ name: ddd
22
+ statement_descriptor:
23
+ trial_period_days: