@polar-sh/sdk 0.44.0 → 0.45.1
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/commonjs/funcs/customersCreate.d.ts +2 -2
- package/dist/commonjs/funcs/customersCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersCreate.js +2 -2
- package/dist/commonjs/funcs/customersCreate.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.d.ts +2 -2
- package/dist/commonjs/funcs/customersGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersGet.js +2 -2
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersGetExternal.d.ts +2 -2
- package/dist/commonjs/funcs/customersGetExternal.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersGetExternal.js +2 -2
- package/dist/commonjs/funcs/customersGetExternal.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.d.ts +2 -2
- package/dist/commonjs/funcs/customersUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.js +2 -2
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdateExternal.d.ts +2 -2
- package/dist/commonjs/funcs/customersUpdateExternal.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersUpdateExternal.js +2 -2
- package/dist/commonjs/funcs/customersUpdateExternal.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/benefit.d.ts +3 -2
- package/dist/commonjs/models/components/benefit.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefit.js +3 -0
- package/dist/commonjs/models/components/benefit.js.map +1 -1
- package/dist/commonjs/models/components/benefitcreate.d.ts +3 -2
- package/dist/commonjs/models/components/benefitcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitcreate.js +2 -0
- package/dist/commonjs/models/components/benefitcreate.js.map +1 -1
- package/dist/commonjs/models/components/benefitfeatureflag.d.ts +73 -0
- package/dist/commonjs/models/components/benefitfeatureflag.d.ts.map +1 -0
- package/dist/commonjs/models/components/{customerwithmembers.js → benefitfeatureflag.js} +36 -35
- package/dist/commonjs/models/components/benefitfeatureflag.js.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagcreate.d.ts +58 -0
- package/dist/commonjs/models/components/benefitfeatureflagcreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagcreate.js +66 -0
- package/dist/commonjs/models/components/benefitfeatureflagcreate.js.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagcreateproperties.d.ts +11 -0
- package/dist/commonjs/models/components/benefitfeatureflagcreateproperties.d.ts.map +1 -0
- package/dist/commonjs/models/components/{productpricetype.js → benefitfeatureflagcreateproperties.js} +8 -10
- package/dist/commonjs/models/components/benefitfeatureflagcreateproperties.js.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagproperties.d.ts +16 -0
- package/dist/commonjs/models/components/benefitfeatureflagproperties.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagproperties.js +54 -0
- package/dist/commonjs/models/components/benefitfeatureflagproperties.js.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagsubscriber.d.ts +49 -0
- package/dist/commonjs/models/components/benefitfeatureflagsubscriber.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagsubscriber.js +70 -0
- package/dist/commonjs/models/components/benefitfeatureflagsubscriber.js.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagsubscriberproperties.d.ts +11 -0
- package/dist/commonjs/models/components/benefitfeatureflagsubscriberproperties.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagsubscriberproperties.js +48 -0
- package/dist/commonjs/models/components/benefitfeatureflagsubscriberproperties.js.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagupdate.d.ts +47 -0
- package/dist/commonjs/models/components/benefitfeatureflagupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitfeatureflagupdate.js +60 -0
- package/dist/commonjs/models/components/benefitfeatureflagupdate.js.map +1 -0
- package/dist/commonjs/models/components/benefitgrant.d.ts +3 -2
- package/dist/commonjs/models/components/benefitgrant.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrant.js +3 -0
- package/dist/commonjs/models/components/benefitgrant.js.map +1 -1
- package/dist/commonjs/models/components/benefitgrantfeatureflagproperties.d.ts +13 -0
- package/dist/commonjs/models/components/benefitgrantfeatureflagproperties.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitgrantfeatureflagproperties.js +54 -0
- package/dist/commonjs/models/components/benefitgrantfeatureflagproperties.js.map +1 -0
- package/dist/commonjs/models/components/benefitgrantfeatureflagwebhook.d.ts +106 -0
- package/dist/commonjs/models/components/benefitgrantfeatureflagwebhook.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitgrantfeatureflagwebhook.js +128 -0
- package/dist/commonjs/models/components/benefitgrantfeatureflagwebhook.js.map +1 -0
- package/dist/commonjs/models/components/benefitgrantwebhook.d.ts +3 -2
- package/dist/commonjs/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrantwebhook.js +3 -0
- package/dist/commonjs/models/components/benefitgrantwebhook.js.map +1 -1
- package/dist/commonjs/models/components/benefittype.d.ts +1 -0
- package/dist/commonjs/models/components/benefittype.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefittype.js +1 -0
- package/dist/commonjs/models/components/benefittype.js.map +1 -1
- package/dist/commonjs/models/components/cardpayment.d.ts +1 -1
- package/dist/commonjs/models/components/checkout.d.ts +0 -28
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +1 -37
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts +0 -7
- package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutconfirmstripe.js +0 -2
- package/dist/commonjs/models/components/checkoutconfirmstripe.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +0 -16
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +1 -17
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +0 -16
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +1 -17
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.d.ts +0 -7
- package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.js +0 -2
- package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdatepublic.d.ts +0 -7
- package/dist/commonjs/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdatepublic.js +0 -2
- package/dist/commonjs/models/components/checkoutupdatepublic.js.map +1 -1
- package/dist/commonjs/models/components/customer.d.ts +2 -2
- package/dist/commonjs/models/components/customer.d.ts.map +1 -1
- package/dist/commonjs/models/components/customer.js +2 -2
- package/dist/commonjs/models/components/customer.js.map +1 -1
- package/dist/commonjs/models/components/customerbenefitgrant.d.ts +2 -1
- package/dist/commonjs/models/components/customerbenefitgrant.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerbenefitgrant.js +2 -0
- package/dist/commonjs/models/components/customerbenefitgrant.js.map +1 -1
- package/dist/commonjs/models/components/customerbenefitgrantfeatureflag.d.ts +38 -0
- package/dist/commonjs/models/components/customerbenefitgrantfeatureflag.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerbenefitgrantfeatureflag.js +84 -0
- package/dist/commonjs/models/components/customerbenefitgrantfeatureflag.js.map +1 -0
- package/dist/commonjs/models/components/customerbenefitgrantfeatureflagupdate.d.ts +12 -0
- package/dist/commonjs/models/components/customerbenefitgrantfeatureflagupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerbenefitgrantfeatureflagupdate.js +54 -0
- package/dist/commonjs/models/components/customerbenefitgrantfeatureflagupdate.js.map +1 -0
- package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts +3 -2
- package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerbenefitgrantupdate.js +2 -0
- package/dist/commonjs/models/components/customerbenefitgrantupdate.js.map +1 -1
- package/dist/commonjs/models/components/customerorder.d.ts +0 -4
- package/dist/commonjs/models/components/customerorder.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerorder.js +0 -2
- package/dist/commonjs/models/components/customerorder.js.map +1 -1
- package/dist/commonjs/models/components/customerstate.d.ts +2 -2
- package/dist/commonjs/models/components/customerstate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerstate.js +2 -2
- package/dist/commonjs/models/components/customerstate.js.map +1 -1
- package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts +5 -4
- package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerstatebenefitgrant.js +5 -0
- package/dist/commonjs/models/components/customerstatebenefitgrant.js.map +1 -1
- package/dist/commonjs/models/components/genericpayment.d.ts +1 -1
- package/dist/commonjs/models/components/licensekeycustomer.d.ts +1 -1
- package/dist/commonjs/models/components/licensekeycustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/licensekeycustomer.js +1 -1
- package/dist/commonjs/models/components/licensekeycustomer.js.map +1 -1
- package/dist/commonjs/models/components/listresourcecustomer.d.ts +13 -0
- package/dist/commonjs/models/components/listresourcecustomer.d.ts.map +1 -0
- package/dist/commonjs/models/components/{listresourcecustomerwithmembers.js → listresourcecustomer.js} +8 -8
- package/dist/commonjs/models/components/listresourcecustomer.js.map +1 -0
- package/dist/commonjs/models/components/order.d.ts +0 -5
- package/dist/commonjs/models/components/order.d.ts.map +1 -1
- package/dist/commonjs/models/components/order.js +0 -4
- package/dist/commonjs/models/components/order.js.map +1 -1
- package/dist/commonjs/models/components/ordercustomer.d.ts +2 -2
- package/dist/commonjs/models/components/ordercustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/ordercustomer.js +2 -2
- package/dist/commonjs/models/components/ordercustomer.js.map +1 -1
- package/dist/commonjs/models/components/orderstatus.d.ts +1 -0
- package/dist/commonjs/models/components/orderstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/orderstatus.js +1 -0
- package/dist/commonjs/models/components/orderstatus.js.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts +0 -5
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.js +0 -4
- package/dist/commonjs/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/commonjs/models/components/organizationsocialplatforms.d.ts +2 -0
- package/dist/commonjs/models/components/organizationsocialplatforms.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationsocialplatforms.js +2 -0
- package/dist/commonjs/models/components/organizationsocialplatforms.js.map +1 -1
- package/dist/commonjs/models/components/productpricecustom.d.ts +0 -9
- package/dist/commonjs/models/components/productpricecustom.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricecustom.js +0 -8
- package/dist/commonjs/models/components/productpricecustom.js.map +1 -1
- package/dist/commonjs/models/components/productpricefixed.d.ts +0 -9
- package/dist/commonjs/models/components/productpricefixed.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricefixed.js +0 -8
- package/dist/commonjs/models/components/productpricefixed.js.map +1 -1
- package/dist/commonjs/models/components/productpricefree.d.ts +0 -9
- package/dist/commonjs/models/components/productpricefree.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricefree.js +0 -8
- package/dist/commonjs/models/components/productpricefree.js.map +1 -1
- package/dist/commonjs/models/components/productpricemeteredunit.d.ts +0 -9
- package/dist/commonjs/models/components/productpricemeteredunit.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricemeteredunit.js +0 -8
- package/dist/commonjs/models/components/productpricemeteredunit.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbased.d.ts +0 -9
- package/dist/commonjs/models/components/productpriceseatbased.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbased.js +0 -8
- package/dist/commonjs/models/components/productpriceseatbased.js.map +1 -1
- package/dist/commonjs/models/components/subscriptioncustomer.d.ts +2 -2
- package/dist/commonjs/models/components/subscriptioncustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptioncustomer.js +2 -2
- package/dist/commonjs/models/components/subscriptioncustomer.js.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.d.ts +4 -0
- package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.js +1 -0
- package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
- package/dist/commonjs/models/components/webhookendpointcreate.d.ts +3 -3
- package/dist/commonjs/models/components/webhookendpointcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookendpointcreate.js +1 -1
- package/dist/commonjs/models/components/webhookendpointcreate.js.map +1 -1
- package/dist/commonjs/models/components/webhookendpointupdate.d.ts +3 -3
- package/dist/commonjs/models/components/webhookendpointupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookendpointupdate.js +1 -1
- package/dist/commonjs/models/components/webhookendpointupdate.js.map +1 -1
- package/dist/commonjs/models/operations/benefitsupdate.d.ts +5 -4
- package/dist/commonjs/models/operations/benefitsupdate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/benefitsupdate.js +3 -0
- package/dist/commonjs/models/operations/benefitsupdate.js.map +1 -1
- package/dist/commonjs/models/operations/customerslist.d.ts +2 -2
- package/dist/commonjs/models/operations/customerslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/customerslist.js +2 -2
- package/dist/commonjs/models/operations/customerslist.js.map +1 -1
- package/dist/commonjs/sdk/customers.d.ts +6 -6
- package/dist/commonjs/sdk/customers.d.ts.map +1 -1
- package/dist/esm/funcs/customersCreate.d.ts +2 -2
- package/dist/esm/funcs/customersCreate.d.ts.map +1 -1
- package/dist/esm/funcs/customersCreate.js +2 -2
- package/dist/esm/funcs/customersCreate.js.map +1 -1
- package/dist/esm/funcs/customersGet.d.ts +2 -2
- package/dist/esm/funcs/customersGet.d.ts.map +1 -1
- package/dist/esm/funcs/customersGet.js +2 -2
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersGetExternal.d.ts +2 -2
- package/dist/esm/funcs/customersGetExternal.d.ts.map +1 -1
- package/dist/esm/funcs/customersGetExternal.js +2 -2
- package/dist/esm/funcs/customersGetExternal.js.map +1 -1
- package/dist/esm/funcs/customersUpdate.d.ts +2 -2
- package/dist/esm/funcs/customersUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/customersUpdate.js +2 -2
- package/dist/esm/funcs/customersUpdate.js.map +1 -1
- package/dist/esm/funcs/customersUpdateExternal.d.ts +2 -2
- package/dist/esm/funcs/customersUpdateExternal.d.ts.map +1 -1
- package/dist/esm/funcs/customersUpdateExternal.js +2 -2
- package/dist/esm/funcs/customersUpdateExternal.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/benefit.d.ts +3 -2
- package/dist/esm/models/components/benefit.d.ts.map +1 -1
- package/dist/esm/models/components/benefit.js +3 -0
- package/dist/esm/models/components/benefit.js.map +1 -1
- package/dist/esm/models/components/benefitcreate.d.ts +3 -2
- package/dist/esm/models/components/benefitcreate.d.ts.map +1 -1
- package/dist/esm/models/components/benefitcreate.js +2 -0
- package/dist/esm/models/components/benefitcreate.js.map +1 -1
- package/dist/esm/models/components/benefitfeatureflag.d.ts +73 -0
- package/dist/esm/models/components/benefitfeatureflag.d.ts.map +1 -0
- package/dist/esm/models/components/benefitfeatureflag.js +53 -0
- package/dist/esm/models/components/benefitfeatureflag.js.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagcreate.d.ts +58 -0
- package/dist/esm/models/components/benefitfeatureflagcreate.d.ts.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagcreate.js +28 -0
- package/dist/esm/models/components/benefitfeatureflagcreate.js.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagcreateproperties.d.ts +11 -0
- package/dist/esm/models/components/benefitfeatureflagcreateproperties.d.ts.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagcreateproperties.js +10 -0
- package/dist/esm/models/components/benefitfeatureflagcreateproperties.js.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagproperties.d.ts +16 -0
- package/dist/esm/models/components/benefitfeatureflagproperties.d.ts.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagproperties.js +16 -0
- package/dist/esm/models/components/benefitfeatureflagproperties.js.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagsubscriber.d.ts +49 -0
- package/dist/esm/models/components/benefitfeatureflagsubscriber.d.ts.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagsubscriber.js +33 -0
- package/dist/esm/models/components/benefitfeatureflagsubscriber.js.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagsubscriberproperties.d.ts +11 -0
- package/dist/esm/models/components/benefitfeatureflagsubscriberproperties.d.ts.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagsubscriberproperties.js +11 -0
- package/dist/esm/models/components/benefitfeatureflagsubscriberproperties.js.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagupdate.d.ts +47 -0
- package/dist/esm/models/components/benefitfeatureflagupdate.d.ts.map +1 -0
- package/dist/esm/models/components/benefitfeatureflagupdate.js +22 -0
- package/dist/esm/models/components/benefitfeatureflagupdate.js.map +1 -0
- package/dist/esm/models/components/benefitgrant.d.ts +3 -2
- package/dist/esm/models/components/benefitgrant.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrant.js +3 -0
- package/dist/esm/models/components/benefitgrant.js.map +1 -1
- package/dist/esm/models/components/benefitgrantfeatureflagproperties.d.ts +13 -0
- package/dist/esm/models/components/benefitgrantfeatureflagproperties.d.ts.map +1 -0
- package/dist/esm/models/components/benefitgrantfeatureflagproperties.js +16 -0
- package/dist/esm/models/components/benefitgrantfeatureflagproperties.js.map +1 -0
- package/dist/esm/models/components/benefitgrantfeatureflagwebhook.d.ts +106 -0
- package/dist/esm/models/components/benefitgrantfeatureflagwebhook.d.ts.map +1 -0
- package/dist/esm/models/components/benefitgrantfeatureflagwebhook.js +90 -0
- package/dist/esm/models/components/benefitgrantfeatureflagwebhook.js.map +1 -0
- package/dist/esm/models/components/benefitgrantwebhook.d.ts +3 -2
- package/dist/esm/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrantwebhook.js +3 -0
- package/dist/esm/models/components/benefitgrantwebhook.js.map +1 -1
- package/dist/esm/models/components/benefittype.d.ts +1 -0
- package/dist/esm/models/components/benefittype.d.ts.map +1 -1
- package/dist/esm/models/components/benefittype.js +1 -0
- package/dist/esm/models/components/benefittype.js.map +1 -1
- package/dist/esm/models/components/cardpayment.d.ts +1 -1
- package/dist/esm/models/components/checkout.d.ts +0 -28
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +0 -34
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutconfirmstripe.d.ts +0 -7
- package/dist/esm/models/components/checkoutconfirmstripe.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutconfirmstripe.js +0 -2
- package/dist/esm/models/components/checkoutconfirmstripe.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +0 -16
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +0 -15
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +0 -16
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +0 -15
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/checkoutupdate.d.ts +0 -7
- package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdate.js +0 -2
- package/dist/esm/models/components/checkoutupdate.js.map +1 -1
- package/dist/esm/models/components/checkoutupdatepublic.d.ts +0 -7
- package/dist/esm/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdatepublic.js +0 -2
- package/dist/esm/models/components/checkoutupdatepublic.js.map +1 -1
- package/dist/esm/models/components/customer.d.ts +2 -2
- package/dist/esm/models/components/customer.d.ts.map +1 -1
- package/dist/esm/models/components/customer.js +2 -2
- package/dist/esm/models/components/customer.js.map +1 -1
- package/dist/esm/models/components/customerbenefitgrant.d.ts +2 -1
- package/dist/esm/models/components/customerbenefitgrant.d.ts.map +1 -1
- package/dist/esm/models/components/customerbenefitgrant.js +2 -0
- package/dist/esm/models/components/customerbenefitgrant.js.map +1 -1
- package/dist/esm/models/components/customerbenefitgrantfeatureflag.d.ts +38 -0
- package/dist/esm/models/components/customerbenefitgrantfeatureflag.d.ts.map +1 -0
- package/dist/esm/models/components/customerbenefitgrantfeatureflag.js +47 -0
- package/dist/esm/models/components/customerbenefitgrantfeatureflag.js.map +1 -0
- package/dist/esm/models/components/customerbenefitgrantfeatureflagupdate.d.ts +12 -0
- package/dist/esm/models/components/customerbenefitgrantfeatureflagupdate.d.ts.map +1 -0
- package/dist/esm/models/components/customerbenefitgrantfeatureflagupdate.js +17 -0
- package/dist/esm/models/components/customerbenefitgrantfeatureflagupdate.js.map +1 -0
- package/dist/esm/models/components/customerbenefitgrantupdate.d.ts +3 -2
- package/dist/esm/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
- package/dist/esm/models/components/customerbenefitgrantupdate.js +2 -0
- package/dist/esm/models/components/customerbenefitgrantupdate.js.map +1 -1
- package/dist/esm/models/components/customerorder.d.ts +0 -4
- package/dist/esm/models/components/customerorder.d.ts.map +1 -1
- package/dist/esm/models/components/customerorder.js +0 -2
- package/dist/esm/models/components/customerorder.js.map +1 -1
- package/dist/esm/models/components/customerstate.d.ts +2 -2
- package/dist/esm/models/components/customerstate.d.ts.map +1 -1
- package/dist/esm/models/components/customerstate.js +2 -2
- package/dist/esm/models/components/customerstate.js.map +1 -1
- package/dist/esm/models/components/customerstatebenefitgrant.d.ts +5 -4
- package/dist/esm/models/components/customerstatebenefitgrant.d.ts.map +1 -1
- package/dist/esm/models/components/customerstatebenefitgrant.js +5 -0
- package/dist/esm/models/components/customerstatebenefitgrant.js.map +1 -1
- package/dist/esm/models/components/genericpayment.d.ts +1 -1
- package/dist/esm/models/components/licensekeycustomer.d.ts +1 -1
- package/dist/esm/models/components/licensekeycustomer.d.ts.map +1 -1
- package/dist/esm/models/components/licensekeycustomer.js +1 -1
- package/dist/esm/models/components/licensekeycustomer.js.map +1 -1
- package/dist/esm/models/components/listresourcecustomer.d.ts +13 -0
- package/dist/esm/models/components/listresourcecustomer.d.ts.map +1 -0
- package/dist/esm/models/components/listresourcecustomer.js +16 -0
- package/dist/esm/models/components/listresourcecustomer.js.map +1 -0
- package/dist/esm/models/components/order.d.ts +0 -5
- package/dist/esm/models/components/order.d.ts.map +1 -1
- package/dist/esm/models/components/order.js +0 -4
- package/dist/esm/models/components/order.js.map +1 -1
- package/dist/esm/models/components/ordercustomer.d.ts +2 -2
- package/dist/esm/models/components/ordercustomer.d.ts.map +1 -1
- package/dist/esm/models/components/ordercustomer.js +2 -2
- package/dist/esm/models/components/ordercustomer.js.map +1 -1
- package/dist/esm/models/components/orderstatus.d.ts +1 -0
- package/dist/esm/models/components/orderstatus.d.ts.map +1 -1
- package/dist/esm/models/components/orderstatus.js +1 -0
- package/dist/esm/models/components/orderstatus.js.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.d.ts +0 -5
- package/dist/esm/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.js +0 -4
- package/dist/esm/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/esm/models/components/organizationsocialplatforms.d.ts +2 -0
- package/dist/esm/models/components/organizationsocialplatforms.d.ts.map +1 -1
- package/dist/esm/models/components/organizationsocialplatforms.js +2 -0
- package/dist/esm/models/components/organizationsocialplatforms.js.map +1 -1
- package/dist/esm/models/components/productpricecustom.d.ts +0 -9
- package/dist/esm/models/components/productpricecustom.d.ts.map +1 -1
- package/dist/esm/models/components/productpricecustom.js +0 -8
- package/dist/esm/models/components/productpricecustom.js.map +1 -1
- package/dist/esm/models/components/productpricefixed.d.ts +0 -9
- package/dist/esm/models/components/productpricefixed.d.ts.map +1 -1
- package/dist/esm/models/components/productpricefixed.js +0 -8
- package/dist/esm/models/components/productpricefixed.js.map +1 -1
- package/dist/esm/models/components/productpricefree.d.ts +0 -9
- package/dist/esm/models/components/productpricefree.d.ts.map +1 -1
- package/dist/esm/models/components/productpricefree.js +0 -8
- package/dist/esm/models/components/productpricefree.js.map +1 -1
- package/dist/esm/models/components/productpricemeteredunit.d.ts +0 -9
- package/dist/esm/models/components/productpricemeteredunit.d.ts.map +1 -1
- package/dist/esm/models/components/productpricemeteredunit.js +0 -8
- package/dist/esm/models/components/productpricemeteredunit.js.map +1 -1
- package/dist/esm/models/components/productpriceseatbased.d.ts +0 -9
- package/dist/esm/models/components/productpriceseatbased.d.ts.map +1 -1
- package/dist/esm/models/components/productpriceseatbased.js +0 -8
- package/dist/esm/models/components/productpriceseatbased.js.map +1 -1
- package/dist/esm/models/components/subscriptioncustomer.d.ts +2 -2
- package/dist/esm/models/components/subscriptioncustomer.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptioncustomer.js +2 -2
- package/dist/esm/models/components/subscriptioncustomer.js.map +1 -1
- package/dist/esm/models/components/webhookendpoint.d.ts +4 -0
- package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/esm/models/components/webhookendpoint.js +1 -0
- package/dist/esm/models/components/webhookendpoint.js.map +1 -1
- package/dist/esm/models/components/webhookendpointcreate.d.ts +3 -3
- package/dist/esm/models/components/webhookendpointcreate.d.ts.map +1 -1
- package/dist/esm/models/components/webhookendpointcreate.js +1 -1
- package/dist/esm/models/components/webhookendpointcreate.js.map +1 -1
- package/dist/esm/models/components/webhookendpointupdate.d.ts +3 -3
- package/dist/esm/models/components/webhookendpointupdate.d.ts.map +1 -1
- package/dist/esm/models/components/webhookendpointupdate.js +1 -1
- package/dist/esm/models/components/webhookendpointupdate.js.map +1 -1
- package/dist/esm/models/operations/benefitsupdate.d.ts +5 -4
- package/dist/esm/models/operations/benefitsupdate.d.ts.map +1 -1
- package/dist/esm/models/operations/benefitsupdate.js +3 -0
- package/dist/esm/models/operations/benefitsupdate.js.map +1 -1
- package/dist/esm/models/operations/customerslist.d.ts +2 -2
- package/dist/esm/models/operations/customerslist.d.ts.map +1 -1
- package/dist/esm/models/operations/customerslist.js +2 -2
- package/dist/esm/models/operations/customerslist.js.map +1 -1
- package/dist/esm/sdk/customers.d.ts +6 -6
- package/dist/esm/sdk/customers.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customersCreate.ts +8 -8
- package/src/funcs/customersGet.ts +7 -7
- package/src/funcs/customersGetExternal.ts +7 -7
- package/src/funcs/customersUpdate.ts +7 -7
- package/src/funcs/customersUpdateExternal.ts +7 -7
- package/src/lib/config.ts +3 -3
- package/src/models/components/benefit.ts +10 -0
- package/src/models/components/benefitcreate.ts +8 -0
- package/src/models/components/benefitfeatureflag.ts +153 -0
- package/src/models/components/benefitfeatureflagcreate.ts +117 -0
- package/src/models/components/benefitfeatureflagcreateproperties.ts +29 -0
- package/src/models/components/benefitfeatureflagproperties.ts +46 -0
- package/src/models/components/benefitfeatureflagsubscriber.ts +101 -0
- package/src/models/components/benefitfeatureflagsubscriberproperties.ts +28 -0
- package/src/models/components/benefitfeatureflagupdate.ts +99 -0
- package/src/models/components/benefitgrant.ts +10 -2
- package/src/models/components/benefitgrantfeatureflagproperties.ts +43 -0
- package/src/models/components/benefitgrantfeatureflagwebhook.ts +262 -0
- package/src/models/components/benefitgrantwebhook.ts +12 -2
- package/src/models/components/benefittype.ts +1 -0
- package/src/models/components/cardpayment.ts +1 -1
- package/src/models/components/checkout.ts +0 -85
- package/src/models/components/checkoutconfirmstripe.ts +0 -9
- package/src/models/components/checkoutpublic.ts +0 -44
- package/src/models/components/checkoutpublicconfirmed.ts +0 -45
- package/src/models/components/checkoutupdate.ts +0 -9
- package/src/models/components/checkoutupdatepublic.ts +0 -9
- package/src/models/components/customer.ts +4 -4
- package/src/models/components/customerbenefitgrant.ts +7 -1
- package/src/models/components/customerbenefitgrantfeatureflag.ts +112 -0
- package/src/models/components/customerbenefitgrantfeatureflagupdate.ts +41 -0
- package/src/models/components/customerbenefitgrantupdate.ts +8 -0
- package/src/models/components/customerorder.ts +0 -6
- package/src/models/components/customerstate.ts +4 -4
- package/src/models/components/customerstatebenefitgrant.ts +18 -4
- package/src/models/components/genericpayment.ts +1 -1
- package/src/models/components/licensekeycustomer.ts +2 -2
- package/src/models/components/listresourcecustomer.ts +34 -0
- package/src/models/components/order.ts +0 -9
- package/src/models/components/ordercustomer.ts +4 -4
- package/src/models/components/orderstatus.ts +1 -0
- package/src/models/components/organizationfeaturesettings.ts +0 -9
- package/src/models/components/organizationsocialplatforms.ts +2 -0
- package/src/models/components/productpricecustom.ts +0 -23
- package/src/models/components/productpricefixed.ts +0 -23
- package/src/models/components/productpricefree.ts +0 -23
- package/src/models/components/productpricemeteredunit.ts +0 -23
- package/src/models/components/productpriceseatbased.ts +0 -23
- package/src/models/components/subscriptioncustomer.ts +4 -4
- package/src/models/components/webhookendpoint.ts +5 -0
- package/src/models/components/webhookendpointcreate.ts +4 -4
- package/src/models/components/webhookendpointupdate.ts +4 -4
- package/src/models/operations/benefitsupdate.ts +15 -4
- package/src/models/operations/customerslist.ts +5 -5
- package/src/sdk/customers.ts +6 -6
- package/.devcontainer/devcontainer.json +0 -45
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/dist/commonjs/models/components/customerwithmembers.d.ts +0 -72
- package/dist/commonjs/models/components/customerwithmembers.d.ts.map +0 -1
- package/dist/commonjs/models/components/customerwithmembers.js.map +0 -1
- package/dist/commonjs/models/components/listresourcecustomerwithmembers.d.ts +0 -13
- package/dist/commonjs/models/components/listresourcecustomerwithmembers.d.ts.map +0 -1
- package/dist/commonjs/models/components/listresourcecustomerwithmembers.js.map +0 -1
- package/dist/commonjs/models/components/productpricetype.d.ts +0 -12
- package/dist/commonjs/models/components/productpricetype.d.ts.map +0 -1
- package/dist/commonjs/models/components/productpricetype.js.map +0 -1
- package/dist/esm/models/components/customerwithmembers.d.ts +0 -72
- package/dist/esm/models/components/customerwithmembers.d.ts.map +0 -1
- package/dist/esm/models/components/customerwithmembers.js +0 -52
- package/dist/esm/models/components/customerwithmembers.js.map +0 -1
- package/dist/esm/models/components/listresourcecustomerwithmembers.d.ts +0 -13
- package/dist/esm/models/components/listresourcecustomerwithmembers.d.ts.map +0 -1
- package/dist/esm/models/components/listresourcecustomerwithmembers.js +0 -16
- package/dist/esm/models/components/listresourcecustomerwithmembers.js.map +0 -1
- package/dist/esm/models/components/productpricetype.d.ts +0 -12
- package/dist/esm/models/components/productpricetype.d.ts.map +0 -1
- package/dist/esm/models/components/productpricetype.js +0 -13
- package/dist/esm/models/components/productpricetype.js.map +0 -1
- package/examples/package-lock.json +0 -616
- package/examples/package.json +0 -18
- package/src/models/components/customerwithmembers.ts +0 -148
- package/src/models/components/listresourcecustomerwithmembers.ts +0 -37
- package/src/models/components/productpricetype.ts +0 -24
- package/tsconfig.json +0 -40
|
@@ -92,8 +92,6 @@ import {
|
|
|
92
92
|
|
|
93
93
|
export type CheckoutCustomFieldData = string | number | boolean | Date;
|
|
94
94
|
|
|
95
|
-
export type CheckoutProductPrice = LegacyRecurringProductPrice | ProductPrice;
|
|
96
|
-
|
|
97
95
|
export type CheckoutPrices = LegacyRecurringProductPrice | ProductPrice;
|
|
98
96
|
|
|
99
97
|
export type CheckoutDiscount =
|
|
@@ -208,12 +206,6 @@ export type Checkout = {
|
|
|
208
206
|
* ID of the product to checkout.
|
|
209
207
|
*/
|
|
210
208
|
productId: string | null;
|
|
211
|
-
/**
|
|
212
|
-
* ID of the product price to checkout.
|
|
213
|
-
*
|
|
214
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
215
|
-
*/
|
|
216
|
-
productPriceId: string | null;
|
|
217
209
|
/**
|
|
218
210
|
* ID of the discount applied to the checkout.
|
|
219
211
|
*/
|
|
@@ -279,10 +271,6 @@ export type Checkout = {
|
|
|
279
271
|
* ID of the customer in your system. If a matching customer exists on Polar, the resulting order will be linked to this customer. Otherwise, a new customer will be created with this external ID set.
|
|
280
272
|
*/
|
|
281
273
|
externalCustomerId: string | null;
|
|
282
|
-
/**
|
|
283
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
284
|
-
*/
|
|
285
|
-
customerExternalId: string | null;
|
|
286
274
|
/**
|
|
287
275
|
* List of products available to select.
|
|
288
276
|
*/
|
|
@@ -291,12 +279,6 @@ export type Checkout = {
|
|
|
291
279
|
* Product selected to checkout.
|
|
292
280
|
*/
|
|
293
281
|
product: CheckoutProduct | null;
|
|
294
|
-
/**
|
|
295
|
-
* Price of the selected product.
|
|
296
|
-
*
|
|
297
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
298
|
-
*/
|
|
299
|
-
productPrice: LegacyRecurringProductPrice | ProductPrice | null;
|
|
300
282
|
/**
|
|
301
283
|
* Mapping of product IDs to their list of prices.
|
|
302
284
|
*/
|
|
@@ -359,45 +341,6 @@ export function checkoutCustomFieldDataFromJSON(
|
|
|
359
341
|
);
|
|
360
342
|
}
|
|
361
343
|
|
|
362
|
-
/** @internal */
|
|
363
|
-
export const CheckoutProductPrice$inboundSchema: z.ZodMiniType<
|
|
364
|
-
CheckoutProductPrice,
|
|
365
|
-
unknown
|
|
366
|
-
> = smartUnion([
|
|
367
|
-
LegacyRecurringProductPrice$inboundSchema,
|
|
368
|
-
ProductPrice$inboundSchema,
|
|
369
|
-
]);
|
|
370
|
-
/** @internal */
|
|
371
|
-
export type CheckoutProductPrice$Outbound =
|
|
372
|
-
| LegacyRecurringProductPrice$Outbound
|
|
373
|
-
| ProductPrice$Outbound;
|
|
374
|
-
|
|
375
|
-
/** @internal */
|
|
376
|
-
export const CheckoutProductPrice$outboundSchema: z.ZodMiniType<
|
|
377
|
-
CheckoutProductPrice$Outbound,
|
|
378
|
-
CheckoutProductPrice
|
|
379
|
-
> = smartUnion([
|
|
380
|
-
LegacyRecurringProductPrice$outboundSchema,
|
|
381
|
-
ProductPrice$outboundSchema,
|
|
382
|
-
]);
|
|
383
|
-
|
|
384
|
-
export function checkoutProductPriceToJSON(
|
|
385
|
-
checkoutProductPrice: CheckoutProductPrice,
|
|
386
|
-
): string {
|
|
387
|
-
return JSON.stringify(
|
|
388
|
-
CheckoutProductPrice$outboundSchema.parse(checkoutProductPrice),
|
|
389
|
-
);
|
|
390
|
-
}
|
|
391
|
-
export function checkoutProductPriceFromJSON(
|
|
392
|
-
jsonString: string,
|
|
393
|
-
): SafeParseResult<CheckoutProductPrice, SDKValidationError> {
|
|
394
|
-
return safeParse(
|
|
395
|
-
jsonString,
|
|
396
|
-
(x) => CheckoutProductPrice$inboundSchema.parse(JSON.parse(x)),
|
|
397
|
-
`Failed to parse 'CheckoutProductPrice' from JSON`,
|
|
398
|
-
);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
344
|
/** @internal */
|
|
402
345
|
export const CheckoutPrices$inboundSchema: z.ZodMiniType<
|
|
403
346
|
CheckoutPrices,
|
|
@@ -563,7 +506,6 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
|
|
|
563
506
|
),
|
|
564
507
|
organization_id: z.string(),
|
|
565
508
|
product_id: z.nullable(z.string()),
|
|
566
|
-
product_price_id: z.nullable(z.string()),
|
|
567
509
|
discount_id: z.nullable(z.string()),
|
|
568
510
|
allow_discount_codes: z.boolean(),
|
|
569
511
|
require_billing_address: z.boolean(),
|
|
@@ -587,15 +529,8 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
|
|
|
587
529
|
trial_interval_count: z.nullable(z.int()),
|
|
588
530
|
metadata: z.record(z.string(), MetadataOutputType$inboundSchema),
|
|
589
531
|
external_customer_id: z.nullable(z.string()),
|
|
590
|
-
customer_external_id: z.nullable(z.string()),
|
|
591
532
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
592
533
|
product: z.nullable(CheckoutProduct$inboundSchema),
|
|
593
|
-
product_price: z.nullable(
|
|
594
|
-
smartUnion([
|
|
595
|
-
LegacyRecurringProductPrice$inboundSchema,
|
|
596
|
-
ProductPrice$inboundSchema,
|
|
597
|
-
]),
|
|
598
|
-
),
|
|
599
534
|
prices: z.nullable(
|
|
600
535
|
z.record(
|
|
601
536
|
z.string(),
|
|
@@ -646,7 +581,6 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
|
|
|
646
581
|
"trial_end": "trialEnd",
|
|
647
582
|
"organization_id": "organizationId",
|
|
648
583
|
"product_id": "productId",
|
|
649
|
-
"product_price_id": "productPriceId",
|
|
650
584
|
"discount_id": "discountId",
|
|
651
585
|
"allow_discount_codes": "allowDiscountCodes",
|
|
652
586
|
"require_billing_address": "requireBillingAddress",
|
|
@@ -668,8 +602,6 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
|
|
|
668
602
|
"trial_interval": "trialInterval",
|
|
669
603
|
"trial_interval_count": "trialIntervalCount",
|
|
670
604
|
"external_customer_id": "externalCustomerId",
|
|
671
|
-
"customer_external_id": "customerExternalId",
|
|
672
|
-
"product_price": "productPrice",
|
|
673
605
|
"subscription_id": "subscriptionId",
|
|
674
606
|
"attached_custom_fields": "attachedCustomFields",
|
|
675
607
|
"customer_metadata": "customerMetadata",
|
|
@@ -706,7 +638,6 @@ export type Checkout$Outbound = {
|
|
|
706
638
|
trial_end: string | null;
|
|
707
639
|
organization_id: string;
|
|
708
640
|
product_id: string | null;
|
|
709
|
-
product_price_id: string | null;
|
|
710
641
|
discount_id: string | null;
|
|
711
642
|
allow_discount_codes: boolean;
|
|
712
643
|
require_billing_address: boolean;
|
|
@@ -730,13 +661,8 @@ export type Checkout$Outbound = {
|
|
|
730
661
|
trial_interval_count: number | null;
|
|
731
662
|
metadata: { [k: string]: MetadataOutputType$Outbound };
|
|
732
663
|
external_customer_id: string | null;
|
|
733
|
-
customer_external_id: string | null;
|
|
734
664
|
products: Array<CheckoutProduct$Outbound>;
|
|
735
665
|
product: CheckoutProduct$Outbound | null;
|
|
736
|
-
product_price:
|
|
737
|
-
| LegacyRecurringProductPrice$Outbound
|
|
738
|
-
| ProductPrice$Outbound
|
|
739
|
-
| null;
|
|
740
666
|
prices: {
|
|
741
667
|
[k: string]: Array<
|
|
742
668
|
LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound
|
|
@@ -797,7 +723,6 @@ export const Checkout$outboundSchema: z.ZodMiniType<
|
|
|
797
723
|
trialEnd: z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
798
724
|
organizationId: z.string(),
|
|
799
725
|
productId: z.nullable(z.string()),
|
|
800
|
-
productPriceId: z.nullable(z.string()),
|
|
801
726
|
discountId: z.nullable(z.string()),
|
|
802
727
|
allowDiscountCodes: z.boolean(),
|
|
803
728
|
requireBillingAddress: z.boolean(),
|
|
@@ -821,15 +746,8 @@ export const Checkout$outboundSchema: z.ZodMiniType<
|
|
|
821
746
|
trialIntervalCount: z.nullable(z.int()),
|
|
822
747
|
metadata: z.record(z.string(), MetadataOutputType$outboundSchema),
|
|
823
748
|
externalCustomerId: z.nullable(z.string()),
|
|
824
|
-
customerExternalId: z.nullable(z.string()),
|
|
825
749
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
826
750
|
product: z.nullable(CheckoutProduct$outboundSchema),
|
|
827
|
-
productPrice: z.nullable(
|
|
828
|
-
smartUnion([
|
|
829
|
-
LegacyRecurringProductPrice$outboundSchema,
|
|
830
|
-
ProductPrice$outboundSchema,
|
|
831
|
-
]),
|
|
832
|
-
),
|
|
833
751
|
prices: z.nullable(
|
|
834
752
|
z.record(
|
|
835
753
|
z.string(),
|
|
@@ -880,7 +798,6 @@ export const Checkout$outboundSchema: z.ZodMiniType<
|
|
|
880
798
|
trialEnd: "trial_end",
|
|
881
799
|
organizationId: "organization_id",
|
|
882
800
|
productId: "product_id",
|
|
883
|
-
productPriceId: "product_price_id",
|
|
884
801
|
discountId: "discount_id",
|
|
885
802
|
allowDiscountCodes: "allow_discount_codes",
|
|
886
803
|
requireBillingAddress: "require_billing_address",
|
|
@@ -902,8 +819,6 @@ export const Checkout$outboundSchema: z.ZodMiniType<
|
|
|
902
819
|
trialInterval: "trial_interval",
|
|
903
820
|
trialIntervalCount: "trial_interval_count",
|
|
904
821
|
externalCustomerId: "external_customer_id",
|
|
905
|
-
customerExternalId: "customer_external_id",
|
|
906
|
-
productPrice: "product_price",
|
|
907
822
|
subscriptionId: "subscription_id",
|
|
908
823
|
attachedCustomFields: "attached_custom_fields",
|
|
909
824
|
customerMetadata: "customer_metadata",
|
|
@@ -31,12 +31,6 @@ export type CheckoutConfirmStripe = {
|
|
|
31
31
|
* ID of the product to checkout. Must be present in the checkout's product list.
|
|
32
32
|
*/
|
|
33
33
|
productId?: string | null | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* ID of the product price to checkout. Must correspond to a price present in the checkout's product list.
|
|
36
|
-
*
|
|
37
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
|
-
*/
|
|
39
|
-
productPriceId?: string | null | undefined;
|
|
40
34
|
amount?: number | null | undefined;
|
|
41
35
|
/**
|
|
42
36
|
* Number of seats for seat-based pricing.
|
|
@@ -97,7 +91,6 @@ export type CheckoutConfirmStripe$Outbound = {
|
|
|
97
91
|
| { [k: string]: string | number | boolean | string | null }
|
|
98
92
|
| undefined;
|
|
99
93
|
product_id?: string | null | undefined;
|
|
100
|
-
product_price_id?: string | null | undefined;
|
|
101
94
|
amount?: number | null | undefined;
|
|
102
95
|
seats?: number | null | undefined;
|
|
103
96
|
is_business_customer?: boolean | null | undefined;
|
|
@@ -132,7 +125,6 @@ export const CheckoutConfirmStripe$outboundSchema: z.ZodMiniType<
|
|
|
132
125
|
),
|
|
133
126
|
),
|
|
134
127
|
productId: z.optional(z.nullable(z.string())),
|
|
135
|
-
productPriceId: z.optional(z.nullable(z.string())),
|
|
136
128
|
amount: z.optional(z.nullable(z.int())),
|
|
137
129
|
seats: z.optional(z.nullable(z.int())),
|
|
138
130
|
isBusinessCustomer: z.optional(z.nullable(z.boolean())),
|
|
@@ -150,7 +142,6 @@ export const CheckoutConfirmStripe$outboundSchema: z.ZodMiniType<
|
|
|
150
142
|
return remap$(v, {
|
|
151
143
|
customFieldData: "custom_field_data",
|
|
152
144
|
productId: "product_id",
|
|
153
|
-
productPriceId: "product_price_id",
|
|
154
145
|
isBusinessCustomer: "is_business_customer",
|
|
155
146
|
customerName: "customer_name",
|
|
156
147
|
customerEmail: "customer_email",
|
|
@@ -58,10 +58,6 @@ import { TrialInterval, TrialInterval$inboundSchema } from "./trialinterval.js";
|
|
|
58
58
|
|
|
59
59
|
export type CheckoutPublicCustomFieldData = string | number | boolean | Date;
|
|
60
60
|
|
|
61
|
-
export type CheckoutPublicProductPrice =
|
|
62
|
-
| LegacyRecurringProductPrice
|
|
63
|
-
| ProductPrice;
|
|
64
|
-
|
|
65
61
|
export type CheckoutPublicPrices = LegacyRecurringProductPrice | ProductPrice;
|
|
66
62
|
|
|
67
63
|
export type CheckoutPublicDiscount =
|
|
@@ -174,12 +170,6 @@ export type CheckoutPublic = {
|
|
|
174
170
|
* ID of the product to checkout.
|
|
175
171
|
*/
|
|
176
172
|
productId: string | null;
|
|
177
|
-
/**
|
|
178
|
-
* ID of the product price to checkout.
|
|
179
|
-
*
|
|
180
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
181
|
-
*/
|
|
182
|
-
productPriceId: string | null;
|
|
183
173
|
/**
|
|
184
174
|
* ID of the discount applied to the checkout.
|
|
185
175
|
*/
|
|
@@ -240,12 +230,6 @@ export type CheckoutPublic = {
|
|
|
240
230
|
* Product selected to checkout.
|
|
241
231
|
*/
|
|
242
232
|
product: CheckoutProduct | null;
|
|
243
|
-
/**
|
|
244
|
-
* Price of the selected product.
|
|
245
|
-
*
|
|
246
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
247
|
-
*/
|
|
248
|
-
productPrice: LegacyRecurringProductPrice | ProductPrice | null;
|
|
249
233
|
/**
|
|
250
234
|
* Mapping of product IDs to their list of prices.
|
|
251
235
|
*/
|
|
@@ -283,25 +267,6 @@ export function checkoutPublicCustomFieldDataFromJSON(
|
|
|
283
267
|
);
|
|
284
268
|
}
|
|
285
269
|
|
|
286
|
-
/** @internal */
|
|
287
|
-
export const CheckoutPublicProductPrice$inboundSchema: z.ZodMiniType<
|
|
288
|
-
CheckoutPublicProductPrice,
|
|
289
|
-
unknown
|
|
290
|
-
> = smartUnion([
|
|
291
|
-
LegacyRecurringProductPrice$inboundSchema,
|
|
292
|
-
ProductPrice$inboundSchema,
|
|
293
|
-
]);
|
|
294
|
-
|
|
295
|
-
export function checkoutPublicProductPriceFromJSON(
|
|
296
|
-
jsonString: string,
|
|
297
|
-
): SafeParseResult<CheckoutPublicProductPrice, SDKValidationError> {
|
|
298
|
-
return safeParse(
|
|
299
|
-
jsonString,
|
|
300
|
-
(x) => CheckoutPublicProductPrice$inboundSchema.parse(JSON.parse(x)),
|
|
301
|
-
`Failed to parse 'CheckoutPublicProductPrice' from JSON`,
|
|
302
|
-
);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
270
|
/** @internal */
|
|
306
271
|
export const CheckoutPublicPrices$inboundSchema: z.ZodMiniType<
|
|
307
272
|
CheckoutPublicPrices,
|
|
@@ -399,7 +364,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
|
|
|
399
364
|
),
|
|
400
365
|
organization_id: z.string(),
|
|
401
366
|
product_id: z.nullable(z.string()),
|
|
402
|
-
product_price_id: z.nullable(z.string()),
|
|
403
367
|
discount_id: z.nullable(z.string()),
|
|
404
368
|
allow_discount_codes: z.boolean(),
|
|
405
369
|
require_billing_address: z.boolean(),
|
|
@@ -421,12 +385,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
|
|
|
421
385
|
billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
|
|
422
386
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
423
387
|
product: z.nullable(CheckoutProduct$inboundSchema),
|
|
424
|
-
product_price: z.nullable(
|
|
425
|
-
smartUnion([
|
|
426
|
-
LegacyRecurringProductPrice$inboundSchema,
|
|
427
|
-
ProductPrice$inboundSchema,
|
|
428
|
-
]),
|
|
429
|
-
),
|
|
430
388
|
prices: z.nullable(
|
|
431
389
|
z.record(
|
|
432
390
|
z.string(),
|
|
@@ -473,7 +431,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
|
|
|
473
431
|
"trial_end": "trialEnd",
|
|
474
432
|
"organization_id": "organizationId",
|
|
475
433
|
"product_id": "productId",
|
|
476
|
-
"product_price_id": "productPriceId",
|
|
477
434
|
"discount_id": "discountId",
|
|
478
435
|
"allow_discount_codes": "allowDiscountCodes",
|
|
479
436
|
"require_billing_address": "requireBillingAddress",
|
|
@@ -492,7 +449,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
|
|
|
492
449
|
"customer_tax_id": "customerTaxId",
|
|
493
450
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
494
451
|
"billing_address_fields": "billingAddressFields",
|
|
495
|
-
"product_price": "productPrice",
|
|
496
452
|
"attached_custom_fields": "attachedCustomFields",
|
|
497
453
|
});
|
|
498
454
|
}),
|
|
@@ -58,10 +58,6 @@ export type CheckoutPublicConfirmedCustomFieldData =
|
|
|
58
58
|
| boolean
|
|
59
59
|
| Date;
|
|
60
60
|
|
|
61
|
-
export type CheckoutPublicConfirmedProductPrice =
|
|
62
|
-
| LegacyRecurringProductPrice
|
|
63
|
-
| ProductPrice;
|
|
64
|
-
|
|
65
61
|
export type CheckoutPublicConfirmedPrices =
|
|
66
62
|
| LegacyRecurringProductPrice
|
|
67
63
|
| ProductPrice;
|
|
@@ -181,12 +177,6 @@ export type CheckoutPublicConfirmed = {
|
|
|
181
177
|
* ID of the product to checkout.
|
|
182
178
|
*/
|
|
183
179
|
productId: string | null;
|
|
184
|
-
/**
|
|
185
|
-
* ID of the product price to checkout.
|
|
186
|
-
*
|
|
187
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
188
|
-
*/
|
|
189
|
-
productPriceId: string | null;
|
|
190
180
|
/**
|
|
191
181
|
* ID of the discount applied to the checkout.
|
|
192
182
|
*/
|
|
@@ -247,12 +237,6 @@ export type CheckoutPublicConfirmed = {
|
|
|
247
237
|
* Product selected to checkout.
|
|
248
238
|
*/
|
|
249
239
|
product: CheckoutProduct | null;
|
|
250
|
-
/**
|
|
251
|
-
* Price of the selected product.
|
|
252
|
-
*
|
|
253
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
254
|
-
*/
|
|
255
|
-
productPrice: LegacyRecurringProductPrice | ProductPrice | null;
|
|
256
240
|
/**
|
|
257
241
|
* Mapping of product IDs to their list of prices.
|
|
258
242
|
*/
|
|
@@ -290,26 +274,6 @@ export function checkoutPublicConfirmedCustomFieldDataFromJSON(
|
|
|
290
274
|
);
|
|
291
275
|
}
|
|
292
276
|
|
|
293
|
-
/** @internal */
|
|
294
|
-
export const CheckoutPublicConfirmedProductPrice$inboundSchema: z.ZodMiniType<
|
|
295
|
-
CheckoutPublicConfirmedProductPrice,
|
|
296
|
-
unknown
|
|
297
|
-
> = smartUnion([
|
|
298
|
-
LegacyRecurringProductPrice$inboundSchema,
|
|
299
|
-
ProductPrice$inboundSchema,
|
|
300
|
-
]);
|
|
301
|
-
|
|
302
|
-
export function checkoutPublicConfirmedProductPriceFromJSON(
|
|
303
|
-
jsonString: string,
|
|
304
|
-
): SafeParseResult<CheckoutPublicConfirmedProductPrice, SDKValidationError> {
|
|
305
|
-
return safeParse(
|
|
306
|
-
jsonString,
|
|
307
|
-
(x) =>
|
|
308
|
-
CheckoutPublicConfirmedProductPrice$inboundSchema.parse(JSON.parse(x)),
|
|
309
|
-
`Failed to parse 'CheckoutPublicConfirmedProductPrice' from JSON`,
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
277
|
/** @internal */
|
|
314
278
|
export const CheckoutPublicConfirmedPrices$inboundSchema: z.ZodMiniType<
|
|
315
279
|
CheckoutPublicConfirmedPrices,
|
|
@@ -407,7 +371,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
|
|
|
407
371
|
),
|
|
408
372
|
organization_id: z.string(),
|
|
409
373
|
product_id: z.nullable(z.string()),
|
|
410
|
-
product_price_id: z.nullable(z.string()),
|
|
411
374
|
discount_id: z.nullable(z.string()),
|
|
412
375
|
allow_discount_codes: z.boolean(),
|
|
413
376
|
require_billing_address: z.boolean(),
|
|
@@ -429,12 +392,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
|
|
|
429
392
|
billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
|
|
430
393
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
431
394
|
product: z.nullable(CheckoutProduct$inboundSchema),
|
|
432
|
-
product_price: z.nullable(
|
|
433
|
-
smartUnion([
|
|
434
|
-
LegacyRecurringProductPrice$inboundSchema,
|
|
435
|
-
ProductPrice$inboundSchema,
|
|
436
|
-
]),
|
|
437
|
-
),
|
|
438
395
|
prices: z.nullable(
|
|
439
396
|
z.record(
|
|
440
397
|
z.string(),
|
|
@@ -482,7 +439,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
|
|
|
482
439
|
"trial_end": "trialEnd",
|
|
483
440
|
"organization_id": "organizationId",
|
|
484
441
|
"product_id": "productId",
|
|
485
|
-
"product_price_id": "productPriceId",
|
|
486
442
|
"discount_id": "discountId",
|
|
487
443
|
"allow_discount_codes": "allowDiscountCodes",
|
|
488
444
|
"require_billing_address": "requireBillingAddress",
|
|
@@ -501,7 +457,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
|
|
|
501
457
|
"customer_tax_id": "customerTaxId",
|
|
502
458
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
503
459
|
"billing_address_fields": "billingAddressFields",
|
|
504
|
-
"product_price": "productPrice",
|
|
505
460
|
"attached_custom_fields": "attachedCustomFields",
|
|
506
461
|
"customer_session_token": "customerSessionToken",
|
|
507
462
|
});
|
|
@@ -39,12 +39,6 @@ export type CheckoutUpdate = {
|
|
|
39
39
|
* ID of the product to checkout. Must be present in the checkout's product list.
|
|
40
40
|
*/
|
|
41
41
|
productId?: string | null | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* ID of the product price to checkout. Must correspond to a price present in the checkout's product list.
|
|
44
|
-
*
|
|
45
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
46
|
-
*/
|
|
47
|
-
productPriceId?: string | null | undefined;
|
|
48
42
|
amount?: number | null | undefined;
|
|
49
43
|
/**
|
|
50
44
|
* Number of seats for seat-based pricing.
|
|
@@ -210,7 +204,6 @@ export type CheckoutUpdate$Outbound = {
|
|
|
210
204
|
| { [k: string]: string | number | boolean | string | null }
|
|
211
205
|
| undefined;
|
|
212
206
|
product_id?: string | null | undefined;
|
|
213
|
-
product_price_id?: string | null | undefined;
|
|
214
207
|
amount?: number | null | undefined;
|
|
215
208
|
seats?: number | null | undefined;
|
|
216
209
|
is_business_customer?: boolean | null | undefined;
|
|
@@ -258,7 +251,6 @@ export const CheckoutUpdate$outboundSchema: z.ZodMiniType<
|
|
|
258
251
|
),
|
|
259
252
|
),
|
|
260
253
|
productId: z.optional(z.nullable(z.string())),
|
|
261
|
-
productPriceId: z.optional(z.nullable(z.string())),
|
|
262
254
|
amount: z.optional(z.nullable(z.int())),
|
|
263
255
|
seats: z.optional(z.nullable(z.int())),
|
|
264
256
|
isBusinessCustomer: z.optional(z.nullable(z.boolean())),
|
|
@@ -298,7 +290,6 @@ export const CheckoutUpdate$outboundSchema: z.ZodMiniType<
|
|
|
298
290
|
return remap$(v, {
|
|
299
291
|
customFieldData: "custom_field_data",
|
|
300
292
|
productId: "product_id",
|
|
301
|
-
productPriceId: "product_price_id",
|
|
302
293
|
isBusinessCustomer: "is_business_customer",
|
|
303
294
|
customerName: "customer_name",
|
|
304
295
|
customerEmail: "customer_email",
|
|
@@ -31,12 +31,6 @@ export type CheckoutUpdatePublic = {
|
|
|
31
31
|
* ID of the product to checkout. Must be present in the checkout's product list.
|
|
32
32
|
*/
|
|
33
33
|
productId?: string | null | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* ID of the product price to checkout. Must correspond to a price present in the checkout's product list.
|
|
36
|
-
*
|
|
37
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
|
-
*/
|
|
39
|
-
productPriceId?: string | null | undefined;
|
|
40
34
|
amount?: number | null | undefined;
|
|
41
35
|
/**
|
|
42
36
|
* Number of seats for seat-based pricing.
|
|
@@ -93,7 +87,6 @@ export type CheckoutUpdatePublic$Outbound = {
|
|
|
93
87
|
| { [k: string]: string | number | boolean | string | null }
|
|
94
88
|
| undefined;
|
|
95
89
|
product_id?: string | null | undefined;
|
|
96
|
-
product_price_id?: string | null | undefined;
|
|
97
90
|
amount?: number | null | undefined;
|
|
98
91
|
seats?: number | null | undefined;
|
|
99
92
|
is_business_customer?: boolean | null | undefined;
|
|
@@ -127,7 +120,6 @@ export const CheckoutUpdatePublic$outboundSchema: z.ZodMiniType<
|
|
|
127
120
|
),
|
|
128
121
|
),
|
|
129
122
|
productId: z.optional(z.nullable(z.string())),
|
|
130
|
-
productPriceId: z.optional(z.nullable(z.string())),
|
|
131
123
|
amount: z.optional(z.nullable(z.int())),
|
|
132
124
|
seats: z.optional(z.nullable(z.int())),
|
|
133
125
|
isBusinessCustomer: z.optional(z.nullable(z.boolean())),
|
|
@@ -144,7 +136,6 @@ export const CheckoutUpdatePublic$outboundSchema: z.ZodMiniType<
|
|
|
144
136
|
return remap$(v, {
|
|
145
137
|
customFieldData: "custom_field_data",
|
|
146
138
|
productId: "product_id",
|
|
147
|
-
productPriceId: "product_price_id",
|
|
148
139
|
isBusinessCustomer: "is_business_customer",
|
|
149
140
|
customerName: "customer_name",
|
|
150
141
|
customerEmail: "customer_email",
|
|
@@ -53,7 +53,7 @@ export type Customer = {
|
|
|
53
53
|
/**
|
|
54
54
|
* The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
|
|
55
55
|
*/
|
|
56
|
-
externalId
|
|
56
|
+
externalId?: string | null | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* The email address of the customer. This must be unique within the organization.
|
|
59
59
|
*/
|
|
@@ -123,7 +123,7 @@ export const Customer$inboundSchema: z.ZodMiniType<Customer, unknown> = z.pipe(
|
|
|
123
123
|
z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
124
124
|
),
|
|
125
125
|
metadata: z.record(z.string(), MetadataOutputType$inboundSchema),
|
|
126
|
-
external_id: z.nullable(z.string()),
|
|
126
|
+
external_id: z.optional(z.nullable(z.string())),
|
|
127
127
|
email: z.string(),
|
|
128
128
|
email_verified: z.boolean(),
|
|
129
129
|
type: z.optional(z.nullable(CustomerType$inboundSchema)),
|
|
@@ -159,7 +159,7 @@ export type Customer$Outbound = {
|
|
|
159
159
|
created_at: string;
|
|
160
160
|
modified_at: string | null;
|
|
161
161
|
metadata: { [k: string]: MetadataOutputType$Outbound };
|
|
162
|
-
external_id
|
|
162
|
+
external_id?: string | null | undefined;
|
|
163
163
|
email: string;
|
|
164
164
|
email_verified: boolean;
|
|
165
165
|
type?: string | null | undefined;
|
|
@@ -182,7 +182,7 @@ export const Customer$outboundSchema: z.ZodMiniType<
|
|
|
182
182
|
createdAt: z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
183
183
|
modifiedAt: z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
184
184
|
metadata: z.record(z.string(), MetadataOutputType$outboundSchema),
|
|
185
|
-
externalId: z.nullable(z.string()),
|
|
185
|
+
externalId: z.optional(z.nullable(z.string())),
|
|
186
186
|
email: z.string(),
|
|
187
187
|
emailVerified: z.boolean(),
|
|
188
188
|
type: z.optional(z.nullable(CustomerType$outboundSchema)),
|
|
@@ -19,6 +19,10 @@ import {
|
|
|
19
19
|
CustomerBenefitGrantDownloadables,
|
|
20
20
|
CustomerBenefitGrantDownloadables$inboundSchema,
|
|
21
21
|
} from "./customerbenefitgrantdownloadables.js";
|
|
22
|
+
import {
|
|
23
|
+
CustomerBenefitGrantFeatureFlag,
|
|
24
|
+
CustomerBenefitGrantFeatureFlag$inboundSchema,
|
|
25
|
+
} from "./customerbenefitgrantfeatureflag.js";
|
|
22
26
|
import {
|
|
23
27
|
CustomerBenefitGrantGitHubRepository,
|
|
24
28
|
CustomerBenefitGrantGitHubRepository$inboundSchema,
|
|
@@ -38,7 +42,8 @@ export type CustomerBenefitGrant =
|
|
|
38
42
|
| CustomerBenefitGrantDownloadables
|
|
39
43
|
| CustomerBenefitGrantLicenseKeys
|
|
40
44
|
| CustomerBenefitGrantCustom
|
|
41
|
-
| CustomerBenefitGrantMeterCredit
|
|
45
|
+
| CustomerBenefitGrantMeterCredit
|
|
46
|
+
| CustomerBenefitGrantFeatureFlag;
|
|
42
47
|
|
|
43
48
|
/** @internal */
|
|
44
49
|
export const CustomerBenefitGrant$inboundSchema: z.ZodMiniType<
|
|
@@ -51,6 +56,7 @@ export const CustomerBenefitGrant$inboundSchema: z.ZodMiniType<
|
|
|
51
56
|
CustomerBenefitGrantLicenseKeys$inboundSchema,
|
|
52
57
|
CustomerBenefitGrantCustom$inboundSchema,
|
|
53
58
|
CustomerBenefitGrantMeterCredit$inboundSchema,
|
|
59
|
+
CustomerBenefitGrantFeatureFlag$inboundSchema,
|
|
54
60
|
]);
|
|
55
61
|
|
|
56
62
|
export function customerBenefitGrantFromJSON(
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
BenefitFeatureFlagSubscriber,
|
|
12
|
+
BenefitFeatureFlagSubscriber$inboundSchema,
|
|
13
|
+
} from "./benefitfeatureflagsubscriber.js";
|
|
14
|
+
import {
|
|
15
|
+
BenefitGrantError,
|
|
16
|
+
BenefitGrantError$inboundSchema,
|
|
17
|
+
} from "./benefitgranterror.js";
|
|
18
|
+
import {
|
|
19
|
+
BenefitGrantFeatureFlagProperties,
|
|
20
|
+
BenefitGrantFeatureFlagProperties$inboundSchema,
|
|
21
|
+
} from "./benefitgrantfeatureflagproperties.js";
|
|
22
|
+
import {
|
|
23
|
+
CustomerPortalCustomer,
|
|
24
|
+
CustomerPortalCustomer$inboundSchema,
|
|
25
|
+
} from "./customerportalcustomer.js";
|
|
26
|
+
|
|
27
|
+
export type CustomerBenefitGrantFeatureFlag = {
|
|
28
|
+
/**
|
|
29
|
+
* Creation timestamp of the object.
|
|
30
|
+
*/
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
/**
|
|
33
|
+
* Last modification timestamp of the object.
|
|
34
|
+
*/
|
|
35
|
+
modifiedAt: Date | null;
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the object.
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
grantedAt: Date | null;
|
|
41
|
+
revokedAt: Date | null;
|
|
42
|
+
customerId: string;
|
|
43
|
+
memberId?: string | null | undefined;
|
|
44
|
+
benefitId: string;
|
|
45
|
+
subscriptionId: string | null;
|
|
46
|
+
orderId: string | null;
|
|
47
|
+
isGranted: boolean;
|
|
48
|
+
isRevoked: boolean;
|
|
49
|
+
error?: BenefitGrantError | null | undefined;
|
|
50
|
+
customer: CustomerPortalCustomer;
|
|
51
|
+
benefit: BenefitFeatureFlagSubscriber;
|
|
52
|
+
properties: BenefitGrantFeatureFlagProperties;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const CustomerBenefitGrantFeatureFlag$inboundSchema: z.ZodMiniType<
|
|
57
|
+
CustomerBenefitGrantFeatureFlag,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.pipe(
|
|
60
|
+
z.object({
|
|
61
|
+
created_at: z.pipe(
|
|
62
|
+
z.iso.datetime({ offset: true }),
|
|
63
|
+
z.transform(v => new Date(v)),
|
|
64
|
+
),
|
|
65
|
+
modified_at: z.nullable(
|
|
66
|
+
z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
67
|
+
),
|
|
68
|
+
id: z.string(),
|
|
69
|
+
granted_at: z.nullable(
|
|
70
|
+
z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
71
|
+
),
|
|
72
|
+
revoked_at: z.nullable(
|
|
73
|
+
z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
74
|
+
),
|
|
75
|
+
customer_id: z.string(),
|
|
76
|
+
member_id: z.optional(z.nullable(z.string())),
|
|
77
|
+
benefit_id: z.string(),
|
|
78
|
+
subscription_id: z.nullable(z.string()),
|
|
79
|
+
order_id: z.nullable(z.string()),
|
|
80
|
+
is_granted: z.boolean(),
|
|
81
|
+
is_revoked: z.boolean(),
|
|
82
|
+
error: z.optional(z.nullable(BenefitGrantError$inboundSchema)),
|
|
83
|
+
customer: CustomerPortalCustomer$inboundSchema,
|
|
84
|
+
benefit: BenefitFeatureFlagSubscriber$inboundSchema,
|
|
85
|
+
properties: BenefitGrantFeatureFlagProperties$inboundSchema,
|
|
86
|
+
}),
|
|
87
|
+
z.transform((v) => {
|
|
88
|
+
return remap$(v, {
|
|
89
|
+
"created_at": "createdAt",
|
|
90
|
+
"modified_at": "modifiedAt",
|
|
91
|
+
"granted_at": "grantedAt",
|
|
92
|
+
"revoked_at": "revokedAt",
|
|
93
|
+
"customer_id": "customerId",
|
|
94
|
+
"member_id": "memberId",
|
|
95
|
+
"benefit_id": "benefitId",
|
|
96
|
+
"subscription_id": "subscriptionId",
|
|
97
|
+
"order_id": "orderId",
|
|
98
|
+
"is_granted": "isGranted",
|
|
99
|
+
"is_revoked": "isRevoked",
|
|
100
|
+
});
|
|
101
|
+
}),
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
export function customerBenefitGrantFeatureFlagFromJSON(
|
|
105
|
+
jsonString: string,
|
|
106
|
+
): SafeParseResult<CustomerBenefitGrantFeatureFlag, SDKValidationError> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) => CustomerBenefitGrantFeatureFlag$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'CustomerBenefitGrantFeatureFlag' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|