stripe_model_callbacks 0.1.1 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -1
- data/app/models/stripe_model_callbacks/application_record.rb +17 -0
- data/app/services/stripe_model_callbacks/account/external_account/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/attributes_assigner_service.rb +1 -1
- data/app/services/stripe_model_callbacks/base_service.rb +37 -4
- data/app/services/stripe_model_callbacks/charge/dispute_updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/charge/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/configure_service.rb +52 -24
- data/app/services/stripe_model_callbacks/coupon/sync_all.rb +9 -0
- data/app/services/stripe_model_callbacks/coupon/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/customer/bank_account/deleted_service.rb +1 -1
- data/app/services/stripe_model_callbacks/customer/deleted_service.rb +1 -1
- data/app/services/stripe_model_callbacks/customer/discount_updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/customer/source_updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/customer/subscription/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/customer/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/event_mocker_service.rb +1 -1
- data/app/services/stripe_model_callbacks/invoice/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/invoice_item/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/notifier_service.rb +1 -1
- data/app/services/stripe_model_callbacks/order/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/payout/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/plan/sync_all.rb +9 -0
- data/app/services/stripe_model_callbacks/plan/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/price/updated_service.rb +14 -0
- data/app/services/stripe_model_callbacks/product/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/recipient/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/refund/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/review/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/sku/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/source/updated_service.rb +1 -1
- data/app/services/stripe_model_callbacks/subscription/state_checker_service.rb +2 -2
- data/app/services/stripe_model_callbacks/subscription_schedule/updated_service.rb +46 -0
- data/app/services/stripe_model_callbacks/sync_everything.rb +8 -0
- data/app/services/stripe_model_callbacks/sync_from_stripe.rb +29 -0
- data/app/services/stripe_model_callbacks/tax_rate/updated_service.rb +27 -0
- data/app/services/stripe_model_callbacks/transfer/updated_service.rb +1 -1
- data/config/routes.rb +1 -1
- data/db/migrate/20180206151132_change_activities_trackable_id_to_string.rb +1 -1
- data/db/migrate/20180208091647_change_stripe_subscription_items_quantity_to_integer.rb +1 -1
- data/db/migrate/20200317160513_add_auto_advance_and_billing_reason_to_stripe_invoices.rb +6 -0
- data/db/migrate/20200317160602_add_status_and_status_transitions_to_stripe_invoices.rb +10 -0
- data/db/migrate/20200317180115_add_product_type_to_products.rb +5 -0
- data/db/migrate/20200317181224_rename_stripe_invoices_application_fee_to_application_fee_amount.rb +6 -0
- data/db/migrate/20200320105158_make_stripe_invoices_forgive_optional.rb +5 -0
- data/db/migrate/20200320114859_make_stripe_invoice_closed_optional.rb +5 -0
- data/db/migrate/20200323143634_add_amount_paid_and_remaining_and_invoice_url_and_pdf.rb +11 -0
- data/db/migrate/20200331074940_add_unit_label_to_stripe_products.rb +5 -0
- data/db/migrate/20200331075241_add_metered_info_to_stripe_plans.rb +9 -0
- data/db/migrate/20200513131105_create_stripe_subscription_schedules.rb +31 -0
- data/db/migrate/20200513131120_create_stripe_subscription_schedule_phases.rb +21 -0
- data/db/migrate/20200513131640_create_stripe_subscription_schedule_phase_plans.rb +13 -0
- data/db/migrate/20200514132247_add_stripe_id_uniq_to_stripe_invoices.rb +8 -0
- data/db/migrate/20200520152604_change_stripe_subscription_schedule_phase_id_to_bigint.rb +27 -0
- data/db/migrate/20200529144649_add_latest_invoice_id_to_stripe_subscription.rb +5 -0
- data/db/migrate/20201223173035_rename_stripe_subscriptions_start_to_start_date.rb +5 -0
- data/db/migrate/20201223202117_create_stripe_tax_rates.rb +15 -0
- data/db/migrate/20201224120534_create_stripe_subscription_default_tax_rates.rb +9 -0
- data/db/migrate/20201224122058_create_stripe_prices.rb +26 -0
- data/db/migrate/20201224123838_add_stripe_price_to_stripe_subscription_items.rb +6 -0
- data/db/migrate/20211121155313_change_invoice_billing_to_nullable.rb +5 -0
- data/db/migrate/20211121155732_rename_invoices_billing_to_deprecated_billing.rb +5 -0
- data/lib/stripe_model_callbacks/configuration.rb +1 -1
- data/lib/stripe_model_callbacks/factories/stripe_coupons.rb +16 -0
- data/lib/stripe_model_callbacks/factories/stripe_invoices.rb +1 -1
- data/lib/stripe_model_callbacks/factories/stripe_plans.rb +3 -1
- data/lib/stripe_model_callbacks/factories/stripe_prices.rb +3 -0
- data/lib/stripe_model_callbacks/factories/stripe_products.rb +13 -0
- data/lib/stripe_model_callbacks/factories/stripe_subscription_default_tax_rates.rb +6 -0
- data/lib/stripe_model_callbacks/factories/stripe_subscription_schedule.rb.rb +5 -0
- data/lib/stripe_model_callbacks/factories/stripe_subscription_schedule_phase_plan.rb +5 -0
- data/lib/stripe_model_callbacks/factories/stripe_subscription_schedule_phases.rb +5 -0
- data/lib/stripe_model_callbacks/factories/stripe_subscriptions.rb +1 -1
- data/lib/stripe_model_callbacks/factories/stripe_tax_rates.rb +5 -0
- 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.2020-12-24.json +112 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.created.json +84 -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 +135 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_failed.json +100 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_succeeded.json +207 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.sent.json +100 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.upcoming.json +100 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.updated.json +105 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.voided.json +152 -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 +32 -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/price/price.created.json +37 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/price/price.deleted.json +37 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/price/price.updated.json +40 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.created.json +49 -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/subscription_schedule/subscription_schedule.canceled.json +81 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/subscription_schedule/subscription_schedule.created.json +77 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/subscription_schedule/subscription_schedule.updated.json +87 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/tax_rate/tax_rate.created.json +26 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/tax_rate/tax_rate.updated.json +29 -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/models/stripe_bank_account.rb +1 -0
- data/lib/stripe_model_callbacks/models/stripe_card.rb +2 -1
- data/lib/stripe_model_callbacks/models/stripe_charge.rb +3 -0
- data/lib/stripe_model_callbacks/models/stripe_coupon.rb +1 -0
- data/lib/stripe_model_callbacks/models/stripe_customer.rb +4 -2
- data/lib/stripe_model_callbacks/models/stripe_discount.rb +10 -3
- data/lib/stripe_model_callbacks/models/stripe_dispute.rb +1 -0
- data/lib/stripe_model_callbacks/models/stripe_invoice.rb +62 -7
- data/lib/stripe_model_callbacks/models/stripe_invoice_item.rb +2 -0
- data/lib/stripe_model_callbacks/models/stripe_order.rb +1 -0
- data/lib/stripe_model_callbacks/models/stripe_order_item.rb +1 -0
- data/lib/stripe_model_callbacks/models/stripe_payout.rb +2 -1
- data/lib/stripe_model_callbacks/models/stripe_plan.rb +4 -1
- data/lib/stripe_model_callbacks/models/stripe_price.rb +27 -0
- data/lib/stripe_model_callbacks/models/stripe_product.rb +17 -7
- data/lib/stripe_model_callbacks/models/stripe_recipient.rb +1 -0
- data/lib/stripe_model_callbacks/models/stripe_refund.rb +1 -0
- data/lib/stripe_model_callbacks/models/stripe_review.rb +1 -0
- data/lib/stripe_model_callbacks/models/stripe_sku.rb +13 -6
- data/lib/stripe_model_callbacks/models/stripe_source.rb +4 -2
- data/lib/stripe_model_callbacks/models/stripe_subscription.rb +56 -6
- data/lib/stripe_model_callbacks/models/stripe_subscription_default_tax_rate.rb +4 -0
- data/lib/stripe_model_callbacks/models/stripe_subscription_item.rb +19 -1
- data/lib/stripe_model_callbacks/models/stripe_subscription_schedule.rb +94 -0
- data/lib/stripe_model_callbacks/models/stripe_subscription_schedule_phase.rb +67 -0
- data/lib/stripe_model_callbacks/models/stripe_subscription_schedule_phase_plan.rb +37 -0
- data/lib/stripe_model_callbacks/models/stripe_tax_rate.rb +22 -0
- data/lib/stripe_model_callbacks/models/stripe_transfer.rb +1 -0
- data/lib/stripe_model_callbacks/version.rb +1 -1
- data/lib/stripe_model_callbacks.rb +1 -0
- metadata +176 -24
- data/app/assets/config/stripe_model_callbacks_manifest.js +0 -2
- data/app/assets/javascripts/stripe_model_callbacks/application.js +0 -13
- data/app/assets/stylesheets/stripe_model_callbacks/application.css +0 -15
- data/app/controllers/stripe_model_callbacks/application_controller.rb +0 -3
- data/app/jobs/stripe_model_callbacks/application_job.rb +0 -2
- data/app/mailers/stripe_model_callbacks/application_mailer.rb +0 -4
- data/app/views/layouts/stripe_model_callbacks/application.html.erb +0 -14
@@ -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
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "recipient.deleted",
|
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_1BsGdUAT5SYrvIfdO2mKG5rT/cards"
|
23
|
+
},
|
24
|
+
"created": 1517862740,
|
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
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "recipient.updated",
|
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_1BsGduAT5SYrvIfdk3BOUh7c/cards"
|
23
|
+
},
|
24
|
+
"created": 1517862766,
|
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
|
+
"previous_attributes": {
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "review.closed",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-05",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "prv_00000000000000",
|
13
|
+
"object": "review",
|
14
|
+
"charge": "ch_00000000000000",
|
15
|
+
"created": 1518091642,
|
16
|
+
"livemode": false,
|
17
|
+
"open": true,
|
18
|
+
"reason": "rule"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "review.opened",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-05",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "prv_00000000000000",
|
13
|
+
"object": "review",
|
14
|
+
"charge": "ch_00000000000000",
|
15
|
+
"created": 1518091606,
|
16
|
+
"livemode": false,
|
17
|
+
"open": true,
|
18
|
+
"reason": "rule"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "sku.created",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "sku_00000000000000",
|
13
|
+
"object": "sku",
|
14
|
+
"active": true,
|
15
|
+
"attributes": {
|
16
|
+
"size": "Medium",
|
17
|
+
"gender": "Unisex"
|
18
|
+
},
|
19
|
+
"created": 1517860189,
|
20
|
+
"currency": "usd",
|
21
|
+
"image": null,
|
22
|
+
"inventory": {
|
23
|
+
"quantity": 50,
|
24
|
+
"type": "finite",
|
25
|
+
"value": null
|
26
|
+
},
|
27
|
+
"livemode": false,
|
28
|
+
"metadata": {
|
29
|
+
},
|
30
|
+
"package_dimensions": null,
|
31
|
+
"price": 1500,
|
32
|
+
"product": "prod_00000000000000",
|
33
|
+
"updated": 1517860189
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "sku.deleted",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "sku_00000000000000",
|
13
|
+
"object": "sku",
|
14
|
+
"active": true,
|
15
|
+
"attributes": {
|
16
|
+
"size": "Medium",
|
17
|
+
"gender": "Unisex"
|
18
|
+
},
|
19
|
+
"created": 1517860796,
|
20
|
+
"currency": "usd",
|
21
|
+
"image": null,
|
22
|
+
"inventory": {
|
23
|
+
"quantity": 50,
|
24
|
+
"type": "finite",
|
25
|
+
"value": null
|
26
|
+
},
|
27
|
+
"livemode": false,
|
28
|
+
"metadata": {
|
29
|
+
},
|
30
|
+
"package_dimensions": null,
|
31
|
+
"price": 1500,
|
32
|
+
"product": "prod_00000000000000",
|
33
|
+
"updated": 1517860796
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "sku.updated",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "sku_00000000000000",
|
13
|
+
"object": "sku",
|
14
|
+
"active": true,
|
15
|
+
"attributes": {
|
16
|
+
"size": "Medium",
|
17
|
+
"gender": "Unisex"
|
18
|
+
},
|
19
|
+
"created": 1517860625,
|
20
|
+
"currency": "usd",
|
21
|
+
"image": null,
|
22
|
+
"inventory": {
|
23
|
+
"quantity": 50,
|
24
|
+
"type": "finite",
|
25
|
+
"value": null
|
26
|
+
},
|
27
|
+
"livemode": false,
|
28
|
+
"metadata": {
|
29
|
+
},
|
30
|
+
"package_dimensions": null,
|
31
|
+
"price": 1500,
|
32
|
+
"product": "prod_00000000000000",
|
33
|
+
"updated": 1517860625
|
34
|
+
},
|
35
|
+
"previous_attributes": {
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "source.canceled",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "src_00000000000000",
|
13
|
+
"object": "source",
|
14
|
+
"amount": null,
|
15
|
+
"client_secret": "src_client_secret_CGz38yIZuPGBR0ytLA9HdqqJ",
|
16
|
+
"created": 1517902906,
|
17
|
+
"currency": "usd",
|
18
|
+
"flow": "receiver",
|
19
|
+
"livemode": false,
|
20
|
+
"metadata": {
|
21
|
+
},
|
22
|
+
"owner": {
|
23
|
+
"address": null,
|
24
|
+
"email": "jenny.rosen@example.com",
|
25
|
+
"name": null,
|
26
|
+
"phone": null,
|
27
|
+
"verified_address": null,
|
28
|
+
"verified_email": null,
|
29
|
+
"verified_name": null,
|
30
|
+
"verified_phone": null
|
31
|
+
},
|
32
|
+
"receiver": {
|
33
|
+
"address": "121042882-38381234567890123",
|
34
|
+
"amount_charged": 0,
|
35
|
+
"amount_received": 0,
|
36
|
+
"amount_returned": 0,
|
37
|
+
"refund_attributes_method": "email",
|
38
|
+
"refund_attributes_status": "missing"
|
39
|
+
},
|
40
|
+
"statement_descriptor": null,
|
41
|
+
"status": "pending",
|
42
|
+
"type": "ach_credit_transfer",
|
43
|
+
"usage": "reusable",
|
44
|
+
"ach_credit_transfer": {
|
45
|
+
"account_number": "test_52796e3294dc",
|
46
|
+
"routing_number": "110000000",
|
47
|
+
"fingerprint": "ecpwEzmBOSMOqQTL",
|
48
|
+
"bank_name": "TEST BANK",
|
49
|
+
"swift_code": "TSTEZ122"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "source.chargeable",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "src_00000000000000",
|
13
|
+
"object": "source",
|
14
|
+
"amount": null,
|
15
|
+
"client_secret": "src_client_secret_CH01F485RhmrXTuK10ExxZVs",
|
16
|
+
"created": 1517906510,
|
17
|
+
"currency": "usd",
|
18
|
+
"flow": "receiver",
|
19
|
+
"livemode": false,
|
20
|
+
"metadata": {
|
21
|
+
},
|
22
|
+
"owner": {
|
23
|
+
"address": null,
|
24
|
+
"email": "jenny.rosen@example.com",
|
25
|
+
"name": null,
|
26
|
+
"phone": null,
|
27
|
+
"verified_address": null,
|
28
|
+
"verified_email": null,
|
29
|
+
"verified_name": null,
|
30
|
+
"verified_phone": null
|
31
|
+
},
|
32
|
+
"receiver": {
|
33
|
+
"address": "121042882-38381234567890123",
|
34
|
+
"amount_charged": 0,
|
35
|
+
"amount_received": 0,
|
36
|
+
"amount_returned": 0,
|
37
|
+
"refund_attributes_method": "email",
|
38
|
+
"refund_attributes_status": "missing"
|
39
|
+
},
|
40
|
+
"statement_descriptor": null,
|
41
|
+
"status": "pending",
|
42
|
+
"type": "ach_credit_transfer",
|
43
|
+
"usage": "reusable",
|
44
|
+
"ach_credit_transfer": {
|
45
|
+
"account_number": "test_52796e3294dc",
|
46
|
+
"routing_number": "110000000",
|
47
|
+
"fingerprint": "ecpwEzmBOSMOqQTL",
|
48
|
+
"bank_name": "TEST BANK",
|
49
|
+
"swift_code": "TSTEZ122"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "source.failed",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "src_00000000000000",
|
13
|
+
"object": "source",
|
14
|
+
"amount": null,
|
15
|
+
"client_secret": "src_client_secret_CGz4B3s2LM5ZBtZuTHwuPxgc",
|
16
|
+
"created": 1517902949,
|
17
|
+
"currency": "usd",
|
18
|
+
"flow": "receiver",
|
19
|
+
"livemode": false,
|
20
|
+
"metadata": {
|
21
|
+
},
|
22
|
+
"owner": {
|
23
|
+
"address": null,
|
24
|
+
"email": "jenny.rosen@example.com",
|
25
|
+
"name": null,
|
26
|
+
"phone": null,
|
27
|
+
"verified_address": null,
|
28
|
+
"verified_email": null,
|
29
|
+
"verified_name": null,
|
30
|
+
"verified_phone": null
|
31
|
+
},
|
32
|
+
"receiver": {
|
33
|
+
"address": "121042882-38381234567890123",
|
34
|
+
"amount_charged": 0,
|
35
|
+
"amount_received": 0,
|
36
|
+
"amount_returned": 0,
|
37
|
+
"refund_attributes_method": "email",
|
38
|
+
"refund_attributes_status": "missing"
|
39
|
+
},
|
40
|
+
"statement_descriptor": null,
|
41
|
+
"status": "pending",
|
42
|
+
"type": "ach_credit_transfer",
|
43
|
+
"usage": "reusable",
|
44
|
+
"ach_credit_transfer": {
|
45
|
+
"account_number": "test_52796e3294dc",
|
46
|
+
"routing_number": "110000000",
|
47
|
+
"fingerprint": "ecpwEzmBOSMOqQTL",
|
48
|
+
"bank_name": "TEST BANK",
|
49
|
+
"swift_code": "TSTEZ122"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.mandate_notification.json
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "source.mandate_notification",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "src_00000000000000",
|
13
|
+
"object": "source",
|
14
|
+
"amount": null,
|
15
|
+
"client_secret": "src_client_secret_CGz5Ss7pgMg0MVqljzgoEEUs",
|
16
|
+
"created": 1517903015,
|
17
|
+
"currency": "usd",
|
18
|
+
"flow": "receiver",
|
19
|
+
"livemode": false,
|
20
|
+
"metadata": {
|
21
|
+
},
|
22
|
+
"owner": {
|
23
|
+
"address": null,
|
24
|
+
"email": "jenny.rosen@example.com",
|
25
|
+
"name": null,
|
26
|
+
"phone": null,
|
27
|
+
"verified_address": null,
|
28
|
+
"verified_email": null,
|
29
|
+
"verified_name": null,
|
30
|
+
"verified_phone": null
|
31
|
+
},
|
32
|
+
"receiver": {
|
33
|
+
"address": "121042882-38381234567890123",
|
34
|
+
"amount_charged": 0,
|
35
|
+
"amount_received": 0,
|
36
|
+
"amount_returned": 0,
|
37
|
+
"refund_attributes_method": "email",
|
38
|
+
"refund_attributes_status": "missing"
|
39
|
+
},
|
40
|
+
"statement_descriptor": null,
|
41
|
+
"status": "pending",
|
42
|
+
"type": "ach_credit_transfer",
|
43
|
+
"usage": "reusable",
|
44
|
+
"ach_credit_transfer": {
|
45
|
+
"account_number": "test_52796e3294dc",
|
46
|
+
"routing_number": "110000000",
|
47
|
+
"fingerprint": "ecpwEzmBOSMOqQTL",
|
48
|
+
"bank_name": "TEST BANK",
|
49
|
+
"swift_code": "TSTEZ122"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
@@ -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,81 @@
|
|
1
|
+
{
|
2
|
+
"id": "evt_1GhxvLJ3a8kmO8fmoOLr4v1Z",
|
3
|
+
"object": "event",
|
4
|
+
"api_version": "2019-05-16",
|
5
|
+
"created": 1589289211,
|
6
|
+
"data": {
|
7
|
+
"object": {
|
8
|
+
"id": "sub_sched_1GhwDXJ3a8kmO8fmxeer3WCy",
|
9
|
+
"object": "subscription_schedule",
|
10
|
+
"billing": "charge_automatically",
|
11
|
+
"billing_thresholds": null,
|
12
|
+
"canceled_at": 1589289211,
|
13
|
+
"collection_method": "charge_automatically",
|
14
|
+
"completed_at": null,
|
15
|
+
"created": 1589282651,
|
16
|
+
"current_phase": null,
|
17
|
+
"customer": "cus_HG9JJV3LEHUjhO",
|
18
|
+
"default_payment_method": null,
|
19
|
+
"default_settings": {
|
20
|
+
"billing_thresholds": null,
|
21
|
+
"collection_method": "charge_automatically",
|
22
|
+
"default_payment_method": null,
|
23
|
+
"default_source": null,
|
24
|
+
"invoice_settings": null
|
25
|
+
},
|
26
|
+
"default_source": null,
|
27
|
+
"end_behavior": "cancel",
|
28
|
+
"invoice_settings": null,
|
29
|
+
"livemode": false,
|
30
|
+
"metadata": {
|
31
|
+
},
|
32
|
+
"phases": [
|
33
|
+
{
|
34
|
+
"add_invoice_items": [
|
35
|
+
],
|
36
|
+
"application_fee_percent": null,
|
37
|
+
"billing_thresholds": null,
|
38
|
+
"collection_method": "charge_automatically",
|
39
|
+
"coupon": null,
|
40
|
+
"default_payment_method": null,
|
41
|
+
"default_tax_rates": [
|
42
|
+
],
|
43
|
+
"end_date": 1606780800,
|
44
|
+
"invoice_settings": null,
|
45
|
+
"plans": [
|
46
|
+
{
|
47
|
+
"billing_thresholds": null,
|
48
|
+
"plan": "plan_HG4dIu1k8KqRWi",
|
49
|
+
"price": "plan_HG4dIu1k8KqRWi",
|
50
|
+
"quantity": 1,
|
51
|
+
"tax_rates": [
|
52
|
+
]
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"prorate": true,
|
56
|
+
"proration_behavior": "create_prorations",
|
57
|
+
"start_date": 1590969600,
|
58
|
+
"tax_percent": null,
|
59
|
+
"trial_end": null
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"released_at": null,
|
63
|
+
"released_subscription": null,
|
64
|
+
"renewal_behavior": "cancel",
|
65
|
+
"renewal_interval": null,
|
66
|
+
"status": "canceled",
|
67
|
+
"subscription": null
|
68
|
+
},
|
69
|
+
"previous_attributes": {
|
70
|
+
"canceled_at": null,
|
71
|
+
"status": "not_started"
|
72
|
+
}
|
73
|
+
},
|
74
|
+
"livemode": false,
|
75
|
+
"pending_webhooks": 2,
|
76
|
+
"request": {
|
77
|
+
"id": "req_FZViwblmeNHmTw",
|
78
|
+
"idempotency_key": null
|
79
|
+
},
|
80
|
+
"type": "subscription_schedule.canceled"
|
81
|
+
}
|