istox 0.2.17.pre.50 → 0.2.20.pre.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
2
  SHA256:
3
- metadata.gz: dcb82d8972b1737ba6a5474bc2ad48d569caeb14a82479434e8aade03c4241e9
4
- data.tar.gz: a57d68d034660f773739f6db1f447c3323eb7476711d0db107ba3c2034165fe3
3
+ metadata.gz: 0bf7deab6894c93e79e4c0bae0df5d78086c10fe7d5ea7992d3e4aeb687e3506
4
+ data.tar.gz: ac840fea4b0423e27c7c4d9d8a742a03f5e8149607cdf9f3be67dac8396dc516
5
5
  SHA512:
6
- metadata.gz: adab4a8f94665fda362e07c4f6138d5cca2773ec3ca3776be30b17159f2c38aae198899e3ba08a02901a65823a82da4025b92fecef14f401134c3539e5a7e76f
7
- data.tar.gz: 5c1b7f90c1e20281cd59dde6157a1acc9352029a89a6487655444caaa103e91748c800d563005f8b5ec43158f78eac9c182aabae178bce90704db2edb185db54
6
+ metadata.gz: 280707ae94c1ff45488b5073a69a3b1ba3c04366318115840e39152c31c966237eb56789c31b5616d50b560490a8cef64efe1cf15c2d01f8f5a71997762106fc
7
+ data.tar.gz: c1dab138b1600c79159f1e970f7a74c01ece5429b8522da836c3062074f099a6a60d0f9b24d37d95147f5b54d6d5ec81b3ab86eb10ec1c2729be0a7b82566717
data/.gitignore CHANGED
File without changes
data/.rubocop.yml CHANGED
File without changes
data/.solargraph.yml CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.2.15)
4
+ istox (0.2.20.pre.0)
5
5
  amazing_print
6
6
  awesome_print
7
7
  aws-sdk-sns (~> 1)
@@ -63,7 +63,7 @@ GEM
63
63
  i18n (>= 0.7, < 2)
64
64
  minitest (~> 5.1)
65
65
  tzinfo (~> 1.1)
66
- amazing_print (1.3.0)
66
+ amazing_print (1.4.0)
67
67
  amq-protocol (2.3.2)
68
68
  arel (9.0.0)
69
69
  awesome_print (1.9.2)
@@ -74,8 +74,8 @@ GEM
74
74
  aws-partitions (~> 1, >= 1.239.0)
75
75
  aws-sigv4 (~> 1.1)
76
76
  jmespath (~> 1.0)
77
- aws-sdk-sns (1.42.0)
78
- aws-sdk-core (~> 3, >= 3.112.0)
77
+ aws-sdk-sns (1.37.0)
78
+ aws-sdk-core (~> 3, >= 3.109.0)
79
79
  aws-sigv4 (~> 1.1)
80
80
  aws-sdk-xray (1.4.0)
81
81
  aws-sdk-core (~> 3)
@@ -112,7 +112,7 @@ GEM
112
112
  i18n (~> 0.5)
113
113
  fakeredis (0.7.0)
114
114
  redis (>= 3.2, < 5.0)
115
- faraday (1.5.1)
115
+ faraday (1.8.0)
116
116
  faraday-em_http (~> 1.0)
117
117
  faraday-em_synchrony (~> 1.0)
118
118
  faraday-excon (~> 1.1)
@@ -120,6 +120,7 @@ GEM
120
120
  faraday-net_http (~> 1.0)
121
121
  faraday-net_http_persistent (~> 1.1)
122
122
  faraday-patron (~> 1.0)
123
+ faraday-rack (~> 1.0)
123
124
  multipart-post (>= 1.2, < 3)
124
125
  ruby2_keywords (>= 0.0.4)
125
126
  faraday-em_http (1.0.0)
@@ -129,26 +130,27 @@ GEM
129
130
  faraday-net_http (1.0.1)
130
131
  faraday-net_http_persistent (1.2.0)
131
132
  faraday-patron (1.0.0)
132
- faraday_middleware (1.0.0)
133
+ faraday-rack (1.0.0)
134
+ faraday_middleware (1.2.0)
133
135
  faraday (~> 1.0)
134
- ffi (1.15.3)
136
+ ffi (1.15.4)
135
137
  globalid (0.4.2)
136
138
  activesupport (>= 4.2.0)
137
- google-protobuf (3.17.3-universal-darwin)
138
- googleapis-common-protos-types (1.1.0)
139
+ google-protobuf (3.19.1-x86_64-darwin)
140
+ googleapis-common-protos-types (1.3.0)
139
141
  google-protobuf (~> 3.14)
140
142
  graphlient (0.5.0)
141
143
  faraday (>= 1.0)
142
144
  faraday_middleware
143
145
  graphql-client
144
- graphql (1.12.14)
145
- graphql-client (0.16.0)
146
+ graphql (1.13.0)
147
+ graphql-client (0.17.0)
146
148
  activesupport (>= 3.0)
147
- graphql (~> 1.8)
148
- grpc (1.38.0-universal-darwin)
149
- google-protobuf (~> 3.15)
149
+ graphql (~> 1.10)
150
+ grpc (1.42.0-x86_64-darwin)
151
+ google-protobuf (~> 3.18)
150
152
  googleapis-common-protos-types (~> 1.0)
151
- grpc-tools (1.38.0)
153
+ grpc-tools (1.42.0)
152
154
  hashie (3.5.7)
153
155
  i18n (0.9.5)
154
156
  concurrent-ruby (~> 1.0)
@@ -178,7 +180,7 @@ GEM
178
180
  nokogiri (1.11.7)
179
181
  mini_portile2 (~> 2.5.0)
180
182
  racc (~> 1.4)
181
- oj (3.12.2)
183
+ oj (3.13.9)
182
184
  ougai (2.0.0)
183
185
  oj (~> 3.10)
184
186
  paranoia (2.4.3)
@@ -265,7 +267,7 @@ GEM
265
267
  rspec-support (~> 3.8.0)
266
268
  rspec-support (3.8.0)
267
269
  ruby2_keywords (0.0.5)
268
- set (1.0.1)
270
+ set (1.0.2)
269
271
  slop (4.9.1)
270
272
  sorted_set (1.0.3)
271
273
  rbtree
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -27,10 +27,16 @@ module Istox
27
27
 
28
28
  resource = begin
29
29
  cls = class_eval("::#{receipt.resource_name}", __FILE__, __LINE__)
30
+ if receipt.resource_name == 'Auth::ReferralProgramPayoutList' && receipt.request_reason.present?
31
+ data = JSON.parse(receipt.request_reason, object_class: OpenStruct)
32
+ id = data.ref_id
33
+ else
34
+ id = receipt.resource_id
35
+ end
30
36
  if cls.respond_to?('with_deleted')
31
- cls.with_deleted.find(receipt.resource_id)
37
+ cls.with_deleted.find(id)
32
38
  else
33
- cls.find(receipt.resource_id)
39
+ cls.find(id)
34
40
  end
35
41
  rescue NameError
36
42
  log.warn "Transaction bind to #{receipt.resource_name} with id #{receipt.resource_id} class not found, skipping..."
File without changes
File without changes
File without changes
File without changes
@@ -32,7 +32,7 @@ module Istox
32
32
  current_page = 1 if current_page <= 0
33
33
 
34
34
  offset = (current_page - 1) * meta.limit
35
- total = query.count
35
+ total = query.count(:all)
36
36
  data = query.limit(meta.limit).offset(offset)
37
37
 
38
38
  page_count = (total + meta.limit - 1) / meta.limit
File without changes
File without changes
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.2.17-50'.freeze
2
+ VERSION = '0.2.20-0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17.pre.50
4
+ version: 0.2.20.pre.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-25 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amazing_print
@@ -519,7 +519,7 @@ files:
519
519
  homepage: http://www.abc.com
520
520
  licenses: []
521
521
  metadata: {}
522
- post_install_message:
522
+ post_install_message:
523
523
  rdoc_options: []
524
524
  require_paths:
525
525
  - lib
@@ -534,8 +534,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
534
534
  - !ruby/object:Gem::Version
535
535
  version: 1.3.1
536
536
  requirements: []
537
- rubygems_version: 3.2.11
538
- signing_key:
537
+ rubygems_version: 3.0.8
538
+ signing_key:
539
539
  specification_version: 4
540
540
  summary: istox backend shared gem
541
541
  test_files: []