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