@salable/sdk 1.0.19 → 1.0.21

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
@@ -15146,6 +15146,20 @@ function serializeUpdateProductRequestSchema_settings(writer, updateProductReque
15146
15146
  writer.writeBooleanValue("pastDueEntitlements", updateProductRequestSchema_settings.pastDueEntitlements);
15147
15147
  writer.writeStringValue("successUrl", updateProductRequestSchema_settings.successUrl);
15148
15148
  }
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
+ }
15149
15163
  /**
15150
15164
  * Serializes information the current object
15151
15165
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -18968,6 +18982,23 @@ const SubscriptionsItemRequestBuilderRequestsMetadata = {
18968
18982
  adapterMethodName: "send",
18969
18983
  responseBodyFactory: createGetSubscriptionDetailSchemaFromDiscriminatorValue,
18970
18984
  },
18985
+ put: {
18986
+ uriTemplate: SubscriptionsItemRequestBuilderUriTemplate,
18987
+ responseBodyContentType: "application/json",
18988
+ errorMappings: {
18989
+ 400: createErrorResponseBodyFromDiscriminatorValue,
18990
+ 401: createErrorResponseBodyFromDiscriminatorValue,
18991
+ 403: createErrorResponseBodyFromDiscriminatorValue,
18992
+ 404: createErrorResponseBodyFromDiscriminatorValue,
18993
+ 405: createErrorResponseBodyFromDiscriminatorValue,
18994
+ 429: createErrorResponseBodyFromDiscriminatorValue,
18995
+ 500: createErrorResponseBodyFromDiscriminatorValue,
18996
+ },
18997
+ adapterMethodName: "sendNoResponseContent",
18998
+ requestBodyContentType: "application/json",
18999
+ requestBodySerializer: serializeUpdateSalableOnlySubscriptionRequestSchema,
19000
+ requestInformationContentSetMethod: "setContentFromParsable",
19001
+ },
18971
19002
  };
18972
19003
  /* tslint:enable */
18973
19004
  /* eslint-enable */