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