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,56 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.dispute.closed
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: dp_00000000000000
13
+ object: dispute
14
+ amount: 1000
15
+ balance_transactions: []
16
+ charge: ch_00000000000000
17
+ created: 1450089102
18
+ currency: usd
19
+ evidence:
20
+ access_activity_log:
21
+ billing_address:
22
+ cancellation_policy:
23
+ cancellation_policy_disclosure:
24
+ cancellation_rebuttal:
25
+ customer_communication:
26
+ customer_email_address:
27
+ customer_name:
28
+ customer_purchase_ip:
29
+ customer_signature:
30
+ duplicate_charge_documentation:
31
+ duplicate_charge_explanation:
32
+ duplicate_charge_id:
33
+ product_description:
34
+ receipt:
35
+ refund_policy:
36
+ refund_policy_disclosure:
37
+ refund_refusal_explanation:
38
+ service_date:
39
+ service_documentation:
40
+ shipping_address:
41
+ shipping_carrier:
42
+ shipping_date:
43
+ shipping_documentation:
44
+ shipping_tracking_number:
45
+ uncategorized_file:
46
+ uncategorized_text: Here is some evidence
47
+ evidence_details:
48
+ due_by: 1451779199
49
+ has_evidence: false
50
+ past_due: false
51
+ submission_count: 0
52
+ is_charge_refundable: false
53
+ livemode: false
54
+ metadata: {}
55
+ reason: general
56
+ status: won
@@ -0,0 +1,56 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.dispute.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: dp_00000000000000
13
+ object: dispute
14
+ amount: 1000
15
+ balance_transactions: []
16
+ charge: ch_00000000000000
17
+ created: 1450089105
18
+ currency: usd
19
+ evidence:
20
+ access_activity_log:
21
+ billing_address:
22
+ cancellation_policy:
23
+ cancellation_policy_disclosure:
24
+ cancellation_rebuttal:
25
+ customer_communication:
26
+ customer_email_address:
27
+ customer_name:
28
+ customer_purchase_ip:
29
+ customer_signature:
30
+ duplicate_charge_documentation:
31
+ duplicate_charge_explanation:
32
+ duplicate_charge_id:
33
+ product_description:
34
+ receipt:
35
+ refund_policy:
36
+ refund_policy_disclosure:
37
+ refund_refusal_explanation:
38
+ service_date:
39
+ service_documentation:
40
+ shipping_address:
41
+ shipping_carrier:
42
+ shipping_date:
43
+ shipping_documentation:
44
+ shipping_tracking_number:
45
+ uncategorized_file:
46
+ uncategorized_text:
47
+ evidence_details:
48
+ due_by: 1451779199
49
+ has_evidence: false
50
+ past_due: false
51
+ submission_count: 0
52
+ is_charge_refundable: false
53
+ livemode: false
54
+ metadata: {}
55
+ reason: general
56
+ status: needs_response
@@ -0,0 +1,56 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.dispute.funds_reinstated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: dp_00000000000000
13
+ object: dispute
14
+ amount: 1000
15
+ balance_transactions: []
16
+ charge: ch_00000000000000
17
+ created: 1450089108
18
+ currency: usd
19
+ evidence:
20
+ access_activity_log:
21
+ billing_address:
22
+ cancellation_policy:
23
+ cancellation_policy_disclosure:
24
+ cancellation_rebuttal:
25
+ customer_communication:
26
+ customer_email_address:
27
+ customer_name:
28
+ customer_purchase_ip:
29
+ customer_signature:
30
+ duplicate_charge_documentation:
31
+ duplicate_charge_explanation:
32
+ duplicate_charge_id:
33
+ product_description:
34
+ receipt:
35
+ refund_policy:
36
+ refund_policy_disclosure:
37
+ refund_refusal_explanation:
38
+ service_date:
39
+ service_documentation:
40
+ shipping_address:
41
+ shipping_carrier:
42
+ shipping_date:
43
+ shipping_documentation:
44
+ shipping_tracking_number:
45
+ uncategorized_file:
46
+ uncategorized_text:
47
+ evidence_details:
48
+ due_by: 1451779199
49
+ has_evidence: false
50
+ past_due: false
51
+ submission_count: 0
52
+ is_charge_refundable: false
53
+ livemode: false
54
+ metadata: {}
55
+ reason: general
56
+ status: needs_response
@@ -0,0 +1,56 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.dispute.funds_withdrawn
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: dp_00000000000000
13
+ object: dispute
14
+ amount: 1000
15
+ balance_transactions: []
16
+ charge: ch_00000000000000
17
+ created: 1450089111
18
+ currency: usd
19
+ evidence:
20
+ access_activity_log:
21
+ billing_address:
22
+ cancellation_policy:
23
+ cancellation_policy_disclosure:
24
+ cancellation_rebuttal:
25
+ customer_communication:
26
+ customer_email_address:
27
+ customer_name:
28
+ customer_purchase_ip:
29
+ customer_signature:
30
+ duplicate_charge_documentation:
31
+ duplicate_charge_explanation:
32
+ duplicate_charge_id:
33
+ product_description:
34
+ receipt:
35
+ refund_policy:
36
+ refund_policy_disclosure:
37
+ refund_refusal_explanation:
38
+ service_date:
39
+ service_documentation:
40
+ shipping_address:
41
+ shipping_carrier:
42
+ shipping_date:
43
+ shipping_documentation:
44
+ shipping_tracking_number:
45
+ uncategorized_file:
46
+ uncategorized_text:
47
+ evidence_details:
48
+ due_by: 1451779199
49
+ has_evidence: false
50
+ past_due: false
51
+ submission_count: 0
52
+ is_charge_refundable: false
53
+ livemode: false
54
+ metadata: {}
55
+ reason: general
56
+ status: needs_response
@@ -0,0 +1,85 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.dispute.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-16'
10
+ data:
11
+ object:
12
+ id: dp_00000000000000
13
+ object: dispute
14
+ amount: 1000
15
+ balance_transactions: []
16
+ charge: ch_00000000000000
17
+ created: 1450089113
18
+ currency: usd
19
+ evidence:
20
+ access_activity_log:
21
+ billing_address:
22
+ cancellation_policy:
23
+ cancellation_policy_disclosure:
24
+ cancellation_rebuttal:
25
+ customer_communication:
26
+ customer_email_address:
27
+ customer_name:
28
+ customer_purchase_ip:
29
+ customer_signature:
30
+ duplicate_charge_documentation:
31
+ duplicate_charge_explanation:
32
+ duplicate_charge_id:
33
+ product_description:
34
+ receipt:
35
+ refund_policy:
36
+ refund_policy_disclosure:
37
+ refund_refusal_explanation:
38
+ service_date:
39
+ service_documentation:
40
+ shipping_address:
41
+ shipping_carrier:
42
+ shipping_date:
43
+ shipping_documentation:
44
+ shipping_tracking_number:
45
+ uncategorized_file:
46
+ uncategorized_text: Here is some evidence
47
+ evidence_details:
48
+ due_by: 1451779199
49
+ has_evidence: false
50
+ past_due: false
51
+ submission_count: 0
52
+ is_charge_refundable: false
53
+ livemode: false
54
+ metadata: {}
55
+ reason: general
56
+ status: under_review
57
+ previous_attributes:
58
+ evidence:
59
+ access_activity_log:
60
+ billing_address:
61
+ cancellation_policy:
62
+ cancellation_policy_disclosure:
63
+ cancellation_rebuttal:
64
+ customer_communication:
65
+ customer_email_address:
66
+ customer_name:
67
+ customer_purchase_ip:
68
+ customer_signature:
69
+ duplicate_charge_documentation:
70
+ duplicate_charge_explanation:
71
+ duplicate_charge_id:
72
+ product_description:
73
+ receipt:
74
+ refund_policy:
75
+ refund_policy_disclosure:
76
+ refund_refusal_explanation:
77
+ service_date:
78
+ service_documentation:
79
+ shipping_address:
80
+ shipping_carrier:
81
+ shipping_date:
82
+ shipping_documentation:
83
+ shipping_tracking_number:
84
+ uncategorized_file:
85
+ uncategorized_text: Old uncategorized text
@@ -0,0 +1,66 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.failed
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: false
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,77 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.refunded
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: 212
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: true
35
+ refunds:
36
+ object: list
37
+ data:
38
+ - id: re_7WxX38rXTMIjQj
39
+ object: refund
40
+ amount: 212
41
+ balance_transaction: txn_7WxXaASxlOzR7h
42
+ charge: ch_7WxXtw8mAn733P
43
+ created: 1450089094
44
+ currency: usd
45
+ metadata: {}
46
+ reason:
47
+ receipt_number: 1396-2130
48
+ has_more: false
49
+ total_count: 0
50
+ url: "/v1/charges/ch_5MuSnHsHswLrRL/refunds"
51
+ shipping:
52
+ source:
53
+ id: card_00000000000000
54
+ object: card
55
+ address_city:
56
+ address_country:
57
+ address_line1:
58
+ address_line1_check:
59
+ address_line2:
60
+ address_state:
61
+ address_zip:
62
+ address_zip_check:
63
+ brand: Visa
64
+ country: US
65
+ customer: cus_00000000000000
66
+ cvc_check: pass
67
+ dynamic_last4:
68
+ exp_month: 12
69
+ exp_year: 2017
70
+ funding: credit
71
+ last4: '4242'
72
+ metadata: {}
73
+ name: Shit man
74
+ tokenization_method:
75
+ statement_descriptor:
76
+ status: succeeded
77
+ fee: 0