feat(payment): implement complete Zibal IPG, EBank, Wallets, Refunds and Trust Seals
Deploy Canina / deploy (push) Successful in 1m51s
Deploy Canina / deploy (push) Successful in 1m51s
This commit is contained in:
1 parent
7203915e15
commit
a2b8afccc3
21 files changed
+143035
-8553
No files matched your search
@@ -0,0 +1,55 @@
|
||||
import {
|
||||
IsNotEmpty,
|
||||
IsString,
|
||||
IsNumber,
|
||||
IsOptional,
|
||||
Min,
|
||||
} from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
export class CreateEBankCheckoutDto {
|
||||
@ApiProperty({ description: 'مبلغ انتقال وجه به ریال' })
|
||||
@IsNumber()
|
||||
@Min(10000)
|
||||
amount: number;
|
||||
|
||||
@ApiProperty({ description: 'شماره شبا حساب مقصد (IR...)' })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
iban: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شناسه حساب مبدا پذیرنده' })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
accountId?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'کد دلیل انتقال وجه' })
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
reasonCode?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'میزان تاخیر به دقیقه' })
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
delay?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شناسه یکتای اختصاصی' })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
uniqueCode?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'توضیحات انتقال وجه' })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
description?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شناسه واریز' })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
paymentNumber?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'آدرس کالبک وبهوک' })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
callbackUrl?: string;
|
||||
}
|
||||
Reference in new issue
Block a user