fx-shared-models 0.2.0__tar.gz → 0.2.2__tar.gz
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.
- {fx_shared_models-0.2.0/fx_shared_models.egg-info → fx_shared_models-0.2.2}/PKG-INFO +1 -1
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2/fx_shared_models.egg-info}/PKG-INFO +1 -1
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/fx_shared_models.egg-info/SOURCES.txt +42 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/setup.py +6 -4
- fx_shared_models-0.2.2/shared_models/__init__.py +6 -0
- fx_shared_models-0.2.2/shared_models/accounts/migrations/0004_alter_account_created_at_alter_account_created_by_and_more.py +28 -0
- fx_shared_models-0.2.2/shared_models/accounts/migrations/0005_account_currency.py +18 -0
- fx_shared_models-0.2.2/shared_models/accounts/migrations/0006_alter_account_options.py +17 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/accounts/models.py +8 -1
- fx_shared_models-0.2.2/shared_models/common/__pycache__/base.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/common/__pycache__/utils.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/company_ba/apps.py +9 -0
- fx_shared_models-0.2.2/shared_models/company_ba/migrations/0001_initial.py +39 -0
- fx_shared_models-0.2.2/shared_models/company_ba/models.py +32 -0
- fx_shared_models-0.2.2/shared_models/customers/__init__.py +1 -0
- fx_shared_models-0.2.2/shared_models/customers/__pycache__/__init__.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/customers/__pycache__/apps.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/__pycache__/models.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/0002_alter_customer_email_alter_customer_first_name_and_more.py +64 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/0004_customerauth_two_factor_backup_codes_and_more.py +33 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/0005_customerauth_temp_webauthn_challenge.py +18 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/0006_customerauth_webauthn_challenge.py +18 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/0007_customerauth_blocked_customerauth_blocked_at_and_more.py +46 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/0008_customer_email_hash.py +30 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/customers/migrations/__pycache__/0001_initial.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/__pycache__/0002_alter_customer_email_alter_customer_first_name_and_more.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/__pycache__/0004_customerauth_two_factor_backup_codes_and_more.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/__pycache__/0005_customerauth_temp_webauthn_challenge.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/__pycache__/0006_customerauth_webauthn_challenge.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/__pycache__/0007_customerauth_blocked_customerauth_blocked_at_and_more.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/__pycache__/0008_customer_email_hash.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/customers/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/customers/models.py +59 -19
- fx_shared_models-0.2.2/shared_models/ib_commission/apps.py +12 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0001_initial.py +279 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0002_alter_clientibmapping_id_and_more.py +53 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0003_commissiondistribution_is_pass_up_and_more.py +28 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0004_rename_ib_commissi_account_76e731_idx_ib_commissi_account_10d556_idx_and_more.py +25 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0005_alter_ibagreementmember_start_date.py +18 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0006_clientibmapping_agreement_and_more.py +44 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0007_alter_clientibmapping_mt5_login.py +18 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0008_commissiondistribution_is_processed_and_more.py +29 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/migrations/0009_commissiondistribution_processing_notes_and_more.py +27 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/models.py +387 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/services/__init__.py +8 -0
- fx_shared_models-0.2.2/shared_models/ib_commission/services/commission_calculator_service.py +554 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/__pycache__/apps.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/__pycache__/serializers.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/system_settings/migrations/0009_alter_accountsequence_created_at_and_more.py +83 -0
- fx_shared_models-0.2.2/shared_models/system_settings/migrations/0010_alter_paymentgatewayconfig_gateway_and_more.py +24 -0
- fx_shared_models-0.2.2/shared_models/system_settings/migrations/__init__.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/__pycache__/0001_initial.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/__pycache__/0002_rename_is_enabled_systemsetting_is_active.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/__pycache__/0003_tradingplatformserver.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/__pycache__/0004_tradingplatformserver_connection_timeout_and_more.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/__pycache__/0005_accountsequence_accounttype.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/__pycache__/0006_alter_accounttype_sequence.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/__pycache__/0007_remove_accounttype_default_group_type_and_more.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/__pycache__/0008_paymentgatewayconfig_paymentmethodconfig_and_more.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/system_settings/migrations/__pycache__/0009_alter_accountsequence_created_at_and_more.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/system_settings/migrations/__pycache__/0010_alter_paymentgatewayconfig_gateway_and_more.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/system_settings/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/__pycache__/__init__.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/system_settings/models/__pycache__/account_sequence.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/__pycache__/account_types.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/system_settings/models/__pycache__/accounts.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/__pycache__/base.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/__pycache__/email.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/__pycache__/group_configurations.cpython-313.pyc +0 -0
- fx_shared_models-0.2.2/shared_models/system_settings/models/__pycache__/payment_methods.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/__pycache__/trading_platform.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/__pycache__/transaction_configs.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/payment_methods.py +11 -3
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/transaction_configs.py +0 -3
- fx_shared_models-0.2.2/shared_models/transactions/__init__.py +0 -0
- fx_shared_models-0.2.2/shared_models/transactions/migrations/0002_transaction_mt5_ticket.py +18 -0
- fx_shared_models-0.2.2/shared_models/transactions/migrations/0003_alter_transaction_options.py +17 -0
- fx_shared_models-0.2.2/shared_models/transactions/migrations/__init__.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/transactions/models.py +15 -3
- fx_shared_models-0.2.0/shared_models/__init__.py +0 -6
- fx_shared_models-0.2.0/shared_models/common/__pycache__/base.cpython-313.pyc +0 -0
- fx_shared_models-0.2.0/shared_models/customers/__pycache__/__init__.cpython-313.pyc +0 -0
- fx_shared_models-0.2.0/shared_models/customers/__pycache__/models.cpython-313.pyc +0 -0
- fx_shared_models-0.2.0/shared_models/customers/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
- fx_shared_models-0.2.0/shared_models/system_settings/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
- fx_shared_models-0.2.0/shared_models/system_settings/models/__pycache__/account_sequence.cpython-313.pyc +0 -0
- fx_shared_models-0.2.0/shared_models/system_settings/models/__pycache__/payment_methods.cpython-313.pyc +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/LICENSE +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/MANIFEST.in +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/README.md +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/fx_shared_models.egg-info/dependency_links.txt +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/fx_shared_models.egg-info/requires.txt +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/fx_shared_models.egg-info/top_level.txt +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/setup.cfg +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/accounts/__init__.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/accounts/apps.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/accounts/migrations/0001_initial.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/accounts/migrations/0002_remove_account_group_type_account_has_bonus_and_more.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/accounts/migrations/0003_account_is_archived_account_is_trading_enabled.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/accounts/migrations/__init__.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/common/base.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/common/utils.py +0 -0
- {fx_shared_models-0.2.0/shared_models/customers → fx_shared_models-0.2.2/shared_models/company_ba}/__init__.py +0 -0
- {fx_shared_models-0.2.0/shared_models/customers → fx_shared_models-0.2.2/shared_models/company_ba}/migrations/__init__.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/constants.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/customers/apps.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/customers/migrations/0001_initial.py +0 -0
- {fx_shared_models-0.2.0/shared_models/system_settings → fx_shared_models-0.2.2/shared_models/customers}/migrations/__init__.py +0 -0
- {fx_shared_models-0.2.0/shared_models/transactions → fx_shared_models-0.2.2/shared_models/ib_commission}/__init__.py +0 -0
- {fx_shared_models-0.2.0/shared_models/transactions → fx_shared_models-0.2.2/shared_models/ib_commission}/migrations/__init__.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/services/group_resolver.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/apps.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/0001_initial.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/0002_rename_is_enabled_systemsetting_is_active.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/0003_tradingplatformserver.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/0004_tradingplatformserver_connection_timeout_and_more.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/0005_accountsequence_accounttype.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/0006_alter_accounttype_sequence.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/0007_remove_accounttype_default_group_type_and_more.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/migrations/0008_paymentgatewayconfig_paymentmethodconfig_and_more.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/__init__.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/account_sequence.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/account_types.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/base.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/email.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/group_configurations.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/models/trading_platform.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/system_settings/serializers.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/transactions/apps.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/transactions/constants.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/transactions/enums.py +0 -0
- {fx_shared_models-0.2.0 → fx_shared_models-0.2.2}/shared_models/transactions/migrations/0001_initial.py +0 -0
|
@@ -15,11 +15,19 @@ shared_models/accounts/models.py
|
|
|
15
15
|
shared_models/accounts/migrations/0001_initial.py
|
|
16
16
|
shared_models/accounts/migrations/0002_remove_account_group_type_account_has_bonus_and_more.py
|
|
17
17
|
shared_models/accounts/migrations/0003_account_is_archived_account_is_trading_enabled.py
|
|
18
|
+
shared_models/accounts/migrations/0004_alter_account_created_at_alter_account_created_by_and_more.py
|
|
19
|
+
shared_models/accounts/migrations/0005_account_currency.py
|
|
20
|
+
shared_models/accounts/migrations/0006_alter_account_options.py
|
|
18
21
|
shared_models/accounts/migrations/__init__.py
|
|
19
22
|
shared_models/common/base.py
|
|
20
23
|
shared_models/common/utils.py
|
|
21
24
|
shared_models/common/__pycache__/base.cpython-313.pyc
|
|
22
25
|
shared_models/common/__pycache__/utils.cpython-313.pyc
|
|
26
|
+
shared_models/company_ba/__init__.py
|
|
27
|
+
shared_models/company_ba/apps.py
|
|
28
|
+
shared_models/company_ba/models.py
|
|
29
|
+
shared_models/company_ba/migrations/0001_initial.py
|
|
30
|
+
shared_models/company_ba/migrations/__init__.py
|
|
23
31
|
shared_models/customers/__init__.py
|
|
24
32
|
shared_models/customers/apps.py
|
|
25
33
|
shared_models/customers/models.py
|
|
@@ -27,9 +35,36 @@ shared_models/customers/__pycache__/__init__.cpython-313.pyc
|
|
|
27
35
|
shared_models/customers/__pycache__/apps.cpython-313.pyc
|
|
28
36
|
shared_models/customers/__pycache__/models.cpython-313.pyc
|
|
29
37
|
shared_models/customers/migrations/0001_initial.py
|
|
38
|
+
shared_models/customers/migrations/0002_alter_customer_email_alter_customer_first_name_and_more.py
|
|
39
|
+
shared_models/customers/migrations/0004_customerauth_two_factor_backup_codes_and_more.py
|
|
40
|
+
shared_models/customers/migrations/0005_customerauth_temp_webauthn_challenge.py
|
|
41
|
+
shared_models/customers/migrations/0006_customerauth_webauthn_challenge.py
|
|
42
|
+
shared_models/customers/migrations/0007_customerauth_blocked_customerauth_blocked_at_and_more.py
|
|
43
|
+
shared_models/customers/migrations/0008_customer_email_hash.py
|
|
30
44
|
shared_models/customers/migrations/__init__.py
|
|
31
45
|
shared_models/customers/migrations/__pycache__/0001_initial.cpython-313.pyc
|
|
46
|
+
shared_models/customers/migrations/__pycache__/0002_alter_customer_email_alter_customer_first_name_and_more.cpython-313.pyc
|
|
47
|
+
shared_models/customers/migrations/__pycache__/0004_customerauth_two_factor_backup_codes_and_more.cpython-313.pyc
|
|
48
|
+
shared_models/customers/migrations/__pycache__/0005_customerauth_temp_webauthn_challenge.cpython-313.pyc
|
|
49
|
+
shared_models/customers/migrations/__pycache__/0006_customerauth_webauthn_challenge.cpython-313.pyc
|
|
50
|
+
shared_models/customers/migrations/__pycache__/0007_customerauth_blocked_customerauth_blocked_at_and_more.cpython-313.pyc
|
|
51
|
+
shared_models/customers/migrations/__pycache__/0008_customer_email_hash.cpython-313.pyc
|
|
32
52
|
shared_models/customers/migrations/__pycache__/__init__.cpython-313.pyc
|
|
53
|
+
shared_models/ib_commission/__init__.py
|
|
54
|
+
shared_models/ib_commission/apps.py
|
|
55
|
+
shared_models/ib_commission/models.py
|
|
56
|
+
shared_models/ib_commission/migrations/0001_initial.py
|
|
57
|
+
shared_models/ib_commission/migrations/0002_alter_clientibmapping_id_and_more.py
|
|
58
|
+
shared_models/ib_commission/migrations/0003_commissiondistribution_is_pass_up_and_more.py
|
|
59
|
+
shared_models/ib_commission/migrations/0004_rename_ib_commissi_account_76e731_idx_ib_commissi_account_10d556_idx_and_more.py
|
|
60
|
+
shared_models/ib_commission/migrations/0005_alter_ibagreementmember_start_date.py
|
|
61
|
+
shared_models/ib_commission/migrations/0006_clientibmapping_agreement_and_more.py
|
|
62
|
+
shared_models/ib_commission/migrations/0007_alter_clientibmapping_mt5_login.py
|
|
63
|
+
shared_models/ib_commission/migrations/0008_commissiondistribution_is_processed_and_more.py
|
|
64
|
+
shared_models/ib_commission/migrations/0009_commissiondistribution_processing_notes_and_more.py
|
|
65
|
+
shared_models/ib_commission/migrations/__init__.py
|
|
66
|
+
shared_models/ib_commission/services/__init__.py
|
|
67
|
+
shared_models/ib_commission/services/commission_calculator_service.py
|
|
33
68
|
shared_models/services/group_resolver.py
|
|
34
69
|
shared_models/system_settings/apps.py
|
|
35
70
|
shared_models/system_settings/serializers.py
|
|
@@ -43,6 +78,8 @@ shared_models/system_settings/migrations/0005_accountsequence_accounttype.py
|
|
|
43
78
|
shared_models/system_settings/migrations/0006_alter_accounttype_sequence.py
|
|
44
79
|
shared_models/system_settings/migrations/0007_remove_accounttype_default_group_type_and_more.py
|
|
45
80
|
shared_models/system_settings/migrations/0008_paymentgatewayconfig_paymentmethodconfig_and_more.py
|
|
81
|
+
shared_models/system_settings/migrations/0009_alter_accountsequence_created_at_and_more.py
|
|
82
|
+
shared_models/system_settings/migrations/0010_alter_paymentgatewayconfig_gateway_and_more.py
|
|
46
83
|
shared_models/system_settings/migrations/__init__.py
|
|
47
84
|
shared_models/system_settings/migrations/__pycache__/0001_initial.cpython-313.pyc
|
|
48
85
|
shared_models/system_settings/migrations/__pycache__/0002_rename_is_enabled_systemsetting_is_active.cpython-313.pyc
|
|
@@ -52,6 +89,8 @@ shared_models/system_settings/migrations/__pycache__/0005_accountsequence_accoun
|
|
|
52
89
|
shared_models/system_settings/migrations/__pycache__/0006_alter_accounttype_sequence.cpython-313.pyc
|
|
53
90
|
shared_models/system_settings/migrations/__pycache__/0007_remove_accounttype_default_group_type_and_more.cpython-313.pyc
|
|
54
91
|
shared_models/system_settings/migrations/__pycache__/0008_paymentgatewayconfig_paymentmethodconfig_and_more.cpython-313.pyc
|
|
92
|
+
shared_models/system_settings/migrations/__pycache__/0009_alter_accountsequence_created_at_and_more.cpython-313.pyc
|
|
93
|
+
shared_models/system_settings/migrations/__pycache__/0010_alter_paymentgatewayconfig_gateway_and_more.cpython-313.pyc
|
|
55
94
|
shared_models/system_settings/migrations/__pycache__/__init__.cpython-313.pyc
|
|
56
95
|
shared_models/system_settings/models/__init__.py
|
|
57
96
|
shared_models/system_settings/models/account_sequence.py
|
|
@@ -65,6 +104,7 @@ shared_models/system_settings/models/transaction_configs.py
|
|
|
65
104
|
shared_models/system_settings/models/__pycache__/__init__.cpython-313.pyc
|
|
66
105
|
shared_models/system_settings/models/__pycache__/account_sequence.cpython-313.pyc
|
|
67
106
|
shared_models/system_settings/models/__pycache__/account_types.cpython-313.pyc
|
|
107
|
+
shared_models/system_settings/models/__pycache__/accounts.cpython-313.pyc
|
|
68
108
|
shared_models/system_settings/models/__pycache__/base.cpython-313.pyc
|
|
69
109
|
shared_models/system_settings/models/__pycache__/email.cpython-313.pyc
|
|
70
110
|
shared_models/system_settings/models/__pycache__/group_configurations.cpython-313.pyc
|
|
@@ -77,4 +117,6 @@ shared_models/transactions/constants.py
|
|
|
77
117
|
shared_models/transactions/enums.py
|
|
78
118
|
shared_models/transactions/models.py
|
|
79
119
|
shared_models/transactions/migrations/0001_initial.py
|
|
120
|
+
shared_models/transactions/migrations/0002_transaction_mt5_ticket.py
|
|
121
|
+
shared_models/transactions/migrations/0003_alter_transaction_options.py
|
|
80
122
|
shared_models/transactions/migrations/__init__.py
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='fx-shared-models',
|
|
5
|
-
version='0.2.
|
|
5
|
+
version='0.2.2',
|
|
6
6
|
packages=find_namespace_packages(include=['shared_models*']),
|
|
7
7
|
install_requires=[
|
|
8
8
|
'Django>=3.0',
|
|
@@ -27,11 +27,13 @@ setup(
|
|
|
27
27
|
package_data={
|
|
28
28
|
'shared_models': [
|
|
29
29
|
'accounts/*'
|
|
30
|
-
'
|
|
30
|
+
'common/*',
|
|
31
|
+
'company_ba/*'
|
|
31
32
|
'customers/*',
|
|
33
|
+
'ib_commission/*',
|
|
34
|
+
'services/*',
|
|
32
35
|
'system_settings/*',
|
|
33
|
-
'
|
|
34
|
-
'services/*'
|
|
36
|
+
'transactions/*',
|
|
35
37
|
],
|
|
36
38
|
},
|
|
37
39
|
)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-08 13:52
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('accounts', '0003_account_is_archived_account_is_trading_enabled'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterField(
|
|
14
|
+
model_name='account',
|
|
15
|
+
name='created_at',
|
|
16
|
+
field=models.DateTimeField(auto_now_add=True),
|
|
17
|
+
),
|
|
18
|
+
migrations.AlterField(
|
|
19
|
+
model_name='account',
|
|
20
|
+
name='created_by',
|
|
21
|
+
field=models.CharField(blank=True, max_length=255, null=True),
|
|
22
|
+
),
|
|
23
|
+
migrations.AlterField(
|
|
24
|
+
model_name='account',
|
|
25
|
+
name='updated_by',
|
|
26
|
+
field=models.CharField(blank=True, max_length=255, null=True),
|
|
27
|
+
),
|
|
28
|
+
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-09 17:34
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('accounts', '0004_alter_account_created_at_alter_account_created_by_and_more'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AddField(
|
|
14
|
+
model_name='account',
|
|
15
|
+
name='currency',
|
|
16
|
+
field=models.CharField(default='USD', max_length=3),
|
|
17
|
+
),
|
|
18
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-17 11:41
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('accounts', '0005_account_currency'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterModelOptions(
|
|
14
|
+
name='account',
|
|
15
|
+
options={'permissions': [('view_own_account', 'Can view own customer accounts'), ('view_team_account', "Can view team's customer accounts"), ('view_all_account', 'Can view all customer accounts'), ('change_account_group', 'Can change account group')], 'verbose_name': 'Account', 'verbose_name_plural': 'Accounts'},
|
|
16
|
+
),
|
|
17
|
+
]
|
|
@@ -38,6 +38,10 @@ class Account(BaseModel):
|
|
|
38
38
|
default=False,
|
|
39
39
|
help_text="Whether this account has markup applied"
|
|
40
40
|
)
|
|
41
|
+
currency = models.CharField(
|
|
42
|
+
max_length=3,
|
|
43
|
+
default='USD',
|
|
44
|
+
)
|
|
41
45
|
|
|
42
46
|
class Meta:
|
|
43
47
|
app_label = 'accounts'
|
|
@@ -51,7 +55,10 @@ class Account(BaseModel):
|
|
|
51
55
|
models.Index(fields=['account_type']),
|
|
52
56
|
]
|
|
53
57
|
permissions = [
|
|
54
|
-
(
|
|
58
|
+
("view_own_account", "Can view own customer accounts"),
|
|
59
|
+
("view_team_account", "Can view team's customer accounts"),
|
|
60
|
+
("view_all_account", "Can view all customer accounts"),
|
|
61
|
+
("change_account_group", "Can change account group"),
|
|
55
62
|
]
|
|
56
63
|
|
|
57
64
|
def __str__(self):
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-17 19:19
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
initial = True
|
|
9
|
+
|
|
10
|
+
dependencies = [
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
operations = [
|
|
14
|
+
migrations.CreateModel(
|
|
15
|
+
name='CompanyBankAccount',
|
|
16
|
+
fields=[
|
|
17
|
+
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
18
|
+
('updated_at', models.DateTimeField(auto_now=True)),
|
|
19
|
+
('created_by', models.CharField(blank=True, max_length=255, null=True)),
|
|
20
|
+
('updated_by', models.CharField(blank=True, max_length=255, null=True)),
|
|
21
|
+
('id', models.AutoField(editable=False, primary_key=True, serialize=False)),
|
|
22
|
+
('bank_name', models.CharField(max_length=255)),
|
|
23
|
+
('country', models.CharField(max_length=255)),
|
|
24
|
+
('currency', models.CharField(max_length=255)),
|
|
25
|
+
('account_number', models.CharField(max_length=255)),
|
|
26
|
+
('iban', models.CharField(max_length=255)),
|
|
27
|
+
('swift', models.CharField(max_length=255)),
|
|
28
|
+
('ifsc', models.CharField(max_length=255)),
|
|
29
|
+
],
|
|
30
|
+
options={
|
|
31
|
+
'verbose_name': 'Company Bank Account',
|
|
32
|
+
'verbose_name_plural': 'Company Bank Accounts',
|
|
33
|
+
'db_table': 'company_bank_accounts',
|
|
34
|
+
'ordering': ['-created_at'],
|
|
35
|
+
'permissions': [('view_company_bank_account', 'Can view company bank account'), ('delete_company_bank_account', 'Can delete company bank account'), ('change_company_bank_account', 'Can change company bank account'), ('add_company_bank_account', 'Can add company bank account')],
|
|
36
|
+
'indexes': [models.Index(fields=['bank_name', 'country'], name='company_ban_bank_na_b2e9d5_idx'), models.Index(fields=['account_number'], name='company_ban_account_13481d_idx')],
|
|
37
|
+
},
|
|
38
|
+
),
|
|
39
|
+
]
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from django.db import models
|
|
2
|
+
from ..common.base import BaseModel
|
|
3
|
+
|
|
4
|
+
class CompanyBankAccount(BaseModel):
|
|
5
|
+
id = models.AutoField(primary_key=True, editable=False)
|
|
6
|
+
bank_name = models.CharField(max_length=255)
|
|
7
|
+
country = models.CharField(max_length=255)
|
|
8
|
+
currency = models.CharField(max_length=255)
|
|
9
|
+
account_number = models.CharField(max_length=255)
|
|
10
|
+
iban = models.CharField(max_length=255)
|
|
11
|
+
swift = models.CharField(max_length=255)
|
|
12
|
+
ifsc = models.CharField(max_length=255)
|
|
13
|
+
|
|
14
|
+
class Meta:
|
|
15
|
+
app_label = 'company_ba'
|
|
16
|
+
db_table = 'company_bank_accounts'
|
|
17
|
+
verbose_name = 'Company Bank Account'
|
|
18
|
+
verbose_name_plural = 'Company Bank Accounts'
|
|
19
|
+
ordering = ['-created_at']
|
|
20
|
+
indexes = [
|
|
21
|
+
models.Index(fields=['bank_name', 'country']),
|
|
22
|
+
models.Index(fields=['account_number']),
|
|
23
|
+
]
|
|
24
|
+
permissions = [
|
|
25
|
+
('view_company_bank_account', 'Can view company bank account'),
|
|
26
|
+
('delete_company_bank_account', 'Can delete company bank account'),
|
|
27
|
+
('change_company_bank_account', 'Can change company bank account'),
|
|
28
|
+
('add_company_bank_account', 'Can add company bank account')
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
def __str__(self):
|
|
32
|
+
return f"Bank Account {self.bank_name} ({self.account_number})"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-19 07:43
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
import encrypted_model_fields.fields
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
|
|
9
|
+
dependencies = [
|
|
10
|
+
('customers', '0001_initial'),
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
operations = [
|
|
14
|
+
migrations.AlterField(
|
|
15
|
+
model_name='customer',
|
|
16
|
+
name='email',
|
|
17
|
+
field=encrypted_model_fields.fields.EncryptedEmailField(unique=True, verbose_name='email address'),
|
|
18
|
+
),
|
|
19
|
+
migrations.AlterField(
|
|
20
|
+
model_name='customer',
|
|
21
|
+
name='first_name',
|
|
22
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
23
|
+
),
|
|
24
|
+
migrations.AlterField(
|
|
25
|
+
model_name='customer',
|
|
26
|
+
name='last_name',
|
|
27
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
28
|
+
),
|
|
29
|
+
migrations.AlterField(
|
|
30
|
+
model_name='customer',
|
|
31
|
+
name='mobile',
|
|
32
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
33
|
+
),
|
|
34
|
+
migrations.AlterField(
|
|
35
|
+
model_name='customer',
|
|
36
|
+
name='phone',
|
|
37
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
38
|
+
),
|
|
39
|
+
migrations.AlterField(
|
|
40
|
+
model_name='customerdetail',
|
|
41
|
+
name='address',
|
|
42
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
43
|
+
),
|
|
44
|
+
migrations.AlterField(
|
|
45
|
+
model_name='customerdetail',
|
|
46
|
+
name='address2',
|
|
47
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
48
|
+
),
|
|
49
|
+
migrations.AlterField(
|
|
50
|
+
model_name='customerdetail',
|
|
51
|
+
name='city',
|
|
52
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
53
|
+
),
|
|
54
|
+
migrations.AlterField(
|
|
55
|
+
model_name='customerdetail',
|
|
56
|
+
name='title',
|
|
57
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
58
|
+
),
|
|
59
|
+
migrations.AlterField(
|
|
60
|
+
model_name='customerdetail',
|
|
61
|
+
name='zip_code',
|
|
62
|
+
field=encrypted_model_fields.fields.EncryptedCharField(blank=True),
|
|
63
|
+
),
|
|
64
|
+
]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-21 18:03
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('customers', '0002_alter_customer_email_alter_customer_first_name_and_more'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AddField(
|
|
14
|
+
model_name='customerauth',
|
|
15
|
+
name='two_factor_backup_codes',
|
|
16
|
+
field=models.JSONField(default=list),
|
|
17
|
+
),
|
|
18
|
+
migrations.AddField(
|
|
19
|
+
model_name='customerauth',
|
|
20
|
+
name='two_factor_enabled',
|
|
21
|
+
field=models.BooleanField(default=False),
|
|
22
|
+
),
|
|
23
|
+
migrations.AddField(
|
|
24
|
+
model_name='customerauth',
|
|
25
|
+
name='two_factor_secret',
|
|
26
|
+
field=models.CharField(blank=True, max_length=32),
|
|
27
|
+
),
|
|
28
|
+
migrations.AddField(
|
|
29
|
+
model_name='customerauth',
|
|
30
|
+
name='webauthn_credentials',
|
|
31
|
+
field=models.JSONField(default=list),
|
|
32
|
+
),
|
|
33
|
+
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-25 14:42
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('customers', '0004_customerauth_two_factor_backup_codes_and_more'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AddField(
|
|
14
|
+
model_name='customerauth',
|
|
15
|
+
name='temp_webauthn_challenge',
|
|
16
|
+
field=models.CharField(blank=True, max_length=512, null=True),
|
|
17
|
+
),
|
|
18
|
+
]
|
fx_shared_models-0.2.2/shared_models/customers/migrations/0006_customerauth_webauthn_challenge.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-25 19:56
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('customers', '0005_customerauth_temp_webauthn_challenge'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AddField(
|
|
14
|
+
model_name='customerauth',
|
|
15
|
+
name='webauthn_challenge',
|
|
16
|
+
field=models.CharField(blank=True, max_length=512, null=True),
|
|
17
|
+
),
|
|
18
|
+
]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-02-26 14:04
|
|
2
|
+
|
|
3
|
+
from django.conf import settings
|
|
4
|
+
from django.db import migrations, models
|
|
5
|
+
import django.db.models.deletion
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Migration(migrations.Migration):
|
|
9
|
+
|
|
10
|
+
dependencies = [
|
|
11
|
+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
12
|
+
('customers', '0006_customerauth_webauthn_challenge'),
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
operations = [
|
|
16
|
+
migrations.AddField(
|
|
17
|
+
model_name='customerauth',
|
|
18
|
+
name='blocked',
|
|
19
|
+
field=models.BooleanField(default=False),
|
|
20
|
+
),
|
|
21
|
+
migrations.AddField(
|
|
22
|
+
model_name='customerauth',
|
|
23
|
+
name='blocked_at',
|
|
24
|
+
field=models.DateTimeField(blank=True, null=True),
|
|
25
|
+
),
|
|
26
|
+
migrations.AddField(
|
|
27
|
+
model_name='customerauth',
|
|
28
|
+
name='blocked_by',
|
|
29
|
+
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='blocked_customers', to=settings.AUTH_USER_MODEL),
|
|
30
|
+
),
|
|
31
|
+
migrations.AddField(
|
|
32
|
+
model_name='customerauth',
|
|
33
|
+
name='blocked_reason',
|
|
34
|
+
field=models.TextField(blank=True, null=True),
|
|
35
|
+
),
|
|
36
|
+
migrations.AddField(
|
|
37
|
+
model_name='customerauth',
|
|
38
|
+
name='unblocked_at',
|
|
39
|
+
field=models.DateTimeField(blank=True, null=True),
|
|
40
|
+
),
|
|
41
|
+
migrations.AddField(
|
|
42
|
+
model_name='customerauth',
|
|
43
|
+
name='unblocked_by',
|
|
44
|
+
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='unblocked_customers', to=settings.AUTH_USER_MODEL),
|
|
45
|
+
),
|
|
46
|
+
]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Generated by Django 4.2.19 on 2025-03-02 21:07
|
|
2
|
+
|
|
3
|
+
import uuid
|
|
4
|
+
from django.db import migrations, models
|
|
5
|
+
|
|
6
|
+
def generate_unique_hashes(apps, schema_editor):
|
|
7
|
+
Customer = apps.get_model('customers', 'Customer')
|
|
8
|
+
for customer in Customer.objects.all():
|
|
9
|
+
customer.email_hash = uuid.uuid4().hex
|
|
10
|
+
customer.save(update_fields=['email_hash'])
|
|
11
|
+
|
|
12
|
+
class Migration(migrations.Migration):
|
|
13
|
+
|
|
14
|
+
dependencies = [
|
|
15
|
+
('customers', '0007_customerauth_blocked_customerauth_blocked_at_and_more'),
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
operations = [
|
|
19
|
+
migrations.AddField(
|
|
20
|
+
model_name='customer',
|
|
21
|
+
name='email_hash',
|
|
22
|
+
field=models.CharField(db_index=True, max_length=64, unique=True, null=True),
|
|
23
|
+
),
|
|
24
|
+
migrations.RunPython(generate_unique_hashes),
|
|
25
|
+
migrations.AlterField(
|
|
26
|
+
model_name='customer',
|
|
27
|
+
name='email_hash',
|
|
28
|
+
field=models.CharField(db_index=True, max_length=64, unique=True),
|
|
29
|
+
),
|
|
30
|
+
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|