-
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.
Merge pull request #9 from kwtc/feature/project-structure-and-offer-s…
…earch Additional offer and catalog endpoint support
- Loading branch information
Showing
6 changed files
with
216 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Kwtc.Tjek.Client.Abstractions.Models; | ||
|
||
public class Catalog | ||
{ | ||
[JsonPropertyName("id")] | ||
public string Id { get; set; } = default!; | ||
|
||
[JsonPropertyName("ern")] | ||
public string Ern { get; set; } = default!; | ||
|
||
[JsonPropertyName("run_from")] | ||
public string FromDate { get; set; } = default!; | ||
|
||
[JsonPropertyName("store_id")] | ||
public string? StoreId { get; set; } | ||
|
||
[JsonPropertyName("store_url")] | ||
public string StoreUrl { get; set; } = default!; | ||
|
||
[JsonPropertyName("images")] | ||
public Images Images { get; set; } = default!; | ||
|
||
[JsonPropertyName("types")] | ||
public string[] Types { get; set; } = default!; | ||
|
||
[JsonPropertyName("incito_publication_id")] | ||
public string? IncitoPublicationId { get; set; } | ||
|
||
[JsonPropertyName("all_stores")] | ||
public bool AllStores { get; set; } | ||
|
||
[JsonPropertyName("dealer_url")] | ||
public string DealerUrl { get; set; } = default!; | ||
|
||
[JsonPropertyName("branding")] | ||
public Branding Branding { get; set; } = default!; | ||
|
||
[JsonPropertyName("pdf_url")] | ||
public string PdfUrl { get; set; } = default!; | ||
|
||
[JsonPropertyName("label")] | ||
public string Label { get; set; } = default!; | ||
|
||
[JsonPropertyName("run_till")] | ||
public string ToDate { get; set; } = default!; | ||
|
||
[JsonPropertyName("background")] | ||
public string Background { get; set; } = default!; | ||
|
||
[JsonPropertyName("category_ids")] | ||
public string[] CategoryIds { get; set; } = default!; | ||
|
||
[JsonPropertyName("offer_count")] | ||
public long OfferCount { get; set; } | ||
|
||
[JsonPropertyName("page_count")] | ||
public long PageCount { get; set; } | ||
|
||
[JsonPropertyName("dealer_id")] | ||
public string DealerId { get; set; } = default!; | ||
|
||
[JsonPropertyName("dealer")] | ||
public Dealer Dealer { get; set; } = default!; | ||
|
||
[JsonPropertyName("dimensions")] | ||
public Dimensions Dimensions { get; set; } = default!; | ||
} |
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,12 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Kwtc.Tjek.Client.Abstractions.Models; | ||
|
||
public class Dimensions | ||
{ | ||
[JsonPropertyName("width")] | ||
public decimal Width { get; set; } | ||
|
||
[JsonPropertyName("height")] | ||
public decimal Height { get; set; } | ||
} |
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.