cash_poster 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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +59 -0
- data/Rakefile +1 -0
- data/cash_poster.gemspec +27 -0
- data/lib/cash_poster.rb +21 -0
- data/lib/cash_poster/error.rb +5 -0
- data/lib/cash_poster/request.rb +7 -0
- data/lib/cash_poster/request/base_request.rb +24 -0
- data/lib/cash_poster/request/cancel.rb +11 -0
- data/lib/cash_poster/request/change.rb +11 -0
- data/lib/cash_poster/request/extend.rb +11 -0
- data/lib/cash_poster/request/register.rb +15 -0
- data/lib/cash_poster/request/resend.rb +11 -0
- data/lib/cash_poster/request/status.rb +11 -0
- data/lib/cash_poster/response.rb +30 -0
- data/lib/cash_poster/transaction.rb +30 -0
- data/lib/cash_poster/version.rb +3 -0
- data/spec/cash_poster/response_spec.rb +55 -0
- data/spec/cash_poster/transaction_spec.rb +48 -0
- data/spec/spec_helper.rb +13 -0
- metadata +153 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 78a7b1ffed74c84a6e5de58ac956781f41a8f4a5
|
4
|
+
data.tar.gz: 4438e12875e3eb1616b5428f53d5bfbf3ae3244b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9e8479b7541038c9a0bca0181f188bf790f14687ecc74520b4f2092faf5c133faed4aacecf5480991c97df1cf186aedbad74968922dda0deb10a4cf315d0e21e
|
7
|
+
data.tar.gz: d37291d740cd19458742bcadea9f94eb4c2a1eae49b08bc8aef3b0151d4063c9d719ad1e235fe5abcd3370dd0163928dcf1720e8eb75b9753fd17dfefacd85c1
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 t-kot
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# CashPoster
|
2
|
+
|
3
|
+
Cashpost(http://www.econtext.jp/service/cashpost) API Utility.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'cash_poster'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install cash_poster
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
### Setting
|
22
|
+
In Rails, You should add config file to initializers.
|
23
|
+
|
24
|
+
For example.
|
25
|
+
|
26
|
+
```
|
27
|
+
CashPoster::Config.setup do |config|
|
28
|
+
cashpost_config = YAML.load_file("#{::Rails.root}/config/cashpost.yml")[::Rails.env].symbolize_keys
|
29
|
+
config.api_url = cashpost_config[:api_url]
|
30
|
+
config.shop_id = '123456'
|
31
|
+
config.check_code = cashpost_config[:check_code]
|
32
|
+
config.send_ptncd = cashpost_config[:send_ptncd]
|
33
|
+
config.guide_ptn = '0'
|
34
|
+
config.guide_tmpcd = cashpost_config[:guide_tmpcd]
|
35
|
+
config.proxy = { host: 'proxy.hoge.com', port: '8080' }
|
36
|
+
end
|
37
|
+
|
38
|
+
```
|
39
|
+
|
40
|
+
### Sample Register Request
|
41
|
+
|
42
|
+
```
|
43
|
+
req = CashPoster::Request::Register.new(
|
44
|
+
order_id: '1234',
|
45
|
+
email: 't.kotohata@gmail.com',
|
46
|
+
receive_key: 'hogehoge', #=> 受け取り用のキー(前もってアプリ側で用意)
|
47
|
+
amount: 10000 #=> 送金額
|
48
|
+
)
|
49
|
+
CashPoster::Transaction.new.execute(req) #=> #<CashPoster::Response>
|
50
|
+
```
|
51
|
+
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
1. Fork it
|
56
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
57
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
58
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
59
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/cash_poster.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cash_poster/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cash_poster"
|
8
|
+
spec.version = CashPoster::VERSION
|
9
|
+
spec.authors = ["t-kot"]
|
10
|
+
spec.email = ["t.kotohata@gmail.com"]
|
11
|
+
spec.description = %q{Cashpost API Utility}
|
12
|
+
spec.summary = %q{Cashpost API Utility}
|
13
|
+
spec.homepage = "https://github.com/t-kot/cash_poster"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency 'rspec'
|
24
|
+
spec.add_development_dependency 'webmock'
|
25
|
+
spec.add_dependency 'nokogiri'
|
26
|
+
spec.add_dependency 'activesupport'
|
27
|
+
end
|
data/lib/cash_poster.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'active_support/core_ext'
|
2
|
+
require 'net/https'
|
3
|
+
require 'uri'
|
4
|
+
require 'kconv'
|
5
|
+
require 'nokogiri'
|
6
|
+
require 'cash_poster/request'
|
7
|
+
require 'cash_poster/response'
|
8
|
+
require 'cash_poster/transaction'
|
9
|
+
require 'cash_poster/error'
|
10
|
+
|
11
|
+
module CashPoster
|
12
|
+
module Config
|
13
|
+
mattr_accessor :api_url, :shop_id, :check_code,
|
14
|
+
:send_ptncd, :guide_ptn, :guide_tmpcd,
|
15
|
+
:proxy
|
16
|
+
|
17
|
+
def self.setup
|
18
|
+
yield self
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
require 'cash_poster/request/base_request'
|
2
|
+
require 'cash_poster/request/cancel'
|
3
|
+
require 'cash_poster/request/change'
|
4
|
+
require 'cash_poster/request/extend'
|
5
|
+
require 'cash_poster/request/register'
|
6
|
+
require 'cash_poster/request/resend'
|
7
|
+
require 'cash_poster/request/status'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
module CashPoster
|
3
|
+
module Request
|
4
|
+
class BaseRequest
|
5
|
+
attr_reader :params
|
6
|
+
|
7
|
+
def initialize(params = {})
|
8
|
+
unless params[:order_id] && params[:amount]
|
9
|
+
raise ArgumentError, 'You must specify order_id and amount'
|
10
|
+
end
|
11
|
+
|
12
|
+
@params = {
|
13
|
+
in_shopid: CashPoster::Config.shop_id,
|
14
|
+
in_chkCode: CashPoster::Config.check_code,
|
15
|
+
in_orderno: params[:order_id],
|
16
|
+
in_amount: params[:amount],
|
17
|
+
in_sendptncd: CashPoster::Config.send_ptncd,
|
18
|
+
in_guideptn: CashPoster::Config.guide_ptn,
|
19
|
+
in_guidetmpcd: CashPoster::Config.guide_tmpcd
|
20
|
+
}
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
module CashPoster
|
3
|
+
module Request
|
4
|
+
class Register < BaseRequest
|
5
|
+
def initialize(params = {})
|
6
|
+
super(params)
|
7
|
+
@params = @params.merge(
|
8
|
+
in_proctype: 'tregister',
|
9
|
+
in_mailadd: params[:email],
|
10
|
+
in_receivekey1: params[:receive_key]
|
11
|
+
)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
module CashPoster
|
3
|
+
class Response
|
4
|
+
attr_accessor :request
|
5
|
+
attr_reader :results
|
6
|
+
|
7
|
+
def self.parse(body)
|
8
|
+
instance = new
|
9
|
+
instance.instance_eval do
|
10
|
+
doc = Nokogiri::XML(body)
|
11
|
+
@results = {
|
12
|
+
shop_id: doc.xpath('//out_shopid').text,
|
13
|
+
proctype: doc.xpath('//out_proctype').text,
|
14
|
+
order_no: doc.xpath('//out_orderno').text,
|
15
|
+
receive_no: doc.xpath('//out_receive_no').text,
|
16
|
+
status: doc.xpath('//out_status').text,
|
17
|
+
result_code: doc.xpath('//out_result').text,
|
18
|
+
result_det: doc.xpath('//out_resultdet').text,
|
19
|
+
result_content: doc.xpath('//out_resultcontent').text,
|
20
|
+
endtime: doc.xpath('//out_endtime').text
|
21
|
+
}
|
22
|
+
end
|
23
|
+
instance
|
24
|
+
end
|
25
|
+
|
26
|
+
def valid?
|
27
|
+
@results[:result_code].to_i == 0
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
module CashPoster
|
3
|
+
class Transaction
|
4
|
+
def self.parsed_uri
|
5
|
+
@parsed_uri ||= URI.parse(CashPoster::Config.api_url)
|
6
|
+
end
|
7
|
+
|
8
|
+
def execute(request)
|
9
|
+
uri = Transaction.parsed_uri
|
10
|
+
if proxy = CashPoster::Config.proxy
|
11
|
+
http = Net::HTTP::Proxy(proxy[:host], proxy[:port]).new(uri.host, uri.port)
|
12
|
+
else
|
13
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
14
|
+
end
|
15
|
+
http.use_ssl = true
|
16
|
+
http.ssl_version = 'SSLv3'
|
17
|
+
http_req = Net::HTTP::Post.new(uri.path)
|
18
|
+
http_req.body = request.params.to_query
|
19
|
+
http_res = http.request(http_req)
|
20
|
+
|
21
|
+
case http_res
|
22
|
+
when Net::HTTPSuccess
|
23
|
+
CashPoster::Response.parse(http_res.body)
|
24
|
+
.tap { |res| res.request = request }
|
25
|
+
else
|
26
|
+
raise CashPoster::Error
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe CashPoster::Response do
|
4
|
+
let(:body) do
|
5
|
+
<<-EOS
|
6
|
+
<?xml version=\"1.0\" encoding=\"shift_jis\"?>
|
7
|
+
<result>
|
8
|
+
<out_shopid>123456</out_shopid>
|
9
|
+
<out_proctype>tregister</out_proctype>
|
10
|
+
<out_orderno>123456</out_orderno>
|
11
|
+
<out_receiveNo>123456</out_receiveNo>
|
12
|
+
<out_status></out_status>
|
13
|
+
<out_result>0</out_result>
|
14
|
+
<out_resultdet>0000</out_resultdet>
|
15
|
+
<out_resultcontent>hogehoge</out_resultcontent>
|
16
|
+
<out_endtime>20130930103233</out_endtime>
|
17
|
+
</result>
|
18
|
+
</xml>
|
19
|
+
EOS
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '.parse' do
|
23
|
+
it { expect(CashPoster::Response.parse(body)).to be_instance_of(CashPoster::Response) }
|
24
|
+
end
|
25
|
+
|
26
|
+
describe '#valid?' do
|
27
|
+
subject { CashPoster::Response.parse(body) }
|
28
|
+
|
29
|
+
context 'result code is 0' do
|
30
|
+
it { should be_valid }
|
31
|
+
end
|
32
|
+
|
33
|
+
context 'result code is not 0' do
|
34
|
+
let(:body) do
|
35
|
+
<<-EOS
|
36
|
+
<?xml version=\"1.0\" encoding=\"shift_jis\"?>
|
37
|
+
<result>
|
38
|
+
<out_shopid>123456</out_shopid>
|
39
|
+
<out_proctype>tregister</out_proctype>
|
40
|
+
<out_orderno>123456</out_orderno>
|
41
|
+
<out_receiveNo>123456</out_receiveNo>
|
42
|
+
<out_status></out_status>
|
43
|
+
<out_result>1</out_result>
|
44
|
+
<out_resultdet>0000</out_resultdet>
|
45
|
+
<out_resultcontent>hogehoge</out_resultcontent>
|
46
|
+
<out_endtime>20130930103233</out_endtime>
|
47
|
+
</result>
|
48
|
+
</xml>
|
49
|
+
EOS
|
50
|
+
end
|
51
|
+
|
52
|
+
it { should_not be_valid }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe CashPoster::Transaction do
|
4
|
+
let(:api_url) { 'https://api.test.com/cashpost' }
|
5
|
+
before do
|
6
|
+
CashPoster::Config.setup do |config|
|
7
|
+
config.api_url = api_url
|
8
|
+
end
|
9
|
+
stub_request(:post, api_url).to_return(body: response, status: 200)
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:response) do
|
13
|
+
<<-EOS
|
14
|
+
<?xml version=\"1.0\" encoding=\"shift_jis\"?>
|
15
|
+
<result>
|
16
|
+
<out_shopid>123456</out_shopid>
|
17
|
+
<out_proctype>tregister</out_proctype>
|
18
|
+
<out_orderno>123456</out_orderno>
|
19
|
+
<out_receiveNo>123456</out_receiveNo>
|
20
|
+
<out_status></out_status>
|
21
|
+
<out_result>0</out_result>
|
22
|
+
<out_resultdet>0000</out_resultdet>
|
23
|
+
<out_resultcontent>hogehoge</out_resultcontent>
|
24
|
+
<out_endtime>20130930103233</out_endtime>
|
25
|
+
</result>
|
26
|
+
</xml>
|
27
|
+
EOS
|
28
|
+
end
|
29
|
+
|
30
|
+
let(:request) do
|
31
|
+
CashPoster::Request::Register.new(email: 'hoge@fuga.com', receive_key: 'hoge', amount: 10000, order_id: '1234')
|
32
|
+
end
|
33
|
+
|
34
|
+
describe '.parsed_uri' do
|
35
|
+
it { expect(CashPoster::Transaction.parsed_uri).to be_instance_of(URI::HTTPS) }
|
36
|
+
end
|
37
|
+
|
38
|
+
describe '#execute' do
|
39
|
+
context 'When request is valid' do
|
40
|
+
it { expect(CashPoster::Transaction.new.execute(request)).to be_instance_of(CashPoster::Response) }
|
41
|
+
end
|
42
|
+
|
43
|
+
context 'When request is invalid' do
|
44
|
+
before { stub_request(:post, api_url).to_return(status: 400) }
|
45
|
+
it { expect { CashPoster::Transaction.new.execute(request) }.to raise_error(CashPoster::Error) }
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'cash_poster'
|
2
|
+
require 'webmock/rspec'
|
3
|
+
require 'timecop'
|
4
|
+
require 'pry'
|
5
|
+
|
6
|
+
CashPoster::Config.setup do |config|
|
7
|
+
config.api_url = 'https://api.cashpost.jp/api_receive.aspx'
|
8
|
+
config.shop_id = '123456'
|
9
|
+
config.check_code = '123456789876'
|
10
|
+
config.send_ptncd = '000001'
|
11
|
+
config.guide_ptn = '0'
|
12
|
+
config.guide_tmpcd = 'M00001'
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cash_poster
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- t-kot
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-09-30 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.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '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: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
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: nokogiri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
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: activesupport
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Cashpost API Utility
|
98
|
+
email:
|
99
|
+
- t.kotohata@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- .gitignore
|
105
|
+
- Gemfile
|
106
|
+
- LICENSE.txt
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- cash_poster.gemspec
|
110
|
+
- lib/cash_poster.rb
|
111
|
+
- lib/cash_poster/error.rb
|
112
|
+
- lib/cash_poster/request.rb
|
113
|
+
- lib/cash_poster/request/base_request.rb
|
114
|
+
- lib/cash_poster/request/cancel.rb
|
115
|
+
- lib/cash_poster/request/change.rb
|
116
|
+
- lib/cash_poster/request/extend.rb
|
117
|
+
- lib/cash_poster/request/register.rb
|
118
|
+
- lib/cash_poster/request/resend.rb
|
119
|
+
- lib/cash_poster/request/status.rb
|
120
|
+
- lib/cash_poster/response.rb
|
121
|
+
- lib/cash_poster/transaction.rb
|
122
|
+
- lib/cash_poster/version.rb
|
123
|
+
- spec/cash_poster/response_spec.rb
|
124
|
+
- spec/cash_poster/transaction_spec.rb
|
125
|
+
- spec/spec_helper.rb
|
126
|
+
homepage: https://github.com/t-kot/cash_poster
|
127
|
+
licenses:
|
128
|
+
- MIT
|
129
|
+
metadata: {}
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options: []
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
requirements: []
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 2.0.0
|
147
|
+
signing_key:
|
148
|
+
specification_version: 4
|
149
|
+
summary: Cashpost API Utility
|
150
|
+
test_files:
|
151
|
+
- spec/cash_poster/response_spec.rb
|
152
|
+
- spec/cash_poster/transaction_spec.rb
|
153
|
+
- spec/spec_helper.rb
|