paymentrails 0.2.6 → 0.2.7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe4996752fd67c0f9f51a6928671053a2f1b4b3e292c2a49f23efccead6a93d7
|
|
4
|
+
data.tar.gz: 73f861274286b70a7680c26aabadac19c7330fa4108f01a4e0841519a19d76cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 616d3babeb1241de33c83d9bb0812721f47f48a88dfa516b576a978b91ca9d42a11e910cbe0ba6b77573b9fd7a8556c214b52142b2e16b736e57c8265794bb1d
|
|
7
|
+
data.tar.gz: 046c39226137e9a41de1f851e0fc3566b5381b187462352040df8facbf1b5bb2bd4a5a3688aabcaa7c65b8bf28f956390e58d055ad2d41654607fa33f9042344
|
data/lib/paymentrails/Payment.rb
CHANGED
|
@@ -29,8 +29,15 @@ module PaymentRails
|
|
|
29
29
|
true
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
# TODO: if we can afford a breaking change ideally these should be kwargs
|
|
33
|
+
def search(page = 1, page_size = 10, prefix_search = '', filters = {})
|
|
34
|
+
query_string = URI.encode_www_form(
|
|
35
|
+
page: page.to_s,
|
|
36
|
+
pageSize: page_size.to_s,
|
|
37
|
+
search: prefix_search,
|
|
38
|
+
**filters
|
|
39
|
+
)
|
|
40
|
+
response = @client.get("/v1/recipients?#{query_string}")
|
|
34
41
|
recipient_list_builder(response)
|
|
35
42
|
end
|
|
36
43
|
|
data/paymentrails.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
|
|
|
4
4
|
s.name = "paymentrails"
|
|
5
5
|
s.summary = "PaymentRails Ruby SDK"
|
|
6
6
|
s.description = "Ruby SDK for interacting with the PaymentRails API"
|
|
7
|
-
s.version = '0.2.
|
|
7
|
+
s.version = '0.2.7'
|
|
8
8
|
s.homepage = 'https://www.paymentrails.com/'
|
|
9
9
|
s.email = ['joshua@paymentrails.com']
|
|
10
10
|
s.license = "MIT"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: paymentrails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PaymentRails
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-05-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dotenv
|
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
118
118
|
- !ruby/object:Gem::Version
|
|
119
119
|
version: '0'
|
|
120
120
|
requirements: []
|
|
121
|
-
rubygems_version: 3.
|
|
121
|
+
rubygems_version: 3.1.2
|
|
122
122
|
signing_key:
|
|
123
123
|
specification_version: 4
|
|
124
124
|
summary: PaymentRails Ruby SDK
|