Skip to content

Commit 2ada80f

Browse files
taeyzzzThanetpon Kultontikorn
andauthored
Fix variable dict (#27)
* refactoring * refactor script to generate config * refactor share plugin * clean * fix variable dict * update version --------- Co-authored-by: Thanetpon Kultontikorn <[email protected]>
1 parent 370ca61 commit 2ada80f

File tree

11 files changed

+623
-58
lines changed

11 files changed

+623
-58
lines changed

Agoda.Graphql/SupplyApi/Queries/Availabilities/GetAvailabilities/GetAvailabilities.generated.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using Newtonsoft.Json;
44
using Newtonsoft.Json.Converters;
5+
using Newtonsoft.Json.Linq;
56
using Agoda.Graphql;
67

78
namespace Agoda.Graphql.SupplyApi.Queries.Availabilities.GetAvailabilities
@@ -65,40 +66,29 @@ public sealed class Data
6566
}
6667

6768
public sealed class Availabilities
68-
{
69+
{
6970
[JsonProperty("propertyId")]
7071
public string PropertyId { get; set; }
71-
7272
[JsonProperty("roomId")]
7373
public string RoomId { get; set; }
74-
7574
[JsonProperty("dmcId")]
7675
public int DmcId { get; set; }
77-
7876
[JsonProperty("date")]
7977
public DateTime Date { get; set; }
80-
8178
[JsonProperty("regularAllotment")]
8279
public int? RegularAllotment { get; set; }
83-
8480
[JsonProperty("regularAllotmentUsed")]
8581
public int? RegularAllotmentUsed { get; set; }
86-
8782
[JsonProperty("guaranteedAllotment")]
8883
public int? GuaranteedAllotment { get; set; }
89-
9084
[JsonProperty("guaranteedAllotmentUsed")]
9185
public int? GuaranteedAllotmentUsed { get; set; }
92-
9386
[JsonProperty("createdBy")]
9487
public string CreatedBy { get; set; }
95-
9688
[JsonProperty("createdWhen")]
9789
public DateTime CreatedWhen { get; set; }
98-
9990
[JsonProperty("modifiedBy")]
10091
public string ModifiedBy { get; set; }
101-
10292
[JsonProperty("modifiedWhen")]
10393
public DateTime? ModifiedWhen { get; set; }
10494
}

Agoda.Graphql/SupplyApi/Queries/Availabilities/UpdateAvailability.generated.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using Newtonsoft.Json;
44
using Newtonsoft.Json.Converters;
5+
using Newtonsoft.Json.Linq;
56
using Agoda.Graphql;
67

78
namespace Agoda.Graphql.SupplyApi.Queries.Availabilities
@@ -81,40 +82,29 @@ public sealed class Data
8182
}
8283

8384
public sealed class AvailabilityMutation
84-
{
85+
{
8586
[JsonProperty("regularAllotment")]
8687
public int? RegularAllotment { get; set; }
87-
8888
[JsonProperty("guaranteedAllotment")]
8989
public int? GuaranteedAllotment { get; set; }
90-
9190
[JsonProperty("guaranteedAllotmentUsed")]
9291
public int? GuaranteedAllotmentUsed { get; set; }
93-
9492
[JsonProperty("regularAllotmentUsed")]
9593
public int? RegularAllotmentUsed { get; set; }
96-
9794
[JsonProperty("date")]
9895
public DateTime Date { get; set; }
99-
10096
[JsonProperty("propertyId")]
10197
public string PropertyId { get; set; }
102-
10398
[JsonProperty("dmcId")]
10499
public int DmcId { get; set; }
105-
106100
[JsonProperty("roomId")]
107101
public string RoomId { get; set; }
108-
109102
[JsonProperty("createdWhen")]
110103
public DateTime CreatedWhen { get; set; }
111-
112104
[JsonProperty("createdBy")]
113105
public string CreatedBy { get; set; }
114-
115106
[JsonProperty("modifiedWhen")]
116107
public DateTime? ModifiedWhen { get; set; }
117-
118108
[JsonProperty("modifiedBy")]
119109
public string ModifiedBy { get; set; }
120110
}

0 commit comments

Comments
 (0)