From a6e090857626e59971968ad281c2f1cef929bd32 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Mon, 27 Oct 2025 19:29:36 +0330 Subject: [PATCH 1/2] fix : callback url --- src/modules/IPG/gateways/zarinpal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/IPG/gateways/zarinpal.ts b/src/modules/IPG/gateways/zarinpal.ts index 29f826c..f164343 100644 --- a/src/modules/IPG/gateways/zarinpal.ts +++ b/src/modules/IPG/gateways/zarinpal.ts @@ -10,7 +10,7 @@ class ZarinPalGateway { private logger = new Logger(ZarinPalGateway.name); private gatewayApiUrl: string = `https://${process.env.IPG_TYPE}.zarinpal.com/pg`; //or api subdomain - private callBackURL = `${process.env.SITE_URL}/verify/Zarinpal/`; + private callBackURL = `${process.env.SITE_URL}/payment/verify/Zarinpal/`; private MERCHANT_ID: string = process.env.ZARINPAL_MERCHANT_ID; private requestHeader = { "Content-Type": "application/json", Accept: "application/json" }; From afadc8179d640f2dfa0939cc03aa5f478bc7efcd Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Mon, 27 Oct 2025 19:31:08 +0330 Subject: [PATCH 2/2] update : update variant dto --- src/modules/product/DTO/updateVariant.dto.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/modules/product/DTO/updateVariant.dto.ts b/src/modules/product/DTO/updateVariant.dto.ts index 728e5ef..214e8e0 100644 --- a/src/modules/product/DTO/updateVariant.dto.ts +++ b/src/modules/product/DTO/updateVariant.dto.ts @@ -136,6 +136,24 @@ export class UpdateVariantDTO { @IsValidPersianDate() @ApiProperty({ type: "string", description: "duration for special sale ", example: "1403/08/12" }) specialSale_endDate?: string; + + @Expose() + @IsOptional() + @IsNotEmpty() + @ApiProperty({ type: "number", description: "the height of product package in cm", example: 25 }) + package_height: number; + + @Expose() + @IsOptional() + @IsNotEmpty() + @ApiProperty({ type: "number", description: "the length of product package in cm", example: 45 }) + package_length: number; + + @Expose() + @IsOptional() + @IsNotEmpty() + @ApiProperty({ type: "number", description: "the width of product package in cm", example: 10 }) + package_width: number; } export class ActivateVariantDTO {