Skip to content

Commit ed4d6c8

Browse files
committed
Upgrade .NET SDK to spec 2.20.8-nightly.12
1 parent 9e8f091 commit ed4d6c8

24 files changed

Lines changed: 6670 additions & 1100 deletions

.openapi-generator/FILES

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ docs/CreateGroupRequest.md
7070
docs/CreateGroupRoleRequest.md
7171
docs/CreateInstanceRequest.md
7272
docs/CreateJamSubmissionRequest.md
73+
docs/CreateListingRequest.md
74+
docs/CreateProductRequest.md
7375
docs/CreatePropRequest.md
7476
docs/CreateWorldRequest.md
7577
docs/CurrentUser.md
@@ -84,6 +86,11 @@ docs/EarningsMetrics.md
8486
docs/EarningsMetricsTotals.md
8587
docs/EconomyAccount.md
8688
docs/EconomyApi.md
89+
docs/EconomyBalances.md
90+
docs/EconomyPayout.md
91+
docs/EconomyPayoutEligibility.md
92+
docs/EconomyPayoutList.md
93+
docs/EconomyPayoutStatus.md
8794
docs/EquipInventoryItemRequest.md
8895
docs/Error.md
8996
docs/Favorite.md
@@ -236,6 +243,7 @@ docs/ProductListingVariant.md
236243
docs/ProductPurchase.md
237244
docs/ProductPurchaseHistory.md
238245
docs/ProductPurchaseLocationType.md
246+
docs/ProductPurchaseProduct.md
239247
docs/ProductPurchasePurchaseContext.md
240248
docs/ProductPurchaseRecord.md
241249
docs/ProductType.md
@@ -269,6 +277,7 @@ docs/ShareInventoryItemDirectRequest.md
269277
docs/SortOption.md
270278
docs/SortOptionProductPurchase.md
271279
docs/Store.md
280+
docs/StoreContext.md
272281
docs/StoreShelf.md
273282
docs/StoreType.md
274283
docs/StoreView.md
@@ -278,6 +287,7 @@ docs/Subscription.md
278287
docs/SubscriptionPeriod.md
279288
docs/Success.md
280289
docs/SuccessFlag.md
290+
docs/TiliaKyc.md
281291
docs/TiliaStatus.md
282292
docs/TiliaTOS.md
283293
docs/TokenBundle.md
@@ -304,6 +314,8 @@ docs/UpdateGroupRequest.md
304314
docs/UpdateGroupRoleRequest.md
305315
docs/UpdateInventoryItemRequest.md
306316
docs/UpdateInviteMessageRequest.md
317+
docs/UpdateListingRequest.md
318+
docs/UpdateProductRequest.md
307319
docs/UpdatePropRequest.md
308320
docs/UpdateTiliaTOSRequest.md
309321
docs/UpdateUserBadgeRequest.md
@@ -431,6 +443,8 @@ src/VRChat.API/Model/CreateGroupRequest.cs
431443
src/VRChat.API/Model/CreateGroupRoleRequest.cs
432444
src/VRChat.API/Model/CreateInstanceRequest.cs
433445
src/VRChat.API/Model/CreateJamSubmissionRequest.cs
446+
src/VRChat.API/Model/CreateListingRequest.cs
447+
src/VRChat.API/Model/CreateProductRequest.cs
434448
src/VRChat.API/Model/CreatePropRequest.cs
435449
src/VRChat.API/Model/CreateWorldRequest.cs
436450
src/VRChat.API/Model/CurrentUser.cs
@@ -444,6 +458,11 @@ src/VRChat.API/Model/DynamicContentRow.cs
444458
src/VRChat.API/Model/EarningsMetrics.cs
445459
src/VRChat.API/Model/EarningsMetricsTotals.cs
446460
src/VRChat.API/Model/EconomyAccount.cs
461+
src/VRChat.API/Model/EconomyBalances.cs
462+
src/VRChat.API/Model/EconomyPayout.cs
463+
src/VRChat.API/Model/EconomyPayoutEligibility.cs
464+
src/VRChat.API/Model/EconomyPayoutList.cs
465+
src/VRChat.API/Model/EconomyPayoutStatus.cs
447466
src/VRChat.API/Model/EquipInventoryItemRequest.cs
448467
src/VRChat.API/Model/Error.cs
449468
src/VRChat.API/Model/Favorite.cs
@@ -584,6 +603,7 @@ src/VRChat.API/Model/ProductListingVariant.cs
584603
src/VRChat.API/Model/ProductPurchase.cs
585604
src/VRChat.API/Model/ProductPurchaseHistory.cs
586605
src/VRChat.API/Model/ProductPurchaseLocationType.cs
606+
src/VRChat.API/Model/ProductPurchaseProduct.cs
587607
src/VRChat.API/Model/ProductPurchasePurchaseContext.cs
588608
src/VRChat.API/Model/ProductPurchaseRecord.cs
589609
src/VRChat.API/Model/ProductType.cs
@@ -616,6 +636,7 @@ src/VRChat.API/Model/ShareInventoryItemDirectRequest.cs
616636
src/VRChat.API/Model/SortOption.cs
617637
src/VRChat.API/Model/SortOptionProductPurchase.cs
618638
src/VRChat.API/Model/Store.cs
639+
src/VRChat.API/Model/StoreContext.cs
619640
src/VRChat.API/Model/StoreShelf.cs
620641
src/VRChat.API/Model/StoreType.cs
621642
src/VRChat.API/Model/StoreView.cs
@@ -625,6 +646,7 @@ src/VRChat.API/Model/Subscription.cs
625646
src/VRChat.API/Model/SubscriptionPeriod.cs
626647
src/VRChat.API/Model/Success.cs
627648
src/VRChat.API/Model/SuccessFlag.cs
649+
src/VRChat.API/Model/TiliaKyc.cs
628650
src/VRChat.API/Model/TiliaStatus.cs
629651
src/VRChat.API/Model/TiliaTOS.cs
630652
src/VRChat.API/Model/TokenBundle.cs
@@ -651,6 +673,8 @@ src/VRChat.API/Model/UpdateGroupRequest.cs
651673
src/VRChat.API/Model/UpdateGroupRoleRequest.cs
652674
src/VRChat.API/Model/UpdateInventoryItemRequest.cs
653675
src/VRChat.API/Model/UpdateInviteMessageRequest.cs
676+
src/VRChat.API/Model/UpdateListingRequest.cs
677+
src/VRChat.API/Model/UpdateProductRequest.cs
654678
src/VRChat.API/Model/UpdatePropRequest.cs
655679
src/VRChat.API/Model/UpdateTiliaTOSRequest.cs
656680
src/VRChat.API/Model/UpdateUserBadgeRequest.cs

src/VRChat.API/Api/EconomyApi.cs

Lines changed: 3593 additions & 1085 deletions
Large diffs are not rendered by default.

src/VRChat.API/Client/Configuration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Configuration : IReadableConfiguration
3333
/// Version of the package.
3434
/// </summary>
3535
/// <value>Version of the package.</value>
36-
public const string Version = "2.20.8-nightly.11";
36+
public const string Version = "2.20.8-nightly.12";
3737

3838
/// <summary>
3939
/// Identifier for ISO 8601 DateTime Format
@@ -540,7 +540,7 @@ public static string ToDebugReport()
540540
report += " OS: " + System.Environment.OSVersion + "\n";
541541
report += " .NET Framework Version: " + System.Environment.Version + "\n";
542542
report += " Version of the API: 1.20.7\n";
543-
report += " SDK Package Version: 2.20.8-nightly.11\n";
543+
report += " SDK Package Version: 2.20.8-nightly.12\n";
544544

545545
return report;
546546
}
Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
/*
2+
* VRChat API Documentation
3+
*
4+
*
5+
* The version of the OpenAPI document: 1.20.7
6+
* Contact: vrchatapi.lpv0t@aries.fyi
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
10+
11+
using System;
12+
using System.Collections;
13+
using System.Collections.Generic;
14+
using System.Collections.ObjectModel;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Runtime.Serialization;
18+
using System.Text;
19+
using System.Text.RegularExpressions;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using Newtonsoft.Json.Linq;
23+
using System.ComponentModel.DataAnnotations;
24+
using FileParameter = VRChat.API.Client.FileParameter;
25+
using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter;
26+
27+
namespace VRChat.API.Model
28+
{
29+
/// <summary>
30+
/// Observed create-listing payload fields. Additional fields may exist.
31+
/// </summary>
32+
[DataContract(Name = "CreateListingRequest")]
33+
public partial class CreateListingRequest : IEquatable<CreateListingRequest>, IValidatableObject
34+
{
35+
36+
/// <summary>
37+
/// Gets or Sets ListingType
38+
/// </summary>
39+
[DataMember(Name = "listingType", IsRequired = true, EmitDefaultValue = true)]
40+
public ProductListingType ListingType { get; set; }
41+
/// <summary>
42+
/// Initializes a new instance of the <see cref="CreateListingRequest" /> class.
43+
/// </summary>
44+
[JsonConstructorAttribute]
45+
protected CreateListingRequest() { }
46+
/// <summary>
47+
/// Initializes a new instance of the <see cref="CreateListingRequest" /> class.
48+
/// </summary>
49+
/// <param name="active">active.</param>
50+
/// <param name="description">description (required).</param>
51+
/// <param name="displayName">displayName (required).</param>
52+
/// <param name="imageId">imageId (required).</param>
53+
/// <param name="listingType">listingType (required).</param>
54+
/// <param name="priceTokens">priceTokens (required).</param>
55+
/// <param name="productIds">productIds (required).</param>
56+
/// <param name="storeIds">storeIds (required).</param>
57+
public CreateListingRequest(bool active = default, string description = default, string displayName = default, string imageId = default, ProductListingType listingType = default, int priceTokens = default, List<string> productIds = default, List<string> storeIds = default)
58+
{
59+
// Allow null values for required properties to handle unexpected API responses gracefully
60+
this.Description = description;
61+
// Allow null values for required properties to handle unexpected API responses gracefully
62+
this.DisplayName = displayName;
63+
// Allow null values for required properties to handle unexpected API responses gracefully
64+
this.ImageId = imageId;
65+
this.ListingType = listingType;
66+
this.PriceTokens = priceTokens;
67+
// Allow null values for required properties to handle unexpected API responses gracefully
68+
this.ProductIds = productIds;
69+
// Allow null values for required properties to handle unexpected API responses gracefully
70+
this.StoreIds = storeIds;
71+
this.Active = active;
72+
}
73+
74+
/// <summary>
75+
/// Gets or Sets Active
76+
/// </summary>
77+
[DataMember(Name = "active", EmitDefaultValue = true)]
78+
public bool Active { get; set; }
79+
80+
/// <summary>
81+
/// Gets or Sets Description
82+
/// </summary>
83+
[DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
84+
public string Description { get; set; }
85+
86+
/// <summary>
87+
/// Gets or Sets DisplayName
88+
/// </summary>
89+
[DataMember(Name = "displayName", IsRequired = true, EmitDefaultValue = true)]
90+
public string DisplayName { get; set; }
91+
92+
/// <summary>
93+
/// Gets or Sets ImageId
94+
/// </summary>
95+
/*
96+
<example>file_ce35d830-e20a-4df0-a6d4-5aaef4508044</example>
97+
*/
98+
[DataMember(Name = "imageId", IsRequired = true, EmitDefaultValue = true)]
99+
public string ImageId { get; set; }
100+
101+
/// <summary>
102+
/// Gets or Sets PriceTokens
103+
/// </summary>
104+
[DataMember(Name = "priceTokens", IsRequired = true, EmitDefaultValue = true)]
105+
public int PriceTokens { get; set; }
106+
107+
/// <summary>
108+
/// Gets or Sets ProductIds
109+
/// </summary>
110+
[DataMember(Name = "productIds", IsRequired = true, EmitDefaultValue = true)]
111+
public List<string> ProductIds { get; set; }
112+
113+
/// <summary>
114+
/// Gets or Sets StoreIds
115+
/// </summary>
116+
[DataMember(Name = "storeIds", IsRequired = true, EmitDefaultValue = true)]
117+
public List<string> StoreIds { get; set; }
118+
119+
/// <summary>
120+
/// Returns the string presentation of the object
121+
/// </summary>
122+
/// <returns>String presentation of the object</returns>
123+
public override string ToString()
124+
{
125+
StringBuilder sb = new StringBuilder();
126+
sb.Append("class CreateListingRequest {\n");
127+
sb.Append(" Active: ").Append(Active).Append("\n");
128+
sb.Append(" Description: ").Append(Description).Append("\n");
129+
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
130+
sb.Append(" ImageId: ").Append(ImageId).Append("\n");
131+
sb.Append(" ListingType: ").Append(ListingType).Append("\n");
132+
sb.Append(" PriceTokens: ").Append(PriceTokens).Append("\n");
133+
sb.Append(" ProductIds: ").Append(ProductIds).Append("\n");
134+
sb.Append(" StoreIds: ").Append(StoreIds).Append("\n");
135+
sb.Append("}\n");
136+
return sb.ToString();
137+
}
138+
139+
/// <summary>
140+
/// Returns the JSON string presentation of the object
141+
/// </summary>
142+
/// <returns>JSON string presentation of the object</returns>
143+
public virtual string ToJson()
144+
{
145+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
146+
}
147+
148+
/// <summary>
149+
/// Returns true if objects are equal
150+
/// </summary>
151+
/// <param name="input">Object to be compared</param>
152+
/// <returns>Boolean</returns>
153+
public override bool Equals(object input)
154+
{
155+
return this.Equals(input as CreateListingRequest);
156+
}
157+
158+
/// <summary>
159+
/// Returns true if CreateListingRequest instances are equal
160+
/// </summary>
161+
/// <param name="input">Instance of CreateListingRequest to be compared</param>
162+
/// <returns>Boolean</returns>
163+
public bool Equals(CreateListingRequest input)
164+
{
165+
if (input == null)
166+
{
167+
return false;
168+
}
169+
return
170+
(
171+
this.Active == input.Active ||
172+
this.Active.Equals(input.Active)
173+
) &&
174+
(
175+
this.Description == input.Description ||
176+
(this.Description != null &&
177+
this.Description.Equals(input.Description))
178+
) &&
179+
(
180+
this.DisplayName == input.DisplayName ||
181+
(this.DisplayName != null &&
182+
this.DisplayName.Equals(input.DisplayName))
183+
) &&
184+
(
185+
this.ImageId == input.ImageId ||
186+
(this.ImageId != null &&
187+
this.ImageId.Equals(input.ImageId))
188+
) &&
189+
(
190+
this.ListingType == input.ListingType ||
191+
this.ListingType.Equals(input.ListingType)
192+
) &&
193+
(
194+
this.PriceTokens == input.PriceTokens ||
195+
this.PriceTokens.Equals(input.PriceTokens)
196+
) &&
197+
(
198+
this.ProductIds == input.ProductIds ||
199+
this.ProductIds != null &&
200+
input.ProductIds != null &&
201+
this.ProductIds.SequenceEqual(input.ProductIds)
202+
) &&
203+
(
204+
this.StoreIds == input.StoreIds ||
205+
this.StoreIds != null &&
206+
input.StoreIds != null &&
207+
this.StoreIds.SequenceEqual(input.StoreIds)
208+
);
209+
}
210+
211+
/// <summary>
212+
/// Gets the hash code
213+
/// </summary>
214+
/// <returns>Hash code</returns>
215+
public override int GetHashCode()
216+
{
217+
unchecked // Overflow is fine, just wrap
218+
{
219+
int hashCode = 41;
220+
hashCode = (hashCode * 59) + this.Active.GetHashCode();
221+
if (this.Description != null)
222+
{
223+
hashCode = (hashCode * 59) + this.Description.GetHashCode();
224+
}
225+
if (this.DisplayName != null)
226+
{
227+
hashCode = (hashCode * 59) + this.DisplayName.GetHashCode();
228+
}
229+
if (this.ImageId != null)
230+
{
231+
hashCode = (hashCode * 59) + this.ImageId.GetHashCode();
232+
}
233+
hashCode = (hashCode * 59) + this.ListingType.GetHashCode();
234+
hashCode = (hashCode * 59) + this.PriceTokens.GetHashCode();
235+
if (this.ProductIds != null)
236+
{
237+
hashCode = (hashCode * 59) + this.ProductIds.GetHashCode();
238+
}
239+
if (this.StoreIds != null)
240+
{
241+
hashCode = (hashCode * 59) + this.StoreIds.GetHashCode();
242+
}
243+
return hashCode;
244+
}
245+
}
246+
247+
/// <summary>
248+
/// To validate all properties of the instance
249+
/// </summary>
250+
/// <param name="validationContext">Validation context</param>
251+
/// <returns>Validation Result</returns>
252+
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
253+
{
254+
yield break;
255+
}
256+
}
257+
258+
}

0 commit comments

Comments
 (0)