Skip to content

Commit e5a2415

Browse files
Store VoP for better validation (#265)
* feat: store vop in transfer object for improved validation * feat: change to null * fix: lint * 1.0.174
1 parent b3dfca4 commit e5a2415

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

npm-shrinkwrap.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kontist/mock-solaris",
3-
"version": "1.0.173",
3+
"version": "1.0.174",
44
"description": "Mock Service for Solaris API",
55
"main": "dist/src/index.js",
66
"types": "dist/src/index.d.ts",

src/routes/instantCreditTransfer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export const createInstantCreditTransfer = async (req, res) => {
108108
idempotency_key: idempotencyKey,
109109
description,
110110
end_to_end_id: body.end_to_end_id,
111+
verification_of_payee_id: body?.verification_of_payee_id,
111112
};
112113

113114
entity.instantCreditTransfers = entity.instantCreditTransfers || [];

src/routes/transactions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ export const creteBookingFromSepaCreditTransfer = ({
339339
recipient_name,
340340
reference,
341341
status,
342+
verification_of_payee_id = null,
342343
}) => ({
343344
id: generateID(),
344345
booking_type: BookingType.SEPA_CREDIT_TRANSFER,
@@ -358,6 +359,7 @@ export const creteBookingFromSepaCreditTransfer = ({
358359
booking_date: moment().format("YYYY-MM-DD"),
359360
valuta_date: moment().format("YYYY-MM-DD"),
360361
meta_info: null,
362+
verification_of_payee_id,
361363
});
362364

363365
const changeAmountSign = (metaInfo) => {

0 commit comments

Comments
 (0)