stripe_tester 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -149
  3. data/lib/stripe_tester/version.rb +1 -1
  4. data/stripe_webhooks/2015-04-07/account_updated.yml +86 -0
  5. data/stripe_webhooks/2015-04-07/balance_available.yml +19 -0
  6. data/stripe_webhooks/2015-04-07/charge_captured.yml +65 -0
  7. data/stripe_webhooks/2015-04-07/charge_dispute_closed.yml +28 -0
  8. data/stripe_webhooks/2015-04-07/charge_dispute_created.yml +55 -0
  9. data/stripe_webhooks/2015-04-07/charge_dispute_updated.yml +30 -0
  10. data/stripe_webhooks/2015-04-07/charge_failed.yml +65 -0
  11. data/stripe_webhooks/2015-04-07/charge_refunded.yml +76 -0
  12. data/stripe_webhooks/2015-04-07/charge_succeeded.yml +65 -0
  13. data/stripe_webhooks/2015-04-07/charge_updated.yml +67 -0
  14. data/stripe_webhooks/2015-04-07/coupon_created.yml +25 -0
  15. data/stripe_webhooks/2015-04-07/coupon_deleted.yml +25 -0
  16. data/stripe_webhooks/2015-04-07/customer_card_created.yml +32 -0
  17. data/stripe_webhooks/2015-04-07/customer_card_deleted.yml +32 -0
  18. data/stripe_webhooks/2015-04-07/customer_card_updated.yml +34 -0
  19. data/stripe_webhooks/2015-04-07/customer_created.yml +35 -0
  20. data/stripe_webhooks/2015-04-07/customer_deleted.yml +35 -0
  21. data/stripe_webhooks/2015-04-07/customer_discount_created.yml +31 -0
  22. data/stripe_webhooks/2015-04-07/customer_discount_deleted.yml +31 -0
  23. data/stripe_webhooks/2015-04-07/customer_discount_updated.yml +47 -0
  24. data/stripe_webhooks/2015-04-07/customer_subscription_created.yml +41 -0
  25. data/stripe_webhooks/2015-04-07/customer_subscription_deleted.yml +41 -0
  26. data/stripe_webhooks/2015-04-07/customer_subscription_trial_will_end.yml +41 -0
  27. data/stripe_webhooks/2015-04-07/customer_subscription_updated.yml +55 -0
  28. data/stripe_webhooks/2015-04-07/customer_updated.yml +37 -0
  29. data/stripe_webhooks/2015-04-07/invoice_created.yml +74 -0
  30. data/stripe_webhooks/2015-04-07/invoice_payment_failed.yml +74 -0
  31. data/stripe_webhooks/2015-04-07/invoice_payment_succeeded.yml +74 -0
  32. data/stripe_webhooks/2015-04-07/invoice_updated.yml +76 -0
  33. data/stripe_webhooks/2015-04-07/invoiceitem_created.yml +29 -0
  34. data/stripe_webhooks/2015-04-07/invoiceitem_deleted.yml +29 -0
  35. data/stripe_webhooks/2015-04-07/invoiceitem_updated.yml +31 -0
  36. data/stripe_webhooks/2015-04-07/plan_created.yml +23 -0
  37. data/stripe_webhooks/2015-04-07/plan_deleted.yml +23 -0
  38. data/stripe_webhooks/2015-04-07/plan_updated.yml +25 -0
  39. data/stripe_webhooks/2015-04-07/transfer_created.yml +38 -0
  40. data/stripe_webhooks/2015-04-07/transfer_failed.yml +38 -0
  41. data/stripe_webhooks/2015-04-07/transfer_paid.yml +38 -0
  42. data/stripe_webhooks/2015-04-07/transfer_updated.yml +40 -0
  43. data/supported_webhook_versions.md +200 -0
  44. metadata +42 -2
@@ -0,0 +1,35 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.created
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ object: customer
13
+ created: 1432058582
14
+ id: cus_00000000000000
15
+ livemode: false
16
+ description:
17
+ email:
18
+ delinquent: false
19
+ metadata: {}
20
+ subscriptions:
21
+ object: list
22
+ total_count: 0
23
+ has_more: false
24
+ url: "/v1/customers/cus_6GmcDL3FcIIS6H/subscriptions"
25
+ data: []
26
+ discount:
27
+ account_balance: 0
28
+ currency: usd
29
+ sources:
30
+ object: list
31
+ total_count: 0
32
+ has_more: false
33
+ url: "/v1/customers/cus_6GmcDL3FcIIS6H/sources"
34
+ data: []
35
+ default_source:
@@ -0,0 +1,35 @@
1
+ ---
2
+ created: 1326853478
3
+ livemode: false
4
+ id: evt_00000000000000
5
+ type: customer.deleted
6
+ object: event
7
+ request:
8
+ pending_webhooks: 1
9
+ api_version: '2015-04-07'
10
+ data:
11
+ object:
12
+ object: customer
13
+ created: 1432058585
14
+ id: cus_00000000000000
15
+ livemode: false
16
+ description:
17
+ email:
18
+ delinquent: false
19
+ metadata: {}
20
+ subscriptions:
21
+ object: list
22
+ total_count: 0
23
+ has_more: false
24
+ url: "/v1/customers/cus_6GmcdpbjqLLrn8/subscriptions"
25
+ data: []
26
+ discount:
27
+ account_balance: 0
28
+ currency: usd
29
+ sources:
30
+ object: list
31
+ total_count: 0
32
+ has_more: false
33
+ url: "/v1/customers/cus_6GmcdpbjqLLrn8/sources"
34
+ data: []
35
+ default_source:
@@ -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-04-07'
10
+ data:
11
+ object:
12
+ coupon:
13
+ id: 25OFF_00000000000000
14
+ created: 1432058611
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: 1432058611
28
+ object: discount
29
+ customer: cus_00000000000000
30
+ subscription:
31
+ end: 1440007411
@@ -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-04-07'
10
+ data:
11
+ object:
12
+ coupon:
13
+ id: 25OFF_00000000000000
14
+ created: 1432058614
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: 1432058614
28
+ object: discount
29
+ customer: cus_00000000000000
30
+ subscription:
31
+ end: 1440007414
@@ -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-04-07'
10
+ data:
11
+ object:
12
+ coupon:
13
+ id: 25OFF_00000000000000
14
+ created: 1432058619
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: 1432058619
28
+ object: discount
29
+ customer: cus_00000000000000
30
+ subscription:
31
+ end: 1440007419
32
+ previous_attributes:
33
+ coupon:
34
+ id: OLD_COUPON_ID
35
+ created: 1432058619
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-04-07'
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: 1432058622
28
+ status: active
29
+ customer: cus_00000000000000
30
+ cancel_at_period_end: false
31
+ current_period_start: 1432058622
32
+ current_period_end: 1434737022
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-04-07'
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: 1432058625
28
+ status: canceled
29
+ customer: cus_00000000000000
30
+ cancel_at_period_end: false
31
+ current_period_start: 1432058625
32
+ current_period_end: 1434737025
33
+ ended_at: 1432057360
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-04-07'
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: 1432058628
28
+ status: trialing
29
+ customer: cus_00000000000000
30
+ cancel_at_period_end: false
31
+ current_period_start: 1432058628
32
+ current_period_end: 1434737028
33
+ ended_at:
34
+ trial_start: 1432057368
35
+ trial_end: 1432316568
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-04-07'
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: 1432058631
28
+ status: active
29
+ customer: cus_00000000000000
30
+ cancel_at_period_end: false
31
+ current_period_start: 1432058631
32
+ current_period_end: 1434737031
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,37 @@
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-04-07'
10
+ data:
11
+ object:
12
+ object: customer
13
+ created: 1432058588
14
+ id: cus_00000000000000
15
+ livemode: false
16
+ description:
17
+ email:
18
+ delinquent: false
19
+ metadata: {}
20
+ subscriptions:
21
+ object: list
22
+ total_count: 0
23
+ has_more: false
24
+ url: "/v1/customers/cus_6Gmca9TSTsrviQ/subscriptions"
25
+ data: []
26
+ discount:
27
+ account_balance: 0
28
+ currency: usd
29
+ sources:
30
+ object: list
31
+ total_count: 0
32
+ has_more: false
33
+ url: "/v1/customers/cus_6Gmca9TSTsrviQ/sources"
34
+ data: []
35
+ default_source:
36
+ previous_attributes:
37
+ 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-04-07'
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_6GmdiQrrEJBRHk
19
+ object: line_item
20
+ type: subscription
21
+ livemode: true
22
+ amount: 2000
23
+ currency: usd
24
+ proration: false
25
+ period:
26
+ start: 1434737034
27
+ end: 1437329034
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: