@salable/sdk 1.0.12 → 1.0.14

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 CHANGED
@@ -6834,6 +6834,42 @@ function createGetCartDetailSchema_data_cartItems_data_plan_lineItems_dataFromDi
6834
6834
  function createGetCartDetailSchema_data_cartItems_data_plan_lineItemsFromDiscriminatorValue(parseNode) {
6835
6835
  return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_lineItems;
6836
6836
  }
6837
+ /**
6838
+ * Creates a new instance of the appropriate class based on discriminator value
6839
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6840
+ * @returns {GetCartDetailSchema_data_cartItems_data_plan_product_data_settings_cancelUrlMember1}
6841
+ */
6842
+ // @ts-ignore
6843
+ function createGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_cancelUrlMember1FromDiscriminatorValue(parseNode) {
6844
+ return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_cancelUrlMember1;
6845
+ }
6846
+ /**
6847
+ * Creates a new instance of the appropriate class based on discriminator value
6848
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6849
+ * @returns {GetCartDetailSchema_data_cartItems_data_plan_product_data_settings_productIdMember1}
6850
+ */
6851
+ // @ts-ignore
6852
+ function createGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_productIdMember1FromDiscriminatorValue(parseNode) {
6853
+ return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_productIdMember1;
6854
+ }
6855
+ /**
6856
+ * Creates a new instance of the appropriate class based on discriminator value
6857
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6858
+ * @returns {GetCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1}
6859
+ */
6860
+ // @ts-ignore
6861
+ function createGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1FromDiscriminatorValue(parseNode) {
6862
+ return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1;
6863
+ }
6864
+ /**
6865
+ * Creates a new instance of the appropriate class based on discriminator value
6866
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6867
+ * @returns {GetCartDetailSchema_data_cartItems_data_plan_product_data_settings}
6868
+ */
6869
+ // @ts-ignore
6870
+ function createGetCartDetailSchema_data_cartItems_data_plan_product_data_settingsFromDiscriminatorValue(parseNode) {
6871
+ return deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings;
6872
+ }
6837
6873
  /**
6838
6874
  * Creates a new instance of the appropriate class based on discriminator value
6839
6875
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -10183,9 +10219,60 @@ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_dat
10183
10219
  "isActive": n => { getCartDetailSchema_data_cartItems_data_plan_product_data.isActive = n.getBooleanValue(); },
10184
10220
  "name": n => { getCartDetailSchema_data_cartItems_data_plan_product_data.name = n.getStringValue(); },
10185
10221
  "organisation": n => { getCartDetailSchema_data_cartItems_data_plan_product_data.organisation = n.getStringValue(); },
10222
+ "settings": n => { getCartDetailSchema_data_cartItems_data_plan_product_data.settings = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_product_data_settingsFromDiscriminatorValue); },
10186
10223
  "updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan_product_data.updatedAt = n.getStringValue(); },
10187
10224
  };
10188
10225
  }
10226
+ /**
10227
+ * The deserialization information for the current model
10228
+ * @param GetCartDetailSchema_data_cartItems_data_plan_product_data_settings The instance to deserialize into.
10229
+ * @returns {Record<string, (node: ParseNode) => void>}
10230
+ */
10231
+ // @ts-ignore
10232
+ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings(getCartDetailSchema_data_cartItems_data_plan_product_data_settings = {}) {
10233
+ return {
10234
+ "allowPromoCodes": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.allowPromoCodes = n.getBooleanValue(); },
10235
+ "automaticTax": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.automaticTax = n.getBooleanValue(); },
10236
+ "cancelUrl": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.cancelUrl = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_cancelUrlMember1FromDiscriminatorValue) ?? n.getStringValue(); },
10237
+ "cardPrefillPreference": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.cardPrefillPreference = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
10238
+ "collectBillingAddress": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.collectBillingAddress = n.getBooleanValue(); },
10239
+ "collectShippingAddress": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.collectShippingAddress = n.getBooleanValue(); },
10240
+ "createdAt": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.createdAt = n.getStringValue(); },
10241
+ "id": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.id = n.getStringValue(); },
10242
+ "organisation": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.organisation = n.getStringValue(); },
10243
+ "pastDueEntitlements": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.pastDueEntitlements = n.getBooleanValue(); },
10244
+ "productId": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.productId = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_productIdMember1FromDiscriminatorValue) ?? n.getStringValue(); },
10245
+ "successUrl": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.successUrl = n.getObjectValue(createGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1FromDiscriminatorValue) ?? n.getStringValue(); },
10246
+ "updatedAt": n => { getCartDetailSchema_data_cartItems_data_plan_product_data_settings.updatedAt = n.getStringValue(); },
10247
+ };
10248
+ }
10249
+ /**
10250
+ * The deserialization information for the current model
10251
+ * @param GetCartDetailSchema_data_cartItems_data_plan_product_data_settings_cancelUrlMember1 The instance to deserialize into.
10252
+ * @returns {Record<string, (node: ParseNode) => void>}
10253
+ */
10254
+ // @ts-ignore
10255
+ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_cancelUrlMember1(getCartDetailSchema_data_cartItems_data_plan_product_data_settings_cancelUrlMember1 = {}) {
10256
+ return {};
10257
+ }
10258
+ /**
10259
+ * The deserialization information for the current model
10260
+ * @param GetCartDetailSchema_data_cartItems_data_plan_product_data_settings_productIdMember1 The instance to deserialize into.
10261
+ * @returns {Record<string, (node: ParseNode) => void>}
10262
+ */
10263
+ // @ts-ignore
10264
+ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_productIdMember1(getCartDetailSchema_data_cartItems_data_plan_product_data_settings_productIdMember1 = {}) {
10265
+ return {};
10266
+ }
10267
+ /**
10268
+ * The deserialization information for the current model
10269
+ * @param GetCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1 The instance to deserialize into.
10270
+ * @returns {Record<string, (node: ParseNode) => void>}
10271
+ */
10272
+ // @ts-ignore
10273
+ function deserializeIntoGetCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1(getCartDetailSchema_data_cartItems_data_plan_product_data_settings_successUrlMember1 = {}) {
10274
+ return {};
10275
+ }
10189
10276
  /**
10190
10277
  * The deserialization information for the current model
10191
10278
  * @param GetCartDetailSchema_data_owner The instance to deserialize into.
@@ -14452,20 +14539,7 @@ function serializeCreateEntitlementRequestSchema(writer, createEntitlementReques
14452
14539
  if (!createEntitlementRequestSchema || isSerializingDerivedType) {
14453
14540
  return;
14454
14541
  }
14455
- writer.writeObjectValue("name", createEntitlementRequestSchema.name, serializeCreateEntitlementRequestSchema_name);
14456
- }
14457
- /**
14458
- * Serializes information the current object
14459
- * @param CreateEntitlementRequestSchema_name The instance to serialize from.
14460
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14461
- * @param writer Serialization writer to use to serialize this model
14462
- */
14463
- // @ts-ignore
14464
- function serializeCreateEntitlementRequestSchema_name(writer, createEntitlementRequestSchema_name = {}, isSerializingDerivedType = false) {
14465
- if (!createEntitlementRequestSchema_name || isSerializingDerivedType) {
14466
- return;
14467
- }
14468
- writer.writeAdditionalData(createEntitlementRequestSchema_name.additionalData);
14542
+ writer.writeStringValue("name", createEntitlementRequestSchema.name);
14469
14543
  }
14470
14544
  /**
14471
14545
  * Serializes information the current object
@@ -14766,12 +14840,12 @@ function serializeSavePlanRequestSchema_lineItems(writer, savePlanRequestSchema_
14766
14840
  if (!savePlanRequestSchema_lineItems || isSerializingDerivedType) {
14767
14841
  return;
14768
14842
  }
14769
- writer.writeBooleanValue("allowChangingQuantity", savePlanRequestSchema_lineItems.allowChangingQuantity);
14843
+ writer.writeBooleanValue("allowChangingQuantity", savePlanRequestSchema_lineItems.allowChangingQuantity ?? false);
14770
14844
  writer.writeDateValue("archivedAt", savePlanRequestSchema_lineItems.archivedAt);
14771
14845
  writer.writeEnumValue("billingScheme", savePlanRequestSchema_lineItems.billingScheme);
14772
14846
  writer.writeStringValue("id", savePlanRequestSchema_lineItems.id);
14773
14847
  writer.writeEnumValue("intervalType", savePlanRequestSchema_lineItems.intervalType);
14774
- writer.writeBooleanValue("isActive", savePlanRequestSchema_lineItems.isActive);
14848
+ writer.writeBooleanValue("isActive", savePlanRequestSchema_lineItems.isActive ?? true);
14775
14849
  writer.writeNumberValue("maxQuantity", savePlanRequestSchema_lineItems.maxQuantity);
14776
14850
  writer.writeStringValue("meterSlug", savePlanRequestSchema_lineItems.meterSlug);
14777
14851
  writer.writeNumberValue("minQuantity", savePlanRequestSchema_lineItems.minQuantity);
@@ -14945,10 +15019,10 @@ function serializeUpdateLineItemRequestSchemaMember1(writer, updateLineItemReque
14945
15019
  if (!updateLineItemRequestSchemaMember1 || isSerializingDerivedType) {
14946
15020
  return;
14947
15021
  }
14948
- writer.writeBooleanValue("allowChangingQuantity", updateLineItemRequestSchemaMember1.allowChangingQuantity);
15022
+ writer.writeBooleanValue("allowChangingQuantity", updateLineItemRequestSchemaMember1.allowChangingQuantity ?? false);
14949
15023
  writer.writeEnumValue("billingScheme", updateLineItemRequestSchemaMember1.billingScheme);
14950
15024
  writer.writeEnumValue("intervalType", updateLineItemRequestSchemaMember1.intervalType);
14951
- writer.writeBooleanValue("isActive", updateLineItemRequestSchemaMember1.isActive);
15025
+ writer.writeBooleanValue("isActive", updateLineItemRequestSchemaMember1.isActive ?? true);
14952
15026
  writer.writeNumberValue("maxQuantity", updateLineItemRequestSchemaMember1.maxQuantity);
14953
15027
  writer.writeObjectValue("meterSlug", updateLineItemRequestSchemaMember1.meterSlug);
14954
15028
  writer.writeNumberValue("minQuantity", updateLineItemRequestSchemaMember1.minQuantity);
@@ -14970,10 +15044,10 @@ function serializeUpdateLineItemRequestSchemaMember2(writer, updateLineItemReque
14970
15044
  if (!updateLineItemRequestSchemaMember2 || isSerializingDerivedType) {
14971
15045
  return;
14972
15046
  }
14973
- writer.writeBooleanValue("allowChangingQuantity", updateLineItemRequestSchemaMember2.allowChangingQuantity);
15047
+ writer.writeBooleanValue("allowChangingQuantity", updateLineItemRequestSchemaMember2.allowChangingQuantity ?? false);
14974
15048
  writer.writeEnumValue("billingScheme", updateLineItemRequestSchemaMember2.billingScheme);
14975
15049
  writer.writeEnumValue("intervalType", updateLineItemRequestSchemaMember2.intervalType);
14976
- writer.writeBooleanValue("isActive", updateLineItemRequestSchemaMember2.isActive);
15050
+ writer.writeBooleanValue("isActive", updateLineItemRequestSchemaMember2.isActive ?? true);
14977
15051
  writer.writeNumberValue("maxQuantity", updateLineItemRequestSchemaMember2.maxQuantity);
14978
15052
  writer.writeObjectValue("meterSlug", updateLineItemRequestSchemaMember2.meterSlug);
14979
15053
  writer.writeNumberValue("minQuantity", updateLineItemRequestSchemaMember2.minQuantity);
@@ -14995,10 +15069,10 @@ function serializeUpdateLineItemRequestSchemaMember3(writer, updateLineItemReque
14995
15069
  if (!updateLineItemRequestSchemaMember3 || isSerializingDerivedType) {
14996
15070
  return;
14997
15071
  }
14998
- writer.writeBooleanValue("allowChangingQuantity", updateLineItemRequestSchemaMember3.allowChangingQuantity);
15072
+ writer.writeBooleanValue("allowChangingQuantity", updateLineItemRequestSchemaMember3.allowChangingQuantity ?? false);
14999
15073
  writer.writeEnumValue("billingScheme", updateLineItemRequestSchemaMember3.billingScheme);
15000
15074
  writer.writeEnumValue("intervalType", updateLineItemRequestSchemaMember3.intervalType);
15001
- writer.writeBooleanValue("isActive", updateLineItemRequestSchemaMember3.isActive);
15075
+ writer.writeBooleanValue("isActive", updateLineItemRequestSchemaMember3.isActive ?? true);
15002
15076
  writer.writeNumberValue("maxQuantity", updateLineItemRequestSchemaMember3.maxQuantity);
15003
15077
  writer.writeStringValue("meterSlug", updateLineItemRequestSchemaMember3.meterSlug);
15004
15078
  writer.writeNumberValue("minQuantity", updateLineItemRequestSchemaMember3.minQuantity);