view models
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import type { GetEntitySponsorshipPricingResultDto } from '../dtos';
|
||||
// Note: No generated DTO available for SponsorshipPricing yet
|
||||
interface SponsorshipPricingDTO {
|
||||
mainSlotPrice: number;
|
||||
secondarySlotPrice: number;
|
||||
currency: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sponsorship Pricing View Model
|
||||
@@ -10,7 +15,7 @@ export class SponsorshipPricingViewModel {
|
||||
secondarySlotPrice: number;
|
||||
currency: string;
|
||||
|
||||
constructor(dto: GetEntitySponsorshipPricingResultDto) {
|
||||
constructor(dto: SponsorshipPricingDTO) {
|
||||
this.mainSlotPrice = dto.mainSlotPrice;
|
||||
this.secondarySlotPrice = dto.secondarySlotPrice;
|
||||
this.currency = dto.currency;
|
||||
|
||||
Reference in New Issue
Block a user