braid-ui 1.0.54 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14711,6 +14711,22 @@ function NewTransaction() {
|
|
|
14711
14711
|
}
|
|
14712
14712
|
setIsSubmitting(true);
|
|
14713
14713
|
try {
|
|
14714
|
+
const submissionPayload = {
|
|
14715
|
+
...data,
|
|
14716
|
+
// Include counterparty details for ACH/Wire transactions
|
|
14717
|
+
...requiresCounterparty && counterpartyData && {
|
|
14718
|
+
counterpartyId: counterpartyData.counterpartyId,
|
|
14719
|
+
counterpartyType: counterpartyData.counterpartyType,
|
|
14720
|
+
counterpartyPaymentInstrumentType: counterpartyData.paymentInstrumentType
|
|
14721
|
+
},
|
|
14722
|
+
// Include account details
|
|
14723
|
+
accountId: accountData?.customerId,
|
|
14724
|
+
// Include receiver account for transfers
|
|
14725
|
+
...data.transactionType === "transfer" && receiverAccountData && {
|
|
14726
|
+
receiverAccountId: receiverAccountData.customerId
|
|
14727
|
+
}
|
|
14728
|
+
};
|
|
14729
|
+
console.log("Transaction submission payload:", submissionPayload);
|
|
14714
14730
|
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
14715
14731
|
const hasError = Math.random() > 0.1;
|
|
14716
14732
|
if (hasError) {
|