Class PostModificationRequestDto
Request DTO for the modification of a GastroSky.Models.DTO.Post.
public sealed class PostModificationRequestDto
- Inheritance
-
PostModificationRequestDto
- Inherited Members
Properties
Address
Physical address.
public string? Address { get; set; }
Property Value
AnnualRevenueBracket
Bracket in which the annual revenue of the business falls.
- < 100'000
- 100'000-200'000
- 200'000-500'000
- 500'000-750'000
- 750'000-1'000'000
- 1'000'000-2'000'000
- > 2'000'000
public PostAnnualRevenueBracket? AnnualRevenueBracket { get; set; }
Property Value
ArchivalTimestampUTC
If this is not null, the post is archived. This wins against PublicationTimestampUTC.
public long? ArchivalTimestampUTC { get; set; }
Property Value
- long?
AvailableFromUTC
The date from when the GastroSky.Models.DTO.Post'ed object is available
public long? AvailableFromUTC { get; set; }
Property Value
- long?
BusinessCreationDateUTC
The date of when the GastroSky.Models.DTO.Post'ed business was created
public long? BusinessCreationDateUTC { get; set; }
Property Value
- long?
BusinessLegalForm
The legal form of the GastroSky.Models.DTO.Post'ed business
public BusinessLegalForm? BusinessLegalForm { get; set; }
Property Value
Category
GastroSky.Models.DTO.Post category.
public required PostCategory Category { get; set; }
Property Value
- See Also
ChosenIllustration
Illustration chosen from a preset of images
public int? ChosenIllustration { get; set; }
Property Value
- int?
ConstructionYear
The year of the GastroSky.Models.DTO.Post'ed object's construction.
public short? ConstructionYear { get; set; }
Property Value
ContactEmail
GastroSky.Models.DTO.Post contact email address.
public string? ContactEmail { get; set; }
Property Value
ContactName
GastroSky.Models.DTO.Post contact name and last name.
public string? ContactName { get; set; }
Property Value
ContactPhone
GastroSky.Models.DTO.Post contact phone number.
public string? ContactPhone { get; set; }
Property Value
Remarks
This is a premium feature.
ContactWebsiteURL
GastroSky.Models.DTO.Post contact website URL.
public string? ContactWebsiteURL { get; set; }
Property Value
Remarks
This is a premium feature.
CountryCodeISO
ISO code of where the GastroSky.Models.DTO.Post's object is located.
[StringLength(3)]
public string? CountryCodeISO { get; set; }
Property Value
CreationTimestampUTC
Unix-timestamp of when this GastroSky.Models.DTO.Post was created.
public long CreationTimestampUTC { get; set; }
Property Value
Currency
ISO 4217 string of the currency this GastroSky.Models.DTO.Post is published under. E.g. CHF
public string Currency { get; set; }
Property Value
DeletionTimestampUTC
If this is not null, the post was deleted. This wins against both ArchivalTimestampUTC and PublicationTimestampUTC.
public long? DeletionTimestampUTC { get; set; }
Property Value
- long?
DescriptionMarkdown
Translations payload in JSON format for the GastroSky.Models.DTO.Post's description markdown.
public TranslatableFieldDto? DescriptionMarkdown { get; set; }
Property Value
ExternalSeatCount
External seat count (if applicable, e.g. for restaurants and bars with tables and chairs).
public int? ExternalSeatCount { get; set; }
Property Value
- int?
ExternalSurfaceSquareMeters
External surface area in square meters.
public int? ExternalSurfaceSquareMeters { get; set; }
Property Value
- int?
HasGarden
Whether the GastroSky.Models.DTO.Post'ed object has a garden or not
public bool? HasGarden { get; set; }
Property Value
- bool?
HideContactData
Whether the GastroSky.Models.DTO.Post's contact fields should be hidden or not
public bool? HideContactData { get; set; }
Property Value
- bool?
InternalSeatCount
Internal seat count (if applicable, e.g. for restaurants and bars with tables and chairs).
public int? InternalSeatCount { get; set; }
Property Value
- int?
InternalSurfaceSquareMeters
Internal surface area in square meters.
public int? InternalSurfaceSquareMeters { get; set; }
Property Value
- int?
ItemTypes
ItemType associated with this GastroSky.Models.DTO.Post.
public required ItemType[] ItemTypes { get; set; }
Property Value
- ItemType[]
LastModificationTimestampUTC
Unix-timestamp of when the GastroSky.Models.DTO.Post was last modified.
public long? LastModificationTimestampUTC { get; set; }
Property Value
- long?
LastRenovationYear
The year of the GastroSky.Models.DTO.Post'ed object's last renovation.
public short? LastRenovationYear { get; set; }
Property Value
LocationId
public long? LocationId { get; set; }
Property Value
- long?
MonthlyRentPriceSubunit
Sub-unit of the monthly rent price.
E.g. 1 CHF would be 100 sub-units. This is to remove the floating point and maintain precision and performance. It is even required to be this way by many payment gateway APIs such as Stripe.
public long? MonthlyRentPriceSubunit { get; set; }
Property Value
- long?
NumberOfBedrooms
How many bedrooms are in the GastroSky.Models.DTO.Post'ed object
public int? NumberOfBedrooms { get; set; }
Property Value
- int?
NumberOfBeds
How many beds are in the GastroSky.Models.DTO.Post'ed object
public int? NumberOfBeds { get; set; }
Property Value
- int?
NumberOfEmployees
How many employees are working in the GastroSky.Models.DTO.Post'ed object ex. 1 employee at 100% and 2 employees at 50% = 2 employees
public int? NumberOfEmployees { get; set; }
Property Value
- int?
NumberOfFloors
How many floors are in the GastroSky.Models.DTO.Post'ed object
public int? NumberOfFloors { get; set; }
Property Value
- int?
NumberOfParkingLots
How many parking lots are available for the GastroSky.Models.DTO.Post'ed object
public int? NumberOfParkingLots { get; set; }
Property Value
- int?
NumberOfRooms
How many rooms are in the GastroSky.Models.DTO.Post'ed object
public int? NumberOfRooms { get; set; }
Property Value
- int?
NumberOfTerraces
How many terraces are available for the GastroSky.Models.DTO.Post'ed object
public int? NumberOfTerraces { get; set; }
Property Value
- int?
PublicationTimestampUTC
If this is null the post is a draft.
public long? PublicationTimestampUTC { get; set; }
Property Value
- long?
SalePriceSubunit
Sub-unit of the sale price.
E.g. 1 CHF would be 100 sub-units. This is to remove the floating point and maintain precision and performance. It is even required to be this way by many payment gateway APIs such as Stripe.
public long? SalePriceSubunit { get; set; }
Property Value
- long?
Slug
Post.Slug
[Required]
public string Slug { get; set; }
Property Value
Subtitle
Translations payload in JSON format for theGastroSky.Models.DTO.Post's subtitle.
[Required]
public TranslatableFieldDto Subtitle { get; set; }
Property Value
Title
Translations payload in JSON format for theGastroSky.Models.DTO.Post's title.
[Required]
public TranslatableFieldDto Title { get; set; }
Property Value
VideoURL
Link to video related to the object.
public string? VideoURL { get; set; }