stripe2qb 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/stripe2qb/version.rb +1 -1
- metadata +1 -13
- data/.gitignore +0 -9
- data/.rspec +0 -2
- data/.travis.yml +0 -4
- data/CODE_OF_CONDUCT.md +0 -49
- data/Gemfile +0 -6
- data/LICENSE.txt +0 -21
- data/README.md +0 -93
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/config/.keep +0 -0
- data/stripe2qb.gemspec +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2281a6583363ac8584578d41cf4ab104d120d4d7
|
4
|
+
data.tar.gz: ba355fea2608b919411fb4e6fa1ff41cc4527e23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26633a652d388d7603957ee621e80b4953696bd716deb5dc225f96a47b592649845c82c544543bca9da8c14461402555bd1113038bc8e913e0edf117e18a15cf
|
7
|
+
data.tar.gz: ec1fe00ab148317c5455f3f877c9db1d2dde5e8f8b055cfe442360c69bea570e8ca4a4c358750243223e176b748b40b19ff7bf170a03c3affdf46c8c597bbd80
|
data/lib/stripe2qb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe2qb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Wang
|
@@ -88,17 +88,6 @@ executables: []
|
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
-
- ".gitignore"
|
92
|
-
- ".rspec"
|
93
|
-
- ".travis.yml"
|
94
|
-
- CODE_OF_CONDUCT.md
|
95
|
-
- Gemfile
|
96
|
-
- LICENSE.txt
|
97
|
-
- README.md
|
98
|
-
- Rakefile
|
99
|
-
- bin/console
|
100
|
-
- bin/setup
|
101
|
-
- config/.keep
|
102
91
|
- config/stripe2qb.yml
|
103
92
|
- lib/stripe2qb.rb
|
104
93
|
- lib/stripe2qb/configuration.rb
|
@@ -112,7 +101,6 @@ files:
|
|
112
101
|
- lib/stripe2qb/quickbooks_api/access_token.rb
|
113
102
|
- lib/stripe2qb/stripe_api.rb
|
114
103
|
- lib/stripe2qb/version.rb
|
115
|
-
- stripe2qb.gemspec
|
116
104
|
homepage: http://rubygems.org/gems/stripe2qb
|
117
105
|
licenses:
|
118
106
|
- MIT
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, and in the interest of
|
4
|
-
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
-
contribute through reporting issues, posting feature requests, updating
|
6
|
-
documentation, submitting pull requests or patches, and other activities.
|
7
|
-
|
8
|
-
We are committed to making participation in this project a harassment-free
|
9
|
-
experience for everyone, regardless of level of experience, gender, gender
|
10
|
-
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
-
body size, race, ethnicity, age, religion, or nationality.
|
12
|
-
|
13
|
-
Examples of unacceptable behavior by participants include:
|
14
|
-
|
15
|
-
* The use of sexualized language or imagery
|
16
|
-
* Personal attacks
|
17
|
-
* Trolling or insulting/derogatory comments
|
18
|
-
* Public or private harassment
|
19
|
-
* Publishing other's private information, such as physical or electronic
|
20
|
-
addresses, without explicit permission
|
21
|
-
* Other unethical or unprofessional conduct
|
22
|
-
|
23
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
-
threatening, offensive, or harmful.
|
28
|
-
|
29
|
-
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
-
fairly and consistently applying these principles to every aspect of managing
|
31
|
-
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
-
Conduct may be permanently removed from the project team.
|
33
|
-
|
34
|
-
This code of conduct applies both within project spaces and in public spaces
|
35
|
-
when an individual is representing the project or its community.
|
36
|
-
|
37
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
-
reported by contacting a project maintainer at anthony@anthonywang.com. All
|
39
|
-
complaints will be reviewed and investigated and will result in a response that
|
40
|
-
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
-
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
-
incident.
|
43
|
-
|
44
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
-
version 1.3.0, available at
|
46
|
-
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
-
|
48
|
-
[homepage]: http://contributor-covenant.org
|
49
|
-
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2016 Anthony Wang
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
# Stripe2QB
|
2
|
-
|
3
|
-
[Stripe2QB](https://github.com/wangthony/stripe2qb) reads your Stripe
|
4
|
-
transactions and imports them into Quickbooks.
|
5
|
-
|
6
|
-
Stripe2QB is built on top of the [stripe](https://github.com/stripe/stripe-ruby)
|
7
|
-
and [quickbooks-ruby](https://github.com/ruckus/quickbooks-ruby) gems.
|
8
|
-
|
9
|
-
## Installation
|
10
|
-
|
11
|
-
Add this line to your application's Gemfile:
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
gem 'stripe2qb'
|
15
|
-
```
|
16
|
-
|
17
|
-
And then execute:
|
18
|
-
|
19
|
-
$ bundle
|
20
|
-
|
21
|
-
Or install it yourself as:
|
22
|
-
|
23
|
-
$ gem install stripe2qb
|
24
|
-
|
25
|
-
## Configuration
|
26
|
-
|
27
|
-
The suggested way to configure Stripe2QB is by pointing it to a YAML file.
|
28
|
-
There is a template file at `config/stripe2qb.yml` that you can copy into your
|
29
|
-
application. See that file for information on configuration options.
|
30
|
-
|
31
|
-
```ruby
|
32
|
-
s2qb = Stripe2QB.new # look for the default at config/stripe2qb.yml
|
33
|
-
|
34
|
-
s2qb = Stripe2QB.new('path/to/config.yml') # use a different config file path
|
35
|
-
|
36
|
-
s2qb = Stripe2QB.new(quickbooks_api: { ... }, stripe_api: { ... }) # use a Hash
|
37
|
-
```
|
38
|
-
|
39
|
-
## Usage
|
40
|
-
|
41
|
-
The `#process` method looks for deposited (paid)
|
42
|
-
[Stripe Transfers](https://stripe.com/docs/api#transfers) on a certain date
|
43
|
-
(or date range), and converts them into
|
44
|
-
[Quickbooks Deposits](https://developer.intuit.com/docs/api/accounting/deposit).
|
45
|
-
|
46
|
-
```ruby
|
47
|
-
s2qb = Stripe2QB.new
|
48
|
-
|
49
|
-
# process transfers on or after October 1st, 2016
|
50
|
-
s2qb.process('2016-10-01')
|
51
|
-
|
52
|
-
# process transfers in the month of October, 2016
|
53
|
-
s2qb.process('2016-10-01', '2016-11-01')
|
54
|
-
```
|
55
|
-
|
56
|
-
In addition to creating a Deposit, all
|
57
|
-
[Stripe Charges](https://stripe.com/docs/api#charges) associated with each
|
58
|
-
Transfer are converted into
|
59
|
-
[Quickbooks SalesReceipts](https://developer.intuit.com/docs/api/accounting/salesreceipt),
|
60
|
-
and all [Stripe Refunds](https://stripe.com/docs/api#refunds) associated with
|
61
|
-
each Transfer are converted into
|
62
|
-
[Quickbooks RefundReceipts](https://developer.intuit.com/docs/api/accounting/refundreceipt).
|
63
|
-
The SalesReceipts and RefundReceipts are linked to the corresponding Deposit.
|
64
|
-
|
65
|
-
Also, each Deposit will contain a line item for the Stripe processing fees and
|
66
|
-
fee refunds included in the Transfer.
|
67
|
-
|
68
|
-
You can safely re-process dates without creating duplicate records, as long as
|
69
|
-
you do not edit the `payment_ref_number` or `private_note` fields in records
|
70
|
-
created by Stripe2QB.
|
71
|
-
|
72
|
-
## Disclaimer
|
73
|
-
|
74
|
-
Even though this gem is used in production applications, and most of the API
|
75
|
-
operations involved are reversible / fixable, there may be cases where API calls
|
76
|
-
made by this gem have unforeseen consequences.
|
77
|
-
|
78
|
-
Therefore, you assume all liability for any unwanted changes to data caused by
|
79
|
-
use of this gem. The author and contributors assume no responsibility. **Use at your own risk.**
|
80
|
-
|
81
|
-
## Development
|
82
|
-
|
83
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
84
|
-
|
85
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
86
|
-
|
87
|
-
## Contributing
|
88
|
-
|
89
|
-
Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
90
|
-
|
91
|
-
## License
|
92
|
-
|
93
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "stripe2qb"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/config/.keep
DELETED
File without changes
|
data/stripe2qb.gemspec
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'stripe2qb/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "stripe2qb"
|
8
|
-
spec.version = Stripe2QB::VERSION
|
9
|
-
spec.authors = ["Anthony Wang"]
|
10
|
-
spec.email = ["anthony@anthonywang.com"]
|
11
|
-
|
12
|
-
spec.summary = 'Import Stripe transactions into Quickbooks'
|
13
|
-
spec.description = 'Import Stripe transactions into Quickbooks. Relies on the Stripe and Quickbooks gems.'
|
14
|
-
spec.homepage = "http://rubygems.org/gems/stripe2qb"
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
19
|
-
if spec.respond_to?(:metadata)
|
20
|
-
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
21
|
-
else
|
22
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
-
end
|
24
|
-
|
25
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
spec.bindir = "exe"
|
27
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = ["lib"]
|
29
|
-
|
30
|
-
spec.add_development_dependency "bundler", "~> 1.11"
|
31
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
-
|
34
|
-
spec.add_runtime_dependency 'quickbooks-ruby', '~> 0.4'
|
35
|
-
spec.add_runtime_dependency 'activesupport'
|
36
|
-
end
|