stripe_tester 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/.gitignore +19 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +122 -0
  5. data/Rakefile +7 -0
  6. data/lib/stripe_tester.rb +97 -0
  7. data/lib/stripe_tester/version.rb +3 -0
  8. data/spec/spec_helper.rb +1 -0
  9. data/spec/stripe_tester_spec.rb +101 -0
  10. data/stripe_tester.gemspec +25 -0
  11. data/stripe_webhooks/.DS_Store +0 -0
  12. data/stripe_webhooks/2013-02-13/charge_failed.yml +44 -0
  13. data/stripe_webhooks/2013-02-13/charge_refunded.yml +44 -0
  14. data/stripe_webhooks/2013-02-13/charge_succeeded.yml +43 -0
  15. data/stripe_webhooks/2013-02-13/customer_created.yml +19 -0
  16. data/stripe_webhooks/2013-02-13/customer_deleted.yml +19 -0
  17. data/stripe_webhooks/2013-02-13/customer_subscription_created.yml +30 -0
  18. data/stripe_webhooks/2013-02-13/customer_subscription_deleted.yml +30 -0
  19. data/stripe_webhooks/2013-02-13/customer_subscription_trial_will_end.yaml +30 -0
  20. data/stripe_webhooks/2013-02-13/customer_subscription_updated.yml +41 -0
  21. data/stripe_webhooks/2013-02-13/invoice_created.yml +55 -0
  22. data/stripe_webhooks/2013-02-13/invoice_payment_failed.yml +55 -0
  23. data/stripe_webhooks/2013-02-13/invoice_payment_succeeded.yml +55 -0
  24. data/stripe_webhooks/2013-02-13/invoice_updated.yml +57 -0
  25. data/stripe_webhooks/2013-07-05/charge_failed.yaml +45 -0
  26. data/stripe_webhooks/2013-07-05/charge_refunded.yaml +45 -0
  27. data/stripe_webhooks/2013-07-05/charge_succeeded.yaml +45 -0
  28. data/stripe_webhooks/2013-07-05/customer_created.yaml +24 -0
  29. data/stripe_webhooks/2013-07-05/customer_deleted.yaml +24 -0
  30. data/stripe_webhooks/2013-07-05/customer_subscription_created.yaml +30 -0
  31. data/stripe_webhooks/2013-07-05/customer_subscription_deleted.yaml +30 -0
  32. data/stripe_webhooks/2013-07-05/customer_subscription_trial_will_end.yaml +30 -0
  33. data/stripe_webhooks/2013-07-05/customer_subscription_updated.yaml +41 -0
  34. data/stripe_webhooks/2013-07-05/invoice_created.yaml +55 -0
  35. data/stripe_webhooks/2013-07-05/invoice_payment_failed.yaml +55 -0
  36. data/stripe_webhooks/2013-07-05/invoice_payment_succeeded.yaml +55 -0
  37. data/stripe_webhooks/2013-07-05/invoice_updated.yaml +57 -0
  38. metadata +136 -0
@@ -0,0 +1,45 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ amount: 100
6
+ amount_refunded: 0
7
+ captured: true
8
+ card:
9
+ address_city:
10
+ address_country:
11
+ address_line1:
12
+ address_line1_check:
13
+ address_line2:
14
+ address_state:
15
+ address_zip:
16
+ address_zip_check:
17
+ country: US
18
+ customer:
19
+ cvc_check:
20
+ exp_month: 8
21
+ exp_year: 2014
22
+ fingerprint: TTKQdP1Omgi1czlY
23
+ last4: '4242'
24
+ name:
25
+ object: card
26
+ type: Visa
27
+ created: 1374586819
28
+ currency: usd
29
+ customer:
30
+ description: My First Test Charge (created for API docs)
31
+ dispute:
32
+ failure_code:
33
+ failure_message:
34
+ fee: 0
35
+ fee_details: []
36
+ id: ch_00000000000000
37
+ invoice:
38
+ livemode: false
39
+ object: charge
40
+ paid: false
41
+ refunded: false
42
+ id: evt_00000000000000
43
+ livemode: false
44
+ object: event
45
+ type: charge.failed
@@ -0,0 +1,45 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ amount: 100
6
+ amount_refunded: 0
7
+ captured: true
8
+ card:
9
+ address_city:
10
+ address_country:
11
+ address_line1:
12
+ address_line1_check:
13
+ address_line2:
14
+ address_state:
15
+ address_zip:
16
+ address_zip_check:
17
+ country: US
18
+ customer:
19
+ cvc_check:
20
+ exp_month: 8
21
+ exp_year: 2014
22
+ fingerprint: TTKQdP1Omgi1czlY
23
+ last4: '4242'
24
+ name:
25
+ object: card
26
+ type: Visa
27
+ created: 1374586843
28
+ currency: usd
29
+ customer:
30
+ description: My First Test Charge (created for API docs)
31
+ dispute:
32
+ failure_code:
33
+ failure_message:
34
+ fee: 0
35
+ fee_details: []
36
+ id: ch_00000000000000
37
+ invoice:
38
+ livemode: false
39
+ object: charge
40
+ paid: true
41
+ refunded: true
42
+ id: evt_00000000000000
43
+ livemode: false
44
+ object: event
45
+ type: charge.refunded
@@ -0,0 +1,45 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ amount: 100
6
+ amount_refunded: 0
7
+ captured: true
8
+ card:
9
+ address_city:
10
+ address_country:
11
+ address_line1:
12
+ address_line1_check:
13
+ address_line2:
14
+ address_state:
15
+ address_zip:
16
+ address_zip_check:
17
+ country: US
18
+ customer:
19
+ cvc_check:
20
+ exp_month: 8
21
+ exp_year: 2014
22
+ fingerprint: TTKQdP1Omgi1czlY
23
+ last4: '4242'
24
+ name:
25
+ object: card
26
+ type: Visa
27
+ created: 1374586676
28
+ currency: usd
29
+ customer:
30
+ description: My First Test Charge (created for API docs)
31
+ dispute:
32
+ failure_code:
33
+ failure_message:
34
+ fee: 0
35
+ fee_details: []
36
+ id: ch_00000000000000
37
+ invoice:
38
+ livemode: false
39
+ object: charge
40
+ paid: true
41
+ refunded: false
42
+ id: evt_00000000000000
43
+ livemode: false
44
+ object: event
45
+ type: charge.succeeded
@@ -0,0 +1,24 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ account_balance: 0
6
+ cards:
7
+ count: 0
8
+ data: []
9
+ object: list
10
+ url: /v1/customers/cus_2FbFUETKOgS8gJ/cards
11
+ created: 1374586883
12
+ default_card:
13
+ delinquent: false
14
+ description:
15
+ discount:
16
+ email:
17
+ id: cus_00000000000000
18
+ livemode: false
19
+ object: customer
20
+ subscription:
21
+ id: evt_00000000000000
22
+ livemode: false
23
+ object: event
24
+ type: customer.created
@@ -0,0 +1,24 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ account_balance: 0
6
+ cards:
7
+ count: 0
8
+ data: []
9
+ object: list
10
+ url: /v1/customers/cus_2FbF4FTM3YPGLz/cards
11
+ created: 1374586907
12
+ default_card:
13
+ delinquent: false
14
+ description:
15
+ discount:
16
+ email:
17
+ id: cus_00000000000000
18
+ livemode: false
19
+ object: customer
20
+ subscription:
21
+ id: evt_00000000000000
22
+ livemode: false
23
+ object: event
24
+ type: customer.deleted
@@ -0,0 +1,30 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ cancel_at_period_end: false
6
+ canceled_at:
7
+ current_period_end: 1377265335
8
+ current_period_start: 1374586935
9
+ customer: cus_00000000000000
10
+ ended_at:
11
+ object: subscription
12
+ plan:
13
+ amount: 100
14
+ currency: usd
15
+ id: JAVA-PLAN-a7761760-534c-41b2-85c0-2006ac8f6d0c_00000000000000
16
+ interval: month
17
+ interval_count: 1
18
+ livemode: false
19
+ name: Java Bindings Plan
20
+ object: plan
21
+ trial_period_days:
22
+ quantity: 1
23
+ start: 1374586935
24
+ status: active
25
+ trial_end:
26
+ trial_start:
27
+ id: evt_00000000000000
28
+ livemode: false
29
+ object: event
30
+ type: customer.subscription.created
@@ -0,0 +1,30 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ cancel_at_period_end: false
6
+ canceled_at:
7
+ current_period_end: 1377265382
8
+ current_period_start: 1374586982
9
+ customer: cus_00000000000000
10
+ ended_at: 1374544585
11
+ object: subscription
12
+ plan:
13
+ amount: 100
14
+ currency: usd
15
+ id: JAVA-PLAN-a7761760-534c-41b2-85c0-2006ac8f6d0c_00000000000000
16
+ interval: month
17
+ interval_count: 1
18
+ livemode: false
19
+ name: Java Bindings Plan
20
+ object: plan
21
+ trial_period_days:
22
+ quantity: 1
23
+ start: 1374586982
24
+ status: canceled
25
+ trial_end:
26
+ trial_start:
27
+ id: evt_00000000000000
28
+ livemode: false
29
+ object: event
30
+ type: customer.subscription.deleted
@@ -0,0 +1,30 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ cancel_at_period_end: false
6
+ canceled_at:
7
+ current_period_end: 1377265453
8
+ current_period_start: 1374587053
9
+ customer: cus_00000000000000
10
+ ended_at:
11
+ object: subscription
12
+ plan:
13
+ amount: 100
14
+ currency: usd
15
+ id: JAVA-PLAN-a7761760-534c-41b2-85c0-2006ac8f6d0c_00000000000000
16
+ interval: month
17
+ interval_count: 1
18
+ livemode: false
19
+ name: Java Bindings Plan
20
+ object: plan
21
+ trial_period_days:
22
+ quantity: 1
23
+ start: 1374587053
24
+ status: trialing
25
+ trial_end: 1374803771
26
+ trial_start: 1374544571
27
+ id: evt_00000000000000
28
+ livemode: false
29
+ object: event
30
+ type: customer.subscription.trial_will_end
@@ -0,0 +1,41 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ cancel_at_period_end: false
6
+ canceled_at:
7
+ current_period_end: 1377265361
8
+ current_period_start: 1374586961
9
+ customer: cus_00000000000000
10
+ ended_at:
11
+ object: subscription
12
+ plan:
13
+ amount: 100
14
+ currency: usd
15
+ id: JAVA-PLAN-a7761760-534c-41b2-85c0-2006ac8f6d0c_00000000000000
16
+ interval: month
17
+ interval_count: 1
18
+ livemode: false
19
+ name: Java Bindings Plan
20
+ object: plan
21
+ trial_period_days:
22
+ quantity: 1
23
+ start: 1374586961
24
+ status: active
25
+ trial_end:
26
+ trial_start:
27
+ previous_attributes:
28
+ plan:
29
+ amount: 2000
30
+ currency: usd
31
+ id: OLD_PLAN_ID
32
+ interval: month
33
+ interval_count: 1
34
+ livemode: false
35
+ name: Old plan
36
+ object: plan
37
+ trial_period_days:
38
+ id: evt_00000000000000
39
+ livemode: false
40
+ object: event
41
+ type: customer.subscription.updated
@@ -0,0 +1,55 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ amount_due: 0
6
+ attempt_count: 0
7
+ attempted: false
8
+ charge:
9
+ closed: false
10
+ currency: usd
11
+ customer: cus_00000000000000
12
+ date: 1374587142
13
+ discount:
14
+ ending_balance:
15
+ id: in_00000000000000
16
+ lines:
17
+ count: 1
18
+ data:
19
+ - amount: 100
20
+ currency: usd
21
+ description:
22
+ id: su_2FbJcQ1bOEWlfE
23
+ livemode: true
24
+ object: line_item
25
+ period:
26
+ end: 1379943942
27
+ start: 1377265542
28
+ plan:
29
+ amount: 2000
30
+ currency: usd
31
+ id: gold
32
+ interval: month
33
+ interval_count: 1
34
+ livemode: false
35
+ name: Gold Special
36
+ object: plan
37
+ trial_period_days:
38
+ proration: false
39
+ quantity: 1
40
+ type: subscription
41
+ object: list
42
+ url: /v1/invoices/in_2FbJHkkX87S3si/lines
43
+ livemode: false
44
+ next_payment_attempt: 1374590742
45
+ object: invoice
46
+ paid: true
47
+ period_end: 1374587142
48
+ period_start: 1374587142
49
+ starting_balance: 0
50
+ subtotal: 0
51
+ total: 0
52
+ id: evt_00000000000000
53
+ livemode: false
54
+ object: event
55
+ type: invoice.created
@@ -0,0 +1,55 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ amount_due: 0
6
+ attempt_count: 0
7
+ attempted: true
8
+ charge:
9
+ closed: false
10
+ currency: usd
11
+ customer: cus_00000000000000
12
+ date: 1374587180
13
+ discount:
14
+ ending_balance:
15
+ id: in_00000000000000
16
+ lines:
17
+ count: 1
18
+ data:
19
+ - amount: 100
20
+ currency: usd
21
+ description:
22
+ id: su_2FbKbId8hWJUeN
23
+ livemode: true
24
+ object: line_item
25
+ period:
26
+ end: 1379943980
27
+ start: 1377265580
28
+ plan:
29
+ amount: 2000
30
+ currency: usd
31
+ id: gold
32
+ interval: month
33
+ interval_count: 1
34
+ livemode: false
35
+ name: Gold Special
36
+ object: plan
37
+ trial_period_days:
38
+ proration: false
39
+ quantity: 1
40
+ type: subscription
41
+ object: list
42
+ url: /v1/invoices/in_2FbKrOVJ9eq7lf/lines
43
+ livemode: false
44
+ next_payment_attempt: 1374590780
45
+ object: invoice
46
+ paid: false
47
+ period_end: 1374587180
48
+ period_start: 1374587180
49
+ starting_balance: 0
50
+ subtotal: 0
51
+ total: 0
52
+ id: evt_00000000000000
53
+ livemode: false
54
+ object: event
55
+ type: invoice.payment_failed
@@ -0,0 +1,55 @@
1
+ ---
2
+ created: 1326853478
3
+ data:
4
+ object:
5
+ amount_due: 0
6
+ attempt_count: 0
7
+ attempted: true
8
+ charge: '_00000000000000'
9
+ closed: true
10
+ currency: usd
11
+ customer: cus_00000000000000
12
+ date: 1374587184
13
+ discount:
14
+ ending_balance:
15
+ id: in_00000000000000
16
+ lines:
17
+ count: 1
18
+ data:
19
+ - amount: 100
20
+ currency: usd
21
+ description:
22
+ id: su_2FbKTWqaB5jCEr
23
+ livemode: true
24
+ object: line_item
25
+ period:
26
+ end: 1379943984
27
+ start: 1377265584
28
+ plan:
29
+ amount: 2000
30
+ currency: usd
31
+ id: gold
32
+ interval: month
33
+ interval_count: 1
34
+ livemode: false
35
+ name: Gold Special
36
+ object: plan
37
+ trial_period_days:
38
+ proration: false
39
+ quantity: 1
40
+ type: subscription
41
+ object: list
42
+ url: /v1/invoices/in_2FbKNMKw1IGIgD/lines
43
+ livemode: false
44
+ next_payment_attempt: 1374590784
45
+ object: invoice
46
+ paid: true
47
+ period_end: 1374587184
48
+ period_start: 1374587184
49
+ starting_balance: 0
50
+ subtotal: 0
51
+ total: 0
52
+ id: evt_00000000000000
53
+ livemode: false
54
+ object: event
55
+ type: invoice.payment_succeeded