mt-sdk 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +56 -56
- data/lib/modern_treasury/client.rb +73 -73
- data/lib/modern_treasury/{apis/account_collection_flow_api.rb → controllers/account_collection_flow_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/account_detail_api.rb → controllers/account_detail_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/balance_report_api.rb → controllers/balance_report_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/base_api.rb → controllers/base_controller.rb} +3 -3
- data/lib/modern_treasury/{apis/connection_api.rb → controllers/connection_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/counterparty_api.rb → controllers/counterparty_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/document_api.rb → controllers/document_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/event_api.rb → controllers/event_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/expected_payment_api.rb → controllers/expected_payment_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/external_account_api.rb → controllers/external_account_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/incoming_payment_detail_api.rb → controllers/incoming_payment_detail_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/internal_account_api.rb → controllers/internal_account_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/invoice_api.rb → controllers/invoice_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/invoice_line_item_api.rb → controllers/invoice_line_item_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledger_account_category_api.rb → controllers/ledger_account_category_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledger_account_api.rb → controllers/ledger_account_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledger_account_payout_api.rb → controllers/ledger_account_payout_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledger_account_statement_api.rb → controllers/ledger_account_statement_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledger_api.rb → controllers/ledger_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledger_entry_api.rb → controllers/ledger_entry_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledger_event_handler_api.rb → controllers/ledger_event_handler_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledger_transaction_api.rb → controllers/ledger_transaction_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ledgerable_event_api.rb → controllers/ledgerable_event_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/line_item_api.rb → controllers/line_item_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/paper_item_api.rb → controllers/paper_item_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/payment_flow_api.rb → controllers/payment_flow_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/payment_order_api.rb → controllers/payment_order_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/payment_reference_api.rb → controllers/payment_reference_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/ping_api.rb → controllers/ping_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/return_api.rb → controllers/return_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/reversal_api.rb → controllers/reversal_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/routing_detail_api.rb → controllers/routing_detail_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/transaction_api.rb → controllers/transaction_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/transaction_line_item_api.rb → controllers/transaction_line_item_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/validation_api.rb → controllers/validation_controller.rb} +2 -2
- data/lib/modern_treasury/{apis/virtual_account_api.rb → controllers/virtual_account_controller.rb} +2 -2
- data/lib/modern_treasury.rb +40 -36
- metadata +37 -37
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '059c2e2d83cb80a450b60ccbd8d7664db19c5a4e97197358b1cab68d07238feb'
|
|
4
|
+
data.tar.gz: d1acf6111a92c7c292724051de5d4ec1bacf1271e2c9e567c0268763192d096f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8c948deb07df07d91192d00d7638d689e527501f093d9d8527a5f158db0eee072f294b342197b0c2775fd3c544688c76306226eab6c5f95766bbd1cd1e10934
|
|
7
|
+
data.tar.gz: 27be300d1359585c5adcda1511dd865253793b86d5575840dd05ffd262577151c7cc292deb49d73c6f96848c1b50354071befe6792dae226c20df24e01cf2380
|
data/README.md
CHANGED
|
@@ -10,16 +10,16 @@ The Modern Treasury REST API. Please see https://docs.moderntreasury.com for mor
|
|
|
10
10
|
Install the gem from the command line:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
gem install mt-sdk -v 0.0.
|
|
13
|
+
gem install mt-sdk -v 0.0.4
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Or add the gem to your Gemfile and run `bundle`:
|
|
17
17
|
|
|
18
18
|
```ruby
|
|
19
|
-
gem 'mt-sdk', '0.0.
|
|
19
|
+
gem 'mt-sdk', '0.0.4'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
For additional gem details, see the [RubyGems page for the mt-sdk gem](https://rubygems.org/gems/mt-sdk/versions/0.0.
|
|
22
|
+
For additional gem details, see the [RubyGems page for the mt-sdk gem](https://rubygems.org/gems/mt-sdk/versions/0.0.4).
|
|
23
23
|
|
|
24
24
|
## IRB Console Usage
|
|
25
25
|
|
|
@@ -58,13 +58,13 @@ ruby bin/console
|
|
|
58
58
|
|
|
59
59
|
## Initialize the API Client
|
|
60
60
|
|
|
61
|
-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
61
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/client.md)
|
|
62
62
|
|
|
63
63
|
The following parameters are configurable for the API Client:
|
|
64
64
|
|
|
65
65
|
| Parameter | Type | Description |
|
|
66
66
|
| --- | --- | --- |
|
|
67
|
-
| environment | [`Environment`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
67
|
+
| environment | [`Environment`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
|
|
68
68
|
| connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
|
|
69
69
|
| adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
|
|
70
70
|
| timeout | `Float` | The value to use for connection timeout. <br> **Default: 30** |
|
|
@@ -74,9 +74,9 @@ The following parameters are configurable for the API Client:
|
|
|
74
74
|
| retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
|
|
75
75
|
| retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
|
|
76
76
|
| http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
|
|
77
|
-
| proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
78
|
-
| logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
79
|
-
| basic_auth_credentials | [`BasicAuthCredentials`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
77
|
+
| proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
|
|
78
|
+
| logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/logging-configuration.md) | The SDK logging configuration for API calls |
|
|
79
|
+
| basic_auth_credentials | [`BasicAuthCredentials`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/auth/basic-authentication.md) | The credential object for Basic Authentication |
|
|
80
80
|
|
|
81
81
|
The API client can be initialized as follows:
|
|
82
82
|
|
|
@@ -114,7 +114,7 @@ include ModernTreasury
|
|
|
114
114
|
client = Client.from_env
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
See the [`Environment-Based Client Initialization`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
117
|
+
See the [`Environment-Based Client Initialization`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/environment-based-client-initialization.md) section for details.
|
|
118
118
|
|
|
119
119
|
## Environments
|
|
120
120
|
|
|
@@ -131,65 +131,65 @@ The SDK can be configured to use a different environment for making API calls. A
|
|
|
131
131
|
|
|
132
132
|
This API uses the following authentication schemes.
|
|
133
133
|
|
|
134
|
-
* [`basic_auth (Basic Authentication)`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
134
|
+
* [`basic_auth (Basic Authentication)`](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/auth/basic-authentication.md)
|
|
135
135
|
|
|
136
136
|
## List of APIs
|
|
137
137
|
|
|
138
|
-
* [Account Detail](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
139
|
-
* [Balance Report](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
140
|
-
* [Connection](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
141
|
-
* [Counterparty](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
142
|
-
* [Document](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
143
|
-
* [Event](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
144
|
-
* [Expected Payment](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
145
|
-
* [External Account](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
146
|
-
* [Incoming Payment Detail](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
147
|
-
* [Internal Account](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
148
|
-
* [Invoice Line Item](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
149
|
-
* [Invoice](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
150
|
-
* [Ledger Account Category](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
151
|
-
* [Ledger Account Payout](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
152
|
-
* [Ledger Account Statement](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
153
|
-
* [Ledger Account](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
154
|
-
* [Ledger Entry](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
155
|
-
* [Ledger Event Handler](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
156
|
-
* [Ledger Transaction](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
157
|
-
* [Ledgerable Event](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
158
|
-
* [Ledger](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
159
|
-
* [Line Item](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
160
|
-
* [Paper Item](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
161
|
-
* [Payment Order](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
162
|
-
* [Payment Reference](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
163
|
-
* [Ping](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
164
|
-
* [Return](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
165
|
-
* [Reversal](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
166
|
-
* [Routing Detail](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
167
|
-
* [Transaction Line Item](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
168
|
-
* [Transaction](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
169
|
-
* [Validation](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
170
|
-
* [Virtual Account](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
171
|
-
* [Account Collection Flow](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
172
|
-
* [Payment Flow](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
138
|
+
* [Account Detail](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/account-detail.md)
|
|
139
|
+
* [Balance Report](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/balance-report.md)
|
|
140
|
+
* [Connection](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/connection.md)
|
|
141
|
+
* [Counterparty](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/counterparty.md)
|
|
142
|
+
* [Document](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/document.md)
|
|
143
|
+
* [Event](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/event.md)
|
|
144
|
+
* [Expected Payment](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/expected-payment.md)
|
|
145
|
+
* [External Account](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/external-account.md)
|
|
146
|
+
* [Incoming Payment Detail](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/incoming-payment-detail.md)
|
|
147
|
+
* [Internal Account](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/internal-account.md)
|
|
148
|
+
* [Invoice Line Item](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/invoice-line-item.md)
|
|
149
|
+
* [Invoice](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/invoice.md)
|
|
150
|
+
* [Ledger Account Category](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledger-account-category.md)
|
|
151
|
+
* [Ledger Account Payout](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledger-account-payout.md)
|
|
152
|
+
* [Ledger Account Statement](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledger-account-statement.md)
|
|
153
|
+
* [Ledger Account](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledger-account.md)
|
|
154
|
+
* [Ledger Entry](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledger-entry.md)
|
|
155
|
+
* [Ledger Event Handler](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledger-event-handler.md)
|
|
156
|
+
* [Ledger Transaction](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledger-transaction.md)
|
|
157
|
+
* [Ledgerable Event](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledgerable-event.md)
|
|
158
|
+
* [Ledger](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ledger.md)
|
|
159
|
+
* [Line Item](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/line-item.md)
|
|
160
|
+
* [Paper Item](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/paper-item.md)
|
|
161
|
+
* [Payment Order](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/payment-order.md)
|
|
162
|
+
* [Payment Reference](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/payment-reference.md)
|
|
163
|
+
* [Ping](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/ping.md)
|
|
164
|
+
* [Return](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/return.md)
|
|
165
|
+
* [Reversal](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/reversal.md)
|
|
166
|
+
* [Routing Detail](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/routing-detail.md)
|
|
167
|
+
* [Transaction Line Item](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/transaction-line-item.md)
|
|
168
|
+
* [Transaction](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/transaction.md)
|
|
169
|
+
* [Validation](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/validation.md)
|
|
170
|
+
* [Virtual Account](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/virtual-account.md)
|
|
171
|
+
* [Account Collection Flow](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/account-collection-flow.md)
|
|
172
|
+
* [Payment Flow](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/controllers/payment-flow.md)
|
|
173
173
|
|
|
174
174
|
## SDK Infrastructure
|
|
175
175
|
|
|
176
176
|
### Configuration
|
|
177
177
|
|
|
178
|
-
* [ProxySettings](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
179
|
-
* [Environment-Based Client Initialization](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
180
|
-
* [AbstractLogger](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
181
|
-
* [LoggingConfiguration](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
182
|
-
* [RequestLoggingConfiguration](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
183
|
-
* [ResponseLoggingConfiguration](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
178
|
+
* [ProxySettings](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/proxy-settings.md)
|
|
179
|
+
* [Environment-Based Client Initialization](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/environment-based-client-initialization.md)
|
|
180
|
+
* [AbstractLogger](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/abstract-logger.md)
|
|
181
|
+
* [LoggingConfiguration](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/logging-configuration.md)
|
|
182
|
+
* [RequestLoggingConfiguration](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/request-logging-configuration.md)
|
|
183
|
+
* [ResponseLoggingConfiguration](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/response-logging-configuration.md)
|
|
184
184
|
|
|
185
185
|
### HTTP
|
|
186
186
|
|
|
187
|
-
* [HttpResponse](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
188
|
-
* [HttpRequest](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
187
|
+
* [HttpResponse](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/http-response.md)
|
|
188
|
+
* [HttpRequest](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/http-request.md)
|
|
189
189
|
|
|
190
190
|
### Utilities
|
|
191
191
|
|
|
192
|
-
* [ApiResponse](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
193
|
-
* [ApiHelper](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
194
|
-
* [DateTimeHelper](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.
|
|
192
|
+
* [ApiResponse](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/api-response.md)
|
|
193
|
+
* [ApiHelper](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/api-helper.md)
|
|
194
|
+
* [DateTimeHelper](https://www.github.com/sdks-io/mt-ruby-sdk/tree/0.0.4/doc/date-time-helper.md)
|
|
195
195
|
|
|
@@ -14,213 +14,213 @@ module ModernTreasury
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
# Access to account_detail controller.
|
|
17
|
-
# @return [
|
|
17
|
+
# @return [AccountDetailController] Returns the controller instance.
|
|
18
18
|
def account_detail
|
|
19
|
-
@account_detail ||=
|
|
19
|
+
@account_detail ||= AccountDetailController.new @global_configuration
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
# Access to balance_report controller.
|
|
23
|
-
# @return [
|
|
23
|
+
# @return [BalanceReportController] Returns the controller instance.
|
|
24
24
|
def balance_report
|
|
25
|
-
@balance_report ||=
|
|
25
|
+
@balance_report ||= BalanceReportController.new @global_configuration
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
# Access to connection controller.
|
|
29
|
-
# @return [
|
|
29
|
+
# @return [ConnectionController] Returns the controller instance.
|
|
30
30
|
def connection
|
|
31
|
-
@connection ||=
|
|
31
|
+
@connection ||= ConnectionController.new @global_configuration
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
# Access to counterparty controller.
|
|
35
|
-
# @return [
|
|
35
|
+
# @return [CounterpartyController] Returns the controller instance.
|
|
36
36
|
def counterparty
|
|
37
|
-
@counterparty ||=
|
|
37
|
+
@counterparty ||= CounterpartyController.new @global_configuration
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
# Access to document controller.
|
|
41
|
-
# @return [
|
|
41
|
+
# @return [DocumentController] Returns the controller instance.
|
|
42
42
|
def document
|
|
43
|
-
@document ||=
|
|
43
|
+
@document ||= DocumentController.new @global_configuration
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
# Access to event controller.
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [EventController] Returns the controller instance.
|
|
48
48
|
def event
|
|
49
|
-
@event ||=
|
|
49
|
+
@event ||= EventController.new @global_configuration
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# Access to expected_payment controller.
|
|
53
|
-
# @return [
|
|
53
|
+
# @return [ExpectedPaymentController] Returns the controller instance.
|
|
54
54
|
def expected_payment
|
|
55
|
-
@expected_payment ||=
|
|
55
|
+
@expected_payment ||= ExpectedPaymentController.new @global_configuration
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# Access to external_account controller.
|
|
59
|
-
# @return [
|
|
59
|
+
# @return [ExternalAccountController] Returns the controller instance.
|
|
60
60
|
def external_account
|
|
61
|
-
@external_account ||=
|
|
61
|
+
@external_account ||= ExternalAccountController.new @global_configuration
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
# Access to incoming_payment_detail controller.
|
|
65
|
-
# @return [
|
|
65
|
+
# @return [IncomingPaymentDetailController] Returns the controller instance.
|
|
66
66
|
def incoming_payment_detail
|
|
67
|
-
@incoming_payment_detail ||=
|
|
67
|
+
@incoming_payment_detail ||= IncomingPaymentDetailController.new @global_configuration
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
# Access to internal_account controller.
|
|
71
|
-
# @return [
|
|
71
|
+
# @return [InternalAccountController] Returns the controller instance.
|
|
72
72
|
def internal_account
|
|
73
|
-
@internal_account ||=
|
|
73
|
+
@internal_account ||= InternalAccountController.new @global_configuration
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
# Access to invoice_line_item controller.
|
|
77
|
-
# @return [
|
|
77
|
+
# @return [InvoiceLineItemController] Returns the controller instance.
|
|
78
78
|
def invoice_line_item
|
|
79
|
-
@invoice_line_item ||=
|
|
79
|
+
@invoice_line_item ||= InvoiceLineItemController.new @global_configuration
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
# Access to invoice controller.
|
|
83
|
-
# @return [
|
|
83
|
+
# @return [InvoiceController] Returns the controller instance.
|
|
84
84
|
def invoice
|
|
85
|
-
@invoice ||=
|
|
85
|
+
@invoice ||= InvoiceController.new @global_configuration
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
# Access to ledger_account_category controller.
|
|
89
|
-
# @return [
|
|
89
|
+
# @return [LedgerAccountCategoryController] Returns the controller instance.
|
|
90
90
|
def ledger_account_category
|
|
91
|
-
@ledger_account_category ||=
|
|
91
|
+
@ledger_account_category ||= LedgerAccountCategoryController.new @global_configuration
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
# Access to ledger_account_payout controller.
|
|
95
|
-
# @return [
|
|
95
|
+
# @return [LedgerAccountPayoutController] Returns the controller instance.
|
|
96
96
|
def ledger_account_payout
|
|
97
|
-
@ledger_account_payout ||=
|
|
97
|
+
@ledger_account_payout ||= LedgerAccountPayoutController.new @global_configuration
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
# Access to ledger_account_statement controller.
|
|
101
|
-
# @return [
|
|
101
|
+
# @return [LedgerAccountStatementController] Returns the controller instance.
|
|
102
102
|
def ledger_account_statement
|
|
103
|
-
@ledger_account_statement ||=
|
|
103
|
+
@ledger_account_statement ||= LedgerAccountStatementController.new @global_configuration
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
# Access to ledger_account controller.
|
|
107
|
-
# @return [
|
|
107
|
+
# @return [LedgerAccountController] Returns the controller instance.
|
|
108
108
|
def ledger_account
|
|
109
|
-
@ledger_account ||=
|
|
109
|
+
@ledger_account ||= LedgerAccountController.new @global_configuration
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
# Access to ledger_entry controller.
|
|
113
|
-
# @return [
|
|
113
|
+
# @return [LedgerEntryController] Returns the controller instance.
|
|
114
114
|
def ledger_entry
|
|
115
|
-
@ledger_entry ||=
|
|
115
|
+
@ledger_entry ||= LedgerEntryController.new @global_configuration
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
# Access to ledger_event_handler controller.
|
|
119
|
-
# @return [
|
|
119
|
+
# @return [LedgerEventHandlerController] Returns the controller instance.
|
|
120
120
|
def ledger_event_handler
|
|
121
|
-
@ledger_event_handler ||=
|
|
121
|
+
@ledger_event_handler ||= LedgerEventHandlerController.new @global_configuration
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# Access to ledger_transaction controller.
|
|
125
|
-
# @return [
|
|
125
|
+
# @return [LedgerTransactionController] Returns the controller instance.
|
|
126
126
|
def ledger_transaction
|
|
127
|
-
@ledger_transaction ||=
|
|
127
|
+
@ledger_transaction ||= LedgerTransactionController.new @global_configuration
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
# Access to ledgerable_event controller.
|
|
131
|
-
# @return [
|
|
131
|
+
# @return [LedgerableEventController] Returns the controller instance.
|
|
132
132
|
def ledgerable_event
|
|
133
|
-
@ledgerable_event ||=
|
|
133
|
+
@ledgerable_event ||= LedgerableEventController.new @global_configuration
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
# Access to ledger controller.
|
|
137
|
-
# @return [
|
|
137
|
+
# @return [LedgerController] Returns the controller instance.
|
|
138
138
|
def ledger
|
|
139
|
-
@ledger ||=
|
|
139
|
+
@ledger ||= LedgerController.new @global_configuration
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
# Access to line_item controller.
|
|
143
|
-
# @return [
|
|
143
|
+
# @return [LineItemController] Returns the controller instance.
|
|
144
144
|
def line_item
|
|
145
|
-
@line_item ||=
|
|
145
|
+
@line_item ||= LineItemController.new @global_configuration
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
# Access to paper_item controller.
|
|
149
|
-
# @return [
|
|
149
|
+
# @return [PaperItemController] Returns the controller instance.
|
|
150
150
|
def paper_item
|
|
151
|
-
@paper_item ||=
|
|
151
|
+
@paper_item ||= PaperItemController.new @global_configuration
|
|
152
152
|
end
|
|
153
153
|
|
|
154
154
|
# Access to payment_order controller.
|
|
155
|
-
# @return [
|
|
155
|
+
# @return [PaymentOrderController] Returns the controller instance.
|
|
156
156
|
def payment_order
|
|
157
|
-
@payment_order ||=
|
|
157
|
+
@payment_order ||= PaymentOrderController.new @global_configuration
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# Access to payment_reference controller.
|
|
161
|
-
# @return [
|
|
161
|
+
# @return [PaymentReferenceController] Returns the controller instance.
|
|
162
162
|
def payment_reference
|
|
163
|
-
@payment_reference ||=
|
|
163
|
+
@payment_reference ||= PaymentReferenceController.new @global_configuration
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
# Access to ping controller.
|
|
167
|
-
# @return [
|
|
167
|
+
# @return [PingController] Returns the controller instance.
|
|
168
168
|
def ping
|
|
169
|
-
@ping ||=
|
|
169
|
+
@ping ||= PingController.new @global_configuration
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
# Access to mreturn controller.
|
|
173
|
-
# @return [
|
|
173
|
+
# @return [ReturnController] Returns the controller instance.
|
|
174
174
|
def mreturn
|
|
175
|
-
@mreturn ||=
|
|
175
|
+
@mreturn ||= ReturnController.new @global_configuration
|
|
176
176
|
end
|
|
177
177
|
|
|
178
178
|
# Access to reversal controller.
|
|
179
|
-
# @return [
|
|
179
|
+
# @return [ReversalController] Returns the controller instance.
|
|
180
180
|
def reversal
|
|
181
|
-
@reversal ||=
|
|
181
|
+
@reversal ||= ReversalController.new @global_configuration
|
|
182
182
|
end
|
|
183
183
|
|
|
184
184
|
# Access to routing_detail controller.
|
|
185
|
-
# @return [
|
|
185
|
+
# @return [RoutingDetailController] Returns the controller instance.
|
|
186
186
|
def routing_detail
|
|
187
|
-
@routing_detail ||=
|
|
187
|
+
@routing_detail ||= RoutingDetailController.new @global_configuration
|
|
188
188
|
end
|
|
189
189
|
|
|
190
190
|
# Access to transaction_line_item controller.
|
|
191
|
-
# @return [
|
|
191
|
+
# @return [TransactionLineItemController] Returns the controller instance.
|
|
192
192
|
def transaction_line_item
|
|
193
|
-
@transaction_line_item ||=
|
|
193
|
+
@transaction_line_item ||= TransactionLineItemController.new @global_configuration
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
# Access to transaction controller.
|
|
197
|
-
# @return [
|
|
197
|
+
# @return [TransactionController] Returns the controller instance.
|
|
198
198
|
def transaction
|
|
199
|
-
@transaction ||=
|
|
199
|
+
@transaction ||= TransactionController.new @global_configuration
|
|
200
200
|
end
|
|
201
201
|
|
|
202
202
|
# Access to validation controller.
|
|
203
|
-
# @return [
|
|
203
|
+
# @return [ValidationController] Returns the controller instance.
|
|
204
204
|
def validation
|
|
205
|
-
@validation ||=
|
|
205
|
+
@validation ||= ValidationController.new @global_configuration
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
# Access to virtual_account controller.
|
|
209
|
-
# @return [
|
|
209
|
+
# @return [VirtualAccountController] Returns the controller instance.
|
|
210
210
|
def virtual_account
|
|
211
|
-
@virtual_account ||=
|
|
211
|
+
@virtual_account ||= VirtualAccountController.new @global_configuration
|
|
212
212
|
end
|
|
213
213
|
|
|
214
214
|
# Access to account_collection_flow controller.
|
|
215
|
-
# @return [
|
|
215
|
+
# @return [AccountCollectionFlowController] Returns the controller instance.
|
|
216
216
|
def account_collection_flow
|
|
217
|
-
@account_collection_flow ||=
|
|
217
|
+
@account_collection_flow ||= AccountCollectionFlowController.new @global_configuration
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
# Access to payment_flow controller.
|
|
221
|
-
# @return [
|
|
221
|
+
# @return [PaymentFlowController] Returns the controller instance.
|
|
222
222
|
def payment_flow
|
|
223
|
-
@payment_flow ||=
|
|
223
|
+
@payment_flow ||= PaymentFlowController.new @global_configuration
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
def initialize(
|
|
@@ -246,12 +246,12 @@ module ModernTreasury
|
|
|
246
246
|
else
|
|
247
247
|
config
|
|
248
248
|
end
|
|
249
|
-
user_agent_params =
|
|
249
|
+
user_agent_params = BaseController.user_agent_parameters
|
|
250
250
|
|
|
251
251
|
@global_configuration = GlobalConfiguration.new(client_configuration: @config)
|
|
252
252
|
.base_uri_executor(@config.method(:get_base_uri))
|
|
253
|
-
.global_errors(
|
|
254
|
-
.user_agent(
|
|
253
|
+
.global_errors(BaseController::GLOBAL_ERRORS)
|
|
254
|
+
.user_agent(BaseController.user_agent,
|
|
255
255
|
agent_parameters: user_agent_params)
|
|
256
256
|
|
|
257
257
|
initialize_auth_managers(@global_configuration)
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# AccountCollectionFlowController
|
|
8
|
+
class AccountCollectionFlowController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury/{apis/account_detail_api.rb → controllers/account_detail_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# AccountDetailController
|
|
8
|
+
class AccountDetailController < BaseController
|
|
9
9
|
# Get a list of account details for a single internal or external account.
|
|
10
10
|
# @param [AccountsType] accounts_type Required parameter: Example:
|
|
11
11
|
# @param [String] account_id Required parameter: The ID of the account.
|
data/lib/modern_treasury/{apis/balance_report_api.rb → controllers/balance_report_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# BalanceReportController
|
|
8
|
+
class BalanceReportController < BaseController
|
|
9
9
|
# Get all balance reports for a given internal account.
|
|
10
10
|
# @param [String] internal_account_id Required parameter: TODO: type
|
|
11
11
|
# description here
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# BaseController.
|
|
8
|
+
class BaseController
|
|
9
9
|
include CoreLibrary
|
|
10
10
|
attr_accessor :config, :http_call_back
|
|
11
11
|
|
|
12
12
|
def self.user_agent
|
|
13
|
-
'Ruby-SDK/0.0.
|
|
13
|
+
'Ruby-SDK/0.0.4 (OS: {os-info}, Engine: {engine}/{engine-version})'
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def self.user_agent_parameters
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# ConnectionController
|
|
8
|
+
class ConnectionController < BaseController
|
|
9
9
|
# Get a list of all connections.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury/{apis/counterparty_api.rb → controllers/counterparty_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# CounterpartyController
|
|
8
|
+
class CounterpartyController < BaseController
|
|
9
9
|
# Send an email requesting account details.
|
|
10
10
|
# @param [String] id Required parameter: counterparty id
|
|
11
11
|
# @param [String] idempotency_key Optional parameter: This key should be
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# DocumentController
|
|
8
|
+
class DocumentController < BaseController
|
|
9
9
|
# Get a list of documents.
|
|
10
10
|
# @param [String] documentable_id Optional parameter: The unique identifier
|
|
11
11
|
# for the associated object.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# EventController
|
|
8
|
+
class EventController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury/{apis/expected_payment_api.rb → controllers/expected_payment_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# ExpectedPaymentController
|
|
8
|
+
class ExpectedPaymentController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury/{apis/external_account_api.rb → controllers/external_account_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# ExternalAccountController
|
|
8
|
+
class ExternalAccountController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] id Required parameter: external account id
|
|
11
11
|
# @param [String] idempotency_key Optional parameter: This key should be
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# IncomingPaymentDetailController
|
|
8
|
+
class IncomingPaymentDetailController < BaseController
|
|
9
9
|
# Get a list of Incoming Payment Details.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury/{apis/internal_account_api.rb → controllers/internal_account_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# InternalAccountController
|
|
8
|
+
class InternalAccountController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# InvoiceController
|
|
8
|
+
class InvoiceController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# InvoiceLineItemController
|
|
8
|
+
class InvoiceLineItemController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] invoice_id Required parameter: invoice_id
|
|
11
11
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerAccountCategoryController
|
|
8
|
+
class LedgerAccountCategoryController < BaseController
|
|
9
9
|
# Get a list of ledger account categories.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury/{apis/ledger_account_api.rb → controllers/ledger_account_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerAccountController
|
|
8
|
+
class LedgerAccountController < BaseController
|
|
9
9
|
# Get a list of ledger accounts.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerAccountPayoutController
|
|
8
|
+
class LedgerAccountPayoutController < BaseController
|
|
9
9
|
# Create a ledger account payout.
|
|
10
10
|
# @param [String] idempotency_key Optional parameter: This key should be
|
|
11
11
|
# something unique, preferably something like an UUID.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerAccountStatementController
|
|
8
|
+
class LedgerAccountStatementController < BaseController
|
|
9
9
|
# Create a ledger account statement.
|
|
10
10
|
# @param [String] idempotency_key Optional parameter: This key should be
|
|
11
11
|
# something unique, preferably something like an UUID.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerController
|
|
8
|
+
class LedgerController < BaseController
|
|
9
9
|
# Get a list of ledgers.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury/{apis/ledger_entry_api.rb → controllers/ledger_entry_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerEntryController
|
|
8
|
+
class LedgerEntryController < BaseController
|
|
9
9
|
# Get a list of all ledger entries.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerEventHandlerController
|
|
8
|
+
class LedgerEventHandlerController < BaseController
|
|
9
9
|
# Get a list of ledger event handlers.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerTransactionController
|
|
8
|
+
class LedgerTransactionController < BaseController
|
|
9
9
|
# Create a ledger transaction reversal.
|
|
10
10
|
# @param [String] id Required parameter: The id of ledger transaction to
|
|
11
11
|
# reverse.
|
data/lib/modern_treasury/{apis/ledgerable_event_api.rb → controllers/ledgerable_event_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LedgerableEventController
|
|
8
|
+
class LedgerableEventController < BaseController
|
|
9
9
|
# Translation missing:
|
|
10
10
|
# en.openapi.descriptions.ledger.operations.create_ledgerable_event
|
|
11
11
|
# @param [String] idempotency_key Optional parameter: This key should be
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# LineItemController
|
|
8
|
+
class LineItemController < BaseController
|
|
9
9
|
# Get a list of line items
|
|
10
10
|
# @param [String] itemizable_id Required parameter: The ID of the payment
|
|
11
11
|
# order or expected payment.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# PaperItemController
|
|
8
|
+
class PaperItemController < BaseController
|
|
9
9
|
# Get a list of all paper items.
|
|
10
10
|
# @param [String] lockbox_number Optional parameter: Specify
|
|
11
11
|
# `lockbox_number` if you wish to see paper items that are associated with a
|
data/lib/modern_treasury/{apis/payment_flow_api.rb → controllers/payment_flow_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# PaymentFlowController
|
|
8
|
+
class PaymentFlowController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury/{apis/payment_order_api.rb → controllers/payment_order_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# PaymentOrderController
|
|
8
|
+
class PaymentOrderController < BaseController
|
|
9
9
|
# Create a new payment order asynchronously
|
|
10
10
|
# @param [String] idempotency_key Optional parameter: This key should be
|
|
11
11
|
# something unique, preferably something like an UUID.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# PaymentReferenceController
|
|
8
|
+
class PaymentReferenceController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# PingController
|
|
8
|
+
class PingController < BaseController
|
|
9
9
|
# A test endpoint often used to confirm credentials and headers are being
|
|
10
10
|
# passed in correctly.
|
|
11
11
|
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# ReturnController
|
|
8
|
+
class ReturnController < BaseController
|
|
9
9
|
# Get a list of returns.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# ReversalController
|
|
8
|
+
class ReversalController < BaseController
|
|
9
9
|
# Get a list of all reversals of a payment order.
|
|
10
10
|
# @param [String] payment_order_id Required parameter: The ID of the
|
|
11
11
|
# relevant Payment Order.
|
data/lib/modern_treasury/{apis/routing_detail_api.rb → controllers/routing_detail_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# RoutingDetailController
|
|
8
|
+
class RoutingDetailController < BaseController
|
|
9
9
|
# Get a list of routing details for a single internal or external account.
|
|
10
10
|
# @param [AccountsType] accounts_type Required parameter: Example:
|
|
11
11
|
# @param [String] account_id Required parameter: The ID of the account.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# TransactionController
|
|
8
|
+
class TransactionController < BaseController
|
|
9
9
|
# Get a list of all transactions.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# TransactionLineItemController
|
|
8
|
+
class TransactionLineItemController < BaseController
|
|
9
9
|
# TODO: type endpoint description here
|
|
10
10
|
# @param [String] transaction_id Required parameter: transaction_id
|
|
11
11
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# ValidationController
|
|
8
|
+
class ValidationController < BaseController
|
|
9
9
|
# Validates the routing number information supplied without creating a
|
|
10
10
|
# routing detail
|
|
11
11
|
# @param [String] routing_number Required parameter: The routing number that
|
data/lib/modern_treasury/{apis/virtual_account_api.rb → controllers/virtual_account_controller.rb}
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# https://www.apimatic.io ).
|
|
5
5
|
|
|
6
6
|
module ModernTreasury
|
|
7
|
-
#
|
|
8
|
-
class
|
|
7
|
+
# VirtualAccountController
|
|
8
|
+
class VirtualAccountController < BaseController
|
|
9
9
|
# Get a list of virtual accounts.
|
|
10
10
|
# @param [String] after_cursor Optional parameter: TODO: type description
|
|
11
11
|
# here
|
data/lib/modern_treasury.rb
CHANGED
|
@@ -279,39 +279,43 @@ require_relative 'modern_treasury/exceptions/error_message_exception'
|
|
|
279
279
|
require_relative 'modern_treasury/configuration'
|
|
280
280
|
|
|
281
281
|
# Controllers
|
|
282
|
-
require_relative 'modern_treasury/
|
|
283
|
-
require_relative 'modern_treasury/
|
|
284
|
-
require_relative 'modern_treasury/
|
|
285
|
-
require_relative 'modern_treasury/
|
|
286
|
-
require_relative 'modern_treasury/
|
|
287
|
-
require_relative 'modern_treasury/
|
|
288
|
-
require_relative 'modern_treasury/
|
|
289
|
-
require_relative 'modern_treasury/
|
|
290
|
-
require_relative 'modern_treasury/
|
|
291
|
-
require_relative 'modern_treasury/
|
|
292
|
-
|
|
293
|
-
require_relative 'modern_treasury/
|
|
294
|
-
require_relative 'modern_treasury/
|
|
295
|
-
require_relative 'modern_treasury/
|
|
296
|
-
require_relative 'modern_treasury/
|
|
297
|
-
|
|
298
|
-
require_relative 'modern_treasury/
|
|
299
|
-
require_relative 'modern_treasury/
|
|
300
|
-
|
|
301
|
-
require_relative 'modern_treasury/
|
|
302
|
-
require_relative 'modern_treasury/
|
|
303
|
-
require_relative 'modern_treasury/
|
|
304
|
-
require_relative 'modern_treasury/
|
|
305
|
-
require_relative 'modern_treasury/
|
|
306
|
-
require_relative 'modern_treasury/
|
|
307
|
-
require_relative 'modern_treasury/
|
|
308
|
-
require_relative 'modern_treasury/
|
|
309
|
-
require_relative 'modern_treasury/
|
|
310
|
-
require_relative 'modern_treasury/
|
|
311
|
-
require_relative 'modern_treasury/
|
|
312
|
-
require_relative 'modern_treasury/
|
|
313
|
-
require_relative 'modern_treasury/
|
|
314
|
-
require_relative 'modern_treasury/
|
|
315
|
-
require_relative 'modern_treasury/
|
|
316
|
-
require_relative 'modern_treasury/
|
|
317
|
-
require_relative 'modern_treasury/
|
|
282
|
+
require_relative 'modern_treasury/controllers/base_controller'
|
|
283
|
+
require_relative 'modern_treasury/controllers/account_detail_controller'
|
|
284
|
+
require_relative 'modern_treasury/controllers/balance_report_controller'
|
|
285
|
+
require_relative 'modern_treasury/controllers/connection_controller'
|
|
286
|
+
require_relative 'modern_treasury/controllers/counterparty_controller'
|
|
287
|
+
require_relative 'modern_treasury/controllers/document_controller'
|
|
288
|
+
require_relative 'modern_treasury/controllers/event_controller'
|
|
289
|
+
require_relative 'modern_treasury/controllers/expected_payment_controller'
|
|
290
|
+
require_relative 'modern_treasury/controllers/external_account_controller'
|
|
291
|
+
require_relative 'modern_treasury/controllers/' \
|
|
292
|
+
'incoming_payment_detail_controller'
|
|
293
|
+
require_relative 'modern_treasury/controllers/internal_account_controller'
|
|
294
|
+
require_relative 'modern_treasury/controllers/invoice_line_item_controller'
|
|
295
|
+
require_relative 'modern_treasury/controllers/invoice_controller'
|
|
296
|
+
require_relative 'modern_treasury/controllers/' \
|
|
297
|
+
'ledger_account_category_controller'
|
|
298
|
+
require_relative 'modern_treasury/controllers/ledger_account_payout_controller'
|
|
299
|
+
require_relative 'modern_treasury/controllers/' \
|
|
300
|
+
'ledger_account_statement_controller'
|
|
301
|
+
require_relative 'modern_treasury/controllers/ledger_account_controller'
|
|
302
|
+
require_relative 'modern_treasury/controllers/ledger_entry_controller'
|
|
303
|
+
require_relative 'modern_treasury/controllers/ledger_event_handler_controller'
|
|
304
|
+
require_relative 'modern_treasury/controllers/ledger_transaction_controller'
|
|
305
|
+
require_relative 'modern_treasury/controllers/ledgerable_event_controller'
|
|
306
|
+
require_relative 'modern_treasury/controllers/ledger_controller'
|
|
307
|
+
require_relative 'modern_treasury/controllers/line_item_controller'
|
|
308
|
+
require_relative 'modern_treasury/controllers/paper_item_controller'
|
|
309
|
+
require_relative 'modern_treasury/controllers/payment_order_controller'
|
|
310
|
+
require_relative 'modern_treasury/controllers/payment_reference_controller'
|
|
311
|
+
require_relative 'modern_treasury/controllers/ping_controller'
|
|
312
|
+
require_relative 'modern_treasury/controllers/return_controller'
|
|
313
|
+
require_relative 'modern_treasury/controllers/reversal_controller'
|
|
314
|
+
require_relative 'modern_treasury/controllers/routing_detail_controller'
|
|
315
|
+
require_relative 'modern_treasury/controllers/transaction_line_item_controller'
|
|
316
|
+
require_relative 'modern_treasury/controllers/transaction_controller'
|
|
317
|
+
require_relative 'modern_treasury/controllers/validation_controller'
|
|
318
|
+
require_relative 'modern_treasury/controllers/virtual_account_controller'
|
|
319
|
+
require_relative 'modern_treasury/controllers/' \
|
|
320
|
+
'account_collection_flow_controller'
|
|
321
|
+
require_relative 'modern_treasury/controllers/payment_flow_controller'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mt-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Muhammad Rafay
|
|
@@ -64,44 +64,44 @@ files:
|
|
|
64
64
|
- bin/console
|
|
65
65
|
- lib/modern_treasury.rb
|
|
66
66
|
- lib/modern_treasury/api_helper.rb
|
|
67
|
-
- lib/modern_treasury/apis/account_collection_flow_api.rb
|
|
68
|
-
- lib/modern_treasury/apis/account_detail_api.rb
|
|
69
|
-
- lib/modern_treasury/apis/balance_report_api.rb
|
|
70
|
-
- lib/modern_treasury/apis/base_api.rb
|
|
71
|
-
- lib/modern_treasury/apis/connection_api.rb
|
|
72
|
-
- lib/modern_treasury/apis/counterparty_api.rb
|
|
73
|
-
- lib/modern_treasury/apis/document_api.rb
|
|
74
|
-
- lib/modern_treasury/apis/event_api.rb
|
|
75
|
-
- lib/modern_treasury/apis/expected_payment_api.rb
|
|
76
|
-
- lib/modern_treasury/apis/external_account_api.rb
|
|
77
|
-
- lib/modern_treasury/apis/incoming_payment_detail_api.rb
|
|
78
|
-
- lib/modern_treasury/apis/internal_account_api.rb
|
|
79
|
-
- lib/modern_treasury/apis/invoice_api.rb
|
|
80
|
-
- lib/modern_treasury/apis/invoice_line_item_api.rb
|
|
81
|
-
- lib/modern_treasury/apis/ledger_account_api.rb
|
|
82
|
-
- lib/modern_treasury/apis/ledger_account_category_api.rb
|
|
83
|
-
- lib/modern_treasury/apis/ledger_account_payout_api.rb
|
|
84
|
-
- lib/modern_treasury/apis/ledger_account_statement_api.rb
|
|
85
|
-
- lib/modern_treasury/apis/ledger_api.rb
|
|
86
|
-
- lib/modern_treasury/apis/ledger_entry_api.rb
|
|
87
|
-
- lib/modern_treasury/apis/ledger_event_handler_api.rb
|
|
88
|
-
- lib/modern_treasury/apis/ledger_transaction_api.rb
|
|
89
|
-
- lib/modern_treasury/apis/ledgerable_event_api.rb
|
|
90
|
-
- lib/modern_treasury/apis/line_item_api.rb
|
|
91
|
-
- lib/modern_treasury/apis/paper_item_api.rb
|
|
92
|
-
- lib/modern_treasury/apis/payment_flow_api.rb
|
|
93
|
-
- lib/modern_treasury/apis/payment_order_api.rb
|
|
94
|
-
- lib/modern_treasury/apis/payment_reference_api.rb
|
|
95
|
-
- lib/modern_treasury/apis/ping_api.rb
|
|
96
|
-
- lib/modern_treasury/apis/return_api.rb
|
|
97
|
-
- lib/modern_treasury/apis/reversal_api.rb
|
|
98
|
-
- lib/modern_treasury/apis/routing_detail_api.rb
|
|
99
|
-
- lib/modern_treasury/apis/transaction_api.rb
|
|
100
|
-
- lib/modern_treasury/apis/transaction_line_item_api.rb
|
|
101
|
-
- lib/modern_treasury/apis/validation_api.rb
|
|
102
|
-
- lib/modern_treasury/apis/virtual_account_api.rb
|
|
103
67
|
- lib/modern_treasury/client.rb
|
|
104
68
|
- lib/modern_treasury/configuration.rb
|
|
69
|
+
- lib/modern_treasury/controllers/account_collection_flow_controller.rb
|
|
70
|
+
- lib/modern_treasury/controllers/account_detail_controller.rb
|
|
71
|
+
- lib/modern_treasury/controllers/balance_report_controller.rb
|
|
72
|
+
- lib/modern_treasury/controllers/base_controller.rb
|
|
73
|
+
- lib/modern_treasury/controllers/connection_controller.rb
|
|
74
|
+
- lib/modern_treasury/controllers/counterparty_controller.rb
|
|
75
|
+
- lib/modern_treasury/controllers/document_controller.rb
|
|
76
|
+
- lib/modern_treasury/controllers/event_controller.rb
|
|
77
|
+
- lib/modern_treasury/controllers/expected_payment_controller.rb
|
|
78
|
+
- lib/modern_treasury/controllers/external_account_controller.rb
|
|
79
|
+
- lib/modern_treasury/controllers/incoming_payment_detail_controller.rb
|
|
80
|
+
- lib/modern_treasury/controllers/internal_account_controller.rb
|
|
81
|
+
- lib/modern_treasury/controllers/invoice_controller.rb
|
|
82
|
+
- lib/modern_treasury/controllers/invoice_line_item_controller.rb
|
|
83
|
+
- lib/modern_treasury/controllers/ledger_account_category_controller.rb
|
|
84
|
+
- lib/modern_treasury/controllers/ledger_account_controller.rb
|
|
85
|
+
- lib/modern_treasury/controllers/ledger_account_payout_controller.rb
|
|
86
|
+
- lib/modern_treasury/controllers/ledger_account_statement_controller.rb
|
|
87
|
+
- lib/modern_treasury/controllers/ledger_controller.rb
|
|
88
|
+
- lib/modern_treasury/controllers/ledger_entry_controller.rb
|
|
89
|
+
- lib/modern_treasury/controllers/ledger_event_handler_controller.rb
|
|
90
|
+
- lib/modern_treasury/controllers/ledger_transaction_controller.rb
|
|
91
|
+
- lib/modern_treasury/controllers/ledgerable_event_controller.rb
|
|
92
|
+
- lib/modern_treasury/controllers/line_item_controller.rb
|
|
93
|
+
- lib/modern_treasury/controllers/paper_item_controller.rb
|
|
94
|
+
- lib/modern_treasury/controllers/payment_flow_controller.rb
|
|
95
|
+
- lib/modern_treasury/controllers/payment_order_controller.rb
|
|
96
|
+
- lib/modern_treasury/controllers/payment_reference_controller.rb
|
|
97
|
+
- lib/modern_treasury/controllers/ping_controller.rb
|
|
98
|
+
- lib/modern_treasury/controllers/return_controller.rb
|
|
99
|
+
- lib/modern_treasury/controllers/reversal_controller.rb
|
|
100
|
+
- lib/modern_treasury/controllers/routing_detail_controller.rb
|
|
101
|
+
- lib/modern_treasury/controllers/transaction_controller.rb
|
|
102
|
+
- lib/modern_treasury/controllers/transaction_line_item_controller.rb
|
|
103
|
+
- lib/modern_treasury/controllers/validation_controller.rb
|
|
104
|
+
- lib/modern_treasury/controllers/virtual_account_controller.rb
|
|
105
105
|
- lib/modern_treasury/exceptions/api_exception.rb
|
|
106
106
|
- lib/modern_treasury/exceptions/error_message_exception.rb
|
|
107
107
|
- lib/modern_treasury/http/api_response.rb
|