stripe_tester 0.0.1

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.
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,57 @@
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: 1374587316
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_2FbM47Yrn24fJh
23
+ livemode: true
24
+ object: line_item
25
+ period:
26
+ end: 1379944116
27
+ start: 1377265716
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_2FbMMaeeu8rnu5/lines
43
+ livemode: false
44
+ next_payment_attempt: 1374590916
45
+ object: invoice
46
+ paid: false
47
+ period_end: 1374587316
48
+ period_start: 1374587316
49
+ starting_balance: 0
50
+ subtotal: 0
51
+ total: 0
52
+ previous_attributes:
53
+ lines: []
54
+ id: evt_00000000000000
55
+ livemode: false
56
+ object: event
57
+ type: invoice.updated
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stripe_tester
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Buttercloud
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-07-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: Test Stripe webhooks locally
63
+ email:
64
+ - info@buttercloud.com
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - .gitignore
70
+ - Gemfile
71
+ - LICENSE.txt
72
+ - README.md
73
+ - Rakefile
74
+ - lib/stripe_tester.rb
75
+ - lib/stripe_tester/version.rb
76
+ - spec/spec_helper.rb
77
+ - spec/stripe_tester_spec.rb
78
+ - stripe_tester.gemspec
79
+ - stripe_webhooks/.DS_Store
80
+ - stripe_webhooks/2013-02-13/charge_failed.yml
81
+ - stripe_webhooks/2013-02-13/charge_refunded.yml
82
+ - stripe_webhooks/2013-02-13/charge_succeeded.yml
83
+ - stripe_webhooks/2013-02-13/customer_created.yml
84
+ - stripe_webhooks/2013-02-13/customer_deleted.yml
85
+ - stripe_webhooks/2013-02-13/customer_subscription_created.yml
86
+ - stripe_webhooks/2013-02-13/customer_subscription_deleted.yml
87
+ - stripe_webhooks/2013-02-13/customer_subscription_trial_will_end.yaml
88
+ - stripe_webhooks/2013-02-13/customer_subscription_updated.yml
89
+ - stripe_webhooks/2013-02-13/invoice_created.yml
90
+ - stripe_webhooks/2013-02-13/invoice_payment_failed.yml
91
+ - stripe_webhooks/2013-02-13/invoice_payment_succeeded.yml
92
+ - stripe_webhooks/2013-02-13/invoice_updated.yml
93
+ - stripe_webhooks/2013-07-05/charge_failed.yaml
94
+ - stripe_webhooks/2013-07-05/charge_refunded.yaml
95
+ - stripe_webhooks/2013-07-05/charge_succeeded.yaml
96
+ - stripe_webhooks/2013-07-05/customer_created.yaml
97
+ - stripe_webhooks/2013-07-05/customer_deleted.yaml
98
+ - stripe_webhooks/2013-07-05/customer_subscription_created.yaml
99
+ - stripe_webhooks/2013-07-05/customer_subscription_deleted.yaml
100
+ - stripe_webhooks/2013-07-05/customer_subscription_trial_will_end.yaml
101
+ - stripe_webhooks/2013-07-05/customer_subscription_updated.yaml
102
+ - stripe_webhooks/2013-07-05/invoice_created.yaml
103
+ - stripe_webhooks/2013-07-05/invoice_payment_failed.yaml
104
+ - stripe_webhooks/2013-07-05/invoice_payment_succeeded.yaml
105
+ - stripe_webhooks/2013-07-05/invoice_updated.yaml
106
+ homepage: https://github.com/buttercloud/stripe_tester
107
+ licenses:
108
+ - MIT
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: 1.9.3
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ segments:
126
+ - 0
127
+ hash: -611513941826417096
128
+ requirements: []
129
+ rubyforge_project:
130
+ rubygems_version: 1.8.25
131
+ signing_key:
132
+ specification_version: 3
133
+ summary: Test Stripe webhooks locally
134
+ test_files:
135
+ - spec/spec_helper.rb
136
+ - spec/stripe_tester_spec.rb