-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some initial refactor and draft code
Add code framework for endpoints Get endpoint implementation done WIP implement post endpoint
- Loading branch information
Showing
25 changed files
with
215 additions
and
153 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
...ovider-configurations/dtos/create-program-financial-service-provider-configuration.dto.ts
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,32 @@ | ||
import { | ||
FinancialServiceProviderConfigurationEnum, | ||
FinancialServiceProviderName, | ||
} from '@121-service/src/financial-service-providers/enum/financial-service-provider-name.enum'; | ||
import { LocalizedString } from '@121-service/src/shared/types/localized-string.type'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty, IsString } from 'class-validator'; | ||
|
||
export class CreateProgramFinancialServiceProviderConfigurationDto { | ||
// TODO: Do we accept spaces in the name? Any other naming criteria? Special characters? All lowercase? | ||
@ApiProperty({ example: 'VisaDebitCards' }) | ||
@IsNotEmpty() | ||
@IsString() | ||
public readonly name: string; | ||
|
||
@ApiProperty({ | ||
example: { | ||
en: 'Visa Debit Cards', | ||
nl: 'Visa-betaalkaarten', | ||
}, | ||
}) | ||
@IsNotEmpty() | ||
public readonly label: LocalizedString; | ||
|
||
@ApiProperty({ | ||
enum: FinancialServiceProviderName, | ||
type: 'enum', | ||
example: FinancialServiceProviderName.intersolveVoucherWhatsapp, | ||
}) | ||
@IsNotEmpty() | ||
public readonly financialServiceProviderName: FinancialServiceProviderName; | ||
} |
22 changes: 0 additions & 22 deletions
22
...am-financial-service-provider-configurations/dtos/create-program-fsp-configuration.dto.ts
This file was deleted.
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
2 changes: 1 addition & 1 deletion
2
...provider-configuration-property.entity.ts → ...provider-configuration-property.entity.ts
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
2 changes: 1 addition & 1 deletion
2
...der-configurations/mappers/program-financial-service-provider-configuration-dto.mapper.ts
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
Oops, something went wrong.