viva_wallet 0.3.0 → 0.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3cad47949660808efb02a2f3ac470ba504639ed04d4c8639dcd91794c6b177f
4
- data.tar.gz: 899c1fd0603e084309b6ba9785da99d4f67e35bee39f64ff7c409cf70939e004
3
+ metadata.gz: 19d3a18ca8f0548ea631150c2470804b797d6b32f9ffcf8fa99f10d39e729c78
4
+ data.tar.gz: be8082b7a8e31f63de3f008e4d4d18bab4c8b30ad22e9a025bb9da387c8d93f1
5
5
  SHA512:
6
- metadata.gz: fbb7069df29b094634e17dbba010b5b111bc94037aab990a89561502b5ba042917e4b5570a3cfebdb2f15aa3930a1cf77f88c2167bc762631549a37c41c863ae
7
- data.tar.gz: b54a5b62928933f40a87314b3bd273602407b41f901b3f947826753af2c9fe797da40507b823f1a2d2c81ce2837e5df7825b8587a6ef7cb5986f625eed870f61
6
+ metadata.gz: b78eecc69a36cc337125727940d4cf75535e5e88fa9748c980f6713f34ef9f89218464ee7af26734769975f791ac002bff5c775667a560c5b66ef3e62c43f20c
7
+ data.tar.gz: 4c2af61f1ec581dae735c615dba2a88541ca196c513358aeac84bcc936a035e5283f35e50c59f6ef856cb540520b6e1e6b1224124f035c90dd9a4a78de1baab7
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VivaWallet
4
- class Payment
4
+ class Event
5
5
 
6
6
  class << self
7
7
 
@@ -18,9 +18,9 @@ module VivaWallet
18
18
  when 10001
19
19
  { reason: 'Refer to card issuer', explanation: 'The issuing bank prevented the transaction.', type: 'Issuer' }
20
20
  when 10003
21
- { reason: 'Invalid merchant number', explanation: ' Security violation (source is not correct issuer).', type: 'Issuer' }
21
+ { reason: 'Invalid merchant number', explanation: 'Security violation (source is not correct issuer).', type: 'Issuer' }
22
22
  when 10004
23
- { reason: ' Pick up card', explanation: 'The card has been designated as lost or stolen.', type: 'Issuer' }
23
+ { reason: 'Pick up card', explanation: 'The card has been designated as lost or stolen.', type: 'Issuer' }
24
24
  when 10005
25
25
  { reason: 'Do not honor', explanation: 'The issuing bank declined the transaction without an explanation.', type: 'Issuer' }
26
26
  when 10006
@@ -40,7 +40,7 @@ module VivaWallet
40
40
  when 10043
41
41
  { reason: 'Stolen card', explanation: 'The card has been designated as lost or stolen.', type: 'User' }
42
42
  when 10051
43
- { reason: 'Insufficient funds', explanation: ' The card has insufficient funds to cover the cost of the transaction.', type: 'Issuer' }
43
+ { reason: 'Insufficient funds', explanation: 'The card has insufficient funds to cover the cost of the transaction.', type: 'Issuer' }
44
44
  when 10054
45
45
  { reason: 'Expired card', explanation: 'The payment gateway declined the transaction because the expiration date is expired or does not match.', type: 'User' }
46
46
  when 10057
@@ -50,7 +50,7 @@ module VivaWallet
50
50
  when 10061
51
51
  { reason: 'Withdrawal limit exceeded', explanation: 'Exceeds withdrawal amount limit.', type: 'Issuer' }
52
52
  when 10062
53
- { reason: 'Restricted card', explanation: ' The customer\'s bank has declined their card.', type: 'Issuer' }
53
+ { reason: 'Restricted card', explanation: 'The customer\'s bank has declined their card.', type: 'Issuer' }
54
54
  when 10063
55
55
  { reason: 'Issuer response security violation', explanation: 'Flag raised due to security validation problem.', type: 'Issuer' }
56
56
  when 10065
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VivaWallet
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.3"
5
5
  end
data/lib/viva_wallet.rb CHANGED
@@ -5,6 +5,7 @@ require 'base64'
5
5
 
6
6
  require_relative "viva_wallet/version"
7
7
  require_relative 'viva_wallet/authentication'
8
+ require_relative 'viva_wallet/event'
8
9
  require_relative 'viva_wallet/payment'
9
10
 
10
11
  module VivaWallet
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viva_wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Dallimore