@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
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
|
|
8
|
+
export type CustomerBenefitGrantFeatureFlagUpdate = {
|
|
9
|
+
benefitType: "feature_flag";
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type CustomerBenefitGrantFeatureFlagUpdate$Outbound = {
|
|
14
|
+
benefit_type: "feature_flag";
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CustomerBenefitGrantFeatureFlagUpdate$outboundSchema:
|
|
19
|
+
z.ZodMiniType<
|
|
20
|
+
CustomerBenefitGrantFeatureFlagUpdate$Outbound,
|
|
21
|
+
CustomerBenefitGrantFeatureFlagUpdate
|
|
22
|
+
> = z.pipe(
|
|
23
|
+
z.object({
|
|
24
|
+
benefitType: z.literal("feature_flag"),
|
|
25
|
+
}),
|
|
26
|
+
z.transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
benefitType: "benefit_type",
|
|
29
|
+
});
|
|
30
|
+
}),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
export function customerBenefitGrantFeatureFlagUpdateToJSON(
|
|
34
|
+
customerBenefitGrantFeatureFlagUpdate: CustomerBenefitGrantFeatureFlagUpdate,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
CustomerBenefitGrantFeatureFlagUpdate$outboundSchema.parse(
|
|
38
|
+
customerBenefitGrantFeatureFlagUpdate,
|
|
39
|
+
),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -18,6 +18,11 @@ import {
|
|
|
18
18
|
CustomerBenefitGrantDownloadablesUpdate$Outbound,
|
|
19
19
|
CustomerBenefitGrantDownloadablesUpdate$outboundSchema,
|
|
20
20
|
} from "./customerbenefitgrantdownloadablesupdate.js";
|
|
21
|
+
import {
|
|
22
|
+
CustomerBenefitGrantFeatureFlagUpdate,
|
|
23
|
+
CustomerBenefitGrantFeatureFlagUpdate$Outbound,
|
|
24
|
+
CustomerBenefitGrantFeatureFlagUpdate$outboundSchema,
|
|
25
|
+
} from "./customerbenefitgrantfeatureflagupdate.js";
|
|
21
26
|
import {
|
|
22
27
|
CustomerBenefitGrantGitHubRepositoryUpdate,
|
|
23
28
|
CustomerBenefitGrantGitHubRepositoryUpdate$Outbound,
|
|
@@ -38,6 +43,7 @@ export type CustomerBenefitGrantUpdate =
|
|
|
38
43
|
| CustomerBenefitGrantCustomUpdate
|
|
39
44
|
| CustomerBenefitGrantDiscordUpdate
|
|
40
45
|
| CustomerBenefitGrantDownloadablesUpdate
|
|
46
|
+
| CustomerBenefitGrantFeatureFlagUpdate
|
|
41
47
|
| CustomerBenefitGrantGitHubRepositoryUpdate
|
|
42
48
|
| CustomerBenefitGrantLicenseKeysUpdate
|
|
43
49
|
| CustomerBenefitGrantMeterCreditUpdate;
|
|
@@ -47,6 +53,7 @@ export type CustomerBenefitGrantUpdate$Outbound =
|
|
|
47
53
|
| CustomerBenefitGrantCustomUpdate$Outbound
|
|
48
54
|
| CustomerBenefitGrantDiscordUpdate$Outbound
|
|
49
55
|
| CustomerBenefitGrantDownloadablesUpdate$Outbound
|
|
56
|
+
| CustomerBenefitGrantFeatureFlagUpdate$Outbound
|
|
50
57
|
| CustomerBenefitGrantGitHubRepositoryUpdate$Outbound
|
|
51
58
|
| CustomerBenefitGrantLicenseKeysUpdate$Outbound
|
|
52
59
|
| CustomerBenefitGrantMeterCreditUpdate$Outbound;
|
|
@@ -59,6 +66,7 @@ export const CustomerBenefitGrantUpdate$outboundSchema: z.ZodMiniType<
|
|
|
59
66
|
CustomerBenefitGrantCustomUpdate$outboundSchema,
|
|
60
67
|
CustomerBenefitGrantDiscordUpdate$outboundSchema,
|
|
61
68
|
CustomerBenefitGrantDownloadablesUpdate$outboundSchema,
|
|
69
|
+
CustomerBenefitGrantFeatureFlagUpdate$outboundSchema,
|
|
62
70
|
CustomerBenefitGrantGitHubRepositoryUpdate$outboundSchema,
|
|
63
71
|
CustomerBenefitGrantLicenseKeysUpdate$outboundSchema,
|
|
64
72
|
CustomerBenefitGrantMeterCreditUpdate$outboundSchema,
|
|
@@ -104,10 +104,6 @@ export type CustomerOrder = {
|
|
|
104
104
|
discountId: string | null;
|
|
105
105
|
subscriptionId: string | null;
|
|
106
106
|
checkoutId: string | null;
|
|
107
|
-
/**
|
|
108
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
109
|
-
*/
|
|
110
|
-
userId: string;
|
|
111
107
|
product: CustomerOrderProduct | null;
|
|
112
108
|
subscription: CustomerOrderSubscription | null;
|
|
113
109
|
/**
|
|
@@ -161,7 +157,6 @@ export const CustomerOrder$inboundSchema: z.ZodMiniType<
|
|
|
161
157
|
discount_id: z.nullable(z.string()),
|
|
162
158
|
subscription_id: z.nullable(z.string()),
|
|
163
159
|
checkout_id: z.nullable(z.string()),
|
|
164
|
-
user_id: z.string(),
|
|
165
160
|
product: z.nullable(CustomerOrderProduct$inboundSchema),
|
|
166
161
|
subscription: z.nullable(CustomerOrderSubscription$inboundSchema),
|
|
167
162
|
items: z.array(OrderItemSchema$inboundSchema),
|
|
@@ -196,7 +191,6 @@ export const CustomerOrder$inboundSchema: z.ZodMiniType<
|
|
|
196
191
|
"discount_id": "discountId",
|
|
197
192
|
"subscription_id": "subscriptionId",
|
|
198
193
|
"checkout_id": "checkoutId",
|
|
199
|
-
"user_id": "userId",
|
|
200
194
|
"next_payment_attempt_at": "nextPaymentAttemptAt",
|
|
201
195
|
});
|
|
202
196
|
}),
|
|
@@ -77,7 +77,7 @@ export type CustomerState = {
|
|
|
77
77
|
/**
|
|
78
78
|
* The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
|
|
79
79
|
*/
|
|
80
|
-
externalId
|
|
80
|
+
externalId?: string | null | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* The email address of the customer. This must be unique within the organization.
|
|
83
83
|
*/
|
|
@@ -166,7 +166,7 @@ export const CustomerState$inboundSchema: z.ZodMiniType<
|
|
|
166
166
|
z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
167
167
|
),
|
|
168
168
|
metadata: z.record(z.string(), MetadataOutputType$inboundSchema),
|
|
169
|
-
external_id: z.nullable(z.string()),
|
|
169
|
+
external_id: z.optional(z.nullable(z.string())),
|
|
170
170
|
email: z.string(),
|
|
171
171
|
email_verified: z.boolean(),
|
|
172
172
|
type: z.optional(z.nullable(CustomerType$inboundSchema)),
|
|
@@ -208,7 +208,7 @@ export type CustomerState$Outbound = {
|
|
|
208
208
|
created_at: string;
|
|
209
209
|
modified_at: string | null;
|
|
210
210
|
metadata: { [k: string]: MetadataOutputType$Outbound };
|
|
211
|
-
external_id
|
|
211
|
+
external_id?: string | null | undefined;
|
|
212
212
|
email: string;
|
|
213
213
|
email_verified: boolean;
|
|
214
214
|
type?: string | null | undefined;
|
|
@@ -234,7 +234,7 @@ export const CustomerState$outboundSchema: z.ZodMiniType<
|
|
|
234
234
|
createdAt: z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
235
235
|
modifiedAt: z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
236
236
|
metadata: z.record(z.string(), MetadataOutputType$outboundSchema),
|
|
237
|
-
externalId: z.nullable(z.string()),
|
|
237
|
+
externalId: z.optional(z.nullable(z.string())),
|
|
238
238
|
email: z.string(),
|
|
239
239
|
emailVerified: z.boolean(),
|
|
240
240
|
type: z.optional(z.nullable(CustomerType$outboundSchema)),
|
|
@@ -26,6 +26,12 @@ import {
|
|
|
26
26
|
BenefitGrantDownloadablesProperties$Outbound,
|
|
27
27
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
28
28
|
} from "./benefitgrantdownloadablesproperties.js";
|
|
29
|
+
import {
|
|
30
|
+
BenefitGrantFeatureFlagProperties,
|
|
31
|
+
BenefitGrantFeatureFlagProperties$inboundSchema,
|
|
32
|
+
BenefitGrantFeatureFlagProperties$Outbound,
|
|
33
|
+
BenefitGrantFeatureFlagProperties$outboundSchema,
|
|
34
|
+
} from "./benefitgrantfeatureflagproperties.js";
|
|
29
35
|
import {
|
|
30
36
|
BenefitGrantGitHubRepositoryProperties,
|
|
31
37
|
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
@@ -55,7 +61,8 @@ export type CustomerStateBenefitGrantProperties =
|
|
|
55
61
|
| BenefitGrantGitHubRepositoryProperties
|
|
56
62
|
| BenefitGrantDownloadablesProperties
|
|
57
63
|
| BenefitGrantLicenseKeysProperties
|
|
58
|
-
| BenefitGrantCustomProperties
|
|
64
|
+
| BenefitGrantCustomProperties
|
|
65
|
+
| BenefitGrantFeatureFlagProperties;
|
|
59
66
|
|
|
60
67
|
/**
|
|
61
68
|
* An active benefit grant for a customer.
|
|
@@ -88,7 +95,8 @@ export type CustomerStateBenefitGrant = {
|
|
|
88
95
|
| BenefitGrantGitHubRepositoryProperties
|
|
89
96
|
| BenefitGrantDownloadablesProperties
|
|
90
97
|
| BenefitGrantLicenseKeysProperties
|
|
91
|
-
| BenefitGrantCustomProperties
|
|
98
|
+
| BenefitGrantCustomProperties
|
|
99
|
+
| BenefitGrantFeatureFlagProperties;
|
|
92
100
|
};
|
|
93
101
|
|
|
94
102
|
/** @internal */
|
|
@@ -101,6 +109,7 @@ export const CustomerStateBenefitGrantProperties$inboundSchema: z.ZodMiniType<
|
|
|
101
109
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
102
110
|
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
103
111
|
BenefitGrantCustomProperties$inboundSchema,
|
|
112
|
+
BenefitGrantFeatureFlagProperties$inboundSchema,
|
|
104
113
|
]);
|
|
105
114
|
/** @internal */
|
|
106
115
|
export type CustomerStateBenefitGrantProperties$Outbound =
|
|
@@ -108,7 +117,8 @@ export type CustomerStateBenefitGrantProperties$Outbound =
|
|
|
108
117
|
| BenefitGrantGitHubRepositoryProperties$Outbound
|
|
109
118
|
| BenefitGrantDownloadablesProperties$Outbound
|
|
110
119
|
| BenefitGrantLicenseKeysProperties$Outbound
|
|
111
|
-
| BenefitGrantCustomProperties$Outbound
|
|
120
|
+
| BenefitGrantCustomProperties$Outbound
|
|
121
|
+
| BenefitGrantFeatureFlagProperties$Outbound;
|
|
112
122
|
|
|
113
123
|
/** @internal */
|
|
114
124
|
export const CustomerStateBenefitGrantProperties$outboundSchema: z.ZodMiniType<
|
|
@@ -120,6 +130,7 @@ export const CustomerStateBenefitGrantProperties$outboundSchema: z.ZodMiniType<
|
|
|
120
130
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
121
131
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
122
132
|
BenefitGrantCustomProperties$outboundSchema,
|
|
133
|
+
BenefitGrantFeatureFlagProperties$outboundSchema,
|
|
123
134
|
]);
|
|
124
135
|
|
|
125
136
|
export function customerStateBenefitGrantPropertiesToJSON(
|
|
@@ -169,6 +180,7 @@ export const CustomerStateBenefitGrant$inboundSchema: z.ZodMiniType<
|
|
|
169
180
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
170
181
|
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
171
182
|
BenefitGrantCustomProperties$inboundSchema,
|
|
183
|
+
BenefitGrantFeatureFlagProperties$inboundSchema,
|
|
172
184
|
]),
|
|
173
185
|
}),
|
|
174
186
|
z.transform((v) => {
|
|
@@ -196,7 +208,8 @@ export type CustomerStateBenefitGrant$Outbound = {
|
|
|
196
208
|
| BenefitGrantGitHubRepositoryProperties$Outbound
|
|
197
209
|
| BenefitGrantDownloadablesProperties$Outbound
|
|
198
210
|
| BenefitGrantLicenseKeysProperties$Outbound
|
|
199
|
-
| BenefitGrantCustomProperties$Outbound
|
|
211
|
+
| BenefitGrantCustomProperties$Outbound
|
|
212
|
+
| BenefitGrantFeatureFlagProperties$Outbound;
|
|
200
213
|
};
|
|
201
214
|
|
|
202
215
|
/** @internal */
|
|
@@ -218,6 +231,7 @@ export const CustomerStateBenefitGrant$outboundSchema: z.ZodMiniType<
|
|
|
218
231
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
219
232
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
220
233
|
BenefitGrantCustomProperties$outboundSchema,
|
|
234
|
+
BenefitGrantFeatureFlagProperties$outboundSchema,
|
|
221
235
|
]),
|
|
222
236
|
}),
|
|
223
237
|
z.transform((v) => {
|
|
@@ -35,7 +35,7 @@ export type LicenseKeyCustomer = {
|
|
|
35
35
|
/**
|
|
36
36
|
* The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
|
|
37
37
|
*/
|
|
38
|
-
externalId
|
|
38
|
+
externalId?: string | null | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* The email address of the customer. This must be unique within the organization.
|
|
41
41
|
*/
|
|
@@ -97,7 +97,7 @@ export const LicenseKeyCustomer$inboundSchema: z.ZodMiniType<
|
|
|
97
97
|
z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
98
98
|
),
|
|
99
99
|
metadata: z.record(z.string(), MetadataOutputType$inboundSchema),
|
|
100
|
-
external_id: z.nullable(z.string()),
|
|
100
|
+
external_id: z.optional(z.nullable(z.string())),
|
|
101
101
|
email: z.string(),
|
|
102
102
|
email_verified: z.boolean(),
|
|
103
103
|
type: z.optional(z.nullable(CustomerType$inboundSchema)),
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Customer, Customer$inboundSchema } from "./customer.js";
|
|
10
|
+
import { Pagination, Pagination$inboundSchema } from "./pagination.js";
|
|
11
|
+
|
|
12
|
+
export type ListResourceCustomer = {
|
|
13
|
+
items: Array<Customer>;
|
|
14
|
+
pagination: Pagination;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ListResourceCustomer$inboundSchema: z.ZodMiniType<
|
|
19
|
+
ListResourceCustomer,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
items: z.array(Customer$inboundSchema),
|
|
23
|
+
pagination: Pagination$inboundSchema,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function listResourceCustomerFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<ListResourceCustomer, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => ListResourceCustomer$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'ListResourceCustomer' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -181,10 +181,6 @@ export type Order = {
|
|
|
181
181
|
*/
|
|
182
182
|
platformFeeCurrency: string | null;
|
|
183
183
|
customer: OrderCustomer;
|
|
184
|
-
/**
|
|
185
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
186
|
-
*/
|
|
187
|
-
userId: string;
|
|
188
184
|
product: OrderProduct | null;
|
|
189
185
|
discount:
|
|
190
186
|
| DiscountFixedRepeatDurationBase
|
|
@@ -339,7 +335,6 @@ export const Order$inboundSchema: z.ZodMiniType<Order, unknown> = z.pipe(
|
|
|
339
335
|
platform_fee_amount: z.int(),
|
|
340
336
|
platform_fee_currency: z.nullable(z.string()),
|
|
341
337
|
customer: OrderCustomer$inboundSchema,
|
|
342
|
-
user_id: z.string(),
|
|
343
338
|
product: z.nullable(OrderProduct$inboundSchema),
|
|
344
339
|
discount: z.nullable(
|
|
345
340
|
smartUnion([
|
|
@@ -379,7 +374,6 @@ export const Order$inboundSchema: z.ZodMiniType<Order, unknown> = z.pipe(
|
|
|
379
374
|
"custom_field_data": "customFieldData",
|
|
380
375
|
"platform_fee_amount": "platformFeeAmount",
|
|
381
376
|
"platform_fee_currency": "platformFeeCurrency",
|
|
382
|
-
"user_id": "userId",
|
|
383
377
|
});
|
|
384
378
|
}),
|
|
385
379
|
);
|
|
@@ -418,7 +412,6 @@ export type Order$Outbound = {
|
|
|
418
412
|
platform_fee_amount: number;
|
|
419
413
|
platform_fee_currency: string | null;
|
|
420
414
|
customer: OrderCustomer$Outbound;
|
|
421
|
-
user_id: string;
|
|
422
415
|
product: OrderProduct$Outbound | null;
|
|
423
416
|
discount:
|
|
424
417
|
| DiscountFixedRepeatDurationBase$Outbound
|
|
@@ -480,7 +473,6 @@ export const Order$outboundSchema: z.ZodMiniType<Order$Outbound, Order> = z
|
|
|
480
473
|
platformFeeAmount: z.int(),
|
|
481
474
|
platformFeeCurrency: z.nullable(z.string()),
|
|
482
475
|
customer: OrderCustomer$outboundSchema,
|
|
483
|
-
userId: z.string(),
|
|
484
476
|
product: z.nullable(OrderProduct$outboundSchema),
|
|
485
477
|
discount: z.nullable(
|
|
486
478
|
smartUnion([
|
|
@@ -520,7 +512,6 @@ export const Order$outboundSchema: z.ZodMiniType<Order$Outbound, Order> = z
|
|
|
520
512
|
customFieldData: "custom_field_data",
|
|
521
513
|
platformFeeAmount: "platform_fee_amount",
|
|
522
514
|
platformFeeCurrency: "platform_fee_currency",
|
|
523
|
-
userId: "user_id",
|
|
524
515
|
});
|
|
525
516
|
}),
|
|
526
517
|
);
|
|
@@ -50,7 +50,7 @@ export type OrderCustomer = {
|
|
|
50
50
|
/**
|
|
51
51
|
* The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
|
|
52
52
|
*/
|
|
53
|
-
externalId
|
|
53
|
+
externalId?: string | null | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* The email address of the customer. This must be unique within the organization.
|
|
56
56
|
*/
|
|
@@ -127,7 +127,7 @@ export const OrderCustomer$inboundSchema: z.ZodMiniType<
|
|
|
127
127
|
z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
128
128
|
),
|
|
129
129
|
metadata: z.record(z.string(), MetadataOutputType$inboundSchema),
|
|
130
|
-
external_id: z.nullable(z.string()),
|
|
130
|
+
external_id: z.optional(z.nullable(z.string())),
|
|
131
131
|
email: z.string(),
|
|
132
132
|
email_verified: z.boolean(),
|
|
133
133
|
type: z.optional(z.nullable(CustomerType$inboundSchema)),
|
|
@@ -163,7 +163,7 @@ export type OrderCustomer$Outbound = {
|
|
|
163
163
|
created_at: string;
|
|
164
164
|
modified_at: string | null;
|
|
165
165
|
metadata: { [k: string]: MetadataOutputType$Outbound };
|
|
166
|
-
external_id
|
|
166
|
+
external_id?: string | null | undefined;
|
|
167
167
|
email: string;
|
|
168
168
|
email_verified: boolean;
|
|
169
169
|
type?: string | null | undefined;
|
|
@@ -186,7 +186,7 @@ export const OrderCustomer$outboundSchema: z.ZodMiniType<
|
|
|
186
186
|
createdAt: z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
187
187
|
modifiedAt: z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
188
188
|
metadata: z.record(z.string(), MetadataOutputType$outboundSchema),
|
|
189
|
-
externalId: z.nullable(z.string()),
|
|
189
|
+
externalId: z.optional(z.nullable(z.string())),
|
|
190
190
|
email: z.string(),
|
|
191
191
|
emailVerified: z.boolean(),
|
|
192
192
|
type: z.optional(z.nullable(CustomerType$outboundSchema)),
|
|
@@ -37,10 +37,6 @@ export type OrganizationFeatureSettings = {
|
|
|
37
37
|
* If this organization compares Tinybird results with database
|
|
38
38
|
*/
|
|
39
39
|
tinybirdCompare?: boolean | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* If this organization has multiple presentment currencies enabled
|
|
42
|
-
*/
|
|
43
|
-
presentmentCurrenciesEnabled?: boolean | undefined;
|
|
44
40
|
/**
|
|
45
41
|
* If this organization has checkout localization enabled
|
|
46
42
|
*/
|
|
@@ -60,7 +56,6 @@ export const OrganizationFeatureSettings$inboundSchema: z.ZodMiniType<
|
|
|
60
56
|
member_model_enabled: z._default(z.boolean(), false),
|
|
61
57
|
tinybird_read: z._default(z.boolean(), false),
|
|
62
58
|
tinybird_compare: z._default(z.boolean(), false),
|
|
63
|
-
presentment_currencies_enabled: z._default(z.boolean(), false),
|
|
64
59
|
checkout_localization_enabled: z._default(z.boolean(), false),
|
|
65
60
|
}),
|
|
66
61
|
z.transform((v) => {
|
|
@@ -72,7 +67,6 @@ export const OrganizationFeatureSettings$inboundSchema: z.ZodMiniType<
|
|
|
72
67
|
"member_model_enabled": "memberModelEnabled",
|
|
73
68
|
"tinybird_read": "tinybirdRead",
|
|
74
69
|
"tinybird_compare": "tinybirdCompare",
|
|
75
|
-
"presentment_currencies_enabled": "presentmentCurrenciesEnabled",
|
|
76
70
|
"checkout_localization_enabled": "checkoutLocalizationEnabled",
|
|
77
71
|
});
|
|
78
72
|
}),
|
|
@@ -86,7 +80,6 @@ export type OrganizationFeatureSettings$Outbound = {
|
|
|
86
80
|
member_model_enabled: boolean;
|
|
87
81
|
tinybird_read: boolean;
|
|
88
82
|
tinybird_compare: boolean;
|
|
89
|
-
presentment_currencies_enabled: boolean;
|
|
90
83
|
checkout_localization_enabled: boolean;
|
|
91
84
|
};
|
|
92
85
|
|
|
@@ -103,7 +96,6 @@ export const OrganizationFeatureSettings$outboundSchema: z.ZodMiniType<
|
|
|
103
96
|
memberModelEnabled: z._default(z.boolean(), false),
|
|
104
97
|
tinybirdRead: z._default(z.boolean(), false),
|
|
105
98
|
tinybirdCompare: z._default(z.boolean(), false),
|
|
106
|
-
presentmentCurrenciesEnabled: z._default(z.boolean(), false),
|
|
107
99
|
checkoutLocalizationEnabled: z._default(z.boolean(), false),
|
|
108
100
|
}),
|
|
109
101
|
z.transform((v) => {
|
|
@@ -115,7 +107,6 @@ export const OrganizationFeatureSettings$outboundSchema: z.ZodMiniType<
|
|
|
115
107
|
memberModelEnabled: "member_model_enabled",
|
|
116
108
|
tinybirdRead: "tinybird_read",
|
|
117
109
|
tinybirdCompare: "tinybird_compare",
|
|
118
|
-
presentmentCurrenciesEnabled: "presentment_currencies_enabled",
|
|
119
110
|
checkoutLocalizationEnabled: "checkout_localization_enabled",
|
|
120
111
|
});
|
|
121
112
|
}),
|
|
@@ -12,16 +12,6 @@ import {
|
|
|
12
12
|
ProductPriceSource$inboundSchema,
|
|
13
13
|
ProductPriceSource$outboundSchema,
|
|
14
14
|
} from "./productpricesource.js";
|
|
15
|
-
import {
|
|
16
|
-
ProductPriceType,
|
|
17
|
-
ProductPriceType$inboundSchema,
|
|
18
|
-
ProductPriceType$outboundSchema,
|
|
19
|
-
} from "./productpricetype.js";
|
|
20
|
-
import {
|
|
21
|
-
SubscriptionRecurringInterval,
|
|
22
|
-
SubscriptionRecurringInterval$inboundSchema,
|
|
23
|
-
SubscriptionRecurringInterval$outboundSchema,
|
|
24
|
-
} from "./subscriptionrecurringinterval.js";
|
|
25
15
|
|
|
26
16
|
/**
|
|
27
17
|
* A pay-what-you-want price for a product.
|
|
@@ -53,11 +43,6 @@ export type ProductPriceCustom = {
|
|
|
53
43
|
* The ID of the product owning the price.
|
|
54
44
|
*/
|
|
55
45
|
productId: string;
|
|
56
|
-
type: ProductPriceType;
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
59
|
-
*/
|
|
60
|
-
recurringInterval: SubscriptionRecurringInterval | null;
|
|
61
46
|
/**
|
|
62
47
|
* The minimum amount the customer can pay. If 0, the price is 'free or pay what you want'. Defaults to 50 cents.
|
|
63
48
|
*/
|
|
@@ -91,8 +76,6 @@ export const ProductPriceCustom$inboundSchema: z.ZodMiniType<
|
|
|
91
76
|
price_currency: z.string(),
|
|
92
77
|
is_archived: z.boolean(),
|
|
93
78
|
product_id: z.string(),
|
|
94
|
-
type: ProductPriceType$inboundSchema,
|
|
95
|
-
recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema),
|
|
96
79
|
minimum_amount: z.int(),
|
|
97
80
|
maximum_amount: z.nullable(z.int()),
|
|
98
81
|
preset_amount: z.nullable(z.int()),
|
|
@@ -105,7 +88,6 @@ export const ProductPriceCustom$inboundSchema: z.ZodMiniType<
|
|
|
105
88
|
"price_currency": "priceCurrency",
|
|
106
89
|
"is_archived": "isArchived",
|
|
107
90
|
"product_id": "productId",
|
|
108
|
-
"recurring_interval": "recurringInterval",
|
|
109
91
|
"minimum_amount": "minimumAmount",
|
|
110
92
|
"maximum_amount": "maximumAmount",
|
|
111
93
|
"preset_amount": "presetAmount",
|
|
@@ -122,8 +104,6 @@ export type ProductPriceCustom$Outbound = {
|
|
|
122
104
|
price_currency: string;
|
|
123
105
|
is_archived: boolean;
|
|
124
106
|
product_id: string;
|
|
125
|
-
type: string;
|
|
126
|
-
recurring_interval: string | null;
|
|
127
107
|
minimum_amount: number;
|
|
128
108
|
maximum_amount: number | null;
|
|
129
109
|
preset_amount: number | null;
|
|
@@ -143,8 +123,6 @@ export const ProductPriceCustom$outboundSchema: z.ZodMiniType<
|
|
|
143
123
|
priceCurrency: z.string(),
|
|
144
124
|
isArchived: z.boolean(),
|
|
145
125
|
productId: z.string(),
|
|
146
|
-
type: ProductPriceType$outboundSchema,
|
|
147
|
-
recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema),
|
|
148
126
|
minimumAmount: z.int(),
|
|
149
127
|
maximumAmount: z.nullable(z.int()),
|
|
150
128
|
presetAmount: z.nullable(z.int()),
|
|
@@ -157,7 +135,6 @@ export const ProductPriceCustom$outboundSchema: z.ZodMiniType<
|
|
|
157
135
|
priceCurrency: "price_currency",
|
|
158
136
|
isArchived: "is_archived",
|
|
159
137
|
productId: "product_id",
|
|
160
|
-
recurringInterval: "recurring_interval",
|
|
161
138
|
minimumAmount: "minimum_amount",
|
|
162
139
|
maximumAmount: "maximum_amount",
|
|
163
140
|
presetAmount: "preset_amount",
|
|
@@ -12,16 +12,6 @@ import {
|
|
|
12
12
|
ProductPriceSource$inboundSchema,
|
|
13
13
|
ProductPriceSource$outboundSchema,
|
|
14
14
|
} from "./productpricesource.js";
|
|
15
|
-
import {
|
|
16
|
-
ProductPriceType,
|
|
17
|
-
ProductPriceType$inboundSchema,
|
|
18
|
-
ProductPriceType$outboundSchema,
|
|
19
|
-
} from "./productpricetype.js";
|
|
20
|
-
import {
|
|
21
|
-
SubscriptionRecurringInterval,
|
|
22
|
-
SubscriptionRecurringInterval$inboundSchema,
|
|
23
|
-
SubscriptionRecurringInterval$outboundSchema,
|
|
24
|
-
} from "./subscriptionrecurringinterval.js";
|
|
25
15
|
|
|
26
16
|
/**
|
|
27
17
|
* A fixed price for a product.
|
|
@@ -53,11 +43,6 @@ export type ProductPriceFixed = {
|
|
|
53
43
|
* The ID of the product owning the price.
|
|
54
44
|
*/
|
|
55
45
|
productId: string;
|
|
56
|
-
type: ProductPriceType;
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
59
|
-
*/
|
|
60
|
-
recurringInterval: SubscriptionRecurringInterval | null;
|
|
61
46
|
/**
|
|
62
47
|
* The price in cents.
|
|
63
48
|
*/
|
|
@@ -83,8 +68,6 @@ export const ProductPriceFixed$inboundSchema: z.ZodMiniType<
|
|
|
83
68
|
price_currency: z.string(),
|
|
84
69
|
is_archived: z.boolean(),
|
|
85
70
|
product_id: z.string(),
|
|
86
|
-
type: ProductPriceType$inboundSchema,
|
|
87
|
-
recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema),
|
|
88
71
|
price_amount: z.int(),
|
|
89
72
|
}),
|
|
90
73
|
z.transform((v) => {
|
|
@@ -95,7 +78,6 @@ export const ProductPriceFixed$inboundSchema: z.ZodMiniType<
|
|
|
95
78
|
"price_currency": "priceCurrency",
|
|
96
79
|
"is_archived": "isArchived",
|
|
97
80
|
"product_id": "productId",
|
|
98
|
-
"recurring_interval": "recurringInterval",
|
|
99
81
|
"price_amount": "priceAmount",
|
|
100
82
|
});
|
|
101
83
|
}),
|
|
@@ -110,8 +92,6 @@ export type ProductPriceFixed$Outbound = {
|
|
|
110
92
|
price_currency: string;
|
|
111
93
|
is_archived: boolean;
|
|
112
94
|
product_id: string;
|
|
113
|
-
type: string;
|
|
114
|
-
recurring_interval: string | null;
|
|
115
95
|
price_amount: number;
|
|
116
96
|
};
|
|
117
97
|
|
|
@@ -129,8 +109,6 @@ export const ProductPriceFixed$outboundSchema: z.ZodMiniType<
|
|
|
129
109
|
priceCurrency: z.string(),
|
|
130
110
|
isArchived: z.boolean(),
|
|
131
111
|
productId: z.string(),
|
|
132
|
-
type: ProductPriceType$outboundSchema,
|
|
133
|
-
recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema),
|
|
134
112
|
priceAmount: z.int(),
|
|
135
113
|
}),
|
|
136
114
|
z.transform((v) => {
|
|
@@ -141,7 +119,6 @@ export const ProductPriceFixed$outboundSchema: z.ZodMiniType<
|
|
|
141
119
|
priceCurrency: "price_currency",
|
|
142
120
|
isArchived: "is_archived",
|
|
143
121
|
productId: "product_id",
|
|
144
|
-
recurringInterval: "recurring_interval",
|
|
145
122
|
priceAmount: "price_amount",
|
|
146
123
|
});
|
|
147
124
|
}),
|
|
@@ -12,16 +12,6 @@ import {
|
|
|
12
12
|
ProductPriceSource$inboundSchema,
|
|
13
13
|
ProductPriceSource$outboundSchema,
|
|
14
14
|
} from "./productpricesource.js";
|
|
15
|
-
import {
|
|
16
|
-
ProductPriceType,
|
|
17
|
-
ProductPriceType$inboundSchema,
|
|
18
|
-
ProductPriceType$outboundSchema,
|
|
19
|
-
} from "./productpricetype.js";
|
|
20
|
-
import {
|
|
21
|
-
SubscriptionRecurringInterval,
|
|
22
|
-
SubscriptionRecurringInterval$inboundSchema,
|
|
23
|
-
SubscriptionRecurringInterval$outboundSchema,
|
|
24
|
-
} from "./subscriptionrecurringinterval.js";
|
|
25
15
|
|
|
26
16
|
/**
|
|
27
17
|
* A free price for a product.
|
|
@@ -53,11 +43,6 @@ export type ProductPriceFree = {
|
|
|
53
43
|
* The ID of the product owning the price.
|
|
54
44
|
*/
|
|
55
45
|
productId: string;
|
|
56
|
-
type: ProductPriceType;
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
59
|
-
*/
|
|
60
|
-
recurringInterval: SubscriptionRecurringInterval | null;
|
|
61
46
|
};
|
|
62
47
|
|
|
63
48
|
/** @internal */
|
|
@@ -79,8 +64,6 @@ export const ProductPriceFree$inboundSchema: z.ZodMiniType<
|
|
|
79
64
|
price_currency: z.string(),
|
|
80
65
|
is_archived: z.boolean(),
|
|
81
66
|
product_id: z.string(),
|
|
82
|
-
type: ProductPriceType$inboundSchema,
|
|
83
|
-
recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema),
|
|
84
67
|
}),
|
|
85
68
|
z.transform((v) => {
|
|
86
69
|
return remap$(v, {
|
|
@@ -90,7 +73,6 @@ export const ProductPriceFree$inboundSchema: z.ZodMiniType<
|
|
|
90
73
|
"price_currency": "priceCurrency",
|
|
91
74
|
"is_archived": "isArchived",
|
|
92
75
|
"product_id": "productId",
|
|
93
|
-
"recurring_interval": "recurringInterval",
|
|
94
76
|
});
|
|
95
77
|
}),
|
|
96
78
|
);
|
|
@@ -104,8 +86,6 @@ export type ProductPriceFree$Outbound = {
|
|
|
104
86
|
price_currency: string;
|
|
105
87
|
is_archived: boolean;
|
|
106
88
|
product_id: string;
|
|
107
|
-
type: string;
|
|
108
|
-
recurring_interval: string | null;
|
|
109
89
|
};
|
|
110
90
|
|
|
111
91
|
/** @internal */
|
|
@@ -122,8 +102,6 @@ export const ProductPriceFree$outboundSchema: z.ZodMiniType<
|
|
|
122
102
|
priceCurrency: z.string(),
|
|
123
103
|
isArchived: z.boolean(),
|
|
124
104
|
productId: z.string(),
|
|
125
|
-
type: ProductPriceType$outboundSchema,
|
|
126
|
-
recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema),
|
|
127
105
|
}),
|
|
128
106
|
z.transform((v) => {
|
|
129
107
|
return remap$(v, {
|
|
@@ -133,7 +111,6 @@ export const ProductPriceFree$outboundSchema: z.ZodMiniType<
|
|
|
133
111
|
priceCurrency: "price_currency",
|
|
134
112
|
isArchived: "is_archived",
|
|
135
113
|
productId: "product_id",
|
|
136
|
-
recurringInterval: "recurring_interval",
|
|
137
114
|
});
|
|
138
115
|
}),
|
|
139
116
|
);
|