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.
Files changed (119) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +8 -0
  3. data/CONTRIBUTING.md +13 -0
  4. data/Gemfile +9 -0
  5. data/README.md +197 -0
  6. data/Rakefile +10 -0
  7. data/docs/AccountApi.md +150 -0
  8. data/docs/ApiResponse.md +22 -0
  9. data/docs/AttrTxn.md +20 -0
  10. data/docs/AttrValue.md +20 -0
  11. data/docs/AttrVelocityRequestInner.md +20 -0
  12. data/docs/AttributeApi.md +168 -0
  13. data/docs/AttrsRequirement.md +36 -0
  14. data/docs/AutopayResp.md +22 -0
  15. data/docs/AutopayRule.md +20 -0
  16. data/docs/AvailableBalanceTxnResp.md +22 -0
  17. data/docs/CardApi.md +160 -0
  18. data/docs/CatalogApi.md +469 -0
  19. data/docs/CompaniesResp.md +18 -0
  20. data/docs/Company.md +26 -0
  21. data/docs/Country.md +22 -0
  22. data/docs/Exception.md +20 -0
  23. data/docs/FoundUser.md +24 -0
  24. data/docs/GetAccountStatement200Response.md +18 -0
  25. data/docs/GetTransactionConfirmationDetails200Response.md +18 -0
  26. data/docs/GetUserAgreement200Response.md +26 -0
  27. data/docs/GetUserAgreementsNames200ResponseInner.md +24 -0
  28. data/docs/GetUserUserTokenKycAu10tix200Response.md +18 -0
  29. data/docs/GetUserUserTokenKycVeriff200Response.md +18 -0
  30. data/docs/GetWalletCardInfo200Response.md +30 -0
  31. data/docs/IDUpload.md +20 -0
  32. data/docs/KYCApi.md +305 -0
  33. data/docs/LoadApi.md +621 -0
  34. data/docs/LoadTxn.md +32 -0
  35. data/docs/LoadTxnResp.md +20 -0
  36. data/docs/Loads.md +36 -0
  37. data/docs/PayoutApi.md +403 -0
  38. data/docs/PayoutTxn.md +36 -0
  39. data/docs/PayoutTxnCommitResp.md +24 -0
  40. data/docs/PayoutTxnResp.md +60 -0
  41. data/docs/ResendBalanceNotification200Response.md +18 -0
  42. data/docs/Service.md +22 -0
  43. data/docs/ServicePayersInner.md +38 -0
  44. data/docs/ServicePayersInnerExchangeRateInner.md +20 -0
  45. data/docs/SpendBackApi.md +161 -0
  46. data/docs/SpendBackTxn.md +28 -0
  47. data/docs/SpendBackTxnResp.md +22 -0
  48. data/docs/SpendBacks.md +34 -0
  49. data/docs/StoredUser.md +56 -0
  50. data/docs/TaxApi.md +81 -0
  51. data/docs/TaxYearUserResp.md +48 -0
  52. data/docs/TxnHistoryResp.md +52 -0
  53. data/docs/UpdateUser.md +52 -0
  54. data/docs/User.md +50 -0
  55. data/docs/UserApi.md +403 -0
  56. data/docs/WalletApi.md +463 -0
  57. data/docs/WalletTxnResp.md +34 -0
  58. data/docs/logo.webp +0 -0
  59. data/lib/masspay_ruby_sdk/api/account_api.rb +149 -0
  60. data/lib/masspay_ruby_sdk/api/attribute_api.rb +214 -0
  61. data/lib/masspay_ruby_sdk/api/card_api.rb +174 -0
  62. data/lib/masspay_ruby_sdk/api/catalog_api.rb +443 -0
  63. data/lib/masspay_ruby_sdk/api/kyc_api.rb +290 -0
  64. data/lib/masspay_ruby_sdk/api/load_api.rb +598 -0
  65. data/lib/masspay_ruby_sdk/api/payout_api.rb +397 -0
  66. data/lib/masspay_ruby_sdk/api/spend_back_api.rb +160 -0
  67. data/lib/masspay_ruby_sdk/api/tax_api.rb +82 -0
  68. data/lib/masspay_ruby_sdk/api/user_api.rb +418 -0
  69. data/lib/masspay_ruby_sdk/api/wallet_api.rb +461 -0
  70. data/lib/masspay_ruby_sdk/api_client.rb +391 -0
  71. data/lib/masspay_ruby_sdk/api_error.rb +57 -0
  72. data/lib/masspay_ruby_sdk/configuration.rb +315 -0
  73. data/lib/masspay_ruby_sdk/models/api_response.rb +236 -0
  74. data/lib/masspay_ruby_sdk/models/attr_txn.rb +235 -0
  75. data/lib/masspay_ruby_sdk/models/attr_value.rb +239 -0
  76. data/lib/masspay_ruby_sdk/models/attr_velocity_request_inner.rb +273 -0
  77. data/lib/masspay_ruby_sdk/models/attrs_requirement.rb +372 -0
  78. data/lib/masspay_ruby_sdk/models/autopay_resp.rb +256 -0
  79. data/lib/masspay_ruby_sdk/models/autopay_rule.rb +241 -0
  80. data/lib/masspay_ruby_sdk/models/available_balance_txn_resp.rb +254 -0
  81. data/lib/masspay_ruby_sdk/models/companies_resp.rb +225 -0
  82. data/lib/masspay_ruby_sdk/models/company.rb +285 -0
  83. data/lib/masspay_ruby_sdk/models/country.rb +296 -0
  84. data/lib/masspay_ruby_sdk/models/exception.rb +241 -0
  85. data/lib/masspay_ruby_sdk/models/found_user.rb +270 -0
  86. data/lib/masspay_ruby_sdk/models/get_account_statement200_response.rb +225 -0
  87. data/lib/masspay_ruby_sdk/models/get_transaction_confirmation_details200_response.rb +218 -0
  88. data/lib/masspay_ruby_sdk/models/get_user_agreement200_response.rb +280 -0
  89. data/lib/masspay_ruby_sdk/models/get_user_agreements_names200_response_inner.rb +270 -0
  90. data/lib/masspay_ruby_sdk/models/get_user_user_token_kyc_au10tix200_response.rb +224 -0
  91. data/lib/masspay_ruby_sdk/models/get_user_user_token_kyc_veriff200_response.rb +224 -0
  92. data/lib/masspay_ruby_sdk/models/get_wallet_card_info200_response.rb +460 -0
  93. data/lib/masspay_ruby_sdk/models/id_upload.rb +273 -0
  94. data/lib/masspay_ruby_sdk/models/load_txn.rb +321 -0
  95. data/lib/masspay_ruby_sdk/models/load_txn_resp.rb +273 -0
  96. data/lib/masspay_ruby_sdk/models/loads.rb +388 -0
  97. data/lib/masspay_ruby_sdk/models/payout_txn.rb +328 -0
  98. data/lib/masspay_ruby_sdk/models/payout_txn_commit_resp.rb +293 -0
  99. data/lib/masspay_ruby_sdk/models/payout_txn_resp.rb +613 -0
  100. data/lib/masspay_ruby_sdk/models/resend_balance_notification200_response.rb +225 -0
  101. data/lib/masspay_ruby_sdk/models/service.rb +318 -0
  102. data/lib/masspay_ruby_sdk/models/service_payers_inner.rb +373 -0
  103. data/lib/masspay_ruby_sdk/models/service_payers_inner_exchange_rate_inner.rb +239 -0
  104. data/lib/masspay_ruby_sdk/models/spend_back_txn.rb +325 -0
  105. data/lib/masspay_ruby_sdk/models/spend_back_txn_resp.rb +307 -0
  106. data/lib/masspay_ruby_sdk/models/spend_backs.rb +340 -0
  107. data/lib/masspay_ruby_sdk/models/stored_user.rb +500 -0
  108. data/lib/masspay_ruby_sdk/models/tax_year_user_resp.rb +388 -0
  109. data/lib/masspay_ruby_sdk/models/txn_history_resp.rb +571 -0
  110. data/lib/masspay_ruby_sdk/models/update_user.rb +490 -0
  111. data/lib/masspay_ruby_sdk/models/user.rb +423 -0
  112. data/lib/masspay_ruby_sdk/models/wallet_txn_resp.rb +375 -0
  113. data/lib/masspay_ruby_sdk/version.rb +14 -0
  114. data/lib/masspay_ruby_sdk.rb +89 -0
  115. data/masspay_ruby_sdk.gemspec +37 -0
  116. data/spec/api_client_spec.rb +227 -0
  117. data/spec/configuration_spec.rb +41 -0
  118. data/spec/spec_helper.rb +110 -0
  119. metadata +203 -0
@@ -0,0 +1,469 @@
1
+ # MassPayRubySdk::CatalogApi
2
+
3
+ All URIs are relative to *https://api.masspay.io/v0.1.4*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_cheapest_country_services**](CatalogApi.md#get_cheapest_country_services) | **GET** /country/{country_code}/cheapest | Gets a list of Companies and their cheapest service offerings for the given country code. |
8
+ | [**get_country_list**](CatalogApi.md#get_country_list) | **GET** /country/list | Gets a list of countries where services offered. |
9
+ | [**get_country_services**](CatalogApi.md#get_country_services) | **GET** /country/{country_code} | Gets a list of Companies and their service offerings for the given country code. |
10
+ | [**get_destination_token_alternatives**](CatalogApi.md#get_destination_token_alternatives) | **GET** /service/{destination_token}/alternatives | Returns list of alternative service to a provided service |
11
+ | [**get_user_agreement**](CatalogApi.md#get_user_agreement) | **GET** /user-agreements | Get User Agreement |
12
+ | [**get_user_agreements_names**](CatalogApi.md#get_user_agreements_names) | **OPTIONS** /user-agreements | Get Available User Agreements |
13
+
14
+
15
+ ## get_cheapest_country_services
16
+
17
+ > <CompaniesResp> get_cheapest_country_services(country_code, opts)
18
+
19
+ Gets a list of Companies and their cheapest service offerings for the given country code.
20
+
21
+ This **GET** endpoint is used to retrieve a list of companies and their cheapest service offerings for a specific country. <br> You can use this endpoint to obtain information about available services and pricing for each respected company in the provided country. If two providers offer similar services, only the cheapest option will be displayed. <br> To use this endpoint, you need to provide the `country_code` as a required parameter in the URL Path. <br> The response will include a JSON array containing details for each company, including the company name, cheapest service offerings, and pricing.
22
+
23
+ ### Examples
24
+
25
+ ```ruby
26
+ require 'time'
27
+ require 'masspay_ruby_sdk'
28
+ # setup authorization
29
+ MassPayRubySdk.configure do |config|
30
+ # Configure API key authorization: AUTHORIZER_NAME
31
+ config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ # config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
34
+ end
35
+
36
+ api_instance = MassPayRubySdk::CatalogApi.new
37
+ country_code = 'country_code_example' # String | Country code searching services for. 3 letters [ISO_3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) code\"
38
+ opts = {
39
+ amount: 'amount_example', # String | Returns the results fee based on the given amount, defaults to $200
40
+ limit: 3.4, # Float | Limit amount for transaction amount + fee. If fee + amount are higher than the limit, the output will automatically adjust to maximize the possible amount sent
41
+ idempotency_key: 'idempotency_key_example', # String | Unique key to prevent duplicate processing
42
+ wallet_token: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Token representing the wallet used. If provided, the results would be custom-tailored to this user.
43
+ include_payer_logos: true, # Boolean | Whether to include the payers logo in base64 format.
44
+ user_token: 'user_token_example', # String | Token representing the user for which we fetch the catalog. If provided, the results would be custom-tailored to this user. Not necessary if wallet_token is provided
45
+ source_currency: 'source_currency_example' # String | Required if amount is provided. The currency associated with the amount
46
+ }
47
+
48
+ begin
49
+ # Gets a list of Companies and their cheapest service offerings for the given country code.
50
+ result = api_instance.get_cheapest_country_services(country_code, opts)
51
+ p result
52
+ rescue MassPayRubySdk::ApiError => e
53
+ puts "Error when calling CatalogApi->get_cheapest_country_services: #{e}"
54
+ end
55
+ ```
56
+
57
+ #### Using the get_cheapest_country_services_with_http_info variant
58
+
59
+ This returns an Array which contains the response data, status code and headers.
60
+
61
+ > <Array(<CompaniesResp>, Integer, Hash)> get_cheapest_country_services_with_http_info(country_code, opts)
62
+
63
+ ```ruby
64
+ begin
65
+ # Gets a list of Companies and their cheapest service offerings for the given country code.
66
+ data, status_code, headers = api_instance.get_cheapest_country_services_with_http_info(country_code, opts)
67
+ p status_code # => 2xx
68
+ p headers # => { ... }
69
+ p data # => <CompaniesResp>
70
+ rescue MassPayRubySdk::ApiError => e
71
+ puts "Error when calling CatalogApi->get_cheapest_country_services_with_http_info: #{e}"
72
+ end
73
+ ```
74
+
75
+ ### Parameters
76
+
77
+ | Name | Type | Description | Notes |
78
+ | ---- | ---- | ----------- | ----- |
79
+ | **country_code** | **String** | Country code searching services for. 3 letters [ISO_3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) code\&quot; | |
80
+ | **amount** | **String** | Returns the results fee based on the given amount, defaults to $200 | [optional][default to &#39;200&#39;] |
81
+ | **limit** | **Float** | Limit amount for transaction amount + fee. If fee + amount are higher than the limit, the output will automatically adjust to maximize the possible amount sent | [optional] |
82
+ | **idempotency_key** | **String** | Unique key to prevent duplicate processing | [optional] |
83
+ | **wallet_token** | **String** | Token representing the wallet used. If provided, the results would be custom-tailored to this user. | [optional] |
84
+ | **include_payer_logos** | **Boolean** | Whether to include the payers logo in base64 format. | [optional][default to false] |
85
+ | **user_token** | **String** | Token representing the user for which we fetch the catalog. If provided, the results would be custom-tailored to this user. Not necessary if wallet_token is provided | [optional] |
86
+ | **source_currency** | **String** | Required if amount is provided. The currency associated with the amount | [optional] |
87
+
88
+ ### Return type
89
+
90
+ [**CompaniesResp**](CompaniesResp.md)
91
+
92
+ ### Authorization
93
+
94
+ [AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
95
+
96
+ ### HTTP request headers
97
+
98
+ - **Content-Type**: Not defined
99
+ - **Accept**: application/json
100
+
101
+
102
+ ## get_country_list
103
+
104
+ > <Array<Country>> get_country_list
105
+
106
+ Gets a list of countries where services offered.
107
+
108
+ This **GET** endpoint is used to retrieve a list of all currently available countries of service. <br> You can use this endpoint to obtain a list of countries where MassPay services are offered. <br> There are no required parameters for this endpoint. <br> The response will include a JSON array containing details for each country, including the country code, name, and `three_letter_code`.
109
+
110
+ ### Examples
111
+
112
+ ```ruby
113
+ require 'time'
114
+ require 'masspay_ruby_sdk'
115
+ # setup authorization
116
+ MassPayRubySdk.configure do |config|
117
+ # Configure API key authorization: AUTHORIZER_NAME
118
+ config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
119
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
120
+ # config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
121
+ end
122
+
123
+ api_instance = MassPayRubySdk::CatalogApi.new
124
+
125
+ begin
126
+ # Gets a list of countries where services offered.
127
+ result = api_instance.get_country_list
128
+ p result
129
+ rescue MassPayRubySdk::ApiError => e
130
+ puts "Error when calling CatalogApi->get_country_list: #{e}"
131
+ end
132
+ ```
133
+
134
+ #### Using the get_country_list_with_http_info variant
135
+
136
+ This returns an Array which contains the response data, status code and headers.
137
+
138
+ > <Array(<Array<Country>>, Integer, Hash)> get_country_list_with_http_info
139
+
140
+ ```ruby
141
+ begin
142
+ # Gets a list of countries where services offered.
143
+ data, status_code, headers = api_instance.get_country_list_with_http_info
144
+ p status_code # => 2xx
145
+ p headers # => { ... }
146
+ p data # => <Array<Country>>
147
+ rescue MassPayRubySdk::ApiError => e
148
+ puts "Error when calling CatalogApi->get_country_list_with_http_info: #{e}"
149
+ end
150
+ ```
151
+
152
+ ### Parameters
153
+
154
+ This endpoint does not need any parameter.
155
+
156
+ ### Return type
157
+
158
+ [**Array&lt;Country&gt;**](Country.md)
159
+
160
+ ### Authorization
161
+
162
+ [AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: Not defined
167
+ - **Accept**: application/json
168
+
169
+
170
+ ## get_country_services
171
+
172
+ > <CompaniesResp> get_country_services(country_code, opts)
173
+
174
+ Gets a list of Companies and their service offerings for the given country code.
175
+
176
+ This **GET** endpoint is used to retrieve a list of companies and their service offerings for a specific country. <br> You can use this endpoint to obtain information about available services and pricing for each respected company in the provided country. <br> To use this endpoint, you need to provide the `country_code` in the URL Path. <br> The response will include a JSON array containing details for each company, including the company name, service offerings, and pricing.
177
+
178
+ ### Examples
179
+
180
+ ```ruby
181
+ require 'time'
182
+ require 'masspay_ruby_sdk'
183
+ # setup authorization
184
+ MassPayRubySdk.configure do |config|
185
+ # Configure API key authorization: AUTHORIZER_NAME
186
+ config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
187
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
188
+ # config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
189
+ end
190
+
191
+ api_instance = MassPayRubySdk::CatalogApi.new
192
+ country_code = 'country_code_example' # String | Country code searching services for. 3 letters [ISO_3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) code\"
193
+ opts = {
194
+ amount: 'amount_example', # String | Returns the results fee based on the given amount, defaults to $200
195
+ limit: 3.4, # Float | Limit amount for transaction amount + fee. If fee + amount are higher than the limit, the output will automatically adjust to maximize the possible amount sent
196
+ idempotency_key: 'idempotency_key_example', # String | Unique key to prevent duplicate processing
197
+ wallet_token: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Token representing the wallet used. If provided, the results would be custom-tailored to this user. Not necessary if user_token is provided
198
+ include_payer_logos: true, # Boolean | Whether to include the payers logo in base64 format.
199
+ user_token: 'user_token_example', # String | Token representing the user for which we fetch the catalog. If provided, the results would be custom-tailored to this user. Not necessary if wallet_token is provided
200
+ source_currency: 'source_currency_example' # String | Required if amount is provided. The currency associated with the amount
201
+ }
202
+
203
+ begin
204
+ # Gets a list of Companies and their service offerings for the given country code.
205
+ result = api_instance.get_country_services(country_code, opts)
206
+ p result
207
+ rescue MassPayRubySdk::ApiError => e
208
+ puts "Error when calling CatalogApi->get_country_services: #{e}"
209
+ end
210
+ ```
211
+
212
+ #### Using the get_country_services_with_http_info variant
213
+
214
+ This returns an Array which contains the response data, status code and headers.
215
+
216
+ > <Array(<CompaniesResp>, Integer, Hash)> get_country_services_with_http_info(country_code, opts)
217
+
218
+ ```ruby
219
+ begin
220
+ # Gets a list of Companies and their service offerings for the given country code.
221
+ data, status_code, headers = api_instance.get_country_services_with_http_info(country_code, opts)
222
+ p status_code # => 2xx
223
+ p headers # => { ... }
224
+ p data # => <CompaniesResp>
225
+ rescue MassPayRubySdk::ApiError => e
226
+ puts "Error when calling CatalogApi->get_country_services_with_http_info: #{e}"
227
+ end
228
+ ```
229
+
230
+ ### Parameters
231
+
232
+ | Name | Type | Description | Notes |
233
+ | ---- | ---- | ----------- | ----- |
234
+ | **country_code** | **String** | Country code searching services for. 3 letters [ISO_3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) code\&quot; | |
235
+ | **amount** | **String** | Returns the results fee based on the given amount, defaults to $200 | [optional][default to &#39;200&#39;] |
236
+ | **limit** | **Float** | Limit amount for transaction amount + fee. If fee + amount are higher than the limit, the output will automatically adjust to maximize the possible amount sent | [optional] |
237
+ | **idempotency_key** | **String** | Unique key to prevent duplicate processing | [optional] |
238
+ | **wallet_token** | **String** | Token representing the wallet used. If provided, the results would be custom-tailored to this user. Not necessary if user_token is provided | [optional] |
239
+ | **include_payer_logos** | **Boolean** | Whether to include the payers logo in base64 format. | [optional][default to false] |
240
+ | **user_token** | **String** | Token representing the user for which we fetch the catalog. If provided, the results would be custom-tailored to this user. Not necessary if wallet_token is provided | [optional] |
241
+ | **source_currency** | **String** | Required if amount is provided. The currency associated with the amount | [optional] |
242
+
243
+ ### Return type
244
+
245
+ [**CompaniesResp**](CompaniesResp.md)
246
+
247
+ ### Authorization
248
+
249
+ [AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
250
+
251
+ ### HTTP request headers
252
+
253
+ - **Content-Type**: Not defined
254
+ - **Accept**: application/json
255
+
256
+
257
+ ## get_destination_token_alternatives
258
+
259
+ > <Service> get_destination_token_alternatives(destination_token, opts)
260
+
261
+ Returns list of alternative service to a provided service
262
+
263
+ This **GET** endpoint is used to retrieve a list of alternative services to a provided service. <br> You can use this endpoint to obtain information about other available services and pricing offered by different companies for a particular destination. <br> To use this endpoint, you need to provide the `destination_token` as a required parameter in the URL Path. <br> The response will include a JSON array containing details for each company, including the company name, available alternative services, and pricing.
264
+
265
+ ### Examples
266
+
267
+ ```ruby
268
+ require 'time'
269
+ require 'masspay_ruby_sdk'
270
+ # setup authorization
271
+ MassPayRubySdk.configure do |config|
272
+ # Configure API key authorization: AUTHORIZER_NAME
273
+ config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
274
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
275
+ # config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
276
+ end
277
+
278
+ api_instance = MassPayRubySdk::CatalogApi.new
279
+ destination_token = 'destination_token_example' # String | Destination token
280
+ opts = {
281
+ idempotency_key: 'idempotency_key_example' # String | Unique key to prevent duplicate processing
282
+ }
283
+
284
+ begin
285
+ # Returns list of alternative service to a provided service
286
+ result = api_instance.get_destination_token_alternatives(destination_token, opts)
287
+ p result
288
+ rescue MassPayRubySdk::ApiError => e
289
+ puts "Error when calling CatalogApi->get_destination_token_alternatives: #{e}"
290
+ end
291
+ ```
292
+
293
+ #### Using the get_destination_token_alternatives_with_http_info variant
294
+
295
+ This returns an Array which contains the response data, status code and headers.
296
+
297
+ > <Array(<Service>, Integer, Hash)> get_destination_token_alternatives_with_http_info(destination_token, opts)
298
+
299
+ ```ruby
300
+ begin
301
+ # Returns list of alternative service to a provided service
302
+ data, status_code, headers = api_instance.get_destination_token_alternatives_with_http_info(destination_token, opts)
303
+ p status_code # => 2xx
304
+ p headers # => { ... }
305
+ p data # => <Service>
306
+ rescue MassPayRubySdk::ApiError => e
307
+ puts "Error when calling CatalogApi->get_destination_token_alternatives_with_http_info: #{e}"
308
+ end
309
+ ```
310
+
311
+ ### Parameters
312
+
313
+ | Name | Type | Description | Notes |
314
+ | ---- | ---- | ----------- | ----- |
315
+ | **destination_token** | **String** | Destination token | |
316
+ | **idempotency_key** | **String** | Unique key to prevent duplicate processing | [optional] |
317
+
318
+ ### Return type
319
+
320
+ [**Service**](Service.md)
321
+
322
+ ### Authorization
323
+
324
+ [AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
325
+
326
+ ### HTTP request headers
327
+
328
+ - **Content-Type**: Not defined
329
+ - **Accept**: application/json
330
+
331
+
332
+ ## get_user_agreement
333
+
334
+ > <GetUserAgreement200Response> get_user_agreement(id)
335
+
336
+ Get User Agreement
337
+
338
+ This **GET** endpoint is used to retrieve the user agreement for payout services. <br> You can use this endpoint to obtain information about the available user agreements for payout services offered by MassPay. <br> To use this endpoint, you need to provide the `ID` representing the user agreement as a required parameter in the URL Path. <br> The response will include the user agreement details.
339
+
340
+ ### Examples
341
+
342
+ ```ruby
343
+ require 'time'
344
+ require 'masspay_ruby_sdk'
345
+ # setup authorization
346
+ MassPayRubySdk.configure do |config|
347
+ # Configure API key authorization: AUTHORIZER_NAME
348
+ config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
349
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
350
+ # config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
351
+ end
352
+
353
+ api_instance = MassPayRubySdk::CatalogApi.new
354
+ id = 2 # Integer | Id representing user agreement (retrieved from OPTIONS call)
355
+
356
+ begin
357
+ # Get User Agreement
358
+ result = api_instance.get_user_agreement(id)
359
+ p result
360
+ rescue MassPayRubySdk::ApiError => e
361
+ puts "Error when calling CatalogApi->get_user_agreement: #{e}"
362
+ end
363
+ ```
364
+
365
+ #### Using the get_user_agreement_with_http_info variant
366
+
367
+ This returns an Array which contains the response data, status code and headers.
368
+
369
+ > <Array(<GetUserAgreement200Response>, Integer, Hash)> get_user_agreement_with_http_info(id)
370
+
371
+ ```ruby
372
+ begin
373
+ # Get User Agreement
374
+ data, status_code, headers = api_instance.get_user_agreement_with_http_info(id)
375
+ p status_code # => 2xx
376
+ p headers # => { ... }
377
+ p data # => <GetUserAgreement200Response>
378
+ rescue MassPayRubySdk::ApiError => e
379
+ puts "Error when calling CatalogApi->get_user_agreement_with_http_info: #{e}"
380
+ end
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+ | Name | Type | Description | Notes |
386
+ | ---- | ---- | ----------- | ----- |
387
+ | **id** | **Integer** | Id representing user agreement (retrieved from OPTIONS call) | |
388
+
389
+ ### Return type
390
+
391
+ [**GetUserAgreement200Response**](GetUserAgreement200Response.md)
392
+
393
+ ### Authorization
394
+
395
+ [AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
396
+
397
+ ### HTTP request headers
398
+
399
+ - **Content-Type**: Not defined
400
+ - **Accept**: application/json
401
+
402
+
403
+ ## get_user_agreements_names
404
+
405
+ > <Array<GetUserAgreementsNames200ResponseInner>> get_user_agreements_names
406
+
407
+ Get Available User Agreements
408
+
409
+ This OPTIONS endpoint is used to retrieve a list of available user agreements for payout services offered by MassPay without the content. <br> You can use this endpoint to obtain the names of available user agreements. <br> There are no required parameters needed to use this endpoint. <br> The response will include a list of user agreement names
410
+
411
+ ### Examples
412
+
413
+ ```ruby
414
+ require 'time'
415
+ require 'masspay_ruby_sdk'
416
+ # setup authorization
417
+ MassPayRubySdk.configure do |config|
418
+ # Configure API key authorization: AUTHORIZER_NAME
419
+ config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
420
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
421
+ # config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
422
+ end
423
+
424
+ api_instance = MassPayRubySdk::CatalogApi.new
425
+
426
+ begin
427
+ # Get Available User Agreements
428
+ result = api_instance.get_user_agreements_names
429
+ p result
430
+ rescue MassPayRubySdk::ApiError => e
431
+ puts "Error when calling CatalogApi->get_user_agreements_names: #{e}"
432
+ end
433
+ ```
434
+
435
+ #### Using the get_user_agreements_names_with_http_info variant
436
+
437
+ This returns an Array which contains the response data, status code and headers.
438
+
439
+ > <Array(<Array<GetUserAgreementsNames200ResponseInner>>, Integer, Hash)> get_user_agreements_names_with_http_info
440
+
441
+ ```ruby
442
+ begin
443
+ # Get Available User Agreements
444
+ data, status_code, headers = api_instance.get_user_agreements_names_with_http_info
445
+ p status_code # => 2xx
446
+ p headers # => { ... }
447
+ p data # => <Array<GetUserAgreementsNames200ResponseInner>>
448
+ rescue MassPayRubySdk::ApiError => e
449
+ puts "Error when calling CatalogApi->get_user_agreements_names_with_http_info: #{e}"
450
+ end
451
+ ```
452
+
453
+ ### Parameters
454
+
455
+ This endpoint does not need any parameter.
456
+
457
+ ### Return type
458
+
459
+ [**Array&lt;GetUserAgreementsNames200ResponseInner&gt;**](GetUserAgreementsNames200ResponseInner.md)
460
+
461
+ ### Authorization
462
+
463
+ [AUTHORIZER_NAME](../README.md#AUTHORIZER_NAME)
464
+
465
+ ### HTTP request headers
466
+
467
+ - **Content-Type**: Not defined
468
+ - **Accept**: application/json
469
+
@@ -0,0 +1,18 @@
1
+ # MassPayRubySdk::CompaniesResp
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **companies** | [**Array&lt;Company&gt;**](Company.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'masspay_ruby_sdk'
13
+
14
+ instance = MassPayRubySdk::CompaniesResp.new(
15
+ companies: null
16
+ )
17
+ ```
18
+
data/docs/Company.md ADDED
@@ -0,0 +1,26 @@
1
+ # MassPayRubySdk::Company
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **company_logo** | **String** | base64 representation of the company logo | |
8
+ | **services** | [**Array&lt;Service&gt;**](Service.md) | | |
9
+ | **rating** | **Float** | Overall rating of provider calculated from feedback provided by users from previous trasnactions | |
10
+ | **description** | **String** | A short description of the company | |
11
+ | **company_name** | **String** | The company name | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'masspay_ruby_sdk'
17
+
18
+ instance = MassPayRubySdk::Company.new(
19
+ company_logo: [B@70cbb829,
20
+ services: null,
21
+ rating: 4.5,
22
+ description: Pontual is a top leading provider with over 10 years of industry experience,
23
+ company_name: Pontual
24
+ )
25
+ ```
26
+
data/docs/Country.md ADDED
@@ -0,0 +1,22 @@
1
+ # MassPayRubySdk::Country
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | **String** | Country code [ISO_3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | |
8
+ | **name** | **String** | Name of country | |
9
+ | **three_letter_code** | **String** | The user&#39;s country code. ISO_3166-1_alpha-3 code | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'masspay_ruby_sdk'
15
+
16
+ instance = MassPayRubySdk::Country.new(
17
+ code: MX,
18
+ name: Mexico,
19
+ three_letter_code: MEX
20
+ )
21
+ ```
22
+
data/docs/Exception.md ADDED
@@ -0,0 +1,20 @@
1
+ # MassPayRubySdk::Exception
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **exception** | **String** | Type of exception | |
8
+ | **errors** | **Array&lt;String&gt;** | List of errors | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'masspay_ruby_sdk'
14
+
15
+ instance = MassPayRubySdk::Exception.new(
16
+ exception: null,
17
+ errors: null
18
+ )
19
+ ```
20
+
data/docs/FoundUser.md ADDED
@@ -0,0 +1,24 @@
1
+ # MassPayRubySdk::FoundUser
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **user_token** | **String** | The token of the found user | |
8
+ | **first_name** | **String** | First name of the user | |
9
+ | **last_name** | **String** | Last name of the user | |
10
+ | **internal_user_id** | **String** | A client-defined identifier for the user. This is the unique ID assigned to the user on your system. Max 75 characters. Allows letters, numbers, and + , - . / _ ~ | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'masspay_ruby_sdk'
16
+
17
+ instance = MassPayRubySdk::FoundUser.new(
18
+ user_token: usr_f4741aa2-9f39-4358-8247-2409e3fc2715,
19
+ first_name: null,
20
+ last_name: null,
21
+ internal_user_id: 4324-rOzk
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # MassPayRubySdk::GetAccountStatement200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **content** | **String** | Base64 encoded byte representing the content of the file | [readonly] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'masspay_ruby_sdk'
13
+
14
+ instance = MassPayRubySdk::GetAccountStatement200Response.new(
15
+ content: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # MassPayRubySdk::GetTransactionConfirmationDetails200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **content** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'masspay_ruby_sdk'
13
+
14
+ instance = MassPayRubySdk::GetTransactionConfirmationDetails200Response.new(
15
+ content: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,26 @@
1
+ # MassPayRubySdk::GetUserAgreement200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Name of user agreement | |
8
+ | **content** | **String** | Base64 encoded byte representing the content of the file | [readonly] |
9
+ | **last_modified** | **Time** | Time when the agreement was last updated | |
10
+ | **id** | **Integer** | Id representing the user agreement | |
11
+ | **mime_type** | **String** | Mime type of the user agreement (i.e application/pdf) | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'masspay_ruby_sdk'
17
+
18
+ instance = MassPayRubySdk::GetUserAgreement200Response.new(
19
+ name: MassPay Card Program - USD,
20
+ content: null,
21
+ last_modified: 2020-07-21T17:32:28Z,
22
+ id: 2,
23
+ mime_type: application/pdf
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # MassPayRubySdk::GetUserAgreementsNames200ResponseInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Name of user agreement | |
8
+ | **last_modified** | **Time** | Time when the agreement was last updated | |
9
+ | **id** | **Integer** | Id representing the user agreement (to be used to retrieve it) | |
10
+ | **mime_type** | **String** | Mime type of the user agreement (i.e application/pdf) | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'masspay_ruby_sdk'
16
+
17
+ instance = MassPayRubySdk::GetUserAgreementsNames200ResponseInner.new(
18
+ name: MassPay Card Program - USD,
19
+ last_modified: 2020-07-21T17:32:28Z,
20
+ id: 2,
21
+ mime_type: application/pdf
22
+ )
23
+ ```
24
+