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