-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: object storage added to movie api with payment gateway.
- Loading branch information
1 parent
e8ba757
commit 8aaa170
Showing
16 changed files
with
3,431 additions
and
1,367 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty, IsNumber, IsString } from 'class-validator'; | ||
|
||
export class CreatePaymentDto { | ||
@ApiProperty({ description: 'The amount of the order', example: 500 }) | ||
@IsNumber({}, { message: 'The amount must be a number' }) | ||
@IsNotEmpty({ message: 'The amount must not be empty' }) | ||
amount: number; | ||
|
||
@ApiProperty({ | ||
description: 'The name of the order', | ||
example: 'The Shawshank Redemption', | ||
}) | ||
@IsString({ message: 'The name must be a string' }) | ||
@IsNotEmpty({ message: 'The name must not be empty' }) | ||
name: string; | ||
|
||
@ApiProperty({ | ||
description: 'The description of the order', | ||
example: | ||
'Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency.', | ||
}) | ||
@IsString({ message: 'The description must be a string' }) | ||
@IsNotEmpty({ message: 'The description must not be empty' }) | ||
description: string; | ||
|
||
@ApiProperty({ description: 'The quantity of the order', example: 2 }) | ||
@IsNumber({}, { message: 'The quantity must be a number' }) | ||
@IsNotEmpty({ message: 'The quantity must not be empty' }) | ||
quantity: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './create-payment.dto'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.