Partners can configure the prefund funds-transfer description string with templates like:
PR {{paymentId}} {{buyAmount}} {{buyCurrency}} {{recipientLegalName}}[20] {{bankCountryCode}}
See docs/prefund-description-config.md for the full reference. Recipient templates expose 8 variables today; there's no way to include the recipient's delivery method (SWIFT vs in-country EFT) in the description.
Two related asks bundled here because they're best designed together:
deliveryMethod variable.deliveryMethod variableAdd a new template variable on recipient prefund templates.
recipient.liveData.DeliveryMethodIdTableConstants.js): W and EW → Wire, E → LocalFiles to change (variable-map population in each rail adapter, recipient template only):
graphql/src/paymentEngine/rails/InternationalUSDConsWire/InternationalUSDConsWireAdapter.js (~1483–1496)graphql/src/paymentEngine/rails/InternationalUSDCorpWire/InternationalUSDCorpWireAdapter.js (~1580–1593)graphql/src/paymentEngine/rails/InternationalFXConsWire/InternationalFXConsWireAdapter.js (~1536–1549)graphql/src/paymentEngine/rails/InternationalFXCorpWire/InternationalFXCorpWireAdapter.js (~1791–1804)Extend FormatUtils.populateDynamicString() (graphql/src/utils/FormatUtils.js, ~L429-454) with an inline mapping modifier that lets a template override the rendered string per raw value. This is generic — works on any variable, not just deliveryMethod.
Proposed syntax (engineering can finalize delimiter):
{{deliveryMethod}} → "Wire" or "Local" (default mapping in the adapter)
{{deliveryMethod|W=Swift|E=Local}} → "Swift" or "Local" (template-level override)
{{deliveryMethod|W=SWIFT|E=ACH}}[6] → composes with existing [N] width modifier
{{buyCurrency|USD=Dollars|EUR=Euros}} → works on any variable
Semantics:
{{var}} alone would render). This keeps the modifier additive — partners only spell out the cases they care about.[N] width modifier applies after mapping: slice the rendered string, not the raw value.| proposed) must not conflict with any existing template content. If it does, pick another (;, ::, etc.) — flag in the PR.deliveryMethod to the vostro variable map (substitution throws on undefined variables — see existing caveat #2 in the doc).{{deliveryMethod}} substitutes to Wire / Local across all 4 recipient prefund templates.{{deliveryMethod|W=Swift|E=Local}} substitutes to Swift / Local.{{deliveryMethod|W=SWIFT}}[3] substitutes to SWI (mapping then truncate) when value is W, and to Loc (default mapping then truncate) when value is E.buyCurrency or bankCountryCode).deliveryMethod continue to render correctly.deliveryMethod row.Please authenticate to join the conversation.
In Progress
💡 Public Tracking
About 1 month ago
Linear
Get notified by email when there are changes.
In Progress
💡 Public Tracking
About 1 month ago
Linear
Get notified by email when there are changes.