tappay_ruby 0.16.0 → 0.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f3adfe744edc8cb643d061174b024eb6c97a6da31adab49fb8bc9248dc06182
4
- data.tar.gz: cadd30812520dfc51f99c6efbd8c1dae7eaee132c8899d71723f6dd21c5726b8
3
+ metadata.gz: 15c44ff4750b4c720db7deb88827b0472dd40ee4c98ca1651bd4b54b25d31566
4
+ data.tar.gz: 199a823aa6332a3d12769bdf9b0ef32d938aba6594f3365d1d8a3212d3475837
5
5
  SHA512:
6
- metadata.gz: e75a79fba3503a549125f7b380c796a5f9333466b6cbb1b88938f9ecb22700be27a357c6b3a90d62387fc6ae6266db0c9ec0d8a614d4ec3858719449d5816db5
7
- data.tar.gz: f5d171f41699ebe5dad2820e1e60ab3a8c5dfb72d784d0befcf4a10c0571cf8c5e70935e6de3185123f5857dd3a680d332ba4fd2789202950e2f9c87df77979d
6
+ metadata.gz: 3c8730263b0071ebdcee35dc634eb5abd7f863a37ff4c2132511579ae0988496d22236a3467215365157fea82fac33aca99fc4825606020787b4591b4463a33d
7
+ data.tar.gz: '095757caf7c639691c14269e86bb246a01f90083cf1115a725381061da3a7daf23021c3861c6d1ca4e189e2b5ea48f52592013d3daa6a2628e2bfd5e075b001e'
data/lib/tappay/client.rb CHANGED
@@ -42,7 +42,9 @@ module Tappay
42
42
  case @response.code
43
43
  when 200
44
44
  data = parse_response
45
- unless data['status'].zero?
45
+ status = data['status']
46
+ # For transaction queries, status 2 means no records found, which is a valid response
47
+ unless status.zero? || (status == 2 && @response.request.uri.path.include?('/tpc/transaction/query'))
46
48
  raise APIError.new(data['status'], data['msg'])
47
49
  end
48
50
  when 400
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tappay
4
- VERSION = "0.16.0"
4
+ VERSION = "0.16.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tappay_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zac
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-01-25 00:00:00.000000000 Z
10
+ date: 2025-01-26 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: httparty