stripe_tester 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/stripe_tester.rb +2 -2
- data/lib/stripe_tester/version.rb +1 -1
- data/spec/stripe_tester_spec.rb +11 -11
- data/stripe_webhooks/2015-10-16/account_external_account_created.yml +24 -0
- data/stripe_webhooks/2015-10-16/account_external_account_deleted.yml +24 -0
- data/stripe_webhooks/2015-10-16/account_external_account_updated.yml +25 -0
- data/stripe_webhooks/2015-10-16/account_updated.yml +90 -0
- data/stripe_webhooks/2015-10-16/balance_available.yml +19 -0
- data/stripe_webhooks/2015-10-16/bitcoin_receiver_created.yml +30 -0
- data/stripe_webhooks/2015-10-16/bitcoin_receiver_filled.yml +30 -0
- data/stripe_webhooks/2015-10-16/bitcoin_receiver_transaction_created.yml +18 -0
- data/stripe_webhooks/2015-10-16/bitcoin_receiver_updated.yml +31 -0
- data/stripe_webhooks/2015-10-16/charge_captured.yml +66 -0
- data/stripe_webhooks/2015-10-16/charge_dispute_closed.yml +56 -0
- data/stripe_webhooks/2015-10-16/charge_dispute_created.yml +56 -0
- data/stripe_webhooks/2015-10-16/charge_dispute_funds_reinstated.yml +56 -0
- data/stripe_webhooks/2015-10-16/charge_dispute_funds_withdrawn.yml +56 -0
- data/stripe_webhooks/2015-10-16/charge_dispute_updated.yml +85 -0
- data/stripe_webhooks/2015-10-16/charge_failed.yml +66 -0
- data/stripe_webhooks/2015-10-16/charge_refunded.yml +77 -0
- data/stripe_webhooks/2015-10-16/charge_succeeded.yml +66 -0
- data/stripe_webhooks/2015-10-16/charge_updated.yml +68 -0
- data/stripe_webhooks/2015-10-16/coupon_created.yml +25 -0
- data/stripe_webhooks/2015-10-16/coupon_deleted.yml +25 -0
- data/stripe_webhooks/2015-10-16/coupon_updated.yml +26 -0
- data/stripe_webhooks/2015-10-16/customer_bank_account_created.yml +24 -0
- data/stripe_webhooks/2015-10-16/customer_bank_account_deleted.yml +24 -0
- data/stripe_webhooks/2015-10-16/customer_bank_account_updated.yml +25 -0
- data/stripe_webhooks/2015-10-16/customer_card_created.yml +33 -0
- data/stripe_webhooks/2015-10-16/customer_card_deleted.yml +33 -0
- data/stripe_webhooks/2015-10-16/customer_card_updated.yml +35 -0
- data/stripe_webhooks/2015-10-16/customer_created.yml +36 -0
- data/stripe_webhooks/2015-10-16/customer_deleted.yml +36 -0
- data/stripe_webhooks/2015-10-16/customer_discount_created.yml +31 -0
- data/stripe_webhooks/2015-10-16/customer_discount_deleted.yml +31 -0
- data/stripe_webhooks/2015-10-16/customer_discount_updated.yml +47 -0
- data/stripe_webhooks/2015-10-16/customer_subscription_created.yml +41 -0
- data/stripe_webhooks/2015-10-16/customer_subscription_deleted.yml +41 -0
- data/stripe_webhooks/2015-10-16/customer_subscription_trial_will_end.yml +41 -0
- data/stripe_webhooks/2015-10-16/customer_subscription_updated.yml +55 -0
- data/stripe_webhooks/2015-10-16/customer_updated.yml +38 -0
- data/stripe_webhooks/2015-10-16/invoice_created.yml +74 -0
- data/stripe_webhooks/2015-10-16/invoice_payment_failed.yml +74 -0
- data/stripe_webhooks/2015-10-16/invoice_payment_succeeded.yml +74 -0
- data/stripe_webhooks/2015-10-16/invoice_updated.yml +76 -0
- data/stripe_webhooks/2015-10-16/invoiceitem_created.yml +29 -0
- data/stripe_webhooks/2015-10-16/invoiceitem_deleted.yml +29 -0
- data/stripe_webhooks/2015-10-16/invoiceitem_updated.yml +31 -0
- data/stripe_webhooks/2015-10-16/order_created.yml +45 -0
- data/stripe_webhooks/2015-10-16/order_payment_failed.yml +45 -0
- data/stripe_webhooks/2015-10-16/order_payment_succeeded.yml +45 -0
- data/stripe_webhooks/2015-10-16/order_updated.yml +46 -0
- data/stripe_webhooks/2015-10-16/plan_created.yml +23 -0
- data/stripe_webhooks/2015-10-16/plan_deleted.yml +23 -0
- data/stripe_webhooks/2015-10-16/plan_updated.yml +25 -0
- data/stripe_webhooks/2015-10-16/product_created.yml +34 -0
- data/stripe_webhooks/2015-10-16/product_updated.yml +35 -0
- data/stripe_webhooks/2015-10-16/recipient_created.yml +30 -0
- data/stripe_webhooks/2015-10-16/recipient_deleted.yml +30 -0
- data/stripe_webhooks/2015-10-16/recipient_updated.yml +31 -0
- data/stripe_webhooks/2015-10-16/transfer_canceled.yml +38 -0
- data/stripe_webhooks/2015-10-16/transfer_created.yml +38 -0
- data/stripe_webhooks/2015-10-16/transfer_failed.yml +38 -0
- data/stripe_webhooks/2015-10-16/transfer_paid.yml +38 -0
- data/stripe_webhooks/2015-10-16/transfer_updated.yml +40 -0
- data/supported_webhook_versions.md +134 -2
- metadata +64 -2
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: customer.discount.created
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
object: discount
|
13
|
+
coupon:
|
14
|
+
id: 25OFF_00000000000000
|
15
|
+
object: coupon
|
16
|
+
amount_off:
|
17
|
+
created: 1450089161
|
18
|
+
currency: usd
|
19
|
+
duration: repeating
|
20
|
+
duration_in_months: 3
|
21
|
+
livemode: false
|
22
|
+
max_redemptions:
|
23
|
+
metadata: {}
|
24
|
+
percent_off: 25
|
25
|
+
redeem_by:
|
26
|
+
times_redeemed: 0
|
27
|
+
valid: true
|
28
|
+
customer: cus_00000000000000
|
29
|
+
end: 1457951561
|
30
|
+
start: 1450089161
|
31
|
+
subscription:
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: customer.discount.deleted
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
object: discount
|
13
|
+
coupon:
|
14
|
+
id: 25OFF_00000000000000
|
15
|
+
object: coupon
|
16
|
+
amount_off:
|
17
|
+
created: 1450089165
|
18
|
+
currency: usd
|
19
|
+
duration: repeating
|
20
|
+
duration_in_months: 3
|
21
|
+
livemode: false
|
22
|
+
max_redemptions:
|
23
|
+
metadata: {}
|
24
|
+
percent_off: 25
|
25
|
+
redeem_by:
|
26
|
+
times_redeemed: 0
|
27
|
+
valid: true
|
28
|
+
customer: cus_00000000000000
|
29
|
+
end: 1457951565
|
30
|
+
start: 1450089165
|
31
|
+
subscription:
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: customer.discount.updated
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
object: discount
|
13
|
+
coupon:
|
14
|
+
id: 25OFF_00000000000000
|
15
|
+
object: coupon
|
16
|
+
amount_off:
|
17
|
+
created: 1450089168
|
18
|
+
currency: usd
|
19
|
+
duration: repeating
|
20
|
+
duration_in_months: 3
|
21
|
+
livemode: false
|
22
|
+
max_redemptions:
|
23
|
+
metadata: {}
|
24
|
+
percent_off: 25
|
25
|
+
redeem_by:
|
26
|
+
times_redeemed: 0
|
27
|
+
valid: true
|
28
|
+
customer: cus_00000000000000
|
29
|
+
end: 1457951568
|
30
|
+
start: 1450089168
|
31
|
+
subscription:
|
32
|
+
previous_attributes:
|
33
|
+
coupon:
|
34
|
+
id: OLD_COUPON_ID
|
35
|
+
object: coupon
|
36
|
+
amount_off:
|
37
|
+
created: 1450089168
|
38
|
+
currency: usd
|
39
|
+
duration: repeating
|
40
|
+
duration_in_months: 3
|
41
|
+
livemode: false
|
42
|
+
max_redemptions:
|
43
|
+
metadata: {}
|
44
|
+
percent_off: 25
|
45
|
+
redeem_by:
|
46
|
+
times_redeemed: 0
|
47
|
+
valid: true
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: customer.subscription.created
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
id: sub_00000000000000
|
13
|
+
object: subscription
|
14
|
+
application_fee_percent:
|
15
|
+
cancel_at_period_end: false
|
16
|
+
canceled_at:
|
17
|
+
current_period_end: 1452767571
|
18
|
+
current_period_start: 1450089171
|
19
|
+
customer: cus_00000000000000
|
20
|
+
discount:
|
21
|
+
ended_at:
|
22
|
+
metadata: {}
|
23
|
+
plan:
|
24
|
+
id: gold21323_00000000000000
|
25
|
+
object: plan
|
26
|
+
amount: 2000
|
27
|
+
created: 1386247539
|
28
|
+
currency: usd
|
29
|
+
interval: month
|
30
|
+
interval_count: 1
|
31
|
+
livemode: false
|
32
|
+
metadata: {}
|
33
|
+
name: New plan name
|
34
|
+
statement_descriptor:
|
35
|
+
trial_period_days:
|
36
|
+
quantity: 1
|
37
|
+
start: 1450089171
|
38
|
+
status: active
|
39
|
+
tax_percent:
|
40
|
+
trial_end:
|
41
|
+
trial_start:
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: customer.subscription.deleted
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
id: sub_00000000000000
|
13
|
+
object: subscription
|
14
|
+
application_fee_percent:
|
15
|
+
cancel_at_period_end: false
|
16
|
+
canceled_at:
|
17
|
+
current_period_end: 1452767574
|
18
|
+
current_period_start: 1450089174
|
19
|
+
customer: cus_00000000000000
|
20
|
+
discount:
|
21
|
+
ended_at: 1449874962
|
22
|
+
metadata: {}
|
23
|
+
plan:
|
24
|
+
id: gold21323_00000000000000
|
25
|
+
object: plan
|
26
|
+
amount: 2000
|
27
|
+
created: 1386247539
|
28
|
+
currency: usd
|
29
|
+
interval: month
|
30
|
+
interval_count: 1
|
31
|
+
livemode: false
|
32
|
+
metadata: {}
|
33
|
+
name: New plan name
|
34
|
+
statement_descriptor:
|
35
|
+
trial_period_days:
|
36
|
+
quantity: 1
|
37
|
+
start: 1450089174
|
38
|
+
status: canceled
|
39
|
+
tax_percent:
|
40
|
+
trial_end:
|
41
|
+
trial_start:
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: customer.subscription.trial_will_end
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
id: sub_00000000000000
|
13
|
+
object: subscription
|
14
|
+
application_fee_percent:
|
15
|
+
cancel_at_period_end: false
|
16
|
+
canceled_at:
|
17
|
+
current_period_end: 1452767582
|
18
|
+
current_period_start: 1450089182
|
19
|
+
customer: cus_00000000000000
|
20
|
+
discount:
|
21
|
+
ended_at:
|
22
|
+
metadata: {}
|
23
|
+
plan:
|
24
|
+
id: gold21323_00000000000000
|
25
|
+
object: plan
|
26
|
+
amount: 2000
|
27
|
+
created: 1386247539
|
28
|
+
currency: usd
|
29
|
+
interval: month
|
30
|
+
interval_count: 1
|
31
|
+
livemode: false
|
32
|
+
metadata: {}
|
33
|
+
name: New plan name
|
34
|
+
statement_descriptor:
|
35
|
+
trial_period_days:
|
36
|
+
quantity: 1
|
37
|
+
start: 1450089182
|
38
|
+
status: trialing
|
39
|
+
tax_percent:
|
40
|
+
trial_end: 1450134161
|
41
|
+
trial_start: 1449874961
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: customer.subscription.updated
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
id: sub_00000000000000
|
13
|
+
object: subscription
|
14
|
+
application_fee_percent:
|
15
|
+
cancel_at_period_end: false
|
16
|
+
canceled_at:
|
17
|
+
current_period_end: 1452767585
|
18
|
+
current_period_start: 1450089185
|
19
|
+
customer: cus_00000000000000
|
20
|
+
discount:
|
21
|
+
ended_at:
|
22
|
+
metadata: {}
|
23
|
+
plan:
|
24
|
+
id: gold21323_00000000000000
|
25
|
+
object: plan
|
26
|
+
amount: 2000
|
27
|
+
created: 1386247539
|
28
|
+
currency: usd
|
29
|
+
interval: month
|
30
|
+
interval_count: 1
|
31
|
+
livemode: false
|
32
|
+
metadata: {}
|
33
|
+
name: New plan name
|
34
|
+
statement_descriptor:
|
35
|
+
trial_period_days:
|
36
|
+
quantity: 1
|
37
|
+
start: 1450089185
|
38
|
+
status: active
|
39
|
+
tax_percent:
|
40
|
+
trial_end:
|
41
|
+
trial_start:
|
42
|
+
previous_attributes:
|
43
|
+
plan:
|
44
|
+
id: OLD_PLAN_ID
|
45
|
+
object: plan
|
46
|
+
amount: 212
|
47
|
+
created: 1419171857
|
48
|
+
currency: usd
|
49
|
+
interval: month
|
50
|
+
interval_count: 1
|
51
|
+
livemode: false
|
52
|
+
metadata: {}
|
53
|
+
name: Old plan
|
54
|
+
statement_descriptor:
|
55
|
+
trial_period_days:
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: customer.updated
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
id: cus_00000000000000
|
13
|
+
object: customer
|
14
|
+
account_balance: 0
|
15
|
+
created: 1450089135
|
16
|
+
currency: usd
|
17
|
+
default_source:
|
18
|
+
delinquent: false
|
19
|
+
description:
|
20
|
+
discount:
|
21
|
+
email:
|
22
|
+
livemode: false
|
23
|
+
metadata: {}
|
24
|
+
shipping:
|
25
|
+
sources:
|
26
|
+
object: list
|
27
|
+
data: []
|
28
|
+
has_more: false
|
29
|
+
total_count: 0
|
30
|
+
url: "/v1/customers/cus_7WxXQJyK5BM2gv/sources"
|
31
|
+
subscriptions:
|
32
|
+
object: list
|
33
|
+
data: []
|
34
|
+
has_more: false
|
35
|
+
total_count: 0
|
36
|
+
url: "/v1/customers/cus_7WxXQJyK5BM2gv/subscriptions"
|
37
|
+
previous_attributes:
|
38
|
+
description: Old description
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: invoice.created
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
id: in_00000000000000
|
13
|
+
object: invoice
|
14
|
+
amount_due: 212
|
15
|
+
application_fee:
|
16
|
+
attempt_count: 1
|
17
|
+
attempted: false
|
18
|
+
charge: ch_00000000000000
|
19
|
+
closed: true
|
20
|
+
currency: usd
|
21
|
+
customer: cus_00000000000000
|
22
|
+
date: 1419171865
|
23
|
+
description:
|
24
|
+
discount:
|
25
|
+
ending_balance: 0
|
26
|
+
forgiven: false
|
27
|
+
lines:
|
28
|
+
data:
|
29
|
+
- id: sub_7WxYDttWUWjzUS
|
30
|
+
object: line_item
|
31
|
+
amount: 2000
|
32
|
+
currency: usd
|
33
|
+
description:
|
34
|
+
discountable: true
|
35
|
+
livemode: true
|
36
|
+
metadata: {}
|
37
|
+
period:
|
38
|
+
start: 1452767588
|
39
|
+
end: 1455445988
|
40
|
+
plan:
|
41
|
+
id: '1233'
|
42
|
+
object: plan
|
43
|
+
amount: 212
|
44
|
+
created: 1419171857
|
45
|
+
currency: usd
|
46
|
+
interval: month
|
47
|
+
interval_count: 1
|
48
|
+
livemode: false
|
49
|
+
metadata: {}
|
50
|
+
name: ddd
|
51
|
+
statement_descriptor:
|
52
|
+
trial_period_days:
|
53
|
+
proration: false
|
54
|
+
quantity: 1
|
55
|
+
subscription:
|
56
|
+
type: subscription
|
57
|
+
total_count: 1
|
58
|
+
object: list
|
59
|
+
url: "/v1/invoices/in_5MuSBtaLR6r61c/lines"
|
60
|
+
livemode: false
|
61
|
+
metadata: {}
|
62
|
+
next_payment_attempt:
|
63
|
+
paid: true
|
64
|
+
period_end: 1419171865
|
65
|
+
period_start: 1419171865
|
66
|
+
receipt_number:
|
67
|
+
starting_balance: 0
|
68
|
+
statement_descriptor:
|
69
|
+
subscription: sub_00000000000000
|
70
|
+
subtotal: 212
|
71
|
+
tax:
|
72
|
+
tax_percent:
|
73
|
+
total: 212
|
74
|
+
webhooks_delivered_at: 1419171872
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
livemode: false
|
4
|
+
id: evt_00000000000000
|
5
|
+
type: invoice.payment_failed
|
6
|
+
object: event
|
7
|
+
request:
|
8
|
+
pending_webhooks: 1
|
9
|
+
api_version: '2015-10-16'
|
10
|
+
data:
|
11
|
+
object:
|
12
|
+
id: in_00000000000000
|
13
|
+
object: invoice
|
14
|
+
amount_due: 212
|
15
|
+
application_fee:
|
16
|
+
attempt_count: 1
|
17
|
+
attempted: true
|
18
|
+
charge: ch_00000000000000
|
19
|
+
closed: false
|
20
|
+
currency: usd
|
21
|
+
customer: cus_00000000000000
|
22
|
+
date: 1419171865
|
23
|
+
description:
|
24
|
+
discount:
|
25
|
+
ending_balance: 0
|
26
|
+
forgiven: false
|
27
|
+
lines:
|
28
|
+
data:
|
29
|
+
- id: sub_7WxYvcIK340EI9
|
30
|
+
object: line_item
|
31
|
+
amount: 2000
|
32
|
+
currency: usd
|
33
|
+
description:
|
34
|
+
discountable: true
|
35
|
+
livemode: true
|
36
|
+
metadata: {}
|
37
|
+
period:
|
38
|
+
start: 1452767591
|
39
|
+
end: 1455445991
|
40
|
+
plan:
|
41
|
+
id: '1233'
|
42
|
+
object: plan
|
43
|
+
amount: 212
|
44
|
+
created: 1419171857
|
45
|
+
currency: usd
|
46
|
+
interval: month
|
47
|
+
interval_count: 1
|
48
|
+
livemode: false
|
49
|
+
metadata: {}
|
50
|
+
name: ddd
|
51
|
+
statement_descriptor:
|
52
|
+
trial_period_days:
|
53
|
+
proration: false
|
54
|
+
quantity: 1
|
55
|
+
subscription:
|
56
|
+
type: subscription
|
57
|
+
total_count: 1
|
58
|
+
object: list
|
59
|
+
url: "/v1/invoices/in_5MuSBtaLR6r61c/lines"
|
60
|
+
livemode: false
|
61
|
+
metadata: {}
|
62
|
+
next_payment_attempt:
|
63
|
+
paid: false
|
64
|
+
period_end: 1419171865
|
65
|
+
period_start: 1419171865
|
66
|
+
receipt_number:
|
67
|
+
starting_balance: 0
|
68
|
+
statement_descriptor:
|
69
|
+
subscription: sub_00000000000000
|
70
|
+
subtotal: 212
|
71
|
+
tax:
|
72
|
+
tax_percent:
|
73
|
+
total: 212
|
74
|
+
webhooks_delivered_at: 1419171872
|