@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.es.js +279 -110
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +279 -110
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/checkout/index.d.ts +35 -2
- package/dist/sdk/api/owners/item/index.d.ts +10 -1
- package/dist/sdk/api/owners/item/portal/index.d.ts +36 -0
- package/dist/sdk/api/subscriptionPlans/index.d.ts +16 -1
- package/dist/sdk/api/subscriptionPlans/item/index.d.ts +16 -1
- package/dist/sdk/api/subscriptions/item/index.d.ts +1 -21
- package/dist/sdk/api/subscriptions/item/portal/index.d.ts +8 -6
- package/dist/sdk/api/usage/record/index.d.ts +2 -2
- package/dist/sdk/models/index.d.ts +633 -190
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6441,38 +6441,38 @@ function createCreateGroupResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
|
6441
6441
|
/**
|
|
6442
6442
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6443
6443
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6444
|
-
* @returns {
|
|
6444
|
+
* @returns {CreateOwnerPortalResponseSchema_data}
|
|
6445
6445
|
*/
|
|
6446
6446
|
// @ts-ignore
|
|
6447
|
-
function
|
|
6448
|
-
return
|
|
6447
|
+
function createCreateOwnerPortalResponseSchema_dataFromDiscriminatorValue(parseNode) {
|
|
6448
|
+
return deserializeIntoCreateOwnerPortalResponseSchema_data;
|
|
6449
6449
|
}
|
|
6450
6450
|
/**
|
|
6451
6451
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6452
6452
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6453
|
-
* @returns {
|
|
6453
|
+
* @returns {CreateOwnerPortalResponseSchema}
|
|
6454
6454
|
*/
|
|
6455
6455
|
// @ts-ignore
|
|
6456
|
-
function
|
|
6457
|
-
return
|
|
6456
|
+
function createCreateOwnerPortalResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6457
|
+
return deserializeIntoCreateOwnerPortalResponseSchema;
|
|
6458
6458
|
}
|
|
6459
6459
|
/**
|
|
6460
6460
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6461
6461
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6462
|
-
* @returns {
|
|
6462
|
+
* @returns {CreatePlanResponseSchema_data}
|
|
6463
6463
|
*/
|
|
6464
6464
|
// @ts-ignore
|
|
6465
|
-
function
|
|
6466
|
-
return
|
|
6465
|
+
function createCreatePlanResponseSchema_dataFromDiscriminatorValue(parseNode) {
|
|
6466
|
+
return deserializeIntoCreatePlanResponseSchema_data;
|
|
6467
6467
|
}
|
|
6468
6468
|
/**
|
|
6469
6469
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6470
6470
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6471
|
-
* @returns {
|
|
6471
|
+
* @returns {CreatePlanResponseSchema}
|
|
6472
6472
|
*/
|
|
6473
6473
|
// @ts-ignore
|
|
6474
|
-
function
|
|
6475
|
-
return
|
|
6474
|
+
function createCreatePlanResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6475
|
+
return deserializeIntoCreatePlanResponseSchema;
|
|
6476
6476
|
}
|
|
6477
6477
|
/**
|
|
6478
6478
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -6492,6 +6492,24 @@ function createCreateProductResponseSchema_dataFromDiscriminatorValue(parseNode)
|
|
|
6492
6492
|
function createCreateProductResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6493
6493
|
return deserializeIntoCreateProductResponseSchema;
|
|
6494
6494
|
}
|
|
6495
|
+
/**
|
|
6496
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6497
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6498
|
+
* @returns {CreateSubscriptionPortalResponseSchema_data}
|
|
6499
|
+
*/
|
|
6500
|
+
// @ts-ignore
|
|
6501
|
+
function createCreateSubscriptionPortalResponseSchema_dataFromDiscriminatorValue(parseNode) {
|
|
6502
|
+
return deserializeIntoCreateSubscriptionPortalResponseSchema_data;
|
|
6503
|
+
}
|
|
6504
|
+
/**
|
|
6505
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6506
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6507
|
+
* @returns {CreateSubscriptionPortalResponseSchema}
|
|
6508
|
+
*/
|
|
6509
|
+
// @ts-ignore
|
|
6510
|
+
function createCreateSubscriptionPortalResponseSchemaFromDiscriminatorValue(parseNode) {
|
|
6511
|
+
return deserializeIntoCreateSubscriptionPortalResponseSchema;
|
|
6512
|
+
}
|
|
6495
6513
|
/**
|
|
6496
6514
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
6497
6515
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -9498,6 +9516,29 @@ function deserializeIntoCreateGroupResponseSchema_data(createGroupResponseSchema
|
|
|
9498
9516
|
"updatedAt": n => { createGroupResponseSchema_data.updatedAt = n.getStringValue(); },
|
|
9499
9517
|
};
|
|
9500
9518
|
}
|
|
9519
|
+
/**
|
|
9520
|
+
* The deserialization information for the current model
|
|
9521
|
+
* @param CreateOwnerPortalResponseSchema The instance to deserialize into.
|
|
9522
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9523
|
+
*/
|
|
9524
|
+
// @ts-ignore
|
|
9525
|
+
function deserializeIntoCreateOwnerPortalResponseSchema(createOwnerPortalResponseSchema = {}) {
|
|
9526
|
+
return {
|
|
9527
|
+
"data": n => { createOwnerPortalResponseSchema.data = n.getObjectValue(createCreateOwnerPortalResponseSchema_dataFromDiscriminatorValue); },
|
|
9528
|
+
"type": n => { createOwnerPortalResponseSchema.type = n.getStringValue(); },
|
|
9529
|
+
};
|
|
9530
|
+
}
|
|
9531
|
+
/**
|
|
9532
|
+
* The deserialization information for the current model
|
|
9533
|
+
* @param CreateOwnerPortalResponseSchema_data The instance to deserialize into.
|
|
9534
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9535
|
+
*/
|
|
9536
|
+
// @ts-ignore
|
|
9537
|
+
function deserializeIntoCreateOwnerPortalResponseSchema_data(createOwnerPortalResponseSchema_data = {}) {
|
|
9538
|
+
return {
|
|
9539
|
+
"url": n => { createOwnerPortalResponseSchema_data.url = n.getStringValue(); },
|
|
9540
|
+
};
|
|
9541
|
+
}
|
|
9501
9542
|
/**
|
|
9502
9543
|
* The deserialization information for the current model
|
|
9503
9544
|
* @param CreatePlanResponseSchema The instance to deserialize into.
|
|
@@ -9532,54 +9573,55 @@ function deserializeIntoCreatePlanResponseSchema_data(createPlanResponseSchema_d
|
|
|
9532
9573
|
}
|
|
9533
9574
|
/**
|
|
9534
9575
|
* The deserialization information for the current model
|
|
9535
|
-
* @param
|
|
9576
|
+
* @param CreateProductResponseSchema The instance to deserialize into.
|
|
9536
9577
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9537
9578
|
*/
|
|
9538
9579
|
// @ts-ignore
|
|
9539
|
-
function
|
|
9580
|
+
function deserializeIntoCreateProductResponseSchema(createProductResponseSchema = {}) {
|
|
9540
9581
|
return {
|
|
9541
|
-
"data": n => {
|
|
9542
|
-
"type": n => {
|
|
9582
|
+
"data": n => { createProductResponseSchema.data = n.getObjectValue(createCreateProductResponseSchema_dataFromDiscriminatorValue); },
|
|
9583
|
+
"type": n => { createProductResponseSchema.type = n.getStringValue(); },
|
|
9543
9584
|
};
|
|
9544
9585
|
}
|
|
9545
9586
|
/**
|
|
9546
9587
|
* The deserialization information for the current model
|
|
9547
|
-
* @param
|
|
9588
|
+
* @param CreateProductResponseSchema_data The instance to deserialize into.
|
|
9548
9589
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9549
9590
|
*/
|
|
9550
9591
|
// @ts-ignore
|
|
9551
|
-
function
|
|
9592
|
+
function deserializeIntoCreateProductResponseSchema_data(createProductResponseSchema_data = {}) {
|
|
9552
9593
|
return {
|
|
9553
|
-
"
|
|
9594
|
+
"archivedAt": n => { createProductResponseSchema_data.archivedAt = n.getStringValue(); },
|
|
9595
|
+
"createdAt": n => { createProductResponseSchema_data.createdAt = n.getStringValue(); },
|
|
9596
|
+
"id": n => { createProductResponseSchema_data.id = n.getStringValue(); },
|
|
9597
|
+
"isActive": n => { createProductResponseSchema_data.isActive = n.getBooleanValue(); },
|
|
9598
|
+
"name": n => { createProductResponseSchema_data.name = n.getStringValue(); },
|
|
9599
|
+
"organisation": n => { createProductResponseSchema_data.organisation = n.getStringValue(); },
|
|
9600
|
+
"updatedAt": n => { createProductResponseSchema_data.updatedAt = n.getStringValue(); },
|
|
9554
9601
|
};
|
|
9555
9602
|
}
|
|
9556
9603
|
/**
|
|
9557
9604
|
* The deserialization information for the current model
|
|
9558
|
-
* @param
|
|
9605
|
+
* @param CreateSubscriptionPortalResponseSchema The instance to deserialize into.
|
|
9559
9606
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9560
9607
|
*/
|
|
9561
9608
|
// @ts-ignore
|
|
9562
|
-
function
|
|
9609
|
+
function deserializeIntoCreateSubscriptionPortalResponseSchema(createSubscriptionPortalResponseSchema = {}) {
|
|
9563
9610
|
return {
|
|
9564
|
-
"data": n => {
|
|
9565
|
-
"
|
|
9611
|
+
"data": n => { createSubscriptionPortalResponseSchema.data = n.getObjectValue(createCreateSubscriptionPortalResponseSchema_dataFromDiscriminatorValue); },
|
|
9612
|
+
"message": n => { createSubscriptionPortalResponseSchema.message = n.getStringValue(); },
|
|
9613
|
+
"type": n => { createSubscriptionPortalResponseSchema.type = n.getStringValue(); },
|
|
9566
9614
|
};
|
|
9567
9615
|
}
|
|
9568
9616
|
/**
|
|
9569
9617
|
* The deserialization information for the current model
|
|
9570
|
-
* @param
|
|
9618
|
+
* @param CreateSubscriptionPortalResponseSchema_data The instance to deserialize into.
|
|
9571
9619
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
9572
9620
|
*/
|
|
9573
9621
|
// @ts-ignore
|
|
9574
|
-
function
|
|
9622
|
+
function deserializeIntoCreateSubscriptionPortalResponseSchema_data(createSubscriptionPortalResponseSchema_data = {}) {
|
|
9575
9623
|
return {
|
|
9576
|
-
"
|
|
9577
|
-
"createdAt": n => { createProductResponseSchema_data.createdAt = n.getStringValue(); },
|
|
9578
|
-
"id": n => { createProductResponseSchema_data.id = n.getStringValue(); },
|
|
9579
|
-
"isActive": n => { createProductResponseSchema_data.isActive = n.getBooleanValue(); },
|
|
9580
|
-
"name": n => { createProductResponseSchema_data.name = n.getStringValue(); },
|
|
9581
|
-
"organisation": n => { createProductResponseSchema_data.organisation = n.getStringValue(); },
|
|
9582
|
-
"updatedAt": n => { createProductResponseSchema_data.updatedAt = n.getStringValue(); },
|
|
9624
|
+
"url": n => { createSubscriptionPortalResponseSchema_data.url = n.getStringValue(); },
|
|
9583
9625
|
};
|
|
9584
9626
|
}
|
|
9585
9627
|
/**
|
|
@@ -10124,7 +10166,7 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems_d
|
|
|
10124
10166
|
"organisation": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.organisation = n.getStringValue(); },
|
|
10125
10167
|
"planId": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.planId = n.getStringValue(); },
|
|
10126
10168
|
"prices": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.prices = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_lineItems_data_pricesFromDiscriminatorValue); },
|
|
10127
|
-
"priceType": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.priceType = n.
|
|
10169
|
+
"priceType": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.priceType = n.getStringValue(); },
|
|
10128
10170
|
"slug": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.slug = n.getStringValue(); },
|
|
10129
10171
|
"stripeProductId": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.stripeProductId = n.getStringValue(); },
|
|
10130
10172
|
"tiersMode": n => { getCartDetailSchema_data_cartItems_data_plan_lineItems_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -11092,7 +11134,7 @@ function deserializeIntoGetGroupDetailSchema_data_subscriptionPlans_data_plan_li
|
|
|
11092
11134
|
"nickname": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.nickname = n.getStringValue(); },
|
|
11093
11135
|
"organisation": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.organisation = n.getStringValue(); },
|
|
11094
11136
|
"planId": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.planId = n.getStringValue(); },
|
|
11095
|
-
"priceType": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.priceType = n.
|
|
11137
|
+
"priceType": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.priceType = n.getStringValue(); },
|
|
11096
11138
|
"slug": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.slug = n.getStringValue(); },
|
|
11097
11139
|
"stripeProductId": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.stripeProductId = n.getStringValue(); },
|
|
11098
11140
|
"tiersMode": n => { getGroupDetailSchema_data_subscriptionPlans_data_plan_lineItems_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -11247,7 +11289,7 @@ function deserializeIntoGetLineItemDetailSchema_data(getLineItemDetailSchema_dat
|
|
|
11247
11289
|
"organisation": n => { getLineItemDetailSchema_data.organisation = n.getStringValue(); },
|
|
11248
11290
|
"planId": n => { getLineItemDetailSchema_data.planId = n.getStringValue(); },
|
|
11249
11291
|
"prices": n => { getLineItemDetailSchema_data.prices = n.getObjectValue(createGetLineItemDetailSchema_data_pricesFromDiscriminatorValue); },
|
|
11250
|
-
"priceType": n => { getLineItemDetailSchema_data.priceType = n.
|
|
11292
|
+
"priceType": n => { getLineItemDetailSchema_data.priceType = n.getStringValue(); },
|
|
11251
11293
|
"slug": n => { getLineItemDetailSchema_data.slug = n.getStringValue(); },
|
|
11252
11294
|
"stripeProductId": n => { getLineItemDetailSchema_data.stripeProductId = n.getStringValue(); },
|
|
11253
11295
|
"tiersMode": n => { getLineItemDetailSchema_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -11326,7 +11368,7 @@ function deserializeIntoGetLineItemListSchema_data(getLineItemListSchema_data =
|
|
|
11326
11368
|
"nickname": n => { getLineItemListSchema_data.nickname = n.getStringValue(); },
|
|
11327
11369
|
"organisation": n => { getLineItemListSchema_data.organisation = n.getStringValue(); },
|
|
11328
11370
|
"planId": n => { getLineItemListSchema_data.planId = n.getStringValue(); },
|
|
11329
|
-
"priceType": n => { getLineItemListSchema_data.priceType = n.
|
|
11371
|
+
"priceType": n => { getLineItemListSchema_data.priceType = n.getStringValue(); },
|
|
11330
11372
|
"slug": n => { getLineItemListSchema_data.slug = n.getStringValue(); },
|
|
11331
11373
|
"stripeProductId": n => { getLineItemListSchema_data.stripeProductId = n.getStringValue(); },
|
|
11332
11374
|
"tiersMode": n => { getLineItemListSchema_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -11836,7 +11878,7 @@ function deserializeIntoGetPlanDetailSchema_data_lineItems_data(getPlanDetailSch
|
|
|
11836
11878
|
"organisation": n => { getPlanDetailSchema_data_lineItems_data.organisation = n.getStringValue(); },
|
|
11837
11879
|
"planId": n => { getPlanDetailSchema_data_lineItems_data.planId = n.getStringValue(); },
|
|
11838
11880
|
"prices": n => { getPlanDetailSchema_data_lineItems_data.prices = n.getObjectValue(createGetPlanDetailSchema_data_lineItems_data_pricesFromDiscriminatorValue); },
|
|
11839
|
-
"priceType": n => { getPlanDetailSchema_data_lineItems_data.priceType = n.
|
|
11881
|
+
"priceType": n => { getPlanDetailSchema_data_lineItems_data.priceType = n.getStringValue(); },
|
|
11840
11882
|
"slug": n => { getPlanDetailSchema_data_lineItems_data.slug = n.getStringValue(); },
|
|
11841
11883
|
"stripeProductId": n => { getPlanDetailSchema_data_lineItems_data.stripeProductId = n.getStringValue(); },
|
|
11842
11884
|
"tiersMode": n => { getPlanDetailSchema_data_lineItems_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -12193,7 +12235,7 @@ function deserializeIntoGetPlanListSchema_data_lineItems_data(getPlanListSchema_
|
|
|
12193
12235
|
"organisation": n => { getPlanListSchema_data_lineItems_data.organisation = n.getStringValue(); },
|
|
12194
12236
|
"planId": n => { getPlanListSchema_data_lineItems_data.planId = n.getStringValue(); },
|
|
12195
12237
|
"prices": n => { getPlanListSchema_data_lineItems_data.prices = n.getObjectValue(createGetPlanListSchema_data_lineItems_data_pricesFromDiscriminatorValue); },
|
|
12196
|
-
"priceType": n => { getPlanListSchema_data_lineItems_data.priceType = n.
|
|
12238
|
+
"priceType": n => { getPlanListSchema_data_lineItems_data.priceType = n.getStringValue(); },
|
|
12197
12239
|
"slug": n => { getPlanListSchema_data_lineItems_data.slug = n.getStringValue(); },
|
|
12198
12240
|
"stripeProductId": n => { getPlanListSchema_data_lineItems_data.stripeProductId = n.getStringValue(); },
|
|
12199
12241
|
"tiersMode": n => { getPlanListSchema_data_lineItems_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -12695,7 +12737,7 @@ function deserializeIntoGetReceiptDetailSchema_data_receiptItems_data_lineItem(g
|
|
|
12695
12737
|
"nickname": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.nickname = n.getStringValue(); },
|
|
12696
12738
|
"organisation": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.organisation = n.getStringValue(); },
|
|
12697
12739
|
"planId": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.planId = n.getStringValue(); },
|
|
12698
|
-
"priceType": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.priceType = n.
|
|
12740
|
+
"priceType": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.priceType = n.getStringValue(); },
|
|
12699
12741
|
"slug": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.slug = n.getStringValue(); },
|
|
12700
12742
|
"stripeProductId": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.stripeProductId = n.getStringValue(); },
|
|
12701
12743
|
"tiersMode": n => { getReceiptDetailSchema_data_receiptItems_data_lineItem.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -13709,7 +13751,7 @@ function deserializeIntoGetSubscriptionPlanLineItemSchema_data_lineItem(getSubsc
|
|
|
13709
13751
|
"organisation": n => { getSubscriptionPlanLineItemSchema_data_lineItem.organisation = n.getStringValue(); },
|
|
13710
13752
|
"planId": n => { getSubscriptionPlanLineItemSchema_data_lineItem.planId = n.getStringValue(); },
|
|
13711
13753
|
"prices": n => { getSubscriptionPlanLineItemSchema_data_lineItem.prices = n.getObjectValue(createGetSubscriptionPlanLineItemSchema_data_lineItem_pricesFromDiscriminatorValue); },
|
|
13712
|
-
"priceType": n => { getSubscriptionPlanLineItemSchema_data_lineItem.priceType = n.
|
|
13754
|
+
"priceType": n => { getSubscriptionPlanLineItemSchema_data_lineItem.priceType = n.getStringValue(); },
|
|
13713
13755
|
"slug": n => { getSubscriptionPlanLineItemSchema_data_lineItem.slug = n.getStringValue(); },
|
|
13714
13756
|
"stripeProductId": n => { getSubscriptionPlanLineItemSchema_data_lineItem.stripeProductId = n.getStringValue(); },
|
|
13715
13757
|
"tiersMode": n => { getSubscriptionPlanLineItemSchema_data_lineItem.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -14091,7 +14133,7 @@ function deserializeIntoGetWebhookDetailSchema_data_eventTypes_data(getWebhookDe
|
|
|
14091
14133
|
return {
|
|
14092
14134
|
"createdAt": n => { getWebhookDetailSchema_data_eventTypes_data.createdAt = n.getStringValue(); },
|
|
14093
14135
|
"deletedAt": n => { getWebhookDetailSchema_data_eventTypes_data.deletedAt = n.getStringValue(); },
|
|
14094
|
-
"event": n => { getWebhookDetailSchema_data_eventTypes_data.event = n.
|
|
14136
|
+
"event": n => { getWebhookDetailSchema_data_eventTypes_data.event = n.getStringValue(); },
|
|
14095
14137
|
"id": n => { getWebhookDetailSchema_data_eventTypes_data.id = n.getStringValue(); },
|
|
14096
14138
|
"organisation": n => { getWebhookDetailSchema_data_eventTypes_data.organisation = n.getStringValue(); },
|
|
14097
14139
|
"updatedAt": n => { getWebhookDetailSchema_data_eventTypes_data.updatedAt = n.getStringValue(); },
|
|
@@ -14154,7 +14196,7 @@ function deserializeIntoGetWebhookListSchema_data_eventTypes_data(getWebhookList
|
|
|
14154
14196
|
return {
|
|
14155
14197
|
"createdAt": n => { getWebhookListSchema_data_eventTypes_data.createdAt = n.getStringValue(); },
|
|
14156
14198
|
"deletedAt": n => { getWebhookListSchema_data_eventTypes_data.deletedAt = n.getStringValue(); },
|
|
14157
|
-
"event": n => { getWebhookListSchema_data_eventTypes_data.event = n.
|
|
14199
|
+
"event": n => { getWebhookListSchema_data_eventTypes_data.event = n.getStringValue(); },
|
|
14158
14200
|
"id": n => { getWebhookListSchema_data_eventTypes_data.id = n.getStringValue(); },
|
|
14159
14201
|
"organisation": n => { getWebhookListSchema_data_eventTypes_data.organisation = n.getStringValue(); },
|
|
14160
14202
|
"updatedAt": n => { getWebhookListSchema_data_eventTypes_data.updatedAt = n.getStringValue(); },
|
|
@@ -14235,7 +14277,7 @@ function deserializeIntoSavePlanResponseSchema_data_lineItems(savePlanResponseSc
|
|
|
14235
14277
|
"organisation": n => { savePlanResponseSchema_data_lineItems.organisation = n.getStringValue(); },
|
|
14236
14278
|
"planId": n => { savePlanResponseSchema_data_lineItems.planId = n.getStringValue(); },
|
|
14237
14279
|
"prices": n => { savePlanResponseSchema_data_lineItems.prices = n.getCollectionOfObjectValues(createSavePlanResponseSchema_data_lineItems_pricesFromDiscriminatorValue); },
|
|
14238
|
-
"priceType": n => { savePlanResponseSchema_data_lineItems.priceType = n.
|
|
14280
|
+
"priceType": n => { savePlanResponseSchema_data_lineItems.priceType = n.getStringValue(); },
|
|
14239
14281
|
"slug": n => { savePlanResponseSchema_data_lineItems.slug = n.getStringValue(); },
|
|
14240
14282
|
"stripeProductId": n => { savePlanResponseSchema_data_lineItems.stripeProductId = n.getStringValue(); },
|
|
14241
14283
|
"tiersMode": n => { savePlanResponseSchema_data_lineItems.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -14367,7 +14409,7 @@ function deserializeIntoUpdateLineItemResponseSchema_data(updateLineItemResponse
|
|
|
14367
14409
|
"nickname": n => { updateLineItemResponseSchema_data.nickname = n.getStringValue(); },
|
|
14368
14410
|
"organisation": n => { updateLineItemResponseSchema_data.organisation = n.getStringValue(); },
|
|
14369
14411
|
"planId": n => { updateLineItemResponseSchema_data.planId = n.getStringValue(); },
|
|
14370
|
-
"priceType": n => { updateLineItemResponseSchema_data.priceType = n.
|
|
14412
|
+
"priceType": n => { updateLineItemResponseSchema_data.priceType = n.getStringValue(); },
|
|
14371
14413
|
"slug": n => { updateLineItemResponseSchema_data.slug = n.getStringValue(); },
|
|
14372
14414
|
"stripeProductId": n => { updateLineItemResponseSchema_data.stripeProductId = n.getStringValue(); },
|
|
14373
14415
|
"tiersMode": n => { updateLineItemResponseSchema_data.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -14596,88 +14638,88 @@ function serializeCreateGroupRequestSchema_grantees(writer, createGroupRequestSc
|
|
|
14596
14638
|
}
|
|
14597
14639
|
/**
|
|
14598
14640
|
* Serializes information the current object
|
|
14599
|
-
* @param
|
|
14641
|
+
* @param CreateOwnerPortalRequestSchema The instance to serialize from.
|
|
14600
14642
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14601
14643
|
* @param writer Serialization writer to use to serialize this model
|
|
14602
14644
|
*/
|
|
14603
14645
|
// @ts-ignore
|
|
14604
|
-
function
|
|
14605
|
-
if (!
|
|
14646
|
+
function serializeCreateOwnerPortalRequestSchema(writer, createOwnerPortalRequestSchema = {}, isSerializingDerivedType = false) {
|
|
14647
|
+
if (!createOwnerPortalRequestSchema || isSerializingDerivedType) {
|
|
14606
14648
|
return;
|
|
14607
14649
|
}
|
|
14608
|
-
writer.writeObjectValue("features",
|
|
14609
|
-
writer.writeStringValue("returnUrl",
|
|
14650
|
+
writer.writeObjectValue("features", createOwnerPortalRequestSchema.features, serializeCreateOwnerPortalRequestSchema_features);
|
|
14651
|
+
writer.writeStringValue("returnUrl", createOwnerPortalRequestSchema.returnUrl);
|
|
14610
14652
|
}
|
|
14611
14653
|
/**
|
|
14612
14654
|
* Serializes information the current object
|
|
14613
|
-
* @param
|
|
14655
|
+
* @param CreateOwnerPortalRequestSchema_features The instance to serialize from.
|
|
14614
14656
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14615
14657
|
* @param writer Serialization writer to use to serialize this model
|
|
14616
14658
|
*/
|
|
14617
14659
|
// @ts-ignore
|
|
14618
|
-
function
|
|
14619
|
-
if (!
|
|
14660
|
+
function serializeCreateOwnerPortalRequestSchema_features(writer, createOwnerPortalRequestSchema_features = {}, isSerializingDerivedType = false) {
|
|
14661
|
+
if (!createOwnerPortalRequestSchema_features || isSerializingDerivedType) {
|
|
14620
14662
|
return;
|
|
14621
14663
|
}
|
|
14622
|
-
writer.writeObjectValue("customerUpdate",
|
|
14623
|
-
writer.writeObjectValue("invoiceHistory",
|
|
14624
|
-
writer.writeObjectValue("paymentMethodUpdate",
|
|
14625
|
-
writer.writeObjectValue("subscriptionCancel",
|
|
14664
|
+
writer.writeObjectValue("customerUpdate", createOwnerPortalRequestSchema_features.customerUpdate, serializeCreateOwnerPortalRequestSchema_features_customerUpdate);
|
|
14665
|
+
writer.writeObjectValue("invoiceHistory", createOwnerPortalRequestSchema_features.invoiceHistory, serializeCreateOwnerPortalRequestSchema_features_invoiceHistory);
|
|
14666
|
+
writer.writeObjectValue("paymentMethodUpdate", createOwnerPortalRequestSchema_features.paymentMethodUpdate, serializeCreateOwnerPortalRequestSchema_features_paymentMethodUpdate);
|
|
14667
|
+
writer.writeObjectValue("subscriptionCancel", createOwnerPortalRequestSchema_features.subscriptionCancel, serializeCreateOwnerPortalRequestSchema_features_subscriptionCancel);
|
|
14626
14668
|
}
|
|
14627
14669
|
/**
|
|
14628
14670
|
* Serializes information the current object
|
|
14629
|
-
* @param
|
|
14671
|
+
* @param CreateOwnerPortalRequestSchema_features_customerUpdate The instance to serialize from.
|
|
14630
14672
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14631
14673
|
* @param writer Serialization writer to use to serialize this model
|
|
14632
14674
|
*/
|
|
14633
14675
|
// @ts-ignore
|
|
14634
|
-
function
|
|
14635
|
-
if (!
|
|
14676
|
+
function serializeCreateOwnerPortalRequestSchema_features_customerUpdate(writer, createOwnerPortalRequestSchema_features_customerUpdate = {}, isSerializingDerivedType = false) {
|
|
14677
|
+
if (!createOwnerPortalRequestSchema_features_customerUpdate || isSerializingDerivedType) {
|
|
14636
14678
|
return;
|
|
14637
14679
|
}
|
|
14638
|
-
if (
|
|
14639
|
-
writer.writeCollectionOfEnumValues("allowedUpdates",
|
|
14640
|
-
writer.writeBooleanValue("enabled",
|
|
14680
|
+
if (createOwnerPortalRequestSchema_features_customerUpdate.allowedUpdates)
|
|
14681
|
+
writer.writeCollectionOfEnumValues("allowedUpdates", createOwnerPortalRequestSchema_features_customerUpdate.allowedUpdates);
|
|
14682
|
+
writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_customerUpdate.enabled);
|
|
14641
14683
|
}
|
|
14642
14684
|
/**
|
|
14643
14685
|
* Serializes information the current object
|
|
14644
|
-
* @param
|
|
14686
|
+
* @param CreateOwnerPortalRequestSchema_features_invoiceHistory The instance to serialize from.
|
|
14645
14687
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14646
14688
|
* @param writer Serialization writer to use to serialize this model
|
|
14647
14689
|
*/
|
|
14648
14690
|
// @ts-ignore
|
|
14649
|
-
function
|
|
14650
|
-
if (!
|
|
14691
|
+
function serializeCreateOwnerPortalRequestSchema_features_invoiceHistory(writer, createOwnerPortalRequestSchema_features_invoiceHistory = {}, isSerializingDerivedType = false) {
|
|
14692
|
+
if (!createOwnerPortalRequestSchema_features_invoiceHistory || isSerializingDerivedType) {
|
|
14651
14693
|
return;
|
|
14652
14694
|
}
|
|
14653
|
-
writer.writeBooleanValue("enabled",
|
|
14695
|
+
writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_invoiceHistory.enabled);
|
|
14654
14696
|
}
|
|
14655
14697
|
/**
|
|
14656
14698
|
* Serializes information the current object
|
|
14657
|
-
* @param
|
|
14699
|
+
* @param CreateOwnerPortalRequestSchema_features_paymentMethodUpdate The instance to serialize from.
|
|
14658
14700
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14659
14701
|
* @param writer Serialization writer to use to serialize this model
|
|
14660
14702
|
*/
|
|
14661
14703
|
// @ts-ignore
|
|
14662
|
-
function
|
|
14663
|
-
if (!
|
|
14704
|
+
function serializeCreateOwnerPortalRequestSchema_features_paymentMethodUpdate(writer, createOwnerPortalRequestSchema_features_paymentMethodUpdate = {}, isSerializingDerivedType = false) {
|
|
14705
|
+
if (!createOwnerPortalRequestSchema_features_paymentMethodUpdate || isSerializingDerivedType) {
|
|
14664
14706
|
return;
|
|
14665
14707
|
}
|
|
14666
|
-
writer.writeBooleanValue("enabled",
|
|
14708
|
+
writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_paymentMethodUpdate.enabled);
|
|
14667
14709
|
}
|
|
14668
14710
|
/**
|
|
14669
14711
|
* Serializes information the current object
|
|
14670
|
-
* @param
|
|
14712
|
+
* @param CreateOwnerPortalRequestSchema_features_subscriptionCancel The instance to serialize from.
|
|
14671
14713
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14672
14714
|
* @param writer Serialization writer to use to serialize this model
|
|
14673
14715
|
*/
|
|
14674
14716
|
// @ts-ignore
|
|
14675
|
-
function
|
|
14676
|
-
if (!
|
|
14717
|
+
function serializeCreateOwnerPortalRequestSchema_features_subscriptionCancel(writer, createOwnerPortalRequestSchema_features_subscriptionCancel = {}, isSerializingDerivedType = false) {
|
|
14718
|
+
if (!createOwnerPortalRequestSchema_features_subscriptionCancel || isSerializingDerivedType) {
|
|
14677
14719
|
return;
|
|
14678
14720
|
}
|
|
14679
|
-
writer.writeBooleanValue("enabled",
|
|
14680
|
-
writer.writeEnumValue("when",
|
|
14721
|
+
writer.writeBooleanValue("enabled", createOwnerPortalRequestSchema_features_subscriptionCancel.enabled);
|
|
14722
|
+
writer.writeEnumValue("when", createOwnerPortalRequestSchema_features_subscriptionCancel.when);
|
|
14681
14723
|
}
|
|
14682
14724
|
/**
|
|
14683
14725
|
* Serializes information the current object
|
|
@@ -14693,6 +14735,91 @@ function serializeCreateProductRequestSchema(writer, createProductRequestSchema
|
|
|
14693
14735
|
writer.writeBooleanValue("isActive", createProductRequestSchema.isActive);
|
|
14694
14736
|
writer.writeStringValue("name", createProductRequestSchema.name);
|
|
14695
14737
|
}
|
|
14738
|
+
/**
|
|
14739
|
+
* Serializes information the current object
|
|
14740
|
+
* @param CreateSubscriptionPortalRequestSchema The instance to serialize from.
|
|
14741
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14742
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14743
|
+
*/
|
|
14744
|
+
// @ts-ignore
|
|
14745
|
+
function serializeCreateSubscriptionPortalRequestSchema(writer, createSubscriptionPortalRequestSchema = {}, isSerializingDerivedType = false) {
|
|
14746
|
+
if (!createSubscriptionPortalRequestSchema || isSerializingDerivedType) {
|
|
14747
|
+
return;
|
|
14748
|
+
}
|
|
14749
|
+
writer.writeObjectValue("features", createSubscriptionPortalRequestSchema.features, serializeCreateSubscriptionPortalRequestSchema_features);
|
|
14750
|
+
writer.writeStringValue("returnUrl", createSubscriptionPortalRequestSchema.returnUrl);
|
|
14751
|
+
}
|
|
14752
|
+
/**
|
|
14753
|
+
* Serializes information the current object
|
|
14754
|
+
* @param CreateSubscriptionPortalRequestSchema_features The instance to serialize from.
|
|
14755
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14756
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14757
|
+
*/
|
|
14758
|
+
// @ts-ignore
|
|
14759
|
+
function serializeCreateSubscriptionPortalRequestSchema_features(writer, createSubscriptionPortalRequestSchema_features = {}, isSerializingDerivedType = false) {
|
|
14760
|
+
if (!createSubscriptionPortalRequestSchema_features || isSerializingDerivedType) {
|
|
14761
|
+
return;
|
|
14762
|
+
}
|
|
14763
|
+
writer.writeObjectValue("customerUpdate", createSubscriptionPortalRequestSchema_features.customerUpdate, serializeCreateSubscriptionPortalRequestSchema_features_customerUpdate);
|
|
14764
|
+
writer.writeObjectValue("invoiceHistory", createSubscriptionPortalRequestSchema_features.invoiceHistory, serializeCreateSubscriptionPortalRequestSchema_features_invoiceHistory);
|
|
14765
|
+
writer.writeObjectValue("paymentMethodUpdate", createSubscriptionPortalRequestSchema_features.paymentMethodUpdate, serializeCreateSubscriptionPortalRequestSchema_features_paymentMethodUpdate);
|
|
14766
|
+
writer.writeObjectValue("subscriptionCancel", createSubscriptionPortalRequestSchema_features.subscriptionCancel, serializeCreateSubscriptionPortalRequestSchema_features_subscriptionCancel);
|
|
14767
|
+
}
|
|
14768
|
+
/**
|
|
14769
|
+
* Serializes information the current object
|
|
14770
|
+
* @param CreateSubscriptionPortalRequestSchema_features_customerUpdate The instance to serialize from.
|
|
14771
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14772
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14773
|
+
*/
|
|
14774
|
+
// @ts-ignore
|
|
14775
|
+
function serializeCreateSubscriptionPortalRequestSchema_features_customerUpdate(writer, createSubscriptionPortalRequestSchema_features_customerUpdate = {}, isSerializingDerivedType = false) {
|
|
14776
|
+
if (!createSubscriptionPortalRequestSchema_features_customerUpdate || isSerializingDerivedType) {
|
|
14777
|
+
return;
|
|
14778
|
+
}
|
|
14779
|
+
if (createSubscriptionPortalRequestSchema_features_customerUpdate.allowedUpdates)
|
|
14780
|
+
writer.writeCollectionOfEnumValues("allowedUpdates", createSubscriptionPortalRequestSchema_features_customerUpdate.allowedUpdates);
|
|
14781
|
+
writer.writeBooleanValue("enabled", createSubscriptionPortalRequestSchema_features_customerUpdate.enabled);
|
|
14782
|
+
}
|
|
14783
|
+
/**
|
|
14784
|
+
* Serializes information the current object
|
|
14785
|
+
* @param CreateSubscriptionPortalRequestSchema_features_invoiceHistory The instance to serialize from.
|
|
14786
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14787
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14788
|
+
*/
|
|
14789
|
+
// @ts-ignore
|
|
14790
|
+
function serializeCreateSubscriptionPortalRequestSchema_features_invoiceHistory(writer, createSubscriptionPortalRequestSchema_features_invoiceHistory = {}, isSerializingDerivedType = false) {
|
|
14791
|
+
if (!createSubscriptionPortalRequestSchema_features_invoiceHistory || isSerializingDerivedType) {
|
|
14792
|
+
return;
|
|
14793
|
+
}
|
|
14794
|
+
writer.writeBooleanValue("enabled", createSubscriptionPortalRequestSchema_features_invoiceHistory.enabled);
|
|
14795
|
+
}
|
|
14796
|
+
/**
|
|
14797
|
+
* Serializes information the current object
|
|
14798
|
+
* @param CreateSubscriptionPortalRequestSchema_features_paymentMethodUpdate The instance to serialize from.
|
|
14799
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14800
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14801
|
+
*/
|
|
14802
|
+
// @ts-ignore
|
|
14803
|
+
function serializeCreateSubscriptionPortalRequestSchema_features_paymentMethodUpdate(writer, createSubscriptionPortalRequestSchema_features_paymentMethodUpdate = {}, isSerializingDerivedType = false) {
|
|
14804
|
+
if (!createSubscriptionPortalRequestSchema_features_paymentMethodUpdate || isSerializingDerivedType) {
|
|
14805
|
+
return;
|
|
14806
|
+
}
|
|
14807
|
+
writer.writeBooleanValue("enabled", createSubscriptionPortalRequestSchema_features_paymentMethodUpdate.enabled);
|
|
14808
|
+
}
|
|
14809
|
+
/**
|
|
14810
|
+
* Serializes information the current object
|
|
14811
|
+
* @param CreateSubscriptionPortalRequestSchema_features_subscriptionCancel The instance to serialize from.
|
|
14812
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14813
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14814
|
+
*/
|
|
14815
|
+
// @ts-ignore
|
|
14816
|
+
function serializeCreateSubscriptionPortalRequestSchema_features_subscriptionCancel(writer, createSubscriptionPortalRequestSchema_features_subscriptionCancel = {}, isSerializingDerivedType = false) {
|
|
14817
|
+
if (!createSubscriptionPortalRequestSchema_features_subscriptionCancel || isSerializingDerivedType) {
|
|
14818
|
+
return;
|
|
14819
|
+
}
|
|
14820
|
+
writer.writeBooleanValue("enabled", createSubscriptionPortalRequestSchema_features_subscriptionCancel.enabled);
|
|
14821
|
+
writer.writeEnumValue("when", createSubscriptionPortalRequestSchema_features_subscriptionCancel.when);
|
|
14822
|
+
}
|
|
14696
14823
|
/**
|
|
14697
14824
|
* Serializes information the current object
|
|
14698
14825
|
* @param CreateTierTagRequestSchema The instance to serialize from.
|
|
@@ -14738,10 +14865,25 @@ function serializeGenerateCheckoutLinkRequestSchema(writer, generateCheckoutLink
|
|
|
14738
14865
|
writer.writeEnumValue("cardPrefillPreference", generateCheckoutLinkRequestSchema.cardPrefillPreference);
|
|
14739
14866
|
writer.writeBooleanValue("collectBillingAddress", generateCheckoutLinkRequestSchema.collectBillingAddress);
|
|
14740
14867
|
writer.writeBooleanValue("collectShippingAddress", generateCheckoutLinkRequestSchema.collectShippingAddress);
|
|
14868
|
+
writer.writeCollectionOfObjectValues("discounts", generateCheckoutLinkRequestSchema.discounts, serializeGenerateCheckoutLinkRequestSchema_discounts);
|
|
14741
14869
|
writer.writeStringValue("email", generateCheckoutLinkRequestSchema.email);
|
|
14742
14870
|
writer.writeStringValue("successUrl", generateCheckoutLinkRequestSchema.successUrl);
|
|
14743
14871
|
writer.writeNumberValue("trialPeriodDays", generateCheckoutLinkRequestSchema.trialPeriodDays);
|
|
14744
14872
|
}
|
|
14873
|
+
/**
|
|
14874
|
+
* Serializes information the current object
|
|
14875
|
+
* @param GenerateCheckoutLinkRequestSchema_discounts The instance to serialize from.
|
|
14876
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14877
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14878
|
+
*/
|
|
14879
|
+
// @ts-ignore
|
|
14880
|
+
function serializeGenerateCheckoutLinkRequestSchema_discounts(writer, generateCheckoutLinkRequestSchema_discounts = {}, isSerializingDerivedType = false) {
|
|
14881
|
+
if (!generateCheckoutLinkRequestSchema_discounts || isSerializingDerivedType) {
|
|
14882
|
+
return;
|
|
14883
|
+
}
|
|
14884
|
+
writer.writeStringValue("coupon", generateCheckoutLinkRequestSchema_discounts.coupon);
|
|
14885
|
+
writer.writeStringValue("promotionCode", generateCheckoutLinkRequestSchema_discounts.promotionCode);
|
|
14886
|
+
}
|
|
14745
14887
|
/**
|
|
14746
14888
|
* Serializes information the current object
|
|
14747
14889
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -15146,20 +15288,6 @@ function serializeUpdateProductRequestSchema_settings(writer, updateProductReque
|
|
|
15146
15288
|
writer.writeBooleanValue("pastDueEntitlements", updateProductRequestSchema_settings.pastDueEntitlements);
|
|
15147
15289
|
writer.writeStringValue("successUrl", updateProductRequestSchema_settings.successUrl);
|
|
15148
15290
|
}
|
|
15149
|
-
/**
|
|
15150
|
-
* Serializes information the current object
|
|
15151
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
15152
|
-
* @param UpdateSalableOnlySubscriptionRequestSchema The instance to serialize from.
|
|
15153
|
-
* @param writer Serialization writer to use to serialize this model
|
|
15154
|
-
*/
|
|
15155
|
-
// @ts-ignore
|
|
15156
|
-
function serializeUpdateSalableOnlySubscriptionRequestSchema(writer, updateSalableOnlySubscriptionRequestSchema = {}, isSerializingDerivedType = false) {
|
|
15157
|
-
if (!updateSalableOnlySubscriptionRequestSchema || isSerializingDerivedType) {
|
|
15158
|
-
return;
|
|
15159
|
-
}
|
|
15160
|
-
writer.writeEnumValue("interval", updateSalableOnlySubscriptionRequestSchema.interval);
|
|
15161
|
-
writer.writeNumberValue("intervalCount", updateSalableOnlySubscriptionRequestSchema.intervalCount);
|
|
15162
|
-
}
|
|
15163
15291
|
/**
|
|
15164
15292
|
* Serializes information the current object
|
|
15165
15293
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -15872,6 +16000,7 @@ function serializeCheckoutPostRequestBody(writer, checkoutPostRequestBody = {},
|
|
|
15872
16000
|
writer.writeBooleanValue("collectBillingAddress", checkoutPostRequestBody.collectBillingAddress);
|
|
15873
16001
|
writer.writeBooleanValue("collectShippingAddress", checkoutPostRequestBody.collectShippingAddress);
|
|
15874
16002
|
writer.writeEnumValue("currency", checkoutPostRequestBody.currency);
|
|
16003
|
+
writer.writeCollectionOfObjectValues("discounts", checkoutPostRequestBody.discounts, serializeCheckoutPostRequestBody_discounts);
|
|
15875
16004
|
writer.writeStringValue("email", checkoutPostRequestBody.email);
|
|
15876
16005
|
writer.writeStringValue("grantee", checkoutPostRequestBody.grantee);
|
|
15877
16006
|
writer.writeEnumValue("interval", checkoutPostRequestBody.interval);
|
|
@@ -15882,6 +16011,20 @@ function serializeCheckoutPostRequestBody(writer, checkoutPostRequestBody = {},
|
|
|
15882
16011
|
writer.writeStringValue("successUrl", checkoutPostRequestBody.successUrl);
|
|
15883
16012
|
writer.writeNumberValue("trialPeriodDays", checkoutPostRequestBody.trialPeriodDays);
|
|
15884
16013
|
}
|
|
16014
|
+
/**
|
|
16015
|
+
* Serializes information the current object
|
|
16016
|
+
* @param CheckoutPostRequestBody_discounts The instance to serialize from.
|
|
16017
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
16018
|
+
* @param writer Serialization writer to use to serialize this model
|
|
16019
|
+
*/
|
|
16020
|
+
// @ts-ignore
|
|
16021
|
+
function serializeCheckoutPostRequestBody_discounts(writer, checkoutPostRequestBody_discounts = {}, isSerializingDerivedType = false) {
|
|
16022
|
+
if (!checkoutPostRequestBody_discounts || isSerializingDerivedType) {
|
|
16023
|
+
return;
|
|
16024
|
+
}
|
|
16025
|
+
writer.writeStringValue("coupon", checkoutPostRequestBody_discounts.coupon);
|
|
16026
|
+
writer.writeStringValue("promotionCode", checkoutPostRequestBody_discounts.promotionCode);
|
|
16027
|
+
}
|
|
15885
16028
|
/**
|
|
15886
16029
|
* Serializes information the current object
|
|
15887
16030
|
* @param CheckoutPostRequestBody_metadata The instance to serialize from.
|
|
@@ -16860,6 +17003,40 @@ const MetersRequestBuilderRequestsMetadata = {
|
|
|
16860
17003
|
/* tslint:enable */
|
|
16861
17004
|
/* eslint-enable */
|
|
16862
17005
|
|
|
17006
|
+
/* tslint:disable */
|
|
17007
|
+
/* eslint-disable */
|
|
17008
|
+
// Generated by Microsoft Kiota
|
|
17009
|
+
// @ts-ignore
|
|
17010
|
+
/**
|
|
17011
|
+
* Uri template for the request builder.
|
|
17012
|
+
*/
|
|
17013
|
+
const PortalRequestBuilderUriTemplate$1 = "{+baseurl}/api/owners/{id}/portal";
|
|
17014
|
+
/**
|
|
17015
|
+
* Metadata for all the requests in the request builder.
|
|
17016
|
+
*/
|
|
17017
|
+
const PortalRequestBuilderRequestsMetadata$1 = {
|
|
17018
|
+
post: {
|
|
17019
|
+
uriTemplate: PortalRequestBuilderUriTemplate$1,
|
|
17020
|
+
responseBodyContentType: "application/json",
|
|
17021
|
+
errorMappings: {
|
|
17022
|
+
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
17023
|
+
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
17024
|
+
403: createErrorResponseBodyFromDiscriminatorValue,
|
|
17025
|
+
404: createErrorResponseBodyFromDiscriminatorValue,
|
|
17026
|
+
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
17027
|
+
429: createErrorResponseBodyFromDiscriminatorValue,
|
|
17028
|
+
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
17029
|
+
},
|
|
17030
|
+
adapterMethodName: "send",
|
|
17031
|
+
responseBodyFactory: createCreateOwnerPortalResponseSchemaFromDiscriminatorValue,
|
|
17032
|
+
requestBodyContentType: "application/json",
|
|
17033
|
+
requestBodySerializer: serializeCreateOwnerPortalRequestSchema,
|
|
17034
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
17035
|
+
},
|
|
17036
|
+
};
|
|
17037
|
+
/* tslint:enable */
|
|
17038
|
+
/* eslint-enable */
|
|
17039
|
+
|
|
16863
17040
|
/* tslint:disable */
|
|
16864
17041
|
/* eslint-disable */
|
|
16865
17042
|
// Generated by Microsoft Kiota
|
|
@@ -16868,6 +17045,14 @@ const MetersRequestBuilderRequestsMetadata = {
|
|
|
16868
17045
|
* Uri template for the request builder.
|
|
16869
17046
|
*/
|
|
16870
17047
|
const OwnersItemRequestBuilderUriTemplate = "{+baseurl}/api/owners/{id}{?expand}";
|
|
17048
|
+
/**
|
|
17049
|
+
* Metadata for all the navigation properties in the request builder.
|
|
17050
|
+
*/
|
|
17051
|
+
const OwnersItemRequestBuilderNavigationMetadata = {
|
|
17052
|
+
portal: {
|
|
17053
|
+
requestsMetadata: PortalRequestBuilderRequestsMetadata$1,
|
|
17054
|
+
},
|
|
17055
|
+
};
|
|
16871
17056
|
/**
|
|
16872
17057
|
* Metadata for all the requests in the request builder.
|
|
16873
17058
|
*/
|
|
@@ -16937,6 +17122,7 @@ const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,e
|
|
|
16937
17122
|
const OwnersRequestBuilderNavigationMetadata = {
|
|
16938
17123
|
byId: {
|
|
16939
17124
|
requestsMetadata: OwnersItemRequestBuilderRequestsMetadata,
|
|
17125
|
+
navigationMetadata: OwnersItemRequestBuilderNavigationMetadata,
|
|
16940
17126
|
pathParametersMappings: ["id"],
|
|
16941
17127
|
},
|
|
16942
17128
|
};
|
|
@@ -18438,7 +18624,7 @@ function deserializeIntoSubscriptionPlansGetResponse_data_subscriptionPlanLineIt
|
|
|
18438
18624
|
"nickname": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.nickname = n.getStringValue(); },
|
|
18439
18625
|
"organisation": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.organisation = n.getStringValue(); },
|
|
18440
18626
|
"planId": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.planId = n.getStringValue(); },
|
|
18441
|
-
"priceType": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.priceType = n.
|
|
18627
|
+
"priceType": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.priceType = n.getStringValue(); },
|
|
18442
18628
|
"slug": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.slug = n.getStringValue(); },
|
|
18443
18629
|
"stripeProductId": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.stripeProductId = n.getStringValue(); },
|
|
18444
18630
|
"tiersMode": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -18752,7 +18938,7 @@ function deserializeIntoSubscriptionPlansGetResponse_data_subscriptionPlanLineIt
|
|
|
18752
18938
|
"nickname": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.nickname = n.getStringValue(); },
|
|
18753
18939
|
"organisation": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.organisation = n.getStringValue(); },
|
|
18754
18940
|
"planId": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.planId = n.getStringValue(); },
|
|
18755
|
-
"priceType": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.priceType = n.
|
|
18941
|
+
"priceType": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.priceType = n.getStringValue(); },
|
|
18756
18942
|
"slug": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.slug = n.getStringValue(); },
|
|
18757
18943
|
"stripeProductId": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.stripeProductId = n.getStringValue(); },
|
|
18758
18944
|
"tiersMode": n => { subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem.tiersMode = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
@@ -18978,9 +19164,9 @@ const PortalRequestBuilderRequestsMetadata = {
|
|
|
18978
19164
|
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
18979
19165
|
},
|
|
18980
19166
|
adapterMethodName: "send",
|
|
18981
|
-
responseBodyFactory:
|
|
19167
|
+
responseBodyFactory: createCreateSubscriptionPortalResponseSchemaFromDiscriminatorValue,
|
|
18982
19168
|
requestBodyContentType: "application/json",
|
|
18983
|
-
requestBodySerializer:
|
|
19169
|
+
requestBodySerializer: serializeCreateSubscriptionPortalRequestSchema,
|
|
18984
19170
|
requestInformationContentSetMethod: "setContentFromParsable",
|
|
18985
19171
|
},
|
|
18986
19172
|
};
|
|
@@ -19048,23 +19234,6 @@ const SubscriptionsItemRequestBuilderRequestsMetadata = {
|
|
|
19048
19234
|
adapterMethodName: "send",
|
|
19049
19235
|
responseBodyFactory: createGetSubscriptionDetailSchemaFromDiscriminatorValue,
|
|
19050
19236
|
},
|
|
19051
|
-
put: {
|
|
19052
|
-
uriTemplate: SubscriptionsItemRequestBuilderUriTemplate,
|
|
19053
|
-
responseBodyContentType: "application/json",
|
|
19054
|
-
errorMappings: {
|
|
19055
|
-
400: createErrorResponseBodyFromDiscriminatorValue,
|
|
19056
|
-
401: createErrorResponseBodyFromDiscriminatorValue,
|
|
19057
|
-
403: createErrorResponseBodyFromDiscriminatorValue,
|
|
19058
|
-
404: createErrorResponseBodyFromDiscriminatorValue,
|
|
19059
|
-
405: createErrorResponseBodyFromDiscriminatorValue,
|
|
19060
|
-
429: createErrorResponseBodyFromDiscriminatorValue,
|
|
19061
|
-
500: createErrorResponseBodyFromDiscriminatorValue,
|
|
19062
|
-
},
|
|
19063
|
-
adapterMethodName: "sendNoResponseContent",
|
|
19064
|
-
requestBodyContentType: "application/json",
|
|
19065
|
-
requestBodySerializer: serializeUpdateSalableOnlySubscriptionRequestSchema,
|
|
19066
|
-
requestInformationContentSetMethod: "setContentFromParsable",
|
|
19067
|
-
},
|
|
19068
19237
|
};
|
|
19069
19238
|
/* tslint:enable */
|
|
19070
19239
|
/* eslint-enable */
|