Class PhoneSmsPrepaidCreditDto
PhoneSmsPrepaidCreditDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "PhoneSmsPrepaidCreditDto")]
public class PhoneSmsPrepaidCreditDto : IValidatableObject
Constructors
View SourcePhoneSmsPrepaidCreditDto()
Initializes a new instance of the PhoneSmsPrepaidCreditDto class.
Declaration
[JsonConstructor]
protected PhoneSmsPrepaidCreditDto()
PhoneSmsPrepaidCreditDto(Guid, PhoneCountryEnum?, bool, long, long, int, DateTime, DateTime)
Initializes a new instance of the PhoneSmsPrepaidCreditDto class.
Declaration
public PhoneSmsPrepaidCreditDto(Guid id = default, PhoneSmsPrepaidCreditDto.PhoneCountryEnum? phoneCountry = null, bool global = false, long remainingCredits = 0, long initialCredits = 0, int sentMultiplier = 0, DateTime createdAt = default, DateTime updatedAt = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | id (required). |
| PhoneSmsPrepaidCreditDto.PhoneCountryEnum? | phoneCountry | Null means the balance is global for the account rather than country-specific.. |
| bool | global | global (required). |
| long | remainingCredits | remainingCredits (required). |
| long | initialCredits | initialCredits (required). |
| int | sentMultiplier | sentMultiplier (required). |
| DateTime | createdAt | createdAt (required). |
| DateTime | updatedAt | updatedAt (required). |
Properties
View SourceCreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Global
Gets or Sets Global
Declaration
[DataMember(Name = "global", IsRequired = true, EmitDefaultValue = true)]
public bool Global { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
InitialCredits
Gets or Sets InitialCredits
Declaration
[DataMember(Name = "initialCredits", IsRequired = true, EmitDefaultValue = true)]
public long InitialCredits { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
PhoneCountry
Null means the balance is global for the account rather than country-specific.
Declaration
[DataMember(Name = "phoneCountry", EmitDefaultValue = true)]
public PhoneSmsPrepaidCreditDto.PhoneCountryEnum? PhoneCountry { get; set; }
Property Value
| Type | Description |
|---|---|
| PhoneSmsPrepaidCreditDto.PhoneCountryEnum? | Null means the balance is global for the account rather than country-specific. |
RemainingCredits
Gets or Sets RemainingCredits
Declaration
[DataMember(Name = "remainingCredits", IsRequired = true, EmitDefaultValue = true)]
public long RemainingCredits { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
SentMultiplier
Gets or Sets SentMultiplier
Declaration
[DataMember(Name = "sentMultiplier", IsRequired = true, EmitDefaultValue = true)]
public int SentMultiplier { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |