@@ -10,7 +10,7 @@ class ZarinPalGateway {
|
|||||||
private logger = new Logger(ZarinPalGateway.name);
|
private logger = new Logger(ZarinPalGateway.name);
|
||||||
|
|
||||||
private gatewayApiUrl: string = `https://${process.env.IPG_TYPE}.zarinpal.com/pg`; //or api subdomain
|
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 MERCHANT_ID: string = process.env.ZARINPAL_MERCHANT_ID;
|
||||||
private requestHeader = { "Content-Type": "application/json", Accept: "application/json" };
|
private requestHeader = { "Content-Type": "application/json", Accept: "application/json" };
|
||||||
|
|
||||||
|
|||||||
@@ -136,6 +136,24 @@ export class UpdateVariantDTO {
|
|||||||
@IsValidPersianDate()
|
@IsValidPersianDate()
|
||||||
@ApiProperty({ type: "string", description: "duration for special sale ", example: "1403/08/12" })
|
@ApiProperty({ type: "string", description: "duration for special sale ", example: "1403/08/12" })
|
||||||
specialSale_endDate?: string;
|
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 {
|
export class ActivateVariantDTO {
|
||||||
|
|||||||
Reference in New Issue
Block a user