@salable/sdk 1.0.24 → 1.0.25
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 +30 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/checkout/index.d.ts +33 -0
- package/dist/sdk/models/index.d.ts +33 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14867,10 +14867,25 @@ function serializeGenerateCheckoutLinkRequestSchema(writer, generateCheckoutLink
|
|
|
14867
14867
|
writer.writeEnumValue("cardPrefillPreference", generateCheckoutLinkRequestSchema.cardPrefillPreference);
|
|
14868
14868
|
writer.writeBooleanValue("collectBillingAddress", generateCheckoutLinkRequestSchema.collectBillingAddress);
|
|
14869
14869
|
writer.writeBooleanValue("collectShippingAddress", generateCheckoutLinkRequestSchema.collectShippingAddress);
|
|
14870
|
+
writer.writeCollectionOfObjectValues("discounts", generateCheckoutLinkRequestSchema.discounts, serializeGenerateCheckoutLinkRequestSchema_discounts);
|
|
14870
14871
|
writer.writeStringValue("email", generateCheckoutLinkRequestSchema.email);
|
|
14871
14872
|
writer.writeStringValue("successUrl", generateCheckoutLinkRequestSchema.successUrl);
|
|
14872
14873
|
writer.writeNumberValue("trialPeriodDays", generateCheckoutLinkRequestSchema.trialPeriodDays);
|
|
14873
14874
|
}
|
|
14875
|
+
/**
|
|
14876
|
+
* Serializes information the current object
|
|
14877
|
+
* @param GenerateCheckoutLinkRequestSchema_discounts The instance to serialize from.
|
|
14878
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
14879
|
+
* @param writer Serialization writer to use to serialize this model
|
|
14880
|
+
*/
|
|
14881
|
+
// @ts-ignore
|
|
14882
|
+
function serializeGenerateCheckoutLinkRequestSchema_discounts(writer, generateCheckoutLinkRequestSchema_discounts = {}, isSerializingDerivedType = false) {
|
|
14883
|
+
if (!generateCheckoutLinkRequestSchema_discounts || isSerializingDerivedType) {
|
|
14884
|
+
return;
|
|
14885
|
+
}
|
|
14886
|
+
writer.writeStringValue("coupon", generateCheckoutLinkRequestSchema_discounts.coupon);
|
|
14887
|
+
writer.writeStringValue("promotionCode", generateCheckoutLinkRequestSchema_discounts.promotionCode);
|
|
14888
|
+
}
|
|
14874
14889
|
/**
|
|
14875
14890
|
* Serializes information the current object
|
|
14876
14891
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -15987,6 +16002,7 @@ function serializeCheckoutPostRequestBody(writer, checkoutPostRequestBody = {},
|
|
|
15987
16002
|
writer.writeBooleanValue("collectBillingAddress", checkoutPostRequestBody.collectBillingAddress);
|
|
15988
16003
|
writer.writeBooleanValue("collectShippingAddress", checkoutPostRequestBody.collectShippingAddress);
|
|
15989
16004
|
writer.writeEnumValue("currency", checkoutPostRequestBody.currency);
|
|
16005
|
+
writer.writeCollectionOfObjectValues("discounts", checkoutPostRequestBody.discounts, serializeCheckoutPostRequestBody_discounts);
|
|
15990
16006
|
writer.writeStringValue("email", checkoutPostRequestBody.email);
|
|
15991
16007
|
writer.writeStringValue("grantee", checkoutPostRequestBody.grantee);
|
|
15992
16008
|
writer.writeEnumValue("interval", checkoutPostRequestBody.interval);
|
|
@@ -15997,6 +16013,20 @@ function serializeCheckoutPostRequestBody(writer, checkoutPostRequestBody = {},
|
|
|
15997
16013
|
writer.writeStringValue("successUrl", checkoutPostRequestBody.successUrl);
|
|
15998
16014
|
writer.writeNumberValue("trialPeriodDays", checkoutPostRequestBody.trialPeriodDays);
|
|
15999
16015
|
}
|
|
16016
|
+
/**
|
|
16017
|
+
* Serializes information the current object
|
|
16018
|
+
* @param CheckoutPostRequestBody_discounts The instance to serialize from.
|
|
16019
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
16020
|
+
* @param writer Serialization writer to use to serialize this model
|
|
16021
|
+
*/
|
|
16022
|
+
// @ts-ignore
|
|
16023
|
+
function serializeCheckoutPostRequestBody_discounts(writer, checkoutPostRequestBody_discounts = {}, isSerializingDerivedType = false) {
|
|
16024
|
+
if (!checkoutPostRequestBody_discounts || isSerializingDerivedType) {
|
|
16025
|
+
return;
|
|
16026
|
+
}
|
|
16027
|
+
writer.writeStringValue("coupon", checkoutPostRequestBody_discounts.coupon);
|
|
16028
|
+
writer.writeStringValue("promotionCode", checkoutPostRequestBody_discounts.promotionCode);
|
|
16029
|
+
}
|
|
16000
16030
|
/**
|
|
16001
16031
|
* Serializes information the current object
|
|
16002
16032
|
* @param CheckoutPostRequestBody_metadata The instance to serialize from.
|