treezor_client 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/BalanceApi.md +3 -3
- data/docs/BankaccountApi.md +21 -21
- data/docs/BeneficiariesApi.md +18 -18
- data/docs/BusinessApi.md +22 -22
- data/docs/CardApi.md +66 -66
- data/docs/CardDigitalizationsApi.md +9 -9
- data/docs/CardReserveApi.md +9 -9
- data/docs/CardtransactionApi.md +5 -5
- data/docs/CountryRestrictionGroupsApi.md +16 -16
- data/docs/DocumentApi.md +23 -23
- data/docs/HeartbeatApi.md +3 -3
- data/docs/IssuerInitiatedDigitizationDataApi.md +10 -10
- data/docs/MandateApi.md +33 -33
- data/docs/MccRestrictionGroupsApi.md +16 -16
- data/docs/MerchantIdRestrictionGroupsApi.md +15 -15
- data/docs/PayinApi.md +28 -28
- data/docs/PayinrefundApi.md +20 -20
- data/docs/PayoutApi.md +27 -27
- data/docs/PayoutRefundsApi.md +6 -6
- data/docs/TaxResidenceApi.md +9 -9
- data/docs/TransactionApi.md +14 -14
- data/docs/TransferApi.md +23 -23
- data/docs/TransferrefundApi.md +19 -19
- data/docs/UserApi.md +103 -103
- data/docs/VirtualibansApi.md +24 -24
- data/docs/WalletApi.md +45 -45
- data/lib/treezor_client/api/balance_api.rb +5 -6
- data/lib/treezor_client/api/bankaccount_api.rb +14 -18
- data/lib/treezor_client/api/beneficiaries_api.rb +14 -18
- data/lib/treezor_client/api/business_api.rb +11 -13
- data/lib/treezor_client/api/card_api.rb +53 -76
- data/lib/treezor_client/api/card_digitalizations_api.rb +14 -18
- data/lib/treezor_client/api/card_reserve_api.rb +11 -14
- data/lib/treezor_client/api/cardtransaction_api.rb +8 -10
- data/lib/treezor_client/api/country_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/document_api.rb +28 -33
- data/lib/treezor_client/api/heartbeat_api.rb +5 -6
- data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +8 -10
- data/lib/treezor_client/api/mandate_api.rb +20 -26
- data/lib/treezor_client/api/mcc_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/payin_api.rb +14 -18
- data/lib/treezor_client/api/payinrefund_api.rb +14 -18
- data/lib/treezor_client/api/payout_api.rb +14 -18
- data/lib/treezor_client/api/payout_refunds_api.rb +5 -6
- data/lib/treezor_client/api/tax_residence_api.rb +17 -22
- data/lib/treezor_client/api/transaction_api.rb +8 -10
- data/lib/treezor_client/api/transfer_api.rb +14 -18
- data/lib/treezor_client/api/transferrefund_api.rb +14 -18
- data/lib/treezor_client/api/user_api.rb +20 -26
- data/lib/treezor_client/api/virtualibans_api.rb +14 -18
- data/lib/treezor_client/api/wallet_api.rb +17 -22
- data/lib/treezor_client/api_client.rb +9 -9
- data/lib/treezor_client/api_error.rb +1 -1
- data/lib/treezor_client/configuration.rb +2 -2
- data/lib/treezor_client/models/balance.rb +6 -11
- data/lib/treezor_client/models/bankaccount.rb +9 -13
- data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +8 -13
- data/lib/treezor_client/models/beneficiary.rb +6 -11
- data/lib/treezor_client/models/body.rb +11 -15
- data/lib/treezor_client/models/body_1.rb +8 -13
- data/lib/treezor_client/models/body_10.rb +9 -13
- data/lib/treezor_client/models/body_2.rb +6 -11
- data/lib/treezor_client/models/body_3.rb +8 -13
- data/lib/treezor_client/models/body_4.rb +8 -13
- data/lib/treezor_client/models/body_5.rb +11 -15
- data/lib/treezor_client/models/body_6.rb +9 -13
- data/lib/treezor_client/models/body_7.rb +11 -15
- data/lib/treezor_client/models/body_8.rb +9 -13
- data/lib/treezor_client/models/body_9.rb +11 -15
- data/lib/treezor_client/models/businesssearchs_businessinformations.rb +9 -13
- data/lib/treezor_client/models/card.rb +9 -13
- data/lib/treezor_client/models/card_digitalization.rb +6 -11
- data/lib/treezor_client/models/country_restriction_group.rb +9 -13
- data/lib/treezor_client/models/document.rb +9 -13
- data/lib/treezor_client/models/error.rb +6 -11
- data/lib/treezor_client/models/inline_response_200.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_1.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_10.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_11.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_12.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_13.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_14.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_15.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_16.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_17.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_18.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_19.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_2.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_20.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_21.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_22.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_23.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_24.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_25.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_26.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_27.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_28.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_3.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_4.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_5.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +21 -25
- data/lib/treezor_client/models/inline_response_200_5_users.rb +9 -13
- data/lib/treezor_client/models/inline_response_200_6.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_7.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_7_cardimages.rb +8 -14
- data/lib/treezor_client/models/inline_response_200_8.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_9.rb +6 -11
- data/lib/treezor_client/models/inline_response_default.rb +6 -11
- data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +8 -13
- data/lib/treezor_client/models/mandate.rb +15 -19
- data/lib/treezor_client/models/mcc_restriction_group.rb +9 -13
- data/lib/treezor_client/models/merchant_id_restriction_group.rb +9 -13
- data/lib/treezor_client/models/payin.rb +9 -13
- data/lib/treezor_client/models/payinrefund.rb +9 -13
- data/lib/treezor_client/models/payout.rb +12 -16
- data/lib/treezor_client/models/payout_refund.rb +9 -13
- data/lib/treezor_client/models/tav.rb +6 -11
- data/lib/treezor_client/models/tax_residence.rb +6 -11
- data/lib/treezor_client/models/transaction.rb +6 -11
- data/lib/treezor_client/models/transfer.rb +9 -13
- data/lib/treezor_client/models/transferrefund.rb +9 -13
- data/lib/treezor_client/models/user.rb +12 -16
- data/lib/treezor_client/models/virtualiban.rb +6 -11
- data/lib/treezor_client/models/wallet.rb +9 -13
- data/lib/treezor_client/version.rb +2 -2
- data/lib/treezor_client.rb +1 -1
- data/pkg/treezor_client-1.3.0.gem +0 -0
- data/pkg/treezor_client-1.4.0.gem +0 -0
- data/treezor_api_spec.yaml +11 -11
- metadata +4 -2
data/docs/WalletApi.md
CHANGED
@@ -34,13 +34,13 @@ api_instance = TreezorClient::WalletApi.new
|
|
34
34
|
|
35
35
|
id = 56 # Integer | Wallet's id
|
36
36
|
|
37
|
-
origin =
|
37
|
+
origin = 'origin_example' # String | Request's origin. Possible values are: * OPERATOR * USER
|
38
38
|
|
39
39
|
opts = {
|
40
|
-
access_signature:
|
41
|
-
access_tag:
|
40
|
+
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).
|
41
|
+
access_tag: 'access_tag_example', # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
42
42
|
access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
43
|
-
access_user_ip:
|
43
|
+
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).
|
44
44
|
}
|
45
45
|
|
46
46
|
begin
|
@@ -102,10 +102,10 @@ api_instance = TreezorClient::WalletApi.new
|
|
102
102
|
id = 789 # Integer | Object internal id.
|
103
103
|
|
104
104
|
opts = {
|
105
|
-
access_signature:
|
106
|
-
access_tag:
|
105
|
+
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).
|
106
|
+
access_tag: 'access_tag_example', # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
107
107
|
access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
108
|
-
access_user_ip:
|
108
|
+
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).
|
109
109
|
}
|
110
110
|
|
111
111
|
begin
|
@@ -164,31 +164,31 @@ end
|
|
164
164
|
api_instance = TreezorClient::WalletApi.new
|
165
165
|
|
166
166
|
opts = {
|
167
|
-
access_signature:
|
168
|
-
access_tag:
|
167
|
+
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).
|
168
|
+
access_tag: 'access_tag_example', # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
169
169
|
access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
170
170
|
access_user_ip: 56, # Integer | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
171
171
|
wallet_id: 56, # Integer | Wallet's unique id.
|
172
|
-
wallet_status:
|
172
|
+
wallet_status: 'wallet_status_example', # String | Wallet's status: * **validated**: Wallet is active. It is possible to deposit to or retrieve money from the wallet. * **cancelled**: Wallet is closed. No action possible, there is no money in the wallet, it was closed by an operator or by the user. * **pending**: Wallet being validated (e.g. suspected fraud, late submission of documents' validation ... KYC ). In this case, it is not possible to use the wallet for transactions.
|
173
173
|
user_id: 56, # Integer | Wallet owner's id.
|
174
174
|
parent_user_id: 56, # Integer | Parent user id of the wallet owner
|
175
|
-
wallet_tag:
|
175
|
+
wallet_tag: 'wallet_tag_example', # String | Custom data.
|
176
176
|
wallet_type_id: 56, # Integer | Wallet type id. The following values are defined: | Id | Description | |----|----| | 9 | Electronic Money Wallet | | 10 | Payment Account Wallet | | 13 | Mirror Wallet | | 14 | Electronic Money Card (Internal only) |
|
177
|
-
event_name:
|
178
|
-
event_alias:
|
179
|
-
event_payin_start_date: DateTime.parse(
|
180
|
-
event_payin_end_date: DateTime.parse(
|
177
|
+
event_name: 'event_name_example', # String | Event name that will be used as wallet name. For example, in a wedding list: Wedding of X and Y
|
178
|
+
event_alias: 'event_alias_example', # String | Short url wallet name. It's automatically generated by the system, but it could be modified and customised by the user. For example: www.domain.com/wallet=mywedding
|
179
|
+
event_payin_start_date: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Wallet activation date. The date from which you can deposit money on the wallet. Format : YYYY-MM-DD HH:MM:SS
|
180
|
+
event_payin_end_date: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Deadline to money deposit on the wallet. Format : YYYY-MM-DD HH:MM:SS
|
181
181
|
tariff_id: 56, # Integer | Wallet pricing id.
|
182
182
|
payin_count: 56, # Integer | Number of payin done on the wallet.
|
183
|
-
solde:
|
183
|
+
solde: 'solde_example', # String | Wallet current balance.
|
184
184
|
page_number: 56, # Integer | Pagination page number. More info [here](https://agent.treezor.com/lists).
|
185
185
|
page_count: 56, # Integer | The number of items per page. More info [here](https://agent.treezor.com/lists).
|
186
|
-
sort_by:
|
187
|
-
sort_order:
|
188
|
-
created_date_from: DateTime.parse(
|
189
|
-
created_date_to: DateTime.parse(
|
190
|
-
updated_date_from: DateTime.parse(
|
191
|
-
updated_date_to: DateTime.parse(
|
186
|
+
sort_by: 'sort_by_example', # String | The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
187
|
+
sort_order: 'sort_order_example', # String | The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
188
|
+
created_date_from: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
189
|
+
created_date_to: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
190
|
+
updated_date_from: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
191
|
+
updated_date_to: DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
192
192
|
}
|
193
193
|
|
194
194
|
begin
|
@@ -272,23 +272,23 @@ tariff_id = 56 # Integer | Wallet pricing id.
|
|
272
272
|
|
273
273
|
user_id = 56 # Integer | Wallet owner's id.
|
274
274
|
|
275
|
-
currency =
|
275
|
+
currency = 'currency_example' # String | The currency that will be used for all wallet money transactions format : ISO 4217 3-letter code for each currency : Euro = EUR ; US Dollar = USD … Default currency will be same as the wallet
|
276
276
|
|
277
|
-
event_name =
|
277
|
+
event_name = 'event_name_example' # String | Event name that will be used as wallet name. For example, in a wedding list: Wedding of X and Y
|
278
278
|
|
279
279
|
opts = {
|
280
|
-
access_signature:
|
281
|
-
access_tag:
|
280
|
+
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).
|
281
|
+
access_tag: 'access_tag_example', # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
282
282
|
access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
283
283
|
access_user_ip: 56, # Integer | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
284
284
|
joint_user_id: 56, # Integer | Wallet co-owner's id. This user will not be allowed to collect the money from the wallet.
|
285
|
-
wallet_tag:
|
285
|
+
wallet_tag: 'wallet_tag_example', # String | Custom data
|
286
286
|
load: 3.4, # Float | Initial loading amount.
|
287
|
-
event_alias:
|
288
|
-
event_date: Date.parse(
|
289
|
-
event_message:
|
290
|
-
event_payin_start_date: Date.parse(
|
291
|
-
event_payin_end_date: Date.parse(
|
287
|
+
event_alias: 'event_alias_example', # String | Short url wallet name. It's automatically generated by the system, but it could be modified and customised by the user. For example: www.domain.com/wallet=mywedding. Please note that the eventAlias must be unique.
|
288
|
+
event_date: Date.parse('2013-10-20'), # Date | Wallet event date. Format : YYYY-MM-DD. Default: Created date + 7 days.
|
289
|
+
event_message: 'event_message_example', # String | It can be a description of the wallet.
|
290
|
+
event_payin_start_date: Date.parse('2013-10-20'), # Date | Wallet activation date. The date ferom which you can deposit money on the wallet. Format : YYYY-MM-DD. If null, the default date will be the created date of the wallet.
|
291
|
+
event_payin_end_date: Date.parse('2013-10-20') # Date | Deadline to money deposit on the wallet. Format : YYYY-MM-DD. If null, the money can be deposited indefinitely on the wallet
|
292
292
|
}
|
293
293
|
|
294
294
|
begin
|
@@ -361,20 +361,20 @@ api_instance = TreezorClient::WalletApi.new
|
|
361
361
|
id = 789 # Integer | Object internal id.
|
362
362
|
|
363
363
|
opts = {
|
364
|
-
access_signature:
|
365
|
-
access_tag:
|
364
|
+
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).
|
365
|
+
access_tag: 'access_tag_example', # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
366
366
|
access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
367
|
-
access_user_ip:
|
368
|
-
wallet_type_id:
|
369
|
-
event_name:
|
370
|
-
event_alias:
|
371
|
-
event_date:
|
372
|
-
event_message:
|
373
|
-
event_payin_start_date:
|
374
|
-
event_payin_end_date:
|
375
|
-
url_image:
|
376
|
-
image_name:
|
377
|
-
tariff_id:
|
367
|
+
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).
|
368
|
+
wallet_type_id: 'wallet_type_id_example', # String | Change wallet type id
|
369
|
+
event_name: 'event_name_example', # String | Change event name
|
370
|
+
event_alias: 'event_alias_example', # String | Change event alias. Please note that the eventAlias must be unique.
|
371
|
+
event_date: 'event_date_example', # String | Change event date
|
372
|
+
event_message: 'event_message_example', # String | Change event message
|
373
|
+
event_payin_start_date: 'event_payin_start_date_example', # String | Change event payin starting date
|
374
|
+
event_payin_end_date: 'event_payin_end_date_example', # String | Change event payin end date
|
375
|
+
url_image: 'url_image_example', # String | Change URL image
|
376
|
+
image_name: 'image_name_example', # String | Change image name
|
377
|
+
tariff_id: 'tariff_id_example' # String | Change tariff id
|
378
378
|
}
|
379
379
|
|
380
380
|
begin
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class BalanceApi
|
@@ -19,7 +19,6 @@ module TreezorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# search balances
|
24
23
|
# Get balances that match search criteria.
|
25
24
|
# @param [Hash] opts the optional parameters
|
@@ -32,7 +31,7 @@ module TreezorClient
|
|
32
31
|
# @return [InlineResponse2002]
|
33
32
|
def get_balances(opts = {})
|
34
33
|
data, _status_code, _headers = get_balances_with_http_info(opts)
|
35
|
-
|
34
|
+
data
|
36
35
|
end
|
37
36
|
|
38
37
|
# search balances
|
@@ -47,10 +46,10 @@ module TreezorClient
|
|
47
46
|
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
48
47
|
def get_balances_with_http_info(opts = {})
|
49
48
|
if @api_client.config.debugging
|
50
|
-
@api_client.config.logger.debug
|
49
|
+
@api_client.config.logger.debug 'Calling API: BalanceApi.get_balances ...'
|
51
50
|
end
|
52
51
|
# resource path
|
53
|
-
local_var_path =
|
52
|
+
local_var_path = '/balances'
|
54
53
|
|
55
54
|
# query parameters
|
56
55
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class BankaccountApi
|
@@ -19,7 +19,6 @@ module TreezorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# deactivate a bank account
|
24
23
|
# Change bank account's status to CANCELED. If a payout is being validated on this bank account, it can not be canceled.
|
25
24
|
# @param id Bank Accounts internal id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse2003]
|
28
27
|
def delete_bankaccount(id, opts = {})
|
29
28
|
data, _status_code, _headers = delete_bankaccount_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# deactivate a bank account
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
38
37
|
def delete_bankaccount_with_http_info(id, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: BankaccountApi.delete_bankaccount ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'id' is set
|
43
42
|
if @api_client.config.client_side_validation && id.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'id' when calling BankaccountApi.delete_bankaccount"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/bankaccounts/{id}'.sub('{' + 'id' + '}', id.to_s)
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -74,7 +73,6 @@ module TreezorClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
77
|
-
|
78
76
|
# get a bank account
|
79
77
|
# Get a bank account from the system.
|
80
78
|
# @param id Bank Accounts internal id.
|
@@ -82,7 +80,7 @@ module TreezorClient
|
|
82
80
|
# @return [InlineResponse2003]
|
83
81
|
def get_bankaccount(id, opts = {})
|
84
82
|
data, _status_code, _headers = get_bankaccount_with_http_info(id, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# get a bank account
|
@@ -92,14 +90,14 @@ module TreezorClient
|
|
92
90
|
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
93
91
|
def get_bankaccount_with_http_info(id, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
|
-
@api_client.config.logger.debug
|
93
|
+
@api_client.config.logger.debug 'Calling API: BankaccountApi.get_bankaccount ...'
|
96
94
|
end
|
97
95
|
# verify the required parameter 'id' is set
|
98
96
|
if @api_client.config.client_side_validation && id.nil?
|
99
97
|
fail ArgumentError, "Missing the required parameter 'id' when calling BankaccountApi.get_bankaccount"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/bankaccounts/{id}'.sub('{' + 'id' + '}', id.to_s)
|
103
101
|
|
104
102
|
# query parameters
|
105
103
|
query_params = {}
|
@@ -129,7 +127,6 @@ module TreezorClient
|
|
129
127
|
end
|
130
128
|
return data, status_code, headers
|
131
129
|
end
|
132
|
-
|
133
130
|
# search bank accounts
|
134
131
|
# Get bank accounts that match search criteria.
|
135
132
|
# @param [Hash] opts the optional parameters
|
@@ -152,7 +149,7 @@ module TreezorClient
|
|
152
149
|
# @return [InlineResponse2003]
|
153
150
|
def get_bankaccounts(opts = {})
|
154
151
|
data, _status_code, _headers = get_bankaccounts_with_http_info(opts)
|
155
|
-
|
152
|
+
data
|
156
153
|
end
|
157
154
|
|
158
155
|
# search bank accounts
|
@@ -177,10 +174,10 @@ module TreezorClient
|
|
177
174
|
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
178
175
|
def get_bankaccounts_with_http_info(opts = {})
|
179
176
|
if @api_client.config.debugging
|
180
|
-
@api_client.config.logger.debug
|
177
|
+
@api_client.config.logger.debug 'Calling API: BankaccountApi.get_bankaccounts ...'
|
181
178
|
end
|
182
179
|
# resource path
|
183
|
-
local_var_path =
|
180
|
+
local_var_path = '/bankaccounts'
|
184
181
|
|
185
182
|
# query parameters
|
186
183
|
query_params = {}
|
@@ -226,7 +223,6 @@ module TreezorClient
|
|
226
223
|
end
|
227
224
|
return data, status_code, headers
|
228
225
|
end
|
229
|
-
|
230
226
|
# create a bank account
|
231
227
|
# Create a new benefeciary bank account in the system.
|
232
228
|
# @param user_id Owner user's id.
|
@@ -245,7 +241,7 @@ module TreezorClient
|
|
245
241
|
# @return [InlineResponse2003]
|
246
242
|
def post_bankaccount(user_id, bankaccount_owner_name, bankaccount_owner_address, bankaccount_iban, bankaccount_bic, bankaccount_type, opts = {})
|
247
243
|
data, _status_code, _headers = post_bankaccount_with_http_info(user_id, bankaccount_owner_name, bankaccount_owner_address, bankaccount_iban, bankaccount_bic, bankaccount_type, opts)
|
248
|
-
|
244
|
+
data
|
249
245
|
end
|
250
246
|
|
251
247
|
# create a bank account
|
@@ -266,7 +262,7 @@ module TreezorClient
|
|
266
262
|
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
267
263
|
def post_bankaccount_with_http_info(user_id, bankaccount_owner_name, bankaccount_owner_address, bankaccount_iban, bankaccount_bic, bankaccount_type, opts = {})
|
268
264
|
if @api_client.config.debugging
|
269
|
-
@api_client.config.logger.debug
|
265
|
+
@api_client.config.logger.debug 'Calling API: BankaccountApi.post_bankaccount ...'
|
270
266
|
end
|
271
267
|
# verify the required parameter 'user_id' is set
|
272
268
|
if @api_client.config.client_side_validation && user_id.nil?
|
@@ -297,7 +293,7 @@ module TreezorClient
|
|
297
293
|
fail ArgumentError, "invalid value for 'bankaccount_type', must be one of sct, sdd_core, sdd_b2b"
|
298
294
|
end
|
299
295
|
# resource path
|
300
|
-
local_var_path =
|
296
|
+
local_var_path = '/bankaccounts'
|
301
297
|
|
302
298
|
# query parameters
|
303
299
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class BeneficiariesApi
|
@@ -19,7 +19,6 @@ module TreezorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# search beneficiary bank accounts
|
24
23
|
# Get beneficiary bank accounts that match search criteria.
|
25
24
|
# @param [Hash] opts the optional parameters
|
@@ -42,7 +41,7 @@ module TreezorClient
|
|
42
41
|
# @return [InlineResponse2001]
|
43
42
|
def get_beneficiaries(opts = {})
|
44
43
|
data, _status_code, _headers = get_beneficiaries_with_http_info(opts)
|
45
|
-
|
44
|
+
data
|
46
45
|
end
|
47
46
|
|
48
47
|
# search beneficiary bank accounts
|
@@ -67,10 +66,10 @@ module TreezorClient
|
|
67
66
|
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
68
67
|
def get_beneficiaries_with_http_info(opts = {})
|
69
68
|
if @api_client.config.debugging
|
70
|
-
@api_client.config.logger.debug
|
69
|
+
@api_client.config.logger.debug 'Calling API: BeneficiariesApi.get_beneficiaries ...'
|
71
70
|
end
|
72
71
|
# resource path
|
73
|
-
local_var_path =
|
72
|
+
local_var_path = '/beneficiaries'
|
74
73
|
|
75
74
|
# query parameters
|
76
75
|
query_params = {}
|
@@ -116,7 +115,6 @@ module TreezorClient
|
|
116
115
|
end
|
117
116
|
return data, status_code, headers
|
118
117
|
end
|
119
|
-
|
120
118
|
# get a beneficiary bank account
|
121
119
|
# Get a beneficiary bank account from the system.
|
122
120
|
# @param id Beneficiary Bank Accounts internal id.
|
@@ -125,7 +123,7 @@ module TreezorClient
|
|
125
123
|
# @return [InlineResponse2001]
|
126
124
|
def get_beneficiary(id, opts = {})
|
127
125
|
data, _status_code, _headers = get_beneficiary_with_http_info(id, opts)
|
128
|
-
|
126
|
+
data
|
129
127
|
end
|
130
128
|
|
131
129
|
# get a beneficiary bank account
|
@@ -136,14 +134,14 @@ module TreezorClient
|
|
136
134
|
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
137
135
|
def get_beneficiary_with_http_info(id, opts = {})
|
138
136
|
if @api_client.config.debugging
|
139
|
-
@api_client.config.logger.debug
|
137
|
+
@api_client.config.logger.debug 'Calling API: BeneficiariesApi.get_beneficiary ...'
|
140
138
|
end
|
141
139
|
# verify the required parameter 'id' is set
|
142
140
|
if @api_client.config.client_side_validation && id.nil?
|
143
141
|
fail ArgumentError, "Missing the required parameter 'id' when calling BeneficiariesApi.get_beneficiary"
|
144
142
|
end
|
145
143
|
# resource path
|
146
|
-
local_var_path =
|
144
|
+
local_var_path = '/beneficiaries/{id}'.sub('{' + 'id' + '}', id.to_s)
|
147
145
|
|
148
146
|
# query parameters
|
149
147
|
query_params = {}
|
@@ -174,7 +172,6 @@ module TreezorClient
|
|
174
172
|
end
|
175
173
|
return data, status_code, headers
|
176
174
|
end
|
177
|
-
|
178
175
|
# create a beneficiary
|
179
176
|
# Create a new benefeciary bank account in the system.
|
180
177
|
# @param [Hash] opts the optional parameters
|
@@ -186,7 +183,7 @@ module TreezorClient
|
|
186
183
|
# @return [InlineResponse2001]
|
187
184
|
def post_beneficiary(opts = {})
|
188
185
|
data, _status_code, _headers = post_beneficiary_with_http_info(opts)
|
189
|
-
|
186
|
+
data
|
190
187
|
end
|
191
188
|
|
192
189
|
# create a beneficiary
|
@@ -200,10 +197,10 @@ module TreezorClient
|
|
200
197
|
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
201
198
|
def post_beneficiary_with_http_info(opts = {})
|
202
199
|
if @api_client.config.debugging
|
203
|
-
@api_client.config.logger.debug
|
200
|
+
@api_client.config.logger.debug 'Calling API: BeneficiariesApi.post_beneficiary ...'
|
204
201
|
end
|
205
202
|
# resource path
|
206
|
-
local_var_path =
|
203
|
+
local_var_path = '/beneficiaries'
|
207
204
|
|
208
205
|
# query parameters
|
209
206
|
query_params = {}
|
@@ -237,7 +234,6 @@ module TreezorClient
|
|
237
234
|
end
|
238
235
|
return data, status_code, headers
|
239
236
|
end
|
240
|
-
|
241
237
|
# edit a beneficiary
|
242
238
|
# Edit a benefeciary bank account in the system.
|
243
239
|
# @param id Beneficiary's id.
|
@@ -250,7 +246,7 @@ module TreezorClient
|
|
250
246
|
# @return [InlineResponse2001]
|
251
247
|
def put_beneficiary(id, opts = {})
|
252
248
|
data, _status_code, _headers = put_beneficiary_with_http_info(id, opts)
|
253
|
-
|
249
|
+
data
|
254
250
|
end
|
255
251
|
|
256
252
|
# edit a beneficiary
|
@@ -265,14 +261,14 @@ module TreezorClient
|
|
265
261
|
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
266
262
|
def put_beneficiary_with_http_info(id, opts = {})
|
267
263
|
if @api_client.config.debugging
|
268
|
-
@api_client.config.logger.debug
|
264
|
+
@api_client.config.logger.debug 'Calling API: BeneficiariesApi.put_beneficiary ...'
|
269
265
|
end
|
270
266
|
# verify the required parameter 'id' is set
|
271
267
|
if @api_client.config.client_side_validation && id.nil?
|
272
268
|
fail ArgumentError, "Missing the required parameter 'id' when calling BeneficiariesApi.put_beneficiary"
|
273
269
|
end
|
274
270
|
# resource path
|
275
|
-
local_var_path =
|
271
|
+
local_var_path = '/beneficiaries/{id}'.sub('{' + 'id' + '}', id.to_s)
|
276
272
|
|
277
273
|
# query parameters
|
278
274
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class BusinessApi
|
@@ -19,7 +19,6 @@ module TreezorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# get business information
|
24
23
|
# The get business information endpoint returns all already known business information. End user will have then to verify/correct it.
|
25
24
|
# @param country In which country to search. Format [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
@@ -34,7 +33,7 @@ module TreezorClient
|
|
34
33
|
# @return [InlineResponse2005]
|
35
34
|
def businessinformations_get(country, opts = {})
|
36
35
|
data, _status_code, _headers = businessinformations_get_with_http_info(country, opts)
|
37
|
-
|
36
|
+
data
|
38
37
|
end
|
39
38
|
|
40
39
|
# get business information
|
@@ -51,14 +50,14 @@ module TreezorClient
|
|
51
50
|
# @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
|
52
51
|
def businessinformations_get_with_http_info(country, opts = {})
|
53
52
|
if @api_client.config.debugging
|
54
|
-
@api_client.config.logger.debug
|
53
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.businessinformations_get ...'
|
55
54
|
end
|
56
55
|
# verify the required parameter 'country' is set
|
57
56
|
if @api_client.config.client_side_validation && country.nil?
|
58
57
|
fail ArgumentError, "Missing the required parameter 'country' when calling BusinessApi.businessinformations_get"
|
59
58
|
end
|
60
59
|
# resource path
|
61
|
-
local_var_path =
|
60
|
+
local_var_path = '/businessinformations'
|
62
61
|
|
63
62
|
# query parameters
|
64
63
|
query_params = {}
|
@@ -92,7 +91,6 @@ module TreezorClient
|
|
92
91
|
end
|
93
92
|
return data, status_code, headers
|
94
93
|
end
|
95
|
-
|
96
94
|
# search businesses
|
97
95
|
# The search endpoint returns some business information.
|
98
96
|
# @param country In which country to search. Format [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
@@ -110,10 +108,10 @@ module TreezorClient
|
|
110
108
|
# @option opts [String] :address_street Business' street address.
|
111
109
|
# @option opts [String] :address_city Business' city address.
|
112
110
|
# @option opts [String] :address_postal_code Business' postal code address.
|
113
|
-
# @return [Array<
|
111
|
+
# @return [Array<Object>]
|
114
112
|
def businesssearchs_get(country, opts = {})
|
115
113
|
data, _status_code, _headers = businesssearchs_get_with_http_info(country, opts)
|
116
|
-
|
114
|
+
data
|
117
115
|
end
|
118
116
|
|
119
117
|
# search businesses
|
@@ -133,17 +131,17 @@ module TreezorClient
|
|
133
131
|
# @option opts [String] :address_street Business' street address.
|
134
132
|
# @option opts [String] :address_city Business' city address.
|
135
133
|
# @option opts [String] :address_postal_code Business' postal code address.
|
136
|
-
# @return [Array<(Array<
|
134
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
137
135
|
def businesssearchs_get_with_http_info(country, opts = {})
|
138
136
|
if @api_client.config.debugging
|
139
|
-
@api_client.config.logger.debug
|
137
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.businesssearchs_get ...'
|
140
138
|
end
|
141
139
|
# verify the required parameter 'country' is set
|
142
140
|
if @api_client.config.client_side_validation && country.nil?
|
143
141
|
fail ArgumentError, "Missing the required parameter 'country' when calling BusinessApi.businesssearchs_get"
|
144
142
|
end
|
145
143
|
# resource path
|
146
|
-
local_var_path =
|
144
|
+
local_var_path = '/businesssearchs'
|
147
145
|
|
148
146
|
# query parameters
|
149
147
|
query_params = {}
|
@@ -177,7 +175,7 @@ module TreezorClient
|
|
177
175
|
:form_params => form_params,
|
178
176
|
:body => post_body,
|
179
177
|
:auth_names => auth_names,
|
180
|
-
:return_type => 'Array<
|
178
|
+
:return_type => 'Array<Object>')
|
181
179
|
if @api_client.config.debugging
|
182
180
|
@api_client.config.logger.debug "API called: BusinessApi#businesssearchs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
183
181
|
end
|