Files
backend/src/auth/dto/send-otp.dto.ts
T
Alireza HassaniandCursor 4a1d60dbef Add SMS templates, prepaid IRT billing, and advertising shortcode 9000590009.
Charge ceil(len/64)*400 IRT per recipient across OTP, customer, and partner SMS; seed new businesses with 500k IRT; default partner sends to the advertising line.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 16:24:15 +03:30

15 lines
370 B
TypeScript

import { IsString, Matches, MaxLength } from 'class-validator';
export class SendOtpDto {
@IsString()
@Matches(/^\+[1-9]\d{6,14}$/, {
message: 'cellNumber must be in E.164 format (e.g. +989121234567)',
})
cellNumber!: string;
/** Tenant host/apex — required so OTP SMS is billed to the business. */
@IsString()
@MaxLength(253)
domain!: string;
}