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,35 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "payout.canceled",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "po_00000000000000",
13
+ "object": "payout",
14
+ "amount": 1100,
15
+ "arrival_date": 1517918190,
16
+ "automatic": true,
17
+ "balance_transaction": "txn_00000000000000",
18
+ "created": 1517918190,
19
+ "currency": "usd",
20
+ "description": "STRIPE TRANSFER",
21
+ "destination": "ba_1BsV3qAT5SYrvIfdnujA67t8",
22
+ "failure_balance_transaction": null,
23
+ "failure_code": null,
24
+ "failure_message": null,
25
+ "livemode": false,
26
+ "metadata": {
27
+ },
28
+ "method": "standard",
29
+ "source_type": "card",
30
+ "statement_descriptor": null,
31
+ "status": "in_transit",
32
+ "type": "bank_account"
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "payout.created",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "po_00000000000000",
13
+ "object": "payout",
14
+ "amount": 1100,
15
+ "arrival_date": 1517910770,
16
+ "automatic": true,
17
+ "balance_transaction": "txn_00000000000000",
18
+ "created": 1517910770,
19
+ "currency": "usd",
20
+ "description": "STRIPE TRANSFER",
21
+ "destination": "ba_1BsT8AAT5SYrvIfdkZIbPLDE",
22
+ "failure_balance_transaction": null,
23
+ "failure_code": null,
24
+ "failure_message": null,
25
+ "livemode": false,
26
+ "metadata": {
27
+ },
28
+ "method": "standard",
29
+ "source_type": "card",
30
+ "statement_descriptor": null,
31
+ "status": "in_transit",
32
+ "type": "bank_account"
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "payout.failed",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "po_00000000000000",
13
+ "object": "payout",
14
+ "amount": 1100,
15
+ "arrival_date": 1517910786,
16
+ "automatic": true,
17
+ "balance_transaction": "txn_00000000000000",
18
+ "created": 1517910786,
19
+ "currency": "usd",
20
+ "description": "STRIPE TRANSFER",
21
+ "destination": "ba_1BsT8QAT5SYrvIfduKND65c8",
22
+ "failure_balance_transaction": null,
23
+ "failure_code": null,
24
+ "failure_message": null,
25
+ "livemode": false,
26
+ "metadata": {
27
+ },
28
+ "method": "standard",
29
+ "source_type": "card",
30
+ "statement_descriptor": null,
31
+ "status": "in_transit",
32
+ "type": "bank_account"
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "payout.paid",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "po_00000000000000",
13
+ "object": "payout",
14
+ "amount": 1100,
15
+ "arrival_date": 1517910798,
16
+ "automatic": true,
17
+ "balance_transaction": "txn_00000000000000",
18
+ "created": 1517910798,
19
+ "currency": "usd",
20
+ "description": "STRIPE TRANSFER",
21
+ "destination": "ba_1BsT8cAT5SYrvIfdXBCtuntu",
22
+ "failure_balance_transaction": null,
23
+ "failure_code": null,
24
+ "failure_message": null,
25
+ "livemode": false,
26
+ "metadata": {
27
+ },
28
+ "method": "standard",
29
+ "source_type": "card",
30
+ "statement_descriptor": null,
31
+ "status": "in_transit",
32
+ "type": "bank_account"
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "payout.updated",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "po_00000000000000",
13
+ "object": "payout",
14
+ "amount": 1100,
15
+ "arrival_date": 1517910811,
16
+ "automatic": true,
17
+ "balance_transaction": "txn_00000000000000",
18
+ "created": 1517910811,
19
+ "currency": "usd",
20
+ "description": "STRIPE TRANSFER",
21
+ "destination": "ba_1BsT8pAT5SYrvIfdJ1H9pxSo",
22
+ "failure_balance_transaction": null,
23
+ "failure_code": null,
24
+ "failure_message": null,
25
+ "livemode": false,
26
+ "metadata": {
27
+ },
28
+ "method": "standard",
29
+ "source_type": "card",
30
+ "statement_descriptor": null,
31
+ "status": "in_transit",
32
+ "type": "bank_account"
33
+ },
34
+ "previous_attributes": {
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "plan.created",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-02-05",
10
+ "data": {
11
+ "object": {
12
+ "id": "peak_00000000000000",
13
+ "object": "plan",
14
+ "amount": 6000,
15
+ "created": 1517990173,
16
+ "currency": "dkk",
17
+ "interval": "month",
18
+ "interval_count": 1,
19
+ "livemode": false,
20
+ "metadata": {
21
+ },
22
+ "nickname": null,
23
+ "product": "prod_00000000000000",
24
+ "trial_period_days": null
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "plan.deleted",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-02-05",
10
+ "data": {
11
+ "object": {
12
+ "id": "peak_00000000000000",
13
+ "object": "plan",
14
+ "amount": 6000,
15
+ "created": 1517990173,
16
+ "currency": "dkk",
17
+ "interval": "month",
18
+ "interval_count": 1,
19
+ "livemode": false,
20
+ "metadata": {
21
+ },
22
+ "nickname": null,
23
+ "product": "prod_00000000000000",
24
+ "trial_period_days": null
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "plan.updated",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-02-05",
10
+ "data": {
11
+ "object": {
12
+ "id": "peak_00000000000000",
13
+ "object": "plan",
14
+ "amount": 6000,
15
+ "created": 1517990173,
16
+ "currency": "dkk",
17
+ "interval": "month",
18
+ "interval_count": 1,
19
+ "livemode": false,
20
+ "metadata": {
21
+ },
22
+ "nickname": null,
23
+ "product": "prod_00000000000000",
24
+ "trial_period_days": null
25
+ },
26
+ "previous_attributes": {
27
+ "name": "Old name"
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "product.created",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "prod_00000000000000",
13
+ "object": "product",
14
+ "active": null,
15
+ "attributes": [
16
+
17
+ ],
18
+ "caption": null,
19
+ "created": 1517762945,
20
+ "deactivate_on": [
21
+
22
+ ],
23
+ "description": null,
24
+ "images": [
25
+
26
+ ],
27
+ "livemode": false,
28
+ "metadata": {
29
+ },
30
+ "name": "Extra Large",
31
+ "package_dimensions": null,
32
+ "shippable": null,
33
+ "skus": {
34
+ "object": "list",
35
+ "data": [
36
+
37
+ ],
38
+ "has_more": false,
39
+ "total_count": 0,
40
+ "url": "/v1/skus?product=prod_CGNQiDdCjKYLxz\u0026active=true"
41
+ },
42
+ "statement_descriptor": null,
43
+ "type": "service",
44
+ "updated": 1517762945,
45
+ "url": null
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "product.deleted",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "prod_00000000000000",
13
+ "object": "product",
14
+ "active": null,
15
+ "attributes": [
16
+
17
+ ],
18
+ "caption": null,
19
+ "created": 1517762945,
20
+ "deactivate_on": [
21
+
22
+ ],
23
+ "description": null,
24
+ "images": [
25
+
26
+ ],
27
+ "livemode": false,
28
+ "metadata": {
29
+ },
30
+ "name": "Extra Large",
31
+ "package_dimensions": null,
32
+ "shippable": null,
33
+ "skus": {
34
+ "object": "list",
35
+ "data": [
36
+
37
+ ],
38
+ "has_more": false,
39
+ "total_count": 0,
40
+ "url": "/v1/skus?product=prod_CGNQiDdCjKYLxz\u0026active=true"
41
+ },
42
+ "statement_descriptor": null,
43
+ "type": "service",
44
+ "updated": 1517762945,
45
+ "url": null
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "product.updated",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "prod_00000000000000",
13
+ "object": "product",
14
+ "active": null,
15
+ "attributes": [
16
+
17
+ ],
18
+ "caption": null,
19
+ "created": 1517762945,
20
+ "deactivate_on": [
21
+
22
+ ],
23
+ "description": null,
24
+ "images": [
25
+
26
+ ],
27
+ "livemode": false,
28
+ "metadata": {
29
+ },
30
+ "name": "Extra Large",
31
+ "package_dimensions": null,
32
+ "shippable": null,
33
+ "skus": {
34
+ "object": "list",
35
+ "data": [
36
+
37
+ ],
38
+ "has_more": false,
39
+ "total_count": 0,
40
+ "url": "/v1/skus?product=prod_CGNQiDdCjKYLxz\u0026active=true"
41
+ },
42
+ "statement_descriptor": null,
43
+ "type": "service",
44
+ "updated": 1517762945,
45
+ "url": null
46
+ },
47
+ "previous_attributes": {
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "created": 1326853478,
3
+ "livemode": false,
4
+ "id": "evt_00000000000000",
5
+ "type": "recipient.created",
6
+ "object": "event",
7
+ "request": null,
8
+ "pending_webhooks": 1,
9
+ "api_version": "2018-01-23",
10
+ "data": {
11
+ "object": {
12
+ "id": "rp_00000000000000",
13
+ "object": "recipient",
14
+ "active_account": null,
15
+ "cards": {
16
+ "object": "list",
17
+ "data": [
18
+
19
+ ],
20
+ "has_more": false,
21
+ "total_count": 0,
22
+ "url": "/v1/recipients/rp_1BsGcSAT5SYrvIfduRsLVVIY/cards"
23
+ },
24
+ "created": 1517862676,
25
+ "default_card": null,
26
+ "description": "Recipient for John Doe",
27
+ "email": "test@example.com",
28
+ "livemode": false,
29
+ "metadata": {
30
+ },
31
+ "migrated_to": null,
32
+ "name": "John Doe",
33
+ "type": "individual",
34
+ "verified": false
35
+ }
36
+ }
37
+ }