masspay_ruby_sdk 1.0.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 +7 -0
- data/CHANGELOG.md +8 -0
- data/CONTRIBUTING.md +13 -0
- data/Gemfile +9 -0
- data/README.md +197 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +150 -0
- data/docs/ApiResponse.md +22 -0
- data/docs/AttrTxn.md +20 -0
- data/docs/AttrValue.md +20 -0
- data/docs/AttrVelocityRequestInner.md +20 -0
- data/docs/AttributeApi.md +168 -0
- data/docs/AttrsRequirement.md +36 -0
- data/docs/AutopayResp.md +22 -0
- data/docs/AutopayRule.md +20 -0
- data/docs/AvailableBalanceTxnResp.md +22 -0
- data/docs/CardApi.md +160 -0
- data/docs/CatalogApi.md +469 -0
- data/docs/CompaniesResp.md +18 -0
- data/docs/Company.md +26 -0
- data/docs/Country.md +22 -0
- data/docs/Exception.md +20 -0
- data/docs/FoundUser.md +24 -0
- data/docs/GetAccountStatement200Response.md +18 -0
- data/docs/GetTransactionConfirmationDetails200Response.md +18 -0
- data/docs/GetUserAgreement200Response.md +26 -0
- data/docs/GetUserAgreementsNames200ResponseInner.md +24 -0
- data/docs/GetUserUserTokenKycAu10tix200Response.md +18 -0
- data/docs/GetUserUserTokenKycVeriff200Response.md +18 -0
- data/docs/GetWalletCardInfo200Response.md +30 -0
- data/docs/IDUpload.md +20 -0
- data/docs/KYCApi.md +305 -0
- data/docs/LoadApi.md +621 -0
- data/docs/LoadTxn.md +32 -0
- data/docs/LoadTxnResp.md +20 -0
- data/docs/Loads.md +36 -0
- data/docs/PayoutApi.md +403 -0
- data/docs/PayoutTxn.md +36 -0
- data/docs/PayoutTxnCommitResp.md +24 -0
- data/docs/PayoutTxnResp.md +60 -0
- data/docs/ResendBalanceNotification200Response.md +18 -0
- data/docs/Service.md +22 -0
- data/docs/ServicePayersInner.md +38 -0
- data/docs/ServicePayersInnerExchangeRateInner.md +20 -0
- data/docs/SpendBackApi.md +161 -0
- data/docs/SpendBackTxn.md +28 -0
- data/docs/SpendBackTxnResp.md +22 -0
- data/docs/SpendBacks.md +34 -0
- data/docs/StoredUser.md +56 -0
- data/docs/TaxApi.md +81 -0
- data/docs/TaxYearUserResp.md +48 -0
- data/docs/TxnHistoryResp.md +52 -0
- data/docs/UpdateUser.md +52 -0
- data/docs/User.md +50 -0
- data/docs/UserApi.md +403 -0
- data/docs/WalletApi.md +463 -0
- data/docs/WalletTxnResp.md +34 -0
- data/docs/logo.webp +0 -0
- data/lib/masspay_ruby_sdk/api/account_api.rb +149 -0
- data/lib/masspay_ruby_sdk/api/attribute_api.rb +214 -0
- data/lib/masspay_ruby_sdk/api/card_api.rb +174 -0
- data/lib/masspay_ruby_sdk/api/catalog_api.rb +443 -0
- data/lib/masspay_ruby_sdk/api/kyc_api.rb +290 -0
- data/lib/masspay_ruby_sdk/api/load_api.rb +598 -0
- data/lib/masspay_ruby_sdk/api/payout_api.rb +397 -0
- data/lib/masspay_ruby_sdk/api/spend_back_api.rb +160 -0
- data/lib/masspay_ruby_sdk/api/tax_api.rb +82 -0
- data/lib/masspay_ruby_sdk/api/user_api.rb +418 -0
- data/lib/masspay_ruby_sdk/api/wallet_api.rb +461 -0
- data/lib/masspay_ruby_sdk/api_client.rb +391 -0
- data/lib/masspay_ruby_sdk/api_error.rb +57 -0
- data/lib/masspay_ruby_sdk/configuration.rb +315 -0
- data/lib/masspay_ruby_sdk/models/api_response.rb +236 -0
- data/lib/masspay_ruby_sdk/models/attr_txn.rb +235 -0
- data/lib/masspay_ruby_sdk/models/attr_value.rb +239 -0
- data/lib/masspay_ruby_sdk/models/attr_velocity_request_inner.rb +273 -0
- data/lib/masspay_ruby_sdk/models/attrs_requirement.rb +372 -0
- data/lib/masspay_ruby_sdk/models/autopay_resp.rb +256 -0
- data/lib/masspay_ruby_sdk/models/autopay_rule.rb +241 -0
- data/lib/masspay_ruby_sdk/models/available_balance_txn_resp.rb +254 -0
- data/lib/masspay_ruby_sdk/models/companies_resp.rb +225 -0
- data/lib/masspay_ruby_sdk/models/company.rb +285 -0
- data/lib/masspay_ruby_sdk/models/country.rb +296 -0
- data/lib/masspay_ruby_sdk/models/exception.rb +241 -0
- data/lib/masspay_ruby_sdk/models/found_user.rb +270 -0
- data/lib/masspay_ruby_sdk/models/get_account_statement200_response.rb +225 -0
- data/lib/masspay_ruby_sdk/models/get_transaction_confirmation_details200_response.rb +218 -0
- data/lib/masspay_ruby_sdk/models/get_user_agreement200_response.rb +280 -0
- data/lib/masspay_ruby_sdk/models/get_user_agreements_names200_response_inner.rb +270 -0
- data/lib/masspay_ruby_sdk/models/get_user_user_token_kyc_au10tix200_response.rb +224 -0
- data/lib/masspay_ruby_sdk/models/get_user_user_token_kyc_veriff200_response.rb +224 -0
- data/lib/masspay_ruby_sdk/models/get_wallet_card_info200_response.rb +460 -0
- data/lib/masspay_ruby_sdk/models/id_upload.rb +273 -0
- data/lib/masspay_ruby_sdk/models/load_txn.rb +321 -0
- data/lib/masspay_ruby_sdk/models/load_txn_resp.rb +273 -0
- data/lib/masspay_ruby_sdk/models/loads.rb +388 -0
- data/lib/masspay_ruby_sdk/models/payout_txn.rb +328 -0
- data/lib/masspay_ruby_sdk/models/payout_txn_commit_resp.rb +293 -0
- data/lib/masspay_ruby_sdk/models/payout_txn_resp.rb +613 -0
- data/lib/masspay_ruby_sdk/models/resend_balance_notification200_response.rb +225 -0
- data/lib/masspay_ruby_sdk/models/service.rb +318 -0
- data/lib/masspay_ruby_sdk/models/service_payers_inner.rb +373 -0
- data/lib/masspay_ruby_sdk/models/service_payers_inner_exchange_rate_inner.rb +239 -0
- data/lib/masspay_ruby_sdk/models/spend_back_txn.rb +325 -0
- data/lib/masspay_ruby_sdk/models/spend_back_txn_resp.rb +307 -0
- data/lib/masspay_ruby_sdk/models/spend_backs.rb +340 -0
- data/lib/masspay_ruby_sdk/models/stored_user.rb +500 -0
- data/lib/masspay_ruby_sdk/models/tax_year_user_resp.rb +388 -0
- data/lib/masspay_ruby_sdk/models/txn_history_resp.rb +571 -0
- data/lib/masspay_ruby_sdk/models/update_user.rb +490 -0
- data/lib/masspay_ruby_sdk/models/user.rb +423 -0
- data/lib/masspay_ruby_sdk/models/wallet_txn_resp.rb +375 -0
- data/lib/masspay_ruby_sdk/version.rb +14 -0
- data/lib/masspay_ruby_sdk.rb +89 -0
- data/masspay_ruby_sdk.gemspec +37 -0
- data/spec/api_client_spec.rb +227 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/spec_helper.rb +110 -0
- metadata +203 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
# MassPayRubySdk::GetUserUserTokenKycAu10tix200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **session_url** | **String** | URL for Au10tix session that can be used by redirecting the payee to the URL. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'masspay_ruby_sdk'
|
13
|
+
|
14
|
+
instance = MassPayRubySdk::GetUserUserTokenKycAu10tix200Response.new(
|
15
|
+
session_url: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# MassPayRubySdk::GetUserUserTokenKycVeriff200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **session_url** | **String** | URL for Veriff session that can be used by the SDKs (https://developers.veriff.com/#integrations) or by redirecting the payee to the URL. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'masspay_ruby_sdk'
|
13
|
+
|
14
|
+
instance = MassPayRubySdk::GetUserUserTokenKycVeriff200Response.new(
|
15
|
+
session_url: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# MassPayRubySdk::GetWalletCardInfo200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **card_number** | **Integer** | 16 Digits card number | |
|
8
|
+
| **cvv** | **String** | 3 Digits cvv code | |
|
9
|
+
| **expiration_date** | **Date** | Card expiration date | |
|
10
|
+
| **pin_number** | **String** | Card pin number (used in ATM machines) | |
|
11
|
+
| **balance** | **Float** | Available balance on the card | |
|
12
|
+
| **type** | **String** | Card type | |
|
13
|
+
| **status** | **String** | Status of the card | [default to 'ACTIVE'] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'masspay_ruby_sdk'
|
19
|
+
|
20
|
+
instance = MassPayRubySdk::GetWalletCardInfo200Response.new(
|
21
|
+
card_number: 4016483301928344,
|
22
|
+
cvv: 123,
|
23
|
+
expiration_date: null,
|
24
|
+
pin_number: 1234,
|
25
|
+
balance: 103,
|
26
|
+
type: VISA,
|
27
|
+
status: ACTIVE
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
data/docs/IDUpload.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# MassPayRubySdk::IDUpload
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | The type of image being uploaded | |
|
8
|
+
| **content** | **String** | Base64 encoded image (png|jpg|jpeg). Maximum total images size is 10MB | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'masspay_ruby_sdk'
|
14
|
+
|
15
|
+
instance = MassPayRubySdk::IDUpload.new(
|
16
|
+
type: document-front,
|
17
|
+
content: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/KYCApi.md
ADDED
@@ -0,0 +1,305 @@
|
|
1
|
+
# MassPayRubySdk::KYCApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.masspay.io/v0.1.4*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**find_attributes_velocity**](KYCApi.md#find_attributes_velocity) | **POST** /attribute/{user_token}/velocity | Attributes velocity check |
|
8
|
+
| [**get_user_user_token_kyc_au10tix**](KYCApi.md#get_user_user_token_kyc_au10tix) | **GET** /user/{user_token}/kyc/au10tix | Get an Au10tix session link |
|
9
|
+
| [**get_user_user_token_kyc_veriff**](KYCApi.md#get_user_user_token_kyc_veriff) | **GET** /user/{user_token}/kyc/veriff | Get a Veriff session link |
|
10
|
+
| [**upload_id_photos**](KYCApi.md#upload_id_photos) | **POST** /user/{user_token}/kyc/id | Upload ID Photos |
|
11
|
+
|
12
|
+
|
13
|
+
## find_attributes_velocity
|
14
|
+
|
15
|
+
> Array<Object> find_attributes_velocity(user_token, opts)
|
16
|
+
|
17
|
+
Attributes velocity check
|
18
|
+
|
19
|
+
This **POST** endpoint is used to perform an attributes velocity check to identify users with matching attribute values. <br> You can use this endpoint to help prevent fraudulent activities by monitoring for unusual attribute value changes over time. <br> To use this endpoint, you need to provide the `user_token` as a parameter in the URL path and the required parameters in the request Body. <br> The endpoint will then compare the provided attribute value with the historical attribute values for the same user and determine if it meets the velocity check criteria.
|
20
|
+
|
21
|
+
### Examples
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'time'
|
25
|
+
require 'masspay_ruby_sdk'
|
26
|
+
# setup authorization
|
27
|
+
MassPayRubySdk.configure do |config|
|
28
|
+
# Configure API key authorization: AUTHORIZER_NAME
|
29
|
+
config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
|
+
# config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = MassPayRubySdk::KYCApi.new
|
35
|
+
user_token = 'user_token_example' # String | Token representing the user to retrieve attributes for
|
36
|
+
opts = {
|
37
|
+
idempotency_key: 'idempotency_key_example', # String | Unique key to prevent duplicate processing
|
38
|
+
attr_velocity_request_inner: [MassPayRubySdk::AttrVelocityRequestInner.new({type: 'CardNumber', value: 'value_example'})] # Array<AttrVelocityRequestInner> |
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
# Attributes velocity check
|
43
|
+
result = api_instance.find_attributes_velocity(user_token, opts)
|
44
|
+
p result
|
45
|
+
rescue MassPayRubySdk::ApiError => e
|
46
|
+
puts "Error when calling KYCApi->find_attributes_velocity: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Using the find_attributes_velocity_with_http_info variant
|
51
|
+
|
52
|
+
This returns an Array which contains the response data, status code and headers.
|
53
|
+
|
54
|
+
> <Array(Array<Object>, Integer, Hash)> find_attributes_velocity_with_http_info(user_token, opts)
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
begin
|
58
|
+
# Attributes velocity check
|
59
|
+
data, status_code, headers = api_instance.find_attributes_velocity_with_http_info(user_token, opts)
|
60
|
+
p status_code # => 2xx
|
61
|
+
p headers # => { ... }
|
62
|
+
p data # => Array<Object>
|
63
|
+
rescue MassPayRubySdk::ApiError => e
|
64
|
+
puts "Error when calling KYCApi->find_attributes_velocity_with_http_info: #{e}"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### Parameters
|
69
|
+
|
70
|
+
| Name | Type | Description | Notes |
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
72
|
+
| **user_token** | **String** | Token representing the user to retrieve attributes for | |
|
73
|
+
| **idempotency_key** | **String** | Unique key to prevent duplicate processing | [optional] |
|
74
|
+
| **attr_velocity_request_inner** | [**Array<AttrVelocityRequestInner>**](AttrVelocityRequestInner.md) | | [optional] |
|
75
|
+
|
76
|
+
### Return type
|
77
|
+
|
78
|
+
**Array<Object>**
|
79
|
+
|
80
|
+
### Authorization
|
81
|
+
|
82
|
+
[AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
|
83
|
+
|
84
|
+
### HTTP request headers
|
85
|
+
|
86
|
+
- **Content-Type**: application/json
|
87
|
+
- **Accept**: application/json
|
88
|
+
|
89
|
+
|
90
|
+
## get_user_user_token_kyc_au10tix
|
91
|
+
|
92
|
+
> <GetUserUserTokenKycAu10tix200Response> get_user_user_token_kyc_au10tix(user_token)
|
93
|
+
|
94
|
+
Get an Au10tix session link
|
95
|
+
|
96
|
+
This **GET** endpoint is used to obtain a link to an Au10tix session for the user with the provided user token. <br> To use this endpoint, you need to provide the `user_token` as a parameter in the URL Path. <br> The endpoint will then generate a session link that you can use to initiate an identity verification process for the user through the Au10tix platform. <br> The response will contain the session link as a URL in a JSON format.
|
97
|
+
|
98
|
+
### Examples
|
99
|
+
|
100
|
+
```ruby
|
101
|
+
require 'time'
|
102
|
+
require 'masspay_ruby_sdk'
|
103
|
+
# setup authorization
|
104
|
+
MassPayRubySdk.configure do |config|
|
105
|
+
# Configure API key authorization: AUTHORIZER_NAME
|
106
|
+
config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
|
107
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
108
|
+
# config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
|
109
|
+
end
|
110
|
+
|
111
|
+
api_instance = MassPayRubySdk::KYCApi.new
|
112
|
+
user_token = 'user_token_example' # String |
|
113
|
+
|
114
|
+
begin
|
115
|
+
# Get an Au10tix session link
|
116
|
+
result = api_instance.get_user_user_token_kyc_au10tix(user_token)
|
117
|
+
p result
|
118
|
+
rescue MassPayRubySdk::ApiError => e
|
119
|
+
puts "Error when calling KYCApi->get_user_user_token_kyc_au10tix: #{e}"
|
120
|
+
end
|
121
|
+
```
|
122
|
+
|
123
|
+
#### Using the get_user_user_token_kyc_au10tix_with_http_info variant
|
124
|
+
|
125
|
+
This returns an Array which contains the response data, status code and headers.
|
126
|
+
|
127
|
+
> <Array(<GetUserUserTokenKycAu10tix200Response>, Integer, Hash)> get_user_user_token_kyc_au10tix_with_http_info(user_token)
|
128
|
+
|
129
|
+
```ruby
|
130
|
+
begin
|
131
|
+
# Get an Au10tix session link
|
132
|
+
data, status_code, headers = api_instance.get_user_user_token_kyc_au10tix_with_http_info(user_token)
|
133
|
+
p status_code # => 2xx
|
134
|
+
p headers # => { ... }
|
135
|
+
p data # => <GetUserUserTokenKycAu10tix200Response>
|
136
|
+
rescue MassPayRubySdk::ApiError => e
|
137
|
+
puts "Error when calling KYCApi->get_user_user_token_kyc_au10tix_with_http_info: #{e}"
|
138
|
+
end
|
139
|
+
```
|
140
|
+
|
141
|
+
### Parameters
|
142
|
+
|
143
|
+
| Name | Type | Description | Notes |
|
144
|
+
| ---- | ---- | ----------- | ----- |
|
145
|
+
| **user_token** | **String** | | |
|
146
|
+
|
147
|
+
### Return type
|
148
|
+
|
149
|
+
[**GetUserUserTokenKycAu10tix200Response**](GetUserUserTokenKycAu10tix200Response.md)
|
150
|
+
|
151
|
+
### Authorization
|
152
|
+
|
153
|
+
[AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
|
154
|
+
|
155
|
+
### HTTP request headers
|
156
|
+
|
157
|
+
- **Content-Type**: Not defined
|
158
|
+
- **Accept**: application/json
|
159
|
+
|
160
|
+
|
161
|
+
## get_user_user_token_kyc_veriff
|
162
|
+
|
163
|
+
> <GetUserUserTokenKycVeriff200Response> get_user_user_token_kyc_veriff(user_token)
|
164
|
+
|
165
|
+
Get a Veriff session link
|
166
|
+
|
167
|
+
This **GET** endpoint is used to obtain a link to a Veriff session for the user with the provided user token. <br> The endpoint will then generate a session link that you can use to initiate an identity verification process for the user through the Veriff platform. <br> To use this endpoint, you need to provide the `user_token` as a parameter in the URL Path. <br> The response will contain the session link as a URL in a JSON format.
|
168
|
+
|
169
|
+
### Examples
|
170
|
+
|
171
|
+
```ruby
|
172
|
+
require 'time'
|
173
|
+
require 'masspay_ruby_sdk'
|
174
|
+
# setup authorization
|
175
|
+
MassPayRubySdk.configure do |config|
|
176
|
+
# Configure API key authorization: AUTHORIZER_NAME
|
177
|
+
config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
|
178
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
179
|
+
# config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
|
180
|
+
end
|
181
|
+
|
182
|
+
api_instance = MassPayRubySdk::KYCApi.new
|
183
|
+
user_token = 'user_token_example' # String |
|
184
|
+
|
185
|
+
begin
|
186
|
+
# Get a Veriff session link
|
187
|
+
result = api_instance.get_user_user_token_kyc_veriff(user_token)
|
188
|
+
p result
|
189
|
+
rescue MassPayRubySdk::ApiError => e
|
190
|
+
puts "Error when calling KYCApi->get_user_user_token_kyc_veriff: #{e}"
|
191
|
+
end
|
192
|
+
```
|
193
|
+
|
194
|
+
#### Using the get_user_user_token_kyc_veriff_with_http_info variant
|
195
|
+
|
196
|
+
This returns an Array which contains the response data, status code and headers.
|
197
|
+
|
198
|
+
> <Array(<GetUserUserTokenKycVeriff200Response>, Integer, Hash)> get_user_user_token_kyc_veriff_with_http_info(user_token)
|
199
|
+
|
200
|
+
```ruby
|
201
|
+
begin
|
202
|
+
# Get a Veriff session link
|
203
|
+
data, status_code, headers = api_instance.get_user_user_token_kyc_veriff_with_http_info(user_token)
|
204
|
+
p status_code # => 2xx
|
205
|
+
p headers # => { ... }
|
206
|
+
p data # => <GetUserUserTokenKycVeriff200Response>
|
207
|
+
rescue MassPayRubySdk::ApiError => e
|
208
|
+
puts "Error when calling KYCApi->get_user_user_token_kyc_veriff_with_http_info: #{e}"
|
209
|
+
end
|
210
|
+
```
|
211
|
+
|
212
|
+
### Parameters
|
213
|
+
|
214
|
+
| Name | Type | Description | Notes |
|
215
|
+
| ---- | ---- | ----------- | ----- |
|
216
|
+
| **user_token** | **String** | | |
|
217
|
+
|
218
|
+
### Return type
|
219
|
+
|
220
|
+
[**GetUserUserTokenKycVeriff200Response**](GetUserUserTokenKycVeriff200Response.md)
|
221
|
+
|
222
|
+
### Authorization
|
223
|
+
|
224
|
+
[AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
|
225
|
+
|
226
|
+
### HTTP request headers
|
227
|
+
|
228
|
+
- **Content-Type**: Not defined
|
229
|
+
- **Accept**: application/json
|
230
|
+
|
231
|
+
|
232
|
+
## upload_id_photos
|
233
|
+
|
234
|
+
> Object upload_id_photos(user_token, opts)
|
235
|
+
|
236
|
+
Upload ID Photos
|
237
|
+
|
238
|
+
Upload IDs for the provided user. This is an optional endpoint if the images are captured through means other than the link that is generated in the attributes.
|
239
|
+
|
240
|
+
### Examples
|
241
|
+
|
242
|
+
```ruby
|
243
|
+
require 'time'
|
244
|
+
require 'masspay_ruby_sdk'
|
245
|
+
# setup authorization
|
246
|
+
MassPayRubySdk.configure do |config|
|
247
|
+
# Configure API key authorization: AUTHORIZER_NAME
|
248
|
+
config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
|
249
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
250
|
+
# config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
|
251
|
+
end
|
252
|
+
|
253
|
+
api_instance = MassPayRubySdk::KYCApi.new
|
254
|
+
user_token = 'user_token_example' # String |
|
255
|
+
opts = {
|
256
|
+
id_upload: [MassPayRubySdk::IDUpload.new({type: 'face', content: 'content_example'})] # Array<IDUpload> |
|
257
|
+
}
|
258
|
+
|
259
|
+
begin
|
260
|
+
# Upload ID Photos
|
261
|
+
result = api_instance.upload_id_photos(user_token, opts)
|
262
|
+
p result
|
263
|
+
rescue MassPayRubySdk::ApiError => e
|
264
|
+
puts "Error when calling KYCApi->upload_id_photos: #{e}"
|
265
|
+
end
|
266
|
+
```
|
267
|
+
|
268
|
+
#### Using the upload_id_photos_with_http_info variant
|
269
|
+
|
270
|
+
This returns an Array which contains the response data, status code and headers.
|
271
|
+
|
272
|
+
> <Array(Object, Integer, Hash)> upload_id_photos_with_http_info(user_token, opts)
|
273
|
+
|
274
|
+
```ruby
|
275
|
+
begin
|
276
|
+
# Upload ID Photos
|
277
|
+
data, status_code, headers = api_instance.upload_id_photos_with_http_info(user_token, opts)
|
278
|
+
p status_code # => 2xx
|
279
|
+
p headers # => { ... }
|
280
|
+
p data # => Object
|
281
|
+
rescue MassPayRubySdk::ApiError => e
|
282
|
+
puts "Error when calling KYCApi->upload_id_photos_with_http_info: #{e}"
|
283
|
+
end
|
284
|
+
```
|
285
|
+
|
286
|
+
### Parameters
|
287
|
+
|
288
|
+
| Name | Type | Description | Notes |
|
289
|
+
| ---- | ---- | ----------- | ----- |
|
290
|
+
| **user_token** | **String** | | |
|
291
|
+
| **id_upload** | [**Array<IDUpload>**](IDUpload.md) | | [optional] |
|
292
|
+
|
293
|
+
### Return type
|
294
|
+
|
295
|
+
**Object**
|
296
|
+
|
297
|
+
### Authorization
|
298
|
+
|
299
|
+
[AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
|
300
|
+
|
301
|
+
### HTTP request headers
|
302
|
+
|
303
|
+
- **Content-Type**: application/json, application/xml
|
304
|
+
- **Accept**: application/json
|
305
|
+
|