Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 113 additions & 2 deletions output/csharp/src/Seam/Api/Customers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@ protected CreatePortalRequest() { }

public CreatePortalRequest(
CreatePortalRequestFeatures? features = default,
bool? isEmbedded = default,
CreatePortalRequestCustomerData? customerData = default
)
{
Features = features;
IsEmbedded = isEmbedded;
CustomerData = customerData;
}

[DataMember(Name = "features", IsRequired = false, EmitDefaultValue = false)]
public CreatePortalRequestFeatures? Features { get; set; }

[DataMember(Name = "is_embedded", IsRequired = false, EmitDefaultValue = false)]
public bool? IsEmbedded { get; set; }

[DataMember(Name = "customer_data", IsRequired = false, EmitDefaultValue = false)]
public CreatePortalRequestCustomerData? CustomerData { get; set; }

Expand Down Expand Up @@ -223,6 +228,7 @@ public CreatePortalRequestCustomerData(
List<CreatePortalRequestCustomerDataGuests>? guests = default,
List<CreatePortalRequestCustomerDataListings>? listings = default,
List<CreatePortalRequestCustomerDataProperties>? properties = default,
List<CreatePortalRequestCustomerDataPropertyListings>? propertyListings = default,
List<CreatePortalRequestCustomerDataReservations>? reservations = default,
List<CreatePortalRequestCustomerDataResidents>? residents = default,
List<CreatePortalRequestCustomerDataRooms>? rooms = default,
Expand All @@ -242,6 +248,7 @@ public CreatePortalRequestCustomerData(
Guests = guests;
Listings = listings;
Properties = properties;
PropertyListings = propertyListings;
Reservations = reservations;
Residents = residents;
Rooms = rooms;
Expand Down Expand Up @@ -279,6 +286,9 @@ public CreatePortalRequestCustomerData(
[DataMember(Name = "properties", IsRequired = false, EmitDefaultValue = false)]
public List<CreatePortalRequestCustomerDataProperties>? Properties { get; set; }

[DataMember(Name = "property_listings", IsRequired = false, EmitDefaultValue = false)]
public List<CreatePortalRequestCustomerDataPropertyListings>? PropertyListings { get; set; }

[DataMember(Name = "reservations", IsRequired = false, EmitDefaultValue = false)]
public List<CreatePortalRequestCustomerDataReservations>? Reservations { get; set; }

Expand Down Expand Up @@ -811,6 +821,47 @@ public override string ToString()
}
}

[DataContract(Name = "createPortalRequestCustomerDataPropertyListings_model")]
public class CreatePortalRequestCustomerDataPropertyListings
{
[JsonConstructorAttribute]
protected CreatePortalRequestCustomerDataPropertyListings() { }

public CreatePortalRequestCustomerDataPropertyListings(
string name = default,
string propertyListingKey = default
)
{
Name = name;
PropertyListingKey = propertyListingKey;
}

[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)]
public string Name { get; set; }

[DataMember(Name = "property_listing_key", IsRequired = true, EmitDefaultValue = false)]
public string PropertyListingKey { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

[DataContract(Name = "createPortalRequestCustomerDataReservations_model")]
public class CreatePortalRequestCustomerDataReservations
{
Expand Down Expand Up @@ -1299,11 +1350,16 @@ public MagicLink CreatePortal(CreatePortalRequest request)

public MagicLink CreatePortal(
CreatePortalRequestFeatures? features = default,
bool? isEmbedded = default,
CreatePortalRequestCustomerData? customerData = default
)
{
return CreatePortal(
new CreatePortalRequest(features: features, customerData: customerData)
new CreatePortalRequest(
features: features,
isEmbedded: isEmbedded,
customerData: customerData
)
);
}

Expand All @@ -1323,12 +1379,17 @@ await _seam.PostAsync<CreatePortalResponse>(

public async Task<MagicLink> CreatePortalAsync(
CreatePortalRequestFeatures? features = default,
bool? isEmbedded = default,
CreatePortalRequestCustomerData? customerData = default
)
{
return (
await CreatePortalAsync(
new CreatePortalRequest(features: features, customerData: customerData)
new CreatePortalRequest(
features: features,
isEmbedded: isEmbedded,
customerData: customerData
)
)
);
}
Expand All @@ -1349,6 +1410,7 @@ public PushDataRequest(
List<PushDataRequestGuests>? guests = default,
List<PushDataRequestListings>? listings = default,
List<PushDataRequestProperties>? properties = default,
List<PushDataRequestPropertyListings>? propertyListings = default,
List<PushDataRequestReservations>? reservations = default,
List<PushDataRequestResidents>? residents = default,
List<PushDataRequestRooms>? rooms = default,
Expand All @@ -1368,6 +1430,7 @@ public PushDataRequest(
Guests = guests;
Listings = listings;
Properties = properties;
PropertyListings = propertyListings;
Reservations = reservations;
Residents = residents;
Rooms = rooms;
Expand Down Expand Up @@ -1405,6 +1468,9 @@ public PushDataRequest(
[DataMember(Name = "properties", IsRequired = false, EmitDefaultValue = false)]
public List<PushDataRequestProperties>? Properties { get; set; }

[DataMember(Name = "property_listings", IsRequired = false, EmitDefaultValue = false)]
public List<PushDataRequestPropertyListings>? PropertyListings { get; set; }

[DataMember(Name = "reservations", IsRequired = false, EmitDefaultValue = false)]
public List<PushDataRequestReservations>? Reservations { get; set; }

Expand Down Expand Up @@ -1922,6 +1988,47 @@ public override string ToString()
}
}

[DataContract(Name = "pushDataRequestPropertyListings_model")]
public class PushDataRequestPropertyListings
{
[JsonConstructorAttribute]
protected PushDataRequestPropertyListings() { }

public PushDataRequestPropertyListings(
string name = default,
string propertyListingKey = default
)
{
Name = name;
PropertyListingKey = propertyListingKey;
}

[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)]
public string Name { get; set; }

[DataMember(Name = "property_listing_key", IsRequired = true, EmitDefaultValue = false)]
public string PropertyListingKey { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

[DataContract(Name = "pushDataRequestReservations_model")]
public class PushDataRequestReservations
{
Expand Down Expand Up @@ -2373,6 +2480,7 @@ public void PushData(
List<PushDataRequestGuests>? guests = default,
List<PushDataRequestListings>? listings = default,
List<PushDataRequestProperties>? properties = default,
List<PushDataRequestPropertyListings>? propertyListings = default,
List<PushDataRequestReservations>? reservations = default,
List<PushDataRequestResidents>? residents = default,
List<PushDataRequestRooms>? rooms = default,
Expand All @@ -2394,6 +2502,7 @@ public void PushData(
guests: guests,
listings: listings,
properties: properties,
propertyListings: propertyListings,
reservations: reservations,
residents: residents,
rooms: rooms,
Expand Down Expand Up @@ -2423,6 +2532,7 @@ public async Task PushDataAsync(
List<PushDataRequestGuests>? guests = default,
List<PushDataRequestListings>? listings = default,
List<PushDataRequestProperties>? properties = default,
List<PushDataRequestPropertyListings>? propertyListings = default,
List<PushDataRequestReservations>? reservations = default,
List<PushDataRequestResidents>? residents = default,
List<PushDataRequestRooms>? rooms = default,
Expand All @@ -2444,6 +2554,7 @@ await PushDataAsync(
guests: guests,
listings: listings,
properties: properties,
propertyListings: propertyListings,
reservations: reservations,
residents: residents,
rooms: rooms,
Expand Down
2 changes: 1 addition & 1 deletion output/csharp/src/Seam/Seam.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PackageId>Seam</PackageId>

<PackageVersion>0.78.0</PackageVersion>
<PackageVersion>0.79.0</PackageVersion>

<Authors>Seam</Authors>

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@seamapi/nextlove-sdk-generator": "^1.17.4",
"@seamapi/types": "^1.423.2",
"@seamapi/types": "^1.423.4",
"@types/node": "^18.19.11",
"ava": "^5.0.1",
"axios": "^1.5.0",
Expand Down
Loading