ezapi_client 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.env +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Dockerfile +2 -2
- data/README.md +2 -2
- data/ezapi_client.gemspec +1 -1
- data/lib/ezapi_client/requests/create_transaction_request.rb +10 -3
- data/lib/ezapi_client/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '039bd8919bfe2089b88c500328f36f0cb6cb14c3310ff14faecfbf79a5d70cd2'
|
4
|
+
data.tar.gz: bd04b62909b85c3935286709c0953abe32ce5a4059d37c2ed4fe919b338ef190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1b41014aed7ee7ad3eab3bb936af3eea168a8ec0df7e2f8c87c5b8935c3a46bcdca7302b3b8cf1b4d0288d992a569a3cffad0f12f205671b57702d0e276a56c
|
7
|
+
data.tar.gz: fbed4d0ec998b38f0b3c97d850f46cdf752ec37148109f4d7093579533c3a79e756aad7a118bd9269d3c701c546af31894a9eb718231cbbdd1efc34f116ade4c
|
data/.env
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
USERNAME=
|
1
|
+
USERNAME=z1uc7CukRHDiz5MalmlbQ2YVBSY=
|
2
2
|
PASSWORD=overrideme
|
3
|
-
EKS_PATH=spec/fixtures/
|
4
|
-
PRV_PATH=spec/fixtures/
|
5
|
-
AGENT_CODE=
|
6
|
-
HOST=
|
3
|
+
EKS_PATH=spec/fixtures/BLO00010.eks
|
4
|
+
PRV_PATH=spec/fixtures/BLO00010.prv
|
5
|
+
AGENT_CODE=ACE
|
6
|
+
HOST=https://apitest.easypadala.com
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.5.3
|
data/.travis.yml
CHANGED
@@ -6,7 +6,7 @@ env:
|
|
6
6
|
- DOCKER_COMPOSE_VERSION=1.14.0
|
7
7
|
global:
|
8
8
|
# PASSWORD
|
9
|
-
secure:
|
9
|
+
- secure: NM4unx0H2iEVdzJrsYgZzXfBXNDkB34nHpU94h+2QjMiQwWeJ5NVOwD2ISrbOc97SCyJbMgJTSYh2E/qotoTVG5yK/6FPnDy542UawLWrFixBhFR0GreSqbJkdZfaTNZ3CBa9Tc+cOmDbdIIh2bzZkrCExxHb5ngOR9yxUQ85f7hYshllrls+ZdL5qphWUpOLGGM6URYBi6P0LaGgkxK6ZQz/W/YS0sk8054y3fyebMu4+J4Ua5aGLBjOs9vB3BVkTmYxQGte93Oi9Fx4/W6/9T0Byyz/kReutxpbbq/e1UEjD7JE7jTtnEIyUzNq37DQixDs0n/3B3r7Ms2s9EgLT0wF0ZNd5CcFydzwCE710/zPG6il17tpeS8wrjpaAVUV4sxWezM52HdARUmWKPJDvzqEskW+QuHqme+JNh4F3/DgltAowl1ssu7oMfdBhCZAgFzPBOwz+5RJp6GaErVhDLw6qgTeeKI/tWAPyUZldA2XjpMMcBsNevwOfDjkcN6aCT2a6c/BGV3yj2XudbdswDkTbHPZMnsQ7GTBHXwUfM1tNdV0cFgZpGxDFLeHTP+W/JYLaMI+cXzpNvfenGldt4xznjHHGjzKvxO+cwUWAjA9KK9FpMyND5jOr7T+e8+OlmH7sX+Oz99+qvQUz2NOyUUIJi+aFa+ImM/CblqdEg=
|
10
10
|
before_install:
|
11
11
|
- sudo rm /usr/local/bin/docker-compose
|
12
12
|
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [1.0.0] - 2019-02-01
|
6
|
+
### Fixed
|
7
|
+
- Do not send `account_no` if not needed
|
8
|
+
|
5
9
|
## [0.5.0] - 2017-09-06
|
6
10
|
### Added
|
7
11
|
- Set progname in log
|
data/Dockerfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
FROM ruby:2.
|
1
|
+
FROM ruby:2.5.3
|
2
2
|
|
3
3
|
RUN apt-get update -qq
|
4
4
|
RUN apt-get upgrade -y
|
5
|
-
RUN apt-get install -y build-essential libpq-dev nodejs postgresql-client openjdk-
|
5
|
+
RUN apt-get install -y build-essential libpq-dev nodejs postgresql-client openjdk-8-jre
|
6
6
|
RUN mkdir /app
|
7
7
|
WORKDIR /app
|
8
8
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# EZAPIClient
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/
|
3
|
+
[![Build Status](https://travis-ci.org/bloom-solutions/ezapi_client-ruby.svg?branch=master)](https://travis-ci.org/bloom-solutions/ezapi_client-ruby)
|
4
4
|
|
5
5
|
Ruby wrapper for EasyPadala's API.
|
6
6
|
|
@@ -50,7 +50,7 @@ Note: you do not necessarily need Docker, but it makes development easier. If yo
|
|
50
50
|
|
51
51
|
## Contributing
|
52
52
|
|
53
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bloom-solutions/ezapi_client-ruby. 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.
|
54
54
|
|
55
55
|
## License
|
56
56
|
|
data/ezapi_client.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["ramon.tayag@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Ruby wrapper for EZAPI}
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/bloom-solutions/ezapi_client-ruby"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
@@ -18,11 +18,16 @@ module EZAPIClient
|
|
18
18
|
"PCA" => "Pickup Cash @ Anywhere",
|
19
19
|
"PML" => "Pickup Cash @ MLhullier Kwarta Padala",
|
20
20
|
"PCL" => "Pickup Cash @ Cebuana Lhullier",
|
21
|
-
}
|
21
|
+
}.freeze
|
22
22
|
|
23
23
|
TRANS_TYPE_CATEGORIES = {
|
24
24
|
door_to_door: %w(DCD DCC DJP DMP DSC DRD),
|
25
|
-
}
|
25
|
+
}.with_indifferent_access.freeze
|
26
|
+
|
27
|
+
TRANS_TYPES_WITH_ACCOUNT_NUMBER =
|
28
|
+
(TRANS_TYPES.keys - %w(OAB OAR CBA CCC)).freeze
|
29
|
+
TRANS_TYPES_WITHOUT_ACCOUNT_NUMBER =
|
30
|
+
(TRANS_TYPES.keys - TRANS_TYPES_WITH_ACCOUNT_NUMBER).freeze
|
26
31
|
|
27
32
|
attribute :reference_no, String
|
28
33
|
attribute :trans_date, DateTime
|
@@ -87,13 +92,15 @@ module EZAPIClient
|
|
87
92
|
trans_type
|
88
93
|
bank_code
|
89
94
|
branch_name
|
90
|
-
account_no
|
91
95
|
landed_currency
|
92
96
|
landed_amount
|
93
97
|
message1
|
94
98
|
message2
|
95
99
|
].each_with_object({}) { |attr, hash| hash[attr] = send(attr) }
|
96
100
|
message[:trans_date] = trans_date.strftime("%Y-%m-%d %H:%M:%S %z")
|
101
|
+
if TRANS_TYPES_WITH_ACCOUNT_NUMBER.include?(trans_type)
|
102
|
+
message[:account_no] = account_no
|
103
|
+
end
|
97
104
|
|
98
105
|
GenData.(
|
99
106
|
username: username,
|
data/lib/ezapi_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -208,7 +208,7 @@ files:
|
|
208
208
|
- lib/ezapi_client/services/gen_data.rb
|
209
209
|
- lib/ezapi_client/services/gen_password_token.rb
|
210
210
|
- lib/ezapi_client/version.rb
|
211
|
-
homepage: https://github.com/
|
211
|
+
homepage: https://github.com/bloom-solutions/ezapi_client-ruby
|
212
212
|
licenses:
|
213
213
|
- MIT
|
214
214
|
metadata:
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
231
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.7.8
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: Ruby wrapper for EZAPI
|