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,34 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "invoiceitem.created",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "ii_00000000000000",
|
13
|
+
"object": "invoiceitem",
|
14
|
+
"amount": 1000,
|
15
|
+
"currency": "usd",
|
16
|
+
"customer": "cus_00000000000000",
|
17
|
+
"date": 1517772716,
|
18
|
+
"description": "My First Invoice Item (created for API docs)",
|
19
|
+
"discountable": true,
|
20
|
+
"invoice": null,
|
21
|
+
"livemode": false,
|
22
|
+
"metadata": {
|
23
|
+
},
|
24
|
+
"period": {
|
25
|
+
"start": 1517772716,
|
26
|
+
"end": 1517772716
|
27
|
+
},
|
28
|
+
"plan": null,
|
29
|
+
"proration": false,
|
30
|
+
"quantity": null,
|
31
|
+
"subscription": null
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "order.created",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "or_00000000000000",
|
13
|
+
"object": "order",
|
14
|
+
"amount": 1500,
|
15
|
+
"amount_returned": null,
|
16
|
+
"application": null,
|
17
|
+
"application_fee": null,
|
18
|
+
"charge": null,
|
19
|
+
"created": 1517837533,
|
20
|
+
"currency": "usd",
|
21
|
+
"customer": null,
|
22
|
+
"email": null,
|
23
|
+
"items": [
|
24
|
+
{
|
25
|
+
"object": "order_item",
|
26
|
+
"amount": 1500,
|
27
|
+
"currency": "usd",
|
28
|
+
"description": "T-shirt",
|
29
|
+
"parent": "sk_1BrqWPAT5SYrvIfdCfVmF7Kx",
|
30
|
+
"quantity": null,
|
31
|
+
"type": "sku"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"livemode": false,
|
35
|
+
"metadata": {
|
36
|
+
},
|
37
|
+
"returns": {
|
38
|
+
"object": "list",
|
39
|
+
"data": [
|
40
|
+
|
41
|
+
],
|
42
|
+
"has_more": false,
|
43
|
+
"total_count": 0,
|
44
|
+
"url": "/v1/order_returns?order=or_1BsA4vAT5SYrvIfdykv5w2Gw"
|
45
|
+
},
|
46
|
+
"selected_shipping_method": null,
|
47
|
+
"shipping": {
|
48
|
+
"address": {
|
49
|
+
"city": "Anytown",
|
50
|
+
"country": "US",
|
51
|
+
"line1": "1234 Main street",
|
52
|
+
"line2": null,
|
53
|
+
"postal_code": "123456",
|
54
|
+
"state": null
|
55
|
+
},
|
56
|
+
"carrier": null,
|
57
|
+
"name": "Jenny Rosen",
|
58
|
+
"phone": null,
|
59
|
+
"tracking_number": null
|
60
|
+
},
|
61
|
+
"shipping_methods": null,
|
62
|
+
"status": "created",
|
63
|
+
"status_transitions": {
|
64
|
+
"canceled": null,
|
65
|
+
"fulfiled": null,
|
66
|
+
"paid": null,
|
67
|
+
"returned": null
|
68
|
+
},
|
69
|
+
"updated": 1517837533
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "order.updated",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "or_00000000000000",
|
13
|
+
"object": "order",
|
14
|
+
"amount": 1500,
|
15
|
+
"amount_returned": null,
|
16
|
+
"application": null,
|
17
|
+
"application_fee": null,
|
18
|
+
"charge": null,
|
19
|
+
"created": 1517839939,
|
20
|
+
"currency": "usd",
|
21
|
+
"customer": null,
|
22
|
+
"email": null,
|
23
|
+
"items": [
|
24
|
+
{
|
25
|
+
"object": "order_item",
|
26
|
+
"amount": 1500,
|
27
|
+
"currency": "usd",
|
28
|
+
"description": "T-shirt",
|
29
|
+
"parent": "sk_1BrqWPAT5SYrvIfdCfVmF7Kx",
|
30
|
+
"quantity": null,
|
31
|
+
"type": "sku"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"livemode": false,
|
35
|
+
"metadata": {
|
36
|
+
},
|
37
|
+
"returns": {
|
38
|
+
"object": "list",
|
39
|
+
"data": [
|
40
|
+
|
41
|
+
],
|
42
|
+
"has_more": false,
|
43
|
+
"total_count": 0,
|
44
|
+
"url": "/v1/order_returns?order=or_1BsAhjAT5SYrvIfdxnwUAXCT"
|
45
|
+
},
|
46
|
+
"selected_shipping_method": null,
|
47
|
+
"shipping": {
|
48
|
+
"address": {
|
49
|
+
"city": "Anytown",
|
50
|
+
"country": "US",
|
51
|
+
"line1": "1234 Main street",
|
52
|
+
"line2": null,
|
53
|
+
"postal_code": "123456",
|
54
|
+
"state": null
|
55
|
+
},
|
56
|
+
"carrier": null,
|
57
|
+
"name": "Jenny Rosen",
|
58
|
+
"phone": null,
|
59
|
+
"tracking_number": null
|
60
|
+
},
|
61
|
+
"shipping_methods": null,
|
62
|
+
"status": "created",
|
63
|
+
"status_transitions": {
|
64
|
+
"canceled": null,
|
65
|
+
"fulfiled": null,
|
66
|
+
"paid": null,
|
67
|
+
"returned": null
|
68
|
+
},
|
69
|
+
"updated": 1517839939
|
70
|
+
},
|
71
|
+
"previous_attributes": {
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
@@ -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,32 @@
|
|
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
|
+
"active": true,
|
15
|
+
"aggregate_usage": "sum",
|
16
|
+
"amount": 6000,
|
17
|
+
"amount_decimal": "6000",
|
18
|
+
"billing_scheme": "per_unit",
|
19
|
+
"created": 1517990173,
|
20
|
+
"currency": "dkk",
|
21
|
+
"interval": "month",
|
22
|
+
"interval_count": 1,
|
23
|
+
"livemode": false,
|
24
|
+
"metadata": {
|
25
|
+
},
|
26
|
+
"nickname": "number of requests",
|
27
|
+
"product": "prod_00000000000000",
|
28
|
+
"trial_period_days": null,
|
29
|
+
"usage_type": "metered"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
@@ -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,37 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "price.created",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-06",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "price_00000000000000",
|
13
|
+
"object": "price",
|
14
|
+
"active": true,
|
15
|
+
"billing_scheme": "per_unit",
|
16
|
+
"created": 1608814054,
|
17
|
+
"currency": "dkk",
|
18
|
+
"livemode": false,
|
19
|
+
"lookup_key": null,
|
20
|
+
"metadata": {
|
21
|
+
},
|
22
|
+
"nickname": null,
|
23
|
+
"product": "prod_00000000000000",
|
24
|
+
"recurring": {
|
25
|
+
"aggregate_usage": null,
|
26
|
+
"interval": "month",
|
27
|
+
"interval_count": 1,
|
28
|
+
"usage_type": "licensed"
|
29
|
+
},
|
30
|
+
"tiers_mode": null,
|
31
|
+
"transform_quantity": null,
|
32
|
+
"type": "recurring",
|
33
|
+
"unit_amount": 2000,
|
34
|
+
"unit_amount_decimal": "2000"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "price.deleted",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-06",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "price_00000000000000",
|
13
|
+
"object": "price",
|
14
|
+
"active": true,
|
15
|
+
"billing_scheme": "per_unit",
|
16
|
+
"created": 1608814075,
|
17
|
+
"currency": "dkk",
|
18
|
+
"livemode": false,
|
19
|
+
"lookup_key": null,
|
20
|
+
"metadata": {
|
21
|
+
},
|
22
|
+
"nickname": null,
|
23
|
+
"product": "prod_00000000000000",
|
24
|
+
"recurring": {
|
25
|
+
"aggregate_usage": null,
|
26
|
+
"interval": "month",
|
27
|
+
"interval_count": 1,
|
28
|
+
"usage_type": "licensed"
|
29
|
+
},
|
30
|
+
"tiers_mode": null,
|
31
|
+
"transform_quantity": null,
|
32
|
+
"type": "recurring",
|
33
|
+
"unit_amount": 2000,
|
34
|
+
"unit_amount_decimal": "2000"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "price.updated",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-06",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "price_00000000000000",
|
13
|
+
"object": "price",
|
14
|
+
"active": true,
|
15
|
+
"billing_scheme": "per_unit",
|
16
|
+
"created": 1608814087,
|
17
|
+
"currency": "dkk",
|
18
|
+
"livemode": false,
|
19
|
+
"lookup_key": null,
|
20
|
+
"metadata": {
|
21
|
+
},
|
22
|
+
"nickname": null,
|
23
|
+
"product": "prod_00000000000000",
|
24
|
+
"recurring": {
|
25
|
+
"aggregate_usage": null,
|
26
|
+
"interval": "month",
|
27
|
+
"interval_count": 1,
|
28
|
+
"usage_type": "licensed"
|
29
|
+
},
|
30
|
+
"tiers_mode": null,
|
31
|
+
"transform_quantity": null,
|
32
|
+
"type": "recurring",
|
33
|
+
"unit_amount": 2000,
|
34
|
+
"unit_amount_decimal": "2000"
|
35
|
+
},
|
36
|
+
"previous_attributes": {
|
37
|
+
"name": "Old name"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,49 @@
|
|
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
|
+
"unit_label": "request",
|
45
|
+
"updated": 1517762945,
|
46
|
+
"url": null
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
@@ -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
|
+
}
|