pnz-payments-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 +98 -0
- data/lib/account_and_transaction_api_specification/api_helper.rb +10 -0
- data/lib/account_and_transaction_api_specification/client.rb +114 -0
- data/lib/account_and_transaction_api_specification/configuration.rb +127 -0
- data/lib/account_and_transaction_api_specification/controllers/accounts_controller.rb +146 -0
- data/lib/account_and_transaction_api_specification/controllers/balances_controller.rb +146 -0
- data/lib/account_and_transaction_api_specification/controllers/base_controller.rb +66 -0
- data/lib/account_and_transaction_api_specification/controllers/beneficiaries_controller.rb +146 -0
- data/lib/account_and_transaction_api_specification/controllers/direct_debits_controller.rb +146 -0
- data/lib/account_and_transaction_api_specification/controllers/offers_controller.rb +146 -0
- data/lib/account_and_transaction_api_specification/controllers/party_controller.rb +146 -0
- data/lib/account_and_transaction_api_specification/controllers/scheduled_payments_controller.rb +146 -0
- data/lib/account_and_transaction_api_specification/controllers/standing_orders_controller.rb +146 -0
- data/lib/account_and_transaction_api_specification/controllers/statements_controller.rb +421 -0
- data/lib/account_and_transaction_api_specification/controllers/transactions_controller.rb +170 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_balances400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_balances403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_balances500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_balances503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_beneficiaries400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_beneficiaries403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_beneficiaries500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_beneficiaries503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_direct_debits400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_direct_debits403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_direct_debits500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_direct_debits503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_offers400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_offers403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_offers500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_offers503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_party400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_party403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_party500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_party503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_scheduled_payments400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_scheduled_payments403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_scheduled_payments500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_scheduled_payments503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_standing_orders400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_standing_orders403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_standing_orders500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_standing_orders503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_statements400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_statements403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_statements500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_statements503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_statements_transactions400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_statements_transactions403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_statements_transactions500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_statements_transactions503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_transactions400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_transactions403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_transactions500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/accounts_transactions503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/api_exception.rb +21 -0
- data/lib/account_and_transaction_api_specification/exceptions/balances400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/balances403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/balances500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/balances503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/beneficiaries400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/beneficiaries403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/beneficiaries500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/beneficiaries503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/direct_debits400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/direct_debits403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/direct_debits500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/direct_debits503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/offers400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/offers403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/offers500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/offers503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/party400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/party403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/party500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/party503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/scheduled_payments400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/scheduled_payments403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/scheduled_payments500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/scheduled_payments503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/standing_orders400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/standing_orders403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/standing_orders500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/standing_orders503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/statements400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/statements403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/statements500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/statements503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/transactions400_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/transactions403_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/transactions500_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/exceptions/transactions503_error_exception.rb +72 -0
- data/lib/account_and_transaction_api_specification/http/auth/o_auth2.rb +43 -0
- data/lib/account_and_transaction_api_specification/http/http_call_back.rb +10 -0
- data/lib/account_and_transaction_api_specification/http/http_method_enum.rb +10 -0
- data/lib/account_and_transaction_api_specification/http/http_request.rb +10 -0
- data/lib/account_and_transaction_api_specification/http/http_response.rb +10 -0
- data/lib/account_and_transaction_api_specification/models/account.rb +100 -0
- data/lib/account_and_transaction_api_specification/models/account_access_consent.rb +69 -0
- data/lib/account_and_transaction_api_specification/models/account_access_consent_model.rb +60 -0
- data/lib/account_and_transaction_api_specification/models/account_access_consent_pos_tresponse.rb +86 -0
- data/lib/account_and_transaction_api_specification/models/account_access_consent_response.rb +86 -0
- data/lib/account_and_transaction_api_specification/models/account_access_consent_response_model.rb +120 -0
- data/lib/account_and_transaction_api_specification/models/account_access_status_enum.rb +29 -0
- data/lib/account_and_transaction_api_specification/models/account_model.rb +137 -0
- data/lib/account_and_transaction_api_specification/models/account_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/account_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/account_scheme_model_enum.rb +23 -0
- data/lib/account_and_transaction_api_specification/models/account_sub_type_enum.rb +41 -0
- data/lib/account_and_transaction_api_specification/models/account_type_enum.rb +23 -0
- data/lib/account_and_transaction_api_specification/models/address.rb +137 -0
- data/lib/account_and_transaction_api_specification/models/address_type_enum.rb +20 -0
- data/lib/account_and_transaction_api_specification/models/address_type_option_enum.rb +41 -0
- data/lib/account_and_transaction_api_specification/models/amount.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/authorisation_type_enum.rb +26 -0
- data/lib/account_and_transaction_api_specification/models/balance.rb +82 -0
- data/lib/account_and_transaction_api_specification/models/balance_model.rb +136 -0
- data/lib/account_and_transaction_api_specification/models/balance_model_type_enum.rb +47 -0
- data/lib/account_and_transaction_api_specification/models/balances_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/balances_response_data.rb +69 -0
- data/lib/account_and_transaction_api_specification/models/bank_transaction_code.rb +69 -0
- data/lib/account_and_transaction_api_specification/models/base_model.rb +110 -0
- data/lib/account_and_transaction_api_specification/models/becs_remittance.rb +109 -0
- data/lib/account_and_transaction_api_specification/models/beneficiaries_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/beneficiaries_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/beneficiary_model.rb +110 -0
- data/lib/account_and_transaction_api_specification/models/card_instrument.rb +97 -0
- data/lib/account_and_transaction_api_specification/models/card_scheme_name_enum.rb +32 -0
- data/lib/account_and_transaction_api_specification/models/consent.rb +145 -0
- data/lib/account_and_transaction_api_specification/models/credit_debit_indicator_enum.rb +24 -0
- data/lib/account_and_transaction_api_specification/models/credit_line.rb +82 -0
- data/lib/account_and_transaction_api_specification/models/credit_line_type_enum.rb +26 -0
- data/lib/account_and_transaction_api_specification/models/creditor_account.rb +102 -0
- data/lib/account_and_transaction_api_specification/models/creditor_agent.rb +100 -0
- data/lib/account_and_transaction_api_specification/models/creditor_reference.rb +81 -0
- data/lib/account_and_transaction_api_specification/models/currency_exchange.rb +147 -0
- data/lib/account_and_transaction_api_specification/models/data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/debtor_account.rb +102 -0
- data/lib/account_and_transaction_api_specification/models/debtor_agent.rb +70 -0
- data/lib/account_and_transaction_api_specification/models/debtor_reference.rb +81 -0
- data/lib/account_and_transaction_api_specification/models/delivery_address.rb +138 -0
- data/lib/account_and_transaction_api_specification/models/direct_debit_model.rb +146 -0
- data/lib/account_and_transaction_api_specification/models/direct_debit_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/direct_debit_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/direct_debit_status_code_enum.rb +23 -0
- data/lib/account_and_transaction_api_specification/models/error.rb +92 -0
- data/lib/account_and_transaction_api_specification/models/error_code_enum.rb +100 -0
- data/lib/account_and_transaction_api_specification/models/error_response.rb +100 -0
- data/lib/account_and_transaction_api_specification/models/fee.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/final_payment_amount.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/first_payment_amount.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/geo_location.rb +72 -0
- data/lib/account_and_transaction_api_specification/models/get_account_offers_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_account_party_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_account_party_response_data.rb +62 -0
- data/lib/account_and_transaction_api_specification/models/get_account_scheduled_payments_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_account_statement_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_account_statement_response_data.rb +62 -0
- data/lib/account_and_transaction_api_specification/models/get_account_statement_transactions_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_account_statement_transactions_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/get_account_statements_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_account_statements_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/get_offers_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_offers_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/get_party_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_scheduled_payments_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_scheduled_payments_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/get_statements_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/get_statements_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/instructed_amount.rb +73 -0
- data/lib/account_and_transaction_api_specification/models/links.rb +100 -0
- data/lib/account_and_transaction_api_specification/models/merchant_details.rb +75 -0
- data/lib/account_and_transaction_api_specification/models/meta.rb +112 -0
- data/lib/account_and_transaction_api_specification/models/meta_data.rb +112 -0
- data/lib/account_and_transaction_api_specification/models/next_payment_amount.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/offer_model.rb +199 -0
- data/lib/account_and_transaction_api_specification/models/offer_type_enum.rb +32 -0
- data/lib/account_and_transaction_api_specification/models/party_model.rb +144 -0
- data/lib/account_and_transaction_api_specification/models/party_type_enum.rb +26 -0
- data/lib/account_and_transaction_api_specification/models/payment_context_code_enum.rb +32 -0
- data/lib/account_and_transaction_api_specification/models/permission_enum.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/postal_address.rb +138 -0
- data/lib/account_and_transaction_api_specification/models/previous_payment_amount.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/proprietary_bank_transaction_code.rb +70 -0
- data/lib/account_and_transaction_api_specification/models/reference.rb +95 -0
- data/lib/account_and_transaction_api_specification/models/risk.rb +164 -0
- data/lib/account_and_transaction_api_specification/models/scheduled_payment_model.rb +155 -0
- data/lib/account_and_transaction_api_specification/models/scheduled_type_enum.rb +23 -0
- data/lib/account_and_transaction_api_specification/models/scheme_name_enum.rb +21 -0
- data/lib/account_and_transaction_api_specification/models/servicer.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/standing_order_model.rb +289 -0
- data/lib/account_and_transaction_api_specification/models/standing_order_status_code_enum.rb +23 -0
- data/lib/account_and_transaction_api_specification/models/standing_orders_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/standing_orders_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/models/statement.rb +313 -0
- data/lib/account_and_transaction_api_specification/models/statement_amount.rb +81 -0
- data/lib/account_and_transaction_api_specification/models/statement_amount_type_enum.rb +83 -0
- data/lib/account_and_transaction_api_specification/models/statement_benefit.rb +69 -0
- data/lib/account_and_transaction_api_specification/models/statement_benefit_type_enum.rb +29 -0
- data/lib/account_and_transaction_api_specification/models/statement_date_time.rb +81 -0
- data/lib/account_and_transaction_api_specification/models/statement_date_time_type_enum.rb +41 -0
- data/lib/account_and_transaction_api_specification/models/statement_fee.rb +80 -0
- data/lib/account_and_transaction_api_specification/models/statement_fee_type_enum.rb +59 -0
- data/lib/account_and_transaction_api_specification/models/statement_interest.rb +81 -0
- data/lib/account_and_transaction_api_specification/models/statement_interest_type_enum.rb +32 -0
- data/lib/account_and_transaction_api_specification/models/statement_model.rb +313 -0
- data/lib/account_and_transaction_api_specification/models/statement_rate.rb +69 -0
- data/lib/account_and_transaction_api_specification/models/statement_rate_type_enum.rb +47 -0
- data/lib/account_and_transaction_api_specification/models/statement_type_enum.rb +32 -0
- data/lib/account_and_transaction_api_specification/models/statement_value.rb +69 -0
- data/lib/account_and_transaction_api_specification/models/statement_value_type_enum.rb +41 -0
- data/lib/account_and_transaction_api_specification/models/transaction_model.rb +333 -0
- data/lib/account_and_transaction_api_specification/models/transaction_reference.rb +95 -0
- data/lib/account_and_transaction_api_specification/models/transaction_status_enum.rb +23 -0
- data/lib/account_and_transaction_api_specification/models/transactions_response.rb +76 -0
- data/lib/account_and_transaction_api_specification/models/transactions_response_data.rb +71 -0
- data/lib/account_and_transaction_api_specification/utilities/date_time_helper.rb +11 -0
- data/lib/account_and_transaction_api_specification/utilities/file_wrapper.rb +28 -0
- data/lib/account_and_transaction_api_specification.rb +439 -0
- data/test/controllers/controller_test_base.rb +29 -0
- data/test/controllers/test_accounts_controller.rb +45 -0
- data/test/controllers/test_balances_controller.rb +45 -0
- data/test/controllers/test_beneficiaries_controller.rb +45 -0
- data/test/controllers/test_direct_debits_controller.rb +45 -0
- data/test/controllers/test_offers_controller.rb +45 -0
- data/test/controllers/test_party_controller.rb +45 -0
- data/test/controllers/test_scheduled_payments_controller.rb +45 -0
- data/test/controllers/test_standing_orders_controller.rb +45 -0
- data/test/controllers/test_statements_controller.rb +49 -0
- data/test/controllers/test_transactions_controller.rb +49 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +349 -0
data/lib/account_and_transaction_api_specification/exceptions/statements403_error_exception.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Statements 403 Error class.
|
8
|
+
class Statements403ErrorException < APIException
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# High level textual error code to help categorise the errors.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :code
|
15
|
+
|
16
|
+
# A unique reference for the error instance, for audit purposes, in case of
|
17
|
+
# unknown/unclassified errors.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
22
|
+
# parameters provided'
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :message
|
25
|
+
|
26
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
27
|
+
# parameters provided'
|
28
|
+
# @return [Array[Error]]
|
29
|
+
attr_accessor :errors
|
30
|
+
|
31
|
+
# The constructor.
|
32
|
+
# @param [String] The reason for raising an exception.
|
33
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
34
|
+
def initialize(reason, response)
|
35
|
+
super(reason, response)
|
36
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
37
|
+
unbox(hash)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Populates this object by extracting properties from a hash.
|
41
|
+
# @param [Hash] The deserialized response sent by the server in the
|
42
|
+
# response body.
|
43
|
+
def unbox(hash)
|
44
|
+
@code = hash.key?('Code') ? hash['Code'] : nil
|
45
|
+
@id = hash.key?('Id') ? hash['Id'] : SKIP
|
46
|
+
@message = hash.key?('Message') ? hash['Message'] : nil
|
47
|
+
# Parameter is an array, so we need to iterate through it
|
48
|
+
@errors = nil
|
49
|
+
unless hash['Errors'].nil?
|
50
|
+
@errors = []
|
51
|
+
hash['Errors'].each do |structure|
|
52
|
+
@errors << (Error.from_hash(structure) if structure)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
@errors = nil unless hash.key?('Errors')
|
57
|
+
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} code: #{@code}, id: #{@id}, message: #{@message}, errors: #{@errors}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} code: #{@code.inspect}, id: #{@id.inspect}, message: #{@message.inspect},"\
|
69
|
+
" errors: #{@errors.inspect}>"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/lib/account_and_transaction_api_specification/exceptions/statements500_error_exception.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Statements 500 Error class.
|
8
|
+
class Statements500ErrorException < APIException
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# High level textual error code to help categorise the errors.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :code
|
15
|
+
|
16
|
+
# A unique reference for the error instance, for audit purposes, in case of
|
17
|
+
# unknown/unclassified errors.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
22
|
+
# parameters provided'
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :message
|
25
|
+
|
26
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
27
|
+
# parameters provided'
|
28
|
+
# @return [Array[Error]]
|
29
|
+
attr_accessor :errors
|
30
|
+
|
31
|
+
# The constructor.
|
32
|
+
# @param [String] The reason for raising an exception.
|
33
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
34
|
+
def initialize(reason, response)
|
35
|
+
super(reason, response)
|
36
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
37
|
+
unbox(hash)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Populates this object by extracting properties from a hash.
|
41
|
+
# @param [Hash] The deserialized response sent by the server in the
|
42
|
+
# response body.
|
43
|
+
def unbox(hash)
|
44
|
+
@code = hash.key?('Code') ? hash['Code'] : nil
|
45
|
+
@id = hash.key?('Id') ? hash['Id'] : SKIP
|
46
|
+
@message = hash.key?('Message') ? hash['Message'] : nil
|
47
|
+
# Parameter is an array, so we need to iterate through it
|
48
|
+
@errors = nil
|
49
|
+
unless hash['Errors'].nil?
|
50
|
+
@errors = []
|
51
|
+
hash['Errors'].each do |structure|
|
52
|
+
@errors << (Error.from_hash(structure) if structure)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
@errors = nil unless hash.key?('Errors')
|
57
|
+
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} code: #{@code}, id: #{@id}, message: #{@message}, errors: #{@errors}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} code: #{@code.inspect}, id: #{@id.inspect}, message: #{@message.inspect},"\
|
69
|
+
" errors: #{@errors.inspect}>"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/lib/account_and_transaction_api_specification/exceptions/statements503_error_exception.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Statements 503 Error class.
|
8
|
+
class Statements503ErrorException < APIException
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# High level textual error code to help categorise the errors.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :code
|
15
|
+
|
16
|
+
# A unique reference for the error instance, for audit purposes, in case of
|
17
|
+
# unknown/unclassified errors.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
22
|
+
# parameters provided'
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :message
|
25
|
+
|
26
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
27
|
+
# parameters provided'
|
28
|
+
# @return [Array[Error]]
|
29
|
+
attr_accessor :errors
|
30
|
+
|
31
|
+
# The constructor.
|
32
|
+
# @param [String] The reason for raising an exception.
|
33
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
34
|
+
def initialize(reason, response)
|
35
|
+
super(reason, response)
|
36
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
37
|
+
unbox(hash)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Populates this object by extracting properties from a hash.
|
41
|
+
# @param [Hash] The deserialized response sent by the server in the
|
42
|
+
# response body.
|
43
|
+
def unbox(hash)
|
44
|
+
@code = hash.key?('Code') ? hash['Code'] : nil
|
45
|
+
@id = hash.key?('Id') ? hash['Id'] : SKIP
|
46
|
+
@message = hash.key?('Message') ? hash['Message'] : nil
|
47
|
+
# Parameter is an array, so we need to iterate through it
|
48
|
+
@errors = nil
|
49
|
+
unless hash['Errors'].nil?
|
50
|
+
@errors = []
|
51
|
+
hash['Errors'].each do |structure|
|
52
|
+
@errors << (Error.from_hash(structure) if structure)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
@errors = nil unless hash.key?('Errors')
|
57
|
+
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} code: #{@code}, id: #{@id}, message: #{@message}, errors: #{@errors}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} code: #{@code.inspect}, id: #{@id.inspect}, message: #{@message.inspect},"\
|
69
|
+
" errors: #{@errors.inspect}>"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/lib/account_and_transaction_api_specification/exceptions/transactions400_error_exception.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Transactions 400 Error class.
|
8
|
+
class Transactions400ErrorException < APIException
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# High level textual error code to help categorise the errors.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :code
|
15
|
+
|
16
|
+
# A unique reference for the error instance, for audit purposes, in case of
|
17
|
+
# unknown/unclassified errors.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
22
|
+
# parameters provided'
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :message
|
25
|
+
|
26
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
27
|
+
# parameters provided'
|
28
|
+
# @return [Array[Error]]
|
29
|
+
attr_accessor :errors
|
30
|
+
|
31
|
+
# The constructor.
|
32
|
+
# @param [String] The reason for raising an exception.
|
33
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
34
|
+
def initialize(reason, response)
|
35
|
+
super(reason, response)
|
36
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
37
|
+
unbox(hash)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Populates this object by extracting properties from a hash.
|
41
|
+
# @param [Hash] The deserialized response sent by the server in the
|
42
|
+
# response body.
|
43
|
+
def unbox(hash)
|
44
|
+
@code = hash.key?('Code') ? hash['Code'] : nil
|
45
|
+
@id = hash.key?('Id') ? hash['Id'] : SKIP
|
46
|
+
@message = hash.key?('Message') ? hash['Message'] : nil
|
47
|
+
# Parameter is an array, so we need to iterate through it
|
48
|
+
@errors = nil
|
49
|
+
unless hash['Errors'].nil?
|
50
|
+
@errors = []
|
51
|
+
hash['Errors'].each do |structure|
|
52
|
+
@errors << (Error.from_hash(structure) if structure)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
@errors = nil unless hash.key?('Errors')
|
57
|
+
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} code: #{@code}, id: #{@id}, message: #{@message}, errors: #{@errors}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} code: #{@code.inspect}, id: #{@id.inspect}, message: #{@message.inspect},"\
|
69
|
+
" errors: #{@errors.inspect}>"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/lib/account_and_transaction_api_specification/exceptions/transactions403_error_exception.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Transactions 403 Error class.
|
8
|
+
class Transactions403ErrorException < APIException
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# High level textual error code to help categorise the errors.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :code
|
15
|
+
|
16
|
+
# A unique reference for the error instance, for audit purposes, in case of
|
17
|
+
# unknown/unclassified errors.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
22
|
+
# parameters provided'
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :message
|
25
|
+
|
26
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
27
|
+
# parameters provided'
|
28
|
+
# @return [Array[Error]]
|
29
|
+
attr_accessor :errors
|
30
|
+
|
31
|
+
# The constructor.
|
32
|
+
# @param [String] The reason for raising an exception.
|
33
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
34
|
+
def initialize(reason, response)
|
35
|
+
super(reason, response)
|
36
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
37
|
+
unbox(hash)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Populates this object by extracting properties from a hash.
|
41
|
+
# @param [Hash] The deserialized response sent by the server in the
|
42
|
+
# response body.
|
43
|
+
def unbox(hash)
|
44
|
+
@code = hash.key?('Code') ? hash['Code'] : nil
|
45
|
+
@id = hash.key?('Id') ? hash['Id'] : SKIP
|
46
|
+
@message = hash.key?('Message') ? hash['Message'] : nil
|
47
|
+
# Parameter is an array, so we need to iterate through it
|
48
|
+
@errors = nil
|
49
|
+
unless hash['Errors'].nil?
|
50
|
+
@errors = []
|
51
|
+
hash['Errors'].each do |structure|
|
52
|
+
@errors << (Error.from_hash(structure) if structure)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
@errors = nil unless hash.key?('Errors')
|
57
|
+
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} code: #{@code}, id: #{@id}, message: #{@message}, errors: #{@errors}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} code: #{@code.inspect}, id: #{@id.inspect}, message: #{@message.inspect},"\
|
69
|
+
" errors: #{@errors.inspect}>"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/lib/account_and_transaction_api_specification/exceptions/transactions500_error_exception.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Transactions 500 Error class.
|
8
|
+
class Transactions500ErrorException < APIException
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# High level textual error code to help categorise the errors.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :code
|
15
|
+
|
16
|
+
# A unique reference for the error instance, for audit purposes, in case of
|
17
|
+
# unknown/unclassified errors.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
22
|
+
# parameters provided'
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :message
|
25
|
+
|
26
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
27
|
+
# parameters provided'
|
28
|
+
# @return [Array[Error]]
|
29
|
+
attr_accessor :errors
|
30
|
+
|
31
|
+
# The constructor.
|
32
|
+
# @param [String] The reason for raising an exception.
|
33
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
34
|
+
def initialize(reason, response)
|
35
|
+
super(reason, response)
|
36
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
37
|
+
unbox(hash)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Populates this object by extracting properties from a hash.
|
41
|
+
# @param [Hash] The deserialized response sent by the server in the
|
42
|
+
# response body.
|
43
|
+
def unbox(hash)
|
44
|
+
@code = hash.key?('Code') ? hash['Code'] : nil
|
45
|
+
@id = hash.key?('Id') ? hash['Id'] : SKIP
|
46
|
+
@message = hash.key?('Message') ? hash['Message'] : nil
|
47
|
+
# Parameter is an array, so we need to iterate through it
|
48
|
+
@errors = nil
|
49
|
+
unless hash['Errors'].nil?
|
50
|
+
@errors = []
|
51
|
+
hash['Errors'].each do |structure|
|
52
|
+
@errors << (Error.from_hash(structure) if structure)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
@errors = nil unless hash.key?('Errors')
|
57
|
+
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} code: #{@code}, id: #{@id}, message: #{@message}, errors: #{@errors}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} code: #{@code.inspect}, id: #{@id.inspect}, message: #{@message.inspect},"\
|
69
|
+
" errors: #{@errors.inspect}>"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/lib/account_and_transaction_api_specification/exceptions/transactions503_error_exception.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Transactions 503 Error class.
|
8
|
+
class Transactions503ErrorException < APIException
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# High level textual error code to help categorise the errors.
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :code
|
15
|
+
|
16
|
+
# A unique reference for the error instance, for audit purposes, in case of
|
17
|
+
# unknown/unclassified errors.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
22
|
+
# parameters provided'
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :message
|
25
|
+
|
26
|
+
# Brief Error message. E.g., 'There is something wrong with the request
|
27
|
+
# parameters provided'
|
28
|
+
# @return [Array[Error]]
|
29
|
+
attr_accessor :errors
|
30
|
+
|
31
|
+
# The constructor.
|
32
|
+
# @param [String] The reason for raising an exception.
|
33
|
+
# @param [HttpResponse] The HttpReponse of the API call.
|
34
|
+
def initialize(reason, response)
|
35
|
+
super(reason, response)
|
36
|
+
hash = APIHelper.json_deserialize(@response.raw_body)
|
37
|
+
unbox(hash)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Populates this object by extracting properties from a hash.
|
41
|
+
# @param [Hash] The deserialized response sent by the server in the
|
42
|
+
# response body.
|
43
|
+
def unbox(hash)
|
44
|
+
@code = hash.key?('Code') ? hash['Code'] : nil
|
45
|
+
@id = hash.key?('Id') ? hash['Id'] : SKIP
|
46
|
+
@message = hash.key?('Message') ? hash['Message'] : nil
|
47
|
+
# Parameter is an array, so we need to iterate through it
|
48
|
+
@errors = nil
|
49
|
+
unless hash['Errors'].nil?
|
50
|
+
@errors = []
|
51
|
+
hash['Errors'].each do |structure|
|
52
|
+
@errors << (Error.from_hash(structure) if structure)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
@errors = nil unless hash.key?('Errors')
|
57
|
+
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} code: #{@code}, id: #{@id}, message: #{@message}, errors: #{@errors}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} code: #{@code.inspect}, id: #{@id.inspect}, message: #{@message.inspect},"\
|
69
|
+
" errors: #{@errors.inspect}>"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Utility class for OAuth 2 authorization and token management.
|
8
|
+
class OAuth2 < CoreLibrary::HeaderAuth
|
9
|
+
include CoreLibrary
|
10
|
+
# Display error message on occurrence of authentication failure.
|
11
|
+
# @returns [String] The oAuth error message.
|
12
|
+
def error_message
|
13
|
+
'BearerAuth: access_token is undefined.'
|
14
|
+
end
|
15
|
+
|
16
|
+
# Initialization constructor.
|
17
|
+
def initialize(bearer_auth_credentials)
|
18
|
+
auth_params = {}
|
19
|
+
@_access_token = bearer_auth_credentials.access_token unless
|
20
|
+
bearer_auth_credentials.nil? || bearer_auth_credentials.access_token.nil?
|
21
|
+
auth_params['Authorization'] = "Bearer #{@_access_token}" unless @_access_token.nil?
|
22
|
+
|
23
|
+
super auth_params
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
# Data class for BearerAuthCredentials.
|
28
|
+
class BearerAuthCredentials
|
29
|
+
attr_reader :access_token
|
30
|
+
|
31
|
+
def initialize(access_token:)
|
32
|
+
raise ArgumentError, 'access_token cannot be nil' if access_token.nil?
|
33
|
+
|
34
|
+
@access_token = access_token
|
35
|
+
end
|
36
|
+
|
37
|
+
def clone_with(access_token: nil)
|
38
|
+
access_token ||= self.access_token
|
39
|
+
|
40
|
+
BearerAuthCredentials.new(access_token: access_token)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# HttpCallBack allows defining callables for pre and post API calls.
|
8
|
+
class HttpCallBack < CoreLibrary::HttpCallback
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# HTTP Methods Enumeration.
|
8
|
+
class HttpMethodEnum < CoreLibrary::HttpMethod
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Represents a single Http Request.
|
8
|
+
class HttpRequest < CoreLibrary::HttpRequest
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module AccountAndTransactionApiSpecification
|
7
|
+
# Http response received.
|
8
|
+
class HttpResponse < CoreLibrary::HttpResponse
|
9
|
+
end
|
10
|
+
end
|