stripe_tester 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +49 -1
- data/lib/stripe_tester.rb +29 -6
- data/lib/stripe_tester/version.rb +1 -1
- data/spec/stripe_tester_spec.rb +19 -1
- data/stripe_webhooks/2013-08-13/account_updated.yml +21 -0
- data/stripe_webhooks/2013-08-13/balance_available.yml +18 -0
- data/stripe_webhooks/2013-08-13/charge_dispute_closed.yml +19 -0
- data/stripe_webhooks/2013-08-13/charge_dispute_created.yml +19 -0
- data/stripe_webhooks/2013-08-13/charge_dispute_updated.yml +21 -0
- data/stripe_webhooks/2013-08-13/charge_failed.yml +47 -0
- data/stripe_webhooks/2013-08-13/charge_refunded.yml +48 -0
- data/stripe_webhooks/2013-08-13/charge_succeeded.yml +47 -0
- data/stripe_webhooks/2013-08-13/coupon_created.yml +19 -0
- data/stripe_webhooks/2013-08-13/coupon_deleted.yml +19 -0
- data/stripe_webhooks/2013-08-13/customer_card_created.yml +29 -0
- data/stripe_webhooks/2013-08-13/customer_card_deleted.yml +29 -0
- data/stripe_webhooks/2013-08-13/customer_card_updated.yml +31 -0
- data/stripe_webhooks/2013-08-13/customer_created.yml +69 -0
- data/stripe_webhooks/2013-08-13/customer_deleted.yml +69 -0
- data/stripe_webhooks/2013-08-13/customer_discount_created.yml +24 -0
- data/stripe_webhooks/2013-08-13/customer_discount_deleted.yml +24 -0
- data/stripe_webhooks/2013-08-13/customer_discount_updated.yml +37 -0
- data/stripe_webhooks/2013-08-13/customer_subscription_created.yml +32 -0
- data/stripe_webhooks/2013-08-13/customer_subscription_deleted.yml +32 -0
- data/stripe_webhooks/2013-08-13/customer_subscription_trial_will_end.yml +32 -0
- data/stripe_webhooks/2013-08-13/customer_subscription_updated.yml +43 -0
- data/stripe_webhooks/2013-08-13/customer_updated.yml +71 -0
- data/stripe_webhooks/2013-08-13/invoice_created.yml +57 -0
- data/stripe_webhooks/2013-08-13/invoice_payment_failed.yml +57 -0
- data/stripe_webhooks/2013-08-13/invoice_payment_succeeded.yml +57 -0
- data/stripe_webhooks/2013-08-13/invoice_updated.yml +59 -0
- data/stripe_webhooks/2013-08-13/invoiceitem_created.yml +18 -0
- data/stripe_webhooks/2013-08-13/invoiceitem_deleted.yml +18 -0
- data/stripe_webhooks/2013-08-13/invoiceitem_updated.yml +20 -0
- data/stripe_webhooks/2013-08-13/plan_created.yml +17 -0
- data/stripe_webhooks/2013-08-13/plan_deleted.yml +17 -0
- data/stripe_webhooks/2013-08-13/plan_updated.yml +19 -0
- data/stripe_webhooks/2013-08-13/transfer_created.yml +21 -0
- data/stripe_webhooks/2013-08-13/transfer_failed.yml +21 -0
- data/stripe_webhooks/2013-08-13/transfer_paid.yml +21 -0
- data/stripe_webhooks/2013-08-13/transfer_updated.yml +23 -0
- data/wercker.yml +22 -0
- metadata +41 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: coupon.deleted
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
id: BETAYEAR_00000000000000
|
|
10
|
+
percent_off: 100
|
|
11
|
+
amount_off:
|
|
12
|
+
currency: usd
|
|
13
|
+
object: coupon
|
|
14
|
+
livemode: false
|
|
15
|
+
duration: repeating
|
|
16
|
+
redeem_by:
|
|
17
|
+
max_redemptions:
|
|
18
|
+
times_redeemed: 0
|
|
19
|
+
duration_in_months: 12
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: evt_2jh8OEENtnnmRi
|
|
3
|
+
created: 1381528022
|
|
4
|
+
livemode: false
|
|
5
|
+
type: customer.card.created
|
|
6
|
+
data:
|
|
7
|
+
object:
|
|
8
|
+
id: card_2jh8hwN9I8SECo
|
|
9
|
+
object: card
|
|
10
|
+
last4: '0005'
|
|
11
|
+
type: American Express
|
|
12
|
+
exp_month: 8
|
|
13
|
+
exp_year: 2018
|
|
14
|
+
fingerprint: vAwzhGBy9fqqmClQ
|
|
15
|
+
customer: cus_2jaMnKi14NFHOn
|
|
16
|
+
country: US
|
|
17
|
+
name:
|
|
18
|
+
address_line1:
|
|
19
|
+
address_line2:
|
|
20
|
+
address_city:
|
|
21
|
+
address_state:
|
|
22
|
+
address_zip:
|
|
23
|
+
address_country:
|
|
24
|
+
cvc_check: pass
|
|
25
|
+
address_line1_check:
|
|
26
|
+
address_zip_check:
|
|
27
|
+
object: event
|
|
28
|
+
pending_webhooks: 1
|
|
29
|
+
request: iar_2jh8HvyPuA8e0w
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: evt_2jh8jyGf1UIW5B
|
|
3
|
+
created: 1381528022
|
|
4
|
+
livemode: false
|
|
5
|
+
type: customer.card.deleted
|
|
6
|
+
data:
|
|
7
|
+
object:
|
|
8
|
+
id: card_2jh4kbm18eXfFb
|
|
9
|
+
object: card
|
|
10
|
+
last4: '4242'
|
|
11
|
+
type: Visa
|
|
12
|
+
exp_month: 8
|
|
13
|
+
exp_year: 2018
|
|
14
|
+
fingerprint: XslDljXmd9D6ii0D
|
|
15
|
+
customer: cus_2jaMnKi14NFHOn
|
|
16
|
+
country: US
|
|
17
|
+
name:
|
|
18
|
+
address_line1:
|
|
19
|
+
address_line2:
|
|
20
|
+
address_city:
|
|
21
|
+
address_state:
|
|
22
|
+
address_zip:
|
|
23
|
+
address_country:
|
|
24
|
+
cvc_check: pass
|
|
25
|
+
address_line1_check:
|
|
26
|
+
address_zip_check:
|
|
27
|
+
object: event
|
|
28
|
+
pending_webhooks: 1
|
|
29
|
+
request: iar_2jh8HvyPuA8e0w
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: evt_2jh0OG11xwhuRU
|
|
3
|
+
created: 1381527526
|
|
4
|
+
livemode: false
|
|
5
|
+
type: customer.card.updated
|
|
6
|
+
data:
|
|
7
|
+
object:
|
|
8
|
+
id: card_2jgzPxQfon6ehT
|
|
9
|
+
object: card
|
|
10
|
+
last4: '0005'
|
|
11
|
+
type: American Express
|
|
12
|
+
exp_month: 8
|
|
13
|
+
exp_year: 2019
|
|
14
|
+
fingerprint: vAwzhGBy9fqqmClQ
|
|
15
|
+
customer: cus_2jaMnKi14NFHOn
|
|
16
|
+
country: US
|
|
17
|
+
name:
|
|
18
|
+
address_line1:
|
|
19
|
+
address_line2:
|
|
20
|
+
address_city:
|
|
21
|
+
address_state:
|
|
22
|
+
address_zip:
|
|
23
|
+
address_country:
|
|
24
|
+
cvc_check: pass
|
|
25
|
+
address_line1_check:
|
|
26
|
+
address_zip_check:
|
|
27
|
+
previous_attributes:
|
|
28
|
+
exp_year: 2018
|
|
29
|
+
object: event
|
|
30
|
+
pending_webhooks: 1
|
|
31
|
+
request: iar_2jh0pfoHyTy4dg
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: customer.created
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
object: customer
|
|
10
|
+
created: 1381502839
|
|
11
|
+
id: cus_00000000000000
|
|
12
|
+
livemode: false
|
|
13
|
+
description: Demo Organization
|
|
14
|
+
email:
|
|
15
|
+
delinquent: false
|
|
16
|
+
metadata:
|
|
17
|
+
subscription:
|
|
18
|
+
id: su_00000000000000
|
|
19
|
+
plan:
|
|
20
|
+
interval: month
|
|
21
|
+
name: Bronze
|
|
22
|
+
amount: 1900
|
|
23
|
+
currency: usd
|
|
24
|
+
id: bronze-v1_00000000000000
|
|
25
|
+
object: plan
|
|
26
|
+
livemode: false
|
|
27
|
+
interval_count: 1
|
|
28
|
+
trial_period_days: 30
|
|
29
|
+
object: subscription
|
|
30
|
+
start: 1381503076
|
|
31
|
+
status: trialing
|
|
32
|
+
customer: cus_00000000000000
|
|
33
|
+
cancel_at_period_end: false
|
|
34
|
+
current_period_start: 1381502959
|
|
35
|
+
current_period_end: 1384094959
|
|
36
|
+
ended_at:
|
|
37
|
+
trial_start: 1381502959
|
|
38
|
+
trial_end: 1384094959
|
|
39
|
+
canceled_at:
|
|
40
|
+
quantity: 1
|
|
41
|
+
application_fee_percent:
|
|
42
|
+
discount:
|
|
43
|
+
account_balance: 0
|
|
44
|
+
cards:
|
|
45
|
+
object: list
|
|
46
|
+
count: 1
|
|
47
|
+
url: /v1/customers/cus_2jaMnKi14NFHOn/cards
|
|
48
|
+
data:
|
|
49
|
+
-
|
|
50
|
+
id: card_2jcPZBywLcGWwb
|
|
51
|
+
object: card
|
|
52
|
+
last4: '4242'
|
|
53
|
+
type: Visa
|
|
54
|
+
exp_month: 8
|
|
55
|
+
exp_year: 2018
|
|
56
|
+
fingerprint: XslDljXmd9D6ii0D
|
|
57
|
+
customer: cus_2jaMnKi14NFHOn
|
|
58
|
+
country: US
|
|
59
|
+
name:
|
|
60
|
+
address_line1:
|
|
61
|
+
address_line2:
|
|
62
|
+
address_city:
|
|
63
|
+
address_state:
|
|
64
|
+
address_zip:
|
|
65
|
+
address_country:
|
|
66
|
+
cvc_check: pass
|
|
67
|
+
address_line1_check:
|
|
68
|
+
address_zip_check:
|
|
69
|
+
default_card: card_2jcPZBywLcGWwb
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: customer.deleted
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
object: customer
|
|
10
|
+
created: 1381502839
|
|
11
|
+
id: cus_00000000000000
|
|
12
|
+
livemode: false
|
|
13
|
+
description: Demo Organization
|
|
14
|
+
email:
|
|
15
|
+
delinquent: false
|
|
16
|
+
metadata:
|
|
17
|
+
subscription:
|
|
18
|
+
id: su_00000000000000
|
|
19
|
+
plan:
|
|
20
|
+
interval: month
|
|
21
|
+
name: Bronze
|
|
22
|
+
amount: 1900
|
|
23
|
+
currency: usd
|
|
24
|
+
id: bronze-v1_00000000000000
|
|
25
|
+
object: plan
|
|
26
|
+
livemode: false
|
|
27
|
+
interval_count: 1
|
|
28
|
+
trial_period_days: 30
|
|
29
|
+
object: subscription
|
|
30
|
+
start: 1381503076
|
|
31
|
+
status: trialing
|
|
32
|
+
customer: cus_00000000000000
|
|
33
|
+
cancel_at_period_end: false
|
|
34
|
+
current_period_start: 1381502959
|
|
35
|
+
current_period_end: 1384094959
|
|
36
|
+
ended_at:
|
|
37
|
+
trial_start: 1381502959
|
|
38
|
+
trial_end: 1384094959
|
|
39
|
+
canceled_at:
|
|
40
|
+
quantity: 1
|
|
41
|
+
application_fee_percent:
|
|
42
|
+
discount:
|
|
43
|
+
account_balance: 0
|
|
44
|
+
cards:
|
|
45
|
+
object: list
|
|
46
|
+
count: 1
|
|
47
|
+
url: /v1/customers/cus_2jaMnKi14NFHOn/cards
|
|
48
|
+
data:
|
|
49
|
+
-
|
|
50
|
+
id: card_2jcPZBywLcGWwb
|
|
51
|
+
object: card
|
|
52
|
+
last4: '4242'
|
|
53
|
+
type: Visa
|
|
54
|
+
exp_month: 8
|
|
55
|
+
exp_year: 2018
|
|
56
|
+
fingerprint: XslDljXmd9D6ii0D
|
|
57
|
+
customer: cus_2jaMnKi14NFHOn
|
|
58
|
+
country: US
|
|
59
|
+
name:
|
|
60
|
+
address_line1:
|
|
61
|
+
address_line2:
|
|
62
|
+
address_city:
|
|
63
|
+
address_state:
|
|
64
|
+
address_zip:
|
|
65
|
+
address_country:
|
|
66
|
+
cvc_check: pass
|
|
67
|
+
address_line1_check:
|
|
68
|
+
address_zip_check:
|
|
69
|
+
default_card: card_2jcPZBywLcGWwb
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: customer.discount.created
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
coupon:
|
|
10
|
+
id: BETAYEAR_00000000000000
|
|
11
|
+
percent_off: 100
|
|
12
|
+
amount_off:
|
|
13
|
+
currency: usd
|
|
14
|
+
object: coupon
|
|
15
|
+
livemode: false
|
|
16
|
+
duration: repeating
|
|
17
|
+
redeem_by:
|
|
18
|
+
max_redemptions:
|
|
19
|
+
times_redeemed: 0
|
|
20
|
+
duration_in_months: 12
|
|
21
|
+
start: 1381515439
|
|
22
|
+
object: discount
|
|
23
|
+
customer: cus_00000000000000
|
|
24
|
+
end: 1413051439
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: customer.discount.deleted
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
coupon:
|
|
10
|
+
id: BETAYEAR_00000000000000
|
|
11
|
+
percent_off: 100
|
|
12
|
+
amount_off:
|
|
13
|
+
currency: usd
|
|
14
|
+
object: coupon
|
|
15
|
+
livemode: false
|
|
16
|
+
duration: repeating
|
|
17
|
+
redeem_by:
|
|
18
|
+
max_redemptions:
|
|
19
|
+
times_redeemed: 0
|
|
20
|
+
duration_in_months: 12
|
|
21
|
+
start: 1381515444
|
|
22
|
+
object: discount
|
|
23
|
+
customer: cus_00000000000000
|
|
24
|
+
end: 1413051444
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: customer.discount.updated
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
coupon:
|
|
10
|
+
id: BETAYEAR_00000000000000
|
|
11
|
+
percent_off: 100
|
|
12
|
+
amount_off:
|
|
13
|
+
currency: usd
|
|
14
|
+
object: coupon
|
|
15
|
+
livemode: false
|
|
16
|
+
duration: repeating
|
|
17
|
+
redeem_by:
|
|
18
|
+
max_redemptions:
|
|
19
|
+
times_redeemed: 0
|
|
20
|
+
duration_in_months: 12
|
|
21
|
+
start: 1381515442
|
|
22
|
+
object: discount
|
|
23
|
+
customer: cus_00000000000000
|
|
24
|
+
end: 1413051442
|
|
25
|
+
previous_attributes:
|
|
26
|
+
coupon:
|
|
27
|
+
id: OLD_COUPON_ID
|
|
28
|
+
percent_off: 100
|
|
29
|
+
amount_off:
|
|
30
|
+
currency: usd
|
|
31
|
+
object: coupon
|
|
32
|
+
livemode: false
|
|
33
|
+
duration: repeating
|
|
34
|
+
redeem_by:
|
|
35
|
+
max_redemptions:
|
|
36
|
+
times_redeemed: 0
|
|
37
|
+
duration_in_months: 12
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: customer.subscription.created
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
id: su_00000000000000
|
|
10
|
+
plan:
|
|
11
|
+
interval: month
|
|
12
|
+
name: Gold
|
|
13
|
+
amount: 7900
|
|
14
|
+
currency: usd
|
|
15
|
+
id: gold-v1_00000000000000
|
|
16
|
+
object: plan
|
|
17
|
+
livemode: false
|
|
18
|
+
interval_count: 1
|
|
19
|
+
trial_period_days: 30
|
|
20
|
+
object: subscription
|
|
21
|
+
start: 1381515454
|
|
22
|
+
status: trialing
|
|
23
|
+
customer: cus_00000000000000
|
|
24
|
+
cancel_at_period_end: false
|
|
25
|
+
current_period_start: 1381502959
|
|
26
|
+
current_period_end: 1384094959
|
|
27
|
+
ended_at:
|
|
28
|
+
trial_start: 1381502959
|
|
29
|
+
trial_end: 1384094959
|
|
30
|
+
canceled_at:
|
|
31
|
+
quantity: 1
|
|
32
|
+
application_fee_percent:
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: customer.subscription.deleted
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
id: su_00000000000000
|
|
10
|
+
plan:
|
|
11
|
+
interval: month
|
|
12
|
+
name: Gold
|
|
13
|
+
amount: 7900
|
|
14
|
+
currency: usd
|
|
15
|
+
id: gold-v1_00000000000000
|
|
16
|
+
object: plan
|
|
17
|
+
livemode: false
|
|
18
|
+
interval_count: 1
|
|
19
|
+
trial_period_days: 30
|
|
20
|
+
object: subscription
|
|
21
|
+
start: 1381515458
|
|
22
|
+
status: canceled
|
|
23
|
+
customer: cus_00000000000000
|
|
24
|
+
cancel_at_period_end: false
|
|
25
|
+
current_period_start: 1381502959
|
|
26
|
+
current_period_end: 1384094959
|
|
27
|
+
ended_at: 1381458124
|
|
28
|
+
trial_start: 1381502959
|
|
29
|
+
trial_end: 1384094959
|
|
30
|
+
canceled_at:
|
|
31
|
+
quantity: 1
|
|
32
|
+
application_fee_percent:
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
created: 1326853478
|
|
3
|
+
livemode: false
|
|
4
|
+
id: evt_00000000000000
|
|
5
|
+
type: customer.subscription.trial_will_end
|
|
6
|
+
object: event
|
|
7
|
+
data:
|
|
8
|
+
object:
|
|
9
|
+
id: su_00000000000000
|
|
10
|
+
plan:
|
|
11
|
+
interval: month
|
|
12
|
+
name: Gold
|
|
13
|
+
amount: 7900
|
|
14
|
+
currency: usd
|
|
15
|
+
id: gold-v1_00000000000000
|
|
16
|
+
object: plan
|
|
17
|
+
livemode: false
|
|
18
|
+
interval_count: 1
|
|
19
|
+
trial_period_days: 30
|
|
20
|
+
object: subscription
|
|
21
|
+
start: 1381515461
|
|
22
|
+
status: trialing
|
|
23
|
+
customer: cus_00000000000000
|
|
24
|
+
cancel_at_period_end: false
|
|
25
|
+
current_period_start: 1381502959
|
|
26
|
+
current_period_end: 1384094959
|
|
27
|
+
ended_at:
|
|
28
|
+
trial_start: 1381458127
|
|
29
|
+
trial_end: 1381717327
|
|
30
|
+
canceled_at:
|
|
31
|
+
quantity: 1
|
|
32
|
+
application_fee_percent:
|