add card owner
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-15 12:55:51 +03:30
parent 5a07ea13ed
commit fb7671338a
8 changed files with 47 additions and 4 deletions
+6 -1
View File
@@ -23,6 +23,7 @@ export class PaymentMethodsSeeder {
order: methodData.order,
gateway: methodData.gateway,
cardNumber: methodData.cardNumber,
cardOwner: methodData.cardOwner,
merchantId: methodData.merchantId,
});
em.persist(paymentMethod);
@@ -32,7 +33,8 @@ export class PaymentMethodsSeeder {
existing.description !== methodData.description ||
existing.enabled !== methodData.enabled ||
existing.order !== methodData.order ||
existing.cardNumber !== methodData.cardNumber
existing.cardNumber !== methodData.cardNumber ||
existing.cardOwner !== methodData.cardOwner
) {
existing.description = methodData.description;
existing.enabled = methodData.enabled;
@@ -43,6 +45,9 @@ export class PaymentMethodsSeeder {
if (methodData.cardNumber !== undefined) {
existing.cardNumber = methodData.cardNumber;
}
if (methodData.cardOwner !== undefined) {
existing.cardOwner = methodData.cardOwner;
}
if (methodData.merchantId !== undefined) {
existing.merchantId = methodData.merchantId;
}