Initial commit

This commit is contained in:
rudder
2026-08-12 14:04:55 +03:00
commit 8cf738d9f0
124 changed files with 5433 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// 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 ListStoresResponse
{
[JsonProperty("stores")]
public List<Store> Stores { get; set; }
[JsonProperty("total")]
public int Total { get; set; }
}
+31
View File
@@ -0,0 +1,31 @@
// 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 Offer
{
[JsonProperty("contents")]
public List<OfferContent> Contents { get; set; }
[JsonProperty("createdAt")]
public string CreatedAt { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("maxPurchases")]
public int MaxPurchases { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("price")]
public OfferPrice Price { get; set; }
[JsonProperty("updatedAt")]
public string UpdatedAt { get; set; }
}
+16
View File
@@ -0,0 +1,16 @@
// 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; }
[JsonProperty("itemId")]
public string ItemId { get; set; }
}
+16
View File
@@ -0,0 +1,16 @@
// 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; }
[JsonProperty("currency")]
public string Currency { get; set; }
}
+19
View File
@@ -0,0 +1,19 @@
// 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; }
[JsonProperty("offerId")]
public string OfferId { get; set; }
[JsonProperty("storeSlug")]
public string StoreSlug { get; set; }
}
+19
View File
@@ -0,0 +1,19 @@
// 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; }
[JsonProperty("purchaseId")]
public string PurchaseId { get; set; }
[JsonProperty("success")]
public bool Success { get; set; }
}
+46
View File
@@ -0,0 +1,46 @@
// 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 Store
{
[JsonProperty("createdAt")]
public string CreatedAt { get; set; }
[JsonProperty("data")]
public JToken Data { get; set; }
[JsonProperty("description")]
public string Description { get; set; }
[JsonProperty("environment")]
public string Environment { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("offers")]
public List<Offer> Offers { get; set; }
[JsonProperty("projectId")]
public string ProjectId { get; set; }
[JsonProperty("scenarioId")]
public string ScenarioId { get; set; }
[JsonProperty("slug")]
public string Slug { get; set; }
[JsonProperty("status")]
public string Status { get; set; }
[JsonProperty("updatedAt")]
public string UpdatedAt { get; set; }
}