stripe_model_callbacks 0.1.1 → 0.1.2

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/app/services/stripe_model_callbacks/event_mocker_service.rb +1 -1
  3. data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.created.json +29 -0
  4. data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.deleted.json +29 -0
  5. data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.updated.json +31 -0
  6. data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.closed.json +65 -0
  7. data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.created.json +65 -0
  8. data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_reinstated.json +65 -0
  9. data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_withdrawn.json +65 -0
  10. data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.updated.json +96 -0
  11. data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.refund.updated.json +28 -0
  12. data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.refunded.json +98 -0
  13. data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.created.json +29 -0
  14. data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.deleted.json +29 -0
  15. data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.updated.json +31 -0
  16. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.bank_account.deleted.json +29 -0
  17. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.created.json +36 -0
  18. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.deleted.json +47 -0
  19. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.created.json +36 -0
  20. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.deleted.json +36 -0
  21. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.updated.json +55 -0
  22. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.created.card.json +80 -0
  23. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.created.json +53 -0
  24. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.deleted.json +53 -0
  25. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.expiring.json +53 -0
  26. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.updated.json +56 -0
  27. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.created.json +83 -0
  28. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.deleted.json +83 -0
  29. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.trial_will_end.json +88 -0
  30. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.updated.json +100 -0
  31. data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.updated.json +50 -0
  32. data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.created.json +90 -0
  33. data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_failed.json +90 -0
  34. data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_succeeded.json +188 -0
  35. data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.sent.json +90 -0
  36. data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.upcoming.json +90 -0
  37. data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.updated.json +95 -0
  38. data/lib/stripe_model_callbacks/fixtures/stripe_events/invoiceitem/invoiceitem.created.json +34 -0
  39. data/lib/stripe_model_callbacks/fixtures/stripe_events/order/order.created.json +72 -0
  40. data/lib/stripe_model_callbacks/fixtures/stripe_events/order/order.updated.json +74 -0
  41. data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.canceled.json +35 -0
  42. data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.created.json +35 -0
  43. data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.failed.json +35 -0
  44. data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.paid.json +35 -0
  45. data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.updated.json +37 -0
  46. data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.created.json +27 -0
  47. data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.deleted.json +27 -0
  48. data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.updated.json +30 -0
  49. data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.created.json +48 -0
  50. data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.deleted.json +48 -0
  51. data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.updated.json +50 -0
  52. data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.created.json +37 -0
  53. data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.deleted.json +37 -0
  54. data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.updated.json +39 -0
  55. data/lib/stripe_model_callbacks/fixtures/stripe_events/review/review.closed.json +21 -0
  56. data/lib/stripe_model_callbacks/fixtures/stripe_events/review/review.opened.json +21 -0
  57. data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.created.json +36 -0
  58. data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.deleted.json +36 -0
  59. data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.updated.json +38 -0
  60. data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.canceled.json +53 -0
  61. data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.chargeable.json +53 -0
  62. data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.failed.json +53 -0
  63. data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.mandate_notification.json +53 -0
  64. data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.transaction_created.json +21 -0
  65. data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.created.json +41 -0
  66. data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.reversed.json +40 -0
  67. data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.updated.json +44 -0
  68. data/lib/stripe_model_callbacks/version.rb +1 -1
  69. metadata +66 -1
@@ -0,0 +1,21 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "source.transaction.created",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "btctxn_00000000000000",
13
+ "object": "bitcoin_transaction",
14
+ "amount": 300,
15
+ "bitcoin_amount": 3000000,
16
+ "created": 1517906694,
17
+ "currency": "usd",
18
+ "receiver": "btcrcv_1B2J9N2eZvKYlo2C9nVfoiuu"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "transfer.created",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "tr_00000000000000",
13
+ "object": "transfer",
14
+ "amount": 1100,
15
+ "amount_reversed": 0,
16
+ "balance_transaction": "txn_00000000000000",
17
+ "created": 1517907211,
18
+ "currency": "usd",
19
+ "description": null,
20
+ "destination": "acct_1Brq15AT5SYrvIfd",
21
+ "destination_payment": "py_CH0DW4ihzdQQCd",
22
+ "livemode": false,
23
+ "metadata": {
24
+ },
25
+ "reversals": {
26
+ "object": "list",
27
+ "data": [
28
+
29
+ ],
30
+ "has_more": false,
31
+ "total_count": 0,
32
+ "url": "/v1/transfers/tr_1BsSClAT5SYrvIfdN12tbSTG/reversals"
33
+ },
34
+ "reversed": false,
35
+ "source_transaction": null,
36
+ "source_type": "card",
37
+ "transfer_group": null,
38
+ "status": "pending"
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "transfer.reversed",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "tr_00000000000000",
13
+ "object": "transfer",
14
+ "amount": 1100,
15
+ "amount_reversed": 0,
16
+ "balance_transaction": "txn_00000000000000",
17
+ "created": 1517907289,
18
+ "currency": "usd",
19
+ "description": null,
20
+ "destination": "acct_1Brq15AT5SYrvIfd",
21
+ "destination_payment": "py_CH0EOf6bFQq9g2",
22
+ "livemode": false,
23
+ "metadata": {
24
+ },
25
+ "reversals": {
26
+ "object": "list",
27
+ "data": [
28
+
29
+ ],
30
+ "has_more": false,
31
+ "total_count": 0,
32
+ "url": "/v1/transfers/tr_1BsSE1AT5SYrvIfdP8OdqFvQ/reversals"
33
+ },
34
+ "reversed": false,
35
+ "source_transaction": null,
36
+ "source_type": "card",
37
+ "transfer_group": null
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "transfer.updated",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "tr_00000000000000",
13
+ "object": "transfer",
14
+ "amount": 1100,
15
+ "amount_reversed": 0,
16
+ "balance_transaction": "txn_00000000000000",
17
+ "created": 1517907302,
18
+ "currency": "usd",
19
+ "description": null,
20
+ "destination": "acct_1Brq15AT5SYrvIfd",
21
+ "destination_payment": "py_CH0EWJqnvFoKjv",
22
+ "livemode": false,
23
+ "metadata": {
24
+ },
25
+ "reversals": {
26
+ "object": "list",
27
+ "data": [
28
+
29
+ ],
30
+ "has_more": false,
31
+ "total_count": 0,
32
+ "url": "/v1/transfers/tr_1BsSEEAT5SYrvIfdWexl6CKu/reversals"
33
+ },
34
+ "reversed": false,
35
+ "source_transaction": null,
36
+ "source_type": "card",
37
+ "transfer_group": null,
38
+ "status": "pending"
39
+ },
40
+ "previous_attributes": {
41
+ "description": "Old description"
42
+ }
43
+ }
44
+ }
@@ -1,3 +1,3 @@
1
1
  module StripeModelCallbacks
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe_model_callbacks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
@@ -220,6 +220,71 @@ files:
220
220
  - lib/stripe_model_callbacks/factories/stripe_subscriptions.rb
221
221
  - lib/stripe_model_callbacks/factories/stripe_transfers.rb
222
222
  - lib/stripe_model_callbacks/factory_bot_definitions.rb
223
+ - lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.created.json
224
+ - lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.deleted.json
225
+ - lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.updated.json
226
+ - lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.closed.json
227
+ - lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.created.json
228
+ - lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_reinstated.json
229
+ - lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_withdrawn.json
230
+ - lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.updated.json
231
+ - lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.refund.updated.json
232
+ - lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.refunded.json
233
+ - lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.created.json
234
+ - lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.deleted.json
235
+ - lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.updated.json
236
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.bank_account.deleted.json
237
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.created.json
238
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.deleted.json
239
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.created.json
240
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.deleted.json
241
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.updated.json
242
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.created.card.json
243
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.created.json
244
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.deleted.json
245
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.expiring.json
246
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.updated.json
247
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.created.json
248
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.deleted.json
249
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.trial_will_end.json
250
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.updated.json
251
+ - lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.updated.json
252
+ - lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.created.json
253
+ - lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_failed.json
254
+ - lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_succeeded.json
255
+ - lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.sent.json
256
+ - lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.upcoming.json
257
+ - lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.updated.json
258
+ - lib/stripe_model_callbacks/fixtures/stripe_events/invoiceitem/invoiceitem.created.json
259
+ - lib/stripe_model_callbacks/fixtures/stripe_events/order/order.created.json
260
+ - lib/stripe_model_callbacks/fixtures/stripe_events/order/order.updated.json
261
+ - lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.canceled.json
262
+ - lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.created.json
263
+ - lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.failed.json
264
+ - lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.paid.json
265
+ - lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.updated.json
266
+ - lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.created.json
267
+ - lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.deleted.json
268
+ - lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.updated.json
269
+ - lib/stripe_model_callbacks/fixtures/stripe_events/product/product.created.json
270
+ - lib/stripe_model_callbacks/fixtures/stripe_events/product/product.deleted.json
271
+ - lib/stripe_model_callbacks/fixtures/stripe_events/product/product.updated.json
272
+ - lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.created.json
273
+ - lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.deleted.json
274
+ - lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.updated.json
275
+ - lib/stripe_model_callbacks/fixtures/stripe_events/review/review.closed.json
276
+ - lib/stripe_model_callbacks/fixtures/stripe_events/review/review.opened.json
277
+ - lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.created.json
278
+ - lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.deleted.json
279
+ - lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.updated.json
280
+ - lib/stripe_model_callbacks/fixtures/stripe_events/source/source.canceled.json
281
+ - lib/stripe_model_callbacks/fixtures/stripe_events/source/source.chargeable.json
282
+ - lib/stripe_model_callbacks/fixtures/stripe_events/source/source.failed.json
283
+ - lib/stripe_model_callbacks/fixtures/stripe_events/source/source.mandate_notification.json
284
+ - lib/stripe_model_callbacks/fixtures/stripe_events/source/source.transaction_created.json
285
+ - lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.created.json
286
+ - lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.reversed.json
287
+ - lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.updated.json
223
288
  - lib/stripe_model_callbacks/models/stripe_bank_account.rb
224
289
  - lib/stripe_model_callbacks/models/stripe_card.rb
225
290
  - lib/stripe_model_callbacks/models/stripe_charge.rb