stripe_tester 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/stripe_tester.rb +1 -1
  4. data/lib/stripe_tester/version.rb +1 -1
  5. data/spec/stripe_tester_spec.rb +1 -1
  6. data/stripe_webhooks/2015-10-01/account_external_account_created.yml +23 -0
  7. data/stripe_webhooks/2015-10-01/account_external_account_deleted.yml +23 -0
  8. data/stripe_webhooks/2015-10-01/account_external_account_updated.yml +24 -0
  9. data/stripe_webhooks/2015-10-01/account_updated.yml +89 -0
  10. data/stripe_webhooks/2015-10-01/balance_available.yml +19 -0
  11. data/stripe_webhooks/2015-10-01/bitcoin_receiver_created.yml +30 -0
  12. data/stripe_webhooks/2015-10-01/bitcoin_receiver_filled.yml +30 -0
  13. data/stripe_webhooks/2015-10-01/bitcoin_receiver_transaction_created.yml +18 -0
  14. data/stripe_webhooks/2015-10-01/bitcoin_receiver_updated.yml +31 -0
  15. data/stripe_webhooks/2015-10-01/charge_captured.yml +66 -0
  16. data/stripe_webhooks/2015-10-01/charge_dispute_closed.yml +56 -0
  17. data/stripe_webhooks/2015-10-01/charge_dispute_created.yml +56 -0
  18. data/stripe_webhooks/2015-10-01/charge_dispute_funds_reinstated.yml +56 -0
  19. data/stripe_webhooks/2015-10-01/charge_dispute_funds_withdrawn.yml +56 -0
  20. data/stripe_webhooks/2015-10-01/charge_dispute_updated.yml +85 -0
  21. data/stripe_webhooks/2015-10-01/charge_failed.yml +66 -0
  22. data/stripe_webhooks/2015-10-01/charge_refunded.yml +77 -0
  23. data/stripe_webhooks/2015-10-01/charge_succeeded.yml +66 -0
  24. data/stripe_webhooks/2015-10-01/charge_updated.yml +68 -0
  25. data/stripe_webhooks/2015-10-01/coupon_created.yml +25 -0
  26. data/stripe_webhooks/2015-10-01/coupon_deleted.yml +25 -0
  27. data/stripe_webhooks/2015-10-01/coupon_updated.yml +26 -0
  28. data/stripe_webhooks/2015-10-01/customer_bank_account_created.yml +23 -0
  29. data/stripe_webhooks/2015-10-01/customer_bank_account_deleted.yml +23 -0
  30. data/stripe_webhooks/2015-10-01/customer_bank_account_updated.yml +24 -0
  31. data/stripe_webhooks/2015-10-01/customer_card_created.yml +33 -0
  32. data/stripe_webhooks/2015-10-01/customer_card_deleted.yml +33 -0
  33. data/stripe_webhooks/2015-10-01/customer_card_updated.yml +35 -0
  34. data/stripe_webhooks/2015-10-01/customer_created.yml +36 -0
  35. data/stripe_webhooks/2015-10-01/customer_deleted.yml +36 -0
  36. data/stripe_webhooks/2015-10-01/customer_discount_created.yml +31 -0
  37. data/stripe_webhooks/2015-10-01/customer_discount_deleted.yml +31 -0
  38. data/stripe_webhooks/2015-10-01/customer_discount_updated.yml +47 -0
  39. data/stripe_webhooks/2015-10-01/customer_subscription_created.yml +41 -0
  40. data/stripe_webhooks/2015-10-01/customer_subscription_deleted.yml +41 -0
  41. data/stripe_webhooks/2015-10-01/customer_subscription_trial_will_end.yml +41 -0
  42. data/stripe_webhooks/2015-10-01/customer_subscription_updated.yml +55 -0
  43. data/stripe_webhooks/2015-10-01/customer_updated.yml +38 -0
  44. data/stripe_webhooks/2015-10-01/invoice_created.yml +74 -0
  45. data/stripe_webhooks/2015-10-01/invoice_payment_failed.yml +74 -0
  46. data/stripe_webhooks/2015-10-01/invoice_payment_succeeded.yml +74 -0
  47. data/stripe_webhooks/2015-10-01/invoice_updated.yml +76 -0
  48. data/stripe_webhooks/2015-10-01/invoiceitem_created.yml +29 -0
  49. data/stripe_webhooks/2015-10-01/invoiceitem_deleted.yml +29 -0
  50. data/stripe_webhooks/2015-10-01/invoiceitem_updated.yml +31 -0
  51. data/stripe_webhooks/2015-10-01/order_created.yml +44 -0
  52. data/stripe_webhooks/2015-10-01/order_payment_failed.yml +44 -0
  53. data/stripe_webhooks/2015-10-01/order_payment_succeeded.yml +44 -0
  54. data/stripe_webhooks/2015-10-01/order_updated.yml +45 -0
  55. data/stripe_webhooks/2015-10-01/plan_created.yml +23 -0
  56. data/stripe_webhooks/2015-10-01/plan_deleted.yml +23 -0
  57. data/stripe_webhooks/2015-10-01/plan_updated.yml +25 -0
  58. data/stripe_webhooks/2015-10-01/product_created.yml +34 -0
  59. data/stripe_webhooks/2015-10-01/product_updated.yml +35 -0
  60. data/stripe_webhooks/2015-10-01/recipient_created.yml +30 -0
  61. data/stripe_webhooks/2015-10-01/recipient_deleted.yml +30 -0
  62. data/stripe_webhooks/2015-10-01/recipient_updated.yml +31 -0
  63. data/stripe_webhooks/2015-10-01/transfer_canceled.yml +38 -0
  64. data/stripe_webhooks/2015-10-01/transfer_created.yml +38 -0
  65. data/stripe_webhooks/2015-10-01/transfer_failed.yml +38 -0
  66. data/stripe_webhooks/2015-10-01/transfer_paid.yml +38 -0
  67. data/stripe_webhooks/2015-10-01/transfer_updated.yml +40 -0
  68. metadata +64 -2
@@ -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-01'
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_76hLaqvsWFgnfR
19
+ object: line_item
20
+ type: subscription
21
+ livemode: true
22
+ amount: 2000
23
+ currency: usd
24
+ proration: false
25
+ period:
26
+ start: 1446710604
27
+ end: 1449302604
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-10-01'
10
+ data:
11
+ object:
12
+ object: invoiceitem
13
+ id: ii_00000000000000
14
+ date: 1444032207
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: 1444032207
29
+ end: 1444032207
@@ -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-01'
10
+ data:
11
+ object:
12
+ object: invoiceitem
13
+ id: ii_00000000000000
14
+ date: 1444032210
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: 1444032210
29
+ end: 1444032210
@@ -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-01'
10
+ data:
11
+ object:
12
+ object: invoiceitem
13
+ id: ii_00000000000000
14
+ date: 1444032213
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: 1444032213
29
+ end: 1444032213
30
+ previous_attributes:
31
+ amount: 2121
@@ -0,0 +1,44 @@
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-01'
10
+ data:
11
+ object:
12
+ id: or_00000000000000
13
+ created: 1444032216
14
+ updated: 1444032216
15
+ object: order
16
+ livemode: false
17
+ status: created
18
+ metadata: {}
19
+ customer:
20
+ shipping:
21
+ name: Jenny Rosen
22
+ address:
23
+ line1: 1234 Main street
24
+ line2:
25
+ city: Anytown
26
+ state:
27
+ postal_code: '123456'
28
+ country: US
29
+ phone:
30
+ email:
31
+ items:
32
+ - parent: sk_76hLngh4vvAVrA
33
+ object: order_item
34
+ type: sku
35
+ description: T-shirt
36
+ amount: 1500
37
+ currency: usd
38
+ quantity:
39
+ shipping_methods:
40
+ selected_shipping_method:
41
+ amount: 1500
42
+ currency: usd
43
+ application_fee:
44
+ charge:
@@ -0,0 +1,44 @@
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-01'
10
+ data:
11
+ object:
12
+ id: or_00000000000000
13
+ created: 1444032219
14
+ updated: 1444032219
15
+ object: order
16
+ livemode: false
17
+ status: created
18
+ metadata: {}
19
+ customer:
20
+ shipping:
21
+ name: Jenny Rosen
22
+ address:
23
+ line1: 1234 Main street
24
+ line2:
25
+ city: Anytown
26
+ state:
27
+ postal_code: '123456'
28
+ country: US
29
+ phone:
30
+ email:
31
+ items:
32
+ - parent: sk_76hLngh4vvAVrA
33
+ object: order_item
34
+ type: sku
35
+ description: T-shirt
36
+ amount: 1500
37
+ currency: usd
38
+ quantity:
39
+ shipping_methods:
40
+ selected_shipping_method:
41
+ amount: 1500
42
+ currency: usd
43
+ application_fee:
44
+ charge:
@@ -0,0 +1,44 @@
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-01'
10
+ data:
11
+ object:
12
+ id: or_00000000000000
13
+ created: 1444032222
14
+ updated: 1444032222
15
+ object: order
16
+ livemode: false
17
+ status: created
18
+ metadata: {}
19
+ customer:
20
+ shipping:
21
+ name: Jenny Rosen
22
+ address:
23
+ line1: 1234 Main street
24
+ line2:
25
+ city: Anytown
26
+ state:
27
+ postal_code: '123456'
28
+ country: US
29
+ phone:
30
+ email:
31
+ items:
32
+ - parent: sk_76hLngh4vvAVrA
33
+ object: order_item
34
+ type: sku
35
+ description: T-shirt
36
+ amount: 1500
37
+ currency: usd
38
+ quantity:
39
+ shipping_methods:
40
+ selected_shipping_method:
41
+ amount: 1500
42
+ currency: usd
43
+ application_fee:
44
+ charge:
@@ -0,0 +1,45 @@
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-01'
10
+ data:
11
+ object:
12
+ id: or_00000000000000
13
+ created: 1444032224
14
+ updated: 1444032224
15
+ object: order
16
+ livemode: false
17
+ status: created
18
+ metadata: {}
19
+ customer:
20
+ shipping:
21
+ name: Jenny Rosen
22
+ address:
23
+ line1: 1234 Main street
24
+ line2:
25
+ city: Anytown
26
+ state:
27
+ postal_code: '123456'
28
+ country: US
29
+ phone:
30
+ email:
31
+ items:
32
+ - parent: sk_76hLngh4vvAVrA
33
+ object: order_item
34
+ type: sku
35
+ description: T-shirt
36
+ amount: 1500
37
+ currency: usd
38
+ quantity:
39
+ shipping_methods:
40
+ selected_shipping_method:
41
+ amount: 1500
42
+ currency: usd
43
+ application_fee:
44
+ charge:
45
+ 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-01'
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-10-01'
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-10-01'
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,34 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: product.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ id: prod_00000000000000
13
+ created: 1444032236
14
+ updated: 1444032236
15
+ object: product
16
+ livemode: false
17
+ name: T-shirt
18
+ caption:
19
+ description: Comfortable gray cotton t-shirts
20
+ active: true
21
+ attributes:
22
+ - size
23
+ - gender
24
+ shippable: true
25
+ metadata: {}
26
+ url:
27
+ package_dimensions:
28
+ images: []
29
+ skus:
30
+ object: list
31
+ total_count: 0
32
+ has_more: false
33
+ url: "/v1/skus?product=prod_76hLIC8z0rGV15&active=true"
34
+ data: []