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