UpdateUserProfile models
DataSet models for UpdateUserProfile.
These typed dataclass models represent the tables and columns within the DataSet parameters for the UpdateUserProfile HQ operation.
IMPORTANT: Update operations require a GET first to populate the original_record field. HQ uses the unchanged row for optimistic concurrency checking.
Usage:
from q2_sdk.hq.hq_api.backoffice import UpdateUserProfile
q2_phone_number = UpdateUserProfile.Q2PhoneNumber(
country_id=1,
city_or_area_code="...",
local_number="...",
phone_type=1,
)
q2_email = UpdateUserProfile.Q2Email(
email_address="...",
user_id=1,
)
q2_user_logon = UpdateUserProfile.Q2UserLogon(
user_id=1,
login_name="...",
user_password="...",
ui_source_id=1,
status=1,
create_date="...",
auto_generated=True,
password_change_required=True,
password_has_never_changed=True,
)
q2_user_account = UpdateUserProfile.Q2UserAccount(
user_id=1,
customer_account_id=1,
access=1,
)
q2_access_code_target = UpdateUserProfile.Q2AccessCodeTarget(
user_id=1,
notification_type_id=1,
target_address="...",
access_code_target_type_id=1,
)
q2_auth_token = UpdateUserProfile.Q2AuthToken(
user_id=1,
create_date="...",
serial="...",
)
q2_user = UpdateUserProfile.Q2User(
customer_id=1,
create_date="...",
auto_generated=True,
use_customer_accounts=True,
user_status_id=1,
)
q2_address = UpdateUserProfile.Q2Address(
street_address1="...",
city="...",
address_type=1,
country_id=1,
is_international=True,
)
transaction_rights = UpdateUserProfile.TransactionRights(
transaction_type_id=1,
transaction_type="...",
description="...",
enabled=True,
authorize=True,
cancel=True,
create=True,
create_restricted=True,
update=True,
view=1,
limit_per_transaction=1.0,
limit_per_day=1.0,
limit_per_month=1.0,
limit_per_acct_per_day=1.0,
count_per_acct_per_day=1,
count_per_day=1,
count_per_month=1,
dual_approval_limit=1.0,
token_required_limit=1.0,
bit_flags=1,
)
user_rights = UpdateUserProfile.UserRights(
rights_short_name="...",
rights_long_name="...",
has_rights=True,
)
user_monetary_rights = UpdateUserProfile.UserMonetaryRights(
rights_short_name="...",
rights_long_name="...",
amount=1.0,
)
q2_customer_account_view = UpdateUserProfile.Q2CustomerAccountView(
customer_account_id=1,
customer_id=1,
host_account_id=1,
account_number_internal="...",
product_name="...",
is_external_account=True,
product_id=1,
product_type_id=1,
user_access=1,
current_access_flag=1,
)
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2PhoneNumber(phone_id=-1, country_id=0, city_or_area_code='', local_number='', extension=None, phone_type=0, user_id=None, customer_id=None, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_PhoneNumber table.
- original_record: Q2PhoneNumber | None = None
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2Email(email_id=-1, email_address='', user_id=0, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_Email table.
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2UserLogon(user_logon_id=-1, user_id=0, login_name='', user_password='', ui_source_id=0, last_change=None, last_logon=None, status=0, status_reason=None, last_failed=None, create_date='', num_invalid_attempts=None, auto_generated=False, deleted_date=None, sync_pwd_user_logon_id=None, csr_assist_policy_id=None, csr_assist_admin_user_id=None, mla_challenge_code=None, password_change_required=False, password_has_never_changed=False, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_UserLogon table.
- original_record: Q2UserLogon | None = None
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2UserAccount(user_account_id=-1, user_id=0, customer_account_id=0, access=0, host_account_id=None, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_UserAccount table.
- original_record: Q2UserAccount | None = None
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2AccessCodeTarget(target_id=-1, user_id=0, notification_type_id=0, target_address='', access_code_target_type_id=0, country_id=None, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_AccessCodeTarget table.
- original_record: Q2AccessCodeTarget | None = None
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2AuthToken(auth_token_id=-1, user_id=0, create_date='', deleted_date=None, serial='', first_use=None, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_AuthToken table.
- original_record: Q2AuthToken | None = None
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2User(user_id=-1, customer_id=0, first_name=None, middle_name=None, last_name=None, salutation=None, suffix=None, ssn=None, create_date='', deleted_date=None, default_email_id=None, default_address_id=None, auto_generated=False, host_user=None, host_pwd=None, user_info=None, profile_updated=None, mobile_auth_code=None, use_customer_accounts=False, primary_cif=None, last_user_profile_update=None, user_role_id=None, policy_id=None, user_status_id=0, status_change_date=None, dob=None, is_primary_contact=None, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_User table.
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2Address(address_id=-1, street_address1='', street_address2=None, city='', state=None, postal_code=None, customer_id=None, address_type=0, user_id=None, country_id=0, is_international=False, province=None, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_Address table.
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.TransactionRights(transaction_type_id=0, transaction_type='', description='', enabled=False, authorize=False, cancel=False, create=False, create_restricted=False, update=False, view=0, limit_per_transaction=0.0, limit_per_day=0.0, limit_per_month=0.0, limit_per_acct_per_day=0.0, count_per_acct_per_day=0, count_per_day=0, count_per_month=0, dual_approval_limit=0.0, token_required_limit=0.0, bit_flags=0, original_record=None)[source]
Bases:
objectRepresents a row in the TransactionRights table.
- original_record: TransactionRights | None = None
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.UserRights(rights_short_name='', rights_long_name='', has_rights=False, original_record=None)[source]
Bases:
objectRepresents a row in the UserRights table.
- original_record: UserRights | None = None
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.UserMonetaryRights(rights_short_name='', rights_long_name='', amount=0.0, original_record=None)[source]
Bases:
objectRepresents a row in the UserMonetaryRights table.
- original_record: UserMonetaryRights | None = None
- class q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.Q2CustomerAccountView(customer_account_id=0, customer_id=0, is_cif_rel=None, host_account_id=0, account_number_internal='', product_name='', is_user_enabled=None, is_external_account=False, product_id=0, product_type_id=0, user_access=0, current_access_flag=0, valid_customer_access_flag=None, valid_system_access_flag=None, original_record=None)[source]
Bases:
objectRepresents a row in the Q2_CustomerAccountView table.
- original_record: Q2CustomerAccountView | None = None
- q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.build_dup_dataset(q2_phone_number=None, q2_email=None, q2_user_logon=None, q2_user_account=None, q2_access_code_target=None, q2_auth_token=None, q2_user=None, q2_address=None)[source]
Build the dup DataSet parameter for UpdateUserProfile.
For update operations, each model instance should have its original_record set to the pre-modification state (from a prior GET call).
For add operations, set auto-increment ID fields to negative values.
- Return type:
- Returns:
DataSetBuilder ready to pass as the ‘dup’ parameter
- q2_sdk.hq.hq_api.backoffice.UpdateUserProfile_models.build_user_rights_dataset(transaction_rights=None, user_rights=None, user_monetary_rights=None, q2_customer_account_view=None)[source]
Build the user_rights DataSet parameter for UpdateUserProfile.
For update operations, each model instance should have its original_record set to the pre-modification state (from a prior GET call).
For add operations, set auto-increment ID fields to negative values.
- Return type:
- Returns:
DataSetBuilder ready to pass as the ‘user_rights’ parameter