-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IT-1948: added cashout inform operation
- Loading branch information
Showing
7 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/Sportradar.Mbs.Sdk/Entities/Common/CashoutInformValidation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Sportradar.Mbs.Sdk.Entities.Common; | ||
|
||
/// <summary> | ||
/// Represents validation object. | ||
/// </summary> | ||
public class CashoutInformValidation | ||
{ | ||
/// <summary> | ||
/// Gets or sets the code. | ||
/// </summary> | ||
[JsonPropertyName("code")] | ||
public int? Code { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the message. | ||
/// </summary> | ||
[JsonPropertyName("message")] | ||
public string? Message { get; set; } | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Sportradar.Mbs.Sdk/Entities/Request/CashoutInformRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Text.Json.Serialization; | ||
using Sportradar.Mbs.Sdk.Entities.Common; | ||
|
||
namespace Sportradar.Mbs.Sdk.Entities.Request; | ||
|
||
/// <summary> | ||
/// Represents a request to acknowledge a cashout inform. | ||
/// </summary> | ||
public class CashoutInformRequest : ContentRequestBase | ||
{ | ||
[JsonInclude] | ||
[JsonPropertyName("type")] | ||
private string Type => "cashout-inform"; | ||
|
||
/// <summary> | ||
/// Gets or sets the cashout object. | ||
/// </summary> | ||
[JsonPropertyName("cashout")] | ||
public CashoutRequest? Cashout { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the cashout inform validation object. | ||
/// </summary> | ||
[JsonPropertyName("validation")] | ||
public CashoutInformValidation? Validation{ get; set; } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/Sportradar.Mbs.Sdk/Entities/Response/CashoutInformResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System.Text.Json.Serialization; | ||
using Sportradar.Mbs.Sdk.Entities.Common; | ||
|
||
namespace Sportradar.Mbs.Sdk.Entities.Response; | ||
|
||
/// <summary> | ||
/// Represents a response object for a cashout inform. | ||
/// </summary> | ||
public class CashoutInformResponse : ContentResponseBase | ||
{ | ||
[JsonInclude] | ||
[JsonPropertyName("type")] | ||
private string Type => "cashout-inform-reply"; | ||
|
||
/// <summary> | ||
/// Gets or sets the code of the cashout inform response. | ||
/// </summary> | ||
[JsonPropertyName("code")] | ||
public int Code { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the signature of the cashout inform response. | ||
/// </summary> | ||
[JsonPropertyName("signature")] | ||
public string? Signature { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the cashout ID of the cashout inform response. | ||
/// </summary> | ||
[JsonPropertyName("cashoutId")] | ||
public string? CashoutId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the message of the cashout inform response. | ||
/// </summary> | ||
[JsonPropertyName("message")] | ||
public string? Message { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the ticket ID of the cashout inform response. | ||
/// </summary> | ||
[JsonPropertyName("ticketId")] | ||
public string? TicketId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the status of the cashout inform response. | ||
/// </summary> | ||
[JsonPropertyName("status")] | ||
public AcceptanceStatus? Status { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters