stripe_tester 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -16
  3. data/lib/stripe_tester/version.rb +1 -1
  4. data/stripe_webhooks/2014-10-07/account_updated.yml +28 -0
  5. data/stripe_webhooks/2014-10-07/balance_available.yml +17 -0
  6. data/stripe_webhooks/2014-10-07/charge_captured.yml +62 -0
  7. data/stripe_webhooks/2014-10-07/charge_dispute_closed.yml +22 -0
  8. data/stripe_webhooks/2014-10-07/charge_dispute_created.yml +22 -0
  9. data/stripe_webhooks/2014-10-07/charge_dispute_updated.yml +24 -0
  10. data/stripe_webhooks/2014-10-07/charge_failed.yml +62 -0
  11. data/stripe_webhooks/2014-10-07/charge_refunded.yml +73 -0
  12. data/stripe_webhooks/2014-10-07/charge_succeeded.yml +62 -0
  13. data/stripe_webhooks/2014-10-07/charge_updated.yml +64 -0
  14. data/stripe_webhooks/2014-10-07/coupon_created.yml +23 -0
  15. data/stripe_webhooks/2014-10-07/coupon_deleted.yml +23 -0
  16. data/stripe_webhooks/2014-10-07/customer_card_created.yml +30 -0
  17. data/stripe_webhooks/2014-10-07/customer_card_deleted.yml +30 -0
  18. data/stripe_webhooks/2014-10-07/customer_card_updated.yml +32 -0
  19. data/stripe_webhooks/2014-10-07/customer_created.yml +33 -0
  20. data/stripe_webhooks/2014-10-07/customer_deleted.yml +33 -0
  21. data/stripe_webhooks/2014-10-07/customer_discount_created.yml +29 -0
  22. data/stripe_webhooks/2014-10-07/customer_discount_deleted.yml +29 -0
  23. data/stripe_webhooks/2014-10-07/customer_discount_updated.yml +45 -0
  24. data/stripe_webhooks/2014-10-07/customer_subscription_created.yml +38 -0
  25. data/stripe_webhooks/2014-10-07/customer_subscription_deleted.yml +38 -0
  26. data/stripe_webhooks/2014-10-07/customer_subscription_trial_will_end.yml +38 -0
  27. data/stripe_webhooks/2014-10-07/customer_subscription_updated.yml +52 -0
  28. data/stripe_webhooks/2014-10-07/customer_updated.yml +35 -0
  29. data/stripe_webhooks/2014-10-07/invoice_created.yml +69 -0
  30. data/stripe_webhooks/2014-10-07/invoice_payment_failed.yml +69 -0
  31. data/stripe_webhooks/2014-10-07/invoice_payment_succeeded.yml +69 -0
  32. data/stripe_webhooks/2014-10-07/invoice_updated.yml +71 -0
  33. data/stripe_webhooks/2014-10-07/invoiceitem_created.yml +23 -0
  34. data/stripe_webhooks/2014-10-07/invoiceitem_deleted.yml +23 -0
  35. data/stripe_webhooks/2014-10-07/invoiceitem_updated.yml +25 -0
  36. data/stripe_webhooks/2014-10-07/plan_created.yml +21 -0
  37. data/stripe_webhooks/2014-10-07/plan_deleted.yml +21 -0
  38. data/stripe_webhooks/2014-10-07/plan_updated.yml +23 -0
  39. data/stripe_webhooks/2014-10-07/transfer_created.yml +25 -0
  40. data/stripe_webhooks/2014-10-07/transfer_failed.yml +25 -0
  41. data/stripe_webhooks/2014-10-07/transfer_paid.yml +25 -0
  42. data/stripe_webhooks/2014-10-07/transfer_updated.yml +27 -0
  43. metadata +41 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18a3eb7779521a391686efe218f69415bc835934
4
- data.tar.gz: f266343a2f4866c090343279fd3884b79a6ff7e7
3
+ metadata.gz: b070ce60a2832b4018406ca57ba493aae36469b5
4
+ data.tar.gz: b276c5708dcccbf7e91ec95a090977bb26bcae00
5
5
  SHA512:
6
- metadata.gz: d30c1686d433a5ced71d263e3e272cfde0064701fd5f616bbef411fa502b0fda7a1b3f83267757c25a2ed3a953f799399ca297ad69363ca066cde24d6ef3a5ec
7
- data.tar.gz: d02f0528ffa48c5c1d7c93a873c40e26151c520ffff344f911a51d4678159f9485b4dae6852e056268f4018705b2f34aa2bec4ebd01959c5f3eb96bd30e8c383
6
+ metadata.gz: 0ab4b920270436c57b6d853e13081c56c916d0e3459369f0a5b1a510b942c2dd8f1682bb345dc89d3bb857a6a116ec1845a6c946d9f1c9725b9a7a6f6b5d1307
7
+ data.tar.gz: 4580f3c033a6646c9291a4b1902a70910f6760ee4b808888a67e6dd3214530865e7e7fad772d958aea5bd6a8ef30b11550fc3fa9a18b7108b62958fe4409bade
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.0.5'
13
+ gem 'stripe_tester', "~> 0.1.1"
14
14
  ```
15
15
  And then execute:
16
16
  ```bash
@@ -33,7 +33,11 @@ In your test:
33
33
 
34
34
  1. Set the URL where the webhooks are handled:
35
35
  ```ruby
36
+ # Normal HTTP URL
36
37
  StripeTester.webhook_url = "http://www.example.com/my_post_url"
38
+
39
+ # HTTPS URL
40
+ StripeTester.webhook_url = "https://www.secure-example.com/my_post_url"
37
41
  ```
38
42
 
39
43
  2. If you want to specify which Stripe webhook API version you would like to use (the default will be the latest [supported version](https://github.com/buttercloud/stripe_tester#supported-stripe-webhook-api-versions)):
@@ -67,21 +71,47 @@ json = StripeTester.load_template(:invoice_payment_failed)
67
71
 
68
72
  ## Supported Webhooks
69
73
 
70
- Version 2013-07-05:
74
+ Version 2014-10-07:
71
75
 
72
- * charge_failed
73
- * charge_refunded
74
- * charge_succeeded
75
- * customer_created
76
- * customer_deleted
77
- * customer_subscription_created
78
- * customer_subscription_deleted
79
- * customer_subscription_updated
80
- * customer_subscription_trial_will_end
81
- * invoice_created
82
- * invoice_payment_failed
83
- * invoice_payment_succeeded
84
- * invoice_updated
76
+ * account.updated
77
+ * balance.available
78
+ * charge.captured
79
+ * charge.dispute.closed
80
+ * charge.dispute.created
81
+ * charge.dispute.updated
82
+ * charge.failed
83
+ * charge.refunded
84
+ * charge.succeeded
85
+ * charge.updated
86
+ * coupon.created
87
+ * coupon.deleted
88
+ * customer.card.created
89
+ * customer.card.deleted
90
+ * customer.card.updated
91
+ * customer.created
92
+ * customer.deleted
93
+ * customer.discount.created
94
+ * customer.discount.deleted
95
+ * customer.discount.updated
96
+ * customer.subscription.created
97
+ * customer.subscription.deleted
98
+ * customer.subscription.trial.will.end
99
+ * customer.subscription.updated
100
+ * customer.updated
101
+ * invoice.created
102
+ * invoice.payment.failed
103
+ * invoice.payment.succeeded
104
+ * invoice.updated
105
+ * invoiceitem.created
106
+ * invoiceitem.deleted
107
+ * invoiceitem.updated
108
+ * plan.created
109
+ * plan.deleted
110
+ * plan.updated
111
+ * transfer.created
112
+ * transfer.failed
113
+ * transfer.paid
114
+ * transfer.updated
85
115
 
86
116
  Version 2013-08-13:
87
117
 
@@ -123,8 +153,25 @@ Version 2013-08-13:
123
153
  * transfer.paid
124
154
  * transfer.updated
125
155
 
156
+ Version 2013-07-05:
157
+
158
+ * charge.failed
159
+ * charge.refunded
160
+ * charge.succeeded
161
+ * customer.created
162
+ * customer.deleted
163
+ * customer.subscription.created
164
+ * customer.subscription.deleted
165
+ * customer.subscription.updated
166
+ * customer.subscription.trial.will.end
167
+ * invoice.created
168
+ * invoice.payment.failed
169
+ * invoice.payment.succeeded
170
+ * invoice.updated
171
+
126
172
  ## Supported Stripe Webhook API Versions
127
173
 
174
+ * 2014-10-07
128
175
  * 2013-08-13
129
176
  * 2013-07-05
130
177
  * 2013-02-13
@@ -145,7 +192,7 @@ Version 2013-08-13:
145
192
 
146
193
  ## License
147
194
 
148
- Copyright (c) 2013 ButterCloud LLC.
195
+ Copyright (c) 2014 ButterCloud LLC.
149
196
 
150
197
  MIT License
151
198
 
@@ -1,3 +1,3 @@
1
1
  module StripeTester
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,28 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: account.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: acct_00000000000000
11
+ email: test@stripe.com
12
+ statement_descriptor: TEST
13
+ display_name:
14
+ timezone: Etc/UTC
15
+ details_submitted: true
16
+ charge_enabled: false
17
+ transfer_enabled: false
18
+ currencies_supported:
19
+ - usd
20
+ - aed
21
+ - afn
22
+ - "..."
23
+ default_currency: usd
24
+ country: US
25
+ object: account
26
+ business_name:
27
+ previous_attributes:
28
+ details_submitted: false
@@ -0,0 +1,17 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: balance.available
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ pending:
11
+ - amount: 0
12
+ currency: usd
13
+ available:
14
+ - amount: 0
15
+ currency: usd
16
+ livemode: false
17
+ object: balance
@@ -0,0 +1,62 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.captured
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: ch_00000000000000
11
+ object: charge
12
+ created: 1414767769
13
+ livemode: false
14
+ paid: true
15
+ amount: 100
16
+ currency: usd
17
+ refunded: false
18
+ card:
19
+ id: cc_00000000000000
20
+ object: card
21
+ last4: '4242'
22
+ brand: Visa
23
+ funding: credit
24
+ exp_month: 8
25
+ exp_year: 2014
26
+ fingerprint: TTKQdP1Omgi1czlY
27
+ country: US
28
+ name:
29
+ address_line1:
30
+ address_line2:
31
+ address_city:
32
+ address_state:
33
+ address_zip:
34
+ address_country:
35
+ cvc_check:
36
+ address_line1_check:
37
+ address_zip_check:
38
+ dynamic_last4:
39
+ customer:
40
+ captured: true
41
+ refunds:
42
+ object: list
43
+ total_count: 0
44
+ has_more: false
45
+ url: "/v1/charges/ch_53oYOUgtwX3CDA/refunds"
46
+ data: []
47
+ balance_transaction: txn_00000000000000
48
+ failure_message:
49
+ failure_code:
50
+ amount_refunded: 0
51
+ customer:
52
+ invoice:
53
+ description: My First Test Charge (created for API docs)
54
+ dispute:
55
+ metadata: {}
56
+ statement_description:
57
+ fraud_details:
58
+ stripe_report:
59
+ user_report:
60
+ receipt_email:
61
+ receipt_number:
62
+ shipping:
@@ -0,0 +1,22 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.dispute.closed
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ charge: ch_00000000000000
11
+ amount: 1000
12
+ created: 1414767829
13
+ status: won
14
+ livemode: false
15
+ currency: usd
16
+ object: dispute
17
+ reason: general
18
+ is_charge_refundable: false
19
+ balance_transactions: []
20
+ evidence_due_by: 1416441599
21
+ evidence: Here is some evidence
22
+ metadata: {}
@@ -0,0 +1,22 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.dispute.created
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ charge: ch_00000000000000
11
+ amount: 1000
12
+ created: 1414767820
13
+ status: needs_response
14
+ livemode: false
15
+ currency: usd
16
+ object: dispute
17
+ reason: general
18
+ is_charge_refundable: false
19
+ balance_transactions: []
20
+ evidence_due_by: 1416441599
21
+ evidence:
22
+ metadata: {}
@@ -0,0 +1,24 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.dispute.updated
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ charge: ch_00000000000000
11
+ amount: 1000
12
+ created: 1414767824
13
+ status: under_review
14
+ livemode: false
15
+ currency: usd
16
+ object: dispute
17
+ reason: general
18
+ is_charge_refundable: false
19
+ balance_transactions: []
20
+ evidence_due_by: 1416441599
21
+ evidence: Here is some evidence
22
+ metadata: {}
23
+ previous_attributes:
24
+ evidence:
@@ -0,0 +1,62 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.failed
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: ch_00000000000000
11
+ object: charge
12
+ created: 1414767816
13
+ livemode: false
14
+ paid: false
15
+ amount: 100
16
+ currency: usd
17
+ refunded: false
18
+ card:
19
+ id: cc_00000000000000
20
+ object: card
21
+ last4: '4242'
22
+ brand: Visa
23
+ funding: credit
24
+ exp_month: 8
25
+ exp_year: 2014
26
+ fingerprint: TTKQdP1Omgi1czlY
27
+ country: US
28
+ name:
29
+ address_line1:
30
+ address_line2:
31
+ address_city:
32
+ address_state:
33
+ address_zip:
34
+ address_country:
35
+ cvc_check:
36
+ address_line1_check:
37
+ address_zip_check:
38
+ dynamic_last4:
39
+ customer:
40
+ captured: true
41
+ refunds:
42
+ object: list
43
+ total_count: 0
44
+ has_more: false
45
+ url: "/v1/charges/ch_53oZ5B3zu5uuid/refunds"
46
+ data: []
47
+ balance_transaction: txn_00000000000000
48
+ failure_message:
49
+ failure_code:
50
+ amount_refunded: 0
51
+ customer:
52
+ invoice:
53
+ description: My First Test Charge (created for API docs)
54
+ dispute:
55
+ metadata: {}
56
+ statement_description:
57
+ fraud_details:
58
+ stripe_report:
59
+ user_report:
60
+ receipt_email:
61
+ receipt_number:
62
+ shipping:
@@ -0,0 +1,73 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: charge.refunded
6
+ object: event
7
+ request:
8
+ data:
9
+ object:
10
+ id: ch_00000000000000
11
+ object: charge
12
+ created: 1414767799
13
+ livemode: false
14
+ paid: true
15
+ amount: 100
16
+ currency: usd
17
+ refunded: true
18
+ card:
19
+ id: cc_00000000000000
20
+ object: card
21
+ last4: '4242'
22
+ brand: Visa
23
+ funding: credit
24
+ exp_month: 8
25
+ exp_year: 2014
26
+ fingerprint: TTKQdP1Omgi1czlY
27
+ country: US
28
+ name:
29
+ address_line1:
30
+ address_line2:
31
+ address_city:
32
+ address_state:
33
+ address_zip:
34
+ address_country:
35
+ cvc_check:
36
+ address_line1_check:
37
+ address_zip_check:
38
+ dynamic_last4:
39
+ customer:
40
+ captured: true
41
+ refunds:
42
+ object: list
43
+ total_count: 0
44
+ has_more: false
45
+ url: "/v1/charges/ch_53oYdFAXRVaoKR/refunds"
46
+ data:
47
+ - id: re_53oYhhAn1W1vSd
48
+ amount: 100
49
+ currency: usd
50
+ created: 1414767799
51
+ object: refund
52
+ balance_transaction: txn_53oYH9mtuGrbob
53
+ metadata: {}
54
+ charge: ch_53oYWk2OOuLmHE
55
+ receipt_number: 1249-3691
56
+ reason:
57
+ balance_transaction: txn_00000000000000
58
+ failure_message:
59
+ failure_code:
60
+ amount_refunded: 100
61
+ customer:
62
+ invoice:
63
+ description: My First Test Charge (created for API docs)
64
+ dispute:
65
+ metadata: {}
66
+ statement_description:
67
+ fraud_details:
68
+ stripe_report:
69
+ user_report:
70
+ receipt_email:
71
+ receipt_number:
72
+ shipping:
73
+ fee: 0