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,88 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "customer.subscription.trial_will_end",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "sub_00000000000000",
|
13
|
+
"object": "subscription",
|
14
|
+
"application_fee_percent": null,
|
15
|
+
"billing": "charge_automatically",
|
16
|
+
"billing_cycle_anchor": 1517919079,
|
17
|
+
"cancel_at_period_end": false,
|
18
|
+
"canceled_at": null,
|
19
|
+
"created": 1517919079,
|
20
|
+
"current_period_end": 1520338279,
|
21
|
+
"current_period_start": 1517919079,
|
22
|
+
"customer": "cus_00000000000000",
|
23
|
+
"days_until_due": null,
|
24
|
+
"discount": null,
|
25
|
+
"ended_at": null,
|
26
|
+
"items": {
|
27
|
+
"object": "list",
|
28
|
+
"data": [
|
29
|
+
{
|
30
|
+
"id": "si_CH3O9lDxhthMZ7",
|
31
|
+
"object": "subscription_item",
|
32
|
+
"created": 1517919080,
|
33
|
+
"metadata": {
|
34
|
+
},
|
35
|
+
"plan": {
|
36
|
+
"id": "silver-express-898",
|
37
|
+
"object": "plan",
|
38
|
+
"amount": 999,
|
39
|
+
"created": 1506381458,
|
40
|
+
"currency": "usd",
|
41
|
+
"interval": "month",
|
42
|
+
"interval_count": 1,
|
43
|
+
"livemode": false,
|
44
|
+
"metadata": {
|
45
|
+
},
|
46
|
+
"nickname": null,
|
47
|
+
"product": "prod_BT1t06tZ3jBCHi",
|
48
|
+
"trial_period_days": null,
|
49
|
+
"statement_descriptor": null,
|
50
|
+
"name": "Silver Express"
|
51
|
+
},
|
52
|
+
"quantity": 1,
|
53
|
+
"subscription": "sub_CH3OnHOjKJvwcS"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"has_more": false,
|
57
|
+
"total_count": 1,
|
58
|
+
"url": "/v1/subscription_items?subscription=sub_CH3OnHOjKJvwcS"
|
59
|
+
},
|
60
|
+
"livemode": false,
|
61
|
+
"metadata": {
|
62
|
+
},
|
63
|
+
"plan": {
|
64
|
+
"id": "silver-express-898_00000000000000",
|
65
|
+
"object": "plan",
|
66
|
+
"amount": 999,
|
67
|
+
"created": 1506381458,
|
68
|
+
"currency": "usd",
|
69
|
+
"interval": "month",
|
70
|
+
"interval_count": 1,
|
71
|
+
"livemode": false,
|
72
|
+
"metadata": {
|
73
|
+
},
|
74
|
+
"nickname": null,
|
75
|
+
"product": "prod_00000000000000",
|
76
|
+
"trial_period_days": null,
|
77
|
+
"statement_descriptor": null,
|
78
|
+
"name": "Silver Express"
|
79
|
+
},
|
80
|
+
"quantity": 1,
|
81
|
+
"start": 1517919079,
|
82
|
+
"status": "trialing",
|
83
|
+
"tax_percent": null,
|
84
|
+
"trial_end": 1518176751,
|
85
|
+
"trial_start": 1517917551
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.updated.json
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "customer.subscription.updated",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "sub_CGPu5KqP1TORKF",
|
13
|
+
"object": "subscription",
|
14
|
+
"application_fee_percent": null,
|
15
|
+
"billing": "charge_automatically",
|
16
|
+
"cancel_at_period_end": false,
|
17
|
+
"canceled_at": null,
|
18
|
+
"created": 1517772172,
|
19
|
+
"current_period_end": 1520191372,
|
20
|
+
"current_period_start": 1517772172,
|
21
|
+
"customer": "cus_00000000000000",
|
22
|
+
"days_until_due": null,
|
23
|
+
"discount": null,
|
24
|
+
"ended_at": null,
|
25
|
+
"items": {
|
26
|
+
"object": "list",
|
27
|
+
"data": [
|
28
|
+
{
|
29
|
+
"id": "si_CGPuxYgJ7bx2UW",
|
30
|
+
"object": "subscription_item",
|
31
|
+
"created": 1517772173,
|
32
|
+
"metadata": {
|
33
|
+
},
|
34
|
+
"plan": {
|
35
|
+
"id": "silver-express-898",
|
36
|
+
"object": "plan",
|
37
|
+
"amount": 999,
|
38
|
+
"created": 1506381458,
|
39
|
+
"currency": "usd",
|
40
|
+
"interval": "month",
|
41
|
+
"interval_count": 1,
|
42
|
+
"livemode": false,
|
43
|
+
"metadata": {
|
44
|
+
},
|
45
|
+
"name": "Silver Express",
|
46
|
+
"statement_descriptor": null,
|
47
|
+
"trial_period_days": null
|
48
|
+
},
|
49
|
+
"quantity": 1,
|
50
|
+
"subscription": "sub_CGPu5KqP1TORKF"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"has_more": false,
|
54
|
+
"total_count": 1,
|
55
|
+
"url": "/v1/subscription_items?subscription=sub_CGPu5KqP1TORKF"
|
56
|
+
},
|
57
|
+
"livemode": false,
|
58
|
+
"metadata": {
|
59
|
+
},
|
60
|
+
"plan": {
|
61
|
+
"id": "silver-express-898",
|
62
|
+
"object": "plan",
|
63
|
+
"amount": 999,
|
64
|
+
"created": 1506381458,
|
65
|
+
"currency": "usd",
|
66
|
+
"interval": "month",
|
67
|
+
"interval_count": 1,
|
68
|
+
"livemode": false,
|
69
|
+
"metadata": {
|
70
|
+
},
|
71
|
+
"name": "Silver Express",
|
72
|
+
"statement_descriptor": null,
|
73
|
+
"trial_period_days": null
|
74
|
+
},
|
75
|
+
"quantity": 1,
|
76
|
+
"start": 1517772172,
|
77
|
+
"status": "active",
|
78
|
+
"tax_percent": null,
|
79
|
+
"trial_end": null,
|
80
|
+
"trial_start": null
|
81
|
+
},
|
82
|
+
"previous_attributes": {
|
83
|
+
"plan": {
|
84
|
+
"id": "OLD_PLAN_ID",
|
85
|
+
"object": "plan",
|
86
|
+
"amount": 2000,
|
87
|
+
"created": 1517772172,
|
88
|
+
"currency": "usd",
|
89
|
+
"interval": "month",
|
90
|
+
"interval_count": 1,
|
91
|
+
"livemode": false,
|
92
|
+
"metadata": {
|
93
|
+
},
|
94
|
+
"name": "Old plan",
|
95
|
+
"statement_descriptor": null,
|
96
|
+
"trial_period_days": null
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "customer.updated",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "cus_00000000000000",
|
13
|
+
"object": "customer",
|
14
|
+
"account_balance": 0,
|
15
|
+
"created": 1517772278,
|
16
|
+
"currency": "usd",
|
17
|
+
"default_source": null,
|
18
|
+
"delinquent": false,
|
19
|
+
"description": null,
|
20
|
+
"discount": null,
|
21
|
+
"email": "test@example.com",
|
22
|
+
"invoice_prefix": "c41d443e39",
|
23
|
+
"livemode": false,
|
24
|
+
"metadata": {
|
25
|
+
},
|
26
|
+
"shipping": null,
|
27
|
+
"sources": {
|
28
|
+
"object": "list",
|
29
|
+
"data": [
|
30
|
+
|
31
|
+
],
|
32
|
+
"has_more": false,
|
33
|
+
"total_count": 0,
|
34
|
+
"url": "/v1/customers/cus_CGPwWSwhmCPTTc/sources"
|
35
|
+
},
|
36
|
+
"subscriptions": {
|
37
|
+
"object": "list",
|
38
|
+
"data": [
|
39
|
+
|
40
|
+
],
|
41
|
+
"has_more": false,
|
42
|
+
"total_count": 0,
|
43
|
+
"url": "/v1/customers/cus_CGPwWSwhmCPTTc/subscriptions"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"previous_attributes": {
|
47
|
+
"description": "Old description"
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "invoice.created",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-05",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "in_00000000000000",
|
13
|
+
"object": "invoice",
|
14
|
+
"amount_due": 3500,
|
15
|
+
"application_fee": null,
|
16
|
+
"attempt_count": 1,
|
17
|
+
"attempted": false,
|
18
|
+
"billing": "charge_automatically",
|
19
|
+
"charge": "ch_00000000000000",
|
20
|
+
"closed": true,
|
21
|
+
"currency": "dkk",
|
22
|
+
"customer": "cus_00000000000000",
|
23
|
+
"date": 1517763745,
|
24
|
+
"description": null,
|
25
|
+
"discount": null,
|
26
|
+
"due_date": null,
|
27
|
+
"ending_balance": 0,
|
28
|
+
"forgiven": false,
|
29
|
+
"lines": {
|
30
|
+
"data": [
|
31
|
+
{
|
32
|
+
"id": "sub_CHS7NOE0WD1Jro",
|
33
|
+
"object": "line_item",
|
34
|
+
"amount": 6000,
|
35
|
+
"currency": "dkk",
|
36
|
+
"description": "1x Manage translations for your apps (at 60.00 kr)",
|
37
|
+
"discountable": true,
|
38
|
+
"livemode": true,
|
39
|
+
"metadata": {
|
40
|
+
},
|
41
|
+
"period": {
|
42
|
+
"start": 1520430249,
|
43
|
+
"end": 1523108649
|
44
|
+
},
|
45
|
+
"plan": {
|
46
|
+
"id": "peak_flow_build",
|
47
|
+
"object": "plan",
|
48
|
+
"amount": 6000,
|
49
|
+
"created": 1517990173,
|
50
|
+
"currency": "dkk",
|
51
|
+
"interval": "month",
|
52
|
+
"interval_count": 1,
|
53
|
+
"livemode": false,
|
54
|
+
"metadata": {
|
55
|
+
},
|
56
|
+
"nickname": null,
|
57
|
+
"product": "prod_CHMVwyJFgchZEk",
|
58
|
+
"trial_period_days": null
|
59
|
+
},
|
60
|
+
"proration": false,
|
61
|
+
"quantity": 1,
|
62
|
+
"subscription": null,
|
63
|
+
"subscription_item": "si_CHS7VAL80FwJv7",
|
64
|
+
"type": "subscription"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"has_more": false,
|
68
|
+
"object": "list",
|
69
|
+
"url": "/v1/invoices/in_1BrqsnAT5SYrvIfdQBWofPKO/lines"
|
70
|
+
},
|
71
|
+
"livemode": false,
|
72
|
+
"metadata": {
|
73
|
+
},
|
74
|
+
"next_payment_attempt": null,
|
75
|
+
"number": "a04598880b-0007",
|
76
|
+
"paid": true,
|
77
|
+
"period_end": 1517763745,
|
78
|
+
"period_start": 1517763745,
|
79
|
+
"receipt_number": null,
|
80
|
+
"starting_balance": 0,
|
81
|
+
"statement_descriptor": null,
|
82
|
+
"subscription": "sub_00000000000000",
|
83
|
+
"subtotal": 3500,
|
84
|
+
"tax": null,
|
85
|
+
"tax_percent": null,
|
86
|
+
"total": 3500,
|
87
|
+
"webhooks_delivered_at": 1517763754
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "invoice.payment_failed",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "in_00000000000000",
|
13
|
+
"object": "invoice",
|
14
|
+
"amount_due": 0,
|
15
|
+
"application_fee": null,
|
16
|
+
"attempt_count": 0,
|
17
|
+
"attempted": true,
|
18
|
+
"billing": "charge_automatically",
|
19
|
+
"charge": null,
|
20
|
+
"closed": false,
|
21
|
+
"currency": "usd",
|
22
|
+
"customer": "cus_00000000000000",
|
23
|
+
"date": 1517847362,
|
24
|
+
"description": null,
|
25
|
+
"discount": null,
|
26
|
+
"due_date": null,
|
27
|
+
"ending_balance": null,
|
28
|
+
"forgiven": false,
|
29
|
+
"lines": {
|
30
|
+
"data": [
|
31
|
+
{
|
32
|
+
"id": "sub_CGk7QTdZmtlscW",
|
33
|
+
"object": "line_item",
|
34
|
+
"amount": 999,
|
35
|
+
"currency": "usd",
|
36
|
+
"description": "1x Silver Express (at $9.99)",
|
37
|
+
"discountable": true,
|
38
|
+
"livemode": true,
|
39
|
+
"metadata": {
|
40
|
+
},
|
41
|
+
"period": {
|
42
|
+
"start": 1517847363,
|
43
|
+
"end": 1520266563
|
44
|
+
},
|
45
|
+
"plan": {
|
46
|
+
"id": "gold",
|
47
|
+
"object": "plan",
|
48
|
+
"amount": 2000,
|
49
|
+
"created": 1517847363,
|
50
|
+
"currency": "usd",
|
51
|
+
"interval": "month",
|
52
|
+
"interval_count": 1,
|
53
|
+
"livemode": false,
|
54
|
+
"metadata": {
|
55
|
+
},
|
56
|
+
"name": "Extra Large",
|
57
|
+
"statement_descriptor": null,
|
58
|
+
"trial_period_days": null
|
59
|
+
},
|
60
|
+
"proration": false,
|
61
|
+
"quantity": 1,
|
62
|
+
"subscription": null,
|
63
|
+
"subscription_item": "si_CGk7XyC1ml0Jz7",
|
64
|
+
"type": "subscription"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"has_more": false,
|
68
|
+
"object": "list",
|
69
|
+
"url": "/v1/invoices/in_1BsCdTAT5SYrvIfdU0puHC0J/lines"
|
70
|
+
},
|
71
|
+
"livemode": false,
|
72
|
+
"metadata": {
|
73
|
+
},
|
74
|
+
"next_payment_attempt": 1517850962,
|
75
|
+
"number": "5a331c0634-0001",
|
76
|
+
"paid": false,
|
77
|
+
"period_end": 1517847362,
|
78
|
+
"period_start": 1517847362,
|
79
|
+
"receipt_number": null,
|
80
|
+
"starting_balance": 0,
|
81
|
+
"statement_descriptor": null,
|
82
|
+
"subscription": null,
|
83
|
+
"subtotal": 0,
|
84
|
+
"tax": null,
|
85
|
+
"tax_percent": null,
|
86
|
+
"total": 0,
|
87
|
+
"webhooks_delivered_at": null
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
@@ -0,0 +1,188 @@
|
|
1
|
+
{
|
2
|
+
"id": "evt_1BrsEiAT5SYrvIfdKoCZtqiY",
|
3
|
+
"object": "event",
|
4
|
+
"api_version": "2018-01-23",
|
5
|
+
"created": 1517768948,
|
6
|
+
"data": {
|
7
|
+
"object": {
|
8
|
+
"id": "in_1BrsEhAT5SYrvIfdlmd9sZns",
|
9
|
+
"object": "invoice",
|
10
|
+
"amount_due": 10000,
|
11
|
+
"application_fee": null,
|
12
|
+
"attempt_count": 0,
|
13
|
+
"attempted": true,
|
14
|
+
"billing": "charge_automatically",
|
15
|
+
"charge": "ch_1BrsEhAT5SYrvIfdDOd8ifsb",
|
16
|
+
"closed": true,
|
17
|
+
"currency": "dkk",
|
18
|
+
"customer": "cus_CGNFgjPGtHlvXI",
|
19
|
+
"date": 1517768947,
|
20
|
+
"description": null,
|
21
|
+
"discount": null,
|
22
|
+
"due_date": null,
|
23
|
+
"ending_balance": 0,
|
24
|
+
"forgiven": false,
|
25
|
+
"lines": {
|
26
|
+
"object": "list",
|
27
|
+
"data": [
|
28
|
+
{
|
29
|
+
"id": "sub_CGP2EtRzfVystw",
|
30
|
+
"object": "line_item",
|
31
|
+
"amount": 10000,
|
32
|
+
"currency": "dkk",
|
33
|
+
"description": "1x Medium (at 100.00 kr)",
|
34
|
+
"discountable": true,
|
35
|
+
"livemode": false,
|
36
|
+
"metadata": {
|
37
|
+
},
|
38
|
+
"period": {
|
39
|
+
"start": 1517768947,
|
40
|
+
"end": 1520188147
|
41
|
+
},
|
42
|
+
"plan": {
|
43
|
+
"id": "medium",
|
44
|
+
"object": "plan",
|
45
|
+
"amount": 10000,
|
46
|
+
"created": 1517762877,
|
47
|
+
"currency": "dkk",
|
48
|
+
"interval": "month",
|
49
|
+
"interval_count": 1,
|
50
|
+
"livemode": false,
|
51
|
+
"metadata": {
|
52
|
+
},
|
53
|
+
"name": "Medium",
|
54
|
+
"statement_descriptor": null,
|
55
|
+
"trial_period_days": null
|
56
|
+
},
|
57
|
+
"proration": false,
|
58
|
+
"quantity": 1,
|
59
|
+
"subscription": null,
|
60
|
+
"subscription_item": "si_CGP2ToZxkcfmed",
|
61
|
+
"type": "subscription"
|
62
|
+
}
|
63
|
+
],
|
64
|
+
"has_more": false,
|
65
|
+
"total_count": 1,
|
66
|
+
"url": "/v1/invoices/in_1BrsEhAT5SYrvIfdlmd9sZns/lines"
|
67
|
+
},
|
68
|
+
"livemode": false,
|
69
|
+
"metadata": {
|
70
|
+
},
|
71
|
+
"next_payment_attempt": null,
|
72
|
+
"number": "a04598880b-0014",
|
73
|
+
"paid": true,
|
74
|
+
"period_end": 1517768947,
|
75
|
+
"period_start": 1517768947,
|
76
|
+
"receipt_number": null,
|
77
|
+
"starting_balance": 0,
|
78
|
+
"statement_descriptor": null,
|
79
|
+
"subscription": "sub_CGP2EtRzfVystw",
|
80
|
+
"subtotal": 10000,
|
81
|
+
"tax": null,
|
82
|
+
"tax_percent": null,
|
83
|
+
"total": 10000,
|
84
|
+
"webhooks_delivered_at": null
|
85
|
+
}
|
86
|
+
},
|
87
|
+
"livemode": false,
|
88
|
+
"pending_webhooks": 1,
|
89
|
+
"request": {
|
90
|
+
"id": "req_da68RQKwcXNaZ7",
|
91
|
+
"idempotency_key": null
|
92
|
+
},
|
93
|
+
"type": "invoice.payment_succeeded",
|
94
|
+
"webhook": {
|
95
|
+
"id": "evt_1BrsEiAT5SYrvIfdKoCZtqiY",
|
96
|
+
"object": "event",
|
97
|
+
"api_version": "2018-01-23",
|
98
|
+
"created": 1517768948,
|
99
|
+
"data": {
|
100
|
+
"object": {
|
101
|
+
"id": "in_1BrsEhAT5SYrvIfdlmd9sZns",
|
102
|
+
"object": "invoice",
|
103
|
+
"amount_due": 10000,
|
104
|
+
"application_fee": null,
|
105
|
+
"attempt_count": 0,
|
106
|
+
"attempted": true,
|
107
|
+
"billing": "charge_automatically",
|
108
|
+
"charge": "ch_1BrsEhAT5SYrvIfdDOd8ifsb",
|
109
|
+
"closed": true,
|
110
|
+
"currency": "dkk",
|
111
|
+
"customer": "cus_CGNFgjPGtHlvXI",
|
112
|
+
"date": 1517768947,
|
113
|
+
"description": null,
|
114
|
+
"discount": null,
|
115
|
+
"due_date": null,
|
116
|
+
"ending_balance": 0,
|
117
|
+
"forgiven": false,
|
118
|
+
"lines": {
|
119
|
+
"object": "list",
|
120
|
+
"data": [
|
121
|
+
{
|
122
|
+
"id": "sub_CGP2EtRzfVystw",
|
123
|
+
"object": "line_item",
|
124
|
+
"amount": 10000,
|
125
|
+
"currency": "dkk",
|
126
|
+
"description": "1x Medium (at 100.00 kr)",
|
127
|
+
"discountable": true,
|
128
|
+
"livemode": false,
|
129
|
+
"metadata": {
|
130
|
+
},
|
131
|
+
"period": {
|
132
|
+
"start": 1517768947,
|
133
|
+
"end": 1520188147
|
134
|
+
},
|
135
|
+
"plan": {
|
136
|
+
"id": "medium",
|
137
|
+
"object": "plan",
|
138
|
+
"amount": 10000,
|
139
|
+
"created": 1517762877,
|
140
|
+
"currency": "dkk",
|
141
|
+
"interval": "month",
|
142
|
+
"interval_count": 1,
|
143
|
+
"livemode": false,
|
144
|
+
"metadata": {
|
145
|
+
},
|
146
|
+
"name": "Medium",
|
147
|
+
"statement_descriptor": null,
|
148
|
+
"trial_period_days": null
|
149
|
+
},
|
150
|
+
"proration": false,
|
151
|
+
"quantity": 1,
|
152
|
+
"subscription": null,
|
153
|
+
"subscription_item": "si_CGP2ToZxkcfmed",
|
154
|
+
"type": "subscription"
|
155
|
+
}
|
156
|
+
],
|
157
|
+
"has_more": false,
|
158
|
+
"total_count": 1,
|
159
|
+
"url": "/v1/invoices/in_1BrsEhAT5SYrvIfdlmd9sZns/lines"
|
160
|
+
},
|
161
|
+
"livemode": false,
|
162
|
+
"metadata": {
|
163
|
+
},
|
164
|
+
"next_payment_attempt": null,
|
165
|
+
"number": "a04598880b-0014",
|
166
|
+
"paid": true,
|
167
|
+
"period_end": 1517768947,
|
168
|
+
"period_start": 1517768947,
|
169
|
+
"receipt_number": null,
|
170
|
+
"starting_balance": 0,
|
171
|
+
"statement_descriptor": null,
|
172
|
+
"subscription": "sub_CGP2EtRzfVystw",
|
173
|
+
"subtotal": 10000,
|
174
|
+
"tax": null,
|
175
|
+
"tax_percent": null,
|
176
|
+
"total": 10000,
|
177
|
+
"webhooks_delivered_at": null
|
178
|
+
}
|
179
|
+
},
|
180
|
+
"livemode": false,
|
181
|
+
"pending_webhooks": 1,
|
182
|
+
"request": {
|
183
|
+
"id": "req_da68RQKwcXNaZ7",
|
184
|
+
"idempotency_key": null
|
185
|
+
},
|
186
|
+
"type": "invoice.payment_succeeded"
|
187
|
+
}
|
188
|
+
}
|