-
Notifications
You must be signed in to change notification settings - Fork 0
/
Operation.cs
104 lines (76 loc) · 3.17 KB
/
Operation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved.
// This is licensed software from AccelByte Inc, for limitations
// and restrictions contact your company contract manager.
// This code is generated by tool. DO NOT EDIT.
using System.Text.Json.Serialization;
using AccelByte.Sdk.Core;
using AccelByte.Sdk.Core.Converters;
namespace AccelByte.Sdk.Api.Platform.Model
{
public class Operation : AccelByte.Sdk.Core.Model
{
[JsonPropertyName("creditPayload")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public CreditPayload? CreditPayload { get; set; }
[JsonPropertyName("debitPayload")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DebitPayload? DebitPayload { get; set; }
[JsonPropertyName("fulFillItemPayload")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public FulFillItemPayload? FulFillItemPayload { get; set; }
[JsonPropertyName("resultId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ResultId { get; set; }
[JsonPropertyName("revokeEntitlementPayload")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public RevokeEntitlementPayload? RevokeEntitlementPayload { get; set; }
[JsonPropertyName("status")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonStringEnum]
public OperationStatus? Status { get; set; }
[JsonPropertyName("statusReason")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? StatusReason { get; set; }
[JsonPropertyName("type")]
[JsonStringEnum]
public OperationType? Type { get; set; }
}
public class OperationStatus : StringEnum<OperationStatus>
{
public static readonly OperationStatus FAILED
= new OperationStatus("FAILED");
public static readonly OperationStatus INIT
= new OperationStatus("INIT");
public static readonly OperationStatus SKIPPED
= new OperationStatus("SKIPPED");
public static readonly OperationStatus SUCCESS
= new OperationStatus("SUCCESS");
public static implicit operator OperationStatus(string value)
{
return NewValue(value);
}
public OperationStatus(string enumValue)
: base(enumValue)
{
}
}
public class OperationType : StringEnum<OperationType>
{
public static readonly OperationType CREDITWALLET
= new OperationType("CREDIT_WALLET");
public static readonly OperationType DEBITWALLET
= new OperationType("DEBIT_WALLET");
public static readonly OperationType FULFILLITEM
= new OperationType("FULFILL_ITEM");
public static readonly OperationType REVOKEENTITLEMENT
= new OperationType("REVOKE_ENTITLEMENT");
public static implicit operator OperationType(string value)
{
return NewValue(value);
}
public OperationType(string enumValue)
: base(enumValue)
{
}
}
}