apimatic-ak-sdk 0.0.1
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 +190 -0
- data/bin/console +15 -0
- data/lib/akoya/api_helper.rb +10 -0
- data/lib/akoya/client.rb +117 -0
- data/lib/akoya/configuration.rb +195 -0
- data/lib/akoya/controllers/account_information_controller.rb +93 -0
- data/lib/akoya/controllers/balances_controller.rb +92 -0
- data/lib/akoya/controllers/base_controller.rb +65 -0
- data/lib/akoya/controllers/customers_controller.rb +112 -0
- data/lib/akoya/controllers/investments_controller.rb +95 -0
- data/lib/akoya/controllers/payments_controller.rb +70 -0
- data/lib/akoya/controllers/statements_controller.rb +158 -0
- data/lib/akoya/controllers/tokens_controller.rb +122 -0
- data/lib/akoya/controllers/transactions_controller.rb +108 -0
- data/lib/akoya/exceptions/api_exception.rb +21 -0
- data/lib/akoya/exceptions/error_entity_exception.rb +54 -0
- data/lib/akoya/exceptions/error_response_exception.rb +53 -0
- data/lib/akoya/http/api_response.rb +19 -0
- data/lib/akoya/http/auth/basic_auth.rb +62 -0
- data/lib/akoya/http/auth/bearer_auth.rb +53 -0
- data/lib/akoya/http/http_call_back.rb +10 -0
- data/lib/akoya/http/http_method_enum.rb +10 -0
- data/lib/akoya/http/http_request.rb +10 -0
- data/lib/akoya/http/http_response.rb +10 -0
- data/lib/akoya/http/proxy_settings.rb +22 -0
- data/lib/akoya/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/akoya/logging/sdk_logger.rb +17 -0
- data/lib/akoya/models/account.rb +86 -0
- data/lib/akoya/models/account_category.rb +50 -0
- data/lib/akoya/models/account_contact_entity.rb +132 -0
- data/lib/akoya/models/account_holder_entity.rb +178 -0
- data/lib/akoya/models/account_holder_relationship.rb +110 -0
- data/lib/akoya/models/account_holder_relationship_account_holder_entity.rb +110 -0
- data/lib/akoya/models/account_information.rb +335 -0
- data/lib/akoya/models/action.rb +48 -0
- data/lib/akoya/models/address.rb +144 -0
- data/lib/akoya/models/akoya_account_info_product.rb +88 -0
- data/lib/akoya/models/an_array_of_statements.rb +95 -0
- data/lib/akoya/models/an_investment_holding.rb +493 -0
- data/lib/akoya/models/annual_increase_type.rb +40 -0
- data/lib/akoya/models/annuity_account.rb +370 -0
- data/lib/akoya/models/annuity_account_info.rb +86 -0
- data/lib/akoya/models/annuity_balance_details.rb +87 -0
- data/lib/akoya/models/annuity_balances.rb +477 -0
- data/lib/akoya/models/annuity_product_type.rb +36 -0
- data/lib/akoya/models/annuity_value_basis.rb +36 -0
- data/lib/akoya/models/array_of_account_payment_networks.rb +85 -0
- data/lib/akoya/models/asset_class.rb +95 -0
- data/lib/akoya/models/asset_class_an_investment_holding.rb +85 -0
- data/lib/akoya/models/asset_class_asset_class.rb +56 -0
- data/lib/akoya/models/asset_class_citi_bank_investment_holdings.rb +86 -0
- data/lib/akoya/models/balance_type.rb +37 -0
- data/lib/akoya/models/balance_type_investment_balance_list.rb +36 -0
- data/lib/akoya/models/balances.rb +88 -0
- data/lib/akoya/models/base_model.rb +110 -0
- data/lib/akoya/models/business_customer_entity.rb +127 -0
- data/lib/akoya/models/business_customer_entity_account_holder_entity.rb +126 -0
- data/lib/akoya/models/business_customer_entity_customer.rb +126 -0
- data/lib/akoya/models/call_type.rb +44 -0
- data/lib/akoya/models/citi_bank_investment.rb +535 -0
- data/lib/akoya/models/citi_bank_investment_details.rb +75 -0
- data/lib/akoya/models/citi_bank_investment_holdings.rb +210 -0
- data/lib/akoya/models/compounding_period.rb +56 -0
- data/lib/akoya/models/contribution_entity.rb +266 -0
- data/lib/akoya/models/coupon_mature_frequency.rb +48 -0
- data/lib/akoya/models/currency.rb +108 -0
- data/lib/akoya/models/currency_citi_bank_investment_holdings.rb +86 -0
- data/lib/akoya/models/currency_entity.rb +109 -0
- data/lib/akoya/models/current_customer.rb +75 -0
- data/lib/akoya/models/customer.rb +164 -0
- data/lib/akoya/models/customer_current_customer.rb +164 -0
- data/lib/akoya/models/customer_name.rb +127 -0
- data/lib/akoya/models/customer_name_account_holder_entity.rb +127 -0
- data/lib/akoya/models/customer_name_customer.rb +127 -0
- data/lib/akoya/models/debit_credit_memo.rb +37 -0
- data/lib/akoya/models/debt_class.rb +44 -0
- data/lib/akoya/models/debt_security.rb +137 -0
- data/lib/akoya/models/debt_security_entity.rb +216 -0
- data/lib/akoya/models/debt_type.rb +36 -0
- data/lib/akoya/models/delivery_address.rb +153 -0
- data/lib/akoya/models/deposit_account.rb +375 -0
- data/lib/akoya/models/deposit_account_info.rb +86 -0
- data/lib/akoya/models/deposit_balance_details.rb +87 -0
- data/lib/akoya/models/deposit_balances.rb +438 -0
- data/lib/akoya/models/deposit_transaction.rb +369 -0
- data/lib/akoya/models/deposit_transaction_details.rb +87 -0
- data/lib/akoya/models/domicile.rb +85 -0
- data/lib/akoya/models/equity_grant.rb +199 -0
- data/lib/akoya/models/error_entity_account_information.rb +97 -0
- data/lib/akoya/models/error_entity_annuity_account.rb +97 -0
- data/lib/akoya/models/error_entity_annuity_balances.rb +97 -0
- data/lib/akoya/models/error_entity_citi_bank_investment.rb +97 -0
- data/lib/akoya/models/error_entity_deposit_account.rb +97 -0
- data/lib/akoya/models/error_entity_deposit_balances.rb +97 -0
- data/lib/akoya/models/error_entity_insurance_account.rb +97 -0
- data/lib/akoya/models/error_entity_insurance_balances.rb +97 -0
- data/lib/akoya/models/error_entity_investment_account.rb +97 -0
- data/lib/akoya/models/error_entity_investment_balances.rb +97 -0
- data/lib/akoya/models/error_entity_line_of_credit_balances.rb +97 -0
- data/lib/akoya/models/error_entity_loan_account.rb +97 -0
- data/lib/akoya/models/error_entity_loan_balances.rb +97 -0
- data/lib/akoya/models/error_entity_us_bank_investment.rb +97 -0
- data/lib/akoya/models/fi_asset_class.rb +95 -0
- data/lib/akoya/models/fi_asset_class_an_investment_holding.rb +85 -0
- data/lib/akoya/models/fi_attribute.rb +95 -0
- data/lib/akoya/models/fi_attribute_entity.rb +95 -0
- data/lib/akoya/models/frequency.rb +56 -0
- data/lib/akoya/models/hateoas_link.rb +105 -0
- data/lib/akoya/models/held_in_account.rb +44 -0
- data/lib/akoya/models/holding_sub_type.rb +36 -0
- data/lib/akoya/models/holding_type.rb +56 -0
- data/lib/akoya/models/income_type.rb +41 -0
- data/lib/akoya/models/industry_code.rb +85 -0
- data/lib/akoya/models/insurance_account.rb +349 -0
- data/lib/akoya/models/insurance_account_info.rb +87 -0
- data/lib/akoya/models/insurance_balance_details.rb +87 -0
- data/lib/akoya/models/insurance_balances.rb +420 -0
- data/lib/akoya/models/insurance_transaction.rb +351 -0
- data/lib/akoya/models/insurance_transaction_details.rb +87 -0
- data/lib/akoya/models/interest_rate_type.rb +36 -0
- data/lib/akoya/models/inv401_k_source.rb +56 -0
- data/lib/akoya/models/inv401_k_source_open_order_entity.rb +57 -0
- data/lib/akoya/models/inv401_k_surce.rb +56 -0
- data/lib/akoya/models/investment_account.rb +411 -0
- data/lib/akoya/models/investment_account_annuity_balance.rb +87 -0
- data/lib/akoya/models/investment_account_deposit_balance.rb +87 -0
- data/lib/akoya/models/investment_account_info.rb +87 -0
- data/lib/akoya/models/investment_account_insurance_balance.rb +87 -0
- data/lib/akoya/models/investment_account_loan_balance.rb +86 -0
- data/lib/akoya/models/investment_account_loc_balance.rb +86 -0
- data/lib/akoya/models/investment_balance_details.rb +87 -0
- data/lib/akoya/models/investment_balance_list.rb +148 -0
- data/lib/akoya/models/investment_balances.rb +525 -0
- data/lib/akoya/models/investment_details.rb +88 -0
- data/lib/akoya/models/investment_loan_entity.rb +271 -0
- data/lib/akoya/models/investment_transaction.rb +783 -0
- data/lib/akoya/models/investment_transaction_details.rb +87 -0
- data/lib/akoya/models/investments.rb +88 -0
- data/lib/akoya/models/line_item.rb +156 -0
- data/lib/akoya/models/line_of_credit_balances.rb +601 -0
- data/lib/akoya/models/links.rb +95 -0
- data/lib/akoya/models/loan_account.rb +417 -0
- data/lib/akoya/models/loan_account_info.rb +86 -0
- data/lib/akoya/models/loan_balance_details.rb +86 -0
- data/lib/akoya/models/loan_balances.rb +556 -0
- data/lib/akoya/models/loan_payment_frequency.rb +68 -0
- data/lib/akoya/models/loan_transaction.rb +360 -0
- data/lib/akoya/models/loan_transaction_details.rb +87 -0
- data/lib/akoya/models/loc_account_info.rb +86 -0
- data/lib/akoya/models/loc_balance_details.rb +86 -0
- data/lib/akoya/models/loc_transaction.rb +372 -0
- data/lib/akoya/models/loc_transaction_details.rb +86 -0
- data/lib/akoya/models/mnext.rb +84 -0
- data/lib/akoya/models/mode.rb +36 -0
- data/lib/akoya/models/mutual_fund_security.rb +99 -0
- data/lib/akoya/models/mutual_fund_security_entity.rb +150 -0
- data/lib/akoya/models/mutual_fund_type.rb +40 -0
- data/lib/akoya/models/obtain_tokens.rb +99 -0
- data/lib/akoya/models/open_order_entity.rb +228 -0
- data/lib/akoya/models/option_security.rb +125 -0
- data/lib/akoya/models/option_security_entity.rb +127 -0
- data/lib/akoya/models/option_type.rb +36 -0
- data/lib/akoya/models/order_duration.rb +40 -0
- data/lib/akoya/models/order_type.rb +60 -0
- data/lib/akoya/models/other_security_entity.rb +77 -0
- data/lib/akoya/models/paginated_array.rb +75 -0
- data/lib/akoya/models/payment_details.rb +142 -0
- data/lib/akoya/models/payment_frequency.rb +56 -0
- data/lib/akoya/models/payment_frequency_annuity_account.rb +44 -0
- data/lib/akoya/models/payment_frequency_annuity_balances.rb +44 -0
- data/lib/akoya/models/payment_network_supported_by_account.rb +129 -0
- data/lib/akoya/models/pension_source_entity.rb +143 -0
- data/lib/akoya/models/period_certain_guarantee.rb +48 -0
- data/lib/akoya/models/policy_premium_term.rb +36 -0
- data/lib/akoya/models/position_type.rb +36 -0
- data/lib/akoya/models/postion_type.rb +36 -0
- data/lib/akoya/models/prev.rb +84 -0
- data/lib/akoya/models/refresh_tokens.rb +103 -0
- data/lib/akoya/models/secured.rb +36 -0
- data/lib/akoya/models/security_id_type.rb +52 -0
- data/lib/akoya/models/security_id_type_investment_transaction.rb +52 -0
- data/lib/akoya/models/security_type.rb +56 -0
- data/lib/akoya/models/statement_entity.rb +136 -0
- data/lib/akoya/models/status.rb +56 -0
- data/lib/akoya/models/status_deposit_transaction.rb +44 -0
- data/lib/akoya/models/status_insurance_transaction.rb +44 -0
- data/lib/akoya/models/status_investment_transaction.rb +44 -0
- data/lib/akoya/models/status_loan_transaction.rb +44 -0
- data/lib/akoya/models/status_loc_transaction.rb +44 -0
- data/lib/akoya/models/status_statement_entity.rb +40 -0
- data/lib/akoya/models/status_transaction.rb +44 -0
- data/lib/akoya/models/stock_security_entity.rb +137 -0
- data/lib/akoya/models/stock_type.rb +56 -0
- data/lib/akoya/models/sub_account.rb +44 -0
- data/lib/akoya/models/sub_account_fund.rb +44 -0
- data/lib/akoya/models/sub_account_sec.rb +44 -0
- data/lib/akoya/models/sweep_security_entity.rb +118 -0
- data/lib/akoya/models/tax_lot.rb +137 -0
- data/lib/akoya/models/tax_lot_an_investment_holding.rb +139 -0
- data/lib/akoya/models/telephone.rb +95 -0
- data/lib/akoya/models/telephone_number.rb +95 -0
- data/lib/akoya/models/token_example_response.rb +101 -0
- data/lib/akoya/models/transaction.rb +328 -0
- data/lib/akoya/models/transaction_reason.rb +41 -0
- data/lib/akoya/models/transaction_type.rb +84 -0
- data/lib/akoya/models/transaction_type_insurance_transaction.rb +44 -0
- data/lib/akoya/models/transaction_type_investment_transaction.rb +192 -0
- data/lib/akoya/models/transaction_type_loan_transaction.rb +44 -0
- data/lib/akoya/models/transaction_type_loc_transaction.rb +84 -0
- data/lib/akoya/models/transactions_entity.rb +98 -0
- data/lib/akoya/models/transfer_action.rb +36 -0
- data/lib/akoya/models/type.rb +44 -0
- data/lib/akoya/models/type_hateoas_link.rb +52 -0
- data/lib/akoya/models/type_telephone_number.rb +44 -0
- data/lib/akoya/models/unit_type.rb +36 -0
- data/lib/akoya/models/unit_type_open_order_entity.rb +36 -0
- data/lib/akoya/models/us_bank_investment.rb +535 -0
- data/lib/akoya/models/us_bank_investment_details.rb +75 -0
- data/lib/akoya/models/us_bank_investment_holdings.rb +403 -0
- data/lib/akoya/models/vesting.rb +135 -0
- data/lib/akoya/models/vesting_entity.rb +185 -0
- data/lib/akoya/models/x_akoya_interaction_type.rb +36 -0
- data/lib/akoya/utilities/date_time_helper.rb +11 -0
- data/lib/akoya/utilities/file_wrapper.rb +28 -0
- data/lib/akoya/utilities/union_type_lookup.rb +91 -0
- data/lib/akoya.rb +250 -0
- metadata +312 -0
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
# akoya
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module Akoya
|
|
8
|
+
# Annuity Account
|
|
9
|
+
class AnnuityAccount < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# Long-term persistent identity of the account. Not an account number. This
|
|
14
|
+
# identity must be unique to the owning institution.
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :account_id
|
|
17
|
+
|
|
18
|
+
# The type of an account. For instance, CHECKING, SAVINGS, 401K, etc.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :account_type
|
|
21
|
+
|
|
22
|
+
# Account display number for the end user’s handle at owning institution.
|
|
23
|
+
# This is to be displayed by the Interface Provider.
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :account_number_display
|
|
26
|
+
|
|
27
|
+
# Indicates the currency code used by the account. May also include currency
|
|
28
|
+
# rate.
|
|
29
|
+
# @return [CurrencyEntity]
|
|
30
|
+
attr_accessor :currency
|
|
31
|
+
|
|
32
|
+
# Indicates the currency code used by the account. May also include currency
|
|
33
|
+
# rate.
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :description
|
|
36
|
+
|
|
37
|
+
# Present if an error was encountered while retrieving this account
|
|
38
|
+
# @return [ErrorEntityAnnuityAccount]
|
|
39
|
+
attr_accessor :error
|
|
40
|
+
|
|
41
|
+
# Present if an error was encountered while retrieving this account
|
|
42
|
+
# @return [Array[FiAttributeEntity]]
|
|
43
|
+
attr_accessor :fi_attributes
|
|
44
|
+
|
|
45
|
+
# Name given by the user. Used in UIs to assist in account selection
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :nickname
|
|
48
|
+
|
|
49
|
+
# Marketed product name for this account. Used in UIs to assist in account
|
|
50
|
+
# selection
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :product_name
|
|
53
|
+
|
|
54
|
+
# The status of an account.
|
|
55
|
+
# @return [Status]
|
|
56
|
+
attr_accessor :status
|
|
57
|
+
|
|
58
|
+
# The line of business, such as consumer, consumer joint, small business,
|
|
59
|
+
# corporate, etc.
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_accessor :line_of_business
|
|
62
|
+
|
|
63
|
+
# ASSET (positive transaction amount increases balance), LIABILITY (positive
|
|
64
|
+
# transaction amount decreases balance)
|
|
65
|
+
# @return [BalanceType]
|
|
66
|
+
attr_accessor :balance_type
|
|
67
|
+
|
|
68
|
+
# Interest Rate of Account
|
|
69
|
+
# @return [Float]
|
|
70
|
+
attr_accessor :interest_rate
|
|
71
|
+
|
|
72
|
+
# The type of interest rate. FIXED or VARIABLE.
|
|
73
|
+
# @return [InterestRateType]
|
|
74
|
+
attr_accessor :interest_rate_type
|
|
75
|
+
|
|
76
|
+
# Date of account’s interest rate
|
|
77
|
+
# @return [DateTime]
|
|
78
|
+
attr_accessor :interest_rate_as_of
|
|
79
|
+
|
|
80
|
+
# Date that last transaction occurred on account
|
|
81
|
+
# @return [DateTime]
|
|
82
|
+
attr_accessor :last_activity_date
|
|
83
|
+
|
|
84
|
+
# MICR Number. (Magnetic Ink Character Recognition)
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :micr_number
|
|
87
|
+
|
|
88
|
+
# Long-term persistent identity of the parent account. This is used to group
|
|
89
|
+
# accounts.
|
|
90
|
+
# @return [String]
|
|
91
|
+
attr_accessor :parent_account_id
|
|
92
|
+
|
|
93
|
+
# Previous Interest Rate of Account
|
|
94
|
+
# @return [Float]
|
|
95
|
+
attr_accessor :prior_interest_rate
|
|
96
|
+
|
|
97
|
+
# Account is eligible for incoming transfers
|
|
98
|
+
# @return [TrueClass | FalseClass]
|
|
99
|
+
attr_accessor :transfer_in
|
|
100
|
+
|
|
101
|
+
# Account is eligible for outgoing transfers
|
|
102
|
+
# @return [TrueClass | FalseClass]
|
|
103
|
+
attr_accessor :transfer_out
|
|
104
|
+
|
|
105
|
+
# Account is eligible for outgoing transfers
|
|
106
|
+
# @return [AnnuityProductType]
|
|
107
|
+
attr_accessor :annuity_product_type
|
|
108
|
+
|
|
109
|
+
# Account is eligible for outgoing transfers
|
|
110
|
+
# @return [AnnuityValueBasis]
|
|
111
|
+
attr_accessor :annuity_value_basis
|
|
112
|
+
|
|
113
|
+
# Account is eligible for outgoing transfers
|
|
114
|
+
# @return [PaymentFrequencyAnnuityAccount]
|
|
115
|
+
attr_accessor :payment_frequency
|
|
116
|
+
|
|
117
|
+
# A mapping from model property names to API property names.
|
|
118
|
+
def self.names
|
|
119
|
+
@_hash = {} if @_hash.nil?
|
|
120
|
+
@_hash['account_id'] = 'accountId'
|
|
121
|
+
@_hash['account_type'] = 'accountType'
|
|
122
|
+
@_hash['account_number_display'] = 'accountNumberDisplay'
|
|
123
|
+
@_hash['currency'] = 'currency'
|
|
124
|
+
@_hash['description'] = 'description'
|
|
125
|
+
@_hash['error'] = 'error'
|
|
126
|
+
@_hash['fi_attributes'] = 'fiAttributes'
|
|
127
|
+
@_hash['nickname'] = 'nickname'
|
|
128
|
+
@_hash['product_name'] = 'productName'
|
|
129
|
+
@_hash['status'] = 'status'
|
|
130
|
+
@_hash['line_of_business'] = 'lineOfBusiness'
|
|
131
|
+
@_hash['balance_type'] = 'balanceType'
|
|
132
|
+
@_hash['interest_rate'] = 'interestRate'
|
|
133
|
+
@_hash['interest_rate_type'] = 'interestRateType'
|
|
134
|
+
@_hash['interest_rate_as_of'] = 'interestRateAsOf'
|
|
135
|
+
@_hash['last_activity_date'] = 'lastActivityDate'
|
|
136
|
+
@_hash['micr_number'] = 'micrNumber'
|
|
137
|
+
@_hash['parent_account_id'] = 'parentAccountId'
|
|
138
|
+
@_hash['prior_interest_rate'] = 'priorInterestRate'
|
|
139
|
+
@_hash['transfer_in'] = 'transferIn'
|
|
140
|
+
@_hash['transfer_out'] = 'transferOut'
|
|
141
|
+
@_hash['annuity_product_type'] = 'annuityProductType'
|
|
142
|
+
@_hash['annuity_value_basis'] = 'annuityValueBasis'
|
|
143
|
+
@_hash['payment_frequency'] = 'paymentFrequency'
|
|
144
|
+
@_hash
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# An array for optional fields
|
|
148
|
+
def self.optionals
|
|
149
|
+
%w[
|
|
150
|
+
account_type
|
|
151
|
+
account_number_display
|
|
152
|
+
currency
|
|
153
|
+
description
|
|
154
|
+
error
|
|
155
|
+
fi_attributes
|
|
156
|
+
nickname
|
|
157
|
+
product_name
|
|
158
|
+
status
|
|
159
|
+
line_of_business
|
|
160
|
+
balance_type
|
|
161
|
+
interest_rate
|
|
162
|
+
interest_rate_type
|
|
163
|
+
interest_rate_as_of
|
|
164
|
+
last_activity_date
|
|
165
|
+
micr_number
|
|
166
|
+
parent_account_id
|
|
167
|
+
prior_interest_rate
|
|
168
|
+
transfer_in
|
|
169
|
+
transfer_out
|
|
170
|
+
annuity_product_type
|
|
171
|
+
annuity_value_basis
|
|
172
|
+
payment_frequency
|
|
173
|
+
]
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# An array for nullable fields
|
|
177
|
+
def self.nullables
|
|
178
|
+
[]
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
def initialize(account_id:, account_type: SKIP,
|
|
182
|
+
account_number_display: SKIP, currency: SKIP,
|
|
183
|
+
description: SKIP, error: SKIP, fi_attributes: SKIP,
|
|
184
|
+
nickname: SKIP, product_name: SKIP, status: SKIP,
|
|
185
|
+
line_of_business: SKIP, balance_type: SKIP,
|
|
186
|
+
interest_rate: SKIP, interest_rate_type: SKIP,
|
|
187
|
+
interest_rate_as_of: SKIP, last_activity_date: SKIP,
|
|
188
|
+
micr_number: SKIP, parent_account_id: SKIP,
|
|
189
|
+
prior_interest_rate: SKIP, transfer_in: SKIP,
|
|
190
|
+
transfer_out: SKIP, annuity_product_type: SKIP,
|
|
191
|
+
annuity_value_basis: SKIP, payment_frequency: SKIP,
|
|
192
|
+
additional_properties: nil)
|
|
193
|
+
# Add additional model properties to the instance
|
|
194
|
+
additional_properties = {} if additional_properties.nil?
|
|
195
|
+
|
|
196
|
+
@account_id = account_id
|
|
197
|
+
@account_type = account_type unless account_type == SKIP
|
|
198
|
+
@account_number_display = account_number_display unless account_number_display == SKIP
|
|
199
|
+
@currency = currency unless currency == SKIP
|
|
200
|
+
@description = description unless description == SKIP
|
|
201
|
+
@error = error unless error == SKIP
|
|
202
|
+
@fi_attributes = fi_attributes unless fi_attributes == SKIP
|
|
203
|
+
@nickname = nickname unless nickname == SKIP
|
|
204
|
+
@product_name = product_name unless product_name == SKIP
|
|
205
|
+
@status = status unless status == SKIP
|
|
206
|
+
@line_of_business = line_of_business unless line_of_business == SKIP
|
|
207
|
+
@balance_type = balance_type unless balance_type == SKIP
|
|
208
|
+
@interest_rate = interest_rate unless interest_rate == SKIP
|
|
209
|
+
@interest_rate_type = interest_rate_type unless interest_rate_type == SKIP
|
|
210
|
+
@interest_rate_as_of = interest_rate_as_of unless interest_rate_as_of == SKIP
|
|
211
|
+
@last_activity_date = last_activity_date unless last_activity_date == SKIP
|
|
212
|
+
@micr_number = micr_number unless micr_number == SKIP
|
|
213
|
+
@parent_account_id = parent_account_id unless parent_account_id == SKIP
|
|
214
|
+
@prior_interest_rate = prior_interest_rate unless prior_interest_rate == SKIP
|
|
215
|
+
@transfer_in = transfer_in unless transfer_in == SKIP
|
|
216
|
+
@transfer_out = transfer_out unless transfer_out == SKIP
|
|
217
|
+
@annuity_product_type = annuity_product_type unless annuity_product_type == SKIP
|
|
218
|
+
@annuity_value_basis = annuity_value_basis unless annuity_value_basis == SKIP
|
|
219
|
+
@payment_frequency = payment_frequency unless payment_frequency == SKIP
|
|
220
|
+
@additional_properties = additional_properties
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Creates an instance of the object from a hash.
|
|
224
|
+
def self.from_hash(hash)
|
|
225
|
+
return nil unless hash
|
|
226
|
+
|
|
227
|
+
# Extract variables from the hash.
|
|
228
|
+
account_id = hash.key?('accountId') ? hash['accountId'] : nil
|
|
229
|
+
account_type = hash.key?('accountType') ? hash['accountType'] : SKIP
|
|
230
|
+
account_number_display =
|
|
231
|
+
hash.key?('accountNumberDisplay') ? hash['accountNumberDisplay'] : SKIP
|
|
232
|
+
currency = CurrencyEntity.from_hash(hash['currency']) if hash['currency']
|
|
233
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
234
|
+
error = ErrorEntityAnnuityAccount.from_hash(hash['error']) if hash['error']
|
|
235
|
+
# Parameter is an array, so we need to iterate through it
|
|
236
|
+
fi_attributes = nil
|
|
237
|
+
unless hash['fiAttributes'].nil?
|
|
238
|
+
fi_attributes = []
|
|
239
|
+
hash['fiAttributes'].each do |structure|
|
|
240
|
+
fi_attributes << (FiAttributeEntity.from_hash(structure) if structure)
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
fi_attributes = SKIP unless hash.key?('fiAttributes')
|
|
245
|
+
nickname = hash.key?('nickname') ? hash['nickname'] : SKIP
|
|
246
|
+
product_name = hash.key?('productName') ? hash['productName'] : SKIP
|
|
247
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
248
|
+
line_of_business =
|
|
249
|
+
hash.key?('lineOfBusiness') ? hash['lineOfBusiness'] : SKIP
|
|
250
|
+
balance_type = hash.key?('balanceType') ? hash['balanceType'] : SKIP
|
|
251
|
+
interest_rate = hash.key?('interestRate') ? hash['interestRate'] : SKIP
|
|
252
|
+
interest_rate_type =
|
|
253
|
+
hash.key?('interestRateType') ? hash['interestRateType'] : SKIP
|
|
254
|
+
interest_rate_as_of = if hash.key?('interestRateAsOf')
|
|
255
|
+
(DateTimeHelper.from_rfc3339(hash['interestRateAsOf']) if hash['interestRateAsOf'])
|
|
256
|
+
else
|
|
257
|
+
SKIP
|
|
258
|
+
end
|
|
259
|
+
last_activity_date = if hash.key?('lastActivityDate')
|
|
260
|
+
(DateTimeHelper.from_rfc3339(hash['lastActivityDate']) if hash['lastActivityDate'])
|
|
261
|
+
else
|
|
262
|
+
SKIP
|
|
263
|
+
end
|
|
264
|
+
micr_number = hash.key?('micrNumber') ? hash['micrNumber'] : SKIP
|
|
265
|
+
parent_account_id =
|
|
266
|
+
hash.key?('parentAccountId') ? hash['parentAccountId'] : SKIP
|
|
267
|
+
prior_interest_rate =
|
|
268
|
+
hash.key?('priorInterestRate') ? hash['priorInterestRate'] : SKIP
|
|
269
|
+
transfer_in = hash.key?('transferIn') ? hash['transferIn'] : SKIP
|
|
270
|
+
transfer_out = hash.key?('transferOut') ? hash['transferOut'] : SKIP
|
|
271
|
+
annuity_product_type =
|
|
272
|
+
hash.key?('annuityProductType') ? hash['annuityProductType'] : SKIP
|
|
273
|
+
annuity_value_basis =
|
|
274
|
+
hash.key?('annuityValueBasis') ? hash['annuityValueBasis'] : SKIP
|
|
275
|
+
payment_frequency =
|
|
276
|
+
hash.key?('paymentFrequency') ? hash['paymentFrequency'] : SKIP
|
|
277
|
+
|
|
278
|
+
# Create a new hash for additional properties, removing known properties.
|
|
279
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
280
|
+
|
|
281
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
282
|
+
new_hash, proc { |value| value }
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
# Create object from extracted values.
|
|
286
|
+
AnnuityAccount.new(account_id: account_id,
|
|
287
|
+
account_type: account_type,
|
|
288
|
+
account_number_display: account_number_display,
|
|
289
|
+
currency: currency,
|
|
290
|
+
description: description,
|
|
291
|
+
error: error,
|
|
292
|
+
fi_attributes: fi_attributes,
|
|
293
|
+
nickname: nickname,
|
|
294
|
+
product_name: product_name,
|
|
295
|
+
status: status,
|
|
296
|
+
line_of_business: line_of_business,
|
|
297
|
+
balance_type: balance_type,
|
|
298
|
+
interest_rate: interest_rate,
|
|
299
|
+
interest_rate_type: interest_rate_type,
|
|
300
|
+
interest_rate_as_of: interest_rate_as_of,
|
|
301
|
+
last_activity_date: last_activity_date,
|
|
302
|
+
micr_number: micr_number,
|
|
303
|
+
parent_account_id: parent_account_id,
|
|
304
|
+
prior_interest_rate: prior_interest_rate,
|
|
305
|
+
transfer_in: transfer_in,
|
|
306
|
+
transfer_out: transfer_out,
|
|
307
|
+
annuity_product_type: annuity_product_type,
|
|
308
|
+
annuity_value_basis: annuity_value_basis,
|
|
309
|
+
payment_frequency: payment_frequency,
|
|
310
|
+
additional_properties: additional_properties)
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
def to_custom_interest_rate_as_of
|
|
314
|
+
DateTimeHelper.to_rfc3339(interest_rate_as_of)
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
def to_custom_last_activity_date
|
|
318
|
+
DateTimeHelper.to_rfc3339(last_activity_date)
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# Validates an instance of the object from a given value.
|
|
322
|
+
# @param [AnnuityAccount | Hash] The value against the validation is performed.
|
|
323
|
+
def self.validate(value)
|
|
324
|
+
if value.instance_of? self
|
|
325
|
+
return APIHelper.valid_type?(value.account_id,
|
|
326
|
+
->(val) { val.instance_of? String })
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
return false unless value.instance_of? Hash
|
|
330
|
+
|
|
331
|
+
APIHelper.valid_type?(value['accountId'],
|
|
332
|
+
->(val) { val.instance_of? String })
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Provides a human-readable string representation of the object.
|
|
336
|
+
def to_s
|
|
337
|
+
class_name = self.class.name.split('::').last
|
|
338
|
+
"<#{class_name} account_id: #{@account_id}, account_type: #{@account_type},"\
|
|
339
|
+
" account_number_display: #{@account_number_display}, currency: #{@currency}, description:"\
|
|
340
|
+
" #{@description}, error: #{@error}, fi_attributes: #{@fi_attributes}, nickname:"\
|
|
341
|
+
" #{@nickname}, product_name: #{@product_name}, status: #{@status}, line_of_business:"\
|
|
342
|
+
" #{@line_of_business}, balance_type: #{@balance_type}, interest_rate: #{@interest_rate},"\
|
|
343
|
+
" interest_rate_type: #{@interest_rate_type}, interest_rate_as_of: #{@interest_rate_as_of},"\
|
|
344
|
+
" last_activity_date: #{@last_activity_date}, micr_number: #{@micr_number},"\
|
|
345
|
+
" parent_account_id: #{@parent_account_id}, prior_interest_rate: #{@prior_interest_rate},"\
|
|
346
|
+
" transfer_in: #{@transfer_in}, transfer_out: #{@transfer_out}, annuity_product_type:"\
|
|
347
|
+
" #{@annuity_product_type}, annuity_value_basis: #{@annuity_value_basis}, payment_frequency:"\
|
|
348
|
+
" #{@payment_frequency}, additional_properties: #{@additional_properties}>"
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
352
|
+
def inspect
|
|
353
|
+
class_name = self.class.name.split('::').last
|
|
354
|
+
"<#{class_name} account_id: #{@account_id.inspect}, account_type: #{@account_type.inspect},"\
|
|
355
|
+
" account_number_display: #{@account_number_display.inspect}, currency:"\
|
|
356
|
+
" #{@currency.inspect}, description: #{@description.inspect}, error: #{@error.inspect},"\
|
|
357
|
+
" fi_attributes: #{@fi_attributes.inspect}, nickname: #{@nickname.inspect}, product_name:"\
|
|
358
|
+
" #{@product_name.inspect}, status: #{@status.inspect}, line_of_business:"\
|
|
359
|
+
" #{@line_of_business.inspect}, balance_type: #{@balance_type.inspect}, interest_rate:"\
|
|
360
|
+
" #{@interest_rate.inspect}, interest_rate_type: #{@interest_rate_type.inspect},"\
|
|
361
|
+
" interest_rate_as_of: #{@interest_rate_as_of.inspect}, last_activity_date:"\
|
|
362
|
+
" #{@last_activity_date.inspect}, micr_number: #{@micr_number.inspect}, parent_account_id:"\
|
|
363
|
+
" #{@parent_account_id.inspect}, prior_interest_rate: #{@prior_interest_rate.inspect},"\
|
|
364
|
+
" transfer_in: #{@transfer_in.inspect}, transfer_out: #{@transfer_out.inspect},"\
|
|
365
|
+
" annuity_product_type: #{@annuity_product_type.inspect}, annuity_value_basis:"\
|
|
366
|
+
" #{@annuity_value_basis.inspect}, payment_frequency: #{@payment_frequency.inspect},"\
|
|
367
|
+
" additional_properties: #{@additional_properties}>"
|
|
368
|
+
end
|
|
369
|
+
end
|
|
370
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# akoya
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Akoya
|
|
7
|
+
# AnnuityAccountInfo Model.
|
|
8
|
+
class AnnuityAccountInfo < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Annuity Account
|
|
13
|
+
# @return [AnnuityAccount]
|
|
14
|
+
attr_accessor :annuity_account
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['annuity_account'] = 'annuityAccount'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
annuity_account
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(annuity_account: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@annuity_account = annuity_account unless annuity_account == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
annuity_account = AnnuityAccount.from_hash(hash['annuityAccount']) if hash['annuityAccount']
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
AnnuityAccountInfo.new(annuity_account: annuity_account,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Validates an instance of the object from a given value.
|
|
63
|
+
# @param [AnnuityAccountInfo | Hash] The value against the validation is performed.
|
|
64
|
+
def self.validate(value)
|
|
65
|
+
return true if value.instance_of? self
|
|
66
|
+
|
|
67
|
+
return false unless value.instance_of? Hash
|
|
68
|
+
|
|
69
|
+
true
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Provides a human-readable string representation of the object.
|
|
73
|
+
def to_s
|
|
74
|
+
class_name = self.class.name.split('::').last
|
|
75
|
+
"<#{class_name} annuity_account: #{@annuity_account}, additional_properties:"\
|
|
76
|
+
" #{@additional_properties}>"
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
80
|
+
def inspect
|
|
81
|
+
class_name = self.class.name.split('::').last
|
|
82
|
+
"<#{class_name} annuity_account: #{@annuity_account.inspect}, additional_properties:"\
|
|
83
|
+
" #{@additional_properties}>"
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# akoya
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module Akoya
|
|
7
|
+
# AnnuityBalanceDetails Model.
|
|
8
|
+
class AnnuityBalanceDetails < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Data elements included with balances specific to annuity accounts
|
|
13
|
+
# @return [AnnuityBalances]
|
|
14
|
+
attr_accessor :annuity_account
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['annuity_account'] = 'annuityAccount'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
annuity_account
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(annuity_account: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@annuity_account = annuity_account unless annuity_account == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
annuity_account = AnnuityBalances.from_hash(hash['annuityAccount']) if
|
|
49
|
+
hash['annuityAccount']
|
|
50
|
+
|
|
51
|
+
# Create a new hash for additional properties, removing known properties.
|
|
52
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
53
|
+
|
|
54
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
55
|
+
new_hash, proc { |value| value }
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# Create object from extracted values.
|
|
59
|
+
AnnuityBalanceDetails.new(annuity_account: annuity_account,
|
|
60
|
+
additional_properties: additional_properties)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Validates an instance of the object from a given value.
|
|
64
|
+
# @param [AnnuityBalanceDetails | Hash] The value against the validation is performed.
|
|
65
|
+
def self.validate(value)
|
|
66
|
+
return true if value.instance_of? self
|
|
67
|
+
|
|
68
|
+
return false unless value.instance_of? Hash
|
|
69
|
+
|
|
70
|
+
true
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Provides a human-readable string representation of the object.
|
|
74
|
+
def to_s
|
|
75
|
+
class_name = self.class.name.split('::').last
|
|
76
|
+
"<#{class_name} annuity_account: #{@annuity_account}, additional_properties:"\
|
|
77
|
+
" #{@additional_properties}>"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
81
|
+
def inspect
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} annuity_account: #{@annuity_account.inspect}, additional_properties:"\
|
|
84
|
+
" #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|