_base/StripeEntity.cs

stripe-dotnet · src/Stripe.net/Entities/_base/StripeEntity.cs · csharp · Apache-2.0
payments

Base class for Stripe entities with JSON handling and deserialization.

// Source: https://github.com/stripe/stripe-dotnet | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
namespace Stripe
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.CodeAnalysis;
    using System.Linq;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Text.Json;
    using Newtonsoft.Json;
    using Newtonsoft.Json.Linq;
    using Stripe.Infrastructure;
    using STJ = System.Text.Json;
    using STJS = System.Text.Json.Serialization;

    [JsonObject(MemberSerialization.OptIn)]
    [JsonConverter(typeof(StripeEntityConverter))]
    [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
    public abstract

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key