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
@@ -0,0 +1,138 @@
|
|
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
|
+
# Information that locates and identifies a specific address, as defined by
|
8
|
+
# postal services or in free format text.
|
9
|
+
class DeliveryAddress < BaseModel
|
10
|
+
SKIP = Object.new
|
11
|
+
private_constant :SKIP
|
12
|
+
|
13
|
+
# Identifies the nature of the postal address.
|
14
|
+
# @return [AddressTypeEnum]
|
15
|
+
attr_accessor :address_type
|
16
|
+
|
17
|
+
# Information that locates and identifies a specific address, as defined by
|
18
|
+
# postal services, that is presented in free format text.
|
19
|
+
# @return [Array[String]]
|
20
|
+
attr_accessor :address_line
|
21
|
+
|
22
|
+
# Name of a street or thoroughfare.
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :street_name
|
25
|
+
|
26
|
+
# Number that identifies the position of a building on a street.
|
27
|
+
# @return [String]
|
28
|
+
attr_accessor :building_number
|
29
|
+
|
30
|
+
# Identifier consisting of a group of letters and/or numbers that is added
|
31
|
+
# to a postal address to assist the sorting of mail
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :post_code
|
34
|
+
|
35
|
+
# Name of a built-up area, with defined boundaries, and a local government.
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :town_name
|
38
|
+
|
39
|
+
# Identifies a subdivision of a country, for instance state, region, county.
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :country_sub_division
|
42
|
+
|
43
|
+
# Nation with its own government, occupying a particular territory.
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :country
|
46
|
+
|
47
|
+
# A mapping from model property names to API property names.
|
48
|
+
def self.names
|
49
|
+
@_hash = {} if @_hash.nil?
|
50
|
+
@_hash['address_type'] = 'AddressType'
|
51
|
+
@_hash['address_line'] = 'AddressLine'
|
52
|
+
@_hash['street_name'] = 'StreetName'
|
53
|
+
@_hash['building_number'] = 'BuildingNumber'
|
54
|
+
@_hash['post_code'] = 'PostCode'
|
55
|
+
@_hash['town_name'] = 'TownName'
|
56
|
+
@_hash['country_sub_division'] = 'CountrySubDivision'
|
57
|
+
@_hash['country'] = 'Country'
|
58
|
+
@_hash
|
59
|
+
end
|
60
|
+
|
61
|
+
# An array for optional fields
|
62
|
+
def self.optionals
|
63
|
+
%w[
|
64
|
+
address_type
|
65
|
+
address_line
|
66
|
+
street_name
|
67
|
+
building_number
|
68
|
+
post_code
|
69
|
+
town_name
|
70
|
+
country_sub_division
|
71
|
+
]
|
72
|
+
end
|
73
|
+
|
74
|
+
# An array for nullable fields
|
75
|
+
def self.nullables
|
76
|
+
[]
|
77
|
+
end
|
78
|
+
|
79
|
+
def initialize(country = nil, address_type = SKIP, address_line = SKIP,
|
80
|
+
street_name = SKIP, building_number = SKIP, post_code = SKIP,
|
81
|
+
town_name = SKIP, country_sub_division = SKIP)
|
82
|
+
@address_type = address_type unless address_type == SKIP
|
83
|
+
@address_line = address_line unless address_line == SKIP
|
84
|
+
@street_name = street_name unless street_name == SKIP
|
85
|
+
@building_number = building_number unless building_number == SKIP
|
86
|
+
@post_code = post_code unless post_code == SKIP
|
87
|
+
@town_name = town_name unless town_name == SKIP
|
88
|
+
@country_sub_division = country_sub_division unless country_sub_division == SKIP
|
89
|
+
@country = country
|
90
|
+
end
|
91
|
+
|
92
|
+
# Creates an instance of the object from a hash.
|
93
|
+
def self.from_hash(hash)
|
94
|
+
return nil unless hash
|
95
|
+
|
96
|
+
# Extract variables from the hash.
|
97
|
+
country = hash.key?('Country') ? hash['Country'] : nil
|
98
|
+
address_type = hash.key?('AddressType') ? hash['AddressType'] : SKIP
|
99
|
+
address_line = hash.key?('AddressLine') ? hash['AddressLine'] : SKIP
|
100
|
+
street_name = hash.key?('StreetName') ? hash['StreetName'] : SKIP
|
101
|
+
building_number =
|
102
|
+
hash.key?('BuildingNumber') ? hash['BuildingNumber'] : SKIP
|
103
|
+
post_code = hash.key?('PostCode') ? hash['PostCode'] : SKIP
|
104
|
+
town_name = hash.key?('TownName') ? hash['TownName'] : SKIP
|
105
|
+
country_sub_division =
|
106
|
+
hash.key?('CountrySubDivision') ? hash['CountrySubDivision'] : SKIP
|
107
|
+
|
108
|
+
# Create object from extracted values.
|
109
|
+
DeliveryAddress.new(country,
|
110
|
+
address_type,
|
111
|
+
address_line,
|
112
|
+
street_name,
|
113
|
+
building_number,
|
114
|
+
post_code,
|
115
|
+
town_name,
|
116
|
+
country_sub_division)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Provides a human-readable string representation of the object.
|
120
|
+
def to_s
|
121
|
+
class_name = self.class.name.split('::').last
|
122
|
+
"<#{class_name} address_type: #{@address_type}, address_line: #{@address_line},"\
|
123
|
+
" street_name: #{@street_name}, building_number: #{@building_number}, post_code:"\
|
124
|
+
" #{@post_code}, town_name: #{@town_name}, country_sub_division: #{@country_sub_division},"\
|
125
|
+
" country: #{@country}>"
|
126
|
+
end
|
127
|
+
|
128
|
+
# Provides a debugging-friendly string with detailed object information.
|
129
|
+
def inspect
|
130
|
+
class_name = self.class.name.split('::').last
|
131
|
+
"<#{class_name} address_type: #{@address_type.inspect}, address_line:"\
|
132
|
+
" #{@address_line.inspect}, street_name: #{@street_name.inspect}, building_number:"\
|
133
|
+
" #{@building_number.inspect}, post_code: #{@post_code.inspect}, town_name:"\
|
134
|
+
" #{@town_name.inspect}, country_sub_division: #{@country_sub_division.inspect}, country:"\
|
135
|
+
" #{@country.inspect}>"
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
@@ -0,0 +1,146 @@
|
|
1
|
+
# account_and_transaction_api_specification
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
require 'date'
|
7
|
+
module AccountAndTransactionApiSpecification
|
8
|
+
# DirectDebitModel Model.
|
9
|
+
class DirectDebitModel < BaseModel
|
10
|
+
SKIP = Object.new
|
11
|
+
private_constant :SKIP
|
12
|
+
|
13
|
+
# A unique and immutable identifier used to identify the account resource.
|
14
|
+
# This identifier has no meaning to the account owner.
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :account_id
|
17
|
+
|
18
|
+
# A unique and immutable identifier used to identify the direct debit
|
19
|
+
# resource. This identifier has no meaning to the account owner.
|
20
|
+
# @return [String]
|
21
|
+
attr_accessor :direct_debit_id
|
22
|
+
|
23
|
+
# Direct Debit reference.
|
24
|
+
# @return [String]
|
25
|
+
attr_accessor :mandate_identification
|
26
|
+
|
27
|
+
# Specifies the status of the direct debit in code form.
|
28
|
+
# @return [DirectDebitStatusCodeEnum]
|
29
|
+
attr_accessor :direct_debit_status_code
|
30
|
+
|
31
|
+
# Name of Service User
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
|
+
# Date of most recent direct debit collection.
|
36
|
+
# All dates in the JSON payloads are represented in ISO 8601 date-time
|
37
|
+
# format.
|
38
|
+
# All date-time fields in responses must include the timezone. An example is
|
39
|
+
# below:
|
40
|
+
# 2017-04-05T10:43:07+00:00
|
41
|
+
# @return [DateTime]
|
42
|
+
attr_accessor :previous_payment_date_time
|
43
|
+
|
44
|
+
# The amount of the most recent direct debit collection.
|
45
|
+
# @return [PreviousPaymentAmount]
|
46
|
+
attr_accessor :previous_payment_amount
|
47
|
+
|
48
|
+
# A mapping from model property names to API property names.
|
49
|
+
def self.names
|
50
|
+
@_hash = {} if @_hash.nil?
|
51
|
+
@_hash['account_id'] = 'AccountId'
|
52
|
+
@_hash['direct_debit_id'] = 'DirectDebitId'
|
53
|
+
@_hash['mandate_identification'] = 'MandateIdentification'
|
54
|
+
@_hash['direct_debit_status_code'] = 'DirectDebitStatusCode'
|
55
|
+
@_hash['name'] = 'Name'
|
56
|
+
@_hash['previous_payment_date_time'] = 'PreviousPaymentDateTime'
|
57
|
+
@_hash['previous_payment_amount'] = 'PreviousPaymentAmount'
|
58
|
+
@_hash
|
59
|
+
end
|
60
|
+
|
61
|
+
# An array for optional fields
|
62
|
+
def self.optionals
|
63
|
+
%w[
|
64
|
+
direct_debit_id
|
65
|
+
direct_debit_status_code
|
66
|
+
previous_payment_date_time
|
67
|
+
previous_payment_amount
|
68
|
+
]
|
69
|
+
end
|
70
|
+
|
71
|
+
# An array for nullable fields
|
72
|
+
def self.nullables
|
73
|
+
[]
|
74
|
+
end
|
75
|
+
|
76
|
+
def initialize(account_id = nil, mandate_identification = nil, name = nil,
|
77
|
+
direct_debit_id = SKIP, direct_debit_status_code = SKIP,
|
78
|
+
previous_payment_date_time = SKIP,
|
79
|
+
previous_payment_amount = SKIP)
|
80
|
+
@account_id = account_id
|
81
|
+
@direct_debit_id = direct_debit_id unless direct_debit_id == SKIP
|
82
|
+
@mandate_identification = mandate_identification
|
83
|
+
@direct_debit_status_code = direct_debit_status_code unless direct_debit_status_code == SKIP
|
84
|
+
@name = name
|
85
|
+
unless previous_payment_date_time == SKIP
|
86
|
+
@previous_payment_date_time =
|
87
|
+
previous_payment_date_time
|
88
|
+
end
|
89
|
+
@previous_payment_amount = previous_payment_amount unless previous_payment_amount == SKIP
|
90
|
+
end
|
91
|
+
|
92
|
+
# Creates an instance of the object from a hash.
|
93
|
+
def self.from_hash(hash)
|
94
|
+
return nil unless hash
|
95
|
+
|
96
|
+
# Extract variables from the hash.
|
97
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : nil
|
98
|
+
mandate_identification =
|
99
|
+
hash.key?('MandateIdentification') ? hash['MandateIdentification'] : nil
|
100
|
+
name = hash.key?('Name') ? hash['Name'] : nil
|
101
|
+
direct_debit_id =
|
102
|
+
hash.key?('DirectDebitId') ? hash['DirectDebitId'] : SKIP
|
103
|
+
direct_debit_status_code =
|
104
|
+
hash.key?('DirectDebitStatusCode') ? hash['DirectDebitStatusCode'] : SKIP
|
105
|
+
previous_payment_date_time = if hash.key?('PreviousPaymentDateTime')
|
106
|
+
(DateTimeHelper.from_rfc3339(hash['PreviousPaymentDateTime']) if hash['PreviousPaymentDateTime'])
|
107
|
+
else
|
108
|
+
SKIP
|
109
|
+
end
|
110
|
+
previous_payment_amount = PreviousPaymentAmount.from_hash(hash['PreviousPaymentAmount']) if
|
111
|
+
hash['PreviousPaymentAmount']
|
112
|
+
|
113
|
+
# Create object from extracted values.
|
114
|
+
DirectDebitModel.new(account_id,
|
115
|
+
mandate_identification,
|
116
|
+
name,
|
117
|
+
direct_debit_id,
|
118
|
+
direct_debit_status_code,
|
119
|
+
previous_payment_date_time,
|
120
|
+
previous_payment_amount)
|
121
|
+
end
|
122
|
+
|
123
|
+
def to_custom_previous_payment_date_time
|
124
|
+
DateTimeHelper.to_rfc3339(previous_payment_date_time)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Provides a human-readable string representation of the object.
|
128
|
+
def to_s
|
129
|
+
class_name = self.class.name.split('::').last
|
130
|
+
"<#{class_name} account_id: #{@account_id}, direct_debit_id: #{@direct_debit_id},"\
|
131
|
+
" mandate_identification: #{@mandate_identification}, direct_debit_status_code:"\
|
132
|
+
" #{@direct_debit_status_code}, name: #{@name}, previous_payment_date_time:"\
|
133
|
+
" #{@previous_payment_date_time}, previous_payment_amount: #{@previous_payment_amount}>"
|
134
|
+
end
|
135
|
+
|
136
|
+
# Provides a debugging-friendly string with detailed object information.
|
137
|
+
def inspect
|
138
|
+
class_name = self.class.name.split('::').last
|
139
|
+
"<#{class_name} account_id: #{@account_id.inspect}, direct_debit_id:"\
|
140
|
+
" #{@direct_debit_id.inspect}, mandate_identification: #{@mandate_identification.inspect},"\
|
141
|
+
" direct_debit_status_code: #{@direct_debit_status_code.inspect}, name: #{@name.inspect},"\
|
142
|
+
" previous_payment_date_time: #{@previous_payment_date_time.inspect},"\
|
143
|
+
" previous_payment_amount: #{@previous_payment_amount.inspect}>"
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
@@ -0,0 +1,76 @@
|
|
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
|
+
# DirectDebitResponse Model.
|
8
|
+
class DirectDebitResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [DirectDebitResponseData]
|
14
|
+
attr_accessor :data
|
15
|
+
|
16
|
+
# Links relevant to the payload
|
17
|
+
# @return [Links]
|
18
|
+
attr_accessor :links
|
19
|
+
|
20
|
+
# Links relevant to the payload
|
21
|
+
# @return [Meta]
|
22
|
+
attr_accessor :meta
|
23
|
+
|
24
|
+
# A mapping from model property names to API property names.
|
25
|
+
def self.names
|
26
|
+
@_hash = {} if @_hash.nil?
|
27
|
+
@_hash['data'] = 'Data'
|
28
|
+
@_hash['links'] = 'Links'
|
29
|
+
@_hash['meta'] = 'Meta'
|
30
|
+
@_hash
|
31
|
+
end
|
32
|
+
|
33
|
+
# An array for optional fields
|
34
|
+
def self.optionals
|
35
|
+
[]
|
36
|
+
end
|
37
|
+
|
38
|
+
# An array for nullable fields
|
39
|
+
def self.nullables
|
40
|
+
[]
|
41
|
+
end
|
42
|
+
|
43
|
+
def initialize(data = nil, links = nil, meta = nil)
|
44
|
+
@data = data
|
45
|
+
@links = links
|
46
|
+
@meta = meta
|
47
|
+
end
|
48
|
+
|
49
|
+
# Creates an instance of the object from a hash.
|
50
|
+
def self.from_hash(hash)
|
51
|
+
return nil unless hash
|
52
|
+
|
53
|
+
# Extract variables from the hash.
|
54
|
+
data = DirectDebitResponseData.from_hash(hash['Data']) if hash['Data']
|
55
|
+
links = Links.from_hash(hash['Links']) if hash['Links']
|
56
|
+
meta = Meta.from_hash(hash['Meta']) if hash['Meta']
|
57
|
+
|
58
|
+
# Create object from extracted values.
|
59
|
+
DirectDebitResponse.new(data,
|
60
|
+
links,
|
61
|
+
meta)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Provides a human-readable string representation of the object.
|
65
|
+
def to_s
|
66
|
+
class_name = self.class.name.split('::').last
|
67
|
+
"<#{class_name} data: #{@data}, links: #{@links}, meta: #{@meta}>"
|
68
|
+
end
|
69
|
+
|
70
|
+
# Provides a debugging-friendly string with detailed object information.
|
71
|
+
def inspect
|
72
|
+
class_name = self.class.name.split('::').last
|
73
|
+
"<#{class_name} data: #{@data.inspect}, links: #{@links.inspect}, meta: #{@meta.inspect}>"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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
|
+
# DirectDebitResponseData Model.
|
8
|
+
class DirectDebitResponseData < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# DirectDebit
|
13
|
+
# @return [Array[DirectDebitModel]]
|
14
|
+
attr_accessor :direct_debit
|
15
|
+
|
16
|
+
# A mapping from model property names to API property names.
|
17
|
+
def self.names
|
18
|
+
@_hash = {} if @_hash.nil?
|
19
|
+
@_hash['direct_debit'] = 'DirectDebit'
|
20
|
+
@_hash
|
21
|
+
end
|
22
|
+
|
23
|
+
# An array for optional fields
|
24
|
+
def self.optionals
|
25
|
+
%w[
|
26
|
+
direct_debit
|
27
|
+
]
|
28
|
+
end
|
29
|
+
|
30
|
+
# An array for nullable fields
|
31
|
+
def self.nullables
|
32
|
+
[]
|
33
|
+
end
|
34
|
+
|
35
|
+
def initialize(direct_debit = SKIP)
|
36
|
+
@direct_debit = direct_debit unless direct_debit == SKIP
|
37
|
+
end
|
38
|
+
|
39
|
+
# Creates an instance of the object from a hash.
|
40
|
+
def self.from_hash(hash)
|
41
|
+
return nil unless hash
|
42
|
+
|
43
|
+
# Extract variables from the hash.
|
44
|
+
# Parameter is an array, so we need to iterate through it
|
45
|
+
direct_debit = nil
|
46
|
+
unless hash['DirectDebit'].nil?
|
47
|
+
direct_debit = []
|
48
|
+
hash['DirectDebit'].each do |structure|
|
49
|
+
direct_debit << (DirectDebitModel.from_hash(structure) if structure)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
direct_debit = SKIP unless hash.key?('DirectDebit')
|
54
|
+
|
55
|
+
# Create object from extracted values.
|
56
|
+
DirectDebitResponseData.new(direct_debit)
|
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} direct_debit: #{@direct_debit}>"
|
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} direct_debit: #{@direct_debit.inspect}>"
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,23 @@
|
|
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
|
+
# Specifies the status of the direct debit in code form.
|
8
|
+
class DirectDebitStatusCodeEnum
|
9
|
+
DIRECT_DEBIT_STATUS_CODE_ENUM = [
|
10
|
+
# TODO: Write general description for ACTIVE
|
11
|
+
ACTIVE = 'Active'.freeze,
|
12
|
+
|
13
|
+
# TODO: Write general description for INACTIVE
|
14
|
+
INACTIVE = 'Inactive'.freeze
|
15
|
+
].freeze
|
16
|
+
|
17
|
+
def self.validate(value)
|
18
|
+
return false if value.nil?
|
19
|
+
|
20
|
+
DIRECT_DEBIT_STATUS_CODE_ENUM.include?(value)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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
|
+
# Error Model.
|
8
|
+
class Error < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Low level textual error code.
|
13
|
+
# @return [ErrorCodeEnum]
|
14
|
+
attr_accessor :error_code
|
15
|
+
|
16
|
+
# A free text description of the error that occurred. E.g., 'A mandatory
|
17
|
+
# field isn't supplied'.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
# A recommended but optional reference to the JSON Path of the field with
|
22
|
+
# error, e.g., Data.Consent.InstructedAmount.Currency
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :path
|
25
|
+
|
26
|
+
# URL to help remediate the problem, provide more information or to API
|
27
|
+
# Reference.
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :url
|
30
|
+
|
31
|
+
# A mapping from model property names to API property names.
|
32
|
+
def self.names
|
33
|
+
@_hash = {} if @_hash.nil?
|
34
|
+
@_hash['error_code'] = 'ErrorCode'
|
35
|
+
@_hash['message'] = 'Message'
|
36
|
+
@_hash['path'] = 'Path'
|
37
|
+
@_hash['url'] = 'Url'
|
38
|
+
@_hash
|
39
|
+
end
|
40
|
+
|
41
|
+
# An array for optional fields
|
42
|
+
def self.optionals
|
43
|
+
%w[
|
44
|
+
path
|
45
|
+
url
|
46
|
+
]
|
47
|
+
end
|
48
|
+
|
49
|
+
# An array for nullable fields
|
50
|
+
def self.nullables
|
51
|
+
[]
|
52
|
+
end
|
53
|
+
|
54
|
+
def initialize(error_code = nil, message = nil, path = SKIP, url = SKIP)
|
55
|
+
@error_code = error_code
|
56
|
+
@message = message
|
57
|
+
@path = path unless path == SKIP
|
58
|
+
@url = url unless url == SKIP
|
59
|
+
end
|
60
|
+
|
61
|
+
# Creates an instance of the object from a hash.
|
62
|
+
def self.from_hash(hash)
|
63
|
+
return nil unless hash
|
64
|
+
|
65
|
+
# Extract variables from the hash.
|
66
|
+
error_code = hash.key?('ErrorCode') ? hash['ErrorCode'] : nil
|
67
|
+
message = hash.key?('Message') ? hash['Message'] : nil
|
68
|
+
path = hash.key?('Path') ? hash['Path'] : SKIP
|
69
|
+
url = hash.key?('Url') ? hash['Url'] : SKIP
|
70
|
+
|
71
|
+
# Create object from extracted values.
|
72
|
+
Error.new(error_code,
|
73
|
+
message,
|
74
|
+
path,
|
75
|
+
url)
|
76
|
+
end
|
77
|
+
|
78
|
+
# Provides a human-readable string representation of the object.
|
79
|
+
def to_s
|
80
|
+
class_name = self.class.name.split('::').last
|
81
|
+
"<#{class_name} error_code: #{@error_code}, message: #{@message}, path: #{@path}, url:"\
|
82
|
+
" #{@url}>"
|
83
|
+
end
|
84
|
+
|
85
|
+
# Provides a debugging-friendly string with detailed object information.
|
86
|
+
def inspect
|
87
|
+
class_name = self.class.name.split('::').last
|
88
|
+
"<#{class_name} error_code: #{@error_code.inspect}, message: #{@message.inspect}, path:"\
|
89
|
+
" #{@path.inspect}, url: #{@url.inspect}>"
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,100 @@
|
|
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
|
+
# Low level textual error code.
|
8
|
+
class ErrorCodeEnum
|
9
|
+
ERROR_CODE_ENUM = [
|
10
|
+
# TODO: Write general description for ENUM_FIELDEXPECTED
|
11
|
+
ENUM_FIELDEXPECTED = 'Field.Expected'.freeze,
|
12
|
+
|
13
|
+
# TODO: Write general description for ENUM_FIELDINVALID
|
14
|
+
ENUM_FIELDINVALID = 'Field.Invalid'.freeze,
|
15
|
+
|
16
|
+
# TODO: Write general description for ENUM_FIELDMISSING
|
17
|
+
ENUM_FIELDMISSING = 'Field.Missing'.freeze,
|
18
|
+
|
19
|
+
# TODO: Write general description for ENUM_FIELDUNEXPECTED
|
20
|
+
ENUM_FIELDUNEXPECTED = 'Field.Unexpected'.freeze,
|
21
|
+
|
22
|
+
# TODO: Write general description for ENUM_HEADERINVALID
|
23
|
+
ENUM_HEADERINVALID = 'Header.Invalid'.freeze,
|
24
|
+
|
25
|
+
# TODO: Write general description for ENUM_HEADERMISSING
|
26
|
+
ENUM_HEADERMISSING = 'Header.Missing'.freeze,
|
27
|
+
|
28
|
+
# TODO: Write general description for ENUM_QUERYPARAMINVALID
|
29
|
+
ENUM_QUERYPARAMINVALID = 'QueryParam.Invalid'.freeze,
|
30
|
+
|
31
|
+
# TODO: Write general description for REAUTHENTICATE
|
32
|
+
REAUTHENTICATE = 'Reauthenticate'.freeze,
|
33
|
+
|
34
|
+
# TODO: Write general description for REAUTHORISE
|
35
|
+
REAUTHORISE = 'Reauthorise'.freeze,
|
36
|
+
|
37
|
+
# TODO: Write general description for ENUM_RESOURCECONSENTCREDITORACCOUNT
|
38
|
+
ENUM_RESOURCECONSENTCREDITORACCOUNT = 'Resource.Consent.CreditorAccount'.freeze,
|
39
|
+
|
40
|
+
# TODO: Write general description for ENUM_RESOURCECONSENTDEBTORACCOUNT
|
41
|
+
ENUM_RESOURCECONSENTDEBTORACCOUNT = 'Resource.Consent.DebtorAccount'.freeze,
|
42
|
+
|
43
|
+
# TODO: Write general description for
|
44
|
+
# ENUM_RESOURCECONSENTEXCEEDDATAPERMISSIONS
|
45
|
+
ENUM_RESOURCECONSENTEXCEEDDATAPERMISSIONS = 'Resource.Consent.Exceed.DataPermissions'.freeze,
|
46
|
+
|
47
|
+
# TODO: Write general description for ENUM_RESOURCECONSENTEXCEEDDATES
|
48
|
+
ENUM_RESOURCECONSENTEXCEEDDATES = 'Resource.Consent.Exceed.Dates'.freeze,
|
49
|
+
|
50
|
+
# TODO: Write general description for ENUM_RESOURCECONSENTEXCEEDFREQUENCY
|
51
|
+
ENUM_RESOURCECONSENTEXCEEDFREQUENCY = 'Resource.Consent.Exceed.Frequency'.freeze,
|
52
|
+
|
53
|
+
# TODO: Write general description for
|
54
|
+
# ENUM_RESOURCECONSENTEXCEEDMAXIMUMAMOUNT
|
55
|
+
ENUM_RESOURCECONSENTEXCEEDMAXIMUMAMOUNT = 'Resource.Consent.Exceed.MaximumAmount'.freeze,
|
56
|
+
|
57
|
+
# TODO: Write general description for
|
58
|
+
# ENUM_RESOURCECONSENTEXCEEDTOTALAMOUNT
|
59
|
+
ENUM_RESOURCECONSENTEXCEEDTOTALAMOUNT = 'Resource.Consent.Exceed.TotalAmount'.freeze,
|
60
|
+
|
61
|
+
# TODO: Write general description for ENUM_RESOURCECONSENTEXCEEDTOTALCOUNT
|
62
|
+
ENUM_RESOURCECONSENTEXCEEDTOTALCOUNT = 'Resource.Consent.Exceed.TotalCount'.freeze,
|
63
|
+
|
64
|
+
# TODO: Write general description for
|
65
|
+
# ENUM_RESOURCECONSENTEXCEEDTRANSACTIONDATES
|
66
|
+
ENUM_RESOURCECONSENTEXCEEDTRANSACTIONDATES = 'Resource.Consent.Exceed.TransactionDates'.freeze,
|
67
|
+
|
68
|
+
# TODO: Write general description for ENUM_RESOURCECONSENTINVALIDSTATUS
|
69
|
+
ENUM_RESOURCECONSENTINVALIDSTATUS = 'Resource.Consent.InvalidStatus'.freeze,
|
70
|
+
|
71
|
+
# TODO: Write general description for ENUM_RESOURCECONSENTMISMATCH
|
72
|
+
ENUM_RESOURCECONSENTMISMATCH = 'Resource.Consent.Mismatch'.freeze,
|
73
|
+
|
74
|
+
# TODO: Write general description for ENUM_RESOURCEINVALID
|
75
|
+
ENUM_RESOURCEINVALID = 'Resource.Invalid'.freeze,
|
76
|
+
|
77
|
+
# TODO: Write general description for UNEXPECTEDERROR
|
78
|
+
UNEXPECTEDERROR = 'UnexpectedError'.freeze,
|
79
|
+
|
80
|
+
# TODO: Write general description for ENUM_UNSUPPORTEDACCOUNTIDENTIFIER
|
81
|
+
ENUM_UNSUPPORTEDACCOUNTIDENTIFIER = 'Unsupported.AccountIdentifier'.freeze,
|
82
|
+
|
83
|
+
# TODO: Write general description for
|
84
|
+
# ENUM_UNSUPPORTEDACCOUNTSECONDARYIDENTIFIER
|
85
|
+
ENUM_UNSUPPORTEDACCOUNTSECONDARYIDENTIFIER = 'Unsupported.AccountSecondaryIdentifier'.freeze,
|
86
|
+
|
87
|
+
# TODO: Write general description for ENUM_UNSUPPORTEDCURRENCY
|
88
|
+
ENUM_UNSUPPORTEDCURRENCY = 'Unsupported.Currency'.freeze,
|
89
|
+
|
90
|
+
# TODO: Write general description for ENUM_UNSUPPORTEDSCHEME
|
91
|
+
ENUM_UNSUPPORTEDSCHEME = 'Unsupported.Scheme'.freeze
|
92
|
+
].freeze
|
93
|
+
|
94
|
+
def self.validate(value)
|
95
|
+
return false if value.nil?
|
96
|
+
|
97
|
+
ERROR_CODE_ENUM.include?(value)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|