0.4.0: Claim, Models/ DTOs, compile
LeaderboardSession.ClaimAsync sends onClaim. Generated DTOs live under Models/ with nullable wire fields. Remove incomplete duplicate type files.
This commit is contained in:
@@ -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
@@ -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; }
|
||||
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
|
||||
@@ -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
@@ -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; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user