Money

An amount of money in minor units (cents).

On this page

An amount of money in minor units (cents).

namespace Sponsorkit;

public sealed class Money

Constructors#

MemberDescription
Money()Creates an instance with every property at its default; set the properties with an object initializer.

Money()#

public Money()

Creates an instance with every property at its default; set the properties with an object initializer.

Properties#

MemberDescription
ValueThe amount in minor units of Currency (for example 500 = $5.00).
CurrencyISO 4217 currency code, uppercase.

Value#

public long Value { get; set; }

The amount in minor units of Currency (for example 500 = $5.00).

Type: long · JSON: value

Currency#

public string Currency { get; set; } = "";

ISO 4217 currency code, uppercase.

Type: string · Default: "" · JSON: currency