@@ -26,16 +26,21 @@ protected CreatePortalRequest() { }
26
26
27
27
public CreatePortalRequest (
28
28
CreatePortalRequestFeatures ? features = default ,
29
+ bool ? isEmbedded = default ,
29
30
CreatePortalRequestCustomerData ? customerData = default
30
31
)
31
32
{
32
33
Features = features ;
34
+ IsEmbedded = isEmbedded ;
33
35
CustomerData = customerData ;
34
36
}
35
37
36
38
[ DataMember ( Name = "features" , IsRequired = false , EmitDefaultValue = false ) ]
37
39
public CreatePortalRequestFeatures ? Features { get ; set ; }
38
40
41
+ [ DataMember ( Name = "is_embedded" , IsRequired = false , EmitDefaultValue = false ) ]
42
+ public bool ? IsEmbedded { get ; set ; }
43
+
39
44
[ DataMember ( Name = "customer_data" , IsRequired = false , EmitDefaultValue = false ) ]
40
45
public CreatePortalRequestCustomerData ? CustomerData { get ; set ; }
41
46
@@ -223,6 +228,7 @@ public CreatePortalRequestCustomerData(
223
228
List < CreatePortalRequestCustomerDataGuests > ? guests = default ,
224
229
List < CreatePortalRequestCustomerDataListings > ? listings = default ,
225
230
List < CreatePortalRequestCustomerDataProperties > ? properties = default ,
231
+ List < CreatePortalRequestCustomerDataPropertyListings > ? propertyListings = default ,
226
232
List < CreatePortalRequestCustomerDataReservations > ? reservations = default ,
227
233
List < CreatePortalRequestCustomerDataResidents > ? residents = default ,
228
234
List < CreatePortalRequestCustomerDataRooms > ? rooms = default ,
@@ -242,6 +248,7 @@ public CreatePortalRequestCustomerData(
242
248
Guests = guests ;
243
249
Listings = listings ;
244
250
Properties = properties ;
251
+ PropertyListings = propertyListings ;
245
252
Reservations = reservations ;
246
253
Residents = residents ;
247
254
Rooms = rooms ;
@@ -279,6 +286,9 @@ public CreatePortalRequestCustomerData(
279
286
[ DataMember ( Name = "properties" , IsRequired = false , EmitDefaultValue = false ) ]
280
287
public List < CreatePortalRequestCustomerDataProperties > ? Properties { get ; set ; }
281
288
289
+ [ DataMember ( Name = "property_listings" , IsRequired = false , EmitDefaultValue = false ) ]
290
+ public List < CreatePortalRequestCustomerDataPropertyListings > ? PropertyListings { get ; set ; }
291
+
282
292
[ DataMember ( Name = "reservations" , IsRequired = false , EmitDefaultValue = false ) ]
283
293
public List < CreatePortalRequestCustomerDataReservations > ? Reservations { get ; set ; }
284
294
@@ -811,6 +821,47 @@ public override string ToString()
811
821
}
812
822
}
813
823
824
+ [ DataContract ( Name = "createPortalRequestCustomerDataPropertyListings_model" ) ]
825
+ public class CreatePortalRequestCustomerDataPropertyListings
826
+ {
827
+ [ JsonConstructorAttribute ]
828
+ protected CreatePortalRequestCustomerDataPropertyListings ( ) { }
829
+
830
+ public CreatePortalRequestCustomerDataPropertyListings (
831
+ string name = default ,
832
+ string propertyListingKey = default
833
+ )
834
+ {
835
+ Name = name ;
836
+ PropertyListingKey = propertyListingKey ;
837
+ }
838
+
839
+ [ DataMember ( Name = "name" , IsRequired = true , EmitDefaultValue = false ) ]
840
+ public string Name { get ; set ; }
841
+
842
+ [ DataMember ( Name = "property_listing_key" , IsRequired = true , EmitDefaultValue = false ) ]
843
+ public string PropertyListingKey { get ; set ; }
844
+
845
+ public override string ToString ( )
846
+ {
847
+ JsonSerializer jsonSerializer = JsonSerializer . CreateDefault ( null ) ;
848
+
849
+ StringWriter stringWriter = new StringWriter (
850
+ new StringBuilder ( 256 ) ,
851
+ System . Globalization . CultureInfo . InvariantCulture
852
+ ) ;
853
+ using ( JsonTextWriter jsonTextWriter = new JsonTextWriter ( stringWriter ) )
854
+ {
855
+ jsonTextWriter . IndentChar = ' ' ;
856
+ jsonTextWriter . Indentation = 2 ;
857
+ jsonTextWriter . Formatting = Formatting . Indented ;
858
+ jsonSerializer . Serialize ( jsonTextWriter , this , null ) ;
859
+ }
860
+
861
+ return stringWriter . ToString ( ) ;
862
+ }
863
+ }
864
+
814
865
[ DataContract ( Name = "createPortalRequestCustomerDataReservations_model" ) ]
815
866
public class CreatePortalRequestCustomerDataReservations
816
867
{
@@ -1299,11 +1350,16 @@ public MagicLink CreatePortal(CreatePortalRequest request)
1299
1350
1300
1351
public MagicLink CreatePortal (
1301
1352
CreatePortalRequestFeatures ? features = default ,
1353
+ bool ? isEmbedded = default ,
1302
1354
CreatePortalRequestCustomerData ? customerData = default
1303
1355
)
1304
1356
{
1305
1357
return CreatePortal (
1306
- new CreatePortalRequest ( features : features , customerData : customerData )
1358
+ new CreatePortalRequest (
1359
+ features : features ,
1360
+ isEmbedded : isEmbedded ,
1361
+ customerData : customerData
1362
+ )
1307
1363
) ;
1308
1364
}
1309
1365
@@ -1323,12 +1379,17 @@ await _seam.PostAsync<CreatePortalResponse>(
1323
1379
1324
1380
public async Task < MagicLink > CreatePortalAsync (
1325
1381
CreatePortalRequestFeatures ? features = default ,
1382
+ bool ? isEmbedded = default ,
1326
1383
CreatePortalRequestCustomerData ? customerData = default
1327
1384
)
1328
1385
{
1329
1386
return (
1330
1387
await CreatePortalAsync (
1331
- new CreatePortalRequest ( features : features , customerData : customerData )
1388
+ new CreatePortalRequest (
1389
+ features : features ,
1390
+ isEmbedded : isEmbedded ,
1391
+ customerData : customerData
1392
+ )
1332
1393
)
1333
1394
) ;
1334
1395
}
@@ -1349,6 +1410,7 @@ public PushDataRequest(
1349
1410
List < PushDataRequestGuests > ? guests = default ,
1350
1411
List < PushDataRequestListings > ? listings = default ,
1351
1412
List < PushDataRequestProperties > ? properties = default ,
1413
+ List < PushDataRequestPropertyListings > ? propertyListings = default ,
1352
1414
List < PushDataRequestReservations > ? reservations = default ,
1353
1415
List < PushDataRequestResidents > ? residents = default ,
1354
1416
List < PushDataRequestRooms > ? rooms = default ,
@@ -1368,6 +1430,7 @@ public PushDataRequest(
1368
1430
Guests = guests ;
1369
1431
Listings = listings ;
1370
1432
Properties = properties ;
1433
+ PropertyListings = propertyListings ;
1371
1434
Reservations = reservations ;
1372
1435
Residents = residents ;
1373
1436
Rooms = rooms ;
@@ -1405,6 +1468,9 @@ public PushDataRequest(
1405
1468
[ DataMember ( Name = "properties" , IsRequired = false , EmitDefaultValue = false ) ]
1406
1469
public List < PushDataRequestProperties > ? Properties { get ; set ; }
1407
1470
1471
+ [ DataMember ( Name = "property_listings" , IsRequired = false , EmitDefaultValue = false ) ]
1472
+ public List < PushDataRequestPropertyListings > ? PropertyListings { get ; set ; }
1473
+
1408
1474
[ DataMember ( Name = "reservations" , IsRequired = false , EmitDefaultValue = false ) ]
1409
1475
public List < PushDataRequestReservations > ? Reservations { get ; set ; }
1410
1476
@@ -1922,6 +1988,47 @@ public override string ToString()
1922
1988
}
1923
1989
}
1924
1990
1991
+ [ DataContract ( Name = "pushDataRequestPropertyListings_model" ) ]
1992
+ public class PushDataRequestPropertyListings
1993
+ {
1994
+ [ JsonConstructorAttribute ]
1995
+ protected PushDataRequestPropertyListings ( ) { }
1996
+
1997
+ public PushDataRequestPropertyListings (
1998
+ string name = default ,
1999
+ string propertyListingKey = default
2000
+ )
2001
+ {
2002
+ Name = name ;
2003
+ PropertyListingKey = propertyListingKey ;
2004
+ }
2005
+
2006
+ [ DataMember ( Name = "name" , IsRequired = true , EmitDefaultValue = false ) ]
2007
+ public string Name { get ; set ; }
2008
+
2009
+ [ DataMember ( Name = "property_listing_key" , IsRequired = true , EmitDefaultValue = false ) ]
2010
+ public string PropertyListingKey { get ; set ; }
2011
+
2012
+ public override string ToString ( )
2013
+ {
2014
+ JsonSerializer jsonSerializer = JsonSerializer . CreateDefault ( null ) ;
2015
+
2016
+ StringWriter stringWriter = new StringWriter (
2017
+ new StringBuilder ( 256 ) ,
2018
+ System . Globalization . CultureInfo . InvariantCulture
2019
+ ) ;
2020
+ using ( JsonTextWriter jsonTextWriter = new JsonTextWriter ( stringWriter ) )
2021
+ {
2022
+ jsonTextWriter . IndentChar = ' ' ;
2023
+ jsonTextWriter . Indentation = 2 ;
2024
+ jsonTextWriter . Formatting = Formatting . Indented ;
2025
+ jsonSerializer . Serialize ( jsonTextWriter , this , null ) ;
2026
+ }
2027
+
2028
+ return stringWriter . ToString ( ) ;
2029
+ }
2030
+ }
2031
+
1925
2032
[ DataContract ( Name = "pushDataRequestReservations_model" ) ]
1926
2033
public class PushDataRequestReservations
1927
2034
{
@@ -2373,6 +2480,7 @@ public void PushData(
2373
2480
List < PushDataRequestGuests > ? guests = default ,
2374
2481
List < PushDataRequestListings > ? listings = default ,
2375
2482
List < PushDataRequestProperties > ? properties = default ,
2483
+ List < PushDataRequestPropertyListings > ? propertyListings = default ,
2376
2484
List < PushDataRequestReservations > ? reservations = default ,
2377
2485
List < PushDataRequestResidents > ? residents = default ,
2378
2486
List < PushDataRequestRooms > ? rooms = default ,
@@ -2394,6 +2502,7 @@ public void PushData(
2394
2502
guests : guests ,
2395
2503
listings : listings ,
2396
2504
properties : properties ,
2505
+ propertyListings : propertyListings ,
2397
2506
reservations : reservations ,
2398
2507
residents : residents ,
2399
2508
rooms : rooms ,
@@ -2423,6 +2532,7 @@ public async Task PushDataAsync(
2423
2532
List < PushDataRequestGuests > ? guests = default ,
2424
2533
List < PushDataRequestListings > ? listings = default ,
2425
2534
List < PushDataRequestProperties > ? properties = default ,
2535
+ List < PushDataRequestPropertyListings > ? propertyListings = default ,
2426
2536
List < PushDataRequestReservations > ? reservations = default ,
2427
2537
List < PushDataRequestResidents > ? residents = default ,
2428
2538
List < PushDataRequestRooms > ? rooms = default ,
@@ -2444,6 +2554,7 @@ await PushDataAsync(
2444
2554
guests : guests ,
2445
2555
listings : listings ,
2446
2556
properties : properties ,
2557
+ propertyListings : propertyListings ,
2447
2558
reservations : reservations ,
2448
2559
residents : residents ,
2449
2560
rooms : rooms ,
0 commit comments