AddInternationalWire module
Add single occurrence wire
- class q2_sdk.hq.hq_api.q2_api.AddInternationalWire.Q2NameValuePair(name=None, value=None)[source]
Bases:
BaseParameter
- class q2_sdk.hq.hq_api.q2_api.AddInternationalWire.Pairs(q2_name_value_pair=None)[source]
Bases:
BaseParameter
- class q2_sdk.hq.hq_api.q2_api.AddInternationalWire.Item(name=None, value=None)[source]
Bases:
BaseParameter
- class q2_sdk.hq.hq_api.q2_api.AddInternationalWire.GtData(count, item=None, pairs=None)[source]
Bases:
BaseParameter
- class q2_sdk.hq.hq_api.q2_api.AddInternationalWire.ParamsObj(logger, user_id, originating_account_id, process_date, transaction_amount, currency_code_id, recip_country_id, subsidiary_id, recip_fi_country_id, intermed_country_id, template_id, description=None, to_account=None, to_account_type=None, recip_name=None, recip_address1=None, recip_address2=None, recip_address3=None, email_address=None, swift_code_or_bic=None, recip_fi_name=None, recip_fi_address1=None, recip_fi_address2=None, recip_fi_address3=None, intermed_swift_or_bic=None, intermed_name=None, intermed_address1=None, intermed_address2=None, intermed_address3=None, orig_to_benf_info=None, recip_iban=None, intermed_iban=None, recip_fi_iban=None, intermed_fi_iban=None, intermed_aba=None, quote_id=None, receiving_fi_short_name=None, receiving_fi_aba=None, fi_to_fi_info=None, ref_for_beneficiary=None, purpose_of_wire=None, gt_data=None, hq_credentials=None)[source]
Bases:
Q2ApiParamsObj
Parameters definition for AddInternationalWire
- Parameters:
logger (
TypeAliasType
) – Reference to calling request’s logger (self.logger in your extension)user_id (
int
) – Q2_User.UserIDoriginating_account_id (
int
) – Q2_HostAccount.HostAccountIDprocess_date (
str
) – ex. 1980-10-23. Some HQ endpoints require a timestamp as well (1980-10-23T00:00:00)transaction_amount (
float
) – ex. 2.43currency_code_id (
int
) – Q2_CurrentyCode.CurrencyCodeIDrecip_country_id (
int
)subsidiary_id (
int
) – Q2_Subsidiary.SubsidiaryIDrecip_fi_country_id (
int
) – Q2_Country.CountryIDintermed_country_id (
int
)template_id (
int
)description (
Optional
[str
]) – Free form textto_account (
Optional
[str
]) – Q2_HostAccount.HostAccountIDto_account_type (
Optional
[str
])recip_name (
Optional
[str
]) – Friendly name of Recipientrecip_address1 (
Optional
[str
]) – Recipient’s Address1 Linerecip_address2 (
Optional
[str
]) – Recipient’s Address2 Linerecip_address3 (
Optional
[str
]) – Recipient’s Address3 Lineemail_address (
Optional
[str
]) – ex. test@q2ebanking.comswift_code_or_bic (
Optional
[str
])recip_fi_name (
Optional
[str
]) – Name of Recipient’s FIrecip_fi_address1 (
Optional
[str
]) – Address1 Line of Recipient’s FIrecip_fi_address2 (
Optional
[str
]) – Address2 Line of Recipient’s FIrecip_fi_address3 (
Optional
[str
]) – Address3 Line of Recipient’s FIintermed_swift_or_bic (
Optional
[str
])intermed_name (
Optional
[str
])intermed_address1 (
Optional
[str
])intermed_address2 (
Optional
[str
])intermed_address3 (
Optional
[str
])orig_to_benf_info (
Optional
[str
])recip_iban (
Optional
[str
])intermed_iban (
Optional
[str
])recip_fi_iban (
Optional
[str
])intermed_fi_iban (
Optional
[str
])intermed_aba (
Optional
[str
])quote_id (
Optional
[str
])receiving_fi_short_name (
Optional
[str
])receiving_fi_aba (
Optional
[str
])fi_to_fi_info (
Optional
[str
])ref_for_beneficiary (
Optional
[str
])purpose_of_wire (
Optional
[str
])gt_data (
Optional
[GtData
])hq_credentials (
Optional
[HqCredentials
]) – Defaults to settings.HQ_CREDENTIALS
- async q2_sdk.hq.hq_api.q2_api.AddInternationalWire.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.AddInternationalWire.get_soap(params_obj, **kwargs)[source]
Deprecated. Please use execute instead
- Return type: