baremetrics_api 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -2
- data/lib/baremetrics_api/endpoint/charges.rb +4 -3
- data/lib/baremetrics_api/version.rb +3 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce50713936b2eb9e2ff78cd6361534aece2f94155f11d3b383e4235d334953b7
|
4
|
+
data.tar.gz: d6830d03252eb742a81b70568758aef9eb46196252a6bf8a0be3a8d2626bf734
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ea9d49df27e7cb64c602794f85433064b4b12119669d1c67c5f7dc48feef5b3e9f4e563b829bed5db9ce8533a7968f86bfdfbf4f164a93921756e9fcf7af593
|
7
|
+
data.tar.gz: '045197b92f7af80699faf1ef61fc93d1b83bbadf08bfa98bd4f98dcc06ac1e8998a1d60c50fb7fb2939d8a19e77d88c342178e383dce074fb72234468094ea26'
|
data/.travis.yml
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
|
5
|
-
before_install: gem install bundler -v 1.
|
4
|
+
- 2.5.0
|
5
|
+
before_install: gem install bundler -v 1.17.1
|
6
|
+
deploy:
|
7
|
+
provider: rubygems
|
8
|
+
api_key:
|
9
|
+
secure: VutHhspxyDKPtAq/09U3TRNoaDkOywmIdi1qpi9tG4q+hOGlNjs3+F2V1LMgFLmMFcEO+ihcUrEBj3tTieIfhk47QYFoU+8xIPGqNPCGuekDvwLSFg+2bR7EvnYtMLI92JHDdpdm/AJdCiHS8Z8bBXEK2rFEEVZvGUpvX/5SjwnVRx6EtJZJ0/EzPPUIJjhLrzjogJzdAcuUYvy6r1GXvlRHBvfjYNljsBlh1MKHSpQ/e3+vl2HE9q3BvJ1+yP+AFphzAtgqUjXepIY5FkyKYsqZWMv8PZlmUxNxZVfH9BRbLF6vQpdiCv+RXWHAgiqeP+umq9Fovj/xgChXLpyoJytSMWDZR1l05j+7PDvmS/CH4Pyjk6sMc3B609Tq1FQ8K0HbEGitieaESUjbReW++ihCcBNRpS7O64QIp56O0xW/spVsF4IO12sAE+oGslKFualGS1FaW2zdbJsjt7gdC3hlUTOrdaNSV1XzNVvl3ZqjbGVIrgpvuONqVfFeKBKhB7/yA3/PuWSC/Cj4AiTwFQbP2cFfZ5UwcLR+UWsdrrvjFx3Jdd/LAk4oV1D5khDTttZ03Id6Qwm9s1/ZNxe72Pl4bjeFhtGIYW7hMLbCUIy9PvWJBsCDgww7HEzWW1cI8WV5lmxcuZpRIW72uls8Pug4RwGmT/sbb0u98j0D9ek=
|
10
|
+
gem: baremetrics_api
|
11
|
+
on:
|
12
|
+
tags: true
|
13
|
+
repo: rewindio/baremetrics_api
|
@@ -7,8 +7,8 @@ module BaremetricsAPI
|
|
7
7
|
@client = client
|
8
8
|
end
|
9
9
|
|
10
|
-
def list_charges(source_id:, page: nil)
|
11
|
-
JSON.parse(list_charges_request(source_id, page).body).with_indifferent_access
|
10
|
+
def list_charges(source_id:, search_params: {}, page: nil)
|
11
|
+
JSON.parse(list_charges_request(source_id, search_params, page).body).with_indifferent_access
|
12
12
|
end
|
13
13
|
|
14
14
|
def show_charge(source_id:, oid:)
|
@@ -21,11 +21,12 @@ module BaremetricsAPI
|
|
21
21
|
|
22
22
|
private
|
23
23
|
|
24
|
-
def list_charges_request(source_id)
|
24
|
+
def list_charges_request(source_id, search_params, page)
|
25
25
|
query_params = {
|
26
26
|
per_page: @client.configuration.response_limit
|
27
27
|
}
|
28
28
|
|
29
|
+
query_params = query_params.merge(search_params)
|
29
30
|
query_params[:page] = page unless page.nil?
|
30
31
|
|
31
32
|
@client.connection.get do |req|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: baremetrics_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Third Blink Software Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -163,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.7.6
|
166
|
+
rubygems_version: 3.0.3
|
168
167
|
signing_key:
|
169
168
|
specification_version: 4
|
170
169
|
summary: Ruby client library for Baremetrics V1 API
|