treezor_client 1.4.0 → 1.5.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/docs/CardReserveApi.md +10 -4
- data/docs/DocumentApi.md +1 -1
- data/lib/treezor_client/api/card_reserve_api.rb +20 -6
- data/lib/treezor_client/api/document_api.rb +10 -10
- data/lib/treezor_client/version.rb +1 -1
- data/pkg/treezor_client-1.4.0.gem +0 -0
- data/treezor_api_spec.yaml +16 -14
- data/treezor_client.gemspec +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 253398929c7868706c06ba491610adb8f779994d882d52e31e8ab16f2945d27c
|
4
|
+
data.tar.gz: 27284ad6f1519ac55c7eb730ea3690df43155a025975ef03cf51f3c4745e1331
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34dc5781cd5fa3ab105903ca2122f315f22bb5b3682c54d3edfb397f0cbd3f472727c9018d65e1b0c7ea86a98637979b928ceb12c306d80f9216d3193255410b
|
7
|
+
data.tar.gz: 222d21ac81b1a0340456b335e09616eb4f5039e5a54fdb7085336dad8aa70cb67b56cb7065cd73486055d176bf94fc9fb3e3e652626fc3a992f589ffaa9ac17e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -65,10 +65,10 @@ end
|
|
65
65
|
api_instance = TreezorClient::BalanceApi.new
|
66
66
|
|
67
67
|
opts = {
|
68
|
-
access_signature:
|
69
|
-
access_tag:
|
68
|
+
access_signature: 'access_signature_example', # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
69
|
+
access_tag: 'access_tag_example', # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
70
70
|
access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
71
|
-
access_user_ip:
|
71
|
+
access_user_ip: 'access_user_ip_example', # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
72
72
|
wallet_id: 56, # Integer | Wallet's ID of wanted balance
|
73
73
|
user_id: 56 # Integer | Wallet's user id of wanted balanced
|
74
74
|
}
|
data/docs/CardReserveApi.md
CHANGED
@@ -10,7 +10,7 @@ Method | HTTP request | Description
|
|
10
10
|
|
11
11
|
|
12
12
|
# **card_reserve_add_to**
|
13
|
-
> Float card_reserve_add_to(opts)
|
13
|
+
> Float card_reserve_add_to(id, opts)
|
14
14
|
|
15
15
|
add an amount to the reserved amount of a card
|
16
16
|
|
@@ -30,6 +30,8 @@ end
|
|
30
30
|
|
31
31
|
api_instance = TreezorClient::CardReserveApi.new
|
32
32
|
|
33
|
+
id = 789 # Integer | the cardId of the reserved amount you want to pick up
|
34
|
+
|
33
35
|
opts = {
|
34
36
|
access_signature: 'access_signature_example', # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
35
37
|
access_tag: 'access_tag_example', # String | Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
@@ -40,7 +42,7 @@ opts = {
|
|
40
42
|
|
41
43
|
begin
|
42
44
|
#add an amount to the reserved amount of a card
|
43
|
-
result = api_instance.card_reserve_add_to(opts)
|
45
|
+
result = api_instance.card_reserve_add_to(id, opts)
|
44
46
|
p result
|
45
47
|
rescue TreezorClient::ApiError => e
|
46
48
|
puts "Exception when calling CardReserveApi->card_reserve_add_to: #{e}"
|
@@ -51,6 +53,7 @@ end
|
|
51
53
|
|
52
54
|
Name | Type | Description | Notes
|
53
55
|
------------- | ------------- | ------------- | -------------
|
56
|
+
**id** | **Integer**| the cardId of the reserved amount you want to pick up |
|
54
57
|
**access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication). | [optional]
|
55
58
|
**access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics). | [optional]
|
56
59
|
**access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://www.treezor.com/basics). | [optional]
|
@@ -73,7 +76,7 @@ Name | Type | Description | Notes
|
|
73
76
|
|
74
77
|
|
75
78
|
# **card_reserve_check**
|
76
|
-
> BOOLEAN card_reserve_check(opts)
|
79
|
+
> BOOLEAN card_reserve_check(id, opts)
|
77
80
|
|
78
81
|
check reserved amount
|
79
82
|
|
@@ -93,6 +96,8 @@ end
|
|
93
96
|
|
94
97
|
api_instance = TreezorClient::CardReserveApi.new
|
95
98
|
|
99
|
+
id = 789 # Integer | the cardId of the reserved amount you want to pick up
|
100
|
+
|
96
101
|
opts = {
|
97
102
|
access_signature: 'access_signature_example', # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
98
103
|
access_tag: 'access_tag_example', # String | Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
@@ -103,7 +108,7 @@ opts = {
|
|
103
108
|
|
104
109
|
begin
|
105
110
|
#check reserved amount
|
106
|
-
result = api_instance.card_reserve_check(opts)
|
111
|
+
result = api_instance.card_reserve_check(id, opts)
|
107
112
|
p result
|
108
113
|
rescue TreezorClient::ApiError => e
|
109
114
|
puts "Exception when calling CardReserveApi->card_reserve_check: #{e}"
|
@@ -114,6 +119,7 @@ end
|
|
114
119
|
|
115
120
|
Name | Type | Description | Notes
|
116
121
|
------------- | ------------- | ------------- | -------------
|
122
|
+
**id** | **Integer**| the cardId of the reserved amount you want to pick up |
|
117
123
|
**access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication). | [optional]
|
118
124
|
**access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics). | [optional]
|
119
125
|
**access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://www.treezor.com/basics). | [optional]
|
data/docs/DocumentApi.md
CHANGED
@@ -21,6 +21,7 @@ module TreezorClient
|
|
21
21
|
end
|
22
22
|
# add an amount to the reserved amount of a card
|
23
23
|
# add an amount to the reserved amount of a card
|
24
|
+
# @param id the cardId of the reserved amount you want to pick up
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
26
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
26
27
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
@@ -28,13 +29,14 @@ module TreezorClient
|
|
28
29
|
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
29
30
|
# @option opts [Body3] :body
|
30
31
|
# @return [Float]
|
31
|
-
def card_reserve_add_to(opts = {})
|
32
|
-
data, _status_code, _headers = card_reserve_add_to_with_http_info(opts)
|
32
|
+
def card_reserve_add_to(id, opts = {})
|
33
|
+
data, _status_code, _headers = card_reserve_add_to_with_http_info(id, opts)
|
33
34
|
data
|
34
35
|
end
|
35
36
|
|
36
37
|
# add an amount to the reserved amount of a card
|
37
38
|
# add an amount to the reserved amount of a card
|
39
|
+
# @param id the cardId of the reserved amount you want to pick up
|
38
40
|
# @param [Hash] opts the optional parameters
|
39
41
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
40
42
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
@@ -42,15 +44,20 @@ module TreezorClient
|
|
42
44
|
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
43
45
|
# @option opts [Body3] :body
|
44
46
|
# @return [Array<(Float, Fixnum, Hash)>] Float data, response status code and response headers
|
45
|
-
def card_reserve_add_to_with_http_info(opts = {})
|
47
|
+
def card_reserve_add_to_with_http_info(id, opts = {})
|
46
48
|
if @api_client.config.debugging
|
47
49
|
@api_client.config.logger.debug 'Calling API: CardReserveApi.card_reserve_add_to ...'
|
48
50
|
end
|
51
|
+
# verify the required parameter 'id' is set
|
52
|
+
if @api_client.config.client_side_validation && id.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CardReserveApi.card_reserve_add_to"
|
54
|
+
end
|
49
55
|
# resource path
|
50
56
|
local_var_path = '/cardReserves/AddTo'
|
51
57
|
|
52
58
|
# query parameters
|
53
59
|
query_params = {}
|
60
|
+
query_params[:'id'] = id
|
54
61
|
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
55
62
|
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
56
63
|
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
@@ -83,6 +90,7 @@ module TreezorClient
|
|
83
90
|
end
|
84
91
|
# check reserved amount
|
85
92
|
# Check if an amount can be substract to the reserved amount
|
93
|
+
# @param id the cardId of the reserved amount you want to pick up
|
86
94
|
# @param [Hash] opts the optional parameters
|
87
95
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
88
96
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
@@ -90,13 +98,14 @@ module TreezorClient
|
|
90
98
|
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
91
99
|
# @option opts [Body4] :body
|
92
100
|
# @return [BOOLEAN]
|
93
|
-
def card_reserve_check(opts = {})
|
94
|
-
data, _status_code, _headers = card_reserve_check_with_http_info(opts)
|
101
|
+
def card_reserve_check(id, opts = {})
|
102
|
+
data, _status_code, _headers = card_reserve_check_with_http_info(id, opts)
|
95
103
|
data
|
96
104
|
end
|
97
105
|
|
98
106
|
# check reserved amount
|
99
107
|
# Check if an amount can be substract to the reserved amount
|
108
|
+
# @param id the cardId of the reserved amount you want to pick up
|
100
109
|
# @param [Hash] opts the optional parameters
|
101
110
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
102
111
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
@@ -104,15 +113,20 @@ module TreezorClient
|
|
104
113
|
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
105
114
|
# @option opts [Body4] :body
|
106
115
|
# @return [Array<(BOOLEAN, Fixnum, Hash)>] BOOLEAN data, response status code and response headers
|
107
|
-
def card_reserve_check_with_http_info(opts = {})
|
116
|
+
def card_reserve_check_with_http_info(id, opts = {})
|
108
117
|
if @api_client.config.debugging
|
109
118
|
@api_client.config.logger.debug 'Calling API: CardReserveApi.card_reserve_check ...'
|
110
119
|
end
|
120
|
+
# verify the required parameter 'id' is set
|
121
|
+
if @api_client.config.client_side_validation && id.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CardReserveApi.card_reserve_check"
|
123
|
+
end
|
111
124
|
# resource path
|
112
125
|
local_var_path = '/cardReserves/Check'
|
113
126
|
|
114
127
|
# query parameters
|
115
128
|
query_params = {}
|
129
|
+
query_params[:'id'] = id
|
116
130
|
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
117
131
|
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
118
132
|
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
@@ -81,26 +81,26 @@ module TreezorClient
|
|
81
81
|
|
82
82
|
# query parameters
|
83
83
|
query_params = {}
|
84
|
+
query_params[:'userId'] = user_id
|
85
|
+
query_params[:'documentTypeId'] = document_type_id
|
86
|
+
query_params[:'name'] = name
|
87
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
88
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
89
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
90
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
91
|
+
query_params[:'documentTag'] = opts[:'document_tag'] if !opts[:'document_tag'].nil?
|
92
|
+
query_params[:'residenceId'] = opts[:'residence_id'] if !opts[:'residence_id'].nil?
|
84
93
|
|
85
94
|
# header parameters
|
86
95
|
header_params = {}
|
87
96
|
# HTTP header 'Accept' (if needed)
|
88
97
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
89
98
|
# HTTP header 'Content-Type'
|
90
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
99
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
91
100
|
|
92
101
|
# form parameters
|
93
102
|
form_params = {}
|
94
|
-
form_params['userId'] = user_id
|
95
|
-
form_params['documentTypeId'] = document_type_id
|
96
|
-
form_params['name'] = name
|
97
103
|
form_params['fileContentBase64'] = file_content_base64
|
98
|
-
form_params['accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
99
|
-
form_params['accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
100
|
-
form_params['accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
101
|
-
form_params['accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
102
|
-
form_params['documentTag'] = opts[:'document_tag'] if !opts[:'document_tag'].nil?
|
103
|
-
form_params['residenceId'] = opts[:'residence_id'] if !opts[:'residence_id'].nil?
|
104
104
|
|
105
105
|
# http body (model)
|
106
106
|
post_body = nil
|
Binary file
|
data/treezor_api_spec.yaml
CHANGED
@@ -3943,12 +3943,13 @@ paths:
|
|
3943
3943
|
required: false
|
3944
3944
|
type: string
|
3945
3945
|
- name: id
|
3946
|
+
in: query
|
3946
3947
|
description: the cardId of the reserved amount you want to pick up
|
3947
3948
|
required: true
|
3948
3949
|
type: integer
|
3949
3950
|
format: int64
|
3950
|
-
-
|
3951
|
-
|
3951
|
+
- name: body
|
3952
|
+
in: body
|
3952
3953
|
schema:
|
3953
3954
|
required:
|
3954
3955
|
- cardId
|
@@ -4025,12 +4026,13 @@ paths:
|
|
4025
4026
|
required: false
|
4026
4027
|
type: string
|
4027
4028
|
- name: id
|
4029
|
+
in: query
|
4028
4030
|
description: the cardId of the reserved amount you want to pick up
|
4029
4031
|
required: true
|
4030
4032
|
type: integer
|
4031
4033
|
format: int64
|
4032
|
-
-
|
4033
|
-
|
4034
|
+
- name: body
|
4035
|
+
in: body
|
4034
4036
|
schema:
|
4035
4037
|
required:
|
4036
4038
|
- cardId
|
@@ -4541,12 +4543,12 @@ paths:
|
|
4541
4543
|
description: Search for documents.
|
4542
4544
|
operationId: createDocuments
|
4543
4545
|
consumes:
|
4544
|
-
-
|
4546
|
+
- application/x-www-form-urlencoded
|
4545
4547
|
produces:
|
4546
4548
|
- application/json
|
4547
4549
|
parameters:
|
4548
4550
|
- name: accessSignature
|
4549
|
-
in:
|
4551
|
+
in: query
|
4550
4552
|
description: |
|
4551
4553
|
Access signature can be mandatory for specific context. Treezor will
|
4552
4554
|
contact you if so. More info
|
@@ -4554,45 +4556,45 @@ paths:
|
|
4554
4556
|
required: false
|
4555
4557
|
type: string
|
4556
4558
|
- name: accessTag
|
4557
|
-
in:
|
4559
|
+
in: query
|
4558
4560
|
description: |
|
4559
4561
|
Access tag is used for idem potency query. More info
|
4560
4562
|
[here](https://agent.treezor.com/basics).
|
4561
4563
|
required: false
|
4562
4564
|
type: string
|
4563
4565
|
- name: accessUserId
|
4564
|
-
in:
|
4566
|
+
in: query
|
4565
4567
|
description: |
|
4566
4568
|
Access user's id is used for user's action restriction. More info
|
4567
4569
|
[here](https://agent.treezor.com/basics).
|
4568
4570
|
required: false
|
4569
4571
|
type: integer
|
4570
4572
|
- name: accessUserIp
|
4571
|
-
in:
|
4573
|
+
in: query
|
4572
4574
|
description: |
|
4573
4575
|
Access user's ip is used for user's action restriction. More info
|
4574
4576
|
[here](https://agent.treezor.com/basics).
|
4575
4577
|
required: false
|
4576
4578
|
type: string
|
4577
4579
|
- name: documentTag
|
4578
|
-
in:
|
4580
|
+
in: query
|
4579
4581
|
description: Custom data.
|
4580
4582
|
required: false
|
4581
4583
|
type: integer
|
4582
4584
|
- name: userId
|
4583
|
-
in:
|
4585
|
+
in: query
|
4584
4586
|
description: Document user's id.
|
4585
4587
|
required: true
|
4586
4588
|
type: string
|
4587
4589
|
- name: residenceId
|
4588
|
-
in:
|
4590
|
+
in: query
|
4589
4591
|
description: Document residence Id. The field is mandatory when the document is of type id 24 or 25. Otherwise it should not be provided.
|
4590
4592
|
required: false
|
4591
4593
|
type: integer
|
4592
4594
|
format: int64
|
4593
4595
|
minimum: 1
|
4594
4596
|
- name: documentTypeId
|
4595
|
-
in:
|
4597
|
+
in: query
|
4596
4598
|
description: |
|
4597
4599
|
Type of document.
|
4598
4600
|
|
@@ -4622,7 +4624,7 @@ paths:
|
|
4622
4624
|
required: true
|
4623
4625
|
type: integer
|
4624
4626
|
- name: name
|
4625
|
-
in:
|
4627
|
+
in: query
|
4626
4628
|
description: Document's name.
|
4627
4629
|
required: true
|
4628
4630
|
type: string
|
data/treezor_client.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
2
|
+
|
3
3
|
=begin
|
4
4
|
#Treezor
|
5
5
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
OpenAPI spec version: 0.1.1
|
9
9
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 2.
|
11
|
+
Swagger Codegen version: 2.4.1
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.homepage = "https://github.com/cashbee-team/treezor_client"
|
25
25
|
s.summary = "Treezor Ruby Gem"
|
26
26
|
s.description = "Treezor API. More info at https://www.treezor.com. Generated by Cashbee https://www.cashbee.fr"
|
27
|
-
s.license =
|
27
|
+
s.license = 'Apache 2.0'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
39
|
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
40
|
|
41
|
-
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
42
|
s.test_files = `find spec/*`.split("\n")
|
43
43
|
s.executables = []
|
44
44
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: treezor_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chaker Nakhli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|