@salable/sdk 1.0.23 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6443,38 +6443,38 @@ function createCreateGroupResponseSchemaFromDiscriminatorValue(parseNode) {
6443
6443
  /**
6444
6444
  * Creates a new instance of the appropriate class based on discriminator value
6445
6445
  * @param parseNode The parse node to use to read the discriminator value and create the object
6446
- * @returns {CreatePlanResponseSchema_data}
6446
+ * @returns {CreateOwnerPortalResponseSchema_data}
6447
6447
  */
6448
6448
  // @ts-ignore
6449
- function createCreatePlanResponseSchema_dataFromDiscriminatorValue(parseNode) {
6450
- return deserializeIntoCreatePlanResponseSchema_data;
6449
+ function createCreateOwnerPortalResponseSchema_dataFromDiscriminatorValue(parseNode) {
6450
+ return deserializeIntoCreateOwnerPortalResponseSchema_data;
6451
6451
  }
6452
6452
  /**
6453
6453
  * Creates a new instance of the appropriate class based on discriminator value
6454
6454
  * @param parseNode The parse node to use to read the discriminator value and create the object
6455
- * @returns {CreatePlanResponseSchema}
6455
+ * @returns {CreateOwnerPortalResponseSchema}
6456
6456
  */
6457
6457
  // @ts-ignore
6458
- function createCreatePlanResponseSchemaFromDiscriminatorValue(parseNode) {
6459
- return deserializeIntoCreatePlanResponseSchema;
6458
+ function createCreateOwnerPortalResponseSchemaFromDiscriminatorValue(parseNode) {
6459
+ return deserializeIntoCreateOwnerPortalResponseSchema;
6460
6460
  }
6461
6461
  /**
6462
6462
  * Creates a new instance of the appropriate class based on discriminator value
6463
6463
  * @param parseNode The parse node to use to read the discriminator value and create the object
6464
- * @returns {CreatePortalResponseSchema_data}
6464
+ * @returns {CreatePlanResponseSchema_data}
6465
6465
  */
6466
6466
  // @ts-ignore
6467
- function createCreatePortalResponseSchema_dataFromDiscriminatorValue(parseNode) {
6468
- return deserializeIntoCreatePortalResponseSchema_data;
6467
+ function createCreatePlanResponseSchema_dataFromDiscriminatorValue(parseNode) {
6468
+ return deserializeIntoCreatePlanResponseSchema_data;
6469
6469
  }
6470
6470
  /**
6471
6471
  * Creates a new instance of the appropriate class based on discriminator value
6472
6472
  * @param parseNode The parse node to use to read the discriminator value and create the object
6473
- * @returns {CreatePortalResponseSchema}
6473
+ * @returns {CreatePlanResponseSchema}
6474
6474
  */
6475
6475
  // @ts-ignore
6476
- function createCreatePortalResponseSchemaFromDiscriminatorValue(parseNode) {
6477
- return deserializeIntoCreatePortalResponseSchema;
6476
+ function createCreatePlanResponseSchemaFromDiscriminatorValue(parseNode) {
6477
+ return deserializeIntoCreatePlanResponseSchema;
6478
6478
  }
6479
6479
  /**
6480
6480
  * Creates a new instance of the appropriate class based on discriminator value
@@ -6494,6 +6494,24 @@ function createCreateProductResponseSchema_dataFromDiscriminatorValue(parseNode)
6494
6494
  function createCreateProductResponseSchemaFromDiscriminatorValue(parseNode) {
6495
6495
  return deserializeIntoCreateProductResponseSchema;
6496
6496
  }
6497
+ /**
6498
+ * Creates a new instance of the appropriate class based on discriminator value
6499
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6500
+ * @returns {CreateSubscriptionPortalResponseSchema_data}
6501
+ */
6502
+ // @ts-ignore
6503
+ function createCreateSubscriptionPortalResponseSchema_dataFromDiscriminatorValue(parseNode) {
6504
+ return deserializeIntoCreateSubscriptionPortalResponseSchema_data;
6505
+ }
6506
+ /**
6507
+ * Creates a new instance of the appropriate class based on discriminator value
6508
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6509
+ * @returns {CreateSubscriptionPortalResponseSchema}
6510
+ */
6511
+ // @ts-ignore
6512
+ function createCreateSubscriptionPortalResponseSchemaFromDiscriminatorValue(parseNode) {
6513
+ return deserializeIntoCreateSubscriptionPortalResponseSchema;
6514
+ }
6497
6515
  /**
6498
6516
  * Creates a new instance of the appropriate class based on discriminator value
6499
6517
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -9500,6 +9518,29 @@ function deserializeIntoCreateGroupResponseSchema_data(createGroupResponseSchema
9500
9518
  "updatedAt": n => { createGroupResponseSchema_data.updatedAt = n.getStringValue(); },
9501
9519
  };
9502
9520
  }
9521
+ /**
9522
+ * The deserialization information for the current model
9523
+ * @param CreateOwnerPortalResponseSchema The instance to deserialize into.
9524
+ * @returns {Record<string, (node: ParseNode) => void>}
9525
+ */
9526
+ // @ts-ignore
9527
+ function deserializeIntoCreateOwnerPortalResponseSchema(createOwnerPortalResponseSchema = {}) {
9528
+ return {
9529
+ "data": n => { createOwnerPortalResponseSchema.data = n.getObjectValue(createCreateOwnerPortalResponseSchema_dataFromDiscriminatorValue); },
9530
+ "type": n => { createOwnerPortalResponseSchema.type = n.getStringValue(); },
9531
+ };
9532
+ }
9533
+ /**
9534
+ * The deserialization information for the current model
9535
+ * @param CreateOwnerPortalResponseSchema_data The instance to deserialize into.
9536
+ * @returns {Record<string, (node: ParseNode) => void>}
9537
+ */
9538
+ // @ts-ignore
9539
+ function deserializeIntoCreateOwnerPortalResponseSchema_data(createOwnerPortalResponseSchema_data = {}) {
9540
+ return {
9541
+ "url": n => { createOwnerPortalResponseSchema_data.url = n.getStringValue(); },
9542
+ };
9543
+ }
9503
9544
  /**
9504
9545
  * The deserialization information for the current model
9505
9546
  * @param CreatePlanResponseSchema The instance to deserialize into.
@@ -9534,54 +9575,55 @@ function deserializeIntoCreatePlanResponseSchema_data(createPlanResponseSchema_d
9534
9575
  }
9535
9576
  /**
9536
9577
  * The deserialization information for the current model
9537
- * @param CreatePortalResponseSchema The instance to deserialize into.
9578
+ * @param CreateProductResponseSchema The instance to deserialize into.
9538
9579
  * @returns {Record<string, (node: ParseNode) => void>}
9539
9580
  */
9540
9581
  // @ts-ignore
9541
- function deserializeIntoCreatePortalResponseSchema(createPortalResponseSchema = {}) {
9582
+ function deserializeIntoCreateProductResponseSchema(createProductResponseSchema = {}) {
9542
9583
  return {
9543
- "data": n => { createPortalResponseSchema.data = n.getObjectValue(createCreatePortalResponseSchema_dataFromDiscriminatorValue); },
9544
- "type": n => { createPortalResponseSchema.type = n.getStringValue(); },
9584
+ "data": n => { createProductResponseSchema.data = n.getObjectValue(createCreateProductResponseSchema_dataFromDiscriminatorValue); },
9585
+ "type": n => { createProductResponseSchema.type = n.getStringValue(); },
9545
9586
  };
9546
9587
  }
9547
9588
  /**
9548
9589
  * The deserialization information for the current model
9549
- * @param CreatePortalResponseSchema_data The instance to deserialize into.
9590
+ * @param CreateProductResponseSchema_data The instance to deserialize into.
9550
9591
  * @returns {Record<string, (node: ParseNode) => void>}
9551
9592
  */
9552
9593
  // @ts-ignore
9553
- function deserializeIntoCreatePortalResponseSchema_data(createPortalResponseSchema_data = {}) {
9594
+ function deserializeIntoCreateProductResponseSchema_data(createProductResponseSchema_data = {}) {
9554
9595
  return {
9555
- "url": n => { createPortalResponseSchema_data.url = n.getStringValue(); },
9596
+ "archivedAt": n => { createProductResponseSchema_data.archivedAt = n.getStringValue(); },
9597
+ "createdAt": n => { createProductResponseSchema_data.createdAt = n.getStringValue(); },
9598
+ "id": n => { createProductResponseSchema_data.id = n.getStringValue(); },
9599
+ "isActive": n => { createProductResponseSchema_data.isActive = n.getBooleanValue(); },
9600
+ "name": n => { createProductResponseSchema_data.name = n.getStringValue(); },
9601
+ "organisation": n => { createProductResponseSchema_data.organisation = n.getStringValue(); },
9602
+ "updatedAt": n => { createProductResponseSchema_data.updatedAt = n.getStringValue(); },
9556
9603
  };
9557
9604
  }
9558
9605
  /**
9559
9606
  * The deserialization information for the current model
9560
- * @param CreateProductResponseSchema The instance to deserialize into.
9607
+ * @param CreateSubscriptionPortalResponseSchema The instance to deserialize into.
9561
9608
  * @returns {Record<string, (node: ParseNode) => void>}
9562
9609
  */
9563
9610
  // @ts-ignore
9564
- function deserializeIntoCreateProductResponseSchema(createProductResponseSchema = {}) {
9611
+ function deserializeIntoCreateSubscriptionPortalResponseSchema(createSubscriptionPortalResponseSchema = {}) {
9565
9612
  return {
9566
- "data": n => { createProductResponseSchema.data = n.getObjectValue(createCreateProductResponseSchema_dataFromDiscriminatorValue); },
9567
- "type": n => { createProductResponseSchema.type = n.getStringValue(); },
9613
+ "data": n => { createSubscriptionPortalResponseSchema.data = n.getObjectValue(createCreateSubscriptionPortalResponseSchema_dataFromDiscriminatorValue); },
9614
+ "message": n => { createSubscriptionPortalResponseSchema.message = n.getStringValue(); },
9615
+ "type": n => { createSubscriptionPortalResponseSchema.type = n.getStringValue(); },
9568
9616
  };
9569
9617
  }
9570
9618
  /**
9571
9619
  * The deserialization information for the current model
9572
- * @param CreateProductResponseSchema_data The instance to deserialize into.
9620
+ * @param CreateSubscriptionPortalResponseSchema_data The instance to deserialize into.
9573
9621
  * @returns {Record<string, (node: ParseNode) => void>}
9574
9622
  */
9575
9623
  // @ts-ignore
9576
- function deserializeIntoCreateProductResponseSchema_data(createProductResponseSchema_data = {}) {
9624
+ function deserializeIntoCreateSubscriptionPortalResponseSchema_data(createSubscriptionPortalResponseSchema_data = {}) {
9577
9625
  return {
9578
- "archivedAt": n => { createProductResponseSchema_data.archivedAt = n.getStringValue(); },
9579
- "createdAt": n => { createProductResponseSchema_data.createdAt = n.getStringValue(); },
9580
- "id": n => { createProductResponseSchema_data.id = n.getStringValue(); },
9581
- "isActive": n => { createProductResponseSchema_data.isActive = n.getBooleanValue(); },
9582
- "name": n => { createProductResponseSchema_data.name = n.getStringValue(); },
9583
- "organisation": n => { createProductResponseSchema_data.organisation = n.getStringValue(); },
9584
- "updatedAt": n => { createProductResponseSchema_data.updatedAt = n.getStringValue(); },
9626
+ "url": n => { createSubscriptionPortalResponseSchema_data.url = n.getStringValue(); },
9585
9627
  };
9586
9628
  }
9587
9629
  /**
@@ -10126,7 +10168,7 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_d
10126
10168
  "organisation": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.organisation = n.getStringValue(); },
10127
10169
  "planId": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.planId = n.getStringValue(); },
10128
10170
  "prices": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.prices = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_pricesFromDiscriminatorValue); },
10129
- "priceType": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
10171
+ "priceType": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.priceType = n.getStringValue(); },
10130
10172
  "slug": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.slug = n.getStringValue(); },
10131
10173
  "stripeProductId": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.stripeProductId = n.getStringValue(); },
10132
10174
  "tiersMode": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -11094,7 +11136,7 @@ function deserializeIntoGetGroupDetailSchema_data_subscriptionPlans_data_plan_li
11094
11136
  "nickname": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.nickname = n.getStringValue(); },
11095
11137
  "organisation": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.organisation = n.getStringValue(); },
11096
11138
  "planId": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.planId = n.getStringValue(); },
11097
- "priceType": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
11139
+ "priceType": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.priceType = n.getStringValue(); },
11098
11140
  "slug": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.slug = n.getStringValue(); },
11099
11141
  "stripeProductId": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.stripeProductId = n.getStringValue(); },
11100
11142
  "tiersMode": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -11249,7 +11291,7 @@ function deserializeIntoGetLineItemDetailSchema_data(getLineItemDetailSchema_dat
11249
11291
  "organisation": n => { getLineItemDetailSchema_data.organisation = n.getStringValue(); },
11250
11292
  "planId": n => { getLineItemDetailSchema_data.planId = n.getStringValue(); },
11251
11293
  "prices": n => { getLineItemDetailSchema_data.prices = n.getObjectValue(createGetLineItemDetailSchema_data_pricesFromDiscriminatorValue); },
11252
- "priceType": n => { getLineItemDetailSchema_data.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
11294
+ "priceType": n => { getLineItemDetailSchema_data.priceType = n.getStringValue(); },
11253
11295
  "slug": n => { getLineItemDetailSchema_data.slug = n.getStringValue(); },
11254
11296
  "stripeProductId": n => { getLineItemDetailSchema_data.stripeProductId = n.getStringValue(); },
11255
11297
  "tiersMode": n => { getLineItemDetailSchema_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -11328,7 +11370,7 @@ function deserializeIntoGetLineItemListSchema_data(getLineItemListSchema_data =
11328
11370
  "nickname": n => { getLineItemListSchema_data.nickname = n.getStringValue(); },
11329
11371
  "organisation": n => { getLineItemListSchema_data.organisation = n.getStringValue(); },
11330
11372
  "planId": n => { getLineItemListSchema_data.planId = n.getStringValue(); },
11331
- "priceType": n => { getLineItemListSchema_data.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
11373
+ "priceType": n => { getLineItemListSchema_data.priceType = n.getStringValue(); },
11332
11374
  "slug": n => { getLineItemListSchema_data.slug = n.getStringValue(); },
11333
11375
  "stripeProductId": n => { getLineItemListSchema_data.stripeProductId = n.getStringValue(); },
11334
11376
  "tiersMode": n => { getLineItemListSchema_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -11838,7 +11880,7 @@ function deserializeIntoGetPlanDetailSchema_data_lineItems_data(getPlanDetailSch
11838
11880
  "organisation": n => { getPlanDetailSchema_data_lineItems_data.organisation = n.getStringValue(); },
11839
11881
  "planId": n => { getPlanDetailSchema_data_lineItems_data.planId = n.getStringValue(); },
11840
11882
  "prices": n => { getPlanDetailSchema_data_lineItems_data.prices = n.getObjectValue(createGetPlanDetailSchema_data_lineItems_data_pricesFromDiscriminatorValue); },
11841
- "priceType": n => { getPlanDetailSchema_data_lineItems_data.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
11883
+ "priceType": n => { getPlanDetailSchema_data_lineItems_data.priceType = n.getStringValue(); },
11842
11884
  "slug": n => { getPlanDetailSchema_data_lineItems_data.slug = n.getStringValue(); },
11843
11885
  "stripeProductId": n => { getPlanDetailSchema_data_lineItems_data.stripeProductId = n.getStringValue(); },
11844
11886
  "tiersMode": n => { getPlanDetailSchema_data_lineItems_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -12195,7 +12237,7 @@ function deserializeIntoGetPlanListSchema_data_lineItems_data(getPlanListSchema_
12195
12237
  "organisation": n => { getPlanListSchema_data_lineItems_data.organisation = n.getStringValue(); },
12196
12238
  "planId": n => { getPlanListSchema_data_lineItems_data.planId = n.getStringValue(); },
12197
12239
  "prices": n => { getPlanListSchema_data_lineItems_data.prices = n.getObjectValue(createGetPlanListSchema_data_lineItems_data_pricesFromDiscriminatorValue); },
12198
- "priceType": n => { getPlanListSchema_data_lineItems_data.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
12240
+ "priceType": n => { getPlanListSchema_data_lineItems_data.priceType = n.getStringValue(); },
12199
12241
  "slug": n => { getPlanListSchema_data_lineItems_data.slug = n.getStringValue(); },
12200
12242
  "stripeProductId": n => { getPlanListSchema_data_lineItems_data.stripeProductId = n.getStringValue(); },
12201
12243
  "tiersMode": n => { getPlanListSchema_data_lineItems_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -12697,7 +12739,7 @@ function deserializeIntoGetReceiptDetailSchema_data_receiptItems_data_lineItem(g
12697
12739
  "nickname": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.nickname = n.getStringValue(); },
12698
12740
  "organisation": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.organisation = n.getStringValue(); },
12699
12741
  "planId": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.planId = n.getStringValue(); },
12700
- "priceType": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
12742
+ "priceType": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.priceType = n.getStringValue(); },
12701
12743
  "slug": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.slug = n.getStringValue(); },
12702
12744
  "stripeProductId": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.stripeProductId = n.getStringValue(); },
12703
12745
  "tiersMode": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -13711,7 +13753,7 @@ function deserializeIntoGetSubscriptionPlanLineItemSchema_data_lineItem(getSubsc
13711
13753
  "organisation": n => { getSubscriptionPlanLineItemSchema_data_lineItem.organisation = n.getStringValue(); },
13712
13754
  "planId": n => { getSubscriptionPlanLineItemSchema_data_lineItem.planId = n.getStringValue(); },
13713
13755
  "prices": n => { getSubscriptionPlanLineItemSchema_data_lineItem.prices = n.getObjectValue(createGetSubscriptionPlanLineItemSchema_data_lineItem_pricesFromDiscriminatorValue); },
13714
- "priceType": n => { getSubscriptionPlanLineItemSchema_data_lineItem.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
13756
+ "priceType": n => { getSubscriptionPlanLineItemSchema_data_lineItem.priceType = n.getStringValue(); },
13715
13757
  "slug": n => { getSubscriptionPlanLineItemSchema_data_lineItem.slug = n.getStringValue(); },
13716
13758
  "stripeProductId": n => { getSubscriptionPlanLineItemSchema_data_lineItem.stripeProductId = n.getStringValue(); },
13717
13759
  "tiersMode": n => { getSubscriptionPlanLineItemSchema_data_lineItem.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -14093,7 +14135,7 @@ function deserializeIntoGetWebhookDetailSchema_data_eventTypes_data(getWebhookDe
14093
14135
  return {
14094
14136
  "createdAt": n => { getWebhookDetailSchema_data_eventTypes_data.createdAt = n.getStringValue(); },
14095
14137
  "deletedAt": n => { getWebhookDetailSchema_data_eventTypes_data.deletedAt = n.getStringValue(); },
14096
- "event": n => { getWebhookDetailSchema_data_eventTypes_data.event = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
14138
+ "event": n => { getWebhookDetailSchema_data_eventTypes_data.event = n.getStringValue(); },
14097
14139
  "id": n => { getWebhookDetailSchema_data_eventTypes_data.id = n.getStringValue(); },
14098
14140
  "organisation": n => { getWebhookDetailSchema_data_eventTypes_data.organisation = n.getStringValue(); },
14099
14141
  "updatedAt": n => { getWebhookDetailSchema_data_eventTypes_data.updatedAt = n.getStringValue(); },
@@ -14156,7 +14198,7 @@ function deserializeIntoGetWebhookListSchema_data_eventTypes_data(getWebhookList
14156
14198
  return {
14157
14199
  "createdAt": n => { getWebhookListSchema_data_eventTypes_data.createdAt = n.getStringValue(); },
14158
14200
  "deletedAt": n => { getWebhookListSchema_data_eventTypes_data.deletedAt = n.getStringValue(); },
14159
- "event": n => { getWebhookListSchema_data_eventTypes_data.event = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
14201
+ "event": n => { getWebhookListSchema_data_eventTypes_data.event = n.getStringValue(); },
14160
14202
  "id": n => { getWebhookListSchema_data_eventTypes_data.id = n.getStringValue(); },
14161
14203
  "organisation": n => { getWebhookListSchema_data_eventTypes_data.organisation = n.getStringValue(); },
14162
14204
  "updatedAt": n => { getWebhookListSchema_data_eventTypes_data.updatedAt = n.getStringValue(); },
@@ -14237,7 +14279,7 @@ function deserializeIntoSavePlanResponseSchema_data_lineItems(savePlanResponseSc
14237
14279
  "organisation": n => { savePlanResponseSchema_data_lineItems.organisation = n.getStringValue(); },
14238
14280
  "planId": n => { savePlanResponseSchema_data_lineItems.planId = n.getStringValue(); },
14239
14281
  "prices": n => { savePlanResponseSchema_data_lineItems.prices = n.getCollectionOfObjectValues(createSavePlanResponseSchema_data_lineItems_pricesFromDiscriminatorValue); },
14240
- "priceType": n => { savePlanResponseSchema_data_lineItems.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
14282
+ "priceType": n => { savePlanResponseSchema_data_lineItems.priceType = n.getStringValue(); },
14241
14283
  "slug": n => { savePlanResponseSchema_data_lineItems.slug = n.getStringValue(); },
14242
14284
  "stripeProductId": n => { savePlanResponseSchema_data_lineItems.stripeProductId = n.getStringValue(); },
14243
14285
  "tiersMode": n => { savePlanResponseSchema_data_lineItems.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -14369,7 +14411,7 @@ function deserializeIntoUpdateLineItemResponseSchema_data(updateLineItemResponse
14369
14411
  "nickname": n => { updateLineItemResponseSchema_data.nickname = n.getStringValue(); },
14370
14412
  "organisation": n => { updateLineItemResponseSchema_data.organisation = n.getStringValue(); },
14371
14413
  "planId": n => { updateLineItemResponseSchema_data.planId = n.getStringValue(); },
14372
- "priceType": n => { updateLineItemResponseSchema_data.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
14414
+ "priceType": n => { updateLineItemResponseSchema_data.priceType = n.getStringValue(); },
14373
14415
  "slug": n => { updateLineItemResponseSchema_data.slug = n.getStringValue(); },
14374
14416
  "stripeProductId": n => { updateLineItemResponseSchema_data.stripeProductId = n.getStringValue(); },
14375
14417
  "tiersMode": n => { updateLineItemResponseSchema_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -14598,88 +14640,88 @@ function serializeCreateGroupRequestSchema_grantees(writer, createGroupRequestSc
14598
14640
  }
14599
14641
  /**
14600
14642
  * Serializes information the current object
14601
- * @param CreatePortalRequestSchema The instance to serialize from.
14643
+ * @param CreateOwnerPortalRequestSchema The instance to serialize from.
14602
14644
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14603
14645
  * @param writer Serialization writer to use to serialize this model
14604
14646
  */
14605
14647
  // @ts-ignore
14606
- function serializeCreatePortalRequestSchema(writer, createPortalRequestSchema = {}, isSerializingDerivedType = false) {
14607
- if (!createPortalRequestSchema || isSerializingDerivedType) {
14648
+ function serializeCreateOwnerPortalRequestSchema(writer, createOwnerPortalRequestSchema = {}, isSerializingDerivedType = false) {
14649
+ if (!createOwnerPortalRequestSchema || isSerializingDerivedType) {
14608
14650
  return;
14609
14651
  }
14610
- writer.writeObjectValue("features", createPortalRequestSchema.features, serializeCreatePortalRequestSchema_features);
14611
- writer.writeStringValue("returnUrl", createPortalRequestSchema.returnUrl);
14652
+ writer.writeObjectValue("features", createOwnerPortalRequestSchema.features, serializeCreateOwnerPortalRequestSchema_features);
14653
+ writer.writeStringValue("returnUrl", createOwnerPortalRequestSchema.returnUrl);
14612
14654
  }
14613
14655
  /**
14614
14656
  * Serializes information the current object
14615
- * @param CreatePortalRequestSchema_features The instance to serialize from.
14657
+ * @param CreateOwnerPortalRequestSchema_features The instance to serialize from.
14616
14658
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14617
14659
  * @param writer Serialization writer to use to serialize this model
14618
14660
  */
14619
14661
  // @ts-ignore
14620
- function serializeCreatePortalRequestSchema_features(writer, createPortalRequestSchema_features = {}, isSerializingDerivedType = false) {
14621
- if (!createPortalRequestSchema_features || isSerializingDerivedType) {
14662
+ function serializeCreateOwnerPortalRequestSchema_features(writer, createOwnerPortalRequestSchema_features = {}, isSerializingDerivedType = false) {
14663
+ if (!createOwnerPortalRequestSchema_features || isSerializingDerivedType) {
14622
14664
  return;
14623
14665
  }
14624
- writer.writeObjectValue("customerUpdate", createPortalRequestSchema_features.customerUpdate, serializeCreatePortalRequestSchema_features_customerUpdate);
14625
- writer.writeObjectValue("invoiceHistory", createPortalRequestSchema_features.invoiceHistory, serializeCreatePortalRequestSchema_features_invoiceHistory);
14626
- writer.writeObjectValue("paymentMethodUpdate", createPortalRequestSchema_features.paymentMethodUpdate, serializeCreatePortalRequestSchema_features_paymentMethodUpdate);
14627
- writer.writeObjectValue("subscriptionCancel", createPortalRequestSchema_features.subscriptionCancel, serializeCreatePortalRequestSchema_features_subscriptionCancel);
14666
+ writer.writeObjectValue("customerUpdate", createOwnerPortalRequestSchema_features.customerUpdate, serializeCreateOwnerPortalRequestSchema_features_customerUpdate);
14667
+ writer.writeObjectValue("invoiceHistory", createOwnerPortalRequestSchema_features.invoiceHistory, serializeCreateOwnerPortalRequestSchema_features_invoiceHistory);
14668
+ writer.writeObjectValue("paymentMethodUpdate", createOwnerPortalRequestSchema_features.paymentMethodUpdate, serializeCreateOwnerPortalRequestSchema_features_paymentMethodUpdate);
14669
+ writer.writeObjectValue("subscriptionCancel", createOwnerPortalRequestSchema_features.subscriptionCancel, serializeCreateOwnerPortalRequestSchema_features_subscriptionCancel);
14628
14670
  }
14629
14671
  /**
14630
14672
  * Serializes information the current object
14631
- * @param CreatePortalRequestSchema_features_customerUpdate The instance to serialize from.
14673
+ * @param CreateOwnerPortalRequestSchema_features_customerUpdate The instance to serialize from.
14632
14674
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14633
14675
  * @param writer Serialization writer to use to serialize this model
14634
14676
  */
14635
14677
  // @ts-ignore
14636
- function serializeCreatePortalRequestSchema_features_customerUpdate(writer, createPortalRequestSchema_features_customerUpdate = {}, isSerializingDerivedType = false) {
14637
- if (!createPortalRequestSchema_features_customerUpdate || isSerializingDerivedType) {
14678
+ function serializeCreateOwnerPortalRequestSchema_features_customerUpdate(writer, createOwnerPortalRequestSchema_features_customerUpdate = {}, isSerializingDerivedType = false) {
14679
+ if (!createOwnerPortalRequestSchema_features_customerUpdate || isSerializingDerivedType) {
14638
14680
  return;
14639
14681
  }
14640
- if (createPortalRequestSchema_features_customerUpdate.allowedUpdates)
14641
- writer.writeCollectionOfEnumValues("allowedUpdates", createPortalRequestSchema_features_customerUpdate.allowedUpdates);
14642
- writer.writeBooleanValue("enabled", createPortalRequestSchema_features_customerUpdate.enabled);
14682
+ if (createOwnerPortalRequestSchema_features_customerUpdate.allowedUpdates)
14683
+ writer.writeCollectionOfEnumValues("allowedUpdates", createOwnerPortalRequestSchema_features_customerUpdate.allowedUpdates);
14684
+ writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_customerUpdate.enabled);
14643
14685
  }
14644
14686
  /**
14645
14687
  * Serializes information the current object
14646
- * @param CreatePortalRequestSchema_features_invoiceHistory The instance to serialize from.
14688
+ * @param CreateOwnerPortalRequestSchema_features_invoiceHistory The instance to serialize from.
14647
14689
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14648
14690
  * @param writer Serialization writer to use to serialize this model
14649
14691
  */
14650
14692
  // @ts-ignore
14651
- function serializeCreatePortalRequestSchema_features_invoiceHistory(writer, createPortalRequestSchema_features_invoiceHistory = {}, isSerializingDerivedType = false) {
14652
- if (!createPortalRequestSchema_features_invoiceHistory || isSerializingDerivedType) {
14693
+ function serializeCreateOwnerPortalRequestSchema_features_invoiceHistory(writer, createOwnerPortalRequestSchema_features_invoiceHistory = {}, isSerializingDerivedType = false) {
14694
+ if (!createOwnerPortalRequestSchema_features_invoiceHistory || isSerializingDerivedType) {
14653
14695
  return;
14654
14696
  }
14655
- writer.writeBooleanValue("enabled", createPortalRequestSchema_features_invoiceHistory.enabled);
14697
+ writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_invoiceHistory.enabled);
14656
14698
  }
14657
14699
  /**
14658
14700
  * Serializes information the current object
14659
- * @param CreatePortalRequestSchema_features_paymentMethodUpdate The instance to serialize from.
14701
+ * @param CreateOwnerPortalRequestSchema_features_paymentMethodUpdate The instance to serialize from.
14660
14702
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14661
14703
  * @param writer Serialization writer to use to serialize this model
14662
14704
  */
14663
14705
  // @ts-ignore
14664
- function serializeCreatePortalRequestSchema_features_paymentMethodUpdate(writer, createPortalRequestSchema_features_paymentMethodUpdate = {}, isSerializingDerivedType = false) {
14665
- if (!createPortalRequestSchema_features_paymentMethodUpdate || isSerializingDerivedType) {
14706
+ function serializeCreateOwnerPortalRequestSchema_features_paymentMethodUpdate(writer, createOwnerPortalRequestSchema_features_paymentMethodUpdate = {}, isSerializingDerivedType = false) {
14707
+ if (!createOwnerPortalRequestSchema_features_paymentMethodUpdate || isSerializingDerivedType) {
14666
14708
  return;
14667
14709
  }
14668
- writer.writeBooleanValue("enabled", createPortalRequestSchema_features_paymentMethodUpdate.enabled);
14710
+ writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_paymentMethodUpdate.enabled);
14669
14711
  }
14670
14712
  /**
14671
14713
  * Serializes information the current object
14672
- * @param CreatePortalRequestSchema_features_subscriptionCancel The instance to serialize from.
14714
+ * @param CreateOwnerPortalRequestSchema_features_subscriptionCancel The instance to serialize from.
14673
14715
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14674
14716
  * @param writer Serialization writer to use to serialize this model
14675
14717
  */
14676
14718
  // @ts-ignore
14677
- function serializeCreatePortalRequestSchema_features_subscriptionCancel(writer, createPortalRequestSchema_features_subscriptionCancel = {}, isSerializingDerivedType = false) {
14678
- if (!createPortalRequestSchema_features_subscriptionCancel || isSerializingDerivedType) {
14719
+ function serializeCreateOwnerPortalRequestSchema_features_subscriptionCancel(writer, createOwnerPortalRequestSchema_features_subscriptionCancel = {}, isSerializingDerivedType = false) {
14720
+ if (!createOwnerPortalRequestSchema_features_subscriptionCancel || isSerializingDerivedType) {
14679
14721
  return;
14680
14722
  }
14681
- writer.writeBooleanValue("enabled", createPortalRequestSchema_features_subscriptionCancel.enabled);
14682
- writer.writeEnumValue("when", createPortalRequestSchema_features_subscriptionCancel.when);
14723
+ writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_subscriptionCancel.enabled);
14724
+ writer.writeEnumValue("when", createOwnerPortalRequestSchema_features_subscriptionCancel.when);
14683
14725
  }
14684
14726
  /**
14685
14727
  * Serializes information the current object
@@ -14695,6 +14737,91 @@ function serializeCreateProductRequestSchema(writer, createProductRequestSchema
14695
14737
  writer.writeBooleanValue("isActive", createProductRequestSchema.isActive);
14696
14738
  writer.writeStringValue("name", createProductRequestSchema.name);
14697
14739
  }
14740
+ /**
14741
+ * Serializes information the current object
14742
+ * @param CreateSubscriptionPortalRequestSchema The instance to serialize from.
14743
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14744
+ * @param writer Serialization writer to use to serialize this model
14745
+ */
14746
+ // @ts-ignore
14747
+ function serializeCreateSubscriptionPortalRequestSchema(writer, createSubscriptionPortalRequestSchema = {}, isSerializingDerivedType = false) {
14748
+ if (!createSubscriptionPortalRequestSchema || isSerializingDerivedType) {
14749
+ return;
14750
+ }
14751
+ writer.writeObjectValue("features", createSubscriptionPortalRequestSchema.features, serializeCreateSubscriptionPortalRequestSchema_features);
14752
+ writer.writeStringValue("returnUrl", createSubscriptionPortalRequestSchema.returnUrl);
14753
+ }
14754
+ /**
14755
+ * Serializes information the current object
14756
+ * @param CreateSubscriptionPortalRequestSchema_features The instance to serialize from.
14757
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14758
+ * @param writer Serialization writer to use to serialize this model
14759
+ */
14760
+ // @ts-ignore
14761
+ function serializeCreateSubscriptionPortalRequestSchema_features(writer, createSubscriptionPortalRequestSchema_features = {}, isSerializingDerivedType = false) {
14762
+ if (!createSubscriptionPortalRequestSchema_features || isSerializingDerivedType) {
14763
+ return;
14764
+ }
14765
+ writer.writeObjectValue("customerUpdate", createSubscriptionPortalRequestSchema_features.customerUpdate, serializeCreateSubscriptionPortalRequestSchema_features_customerUpdate);
14766
+ writer.writeObjectValue("invoiceHistory", createSubscriptionPortalRequestSchema_features.invoiceHistory, serializeCreateSubscriptionPortalRequestSchema_features_invoiceHistory);
14767
+ writer.writeObjectValue("paymentMethodUpdate", createSubscriptionPortalRequestSchema_features.paymentMethodUpdate, serializeCreateSubscriptionPortalRequestSchema_features_paymentMethodUpdate);
14768
+ writer.writeObjectValue("subscriptionCancel", createSubscriptionPortalRequestSchema_features.subscriptionCancel, serializeCreateSubscriptionPortalRequestSchema_features_subscriptionCancel);
14769
+ }
14770
+ /**
14771
+ * Serializes information the current object
14772
+ * @param CreateSubscriptionPortalRequestSchema_features_customerUpdate The instance to serialize from.
14773
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14774
+ * @param writer Serialization writer to use to serialize this model
14775
+ */
14776
+ // @ts-ignore
14777
+ function serializeCreateSubscriptionPortalRequestSchema_features_customerUpdate(writer, createSubscriptionPortalRequestSchema_features_customerUpdate = {}, isSerializingDerivedType = false) {
14778
+ if (!createSubscriptionPortalRequestSchema_features_customerUpdate || isSerializingDerivedType) {
14779
+ return;
14780
+ }
14781
+ if (createSubscriptionPortalRequestSchema_features_customerUpdate.allowedUpdates)
14782
+ writer.writeCollectionOfEnumValues("allowedUpdates", createSubscriptionPortalRequestSchema_features_customerUpdate.allowedUpdates);
14783
+ writer.writeBooleanValue("enabled", createSubscriptionPortalRequestSchema_features_customerUpdate.enabled);
14784
+ }
14785
+ /**
14786
+ * Serializes information the current object
14787
+ * @param CreateSubscriptionPortalRequestSchema_features_invoiceHistory The instance to serialize from.
14788
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14789
+ * @param writer Serialization writer to use to serialize this model
14790
+ */
14791
+ // @ts-ignore
14792
+ function serializeCreateSubscriptionPortalRequestSchema_features_invoiceHistory(writer, createSubscriptionPortalRequestSchema_features_invoiceHistory = {}, isSerializingDerivedType = false) {
14793
+ if (!createSubscriptionPortalRequestSchema_features_invoiceHistory || isSerializingDerivedType) {
14794
+ return;
14795
+ }
14796
+ writer.writeBooleanValue("enabled", createSubscriptionPortalRequestSchema_features_invoiceHistory.enabled);
14797
+ }
14798
+ /**
14799
+ * Serializes information the current object
14800
+ * @param CreateSubscriptionPortalRequestSchema_features_paymentMethodUpdate The instance to serialize from.
14801
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14802
+ * @param writer Serialization writer to use to serialize this model
14803
+ */
14804
+ // @ts-ignore
14805
+ function serializeCreateSubscriptionPortalRequestSchema_features_paymentMethodUpdate(writer, createSubscriptionPortalRequestSchema_features_paymentMethodUpdate = {}, isSerializingDerivedType = false) {
14806
+ if (!createSubscriptionPortalRequestSchema_features_paymentMethodUpdate || isSerializingDerivedType) {
14807
+ return;
14808
+ }
14809
+ writer.writeBooleanValue("enabled", createSubscriptionPortalRequestSchema_features_paymentMethodUpdate.enabled);
14810
+ }
14811
+ /**
14812
+ * Serializes information the current object
14813
+ * @param CreateSubscriptionPortalRequestSchema_features_subscriptionCancel The instance to serialize from.
14814
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14815
+ * @param writer Serialization writer to use to serialize this model
14816
+ */
14817
+ // @ts-ignore
14818
+ function serializeCreateSubscriptionPortalRequestSchema_features_subscriptionCancel(writer, createSubscriptionPortalRequestSchema_features_subscriptionCancel = {}, isSerializingDerivedType = false) {
14819
+ if (!createSubscriptionPortalRequestSchema_features_subscriptionCancel || isSerializingDerivedType) {
14820
+ return;
14821
+ }
14822
+ writer.writeBooleanValue("enabled", createSubscriptionPortalRequestSchema_features_subscriptionCancel.enabled);
14823
+ writer.writeEnumValue("when", createSubscriptionPortalRequestSchema_features_subscriptionCancel.when);
14824
+ }
14698
14825
  /**
14699
14826
  * Serializes information the current object
14700
14827
  * @param CreateTierTagRequestSchema The instance to serialize from.
@@ -14740,10 +14867,25 @@ function serializeGenerateCheckoutLinkRequestSchema(writer, generateCheckoutLink
14740
14867
  writer.writeEnumValue("cardPrefillPreference", generateCheckoutLinkRequestSchema.cardPrefillPreference);
14741
14868
  writer.writeBooleanValue("collectBillingAddress", generateCheckoutLinkRequestSchema.collectBillingAddress);
14742
14869
  writer.writeBooleanValue("collectShippingAddress", generateCheckoutLinkRequestSchema.collectShippingAddress);
14870
+ writer.writeCollectionOfObjectValues("discounts", generateCheckoutLinkRequestSchema.discounts, serializeGenerateCheckoutLinkRequestSchema_discounts);
14743
14871
  writer.writeStringValue("email", generateCheckoutLinkRequestSchema.email);
14744
14872
  writer.writeStringValue("successUrl", generateCheckoutLinkRequestSchema.successUrl);
14745
14873
  writer.writeNumberValue("trialPeriodDays", generateCheckoutLinkRequestSchema.trialPeriodDays);
14746
14874
  }
14875
+ /**
14876
+ * Serializes information the current object
14877
+ * @param GenerateCheckoutLinkRequestSchema_discounts The instance to serialize from.
14878
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14879
+ * @param writer Serialization writer to use to serialize this model
14880
+ */
14881
+ // @ts-ignore
14882
+ function serializeGenerateCheckoutLinkRequestSchema_discounts(writer, generateCheckoutLinkRequestSchema_discounts = {}, isSerializingDerivedType = false) {
14883
+ if (!generateCheckoutLinkRequestSchema_discounts || isSerializingDerivedType) {
14884
+ return;
14885
+ }
14886
+ writer.writeStringValue("coupon", generateCheckoutLinkRequestSchema_discounts.coupon);
14887
+ writer.writeStringValue("promotionCode", generateCheckoutLinkRequestSchema_discounts.promotionCode);
14888
+ }
14747
14889
  /**
14748
14890
  * Serializes information the current object
14749
14891
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -15148,20 +15290,6 @@ function serializeUpdateProductRequestSchema_settings(writer, updateProductReque
15148
15290
  writer.writeBooleanValue("pastDueEntitlements", updateProductRequestSchema_settings.pastDueEntitlements);
15149
15291
  writer.writeStringValue("successUrl", updateProductRequestSchema_settings.successUrl);
15150
15292
  }
15151
- /**
15152
- * Serializes information the current object
15153
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15154
- * @param UpdateSalableOnlySubscriptionRequestSchema The instance to serialize from.
15155
- * @param writer Serialization writer to use to serialize this model
15156
- */
15157
- // @ts-ignore
15158
- function serializeUpdateSalableOnlySubscriptionRequestSchema(writer, updateSalableOnlySubscriptionRequestSchema = {}, isSerializingDerivedType = false) {
15159
- if (!updateSalableOnlySubscriptionRequestSchema || isSerializingDerivedType) {
15160
- return;
15161
- }
15162
- writer.writeEnumValue("interval", updateSalableOnlySubscriptionRequestSchema.interval);
15163
- writer.writeNumberValue("intervalCount", updateSalableOnlySubscriptionRequestSchema.intervalCount);
15164
- }
15165
15293
  /**
15166
15294
  * Serializes information the current object
15167
15295
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -15874,6 +16002,7 @@ function serializeCheckoutPostRequestBody(writer, checkoutPostRequestBody = {},
15874
16002
  writer.writeBooleanValue("collectBillingAddress", checkoutPostRequestBody.collectBillingAddress);
15875
16003
  writer.writeBooleanValue("collectShippingAddress", checkoutPostRequestBody.collectShippingAddress);
15876
16004
  writer.writeEnumValue("currency", checkoutPostRequestBody.currency);
16005
+ writer.writeCollectionOfObjectValues("discounts", checkoutPostRequestBody.discounts, serializeCheckoutPostRequestBody_discounts);
15877
16006
  writer.writeStringValue("email", checkoutPostRequestBody.email);
15878
16007
  writer.writeStringValue("grantee", checkoutPostRequestBody.grantee);
15879
16008
  writer.writeEnumValue("interval", checkoutPostRequestBody.interval);
@@ -15884,6 +16013,20 @@ function serializeCheckoutPostRequestBody(writer, checkoutPostRequestBody = {},
15884
16013
  writer.writeStringValue("successUrl", checkoutPostRequestBody.successUrl);
15885
16014
  writer.writeNumberValue("trialPeriodDays", checkoutPostRequestBody.trialPeriodDays);
15886
16015
  }
16016
+ /**
16017
+ * Serializes information the current object
16018
+ * @param CheckoutPostRequestBody_discounts The instance to serialize from.
16019
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
16020
+ * @param writer Serialization writer to use to serialize this model
16021
+ */
16022
+ // @ts-ignore
16023
+ function serializeCheckoutPostRequestBody_discounts(writer, checkoutPostRequestBody_discounts = {}, isSerializingDerivedType = false) {
16024
+ if (!checkoutPostRequestBody_discounts || isSerializingDerivedType) {
16025
+ return;
16026
+ }
16027
+ writer.writeStringValue("coupon", checkoutPostRequestBody_discounts.coupon);
16028
+ writer.writeStringValue("promotionCode", checkoutPostRequestBody_discounts.promotionCode);
16029
+ }
15887
16030
  /**
15888
16031
  * Serializes information the current object
15889
16032
  * @param CheckoutPostRequestBody_metadata The instance to serialize from.
@@ -16862,6 +17005,40 @@ const MetersRequestBuilderRequestsMetadata = {
16862
17005
  /* tslint:enable */
16863
17006
  /* eslint-enable */
16864
17007
 
17008
+ /* tslint:disable */
17009
+ /* eslint-disable */
17010
+ // Generated by Microsoft Kiota
17011
+ // @ts-ignore
17012
+ /**
17013
+ * Uri template for the request builder.
17014
+ */
17015
+ const PortalRequestBuilderUriTemplate$1 = "{+baseurl}/api/owners/{id}/portal";
17016
+ /**
17017
+ * Metadata for all the requests in the request builder.
17018
+ */
17019
+ const PortalRequestBuilderRequestsMetadata$1 = {
17020
+ post: {
17021
+ uriTemplate: PortalRequestBuilderUriTemplate$1,
17022
+ responseBodyContentType: "application/json",
17023
+ errorMappings: {
17024
+ 400: createErrorResponseBodyFromDiscriminatorValue,
17025
+ 401: createErrorResponseBodyFromDiscriminatorValue,
17026
+ 403: createErrorResponseBodyFromDiscriminatorValue,
17027
+ 404: createErrorResponseBodyFromDiscriminatorValue,
17028
+ 405: createErrorResponseBodyFromDiscriminatorValue,
17029
+ 429: createErrorResponseBodyFromDiscriminatorValue,
17030
+ 500: createErrorResponseBodyFromDiscriminatorValue,
17031
+ },
17032
+ adapterMethodName: "send",
17033
+ responseBodyFactory: createCreateOwnerPortalResponseSchemaFromDiscriminatorValue,
17034
+ requestBodyContentType: "application/json",
17035
+ requestBodySerializer: serializeCreateOwnerPortalRequestSchema,
17036
+ requestInformationContentSetMethod: "setContentFromParsable",
17037
+ },
17038
+ };
17039
+ /* tslint:enable */
17040
+ /* eslint-enable */
17041
+
16865
17042
  /* tslint:disable */
16866
17043
  /* eslint-disable */
16867
17044
  // Generated by Microsoft Kiota
@@ -16870,6 +17047,14 @@ const MetersRequestBuilderRequestsMetadata = {
16870
17047
  * Uri template for the request builder.
16871
17048
  */
16872
17049
  const OwnersItemRequestBuilderUriTemplate = "{+baseurl}/api/owners/{id}{?expand}";
17050
+ /**
17051
+ * Metadata for all the navigation properties in the request builder.
17052
+ */
17053
+ const OwnersItemRequestBuilderNavigationMetadata = {
17054
+ portal: {
17055
+ requestsMetadata: PortalRequestBuilderRequestsMetadata$1,
17056
+ },
17057
+ };
16873
17058
  /**
16874
17059
  * Metadata for all the requests in the request builder.
16875
17060
  */
@@ -16939,6 +17124,7 @@ const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,e
16939
17124
  const OwnersRequestBuilderNavigationMetadata = {
16940
17125
  byId: {
16941
17126
  requestsMetadata: OwnersItemRequestBuilderRequestsMetadata,
17127
+ navigationMetadata: OwnersItemRequestBuilderNavigationMetadata,
16942
17128
  pathParametersMappings: ["id"],
16943
17129
  },
16944
17130
  };
@@ -18440,7 +18626,7 @@ function deserializeIntoSubscriptionPlansGetResponse_data_subscriptionPlanLineIt
18440
18626
  "nickname": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.nickname = n.getStringValue(); },
18441
18627
  "organisation": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.organisation = n.getStringValue(); },
18442
18628
  "planId": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.planId = n.getStringValue(); },
18443
- "priceType": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
18629
+ "priceType": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.priceType = n.getStringValue(); },
18444
18630
  "slug": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.slug = n.getStringValue(); },
18445
18631
  "stripeProductId": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.stripeProductId = n.getStringValue(); },
18446
18632
  "tiersMode": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -18754,7 +18940,7 @@ function deserializeIntoSubscriptionPlansGetResponse_data_subscriptionPlanLineIt
18754
18940
  "nickname": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.nickname = n.getStringValue(); },
18755
18941
  "organisation": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.organisation = n.getStringValue(); },
18756
18942
  "planId": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.planId = n.getStringValue(); },
18757
- "priceType": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.priceType = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
18943
+ "priceType": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.priceType = n.getStringValue(); },
18758
18944
  "slug": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.slug = n.getStringValue(); },
18759
18945
  "stripeProductId": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.stripeProductId = n.getStringValue(); },
18760
18946
  "tiersMode": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
@@ -18980,9 +19166,9 @@ const PortalRequestBuilderRequestsMetadata = {
18980
19166
  500: createErrorResponseBodyFromDiscriminatorValue,
18981
19167
  },
18982
19168
  adapterMethodName: "send",
18983
- responseBodyFactory: createCreatePortalResponseSchemaFromDiscriminatorValue,
19169
+ responseBodyFactory: createCreateSubscriptionPortalResponseSchemaFromDiscriminatorValue,
18984
19170
  requestBodyContentType: "application/json",
18985
- requestBodySerializer: serializeCreatePortalRequestSchema,
19171
+ requestBodySerializer: serializeCreateSubscriptionPortalRequestSchema,
18986
19172
  requestInformationContentSetMethod: "setContentFromParsable",
18987
19173
  },
18988
19174
  };
@@ -19050,23 +19236,6 @@ const SubscriptionsItemRequestBuilderRequestsMetadata = {
19050
19236
  adapterMethodName: "send",
19051
19237
  responseBodyFactory: createGetSubscriptionDetailSchemaFromDiscriminatorValue,
19052
19238
  },
19053
- put: {
19054
- uriTemplate: SubscriptionsItemRequestBuilderUriTemplate,
19055
- responseBodyContentType: "application/json",
19056
- errorMappings: {
19057
- 400: createErrorResponseBodyFromDiscriminatorValue,
19058
- 401: createErrorResponseBodyFromDiscriminatorValue,
19059
- 403: createErrorResponseBodyFromDiscriminatorValue,
19060
- 404: createErrorResponseBodyFromDiscriminatorValue,
19061
- 405: createErrorResponseBodyFromDiscriminatorValue,
19062
- 429: createErrorResponseBodyFromDiscriminatorValue,
19063
- 500: createErrorResponseBodyFromDiscriminatorValue,
19064
- },
19065
- adapterMethodName: "sendNoResponseContent",
19066
- requestBodyContentType: "application/json",
19067
- requestBodySerializer: serializeUpdateSalableOnlySubscriptionRequestSchema,
19068
- requestInformationContentSetMethod: "setContentFromParsable",
19069
- },
19070
19239
  };
19071
19240
  /* tslint:enable */
19072
19241
  /* eslint-enable */