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.
- checksums.yaml +4 -4
- data/app/services/stripe_model_callbacks/event_mocker_service.rb +1 -1
- data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.created.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.deleted.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.updated.json +31 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.closed.json +65 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.created.json +65 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_reinstated.json +65 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_withdrawn.json +65 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.updated.json +96 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.refund.updated.json +28 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.refunded.json +98 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.created.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.deleted.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.updated.json +31 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.bank_account.deleted.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.created.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.deleted.json +47 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.created.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.deleted.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.updated.json +55 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.created.card.json +80 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.created.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.deleted.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.expiring.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.updated.json +56 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.created.json +83 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.deleted.json +83 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.trial_will_end.json +88 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.updated.json +100 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.updated.json +50 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.created.json +90 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_failed.json +90 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_succeeded.json +188 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.sent.json +90 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.upcoming.json +90 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.updated.json +95 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoiceitem/invoiceitem.created.json +34 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/order/order.created.json +72 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/order/order.updated.json +74 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.canceled.json +35 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.created.json +35 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.failed.json +35 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.paid.json +35 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.updated.json +37 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.created.json +27 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.deleted.json +27 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.updated.json +30 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.created.json +48 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.deleted.json +48 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.updated.json +50 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.created.json +37 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.deleted.json +37 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.updated.json +39 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/review/review.closed.json +21 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/review/review.opened.json +21 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.created.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.deleted.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.updated.json +38 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.canceled.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.chargeable.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.failed.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.mandate_notification.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.transaction_created.json +21 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.created.json +41 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.reversed.json +40 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.updated.json +44 -0
- data/lib/stripe_model_callbacks/version.rb +1 -1
- 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
|
+
}
|
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.
|
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
|