Search Results for

    Show / Hide Table of Contents

    Class XAIPrepaidBalance.XAIBalanceChange

    Inheritance
    object
    XAIPrepaidBalance.XAIBalanceChange
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.xAI
    Assembly: Glitch9.AIDevKit.Provider.XAI.dll
    Syntax
    public class XAIPrepaidBalance.XAIBalanceChange

    Properties

    | Edit this page View Source

    Amount

    Required. Representation of USD Cents.

    Declaration
    [JsonProperty("amount")]
    public XAIPrepaidBalance.Amount Amount { get; set; }
    Property Value
    Type Description
    XAIPrepaidBalance.Amount
    | Edit this page View Source

    ChangeOrigin

    Required. The reason for the change.

    • PURCHASE: Purchase by user. amount field will be negative.
    • SPEND: Spending by user. amount field will be positive.
    • REFUND: A refund issued to user. amount field will be negative.
    • MANUAL: Can be either positive or negative, performed by xAI staff.
    • AUTO_PURCHASE: Can only be negative.
    Declaration
    [JsonProperty("changeOrigin")]
    public string ChangeOrigin { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    CreateTime

    Required. Creation time of the invoice.

    Declaration
    [JsonProperty("createTime")]
    public string CreateTime { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    CreateTs

    Required. Creation timestamp.

    Declaration
    [JsonProperty("createTs")]
    public string CreateTs { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    InvoiceId

    Required. Invoice ID.

    Declaration
    [JsonProperty("invoiceId")]
    public string InvoiceId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    InvoiceNumber

    Required. Invoice number.

    Declaration
    [JsonProperty("invoiceNumber")]
    public string InvoiceNumber { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    PaymentProcessor

    Required. Payment processor information.

    Declaration
    [JsonProperty("paymentProcessor")]
    public XAIPrepaidBalance.PaymentProcessor PaymentProcessor { get; set; }
    Property Value
    Type Description
    XAIPrepaidBalance.PaymentProcessor
    | Edit this page View Source

    SpendBpKeyMonth

    Required. Calendar month the purchase is made in.

    Declaration
    [JsonProperty("spendBpKeyMonth")]
    public int SpendBpKeyMonth { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    SpendBpKeyYear

    Required. Calendar year the purchase is made in.

    Declaration
    [JsonProperty("spendBpKeyYear")]
    public int SpendBpKeyYear { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    TeamId

    Required. The team ID.

    Declaration
    [JsonProperty("teamId")]
    public string TeamId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    TopupStatus

    Required. Status of the top up.

    Declaration
    [JsonProperty("topupStatus")]
    public string TopupStatus { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Total

    Required. Representation of USD Cents.

    Declaration
    [JsonProperty("total")]
    public XAIPrepaidBalance.Amount Total { get; set; }
    Property Value
    Type Description
    XAIPrepaidBalance.Amount
    | Edit this page View Source

    Val

    Required. Value.

    Declaration
    [JsonProperty("val")]
    public string Val { get; set; }
    Property Value
    Type Description
    string

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation