0.4.0: Claim, Models/ DTOs, compile
CI / publish (push) Failing after 39s
CI / check (push) Successful in 52s

LeaderboardSession.ClaimAsync sends onClaim. Generated DTOs live under Models/ with nullable wire fields. Remove incomplete duplicate type files.
This commit is contained in:
edmand46
2026-08-29 11:33:01 +03:00
parent 3c590294c9
commit ea20ea6d51
89 changed files with 1414 additions and 396 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.Stores;
@@ -8,9 +7,9 @@ namespace RudderSdk.Core.Models.Stores;
public class ListStoresResponse
{
[JsonProperty("stores")]
public List<Store> Stores { get; set; }
public List<Store>? Stores { get; set; }
[JsonProperty("total")]
public int Total { get; set; }
public int? Total { get; set; }
}
+8 -8
View File
@@ -1,6 +1,6 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.Stores;
@@ -8,24 +8,24 @@ namespace RudderSdk.Core.Models.Stores;
public class Offer
{
[JsonProperty("contents")]
public List<OfferContent> Contents { get; set; }
public List<OfferContent>? Contents { get; set; }
[JsonProperty("createdAt")]
public string CreatedAt { get; set; }
public DateTimeOffset? CreatedAt { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonProperty("maxPurchases")]
public int MaxPurchases { get; set; }
public int? MaxPurchases { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
public string? Name { get; set; }
[JsonProperty("price")]
public OfferPrice Price { get; set; }
public OfferPrice? Price { get; set; }
[JsonProperty("updatedAt")]
public string UpdatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
}
+2 -4
View File
@@ -1,16 +1,14 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.Stores;
public class OfferContent
{
[JsonProperty("amount")]
public long Amount { get; set; }
public long? Amount { get; set; }
[JsonProperty("itemId")]
public string ItemId { get; set; }
public string? ItemId { get; set; }
}
+2 -4
View File
@@ -1,16 +1,14 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.Stores;
public class OfferPrice
{
[JsonProperty("amount")]
public long Amount { get; set; }
public long? Amount { get; set; }
[JsonProperty("currency")]
public string Currency { get; set; }
public string? Currency { get; set; }
}
+3 -5
View File
@@ -1,19 +1,17 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.Stores;
public class PurchaseOfferRequest
{
[JsonProperty("idempotencyKey")]
public string IdempotencyKey { get; set; }
public string? IdempotencyKey { get; set; }
[JsonProperty("offerId")]
public string OfferId { get; set; }
public string? OfferId { get; set; }
[JsonProperty("storeSlug")]
public string StoreSlug { get; set; }
public string? StoreSlug { get; set; }
}
+3 -5
View File
@@ -1,19 +1,17 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.Stores;
public class PurchaseOfferResponse
{
[JsonProperty("error")]
public string Error { get; set; }
public string? Error { get; set; }
[JsonProperty("purchaseId")]
public string PurchaseId { get; set; }
public string? PurchaseId { get; set; }
[JsonProperty("success")]
public bool Success { get; set; }
public bool? Success { get; set; }
}
+13 -12
View File
@@ -1,6 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.Stores;
@@ -8,39 +9,39 @@ namespace RudderSdk.Core.Models.Stores;
public class Store
{
[JsonProperty("createdAt")]
public string CreatedAt { get; set; }
public DateTimeOffset? CreatedAt { get; set; }
[JsonProperty("data")]
public JToken Data { get; set; }
public JToken? Data { get; set; }
[JsonProperty("description")]
public string Description { get; set; }
public string? Description { get; set; }
[JsonProperty("environment")]
public string Environment { get; set; }
public string? Environment { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
public string? Name { get; set; }
[JsonProperty("offers")]
public List<Offer> Offers { get; set; }
public List<Offer>? Offers { get; set; }
[JsonProperty("projectId")]
public string ProjectId { get; set; }
public string? ProjectId { get; set; }
[JsonProperty("scenarioId")]
public string ScenarioId { get; set; }
public string? ScenarioId { get; set; }
[JsonProperty("slug")]
public string Slug { get; set; }
public string? Slug { get; set; }
[JsonProperty("status")]
public string Status { get; set; }
public string? Status { get; set; }
[JsonProperty("updatedAt")]
public string UpdatedAt { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
}