Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added original_account_key field to loan_accounts stream #60

Merged

Conversation

DownstreamDataTeam
Copy link
Contributor

Description of change

Added original_account_key field to the loan_accounts stream

Test

{"type": "RECORD", "stream": "loan_accounts", "record": {"encoded_key": "8a19ace776d20dff0176d23dc1290166", "id": "CUDJ257", "account_holder_type": "CLIENT", "account_holder_key": "8a19b5cd765eebda017660ec51800ce9", "creation_date": "2021-01-05T11:10:51.000000Z", "approved_date": "2021-01-05T11:10:51.000000Z", "last_modified_date": "2021-02-11T14:28:26.000000Z", "days_late": 294, "account_state": "ACTIVE", "account_sub_state": "PARTIALLY_DISBURSED", "product_type_key": "8a19a9b6727f4fd001727fabdbb30098", "loan_name": "Test1", "loan_amount": "15000.0", "payment_method": "HORIZONTAL", "accrued_interest": "0", "interest_from_arrears_accrued": "0", "accrued_penalty": "0", "allow_offset": false, "arrears_tolerance_period": 0, "account_arrears_settings": {"encoded_key": "8a19ace776d20dff0176d23e111e0168", "tolerance_calculation_method": "ARREARS_TOLERANCE_PERIOD", "date_calculation_method": "ACCOUNT_FIRST_WENT_TO_ARREARS", "non_working_days_method": "EXCLUDED", "tolerance_period": 0}, "late_payments_recalculation_method": "OVERDUE_INSTALLMENTS_INCREASE", "balances": {"redraw_balance": "0", "principal_due": "0", "principal_paid": "0", "principal_balance": "10000.0", "interest_due": "0", "interest_paid": "0", "interest_balance": "0", "interest_from_arrears_balance": "0", "interest_from_arrears_due": "0", "interest_from_arrears_paid": "0", "fees_due": "0", "fees_paid": "0", "fees_balance": "0", "penalty_due": "0", "penalty_paid": "0", "penalty_balance": "0"}, "disbursement_details": {"encoded_key": "8a19ace776d20dff0176d23dc1290167", "first_repayment_date": "2021-01-18T22:00:00.000000Z", "fees": []}, "prepayment_settings": {"prepayment_recalculation_method": "NO_RECALCULATION", "apply_interest_on_prepayment_method": "AUTOMATIC"}, "penalty_settings": {"loan_penalty_calculation_method": "NONE"}, "schedule_settings": {"has_custom_schedule": false, "principal_repayment_interval": 1, "grace_period": 0, "grace_period_type": "PAY_INTEREST_ONLY", "repayment_installments": 10, "repayment_period_count": 1, "schedule_due_dates_method": "INTERVAL", "periodic_payment": "0", "repayment_period_unit": "MONTHS", "repayment_schedule_method": "DYNAMIC", "payment_plan": []}, "interest_settings": {"interest_rate_source": "FIXED_INTEREST_RATE", "accrue_interest_after_maturity": false, "interest_application_method": "REPAYMENT_DUE_DATE", "interest_balance_calculation_method": "ONLY_PRINCIPAL", "interest_calculation_method": "DECLINING_BALANCE", "interest_charge_frequency": "ANNUALIZED", "interest_rate": "2.0", "interest_type": "SIMPLE_INTEREST"}, "assets": [], "guarantors": [], "funding_sources": [], "tranches": [], "future_payments_acceptance": "NO_FUTURE_PAYMENTS", "original_account_key": "8a19ace776d20dff0176d21beac40078", "custom_fields": [{"field_set_id": "_OP_Loan_Accounts", "id": "nCinoId", "value": "a1r2E000007ul4fQAA"}]}, "time_extracted": "2021-11-09T12:43:09.179100Z"}

{"type": "RECORD", "stream": "loan_accounts", "record": {"encoded_key": "8a19ace776d20dff0176d21beac40078", "id": "OBEA761", "account_holder_type": "CLIENT", "account_holder_key": "8a19b5cd765eebda017660ec51800ce9", "creation_date": "2021-01-05T10:33:33.000000Z", "approved_date": "2021-01-05T10:34:21.000000Z", "last_modified_date": "2021-10-30T21:29:38.000000Z", "activation_transaction_key": "8a19a12076d1aa5e0176d21ca4cb023b", "last_set_to_arrears_date": "2021-01-31T22:00:00.000000Z", "days_in_arrears": 282, "days_late": 282, "closed_date": "2021-01-05T11:10:51.000000Z", "account_state": "ACTIVE_IN_ARREARS", "account_sub_state": "REFINANCED", "rescheduled_account_key": "8a19ace776d20dff0176d23dc1290166", "product_type_key": "8a19a9b6727f4fd001727fabdbb30098", "loan_name": "Test1", "loan_amount": "10000.0", "payment_method": "HORIZONTAL", "accrued_interest": "5.0", "interest_from_arrears_accrued": "4.09", "last_interest_applied_date": "2021-10-30T21:00:00.000000Z", "accrued_penalty": "0", "allow_offset": false, "arrears_tolerance_period": 0, "account_arrears_settings": {"encoded_key": "8a19ace776d20dff0176d21beac4007b", "tolerance_calculation_method": "ARREARS_TOLERANCE_PERIOD", "date_calculation_method": "ACCOUNT_FIRST_WENT_TO_ARREARS", "non_working_days_method": "EXCLUDED", "tolerance_period": 0}, "late_payments_recalculation_method": "OVERDUE_INSTALLMENTS_INCREASE", "balances": {"redraw_balance": "0", "principal_due": "16363.62", "principal_paid": "0", "principal_balance": "0", "interest_due": "163.92", "interest_paid": "0", "interest_balance": "163.92", "interest_from_arrears_balance": "54.56", "interest_from_arrears_due": "54.56", "interest_from_arrears_paid": "0", "fees_due": "0", "fees_paid": "0", "fees_balance": "0", "penalty_due": "0", "penalty_paid": "0", "penalty_balance": "0"}, "disbursement_details": {"encoded_key": "8a19ace776d20dff0176d21beac40079", "expected_disbursement_date": "2021-01-04T22:00:00.000000Z", "disbursement_date": "2021-01-04T22:00:00.000000Z", "first_repayment_date": "2021-01-30T22:00:00.000000Z", "transaction_details": {"encoded_key": "8a19ace776d20dff0176d21beac4007a", "transaction_channel_key": "8a193621727a27a901727eb3eb130064", "transaction_channel_id": "cash", "internal_transfer": false}, "fees": []}, "prepayment_settings": {"prepayment_recalculation_method": "NO_RECALCULATION", "apply_interest_on_prepayment_method": "AUTOMATIC"}, "penalty_settings": {"loan_penalty_calculation_method": "NONE"}, "schedule_settings": {"has_custom_schedule": false, "principal_repayment_interval": 1, "grace_period": 1, "grace_period_type": "PAY_INTEREST_ONLY", "repayment_installments": 12, "repayment_period_count": 1, "schedule_due_dates_method": "INTERVAL", "periodic_payment": "0", "repayment_period_unit": "MONTHS", "repayment_schedule_method": "DYNAMIC", "payment_plan": []}, "interest_settings": {"interest_rate_source": "FIXED_INTEREST_RATE", "accrue_interest_after_maturity": false, "interest_application_method": "REPAYMENT_DUE_DATE", "interest_balance_calculation_method": "ONLY_PRINCIPAL", "interest_calculation_method": "DECLINING_BALANCE", "interest_charge_frequency": "ANNUALIZED", "interest_rate": "1.0", "interest_type": "SIMPLE_INTEREST"}, "assets": [], "guarantors": [], "funding_sources": [], "tranches": [], "future_payments_acceptance": "NO_FUTURE_PAYMENTS", "custom_fields": [{"field_set_id": "_OP_Loan_Accounts", "id": "nCinoId", "value": "a1r2E000007ul4fQAA"}]}, "time_extracted": "2021-11-09T12:43:16.493999Z"}

Rollback steps

  • revert this branch

@cmerrick
Copy link
Contributor

Hi @DownstreamDataTeam, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

@cosimon cosimon merged commit e495637 into singer-io:master Nov 29, 2021
@singer-bot
Copy link

You did it @DownstreamDataTeam!

Thank you for signing the Singer Contribution License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants