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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 298d371d9b28dad67b2cabbca8f78725678bfaad
4
- data.tar.gz: 433db6939b60f08bb7243e39dfa83a6701ba5e7e
2
+ SHA256:
3
+ metadata.gz: '039bd8919bfe2089b88c500328f36f0cb6cb14c3310ff14faecfbf79a5d70cd2'
4
+ data.tar.gz: bd04b62909b85c3935286709c0953abe32ce5a4059d37c2ed4fe919b338ef190
5
5
  SHA512:
6
- metadata.gz: 6ca8d132ef57a25ca8642c23a0b62eb6ebabe37c76067488c179dea2ccc8fcd25b19e0edac3330d1d6435233924bac9d0c0c23f885d65927cb220dc65245afa0
7
- data.tar.gz: 760d90804eff9d5caf1ab50c65a323c387d3654d7ab700a245fc59f863400be8786a69cb98a62b43bb543434fc820371c86934282c0eefc66fc23fd8a2b4c3cc
6
+ metadata.gz: e1b41014aed7ee7ad3eab3bb936af3eea168a8ec0df7e2f8c87c5b8935c3a46bcdca7302b3b8cf1b4d0288d992a569a3cffad0f12f205671b57702d0e276a56c
7
+ data.tar.gz: fbed4d0ec998b38f0b3c97d850f46cdf752ec37148109f4d7093579533c3a79e756aad7a118bd9269d3c701c546af31894a9eb718231cbbdd1efc34f116ade4c
data/.env CHANGED
@@ -1,6 +1,6 @@
1
- USERNAME="cqXN/8DyggKkGkCNa59mI+/cD8o="
1
+ USERNAME=z1uc7CukRHDiz5MalmlbQ2YVBSY=
2
2
  PASSWORD=overrideme
3
- EKS_PATH=spec/fixtures/RAM00004.eks
4
- PRV_PATH=spec/fixtures/RAM00004.prv
5
- AGENT_CODE=RAM
6
- HOST=http://52.88.11.99:8808
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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i9Fx4/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.4.0
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-7-jre
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/imacchiato/ezapi_client-ruby.svg?branch=master)](https://travis-ci.org/imacchiato/ezapi_client-ruby)
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/imacchiato/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.
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/imacchiato/ezapi_client-ruby"
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,
@@ -1,3 +1,3 @@
1
1
  module EZAPIClient
2
- VERSION = "0.5.0"
2
+ VERSION = "1.0.0"
3
3
  end
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.5.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: 2017-09-06 00:00:00.000000000 Z
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/imacchiato/ezapi_client-ruby
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.6.12
232
+ rubygems_version: 2.7.8
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Ruby wrapper for EZAPI