@salable/sdk 1.0.20 → 1.0.22

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.
@@ -16939,10 +16953,6 @@ const OnboardingRequestBuilderRequestsMetadata = {
16939
16953
  /* eslint-disable */
16940
16954
  // Generated by Microsoft Kiota
16941
16955
  // @ts-ignore
16942
- /**
16943
- * Uri template for the request builder.
16944
- */
16945
- const PaymentIntegrationsItemRequestBuilderUriTemplate = "{+baseurl}/api/payment-integrations/{id}";
16946
16956
  /**
16947
16957
  * Metadata for all the navigation properties in the request builder.
16948
16958
  */
@@ -16951,24 +16961,6 @@ const PaymentIntegrationsItemRequestBuilderNavigationMetadata = {
16951
16961
  requestsMetadata: OnboardingRequestBuilderRequestsMetadata,
16952
16962
  },
16953
16963
  };
16954
- /**
16955
- * Metadata for all the requests in the request builder.
16956
- */
16957
- const PaymentIntegrationsItemRequestBuilderRequestsMetadata = {
16958
- delete: {
16959
- uriTemplate: PaymentIntegrationsItemRequestBuilderUriTemplate,
16960
- responseBodyContentType: "application/json",
16961
- errorMappings: {
16962
- 400: createErrorResponseBodyFromDiscriminatorValue,
16963
- 401: createErrorResponseBodyFromDiscriminatorValue,
16964
- 403: createErrorResponseBodyFromDiscriminatorValue,
16965
- 404: createErrorResponseBodyFromDiscriminatorValue,
16966
- 405: createErrorResponseBodyFromDiscriminatorValue,
16967
- 500: createErrorResponseBodyFromDiscriminatorValue,
16968
- },
16969
- adapterMethodName: "sendNoResponseContent",
16970
- },
16971
- };
16972
16964
  /* tslint:enable */
16973
16965
  /* eslint-enable */
16974
16966
 
@@ -16999,7 +16991,6 @@ const PaymentIntegrationsRequestBuilderUriTemplate = "{+baseurl}/api/payment-int
16999
16991
  */
17000
16992
  const PaymentIntegrationsRequestBuilderNavigationMetadata = {
17001
16993
  byId: {
17002
- requestsMetadata: PaymentIntegrationsItemRequestBuilderRequestsMetadata,
17003
16994
  navigationMetadata: PaymentIntegrationsItemRequestBuilderNavigationMetadata,
17004
16995
  pathParametersMappings: ["id"],
17005
16996
  },
@@ -18970,6 +18961,23 @@ const SubscriptionsItemRequestBuilderRequestsMetadata = {
18970
18961
  adapterMethodName: "send",
18971
18962
  responseBodyFactory: createGetSubscriptionDetailSchemaFromDiscriminatorValue,
18972
18963
  },
18964
+ put: {
18965
+ uriTemplate: SubscriptionsItemRequestBuilderUriTemplate,
18966
+ responseBodyContentType: "application/json",
18967
+ errorMappings: {
18968
+ 400: createErrorResponseBodyFromDiscriminatorValue,
18969
+ 401: createErrorResponseBodyFromDiscriminatorValue,
18970
+ 403: createErrorResponseBodyFromDiscriminatorValue,
18971
+ 404: createErrorResponseBodyFromDiscriminatorValue,
18972
+ 405: createErrorResponseBodyFromDiscriminatorValue,
18973
+ 429: createErrorResponseBodyFromDiscriminatorValue,
18974
+ 500: createErrorResponseBodyFromDiscriminatorValue,
18975
+ },
18976
+ adapterMethodName: "sendNoResponseContent",
18977
+ requestBodyContentType: "application/json",
18978
+ requestBodySerializer: serializeUpdateSalableOnlySubscriptionRequestSchema,
18979
+ requestInformationContentSetMethod: "setContentFromParsable",
18980
+ },
18973
18981
  };
18974
18982
  /* tslint:enable */
18975
18983
  /* eslint-enable */