-
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
22 changed files
with
219 additions
and
163 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
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, | ||
Check failure on line 2 in services/121-service/src/program-financial-service-provider-configurations/dtos/create-program-financial-service-provider-configuration.dto.ts GitHub Actions / test
|
||
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; | ||
} |
24 changes: 0 additions & 24 deletions
24
...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
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
Oops, something went wrong.