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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b026d01005423edac0ad87c9acb710c4a62d45d6
4
- data.tar.gz: edd2a0ee989cf8df8e7e657a72c814a7d4292468
3
+ metadata.gz: 59041d8698f80e26a381056c0c25e0cdf7d5f31d
4
+ data.tar.gz: 6af7b4b4997c87846474978f95db1b880eb56fe9
5
5
  SHA512:
6
- metadata.gz: 16d84bf738373c941c51e6c3cd3df1e6ec35f5c72ee9aa6c447fd8a8fa6cfda776e3c9c3f313c85c20f3c56b110eea7b2d413fcc2f08880ef03e5900222910f6
7
- data.tar.gz: 87e0c4f9443bd6e2e287a39b1135b9f99bd33e2a238b719d161676104ba418d92ab68b687dc560eb756ae3f86f38548a3570cdb7931666af30a22ad3a4d83fd9
6
+ metadata.gz: d1a85d5c17521d969ac7d89c4d36cf40244670c2e5e85c7c44fb5041d6483c6d76e22c1a5e67564d628758133dc69c0210268d344f2ce4442d3a1879faa098b3
7
+ data.tar.gz: 52934234d1ee2715fd9d92f888700de485d4859d08101b2dfc157da8d8a4f05d994f78920b57b17288c26fe71db757c29e9b6b257c8035db58c1e93e0e93b837
data/README.md CHANGED
@@ -10,7 +10,7 @@ StripeTester allows you to submit webhooks to your application without hitting S
10
10
 
11
11
  Add this line to your application's Gemfile:
12
12
  ```ruby
13
- gem 'stripe_tester', "~> 0.3.1"
13
+ gem 'stripe_tester', "~> 0.3.2"
14
14
  ```
15
15
  And then execute:
16
16
  ```bash
data/lib/stripe_tester.rb CHANGED
@@ -6,7 +6,7 @@ require 'psych'
6
6
 
7
7
  module StripeTester
8
8
 
9
- LATEST_STRIPE_VERSION = "2015-04-07"
9
+ LATEST_STRIPE_VERSION = "2015-10-01"
10
10
 
11
11
  # send the url the webhook event
12
12
  # There are two options you can use. :method=>:overwrite, or :method=>:merge
@@ -1,3 +1,3 @@
1
1
  module StripeTester
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -4,7 +4,7 @@ describe StripeTester do
4
4
 
5
5
  describe "instance methods" do
6
6
 
7
- LATEST_STRIPE_VERSION = "2015-04-07"
7
+ LATEST_STRIPE_VERSION = "2015-10-01"
8
8
 
9
9
  before(:each) do
10
10
  StripeTester.remove_url
@@ -0,0 +1,23 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: account.external_account.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ object: bank_account
13
+ id: ba_00000000000000
14
+ last4: '6789'
15
+ country: US
16
+ currency: usd
17
+ status: new
18
+ fingerprint: BoBS64BqvgqBDUKQ
19
+ routing_number: '110000000'
20
+ bank_name: STRIPE TEST BANK
21
+ account: acct_00000000000000
22
+ default_for_currency: false
23
+ metadata: {}
@@ -0,0 +1,23 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: account.external_account.deleted
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ object: bank_account
13
+ id: ba_00000000000000
14
+ last4: '6789'
15
+ country: US
16
+ currency: usd
17
+ status: new
18
+ fingerprint: BoBS64BqvgqBDUKQ
19
+ routing_number: '110000000'
20
+ bank_name: STRIPE TEST BANK
21
+ account: acct_00000000000000
22
+ default_for_currency: false
23
+ metadata: {}
@@ -0,0 +1,24 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: account.external_account.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ object: bank_account
13
+ id: ba_00000000000000
14
+ last4: '6789'
15
+ country: US
16
+ currency: usd
17
+ status: new
18
+ fingerprint: BoBS64BqvgqBDUKQ
19
+ routing_number: '110000000'
20
+ bank_name: STRIPE TEST BANK
21
+ account: acct_00000000000000
22
+ default_for_currency: false
23
+ metadata: {}
24
+ previous_attributes:
@@ -0,0 +1,89 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: account.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ id: acct_00000000000000
13
+ email: test@stripe.com
14
+ statement_descriptor: TEST
15
+ display_name:
16
+ timezone: Etc/UTC
17
+ details_submitted: true
18
+ charges_enabled: false
19
+ transfers_enabled: false
20
+ currencies_supported:
21
+ - usd
22
+ - aed
23
+ - afn
24
+ - "..."
25
+ default_currency: usd
26
+ country: US
27
+ object: account
28
+ business_name:
29
+ business_url:
30
+ support_phone:
31
+ business_logo:
32
+ managed: false
33
+ product_description:
34
+ debit_negative_balances: true
35
+ external_accounts:
36
+ object: list
37
+ total_count: 0
38
+ has_more: false
39
+ url: "/v1/accounts/acct_27GvSMUrw6nMBU84mVCr/external_accounts"
40
+ data: []
41
+ verification:
42
+ fields_needed:
43
+ - legal_entity.verification.document
44
+ due_by: 1444291276
45
+ disabled_reason: fields_needed
46
+ transfer_schedule:
47
+ delay_days: 7
48
+ interval: daily
49
+ decline_charge_on:
50
+ cvc_failure: false
51
+ avs_failure: false
52
+ tos_acceptance:
53
+ ip:
54
+ date:
55
+ user_agent:
56
+ legal_entity:
57
+ type:
58
+ business_name:
59
+ address:
60
+ line1:
61
+ line2:
62
+ city:
63
+ state:
64
+ postal_code:
65
+ country: US
66
+ first_name:
67
+ last_name:
68
+ personal_address:
69
+ line1:
70
+ line2:
71
+ city:
72
+ state:
73
+ postal_code:
74
+ country:
75
+ dob:
76
+ day:
77
+ month:
78
+ year:
79
+ additional_owners:
80
+ verification:
81
+ status: unverified
82
+ document:
83
+ details:
84
+ personal_id_number_provided: false
85
+ ssn_last_4_provided: false
86
+ previous_attributes:
87
+ verification:
88
+ fields_needed: []
89
+ due_by:
@@ -0,0 +1,19 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: balance.available
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ pending:
13
+ - amount: 0
14
+ currency: usd
15
+ available:
16
+ - amount: 0
17
+ currency: usd
18
+ livemode: false
19
+ object: balance
@@ -0,0 +1,30 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: bitcoin.receiver.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ id: btcrcv_00000000000000
13
+ object: bitcoin_receiver
14
+ created: 1444032097
15
+ livemode: false
16
+ active: false
17
+ amount: 100
18
+ amount_received: 0
19
+ bitcoin_amount: 1757908
20
+ bitcoin_amount_received: 0
21
+ bitcoin_uri: bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908
22
+ currency: usd
23
+ filled: false
24
+ inbound_address: test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1
25
+ uncaptured_funds: false
26
+ description: Receiver for John Doe
27
+ email: test@example.com
28
+ metadata: {}
29
+ refund_address:
30
+ used_for_payment: false
@@ -0,0 +1,30 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: bitcoin.receiver.filled
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ id: btcrcv_00000000000000
13
+ object: bitcoin_receiver
14
+ created: 1444032100
15
+ livemode: false
16
+ active: false
17
+ amount: 100
18
+ amount_received: 0
19
+ bitcoin_amount: 1757908
20
+ bitcoin_amount_received: 0
21
+ bitcoin_uri: bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908
22
+ currency: usd
23
+ filled: false
24
+ inbound_address: test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1
25
+ uncaptured_funds: false
26
+ description: Receiver for John Doe
27
+ email: test@example.com
28
+ metadata: {}
29
+ refund_address:
30
+ used_for_payment: false
@@ -0,0 +1,18 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: bitcoin.receiver.transaction.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ id: btctxn_00000000000000
13
+ object: bitcoin_transaction
14
+ created: 1444032105
15
+ amount: 2000
16
+ bitcoin_amount: 20000000
17
+ currency: usd
18
+ receiver: btcrcv_16sMql2eZvKYlo2CTzYkPaiz
@@ -0,0 +1,31 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: bitcoin.receiver.updated
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ id: btcrcv_00000000000000
13
+ object: bitcoin_receiver
14
+ created: 1444032103
15
+ livemode: false
16
+ active: false
17
+ amount: 100
18
+ amount_received: 0
19
+ bitcoin_amount: 1757908
20
+ bitcoin_amount_received: 0
21
+ bitcoin_uri: bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908
22
+ currency: usd
23
+ filled: false
24
+ inbound_address: test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1
25
+ uncaptured_funds: false
26
+ description: Receiver for John Doe
27
+ email: test@example.com
28
+ metadata: {}
29
+ refund_address:
30
+ used_for_payment: false
31
+ previous_attributes:
@@ -0,0 +1,66 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.captured
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-10-01'
10
+ data:
11
+ object:
12
+ id: ch_00000000000000
13
+ object: charge
14
+ created: 1419171865
15
+ livemode: false
16
+ paid: true
17
+ status: succeeded
18
+ amount: 212
19
+ currency: usd
20
+ refunded: false
21
+ source:
22
+ id: card_00000000000000
23
+ object: card
24
+ last4: '4242'
25
+ brand: Visa
26
+ funding: credit
27
+ exp_month: 12
28
+ exp_year: 2017
29
+ country: US
30
+ name: Shit man
31
+ address_line1:
32
+ address_line2:
33
+ address_city:
34
+ address_state:
35
+ address_zip:
36
+ address_country:
37
+ cvc_check: pass
38
+ address_line1_check:
39
+ address_zip_check:
40
+ tokenization_method:
41
+ dynamic_last4:
42
+ metadata: {}
43
+ customer: cus_00000000000000
44
+ captured: true
45
+ balance_transaction: txn_00000000000000
46
+ failure_message:
47
+ failure_code:
48
+ amount_refunded: 0
49
+ customer: cus_00000000000000
50
+ invoice: in_00000000000000
51
+ description:
52
+ dispute:
53
+ metadata: {}
54
+ statement_descriptor:
55
+ fraud_details: {}
56
+ receipt_email:
57
+ receipt_number:
58
+ shipping:
59
+ destination:
60
+ application_fee:
61
+ refunds:
62
+ object: list
63
+ total_count: 0
64
+ has_more: false
65
+ url: "/v1/charges/ch_5MuSnHsHswLrRL/refunds"
66
+ data: []
@@ -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-01'
10
+ data:
11
+ object:
12
+ id: dp_00000000000000
13
+ charge: ch_00000000000000
14
+ amount: 1000
15
+ created: 1444032124
16
+ status: won
17
+ livemode: false
18
+ currency: usd
19
+ object: dispute
20
+ reason: general
21
+ is_charge_refundable: false
22
+ balance_transactions: []
23
+ evidence_details:
24
+ due_by: 1445731199
25
+ past_due: false
26
+ has_evidence: false
27
+ submission_count: 0
28
+ evidence:
29
+ product_description:
30
+ customer_name:
31
+ customer_email_address:
32
+ customer_purchase_ip:
33
+ customer_signature:
34
+ billing_address:
35
+ receipt:
36
+ shipping_address:
37
+ shipping_date:
38
+ shipping_carrier:
39
+ shipping_tracking_number:
40
+ shipping_documentation:
41
+ access_activity_log:
42
+ service_date:
43
+ service_documentation:
44
+ duplicate_charge_id:
45
+ duplicate_charge_explanation:
46
+ duplicate_charge_documentation:
47
+ refund_policy:
48
+ refund_policy_disclosure:
49
+ refund_refusal_explanation:
50
+ cancellation_policy:
51
+ cancellation_policy_disclosure:
52
+ cancellation_rebuttal:
53
+ customer_communication:
54
+ uncategorized_text: Here is some evidence
55
+ uncategorized_file:
56
+ metadata: {}