treezor_connect 0.25.0 → 0.26.0
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: 5a7b9c4f8789ae4a611439063d99e06fc5c8dace699c4a72fe3c80507a04bd63
|
|
4
|
+
data.tar.gz: cd4b14318c3171308119f2a688e96bebd75b689443603f92f5ea6efd221bddfb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68b4cc03e641eb97d41843ad76f13ec52baef51da936f3b9b16ebd2d681dfd84ce581a1ff2b5044851e1f9ed22a7eee8b3b010eaad120c66f43641bc583449dc
|
|
7
|
+
data.tar.gz: d913babc09032a93ef75faf3cbc8c34b14adf3d93dc025d735687f373fe6471cdc6c9a6f72b9c0ec72a9d602c42feceafaac234e18097de2878ec55c0d191fd7
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module TreezorConnect
|
|
4
|
+
module ApiOperations
|
|
5
|
+
module NestedList
|
|
6
|
+
def list(parent_id, filters = {}, access_token = nil)
|
|
7
|
+
treezor_response = request(:get, resource_url(parent_id), params: { query: filters }, access_token:)
|
|
8
|
+
data = extract_response_data(treezor_response)
|
|
9
|
+
Util.convert_to_treezor_object(data, { object_class: self::OBJECT_NAME })
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -5,6 +5,7 @@ module TreezorConnect
|
|
|
5
5
|
class Relationship < ApiResource
|
|
6
6
|
extend TreezorConnect::ApiOperations::NestedCreate
|
|
7
7
|
extend TreezorConnect::ApiOperations::NestedDelete
|
|
8
|
+
extend TreezorConnect::ApiOperations::NestedList
|
|
8
9
|
|
|
9
10
|
OBJECT_NAME = 'user/relationship'
|
|
10
11
|
OBJECT_PRIMARY_KEY = 'relationshipId'
|
data/lib/treezor_connect.rb
CHANGED
|
@@ -19,6 +19,7 @@ require 'treezor_connect/errors'
|
|
|
19
19
|
# API operations
|
|
20
20
|
require 'treezor_connect/api_operations/fetch'
|
|
21
21
|
require 'treezor_connect/api_operations/list'
|
|
22
|
+
require 'treezor_connect/api_operations/nested_list'
|
|
22
23
|
require 'treezor_connect/api_operations/create_operation'
|
|
23
24
|
require 'treezor_connect/api_operations/create'
|
|
24
25
|
require 'treezor_connect/api_operations/nested_create'
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: treezor_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- stefakins
|
|
8
8
|
- jbauzone
|
|
9
|
+
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
12
|
+
date: 2026-08-19 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: faraday
|
|
@@ -81,6 +82,7 @@ files:
|
|
|
81
82
|
- lib/treezor_connect/api_operations/list.rb
|
|
82
83
|
- lib/treezor_connect/api_operations/nested_create.rb
|
|
83
84
|
- lib/treezor_connect/api_operations/nested_delete.rb
|
|
85
|
+
- lib/treezor_connect/api_operations/nested_list.rb
|
|
84
86
|
- lib/treezor_connect/api_operations/request.rb
|
|
85
87
|
- lib/treezor_connect/api_operations/update.rb
|
|
86
88
|
- lib/treezor_connect/api_resource.rb
|
|
@@ -112,6 +114,7 @@ licenses:
|
|
|
112
114
|
- MIT
|
|
113
115
|
metadata:
|
|
114
116
|
rubygems_mfa_required: 'true'
|
|
117
|
+
post_install_message:
|
|
115
118
|
rdoc_options: []
|
|
116
119
|
require_paths:
|
|
117
120
|
- lib
|
|
@@ -126,7 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
126
129
|
- !ruby/object:Gem::Version
|
|
127
130
|
version: '0'
|
|
128
131
|
requirements: []
|
|
129
|
-
rubygems_version: 3.
|
|
132
|
+
rubygems_version: 3.4.19
|
|
133
|
+
signing_key:
|
|
130
134
|
specification_version: 4
|
|
131
135
|
summary: A gem for making HTTP calls to Treezor Connect.
|
|
132
136
|
test_files: []
|