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>
15 lines
370 B
TypeScript
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;
|
|
}
|