wp-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +152 -0
- data/bin/console +15 -0
- data/lib/reporting_settlement_research_api/api_helper.rb +10 -0
- data/lib/reporting_settlement_research_api/apis/base_api.rb +65 -0
- data/lib/reporting_settlement_research_api/apis/settlement_batches_api.rb +67 -0
- data/lib/reporting_settlement_research_api/apis/settlement_daily_totals_api.rb +39 -0
- data/lib/reporting_settlement_research_api/apis/settlement_errors_api.rb +67 -0
- data/lib/reporting_settlement_research_api/apis/settlements_api.rb +40 -0
- data/lib/reporting_settlement_research_api/apis/transaction_status_api.rb +33 -0
- data/lib/reporting_settlement_research_api/apis/transaction_type_api.rb +33 -0
- data/lib/reporting_settlement_research_api/client.rb +105 -0
- data/lib/reporting_settlement_research_api/configuration.rb +164 -0
- data/lib/reporting_settlement_research_api/exceptions/api_exception.rb +21 -0
- data/lib/reporting_settlement_research_api/exceptions/search_date0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/search_store0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/settlementerrors_pendingsettlementbatches_search0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/settlementerrors_settlementfileerrors_search0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/settlements_daily_totals_search0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/settlements_search0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/transaction_statuses0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/transaction_types0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/http/api_response.rb +19 -0
- data/lib/reporting_settlement_research_api/http/auth/custom_header_authentication.rb +52 -0
- data/lib/reporting_settlement_research_api/http/http_call_back.rb +10 -0
- data/lib/reporting_settlement_research_api/http/http_method_enum.rb +10 -0
- data/lib/reporting_settlement_research_api/http/http_request.rb +10 -0
- data/lib/reporting_settlement_research_api/http/http_response.rb +10 -0
- data/lib/reporting_settlement_research_api/http/proxy_settings.rb +22 -0
- data/lib/reporting_settlement_research_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/reporting_settlement_research_api/logging/sdk_logger.rb +17 -0
- data/lib/reporting_settlement_research_api/models/account_name_inquiry.rb +98 -0
- data/lib/reporting_settlement_research_api/models/aci.rb +98 -0
- data/lib/reporting_settlement_research_api/models/additional_details.rb +135 -0
- data/lib/reporting_settlement_research_api/models/authorization_currency.rb +98 -0
- data/lib/reporting_settlement_research_api/models/authorization_source.rb +98 -0
- data/lib/reporting_settlement_research_api/models/avs_response_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/bank_card_rej_real_time_transaction.rb +172 -0
- data/lib/reporting_settlement_research_api/models/bank_card_rejects_search_request.rb +159 -0
- data/lib/reporting_settlement_research_api/models/bank_card_rejects_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/base_model.rb +110 -0
- data/lib/reporting_settlement_research_api/models/batch_card_type.rb +41 -0
- data/lib/reporting_settlement_research_api/models/batch_card_type1.rb +41 -0
- data/lib/reporting_settlement_research_api/models/batch_hold_status.rb +98 -0
- data/lib/reporting_settlement_research_api/models/billing_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_account_term.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_details.rb +381 -0
- data/lib/reporting_settlement_research_api/models/card_details2.rb +381 -0
- data/lib/reporting_settlement_research_api/models/card_network.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_networks.rb +118 -0
- data/lib/reporting_settlement_research_api/models/card_product_results.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_product_type.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_types.rb +49 -0
- data/lib/reporting_settlement_research_api/models/card_types1.rb +44 -0
- data/lib/reporting_settlement_research_api/models/cardholder_id.rb +98 -0
- data/lib/reporting_settlement_research_api/models/code_and_description.rb +98 -0
- data/lib/reporting_settlement_research_api/models/code_and_description1.rb +85 -0
- data/lib/reporting_settlement_research_api/models/country_of_origin.rb +98 -0
- data/lib/reporting_settlement_research_api/models/credit_additional_details.rb +135 -0
- data/lib/reporting_settlement_research_api/models/credit_card_details.rb +230 -0
- data/lib/reporting_settlement_research_api/models/credit_interchange_details.rb +215 -0
- data/lib/reporting_settlement_research_api/models/credit_merchant_hierarchy_details.rb +112 -0
- data/lib/reporting_settlement_research_api/models/credit_other_services_details.rb +157 -0
- data/lib/reporting_settlement_research_api/models/credit_premium_payback_details.rb +120 -0
- data/lib/reporting_settlement_research_api/models/credit_transaction_details.rb +435 -0
- data/lib/reporting_settlement_research_api/models/customer_fields.rb +95 -0
- data/lib/reporting_settlement_research_api/models/customer_fields2.rb +95 -0
- data/lib/reporting_settlement_research_api/models/cvv2_presence_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/cvv2_response_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/date_range1.rb +85 -0
- data/lib/reporting_settlement_research_api/models/date_type.rb +36 -0
- data/lib/reporting_settlement_research_api/models/daterange.rb +85 -0
- data/lib/reporting_settlement_research_api/models/emv_details.rb +113 -0
- data/lib/reporting_settlement_research_api/models/emv_details2.rb +113 -0
- data/lib/reporting_settlement_research_api/models/entity.rb +99 -0
- data/lib/reporting_settlement_research_api/models/entry_mode.rb +98 -0
- data/lib/reporting_settlement_research_api/models/error.rb +96 -0
- data/lib/reporting_settlement_research_api/models/field_name.rb +93 -0
- data/lib/reporting_settlement_research_api/models/field_name1.rb +69 -0
- data/lib/reporting_settlement_research_api/models/field_name2.rb +57 -0
- data/lib/reporting_settlement_research_api/models/field_name3.rb +57 -0
- data/lib/reporting_settlement_research_api/models/field_name4.rb +61 -0
- data/lib/reporting_settlement_research_api/models/field_name5.rb +49 -0
- data/lib/reporting_settlement_research_api/models/fraud_coverage_type.rb +98 -0
- data/lib/reporting_settlement_research_api/models/fraud_detection_stage.rb +98 -0
- data/lib/reporting_settlement_research_api/models/fraud_fields.rb +99 -0
- data/lib/reporting_settlement_research_api/models/fraud_fields2.rb +99 -0
- data/lib/reporting_settlement_research_api/models/fraud_fields_fraud_score.rb +86 -0
- data/lib/reporting_settlement_research_api/models/fraud_response_code.rb +52 -0
- data/lib/reporting_settlement_research_api/models/fraud_response_code2.rb +98 -0
- data/lib/reporting_settlement_research_api/models/fraud_rule_result.rb +49 -0
- data/lib/reporting_settlement_research_api/models/fraud_rule_result2.rb +98 -0
- data/lib/reporting_settlement_research_api/models/fraud_score.rb +85 -0
- data/lib/reporting_settlement_research_api/models/fraud_sight_details.rb +124 -0
- data/lib/reporting_settlement_research_api/models/fraud_sight_details2.rb +124 -0
- data/lib/reporting_settlement_research_api/models/funded_net_settle.rb +110 -0
- data/lib/reporting_settlement_research_api/models/funded_net_settle2.rb +110 -0
- data/lib/reporting_settlement_research_api/models/hierarchy.rb +99 -0
- data/lib/reporting_settlement_research_api/models/hierarchy1.rb +99 -0
- data/lib/reporting_settlement_research_api/models/hierarchy10.rb +141 -0
- data/lib/reporting_settlement_research_api/models/hierarchy2.rb +85 -0
- data/lib/reporting_settlement_research_api/models/hierarchy4.rb +112 -0
- data/lib/reporting_settlement_research_api/models/hierarchy6.rb +99 -0
- data/lib/reporting_settlement_research_api/models/hierarchy7.rb +131 -0
- data/lib/reporting_settlement_research_api/models/hierarchy9.rb +119 -0
- data/lib/reporting_settlement_research_api/models/hierarchy_level.rb +99 -0
- data/lib/reporting_settlement_research_api/models/hierarchy_levels.rb +99 -0
- data/lib/reporting_settlement_research_api/models/interchange_code.rb +85 -0
- data/lib/reporting_settlement_research_api/models/interchange_data.rb +116 -0
- data/lib/reporting_settlement_research_api/models/interchange_details.rb +215 -0
- data/lib/reporting_settlement_research_api/models/interchange_details1.rb +116 -0
- data/lib/reporting_settlement_research_api/models/international_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/level.rb +45 -0
- data/lib/reporting_settlement_research_api/models/level1.rb +49 -0
- data/lib/reporting_settlement_research_api/models/level2.rb +37 -0
- data/lib/reporting_settlement_research_api/models/level3.rb +67 -0
- data/lib/reporting_settlement_research_api/models/level_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/location_details.rb +199 -0
- data/lib/reporting_settlement_research_api/models/location_details2.rb +198 -0
- data/lib/reporting_settlement_research_api/models/mail_phone_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/market_specific_data_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/mastercard_tic_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/merchant_category.rb +98 -0
- data/lib/reporting_settlement_research_api/models/merchant_hierarchy.rb +119 -0
- data/lib/reporting_settlement_research_api/models/merchant_hierarchy_detail.rb +131 -0
- data/lib/reporting_settlement_research_api/models/merchant_info.rb +141 -0
- data/lib/reporting_settlement_research_api/models/network_group.rb +98 -0
- data/lib/reporting_settlement_research_api/models/order_by.rb +36 -0
- data/lib/reporting_settlement_research_api/models/order_by_for_settled_daily_totals.rb +85 -0
- data/lib/reporting_settlement_research_api/models/order_by_for_settled_transactions_type.rb +85 -0
- data/lib/reporting_settlement_research_api/models/origin_type.rb +98 -0
- data/lib/reporting_settlement_research_api/models/other_services.rb +179 -0
- data/lib/reporting_settlement_research_api/models/other_services2.rb +179 -0
- data/lib/reporting_settlement_research_api/models/pagination.rb +87 -0
- data/lib/reporting_settlement_research_api/models/pagination4.rb +108 -0
- data/lib/reporting_settlement_research_api/models/pagination_response.rb +108 -0
- data/lib/reporting_settlement_research_api/models/paginationtype.rb +87 -0
- data/lib/reporting_settlement_research_api/models/payment_gateway_details.rb +127 -0
- data/lib/reporting_settlement_research_api/models/payment_gateway_details1.rb +127 -0
- data/lib/reporting_settlement_research_api/models/pin_less.rb +98 -0
- data/lib/reporting_settlement_research_api/models/pos_condition_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/premium_payback.rb +120 -0
- data/lib/reporting_settlement_research_api/models/processdaterange.rb +85 -0
- data/lib/reporting_settlement_research_api/models/rejection_reason.rb +98 -0
- data/lib/reporting_settlement_research_api/models/search_auth_transactions.rb +200 -0
- data/lib/reporting_settlement_research_api/models/search_daily_totals.rb +95 -0
- data/lib/reporting_settlement_research_api/models/search_daily_totals_details.rb +172 -0
- data/lib/reporting_settlement_research_api/models/search_date_request.rb +116 -0
- data/lib/reporting_settlement_research_api/models/search_date_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/search_requesttransaction_amount_range.rb +105 -0
- data/lib/reporting_settlement_research_api/models/search_settle_daily_totals_request.rb +135 -0
- data/lib/reporting_settlement_research_api/models/search_settle_transactions_request.rb +248 -0
- data/lib/reporting_settlement_research_api/models/search_store_request.rb +116 -0
- data/lib/reporting_settlement_research_api/models/search_store_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/search_transaction_details_response.rb +95 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_date_request.rb +116 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_date_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_entity.rb +85 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_hierarchy.rb +112 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_sort_store.rb +85 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_sortbankcarddetails.rb +85 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_store_request.rb +116 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_store_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_transaction_date.rb +195 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_transaction_store.rb +195 -0
- data/lib/reporting_settlement_research_api/models/settlement_rej_real_time_transaction.rb +152 -0
- data/lib/reporting_settlement_research_api/models/settlement_rejects_search_request.rb +104 -0
- data/lib/reporting_settlement_research_api/models/settlement_rejects_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlementerrors_pendingsettlementbatches_search_request.rb +159 -0
- data/lib/reporting_settlement_research_api/models/settlementerrors_pendingsettlementbatches_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlementerrors_settlementfileerrors_search_request.rb +104 -0
- data/lib/reporting_settlement_research_api/models/settlementerrors_settlementfileerrors_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlements_daily_totals_search_request.rb +135 -0
- data/lib/reporting_settlement_research_api/models/settlements_daily_totals_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlements_search_request.rb +248 -0
- data/lib/reporting_settlement_research_api/models/settlements_search_response.rb +95 -0
- data/lib/reporting_settlement_research_api/models/signature_capabilities_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/signature_compression.rb +98 -0
- data/lib/reporting_settlement_research_api/models/signature_pen.rb +98 -0
- data/lib/reporting_settlement_research_api/models/signify_details.rb +103 -0
- data/lib/reporting_settlement_research_api/models/signifyd_detail.rb +103 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by1.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by2.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by3.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by4.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by5.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sortbankcarddetails.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sortsettlementfiledetails.rb +85 -0
- data/lib/reporting_settlement_research_api/models/stand_in_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/stand_in_level.rb +98 -0
- data/lib/reporting_settlement_research_api/models/surcharge_reason.rb +85 -0
- data/lib/reporting_settlement_research_api/models/terminal.rb +109 -0
- data/lib/reporting_settlement_research_api/models/terminal_capability.rb +98 -0
- data/lib/reporting_settlement_research_api/models/terminal_details.rb +109 -0
- data/lib/reporting_settlement_research_api/models/transaction_amount_range.rb +105 -0
- data/lib/reporting_settlement_research_api/models/transaction_details.rb +723 -0
- data/lib/reporting_settlement_research_api/models/transaction_details2.rb +723 -0
- data/lib/reporting_settlement_research_api/models/transaction_status.rb +98 -0
- data/lib/reporting_settlement_research_api/models/transaction_status_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/transaction_status_code1.rb +1029 -0
- data/lib/reporting_settlement_research_api/models/transaction_summary.rb +182 -0
- data/lib/reporting_settlement_research_api/models/transaction_summary_data.rb +182 -0
- data/lib/reporting_settlement_research_api/models/transaction_type.rb +98 -0
- data/lib/reporting_settlement_research_api/models/transaction_type_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/transaction_type_code1.rb +221 -0
- data/lib/reporting_settlement_research_api/utilities/date_time_helper.rb +11 -0
- data/lib/reporting_settlement_research_api/utilities/file_wrapper.rb +28 -0
- data/lib/reporting_settlement_research_api.rb +302 -0
- metadata +294 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: e8f06b621cd848a6a76b973b25e074c76a5a753849f0f0a117b7c0725a73d142
|
|
4
|
+
data.tar.gz: 8d6be02baf8f927f0a0a10467e7b789acc01a4d72abb1145833e8f65cec40c50
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 6061308f73961ace75f15288ee43da7bd242e6e25c5e3056aa7722b6264736e69ded8eed866838e08a95cc6c6b0f4bcad28b482ed69fe33633b39e00bce2624d
|
|
7
|
+
data.tar.gz: 8918d6c84fbfd893ed75bef6f79f06b5c44e5db6d9fec9246c047c2976c6aa633b0b525118bb915ba2d7eac002f5a8b68d16d4db820a0ea594ea75887e72383e
|
data/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
License:
|
|
2
|
+
========
|
|
3
|
+
The MIT License (MIT)
|
|
4
|
+
http://opensource.org/licenses/MIT
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2014 - 2026 APIMATIC Limited
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in
|
|
16
|
+
all copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
+
THE SOFTWARE.
|
|
25
|
+
|
|
26
|
+
Trade Mark:
|
|
27
|
+
==========
|
|
28
|
+
APIMATIC is a trade mark for APIMATIC Limited
|
data/README.md
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
|
|
2
|
+
# Getting Started with Reporting: Settlement Research API
|
|
3
|
+
|
|
4
|
+
## Introduction
|
|
5
|
+
|
|
6
|
+
API used to search and retrieve settled transactions. This API is used to search settled transactions and retrieve individual transaction details based on card types.
|
|
7
|
+
|
|
8
|
+
## Install the Package
|
|
9
|
+
|
|
10
|
+
Install the gem from the command line:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
gem install wp-sdk -v 1.0.0
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Or add the gem to your Gemfile and run `bundle`:
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
gem 'wp-sdk', '1.0.0'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
For additional gem details, see the [RubyGems page for the wp-sdk gem](https://rubygems.org/gems/wp-sdk/versions/1.0.0).
|
|
23
|
+
|
|
24
|
+
## IRB Console Usage
|
|
25
|
+
|
|
26
|
+
You can explore the SDK interactively using IRB in two ways
|
|
27
|
+
|
|
28
|
+
### 1. Use IRB with Installed Gem
|
|
29
|
+
|
|
30
|
+
Open your system terminal (Command Prompt, Git Bash or macOS Terminal) and type the following command to start the irb console.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
irb
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Now you can load the SDK in the IRB
|
|
37
|
+
|
|
38
|
+
```ruby
|
|
39
|
+
require 'reporting_settlement_research_api'
|
|
40
|
+
include ReportingSettlementResearchApi
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 2. Use IRB within SDK
|
|
44
|
+
|
|
45
|
+
Open your system terminal (Command Prompt, Git Bash or macOS Terminal) and navigate to the root folder of SDK.
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
cd path/to/reporting_settlement_research_api
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Now you can start the preconfigured irb console by running the following command
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
ruby bin/console
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**_Note:_** This automatically loads the SDK from lib/
|
|
58
|
+
|
|
59
|
+
## Initialize the API Client
|
|
60
|
+
|
|
61
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/client.md)
|
|
62
|
+
|
|
63
|
+
The following parameters are configurable for the API Client:
|
|
64
|
+
|
|
65
|
+
| Parameter | Type | Description |
|
|
66
|
+
| --- | --- | --- |
|
|
67
|
+
| connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
|
|
68
|
+
| adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
|
|
69
|
+
| timeout | `Float` | The value to use for connection timeout. <br> **Default: 60** |
|
|
70
|
+
| max_retries | `Integer` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
|
|
71
|
+
| retry_interval | `Float` | Pause in seconds between retries. <br> **Default: 1** |
|
|
72
|
+
| backoff_factor | `Float` | The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2** |
|
|
73
|
+
| retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
|
|
74
|
+
| retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
|
|
75
|
+
| http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
|
|
76
|
+
| proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
|
|
77
|
+
| logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/logging-configuration.md) | The SDK logging configuration for API calls |
|
|
78
|
+
| custom_header_authentication_credentials | [`CustomHeaderAuthenticationCredentials`](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/auth/custom-header-signature.md) | The credential object for Custom Header Signature |
|
|
79
|
+
|
|
80
|
+
The API client can be initialized as follows:
|
|
81
|
+
|
|
82
|
+
### Code-Based Client Initialization
|
|
83
|
+
|
|
84
|
+
```ruby
|
|
85
|
+
require 'reporting_settlement_research_api'
|
|
86
|
+
include ReportingSettlementResearchApi
|
|
87
|
+
|
|
88
|
+
client = Client.new(
|
|
89
|
+
custom_header_authentication_credentials: CustomHeaderAuthenticationCredentials.new(
|
|
90
|
+
authorization: 'Authorization'
|
|
91
|
+
),
|
|
92
|
+
logging_configuration: LoggingConfiguration.new(
|
|
93
|
+
log_level: Logger::INFO,
|
|
94
|
+
request_logging_config: RequestLoggingConfiguration.new(
|
|
95
|
+
log_body: true
|
|
96
|
+
),
|
|
97
|
+
response_logging_config: ResponseLoggingConfiguration.new(
|
|
98
|
+
log_headers: true
|
|
99
|
+
)
|
|
100
|
+
)
|
|
101
|
+
)
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Environment-Based Client Initialization
|
|
105
|
+
|
|
106
|
+
```ruby
|
|
107
|
+
require 'reporting_settlement_research_api'
|
|
108
|
+
include ReportingSettlementResearchApi
|
|
109
|
+
|
|
110
|
+
# Create client from environment
|
|
111
|
+
client = Client.from_env
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
See the [`Environment-Based Client Initialization`](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
|
|
115
|
+
|
|
116
|
+
## Authorization
|
|
117
|
+
|
|
118
|
+
This API uses the following authentication schemes.
|
|
119
|
+
|
|
120
|
+
* [`api_key (Custom Header Signature)`](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/auth/custom-header-signature.md)
|
|
121
|
+
|
|
122
|
+
## List of APIs
|
|
123
|
+
|
|
124
|
+
* [Settlement Errors](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/controllers/settlement-errors.md)
|
|
125
|
+
* [Settlement Daily Totals](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/controllers/settlement-daily-totals.md)
|
|
126
|
+
* [Settlement Batches](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/controllers/settlement-batches.md)
|
|
127
|
+
* [Transaction Type](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/controllers/transaction-type.md)
|
|
128
|
+
* [Transaction Status](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/controllers/transaction-status.md)
|
|
129
|
+
* [Settlements](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/controllers/settlements.md)
|
|
130
|
+
|
|
131
|
+
## SDK Infrastructure
|
|
132
|
+
|
|
133
|
+
### Configuration
|
|
134
|
+
|
|
135
|
+
* [ProxySettings](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/proxy-settings.md)
|
|
136
|
+
* [Environment-Based Client Initialization](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
|
|
137
|
+
* [AbstractLogger](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/abstract-logger.md)
|
|
138
|
+
* [LoggingConfiguration](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/logging-configuration.md)
|
|
139
|
+
* [RequestLoggingConfiguration](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/request-logging-configuration.md)
|
|
140
|
+
* [ResponseLoggingConfiguration](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/response-logging-configuration.md)
|
|
141
|
+
|
|
142
|
+
### HTTP
|
|
143
|
+
|
|
144
|
+
* [HttpResponse](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/http-response.md)
|
|
145
|
+
* [HttpRequest](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/http-request.md)
|
|
146
|
+
|
|
147
|
+
### Utilities
|
|
148
|
+
|
|
149
|
+
* [ApiResponse](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/api-response.md)
|
|
150
|
+
* [ApiHelper](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/api-helper.md)
|
|
151
|
+
* [DateTimeHelper](https://www.github.com/sdks-io/wp-ruby-sdk/tree/1.0.0/doc/date-time-helper.md)
|
|
152
|
+
|
data/bin/console
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
# Load the lib folder into Ruby's load path
|
|
4
|
+
$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
|
|
5
|
+
|
|
6
|
+
# Require the gem
|
|
7
|
+
require 'reporting_settlement_research_api'
|
|
8
|
+
|
|
9
|
+
puts 'ReportingSettlementResearchApi SDK loaded!'
|
|
10
|
+
puts 'You can now create a client with: client = ReportingSettlementResearchApi::Client.new'
|
|
11
|
+
puts 'Or use from_env: client = ReportingSettlementResearchApi::Client.from_env'
|
|
12
|
+
|
|
13
|
+
# Start an interactive IRB session
|
|
14
|
+
require 'irb'
|
|
15
|
+
IRB.start
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# BaseApi.
|
|
8
|
+
class BaseApi
|
|
9
|
+
include CoreLibrary
|
|
10
|
+
attr_accessor :config, :http_call_back
|
|
11
|
+
|
|
12
|
+
def self.user_agent
|
|
13
|
+
'Ruby SDK, Version: 1.0.0, on OS {os-info}'
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.user_agent_parameters
|
|
17
|
+
{
|
|
18
|
+
'{os-info}' => { 'value' => RUBY_PLATFORM, 'encode' => false }
|
|
19
|
+
}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
GLOBAL_ERRORS = {
|
|
23
|
+
'default' => ErrorCase.new
|
|
24
|
+
.error_message('HTTP response not OK.')
|
|
25
|
+
.exception_type(APIException)
|
|
26
|
+
}.freeze
|
|
27
|
+
|
|
28
|
+
# Initialization constructor.
|
|
29
|
+
# @param [GlobalConfiguration] global_configuration The instance of GlobalConfiguration.
|
|
30
|
+
def initialize(global_configuration)
|
|
31
|
+
@global_configuration = global_configuration
|
|
32
|
+
@config = @global_configuration.client_configuration
|
|
33
|
+
@http_call_back = @config.http_callback
|
|
34
|
+
@api_call = ApiCall.new(@global_configuration)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Creates a new instance of the request builder.
|
|
38
|
+
# @param [String] http_method The HTTP method to use in the request.
|
|
39
|
+
# @param [String] path The endpoint path to use in the request.
|
|
40
|
+
# @param [String] server The server to extract the base uri for the request.
|
|
41
|
+
# @return [RequestBuilder] The instance of RequestBuilder.
|
|
42
|
+
def new_request_builder(http_method, path, server)
|
|
43
|
+
RequestBuilder.new
|
|
44
|
+
.http_method(http_method)
|
|
45
|
+
.path(path)
|
|
46
|
+
.server(server)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Creates a new instance of the response handler.
|
|
50
|
+
# @return [ResponseHandler] The instance of ResponseHandler.
|
|
51
|
+
def new_response_handler
|
|
52
|
+
ResponseHandler.new
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Creates a new instance of the parameter.
|
|
56
|
+
# @param [String|optional] key The key of the parameter.
|
|
57
|
+
# @param [Object] value The value of the parameter.
|
|
58
|
+
# @return [Parameter] The instance of Parameter.
|
|
59
|
+
def new_parameter(value, key: nil)
|
|
60
|
+
Parameter.new
|
|
61
|
+
.key(key)
|
|
62
|
+
.value(value)
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# SettlementBatchesApi
|
|
8
|
+
class SettlementBatchesApi < BaseApi
|
|
9
|
+
# Search settlement batches grouped by store.
|
|
10
|
+
# @param [SearchStoreRequest] body Required parameter: TODO: type
|
|
11
|
+
# description here
|
|
12
|
+
# @param [UUID | String] v_correlation_id Optional parameter: Correlation
|
|
13
|
+
# Id
|
|
14
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
15
|
+
def search_settlement_batches_store(body,
|
|
16
|
+
v_correlation_id: nil)
|
|
17
|
+
@api_call
|
|
18
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
19
|
+
'/search/store',
|
|
20
|
+
Server::DEFAULT)
|
|
21
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
22
|
+
.body_param(new_parameter(body)
|
|
23
|
+
.is_required(true))
|
|
24
|
+
.header_param(new_parameter(v_correlation_id, key: 'v-correlation-id'))
|
|
25
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
26
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
27
|
+
.auth(Single.new('api_key')))
|
|
28
|
+
.response(new_response_handler
|
|
29
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
30
|
+
.deserialize_into(SearchStoreResponse.method(:from_hash))
|
|
31
|
+
.is_api_response(true)
|
|
32
|
+
.local_error('default',
|
|
33
|
+
'Default errors',
|
|
34
|
+
SearchStore0ErrorException))
|
|
35
|
+
.execute
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Search settlement batches grouped by date.
|
|
39
|
+
# @param [SearchDateRequest] body Required parameter: TODO: type description
|
|
40
|
+
# here
|
|
41
|
+
# @param [UUID | String] v_correlation_id Optional parameter: Correlation
|
|
42
|
+
# Id
|
|
43
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
44
|
+
def search_settlement_batches_date(body,
|
|
45
|
+
v_correlation_id: nil)
|
|
46
|
+
@api_call
|
|
47
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
48
|
+
'/search/date',
|
|
49
|
+
Server::DEFAULT)
|
|
50
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
51
|
+
.body_param(new_parameter(body)
|
|
52
|
+
.is_required(true))
|
|
53
|
+
.header_param(new_parameter(v_correlation_id, key: 'v-correlation-id'))
|
|
54
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
55
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
56
|
+
.auth(Single.new('api_key')))
|
|
57
|
+
.response(new_response_handler
|
|
58
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
59
|
+
.deserialize_into(SearchDateResponse.method(:from_hash))
|
|
60
|
+
.is_api_response(true)
|
|
61
|
+
.local_error('default',
|
|
62
|
+
'Default errors',
|
|
63
|
+
SearchDate0ErrorException))
|
|
64
|
+
.execute
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# SettlementDailyTotalsApi
|
|
8
|
+
class SettlementDailyTotalsApi < BaseApi
|
|
9
|
+
# Retrieve the settled transactions daily financial activity for a given
|
|
10
|
+
# hierarchy and date range. Optional fields help refine the search.
|
|
11
|
+
# @param [SettlementsDailyTotalsSearchRequest] body Required parameter:
|
|
12
|
+
# TODO: type description here
|
|
13
|
+
# @param [UUID | String] v_correlation_id Optional parameter: Correlation
|
|
14
|
+
# Id
|
|
15
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
16
|
+
def search_settlements_daily_totals(body,
|
|
17
|
+
v_correlation_id: nil)
|
|
18
|
+
@api_call
|
|
19
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
20
|
+
'/settlements/daily-totals/search',
|
|
21
|
+
Server::DEFAULT)
|
|
22
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
23
|
+
.body_param(new_parameter(body)
|
|
24
|
+
.is_required(true))
|
|
25
|
+
.header_param(new_parameter(v_correlation_id, key: 'v-correlation-id'))
|
|
26
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
27
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
28
|
+
.auth(Single.new('api_key')))
|
|
29
|
+
.response(new_response_handler
|
|
30
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
31
|
+
.deserialize_into(SettlementsDailyTotalsSearchResponse.method(:from_hash))
|
|
32
|
+
.is_api_response(true)
|
|
33
|
+
.local_error('default',
|
|
34
|
+
'Default errors',
|
|
35
|
+
SettlementsDailyTotalsSearch0ErrorException))
|
|
36
|
+
.execute
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# SettlementErrorsApi
|
|
8
|
+
class SettlementErrorsApi < BaseApi
|
|
9
|
+
# Search settlement rejections.
|
|
10
|
+
# @param [SettlementerrorsSettlementfileerrorsSearchRequest] body Required
|
|
11
|
+
# parameter: TODO: type description here
|
|
12
|
+
# @param [UUID | String] v_correlation_id Optional parameter: Correlation
|
|
13
|
+
# Id
|
|
14
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
15
|
+
def search_settlement_rejects(body,
|
|
16
|
+
v_correlation_id: nil)
|
|
17
|
+
@api_call
|
|
18
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
19
|
+
'/settlementerrors/settlementfileerrors/search',
|
|
20
|
+
Server::DEFAULT)
|
|
21
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
22
|
+
.body_param(new_parameter(body)
|
|
23
|
+
.is_required(true))
|
|
24
|
+
.header_param(new_parameter(v_correlation_id, key: 'v-correlation-id'))
|
|
25
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
26
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
27
|
+
.auth(Single.new('api_key')))
|
|
28
|
+
.response(new_response_handler
|
|
29
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
30
|
+
.deserialize_into(SettlementerrorsSettlementfileerrorsSearchResponse.method(:from_hash))
|
|
31
|
+
.is_api_response(true)
|
|
32
|
+
.local_error('default',
|
|
33
|
+
'Default errors',
|
|
34
|
+
SettlementerrorsSettlementfileerrorsSearch0ErrorException))
|
|
35
|
+
.execute
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Search bank card rejections.
|
|
39
|
+
# @param [SettlementerrorsPendingsettlementbatchesSearchRequest] body
|
|
40
|
+
# Required parameter: TODO: type description here
|
|
41
|
+
# @param [UUID | String] v_correlation_id Optional parameter: Correlation
|
|
42
|
+
# Id
|
|
43
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
44
|
+
def search_bank_card_rejects(body,
|
|
45
|
+
v_correlation_id: nil)
|
|
46
|
+
@api_call
|
|
47
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
48
|
+
'/settlementerrors/pendingsettlementbatches/search',
|
|
49
|
+
Server::DEFAULT)
|
|
50
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
51
|
+
.body_param(new_parameter(body)
|
|
52
|
+
.is_required(true))
|
|
53
|
+
.header_param(new_parameter(v_correlation_id, key: 'v-correlation-id'))
|
|
54
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
55
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
56
|
+
.auth(Single.new('api_key')))
|
|
57
|
+
.response(new_response_handler
|
|
58
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
59
|
+
.deserialize_into(SettlementerrorsPendingsettlementbatchesSearchResponse.method(:from_hash))
|
|
60
|
+
.is_api_response(true)
|
|
61
|
+
.local_error('default',
|
|
62
|
+
'Default errors',
|
|
63
|
+
SettlementerrorsPendingsettlementbatchesSearch0ErrorException))
|
|
64
|
+
.execute
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# SettlementsApi
|
|
8
|
+
class SettlementsApi < BaseApi
|
|
9
|
+
# Endpoint to retrieve the settled transaction details for a given hierarchy
|
|
10
|
+
# and date range, with a 45-day limit and unrestricted lookup period.
|
|
11
|
+
# Optional fields help refine the search.
|
|
12
|
+
# @param [SettlementsSearchRequest] body Required parameter: TODO: type
|
|
13
|
+
# description here
|
|
14
|
+
# @param [UUID | String] v_correlation_id Optional parameter: Correlation
|
|
15
|
+
# Id
|
|
16
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
17
|
+
def search_settlements(body,
|
|
18
|
+
v_correlation_id: nil)
|
|
19
|
+
@api_call
|
|
20
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
21
|
+
'/settlements/search',
|
|
22
|
+
Server::DEFAULT)
|
|
23
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
24
|
+
.body_param(new_parameter(body)
|
|
25
|
+
.is_required(true))
|
|
26
|
+
.header_param(new_parameter(v_correlation_id, key: 'v-correlation-id'))
|
|
27
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
28
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
29
|
+
.auth(Single.new('api_key')))
|
|
30
|
+
.response(new_response_handler
|
|
31
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
32
|
+
.deserialize_into(SettlementsSearchResponse.method(:from_hash))
|
|
33
|
+
.is_api_response(true)
|
|
34
|
+
.local_error('default',
|
|
35
|
+
'Default errors',
|
|
36
|
+
SettlementsSearch0ErrorException))
|
|
37
|
+
.execute
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# TransactionStatusApi
|
|
8
|
+
class TransactionStatusApi < BaseApi
|
|
9
|
+
# Indicates the current state of a financial transaction, whether it's
|
|
10
|
+
# pending, completed, failed, or under review.
|
|
11
|
+
# @param [UUID | String] v_correlation_id Optional parameter: Correlation
|
|
12
|
+
# Id
|
|
13
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
14
|
+
def get_transaction_status(v_correlation_id: nil)
|
|
15
|
+
@api_call
|
|
16
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
17
|
+
'/transaction-statuses',
|
|
18
|
+
Server::DEFAULT)
|
|
19
|
+
.header_param(new_parameter(v_correlation_id, key: 'v-correlation-id'))
|
|
20
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
21
|
+
.auth(Single.new('api_key')))
|
|
22
|
+
.response(new_response_handler
|
|
23
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
24
|
+
.deserialize_into(TransactionStatusCode.method(:from_hash))
|
|
25
|
+
.is_api_response(true)
|
|
26
|
+
.is_response_array(true)
|
|
27
|
+
.local_error('default',
|
|
28
|
+
'Default errors',
|
|
29
|
+
TransactionStatuses0ErrorException))
|
|
30
|
+
.execute
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# TransactionTypeApi
|
|
8
|
+
class TransactionTypeApi < BaseApi
|
|
9
|
+
# The specific nature or purpose of a financial activity, such as purchases,
|
|
10
|
+
# withdrawals, or transfers.
|
|
11
|
+
# @param [UUID | String] v_correlation_id Optional parameter: Correlation
|
|
12
|
+
# Id
|
|
13
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
14
|
+
def get_transaction_type(v_correlation_id: nil)
|
|
15
|
+
@api_call
|
|
16
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
17
|
+
'/transaction-types',
|
|
18
|
+
Server::DEFAULT)
|
|
19
|
+
.header_param(new_parameter(v_correlation_id, key: 'v-correlation-id'))
|
|
20
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
21
|
+
.auth(Single.new('api_key')))
|
|
22
|
+
.response(new_response_handler
|
|
23
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
24
|
+
.deserialize_into(TransactionTypeCode.method(:from_hash))
|
|
25
|
+
.is_api_response(true)
|
|
26
|
+
.is_response_array(true)
|
|
27
|
+
.local_error('default',
|
|
28
|
+
'Default errors',
|
|
29
|
+
TransactionTypes0ErrorException))
|
|
30
|
+
.execute
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# reporting_settlement_research_api client class.
|
|
8
|
+
class Client
|
|
9
|
+
include CoreLibrary
|
|
10
|
+
attr_reader :config, :auth_managers
|
|
11
|
+
|
|
12
|
+
def user_agent_detail
|
|
13
|
+
config.user_agent_detail
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Access to settlements controller.
|
|
17
|
+
# @return [SettlementsApi] Returns the controller instance.
|
|
18
|
+
def settlements
|
|
19
|
+
@settlements ||= SettlementsApi.new @global_configuration
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Access to settlement_errors controller.
|
|
23
|
+
# @return [SettlementErrorsApi] Returns the controller instance.
|
|
24
|
+
def settlement_errors
|
|
25
|
+
@settlement_errors ||= SettlementErrorsApi.new @global_configuration
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Access to settlement_daily_totals controller.
|
|
29
|
+
# @return [SettlementDailyTotalsApi] Returns the controller instance.
|
|
30
|
+
def settlement_daily_totals
|
|
31
|
+
@settlement_daily_totals ||= SettlementDailyTotalsApi.new @global_configuration
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Access to settlement_batches controller.
|
|
35
|
+
# @return [SettlementBatchesApi] Returns the controller instance.
|
|
36
|
+
def settlement_batches
|
|
37
|
+
@settlement_batches ||= SettlementBatchesApi.new @global_configuration
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Access to transaction_type controller.
|
|
41
|
+
# @return [TransactionTypeApi] Returns the controller instance.
|
|
42
|
+
def transaction_type
|
|
43
|
+
@transaction_type ||= TransactionTypeApi.new @global_configuration
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Access to transaction_status controller.
|
|
47
|
+
# @return [TransactionStatusApi] Returns the controller instance.
|
|
48
|
+
def transaction_status
|
|
49
|
+
@transaction_status ||= TransactionStatusApi.new @global_configuration
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def initialize(
|
|
53
|
+
connection: nil, adapter: :net_http_persistent, timeout: 60,
|
|
54
|
+
max_retries: 0, retry_interval: 1, backoff_factor: 2,
|
|
55
|
+
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
|
|
56
|
+
retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
|
|
57
|
+
logging_configuration: nil, environment: Environment::PRODUCTION,
|
|
58
|
+
custom_header_authentication_credentials: nil, config: nil
|
|
59
|
+
)
|
|
60
|
+
@config = if config.nil?
|
|
61
|
+
Configuration.new(
|
|
62
|
+
connection: connection, adapter: adapter, timeout: timeout,
|
|
63
|
+
max_retries: max_retries, retry_interval: retry_interval,
|
|
64
|
+
backoff_factor: backoff_factor,
|
|
65
|
+
retry_statuses: retry_statuses,
|
|
66
|
+
retry_methods: retry_methods, http_callback: http_callback,
|
|
67
|
+
proxy_settings: proxy_settings,
|
|
68
|
+
logging_configuration: logging_configuration,
|
|
69
|
+
environment: environment,
|
|
70
|
+
custom_header_authentication_credentials: custom_header_authentication_credentials
|
|
71
|
+
)
|
|
72
|
+
else
|
|
73
|
+
config
|
|
74
|
+
end
|
|
75
|
+
user_agent_params = BaseApi.user_agent_parameters
|
|
76
|
+
|
|
77
|
+
@global_configuration = GlobalConfiguration.new(client_configuration: @config)
|
|
78
|
+
.base_uri_executor(@config.method(:get_base_uri))
|
|
79
|
+
.global_errors(BaseApi::GLOBAL_ERRORS)
|
|
80
|
+
.user_agent(BaseApi.user_agent,
|
|
81
|
+
agent_parameters: user_agent_params)
|
|
82
|
+
|
|
83
|
+
initialize_auth_managers(@global_configuration)
|
|
84
|
+
@global_configuration = @global_configuration.auth_managers(@auth_managers)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Initializes the auth managers hash used for authenticating API calls.
|
|
88
|
+
# @param [GlobalConfiguration] global_config The global configuration of the SDK)
|
|
89
|
+
def initialize_auth_managers(global_config)
|
|
90
|
+
@auth_managers = {}
|
|
91
|
+
http_client_config = global_config.client_configuration
|
|
92
|
+
%w[api_key].each { |auth| @auth_managers[auth] = nil }
|
|
93
|
+
@auth_managers['api_key'] = CustomHeaderAuthentication.new(
|
|
94
|
+
http_client_config.custom_header_authentication_credentials
|
|
95
|
+
)
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Creates a client directly from environment variables.
|
|
99
|
+
def self.from_env(**overrides)
|
|
100
|
+
default_config = Configuration.build_default_config_from_env
|
|
101
|
+
new_config = default_config.clone_with(**overrides)
|
|
102
|
+
new(config: new_config)
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|