@salable/sdk 1.0.1 → 1.0.3
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 +20 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +20 -16
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/plans/index.d.ts +5 -4
- package/dist/sdk/api/subscriptionPlanLineItems/item/index.d.ts +4 -29
- package/dist/sdk/models/index.d.ts +51 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -12354,8 +12354,12 @@ function deserializeIntoGetPlanListSchema_data_lineItems_data_prices_data_curren
|
|
|
12354
12354
|
function deserializeIntoGetPlanListSchema_data_product(getPlanListSchema_data_product = {}) {
|
|
12355
12355
|
return {
|
|
12356
12356
|
"archivedAt": n => { getPlanListSchema_data_product.archivedAt = n.getStringValue(); },
|
|
12357
|
+
"createdAt": n => { getPlanListSchema_data_product.createdAt = n.getStringValue(); },
|
|
12357
12358
|
"id": n => { getPlanListSchema_data_product.id = n.getStringValue(); },
|
|
12359
|
+
"isActive": n => { getPlanListSchema_data_product.isActive = n.getBooleanValue(); },
|
|
12358
12360
|
"name": n => { getPlanListSchema_data_product.name = n.getStringValue(); },
|
|
12361
|
+
"organisation": n => { getPlanListSchema_data_product.organisation = n.getStringValue(); },
|
|
12362
|
+
"updatedAt": n => { getPlanListSchema_data_product.updatedAt = n.getStringValue(); },
|
|
12359
12363
|
};
|
|
12360
12364
|
}
|
|
12361
12365
|
/**
|
|
@@ -15246,6 +15250,20 @@ function serializeUpdateSubscriptionItemsRequestSchema_itemsMember3_metadata(wri
|
|
|
15246
15250
|
}
|
|
15247
15251
|
writer.writeAdditionalData(updateSubscriptionItemsRequestSchema_itemsMember3_metadata.additionalData);
|
|
15248
15252
|
}
|
|
15253
|
+
/**
|
|
15254
|
+
* Serializes information the current object
|
|
15255
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
15256
|
+
* @param UpdateSubscriptionPlanLineItemSchema The instance to serialize from.
|
|
15257
|
+
* @param writer Serialization writer to use to serialize this model
|
|
15258
|
+
*/
|
|
15259
|
+
// @ts-ignore
|
|
15260
|
+
function serializeUpdateSubscriptionPlanLineItemSchema(writer, updateSubscriptionPlanLineItemSchema = {}, isSerializingDerivedType = false) {
|
|
15261
|
+
if (!updateSubscriptionPlanLineItemSchema || isSerializingDerivedType) {
|
|
15262
|
+
return;
|
|
15263
|
+
}
|
|
15264
|
+
writer.writeEnumValue("proration", updateSubscriptionPlanLineItemSchema.proration);
|
|
15265
|
+
writer.writeNumberValue("quantity", updateSubscriptionPlanLineItemSchema.quantity);
|
|
15266
|
+
}
|
|
15249
15267
|
/**
|
|
15250
15268
|
* Serializes information the current object
|
|
15251
15269
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -17156,7 +17174,7 @@ const SaveRequestBuilderRequestsMetadata = {
|
|
|
17156
17174
|
/**
|
|
17157
17175
|
* Uri template for the request builder.
|
|
17158
17176
|
*/
|
|
17159
|
-
const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,
|
|
17177
|
+
const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,currency*,expand,includeArchived*,includeFilterOptions*,interval*,intervalCount*,isActive*,limit*,productId*,search*}";
|
|
17160
17178
|
/**
|
|
17161
17179
|
* Metadata for all the navigation properties in the request builder.
|
|
17162
17180
|
*/
|
|
@@ -17724,20 +17742,6 @@ const SyncRequestBuilderRequestsMetadata = {
|
|
|
17724
17742
|
/* eslint-disable */
|
|
17725
17743
|
// Generated by Microsoft Kiota
|
|
17726
17744
|
// @ts-ignore
|
|
17727
|
-
/**
|
|
17728
|
-
* Serializes information the current object
|
|
17729
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
17730
|
-
* @param SubscriptionPlanLineItemsPutRequestBody The instance to serialize from.
|
|
17731
|
-
* @param writer Serialization writer to use to serialize this model
|
|
17732
|
-
*/
|
|
17733
|
-
// @ts-ignore
|
|
17734
|
-
function serializeSubscriptionPlanLineItemsPutRequestBody(writer, subscriptionPlanLineItemsPutRequestBody = {}, isSerializingDerivedType = false) {
|
|
17735
|
-
if (!subscriptionPlanLineItemsPutRequestBody || isSerializingDerivedType) {
|
|
17736
|
-
return;
|
|
17737
|
-
}
|
|
17738
|
-
writer.writeNumberValue("quantity", subscriptionPlanLineItemsPutRequestBody.quantity);
|
|
17739
|
-
writer.writeAdditionalData(subscriptionPlanLineItemsPutRequestBody.additionalData);
|
|
17740
|
-
}
|
|
17741
17745
|
/**
|
|
17742
17746
|
* Uri template for the request builder.
|
|
17743
17747
|
*/
|
|
@@ -17781,7 +17785,7 @@ const SubscriptionPlanLineItemsItemRequestBuilderRequestsMetadata = {
|
|
|
17781
17785
|
},
|
|
17782
17786
|
adapterMethodName: "sendNoResponseContent",
|
|
17783
17787
|
requestBodyContentType: "application/json",
|
|
17784
|
-
requestBodySerializer:
|
|
17788
|
+
requestBodySerializer: serializeUpdateSubscriptionPlanLineItemSchema,
|
|
17785
17789
|
requestInformationContentSetMethod: "setContentFromParsable",
|
|
17786
17790
|
},
|
|
17787
17791
|
};
|