payment bug
This commit is contained in:
@@ -11,8 +11,8 @@ export class Payment extends BaseEntity {
|
||||
@Property({ type: 'decimal', precision: 10, scale: 0 })
|
||||
amount!: number;
|
||||
|
||||
@Property({ unique: true })
|
||||
authority!: string;
|
||||
@Property({ unique: true, nullable: true })
|
||||
authority?: string | null;
|
||||
|
||||
@Enum(() => PaymentGatewayEnum)
|
||||
gateway?: PaymentGatewayEnum | null = null;
|
||||
@@ -26,12 +26,12 @@ export class Payment extends BaseEntity {
|
||||
@Property({ nullable: true })
|
||||
cardPan?: string | null = null;
|
||||
|
||||
@Property({ type: 'json' })
|
||||
verifyResponse?: Record<string, any>;
|
||||
@Property({ type: 'json', nullable: true })
|
||||
verifyResponse?: Record<string, any> | null = null;
|
||||
|
||||
@Property({ nullable: true })
|
||||
paidAt: Date;
|
||||
paidAt?: Date | null = null;
|
||||
|
||||
@Property({ nullable: true })
|
||||
failedAt: Date;
|
||||
failedAt?: Date | null = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user