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.js
CHANGED
|
@@ -14679,6 +14679,22 @@ function NewTransaction() {
|
|
|
14679
14679
|
}
|
|
14680
14680
|
setIsSubmitting(true);
|
|
14681
14681
|
try {
|
|
14682
|
+
const submissionPayload = {
|
|
14683
|
+
...data,
|
|
14684
|
+
// Include counterparty details for ACH/Wire transactions
|
|
14685
|
+
...requiresCounterparty && counterpartyData && {
|
|
14686
|
+
counterpartyId: counterpartyData.counterpartyId,
|
|
14687
|
+
counterpartyType: counterpartyData.counterpartyType,
|
|
14688
|
+
counterpartyPaymentInstrumentType: counterpartyData.paymentInstrumentType
|
|
14689
|
+
},
|
|
14690
|
+
// Include account details
|
|
14691
|
+
accountId: accountData?.customerId,
|
|
14692
|
+
// Include receiver account for transfers
|
|
14693
|
+
...data.transactionType === "transfer" && receiverAccountData && {
|
|
14694
|
+
receiverAccountId: receiverAccountData.customerId
|
|
14695
|
+
}
|
|
14696
|
+
};
|
|
14697
|
+
console.log("Transaction submission payload:", submissionPayload);
|
|
14682
14698
|
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
14683
14699
|
const hasError = Math.random() > 0.1;
|
|
14684
14700
|
if (hasError) {
|