AddFundsTransferWithGtFlavor module
Add funds transfer
- class q2_sdk.hq.hq_api.q2_api.AddFundsTransferWithGtFlavor.ParamsObj(logger, end_user_logon_name, source_account_id, target_account_id, transaction_amount, principal, interest, ui_source, process_date, currency_code, transfer_type, additional_data_name, additional_data_element, gt_flavor_short_name, optional_description=None, hq_credentials=None)[source]
Bases:
Q2ApiParamsObj
Parameters definition for AddFundsTransferWithGtFlavor
- Parameters:
logger (
TypeAliasType
) – Reference to calling request’s logger (self.logger in your extension)end_user_logon_name (
str
) – Q2_UserLogon.LoginNamesource_account_id (
int
) – Q2_HostAccount.HostAccountIDtarget_account_id (
int
) – Q2_HostAccount.HostAccountIDtransaction_amount (
float
) – ex. 2.43principal (
float
) – ex. 2.43interest (
float
)ui_source (
str
) – ShortName of Q2_UiSource row. Should almost always be OnlineBankingprocess_date (
str
) – ex. 1980-10-23. Some HQ endpoints require a timestamp as well (1980-10-23T00:00:00)currency_code (
str
) – Q2_CurrencyCode.CurrencyCode. The currency to use for a transaction. This will almost always be “USD”transfer_type (
int
) – From the Q2_GeneratedTransactionTypes table (accessible through TransactionType DbObject)additional_data_name (
str
)additional_data_element (
str
)gt_flavor_short_name (
str
)optional_description (
Optional
[str
]) – Free form texthq_credentials (
Optional
[HqCredentials
]) – Defaults to settings.HQ_CREDENTIALS
- async q2_sdk.hq.hq_api.q2_api.AddFundsTransferWithGtFlavor.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 endpointuse_json – If True, will call HQ’s .ashx (json) endpoint instead of .asmx (soap)
- Return type:
- async q2_sdk.hq.hq_api.q2_api.AddFundsTransferWithGtFlavor.get_soap(params_obj, **kwargs)[source]
Deprecated. Please use execute instead
- Return type: