GetEndUserAccessCodeTargets module

Get end user access code targets

Sample response (may differ slightly in your environment)

<Q2API HqVersion="4.4.1.5615" HqAssemblyVersion="4.4.7031.32897" ServerDateTime="2019-05-29T12:16:13.1364699-05:00" AuditId="1028295">
  <Result>
    <ErrorCode ErrorType="Success">0</ErrorCode>
    <ErrorDescription/>
    <HydraErrorReturnCode>0</HydraErrorReturnCode>
  </Result>
  <Data>
    <DalAccessCodeTargetView>
      <Q2_AccessCodeTargetView>
        <TargetID>157</TargetID>
        <UserID>49</UserID>
        <TargetAddress>norXXXX@q2ebaXXXXX.com</TargetAddress>
        <DisplayName>E-mail</DisplayName>
        <ShortName>Email</ShortName>
        <NotificationTypeID>1</NotificationTypeID>
        <UnmaskedTargetAddress>noreply@q2ebanking.com</UnmaskedTargetAddress>
        <TargetTypeShortName>SecureAccess</TargetTypeShortName>
        <TargetTypeDisplayName>Secure Access Code</TargetTypeDisplayName>
        <AccessCodeTargetTypeID>1</AccessCodeTargetTypeID>
        <CountryID>212</CountryID>
      </Q2_AccessCodeTargetView>
    </DalAccessCodeTargetView>
  </Data>
</Q2API>
class q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.ParamsObj(logger, end_user_logon_name, get_email_targets, get_phone_targets, get_sms_targets, hq_credentials=None)[source]

Bases: Q2ApiParamsObj

Parameters definition for GetEndUserAccessCodeTargets

Parameters:
  • logger (TypeAliasType) – Reference to calling request’s logger (self.logger in your extension)

  • end_user_logon_name (str) – Q2_UserLogon.LoginName

  • get_email_targets (bool)

  • get_phone_targets (bool)

  • get_sms_targets (bool)

  • hq_credentials (Optional[HqCredentials]) – Defaults to settings.HQ_CREDENTIALS

class q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.Q2_AccessCodeTargetView(AccessCodeTargetTypeID, CountryID, DisplayName, NotificationTypeID, ShortName, TargetAddress, TargetID, TargetTypeDisplayName, TargetTypeShortName, UnmaskedTargetAddress, UserID)[source]

Bases: object

Q2_AccessCodeTargetView(AccessCodeTargetTypeID: lxml.objectify.IntElement, CountryID: lxml.objectify.IntElement, DisplayName: lxml.objectify.StringElement, NotificationTypeID: lxml.objectify.IntElement, ShortName: lxml.objectify.StringElement, TargetAddress: lxml.objectify.StringElement, TargetID: lxml.objectify.IntElement, TargetTypeDisplayName: lxml.objectify.StringElement, TargetTypeShortName: lxml.objectify.StringElement, UnmaskedTargetAddress: lxml.objectify.StringElement, UserID: lxml.objectify.IntElement)

AccessCodeTargetTypeID: IntElement
CountryID: IntElement
DisplayName: StringElement
NotificationTypeID: IntElement
ShortName: StringElement
TargetAddress: StringElement
TargetID: IntElement
TargetTypeDisplayName: StringElement
TargetTypeShortName: StringElement
UnmaskedTargetAddress: StringElement
UserID: IntElement
class q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.DalAccessCodeTargetView(Q2_AccessCodeTargetView)[source]

Bases: object

DalAccessCodeTargetView(Q2_AccessCodeTargetView: Union[q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.Q2_AccessCodeTargetView, List[q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.Q2_AccessCodeTargetView]])

Q2_AccessCodeTargetView: Union[Q2_AccessCodeTargetView, List[Q2_AccessCodeTargetView]]
class q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.Data(DalAccessCodeTargetView)[source]

Bases: object

Data(DalAccessCodeTargetView: Union[q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.DalAccessCodeTargetView, List[q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.DalAccessCodeTargetView]])

DalAccessCodeTargetView: Union[DalAccessCodeTargetView, List[DalAccessCodeTargetView]]
class q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.ResultNode[source]

Bases: object

class q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.HqResponse(raw_response)[source]

Bases: HqResponse

Parameters:

response – Body of HQ response

async q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.execute(params_obj, use_json=False, **kwargs)[source]

This is the default way to submit the request to HQ. In theory, both json and soap payloads are equally accepted by HQ, though several variables may affect that (HQ version, Q2SDK implementation bugs, etc). This should not affect anything about the way your code deals with the data. In fact, the only difference to consuming extensions is the logging. Basically, call this with default parameters unless you find a compelling reason not to.

Parameters:
  • params_obj (ParamsObj) – Object containing everything necessary to call this HQ endpoint

  • use_json – If True, will call HQ’s .ashx (json) endpoint instead of .asmx (soap)

Return type:

HqResponse

async q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.get_soap(params_obj, **kwargs)[source]

Deprecated. Please use execute instead

Return type:

HqResponse

async q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.get_json(params_obj, **kwargs)[source]

Deprecated. Please use execute instead

Return type:

HqResponse

q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.build_json(params_obj)[source]
q2_sdk.hq.hq_api.q2_api.GetEndUserAccessCodeTargets.build_soap(params_obj)[source]