canada_payment 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/Guardfile +30 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/canada_payment.gemspec +34 -0
- data/docs/layouts.md +8 -0
- data/lib/canada_payment.rb +8 -0
- data/lib/canada_payment/eft.rb +6 -0
- data/lib/canada_payment/eft/cpa005.rb +11 -0
- data/lib/canada_payment/eft/cpa005/credit/file.rb +4 -0
- data/lib/canada_payment/eft/cpa005/credit/line.rb +4 -0
- data/lib/canada_payment/eft/cpa005/debit/file.rb +147 -0
- data/lib/canada_payment/eft/cpa005/debit/segment.rb +107 -0
- data/lib/canada_payment/eft/helper.rb +31 -0
- data/lib/canada_payment/version.rb +3 -0
- metadata +205 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d7eeef44cc2f4829a2f6d92131aafe852000aad5
|
4
|
+
data.tar.gz: 36807e158fb8dfcb978df6213bd942c1e3b6806b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: eb7d448670d96434a01c1ae60cf41683c09f8345dff9c54be934bae77726902a6466033763d4334bf7484525d3a101fc4412bf30804328902faf4085ccc0f296
|
7
|
+
data.tar.gz: 10303c98593a3c8b0526ca02799d8a8705f0b07a42b2d05a7160c83ab1f4c9bd9227f5f932b0538770529597f4d04e128a40077aeb4f08b9adf59efd1c4174c8
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
2
|
+
require "guard/rspec/dsl"
|
3
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
4
|
+
|
5
|
+
# Feel free to open issues for suggestions and improvements
|
6
|
+
|
7
|
+
# RSpec files
|
8
|
+
rspec = dsl.rspec
|
9
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
10
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
11
|
+
watch(rspec.spec_files)
|
12
|
+
|
13
|
+
# Ruby files
|
14
|
+
ruby = dsl.ruby
|
15
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
16
|
+
end
|
17
|
+
|
18
|
+
guard :bundler do
|
19
|
+
require 'guard/bundler'
|
20
|
+
require 'guard/bundler/verify'
|
21
|
+
helper = Guard::Bundler::Verify.new
|
22
|
+
|
23
|
+
files = ['Gemfile']
|
24
|
+
files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
|
25
|
+
|
26
|
+
# Assume files are symlinked from somewhere
|
27
|
+
files.each { |file| watch(helper.real_path(file)) }
|
28
|
+
end
|
29
|
+
|
30
|
+
notification :terminal_notifier, app_name: "", activate: "com.googlecode.iTerm2"
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Carl Mercier
|
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
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# CanadaPayment
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/canada_payment`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'canada_payment'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install canada_payment
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/cmer/canada_payment. 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.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "canada_payment"
|
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(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'canada_payment/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "canada_payment"
|
8
|
+
spec.version = CanadaPayment::VERSION
|
9
|
+
spec.authors = ["Carl Mercier"]
|
10
|
+
spec.email = ["foss@carlmercier.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Canadian ACH/EFT files in Ruby}
|
13
|
+
spec.description = %q{This library allows you to easily create ACH/EFT CPA005 files from Ruby.}
|
14
|
+
spec.homepage = "https://gitlab.com/cmer/canada_payment"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "rspec-its"
|
28
|
+
spec.add_development_dependency "guard"
|
29
|
+
spec.add_development_dependency "guard-rspec"
|
30
|
+
spec.add_development_dependency "guard-bundler"
|
31
|
+
spec.add_development_dependency "terminal-notifier-guard"
|
32
|
+
spec.add_development_dependency "faker"
|
33
|
+
spec.add_development_dependency "simplecov"
|
34
|
+
end
|
data/docs/layouts.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# CPA File Layouts
|
2
|
+
|
3
|
+
[https://www.rbcroyalbank.com/ach/cid-212260.html](https://www.rbcroyalbank.com/ach/cid-212260.html)
|
4
|
+
[https://www.payments.ca/sites/default/files/standard-005.pdf](https://www.payments.ca/sites/default/files/standard-005.pdf)
|
5
|
+
[https://www.scribd.com/document/96254354/CPA-Std005-Specs](https://www.scribd.com/document/96254354/CPA-Std005-Specs)
|
6
|
+
|
7
|
+
## Transaction Codes
|
8
|
+
[https://www.rbcroyalbank.com/ach/file-450194.pdf](https://www.rbcroyalbank.com/ach/file-450194.pdf)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module CanadaPayment::EFT
|
2
|
+
module CPA005
|
3
|
+
module Debit; end
|
4
|
+
module Credit; end
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
require_relative "cpa005/debit/file"
|
9
|
+
require_relative "cpa005/debit/segment"
|
10
|
+
require_relative "cpa005/credit/file"
|
11
|
+
require_relative "cpa005/credit/line"
|
@@ -0,0 +1,147 @@
|
|
1
|
+
module CanadaPayment::EFT::CPA005::Debit
|
2
|
+
class File
|
3
|
+
include CanadaPayment::EFT::CPA005::Debit
|
4
|
+
include CanadaPayment::EFT::Helper
|
5
|
+
|
6
|
+
DEFAULT_CURRENCY = "CAD"
|
7
|
+
RECORD_LENGTH = 1464
|
8
|
+
|
9
|
+
attr_accessor :segments, :test
|
10
|
+
attr_reader :client_number,
|
11
|
+
:operating_subsidiary,
|
12
|
+
:file_creation_number,
|
13
|
+
:creation_date,
|
14
|
+
:processing_centre,
|
15
|
+
:currency
|
16
|
+
|
17
|
+
def initialize(client_number:,
|
18
|
+
file_creation_number:,
|
19
|
+
processing_centre:,
|
20
|
+
operating_subsidiary: nil,
|
21
|
+
creation_date: Date.Today,
|
22
|
+
currency: DEFAULT_CURRENCY,
|
23
|
+
test: false)
|
24
|
+
@segments = []
|
25
|
+
@client_number = client_number
|
26
|
+
@operating_subsidiary = operating_subsidiary
|
27
|
+
@file_creation_number = file_creation_number
|
28
|
+
@creation_date = creation_date
|
29
|
+
@processing_centre = processing_centre
|
30
|
+
@currency = currency.upcase
|
31
|
+
@test = test
|
32
|
+
end
|
33
|
+
|
34
|
+
def file_output
|
35
|
+
header_record + line_records
|
36
|
+
end
|
37
|
+
|
38
|
+
# BASE CLASS OVERRIDES
|
39
|
+
def header_record
|
40
|
+
'A' +
|
41
|
+
zero_padded('1', 9) +
|
42
|
+
client_number_with_subsidiary +
|
43
|
+
formatted_file_creation_number +
|
44
|
+
file_creation_date +
|
45
|
+
zero_padded(processing_centre, 5) +
|
46
|
+
space_padded(nil, 20) +
|
47
|
+
ensure_length(currency, 3).upcase +
|
48
|
+
space_padded(nil, 1406)
|
49
|
+
end
|
50
|
+
|
51
|
+
def trailer_record
|
52
|
+
'Z' +
|
53
|
+
zero_padded(trailer_record_number, 9) +
|
54
|
+
client_number_with_subsidiary +
|
55
|
+
formatted_file_creation_number +
|
56
|
+
zero_padded(total_amount_cents, 14) +
|
57
|
+
zero_padded(@segments.size, 8) +
|
58
|
+
zero_padded(nil, 1418)
|
59
|
+
end
|
60
|
+
|
61
|
+
def add_segment(customer_name:, customer_number:, amount_cents:, payment_date:,
|
62
|
+
institution:, transit:, account_number:,
|
63
|
+
transaction_code: nil, client_short_name: nil, client_long_name: nil,
|
64
|
+
client_sundry_info: nil, client_number: nil, operating_subsidiary: nil)
|
65
|
+
|
66
|
+
client_number ||= @client_number
|
67
|
+
operating_subsidiary ||= @operating_subsidiary
|
68
|
+
client_short_name ||= @client_short_name
|
69
|
+
client_long_name ||= @client_long_name
|
70
|
+
|
71
|
+
segment = Segment.new customer_name: customer_name,
|
72
|
+
customer_number: customer_number,
|
73
|
+
amount_cents: amount_cents,
|
74
|
+
payment_date: payment_date,
|
75
|
+
institution: institution,
|
76
|
+
transit: transit,
|
77
|
+
account_number: account_number,
|
78
|
+
transaction_code: transaction_code,
|
79
|
+
client_short_name: client_short_name,
|
80
|
+
client_long_name: client_long_name,
|
81
|
+
client_sundry_info: client_sundry_info,
|
82
|
+
client_number: client_number,
|
83
|
+
operating_subsidiary: operating_subsidiary
|
84
|
+
|
85
|
+
@segments << segment
|
86
|
+
segment
|
87
|
+
end
|
88
|
+
|
89
|
+
def basic_records
|
90
|
+
output = []
|
91
|
+
|
92
|
+
segments.each_with_index do |segment, i|
|
93
|
+
output << '' if output[-1].nil? || output[-1].length == RECORD_LENGTH
|
94
|
+
|
95
|
+
# add record header
|
96
|
+
if i % 6 == 0
|
97
|
+
record_number = (i / 6) + 2
|
98
|
+
output[-1] += "D" + zero_padded(record_number, 9) +
|
99
|
+
client_number_with_subsidiary + formatted_file_creation_number
|
100
|
+
end
|
101
|
+
|
102
|
+
output[-1] += segment.to_s
|
103
|
+
end
|
104
|
+
|
105
|
+
# fill last row with blank segments
|
106
|
+
unless output[-1].nil?
|
107
|
+
while output[-1].length < RECORD_LENGTH
|
108
|
+
output[-1] += Segment.blank_values
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
output
|
113
|
+
end
|
114
|
+
|
115
|
+
def to_s
|
116
|
+
header_record + "\n" + basic_records.join("\n") + "\n" + trailer_record
|
117
|
+
end
|
118
|
+
alias_method :output, :to_s
|
119
|
+
|
120
|
+
private
|
121
|
+
|
122
|
+
def total_amount_cents
|
123
|
+
@segments.map {|s| s.amount_cents}.reduce(0, :+)
|
124
|
+
end
|
125
|
+
|
126
|
+
def basic_record_count
|
127
|
+
# Basic records contain 6 segments
|
128
|
+
(@segments.count / 6.0).ceil.to_i
|
129
|
+
end
|
130
|
+
|
131
|
+
def trailer_record_number
|
132
|
+
basic_record_count + 2
|
133
|
+
end
|
134
|
+
|
135
|
+
def client_number_with_subsidiary
|
136
|
+
ensure_length(client_number, 6) + zero_padded(operating_subsidiary, 4)
|
137
|
+
end
|
138
|
+
|
139
|
+
def file_creation_date
|
140
|
+
padded_date(creation_date, 6)
|
141
|
+
end
|
142
|
+
|
143
|
+
def formatted_file_creation_number
|
144
|
+
(test ? 'TEST' : zero_padded(file_creation_number, 4))
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
module CanadaPayment::EFT::CPA005::Debit
|
2
|
+
class Segment
|
3
|
+
include CanadaPayment::EFT::Helper
|
4
|
+
DEFAULT_TRANSACTION_CODE = 450
|
5
|
+
|
6
|
+
attr_accessor :transaction_code,
|
7
|
+
:amount_cents,
|
8
|
+
:payment_date,
|
9
|
+
:institution,
|
10
|
+
:transit,
|
11
|
+
:account_number,
|
12
|
+
:client_short_name,
|
13
|
+
:client_long_name,
|
14
|
+
:client_sundry_info,
|
15
|
+
:client_number,
|
16
|
+
:operating_subsidiary,
|
17
|
+
:customer_name,
|
18
|
+
:customer_number
|
19
|
+
|
20
|
+
def initialize(transaction_code: nil,
|
21
|
+
amount_cents:,
|
22
|
+
payment_date:,
|
23
|
+
institution:,
|
24
|
+
transit:,
|
25
|
+
account_number:,
|
26
|
+
client_short_name:,
|
27
|
+
client_long_name:,
|
28
|
+
client_sundry_info: nil,
|
29
|
+
client_number:,
|
30
|
+
operating_subsidiary: nil,
|
31
|
+
customer_name:,
|
32
|
+
customer_number:)
|
33
|
+
@transaction_code = transaction_code || DEFAULT_TRANSACTION_CODE
|
34
|
+
@amount_cents = amount_cents
|
35
|
+
@payment_date = payment_date
|
36
|
+
@institution = institution
|
37
|
+
@transit = transit
|
38
|
+
@account_number = account_number
|
39
|
+
@client_short_name = client_short_name
|
40
|
+
@client_long_name = client_long_name
|
41
|
+
@client_sundry_info = client_sundry_info
|
42
|
+
@client_number = client_number
|
43
|
+
@operating_subsidiary = operating_subsidiary
|
44
|
+
@customer_name = customer_name
|
45
|
+
@customer_number = customer_number
|
46
|
+
end
|
47
|
+
|
48
|
+
def to_s
|
49
|
+
formatted_transaction_code +
|
50
|
+
formatted_amount +
|
51
|
+
padded_date(@payment_date, 6) +
|
52
|
+
zero_padded(@institution, 4) +
|
53
|
+
zero_padded(@transit, 5) +
|
54
|
+
space_padded(@account_number, 12) +
|
55
|
+
"0" * 22 +
|
56
|
+
"0" * 3 +
|
57
|
+
space_padded(@client_short_name, 15) +
|
58
|
+
space_padded(@customer_name, 30) +
|
59
|
+
space_padded(@client_long_name, 30) +
|
60
|
+
client_number_with_subsidiary +
|
61
|
+
space_padded(@customer_number, 19) +
|
62
|
+
"0" * 9 +
|
63
|
+
" " * 12 +
|
64
|
+
space_padded(@client_sundry_info, 15) +
|
65
|
+
" " * 22 +
|
66
|
+
" " * 2 +
|
67
|
+
" " * 11
|
68
|
+
end
|
69
|
+
alias_method :output, :to_s
|
70
|
+
|
71
|
+
def self.blank_values
|
72
|
+
' ' * 3 +
|
73
|
+
'0' * 10 +
|
74
|
+
'0' * 6 +
|
75
|
+
'0' * 9 +
|
76
|
+
' ' * 12 +
|
77
|
+
'0' * 22 +
|
78
|
+
'0' * 3 +
|
79
|
+
' ' * 15 +
|
80
|
+
' ' * 30 +
|
81
|
+
' ' * 30 +
|
82
|
+
' ' * 10 +
|
83
|
+
' ' * 19 +
|
84
|
+
'0' * 9 +
|
85
|
+
' ' * 12 +
|
86
|
+
' ' * 15 +
|
87
|
+
' ' * 22 +
|
88
|
+
' ' * 2 +
|
89
|
+
' ' * 11
|
90
|
+
end
|
91
|
+
|
92
|
+
private
|
93
|
+
|
94
|
+
def formatted_transaction_code
|
95
|
+
@transaction_code.to_s != '' ? zero_padded(@transaction_code.to_s, 3) : ' ' * 3
|
96
|
+
end
|
97
|
+
|
98
|
+
def formatted_amount
|
99
|
+
raise ArgumentError.new("`amount_cents` must be an Integer") unless @amount_cents.is_a?(Integer)
|
100
|
+
zero_padded(@amount_cents.to_s, 10)
|
101
|
+
end
|
102
|
+
|
103
|
+
def client_number_with_subsidiary
|
104
|
+
ensure_length(client_number, 6) + zero_padded(operating_subsidiary, 4)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CanadaPayment::EFT::Helper
|
2
|
+
def zero_padded(value, length, justify: :right)
|
3
|
+
char_padded(value, length, "0", justify)
|
4
|
+
end
|
5
|
+
|
6
|
+
def space_padded(value, length, justify: :left)
|
7
|
+
char_padded(value, length, " ", justify)
|
8
|
+
end
|
9
|
+
|
10
|
+
def char_padded(value, length, char, justify = :right)
|
11
|
+
value = value.to_s
|
12
|
+
raise ArgumentError.new("'#{value}' is longer than #{length} characters.") if value.length > length
|
13
|
+
|
14
|
+
case justify.to_sym
|
15
|
+
when :right
|
16
|
+
value.rjust(length, char)
|
17
|
+
when :left
|
18
|
+
value.ljust(length, char)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def ensure_length(value, length)
|
23
|
+
value = value.to_s
|
24
|
+
raise ArgumentError.new("'#{value}' should be exactly #{length} characters long.") if value.length != length
|
25
|
+
value
|
26
|
+
end
|
27
|
+
|
28
|
+
def padded_date(date, length)
|
29
|
+
zero_padded(date.year.to_s[-2..-1] + zero_padded(date.yday, 3), length)
|
30
|
+
end
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: canada_payment
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Carl Mercier
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-its
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: terminal-notifier-guard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: faker
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: This library allows you to easily create ACH/EFT CPA005 files from Ruby.
|
154
|
+
email:
|
155
|
+
- foss@carlmercier.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- ".rspec"
|
162
|
+
- ".travis.yml"
|
163
|
+
- Gemfile
|
164
|
+
- Guardfile
|
165
|
+
- LICENSE.txt
|
166
|
+
- README.md
|
167
|
+
- Rakefile
|
168
|
+
- bin/console
|
169
|
+
- bin/setup
|
170
|
+
- canada_payment.gemspec
|
171
|
+
- docs/layouts.md
|
172
|
+
- lib/canada_payment.rb
|
173
|
+
- lib/canada_payment/eft.rb
|
174
|
+
- lib/canada_payment/eft/cpa005.rb
|
175
|
+
- lib/canada_payment/eft/cpa005/credit/file.rb
|
176
|
+
- lib/canada_payment/eft/cpa005/credit/line.rb
|
177
|
+
- lib/canada_payment/eft/cpa005/debit/file.rb
|
178
|
+
- lib/canada_payment/eft/cpa005/debit/segment.rb
|
179
|
+
- lib/canada_payment/eft/helper.rb
|
180
|
+
- lib/canada_payment/version.rb
|
181
|
+
homepage: https://gitlab.com/cmer/canada_payment
|
182
|
+
licenses:
|
183
|
+
- MIT
|
184
|
+
metadata: {}
|
185
|
+
post_install_message:
|
186
|
+
rdoc_options: []
|
187
|
+
require_paths:
|
188
|
+
- lib
|
189
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
|
+
requirements:
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '0'
|
199
|
+
requirements: []
|
200
|
+
rubyforge_project:
|
201
|
+
rubygems_version: 2.6.11
|
202
|
+
signing_key:
|
203
|
+
specification_version: 4
|
204
|
+
summary: Canadian ACH/EFT files in Ruby
|
205
|
+
test_files: []
|