stripe_tester 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -149
  3. data/lib/stripe_tester/version.rb +1 -1
  4. data/stripe_webhooks/2015-04-07/account_updated.yml +86 -0
  5. data/stripe_webhooks/2015-04-07/balance_available.yml +19 -0
  6. data/stripe_webhooks/2015-04-07/charge_captured.yml +65 -0
  7. data/stripe_webhooks/2015-04-07/charge_dispute_closed.yml +28 -0
  8. data/stripe_webhooks/2015-04-07/charge_dispute_created.yml +55 -0
  9. data/stripe_webhooks/2015-04-07/charge_dispute_updated.yml +30 -0
  10. data/stripe_webhooks/2015-04-07/charge_failed.yml +65 -0
  11. data/stripe_webhooks/2015-04-07/charge_refunded.yml +76 -0
  12. data/stripe_webhooks/2015-04-07/charge_succeeded.yml +65 -0
  13. data/stripe_webhooks/2015-04-07/charge_updated.yml +67 -0
  14. data/stripe_webhooks/2015-04-07/coupon_created.yml +25 -0
  15. data/stripe_webhooks/2015-04-07/coupon_deleted.yml +25 -0
  16. data/stripe_webhooks/2015-04-07/customer_card_created.yml +32 -0
  17. data/stripe_webhooks/2015-04-07/customer_card_deleted.yml +32 -0
  18. data/stripe_webhooks/2015-04-07/customer_card_updated.yml +34 -0
  19. data/stripe_webhooks/2015-04-07/customer_created.yml +35 -0
  20. data/stripe_webhooks/2015-04-07/customer_deleted.yml +35 -0
  21. data/stripe_webhooks/2015-04-07/customer_discount_created.yml +31 -0
  22. data/stripe_webhooks/2015-04-07/customer_discount_deleted.yml +31 -0
  23. data/stripe_webhooks/2015-04-07/customer_discount_updated.yml +47 -0
  24. data/stripe_webhooks/2015-04-07/customer_subscription_created.yml +41 -0
  25. data/stripe_webhooks/2015-04-07/customer_subscription_deleted.yml +41 -0
  26. data/stripe_webhooks/2015-04-07/customer_subscription_trial_will_end.yml +41 -0
  27. data/stripe_webhooks/2015-04-07/customer_subscription_updated.yml +55 -0
  28. data/stripe_webhooks/2015-04-07/customer_updated.yml +37 -0
  29. data/stripe_webhooks/2015-04-07/invoice_created.yml +74 -0
  30. data/stripe_webhooks/2015-04-07/invoice_payment_failed.yml +74 -0
  31. data/stripe_webhooks/2015-04-07/invoice_payment_succeeded.yml +74 -0
  32. data/stripe_webhooks/2015-04-07/invoice_updated.yml +76 -0
  33. data/stripe_webhooks/2015-04-07/invoiceitem_created.yml +29 -0
  34. data/stripe_webhooks/2015-04-07/invoiceitem_deleted.yml +29 -0
  35. data/stripe_webhooks/2015-04-07/invoiceitem_updated.yml +31 -0
  36. data/stripe_webhooks/2015-04-07/plan_created.yml +23 -0
  37. data/stripe_webhooks/2015-04-07/plan_deleted.yml +23 -0
  38. data/stripe_webhooks/2015-04-07/plan_updated.yml +25 -0
  39. data/stripe_webhooks/2015-04-07/transfer_created.yml +38 -0
  40. data/stripe_webhooks/2015-04-07/transfer_failed.yml +38 -0
  41. data/stripe_webhooks/2015-04-07/transfer_paid.yml +38 -0
  42. data/stripe_webhooks/2015-04-07/transfer_updated.yml +40 -0
  43. data/supported_webhook_versions.md +200 -0
  44. metadata +42 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03f77dc454987b5d394885a5f23af9ddbb9e98cd
4
- data.tar.gz: ee8bfc15c76f131687acf81f294e3f0caed1c441
3
+ metadata.gz: 3e7d75d214b678b48b6c082cb89a5f9ce4ec300c
4
+ data.tar.gz: 8c51c242cb7c4ec4d8e5bf38ed9b442a7fa1c14c
5
5
  SHA512:
6
- metadata.gz: c1056d611de153c4a63085a7c5aef478b97e8a1452f398a329d106e3b3d366526876ce99f222f8fe886d0601dee0adeb520d29c4fadd9c76edade8b6970fe0cb
7
- data.tar.gz: 6a5f8962533db3c50c85a91a201e7f1fb58fbbb9cd8d4cb97b5b12c1550ba459f29676a6c94bb34f9d67b6c3cf762d60d3ef23928ac8ed5e10f36221982d3fa9
6
+ metadata.gz: a72b7eb924c7002b4d4f96cca388ff0c09c9a80fa218d8ff938d97d2de0860010efefb1e025914cc525dc2ecb5b2f4810ef63e0315def41f2451ad00f1c7703e
7
+ data.tar.gz: 5faad60852b78e749227f9bd7bfcaab16804b53177a9214e489285dbe1d8fb0e40057afbc055e43f7e66f542446d89912e1ff83b48ea10ca1b7f9c02a06ea53b
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.2.0"
13
+ gem 'stripe_tester', "~> 0.3.0"
14
14
  ```
15
15
  And then execute:
16
16
  ```bash
@@ -74,156 +74,14 @@ json = StripeTester.load_template(:invoice_payment_failed)
74
74
  json = StripeTester.load_template(:invoice_payment_failed, {"data"=>{"object"=>{"customer"=>"cus_MYCUSTOMERID"}}}, :method=>:merge)
75
75
  ```
76
76
 
77
- ## Supported Webhooks
78
-
79
- Version 2014-10-07:
80
-
81
- * account.updated
82
- * balance.available
83
- * charge.captured
84
- * charge.dispute.closed
85
- * charge.dispute.created
86
- * charge.dispute.updated
87
- * charge.failed
88
- * charge.refunded
89
- * charge.succeeded
90
- * charge.updated
91
- * coupon.created
92
- * coupon.deleted
93
- * customer.card.created
94
- * customer.card.deleted
95
- * customer.card.updated
96
- * customer.created
97
- * customer.deleted
98
- * customer.discount.created
99
- * customer.discount.deleted
100
- * customer.discount.updated
101
- * customer.subscription.created
102
- * customer.subscription.deleted
103
- * customer.subscription.trial.will.end
104
- * customer.subscription.updated
105
- * customer.updated
106
- * invoice.created
107
- * invoice.payment.failed
108
- * invoice.payment.succeeded
109
- * invoice.updated
110
- * invoiceitem.created
111
- * invoiceitem.deleted
112
- * invoiceitem.updated
113
- * plan.created
114
- * plan.deleted
115
- * plan.updated
116
- * transfer.created
117
- * transfer.failed
118
- * transfer.paid
119
- * transfer.updated
120
-
121
- Version 2013-08-13:
122
-
123
- * account.updated
124
- * balance.available
125
- * charge.dispute.closed
126
- * charge.dispute.created
127
- * charge.dispute.updated
128
- * charge.failed
129
- * charge.refunded
130
- * charge.succeeded
131
- * coupon.created
132
- * coupon.deleted
133
- * customer.card.created
134
- * customer.card.deleted
135
- * customer.card.updated
136
- * customer.created
137
- * customer.deleted
138
- * customer.discount.created
139
- * customer.discount.deleted
140
- * customer.discount.updated
141
- * customer.subscription.created
142
- * customer.subscription.deleted
143
- * customer.subscription.trial_will_end
144
- * customer.subscription.updated
145
- * customer.updated
146
- * invoice.created
147
- * invoice.payment_failed
148
- * invoice.payment_succeeded
149
- * invoice.updated
150
- * invoiceitem.created
151
- * invoiceitem.deleted
152
- * invoiceitem.updated
153
- * plan.created
154
- * plan.deleted
155
- * plan.updated
156
- * transfer.created
157
- * transfer.failed
158
- * transfer.paid
159
- * transfer.updated
160
-
161
- Version 2013-07-05:
162
-
163
- * charge.failed
164
- * charge.refunded
165
- * charge.succeeded
166
- * customer.created
167
- * customer.deleted
168
- * customer.subscription.created
169
- * customer.subscription.deleted
170
- * customer.subscription.updated
171
- * customer.subscription.trial.will.end
172
- * invoice.created
173
- * invoice.payment.failed
174
- * invoice.payment.succeeded
175
- * invoice.updated
176
-
177
- Version 2012-02-23:
178
-
179
- * account.updated
180
- * balance.available
181
- * charge.captured
182
- * charge.dispute.closed
183
- * charge.dispute.created
184
- * charge.dispute.updated
185
- * charge.failed
186
- * charge.refunded
187
- * charge.succeeded
188
- * charge.updated
189
- * coupon.created
190
- * coupon.deleted
191
- * customer.card.created
192
- * customer.card.deleted
193
- * customer.card.updated
194
- * customer.created
195
- * customer.deleted
196
- * customer.discount.created
197
- * customer.discount.deleted
198
- * customer.discount.updated
199
- * customer.subscription.created
200
- * customer.subscription.deleted
201
- * customer.subscription.trial.will.end
202
- * customer.subscription.updated
203
- * customer.updated
204
- * invoice.created
205
- * invoice.payment.failed
206
- * invoice.payment.succeeded
207
- * invoice.updated
208
- * invoiceitem.created
209
- * invoiceitem.deleted
210
- * invoiceitem.updated
211
- * plan.created
212
- * plan.deleted
213
- * plan.updated
214
- * transfer.created
215
- * transfer.failed
216
- * transfer.paid
217
- * transfer.updated
218
-
219
-
220
77
  ## Supported Stripe Webhook API Versions
221
78
 
222
- * 2014-10-07
223
- * 2013-08-13
224
- * 2013-07-05
225
- * 2013-02-13
226
- * 2012-02-23
79
+ * [2015-04-07](https://github.com/buttercloud/stripe_tester/blob/master/supported_webhook_versions.md#version-2015-04-07)
80
+ * [2014-10-07](https://github.com/buttercloud/stripe_tester/blob/master/supported_webhook_versions.md#version-2014-10-07)
81
+ * [2013-08-13](https://github.com/buttercloud/stripe_tester/blob/master/supported_webhook_versions.md#version-2013-08-13)
82
+ * [2013-07-05](https://github.com/buttercloud/stripe_tester/blob/master/supported_webhook_versions.md#version-2013-07-05)
83
+ * [2013-02-13](https://github.com/buttercloud/stripe_tester/blob/master/supported_webhook_versions.md#version-2013-02-13)
84
+ * [2012-02-23](https://github.com/buttercloud/stripe_tester/blob/master/supported_webhook_versions.md#version-2012-02-23)
227
85
 
228
86
  ## Contributing
229
87
 
@@ -1,3 +1,3 @@
1
1
  module StripeTester
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -0,0 +1,86 @@
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-04-07'
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
+ managed: false
32
+ product_description:
33
+ debit_negative_balances: true
34
+ bank_accounts:
35
+ object: list
36
+ total_count: 0
37
+ has_more: false
38
+ url: "/v1/accounts/acct_27GvSMUrw6nMBU84mVCr/bank_accounts"
39
+ data: []
40
+ verification:
41
+ fields_needed:
42
+ - legal_entity.verification.document
43
+ due_by: 1432317240
44
+ contacted: false
45
+ transfer_schedule:
46
+ delay_days: 7
47
+ interval: daily
48
+ decline_charge_on:
49
+ cvc_failure: false
50
+ avs_failure: false
51
+ tos_acceptance:
52
+ ip:
53
+ date:
54
+ user_agent:
55
+ legal_entity:
56
+ type:
57
+ business_name:
58
+ address:
59
+ line1:
60
+ line2:
61
+ city:
62
+ state:
63
+ postal_code:
64
+ country: US
65
+ first_name:
66
+ last_name:
67
+ personal_address:
68
+ line1:
69
+ line2:
70
+ city:
71
+ state:
72
+ postal_code:
73
+ country:
74
+ dob:
75
+ day:
76
+ month:
77
+ year:
78
+ additional_owners:
79
+ verification:
80
+ status: unverified
81
+ document:
82
+ details:
83
+ previous_attributes:
84
+ verification:
85
+ fields_needed: []
86
+ 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-04-07'
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,65 @@
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-04-07'
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
+ dynamic_last4:
41
+ metadata: {}
42
+ customer: cus_00000000000000
43
+ captured: true
44
+ balance_transaction: txn_00000000000000
45
+ failure_message:
46
+ failure_code:
47
+ amount_refunded: 0
48
+ customer: cus_00000000000000
49
+ invoice: in_00000000000000
50
+ description:
51
+ dispute:
52
+ metadata: {}
53
+ statement_descriptor:
54
+ fraud_details: {}
55
+ receipt_email:
56
+ receipt_number:
57
+ shipping:
58
+ destination:
59
+ application_fee:
60
+ refunds:
61
+ object: list
62
+ total_count: 0
63
+ has_more: false
64
+ url: "/v1/charges/ch_5MuSnHsHswLrRL/refunds"
65
+ data: []
@@ -0,0 +1,28 @@
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-04-07'
10
+ data:
11
+ object:
12
+ charge: ch_00000000000000
13
+ amount: 1000
14
+ created: 1432058487
15
+ status: won
16
+ livemode: false
17
+ currency: usd
18
+ object: dispute
19
+ reason: general
20
+ is_charge_refundable: false
21
+ balance_transactions: []
22
+ evidence_details:
23
+ due_by: 1433721599
24
+ past_due: false
25
+ has_evidence: false
26
+ submission_count: 0
27
+ evidence: Here is some evidence
28
+ metadata: {}
@@ -0,0 +1,55 @@
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-04-07'
10
+ data:
11
+ object:
12
+ charge: ch_00000000000000
13
+ amount: 1000
14
+ created: 1432058492
15
+ status: needs_response
16
+ livemode: false
17
+ currency: usd
18
+ object: dispute
19
+ reason: general
20
+ is_charge_refundable: false
21
+ balance_transactions: []
22
+ evidence_details:
23
+ due_by: 1433721599
24
+ past_due: false
25
+ has_evidence: false
26
+ submission_count: 0
27
+ evidence:
28
+ product_description:
29
+ customer_name:
30
+ customer_email_address:
31
+ customer_purchase_ip:
32
+ customer_signature:
33
+ billing_address:
34
+ receipt:
35
+ shipping_address:
36
+ shipping_date:
37
+ shipping_carrier:
38
+ shipping_tracking_number:
39
+ shipping_documentation:
40
+ access_activity_log:
41
+ service_date:
42
+ service_documentation:
43
+ duplicate_charge_id:
44
+ duplicate_charge_explanation:
45
+ duplicate_charge_documentation:
46
+ refund_policy:
47
+ refund_policy_disclosure:
48
+ refund_refusal_explanation:
49
+ cancellation_policy:
50
+ cancellation_policy_disclosure:
51
+ cancellation_rebuttal:
52
+ customer_communication:
53
+ uncategorized_text:
54
+ uncategorized_file:
55
+ metadata: {}