@flexprice/mcp-server 2.1.26 → 2.1.30
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/bin/mcp-server.js +4964 -4091
- package/bin/mcp-server.js.map +103 -92
- package/bun.lock +36 -36
- package/esm/funcs/invoicesExecuteInvoiceModify.d.ts +16 -0
- package/esm/funcs/invoicesExecuteInvoiceModify.d.ts.map +1 -0
- package/esm/funcs/invoicesExecuteInvoiceModify.js +88 -0
- package/esm/funcs/invoicesExecuteInvoiceModify.js.map +1 -0
- package/esm/funcs/subscriptionsCancelSubscriptionSchedule.js +1 -1
- package/esm/funcs/subscriptionsCancelSubscriptionSchedule.js.map +1 -1
- package/esm/funcs/subscriptionsGetSubscriptionSchedule.js +2 -2
- package/esm/funcs/subscriptionsGetSubscriptionSchedule.js.map +1 -1
- package/esm/funcs/subscriptionsListAllSubscriptionSchedules.js +1 -1
- package/esm/funcs/subscriptionsListAllSubscriptionSchedules.js.map +1 -1
- package/esm/funcs/subscriptionsListSubscriptionSchedules.js +2 -2
- package/esm/funcs/subscriptionsListSubscriptionSchedules.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +7 -5
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/invoicesExecuteInvoiceModify.d.ts +7 -0
- package/esm/mcp-server/tools/invoicesExecuteInvoiceModify.d.ts.map +1 -0
- package/esm/mcp-server/tools/invoicesExecuteInvoiceModify.js +35 -0
- package/esm/mcp-server/tools/invoicesExecuteInvoiceModify.js.map +1 -0
- package/esm/models/addlineitemrequest.d.ts +11 -0
- package/esm/models/addlineitemrequest.d.ts.map +1 -0
- package/esm/models/addlineitemrequest.js +14 -0
- package/esm/models/addlineitemrequest.js.map +1 -0
- package/esm/models/alertsettings.d.ts +2 -0
- package/esm/models/alertsettings.d.ts.map +1 -1
- package/esm/models/alertsettings.js +2 -0
- package/esm/models/alertsettings.js.map +1 -1
- package/esm/models/alertthresholdtype.d.ts +12 -0
- package/esm/models/alertthresholdtype.d.ts.map +1 -0
- package/esm/models/alertthresholdtype.js +13 -0
- package/esm/models/alertthresholdtype.js.map +1 -0
- package/esm/models/changedinvoice.d.ts.map +1 -1
- package/esm/models/changedinvoice.js +1 -1
- package/esm/models/changedinvoice.js.map +1 -1
- package/esm/models/changedinvoicestatus.d.ts +0 -6
- package/esm/models/changedinvoicestatus.d.ts.map +1 -1
- package/esm/models/changedinvoicestatus.js +1 -4
- package/esm/models/changedinvoicestatus.js.map +1 -1
- package/esm/models/checkoutpaymentblock.d.ts +9 -0
- package/esm/models/checkoutpaymentblock.d.ts.map +1 -0
- package/esm/models/checkoutpaymentblock.js +12 -0
- package/esm/models/checkoutpaymentblock.js.map +1 -0
- package/esm/models/checkoutpaymentprovider.d.ts +2 -0
- package/esm/models/checkoutpaymentprovider.d.ts.map +1 -1
- package/esm/models/checkoutpaymentprovider.js +2 -0
- package/esm/models/checkoutpaymentprovider.js.map +1 -1
- package/esm/models/checkoutpaymentproviderconfig.d.ts +1 -0
- package/esm/models/checkoutpaymentproviderconfig.d.ts.map +1 -1
- package/esm/models/checkoutpaymentproviderconfig.js +1 -0
- package/esm/models/checkoutpaymentproviderconfig.js.map +1 -1
- package/esm/models/checkoutsessionresponse.d.ts +5 -14
- package/esm/models/checkoutsessionresponse.d.ts.map +1 -1
- package/esm/models/checkoutsessionresponse.js +10 -20
- package/esm/models/checkoutsessionresponse.js.map +1 -1
- package/esm/models/createcustomerrequest.d.ts +2 -0
- package/esm/models/createcustomerrequest.d.ts.map +1 -1
- package/esm/models/createcustomerrequest.js +2 -0
- package/esm/models/createcustomerrequest.js.map +1 -1
- package/esm/models/createinvoicerequest.d.ts +0 -2
- package/esm/models/createinvoicerequest.d.ts.map +1 -1
- package/esm/models/createinvoicerequest.js +0 -2
- package/esm/models/createinvoicerequest.js.map +1 -1
- package/esm/models/createpricerequest.d.ts +2 -0
- package/esm/models/createpricerequest.d.ts.map +1 -1
- package/esm/models/createpricerequest.js +2 -0
- package/esm/models/createpricerequest.js.map +1 -1
- package/esm/models/createsubscriptionrequest.d.ts +1 -0
- package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
- package/esm/models/createsubscriptionrequest.js +1 -0
- package/esm/models/createsubscriptionrequest.js.map +1 -1
- package/esm/models/customcurrency.d.ts +13 -0
- package/esm/models/customcurrency.d.ts.map +1 -0
- package/esm/models/customcurrency.js +15 -0
- package/esm/models/customcurrency.js.map +1 -0
- package/esm/models/customcurrencylineitem.d.ts +9 -0
- package/esm/models/customcurrencylineitem.d.ts.map +1 -0
- package/esm/models/customcurrencylineitem.js +11 -0
- package/esm/models/customcurrencylineitem.js.map +1 -0
- package/esm/models/customer.d.ts +2 -0
- package/esm/models/customer.d.ts.map +1 -1
- package/esm/models/customer.js +2 -0
- package/esm/models/customer.js.map +1 -1
- package/esm/models/customerresponse.d.ts +2 -0
- package/esm/models/customerresponse.d.ts.map +1 -1
- package/esm/models/customerresponse.js +2 -0
- package/esm/models/customerresponse.js.map +1 -1
- package/esm/models/executeinvoicemodifyop.d.ts +12 -0
- package/esm/models/executeinvoicemodifyop.d.ts.map +1 -0
- package/esm/models/executeinvoicemodifyop.js +16 -0
- package/esm/models/executeinvoicemodifyop.js.map +1 -0
- package/esm/models/executeinvoicemodifyrequest.d.ts +9 -0
- package/esm/models/executeinvoicemodifyrequest.d.ts.map +1 -0
- package/esm/models/executeinvoicemodifyrequest.js +11 -0
- package/esm/models/executeinvoicemodifyrequest.js.map +1 -0
- package/esm/models/getsubscriptionaddonassociationsop.d.ts +2 -2
- package/esm/models/getsubscriptionaddonassociationsop.d.ts.map +1 -1
- package/esm/models/getsubscriptionaddonassociationsop.js +2 -2
- package/esm/models/getsubscriptionaddonassociationsop.js.map +1 -1
- package/esm/models/getsubscriptionscheduleop.d.ts +1 -1
- package/esm/models/getsubscriptionscheduleop.d.ts.map +1 -1
- package/esm/models/getsubscriptionscheduleop.js +1 -1
- package/esm/models/getsubscriptionscheduleop.js.map +1 -1
- package/esm/models/invoicelineitemresponse.d.ts +2 -0
- package/esm/models/invoicelineitemresponse.d.ts.map +1 -1
- package/esm/models/invoicelineitemresponse.js +2 -0
- package/esm/models/invoicelineitemresponse.js.map +1 -1
- package/esm/models/invoicemodifylineitemaction.d.ts +14 -0
- package/esm/models/invoicemodifylineitemaction.d.ts.map +1 -0
- package/esm/models/invoicemodifylineitemaction.js +15 -0
- package/esm/models/invoicemodifylineitemaction.js.map +1 -0
- package/esm/models/invoicemodifylineitemparams.d.ts +13 -0
- package/esm/models/invoicemodifylineitemparams.d.ts.map +1 -0
- package/esm/models/invoicemodifylineitemparams.js +15 -0
- package/esm/models/invoicemodifylineitemparams.js.map +1 -0
- package/esm/models/invoicemodifyresponse.d.ts +7 -0
- package/esm/models/invoicemodifyresponse.d.ts.map +1 -0
- package/esm/models/invoicemodifyresponse.js +9 -0
- package/esm/models/invoicemodifyresponse.js.map +1 -0
- package/esm/models/invoicemodifytype.d.ts +10 -0
- package/esm/models/invoicemodifytype.d.ts.map +1 -0
- package/esm/models/invoicemodifytype.js +11 -0
- package/esm/models/invoicemodifytype.js.map +1 -0
- package/esm/models/invoiceresponse.d.ts +6 -0
- package/esm/models/invoiceresponse.d.ts.map +1 -1
- package/esm/models/invoiceresponse.js +6 -0
- package/esm/models/invoiceresponse.js.map +1 -1
- package/esm/models/invoicestatus.d.ts +1 -1
- package/esm/models/listaddonassociationsresponse.d.ts +9 -0
- package/esm/models/listaddonassociationsresponse.d.ts.map +1 -0
- package/esm/models/listaddonassociationsresponse.js +11 -0
- package/esm/models/listaddonassociationsresponse.js.map +1 -0
- package/esm/models/listsubscriptionschedulesop.d.ts +1 -1
- package/esm/models/listsubscriptionschedulesop.d.ts.map +1 -1
- package/esm/models/listsubscriptionschedulesop.js +1 -1
- package/esm/models/listsubscriptionschedulesop.js.map +1 -1
- package/esm/models/meteraggregation.js +1 -1
- package/esm/models/meteraggregation.js.map +1 -1
- package/esm/models/overridelineitemrequest.d.ts +2 -0
- package/esm/models/overridelineitemrequest.d.ts.map +1 -1
- package/esm/models/overridelineitemrequest.js +2 -0
- package/esm/models/overridelineitemrequest.js.map +1 -1
- package/esm/models/paymentstatus.d.ts +1 -1
- package/esm/models/priceprice.d.ts +2 -0
- package/esm/models/priceprice.d.ts.map +1 -1
- package/esm/models/priceprice.js +2 -0
- package/esm/models/priceprice.js.map +1 -1
- package/esm/models/priceresponse.d.ts +2 -0
- package/esm/models/priceresponse.d.ts.map +1 -1
- package/esm/models/priceresponse.js +2 -0
- package/esm/models/priceresponse.js.map +1 -1
- package/esm/models/subscriptionpricecreaterequest.d.ts +2 -0
- package/esm/models/subscriptionpricecreaterequest.d.ts.map +1 -1
- package/esm/models/subscriptionpricecreaterequest.js +2 -0
- package/esm/models/subscriptionpricecreaterequest.js.map +1 -1
- package/esm/models/taxappliedresponse.d.ts +2 -0
- package/esm/models/taxappliedresponse.d.ts.map +1 -1
- package/esm/models/taxappliedresponse.js +2 -0
- package/esm/models/taxappliedresponse.js.map +1 -1
- package/esm/models/taxbehavior.d.ts +12 -0
- package/esm/models/taxbehavior.d.ts.map +1 -0
- package/esm/models/taxbehavior.js +13 -0
- package/esm/models/taxbehavior.js.map +1 -0
- package/esm/models/taxexemptionreasoncode.d.ts +12 -0
- package/esm/models/taxexemptionreasoncode.d.ts.map +1 -0
- package/esm/models/taxexemptionreasoncode.js +13 -0
- package/esm/models/taxexemptionreasoncode.js.map +1 -0
- package/esm/models/taxexemptionsummary.d.ts +8 -0
- package/esm/models/taxexemptionsummary.d.ts.map +1 -0
- package/esm/models/taxexemptionsummary.js +11 -0
- package/esm/models/taxexemptionsummary.js.map +1 -0
- package/esm/models/taxrateoverride.d.ts +2 -0
- package/esm/models/taxrateoverride.d.ts.map +1 -1
- package/esm/models/taxrateoverride.js +2 -0
- package/esm/models/taxrateoverride.js.map +1 -1
- package/esm/models/taxrateresponse.d.ts +0 -1
- package/esm/models/taxrateresponse.d.ts.map +1 -1
- package/esm/models/taxrateresponse.js +0 -1
- package/esm/models/taxrateresponse.js.map +1 -1
- package/esm/models/taxratetype.d.ts +0 -2
- package/esm/models/taxratetype.d.ts.map +1 -1
- package/esm/models/taxratetype.js +0 -2
- package/esm/models/taxratetype.js.map +1 -1
- package/esm/models/taxsummary.d.ts +10 -0
- package/esm/models/taxsummary.d.ts.map +1 -0
- package/esm/models/taxsummary.js +12 -0
- package/esm/models/taxsummary.js.map +1 -0
- package/esm/models/taxtreatment.d.ts +12 -0
- package/esm/models/taxtreatment.d.ts.map +1 -0
- package/esm/models/taxtreatment.js +13 -0
- package/esm/models/taxtreatment.js.map +1 -0
- package/esm/models/updatecustomerrequest.d.ts +2 -0
- package/esm/models/updatecustomerrequest.d.ts.map +1 -1
- package/esm/models/updatecustomerrequest.js +2 -0
- package/esm/models/updatecustomerrequest.js.map +1 -1
- package/esm/models/updatelineitemrequest.d.ts +11 -0
- package/esm/models/updatelineitemrequest.d.ts.map +1 -0
- package/esm/models/updatelineitemrequest.js +13 -0
- package/esm/models/updatelineitemrequest.js.map +1 -0
- package/esm/models/updatepricerequest.d.ts +2 -0
- package/esm/models/updatepricerequest.d.ts.map +1 -1
- package/esm/models/updatepricerequest.js +2 -0
- package/esm/models/updatepricerequest.js.map +1 -1
- package/esm/models/updatesubscriptionlineitemrequest.d.ts +2 -0
- package/esm/models/updatesubscriptionlineitemrequest.d.ts.map +1 -1
- package/esm/models/updatesubscriptionlineitemrequest.js +2 -0
- package/esm/models/updatesubscriptionlineitemrequest.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +20 -16
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +21 -17
- package/package.json +1 -1
- package/src/funcs/invoicesExecuteInvoiceModify.ts +153 -0
- package/src/funcs/subscriptionsCancelSubscriptionSchedule.ts +1 -1
- package/src/funcs/subscriptionsGetSubscriptionSchedule.ts +2 -2
- package/src/funcs/subscriptionsListAllSubscriptionSchedules.ts +1 -1
- package/src/funcs/subscriptionsListSubscriptionSchedules.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -5
- package/src/mcp-server/tools/invoicesExecuteInvoiceModify.ts +43 -0
- package/src/models/addlineitemrequest.ts +24 -0
- package/src/models/alertsettings.ts +6 -0
- package/src/models/alertthresholdtype.ts +17 -0
- package/src/models/changedinvoice.ts +1 -3
- package/src/models/changedinvoicestatus.ts +1 -9
- package/src/models/checkoutpaymentblock.ts +19 -0
- package/src/models/checkoutpaymentprovider.ts +2 -0
- package/src/models/checkoutpaymentproviderconfig.ts +4 -0
- package/src/models/checkoutsessionresponse.ts +21 -51
- package/src/models/createcustomerrequest.ts +3 -0
- package/src/models/createinvoicerequest.ts +0 -8
- package/src/models/createpricerequest.ts +3 -0
- package/src/models/createsubscriptionrequest.ts +4 -0
- package/src/models/customcurrency.ts +29 -0
- package/src/models/customcurrencylineitem.ts +21 -0
- package/src/models/customer.ts +3 -0
- package/src/models/customerresponse.ts +3 -0
- package/src/models/executeinvoicemodifyop.ts +37 -0
- package/src/models/executeinvoicemodifyrequest.ts +25 -0
- package/src/models/getsubscriptionaddonassociationsop.ts +6 -6
- package/src/models/getsubscriptionscheduleop.ts +2 -2
- package/src/models/invoicelineitemresponse.ts +6 -0
- package/src/models/invoicemodifylineitemaction.ts +21 -0
- package/src/models/invoicemodifylineitemparams.ts +41 -0
- package/src/models/invoicemodifyresponse.ts +16 -0
- package/src/models/invoicemodifytype.ts +15 -0
- package/src/models/invoiceresponse.ts +12 -0
- package/src/models/listaddonassociationsresponse.ts +25 -0
- package/src/models/listsubscriptionschedulesop.ts +2 -2
- package/src/models/meteraggregation.ts +1 -1
- package/src/models/overridelineitemrequest.ts +3 -0
- package/src/models/priceprice.ts +3 -0
- package/src/models/priceresponse.ts +3 -0
- package/src/models/subscriptionpricecreaterequest.ts +3 -0
- package/src/models/taxappliedresponse.ts +3 -0
- package/src/models/taxbehavior.ts +17 -0
- package/src/models/taxexemptionreasoncode.ts +17 -0
- package/src/models/taxexemptionsummary.ts +20 -0
- package/src/models/taxrateoverride.ts +3 -0
- package/src/models/taxrateresponse.ts +0 -2
- package/src/models/taxratetype.ts +0 -2
- package/src/models/taxsummary.ts +23 -0
- package/src/models/taxtreatment.ts +17 -0
- package/src/models/updatecustomerrequest.ts +3 -0
- package/src/models/updatelineitemrequest.ts +24 -0
- package/src/models/updatepricerequest.ts +3 -0
- package/src/models/updatesubscriptionlineitemrequest.ts +3 -0
- package/src/tool-names.ts +20 -16
- package/esm/models/addaddonparams.d.ts +0 -8
- package/esm/models/addaddonparams.d.ts.map +0 -1
- package/esm/models/addaddonparams.js +0 -10
- package/esm/models/addaddonparams.js.map +0 -1
- package/esm/models/addaddonref.d.ts +0 -12
- package/esm/models/addaddonref.d.ts.map +0 -1
- package/esm/models/addaddonref.js +0 -14
- package/esm/models/addaddonref.js.map +0 -1
- package/esm/models/checkoutjsonbcheckoutconfiguration.d.ts +0 -13
- package/esm/models/checkoutjsonbcheckoutconfiguration.d.ts.map +0 -1
- package/esm/models/checkoutjsonbcheckoutconfiguration.js +0 -15
- package/esm/models/checkoutjsonbcheckoutconfiguration.js.map +0 -1
- package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.d.ts +0 -10
- package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.d.ts.map +0 -1
- package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.js +0 -12
- package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.js.map +0 -1
- package/esm/models/checkoutjsonbcheckoutproviderresult.d.ts +0 -13
- package/esm/models/checkoutjsonbcheckoutproviderresult.d.ts.map +0 -1
- package/esm/models/checkoutjsonbcheckoutproviderresult.js +0 -13
- package/esm/models/checkoutjsonbcheckoutproviderresult.js.map +0 -1
- package/esm/models/checkoutjsonbcheckoutresult.d.ts +0 -7
- package/esm/models/checkoutjsonbcheckoutresult.d.ts.map +0 -1
- package/esm/models/checkoutjsonbcheckoutresult.js +0 -9
- package/esm/models/checkoutjsonbcheckoutresult.js.map +0 -1
- package/esm/models/createsubscriptionparams.d.ts +0 -16
- package/esm/models/createsubscriptionparams.d.ts.map +0 -1
- package/esm/models/createsubscriptionparams.js +0 -16
- package/esm/models/createsubscriptionparams.js.map +0 -1
- package/esm/models/createsubscriptionresult.d.ts +0 -8
- package/esm/models/createsubscriptionresult.d.ts.map +0 -1
- package/esm/models/createsubscriptionresult.js +0 -10
- package/esm/models/createsubscriptionresult.js.map +0 -1
- package/esm/models/modifysubscriptionlineitem.d.ts +0 -8
- package/esm/models/modifysubscriptionlineitem.d.ts.map +0 -1
- package/esm/models/modifysubscriptionlineitem.js +0 -10
- package/esm/models/modifysubscriptionlineitem.js.map +0 -1
- package/esm/models/modifysubscriptionparams.d.ts +0 -8
- package/esm/models/modifysubscriptionparams.d.ts.map +0 -1
- package/esm/models/modifysubscriptionparams.js +0 -11
- package/esm/models/modifysubscriptionparams.js.map +0 -1
- package/esm/models/wallettopupparams.d.ts +0 -7
- package/esm/models/wallettopupparams.d.ts.map +0 -1
- package/esm/models/wallettopupparams.js +0 -10
- package/esm/models/wallettopupparams.js.map +0 -1
- package/src/models/addaddonparams.ts +0 -16
- package/src/models/addaddonref.ts +0 -26
- package/src/models/checkoutjsonbcheckoutconfiguration.ts +0 -34
- package/src/models/checkoutjsonbcheckoutpaymentproviderconfig.ts +0 -27
- package/src/models/checkoutjsonbcheckoutproviderresult.ts +0 -32
- package/src/models/checkoutjsonbcheckoutresult.ts +0 -19
- package/src/models/createsubscriptionparams.ts +0 -30
- package/src/models/createsubscriptionresult.ts +0 -19
- package/src/models/modifysubscriptionlineitem.ts +0 -19
- package/src/models/modifysubscriptionparams.ts +0 -22
- package/src/models/wallettopupparams.ts +0 -16
|
@@ -5,28 +5,15 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { CheckoutAction, CheckoutAction$zodSchema } from "./checkoutaction.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
11
|
-
import {
|
|
12
|
-
CheckoutJSONBCheckoutPaymentProviderConfig,
|
|
13
|
-
CheckoutJSONBCheckoutPaymentProviderConfig$zodSchema,
|
|
14
|
-
} from "./checkoutjsonbcheckoutpaymentproviderconfig.js";
|
|
15
|
-
import {
|
|
16
|
-
CheckoutJSONBCheckoutProviderResult,
|
|
17
|
-
CheckoutJSONBCheckoutProviderResult$zodSchema,
|
|
18
|
-
} from "./checkoutjsonbcheckoutproviderresult.js";
|
|
19
|
-
import {
|
|
20
|
-
CheckoutJSONBCheckoutResult,
|
|
21
|
-
CheckoutJSONBCheckoutResult$zodSchema,
|
|
22
|
-
} from "./checkoutjsonbcheckoutresult.js";
|
|
8
|
+
CheckoutPaymentBlock,
|
|
9
|
+
CheckoutPaymentBlock$zodSchema,
|
|
10
|
+
} from "./checkoutpaymentblock.js";
|
|
23
11
|
import {
|
|
24
12
|
CheckoutPaymentProvider,
|
|
25
13
|
CheckoutPaymentProvider$zodSchema,
|
|
26
14
|
} from "./checkoutpaymentprovider.js";
|
|
27
15
|
import { CheckoutStatus, CheckoutStatus$zodSchema } from "./checkoutstatus.js";
|
|
28
16
|
import { PaymentAction, PaymentAction$zodSchema } from "./paymentaction.js";
|
|
29
|
-
import { Status, Status$zodSchema } from "./status.js";
|
|
30
17
|
|
|
31
18
|
export type CheckoutSessionResponse = {
|
|
32
19
|
action?: CheckoutAction | undefined;
|
|
@@ -36,29 +23,22 @@ export type CheckoutSessionResponse = {
|
|
|
36
23
|
checkout_payment_id?: string | undefined;
|
|
37
24
|
checkout_status?: CheckoutStatus | undefined;
|
|
38
25
|
completed_at?: string | undefined;
|
|
39
|
-
configuration?: CheckoutJSONBCheckoutConfiguration | undefined;
|
|
40
26
|
created_at?: string | undefined;
|
|
41
|
-
created_by?: string | undefined;
|
|
42
27
|
customer_id?: string | undefined;
|
|
43
|
-
environment_id?: string | undefined;
|
|
44
28
|
expires_at?: string | undefined;
|
|
45
29
|
failure_reason?: string | undefined;
|
|
46
30
|
failure_url?: string | undefined;
|
|
47
31
|
id?: string | undefined;
|
|
48
32
|
idempotency_key?: string | undefined;
|
|
49
33
|
metadata?: { [k: string]: string } | undefined;
|
|
34
|
+
next_poll_after_ms?: number | undefined;
|
|
35
|
+
payment?: CheckoutPaymentBlock | undefined;
|
|
50
36
|
payment_action?: PaymentAction | undefined;
|
|
51
37
|
payment_provider?: CheckoutPaymentProvider | undefined;
|
|
52
|
-
|
|
53
|
-
| CheckoutJSONBCheckoutPaymentProviderConfig
|
|
54
|
-
| undefined;
|
|
55
|
-
provider_result?: CheckoutJSONBCheckoutProviderResult | undefined;
|
|
56
|
-
result?: CheckoutJSONBCheckoutResult | undefined;
|
|
57
|
-
status?: Status | undefined;
|
|
38
|
+
stale?: boolean | undefined;
|
|
58
39
|
success_url?: string | undefined;
|
|
59
|
-
|
|
40
|
+
terminal?: boolean | undefined;
|
|
60
41
|
updated_at?: string | undefined;
|
|
61
|
-
updated_by?: string | undefined;
|
|
62
42
|
};
|
|
63
43
|
|
|
64
44
|
export const CheckoutSessionResponse$zodSchema: z.ZodType<
|
|
@@ -67,40 +47,30 @@ export const CheckoutSessionResponse$zodSchema: z.ZodType<
|
|
|
67
47
|
action: CheckoutAction$zodSchema.optional(),
|
|
68
48
|
cancel_url: z.string().optional(),
|
|
69
49
|
cancelled_at: z.iso.datetime({ offset: true }).optional(),
|
|
70
|
-
checkout_invoice_id: z.string().optional()
|
|
71
|
-
"CheckoutInvoiceID and CheckoutPaymentID are set once the apply step\ncreates the corresponding Flexprice entities (completed sessions only).",
|
|
72
|
-
),
|
|
50
|
+
checkout_invoice_id: z.string().optional(),
|
|
73
51
|
checkout_payment_id: z.string().optional(),
|
|
74
52
|
checkout_status: CheckoutStatus$zodSchema.optional(),
|
|
75
53
|
completed_at: z.iso.datetime({ offset: true }).optional(),
|
|
76
|
-
configuration: CheckoutJSONBCheckoutConfiguration$zodSchema.optional(),
|
|
77
54
|
created_at: z.iso.datetime({ offset: true }).optional(),
|
|
78
|
-
created_by: z.string().optional(),
|
|
79
55
|
customer_id: z.string().optional(),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"ExpiresAt is required. A Temporal timer fires at this time for any\nsession still in initiated|pending, marking it expired. The caller\nmust create a new session after expiry (expire-and-restart model).",
|
|
83
|
-
),
|
|
84
|
-
failure_reason: z.string().optional().describe(
|
|
85
|
-
"FailureReason is a human-readable string set on failed sessions.",
|
|
86
|
-
),
|
|
56
|
+
expires_at: z.iso.datetime({ offset: true }).optional(),
|
|
57
|
+
failure_reason: z.string().optional(),
|
|
87
58
|
failure_url: z.string().optional(),
|
|
88
59
|
id: z.string().optional(),
|
|
89
|
-
idempotency_key: z.string().optional()
|
|
90
|
-
"IdempotencyKey is caller-supplied. It is unique only while the session\nis active (initiated|pending). The same key may be reused once the\nsession reaches a terminal state (completed|failed|expired).",
|
|
91
|
-
),
|
|
60
|
+
idempotency_key: z.string().optional(),
|
|
92
61
|
metadata: z.record(z.string(), z.string()).optional(),
|
|
62
|
+
next_poll_after_ms: z.int().optional().describe(
|
|
63
|
+
"NextPollAfterMs is how long a client should wait before reading again.\nZero means stop — either the session is terminal, or this response did not\ncome from a polling read.",
|
|
64
|
+
),
|
|
65
|
+
payment: CheckoutPaymentBlock$zodSchema.optional(),
|
|
93
66
|
payment_action: PaymentAction$zodSchema.optional(),
|
|
94
67
|
payment_provider: CheckoutPaymentProvider$zodSchema.optional(),
|
|
95
|
-
|
|
96
|
-
.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"Redirect URLs sent to the payment provider. The provider redirects the\nuser browser to the appropriate URL after the payment flow completes.",
|
|
68
|
+
stale: z.boolean().optional().describe(
|
|
69
|
+
"Stale reports that this response is stored state that was not checked against\nthe payment provider on this request — the read was debounced, or the gateway\ndid not answer. A UI should say \"still checking\" rather than presenting a\nstale answer as fact.",
|
|
70
|
+
),
|
|
71
|
+
success_url: z.string().optional(),
|
|
72
|
+
terminal: z.boolean().optional().describe(
|
|
73
|
+
"Terminal reports whether the session has finished. Clients poll until this is\ntrue rather than hardcoding the status set, which would go stale if a status\nis ever added.",
|
|
102
74
|
),
|
|
103
|
-
tenant_id: z.string().optional(),
|
|
104
75
|
updated_at: z.iso.datetime({ offset: true }).optional(),
|
|
105
|
-
updated_by: z.string().optional(),
|
|
106
76
|
});
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
TaxRateOverride,
|
|
12
12
|
TaxRateOverride$zodSchema,
|
|
13
13
|
} from "./taxrateoverride.js";
|
|
14
|
+
import { TaxTreatment, TaxTreatment$zodSchema } from "./taxtreatment.js";
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Request object for creating a new customer in the system
|
|
@@ -33,6 +34,7 @@ export type CreateCustomerRequest = {
|
|
|
33
34
|
onboarding_workflow_name?: string | undefined;
|
|
34
35
|
skip_onboarding_workflow?: boolean | undefined;
|
|
35
36
|
tax_rate_overrides?: Array<TaxRateOverride> | undefined;
|
|
37
|
+
tax_treatment?: TaxTreatment | undefined;
|
|
36
38
|
timezone?: string | undefined;
|
|
37
39
|
};
|
|
38
40
|
|
|
@@ -85,6 +87,7 @@ export const CreateCustomerRequest$zodSchema: z.ZodType<CreateCustomerRequest> =
|
|
|
85
87
|
tax_rate_overrides: z.array(TaxRateOverride$zodSchema).optional().describe(
|
|
86
88
|
"tax_rate_overrides contains tax rate configurations to be linked to this customer",
|
|
87
89
|
),
|
|
90
|
+
tax_treatment: TaxTreatment$zodSchema.optional(),
|
|
88
91
|
timezone: z.string().optional().describe(
|
|
89
92
|
"timezone is the customer's IANA timezone name (e.g. \"Asia/Kolkata\", \"America/New_York\")\nDefaults to \"UTC\" if not provided",
|
|
90
93
|
),
|
|
@@ -23,10 +23,6 @@ import {
|
|
|
23
23
|
TaxRateOverride,
|
|
24
24
|
TaxRateOverride$zodSchema,
|
|
25
25
|
} from "./taxrateoverride.js";
|
|
26
|
-
import {
|
|
27
|
-
TaxRateResponse,
|
|
28
|
-
TaxRateResponse$zodSchema,
|
|
29
|
-
} from "./taxrateresponse.js";
|
|
30
26
|
|
|
31
27
|
export type CreateInvoiceRequest = {
|
|
32
28
|
amount_due: string;
|
|
@@ -52,7 +48,6 @@ export type CreateInvoiceRequest = {
|
|
|
52
48
|
payment_status?: PaymentStatus | undefined;
|
|
53
49
|
period_end?: string | undefined;
|
|
54
50
|
period_start?: string | undefined;
|
|
55
|
-
prepared_tax_rates?: Array<TaxRateResponse> | undefined;
|
|
56
51
|
subscription_id?: string | undefined;
|
|
57
52
|
subtotal: string;
|
|
58
53
|
tax_rate_overrides?: Array<TaxRateOverride> | undefined;
|
|
@@ -120,9 +115,6 @@ export const CreateInvoiceRequest$zodSchema: z.ZodType<CreateInvoiceRequest> = z
|
|
|
120
115
|
period_start: z.iso.datetime({ offset: true }).optional().describe(
|
|
121
116
|
"period_start is the start date of the billing period",
|
|
122
117
|
),
|
|
123
|
-
prepared_tax_rates: z.array(TaxRateResponse$zodSchema).optional().describe(
|
|
124
|
-
"prepared_tax_rates contains the tax rates pre-resolved by the caller (e.g., billing service)",
|
|
125
|
-
),
|
|
126
118
|
subscription_id: z.string().optional().describe(
|
|
127
119
|
"subscription_id is the optional unique identifier of the subscription associated with this invoice",
|
|
128
120
|
),
|
|
@@ -25,12 +25,14 @@ import {
|
|
|
25
25
|
PriceUnitConfig$zodSchema,
|
|
26
26
|
} from "./priceunitconfig.js";
|
|
27
27
|
import { PriceUnitType, PriceUnitType$zodSchema } from "./priceunittype.js";
|
|
28
|
+
import { WindowSize, WindowSize$zodSchema } from "./windowsize.js";
|
|
28
29
|
|
|
29
30
|
export type CreatePriceRequest = {
|
|
30
31
|
amount?: string | undefined;
|
|
31
32
|
billing_model: BillingModel;
|
|
32
33
|
billing_period: BillingPeriod;
|
|
33
34
|
billing_period_count?: number | undefined;
|
|
35
|
+
bucket_size?: WindowSize | undefined;
|
|
34
36
|
currency: string;
|
|
35
37
|
description?: string | undefined;
|
|
36
38
|
display_name?: string | undefined;
|
|
@@ -60,6 +62,7 @@ export const CreatePriceRequest$zodSchema: z.ZodType<CreatePriceRequest> = z
|
|
|
60
62
|
billing_model: BillingModel$zodSchema,
|
|
61
63
|
billing_period: BillingPeriod$zodSchema,
|
|
62
64
|
billing_period_count: z.int().optional(),
|
|
65
|
+
bucket_size: WindowSize$zodSchema.optional(),
|
|
63
66
|
currency: z.string(),
|
|
64
67
|
description: z.string().optional(),
|
|
65
68
|
display_name: z.string().optional(),
|
|
@@ -83,6 +83,7 @@ export type CreateSubscriptionRequest = {
|
|
|
83
83
|
end_date?: string | undefined;
|
|
84
84
|
external_customer_id?: string | undefined;
|
|
85
85
|
gateway_payment_method_id?: string | undefined;
|
|
86
|
+
include_price_ids?: Array<string> | undefined;
|
|
86
87
|
inheritance?: SubscriptionInheritanceConfig | undefined;
|
|
87
88
|
line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
88
89
|
line_item_coupons?: { [k: string]: Array<string> } | undefined;
|
|
@@ -134,6 +135,9 @@ export const CreateSubscriptionRequest$zodSchema: z.ZodType<
|
|
|
134
135
|
end_date: z.iso.datetime({ offset: true }).optional(),
|
|
135
136
|
external_customer_id: z.string().optional(),
|
|
136
137
|
gateway_payment_method_id: z.string().optional(),
|
|
138
|
+
include_price_ids: z.array(z.string()).optional().describe(
|
|
139
|
+
"IncludePriceIDs selects which plan prices to attach. Nil/omitted attaches matching-cadence\nprices plus ONETIME; [] attaches none (LineItems extras still apply); a non-empty list\nattaches only those IDs. Each listed ID must belong to the plan, match the subscription\ncurrency, and have a cadence that equals or strictly divides the subscription cadence.\nPointer-slice distinguishes nil from [].\nNOTE: no `dive,required` on this tag — swaggo misinterprets `required`\ninside `dive` as marking the whole field required, which then shows up\nin the OpenAPI schema and breaks callers that omit the field. Per-element\nnon-emptiness is enforced explicitly in Validate() below.",
|
|
140
|
+
),
|
|
137
141
|
inheritance: SubscriptionInheritanceConfig$zodSchema.optional(),
|
|
138
142
|
line_item_commitments: z.record(
|
|
139
143
|
z.string(),
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type CustomCurrency = {
|
|
8
|
+
amount_due?: string | undefined;
|
|
9
|
+
code?: string | undefined;
|
|
10
|
+
rate?: string | undefined;
|
|
11
|
+
subtotal?: string | undefined;
|
|
12
|
+
total?: string | undefined;
|
|
13
|
+
total_discount?: string | undefined;
|
|
14
|
+
total_prepaid_credits_applied?: string | undefined;
|
|
15
|
+
total_tax?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const CustomCurrency$zodSchema: z.ZodType<CustomCurrency> = z.object({
|
|
19
|
+
amount_due: z.string().optional(),
|
|
20
|
+
code: z.string().optional(),
|
|
21
|
+
rate: z.string().optional().describe(
|
|
22
|
+
"fiat per 1 unit of Code; the live factor while draft, frozen at finalization",
|
|
23
|
+
),
|
|
24
|
+
subtotal: z.string().optional(),
|
|
25
|
+
total: z.string().optional(),
|
|
26
|
+
total_discount: z.string().optional(),
|
|
27
|
+
total_prepaid_credits_applied: z.string().optional(),
|
|
28
|
+
total_tax: z.string().optional(),
|
|
29
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type CustomCurrencyLineItem = {
|
|
8
|
+
amount?: string | undefined;
|
|
9
|
+
invoice_level_discount?: string | undefined;
|
|
10
|
+
line_item_discount?: string | undefined;
|
|
11
|
+
prepaid_credits_applied?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const CustomCurrencyLineItem$zodSchema: z.ZodType<
|
|
15
|
+
CustomCurrencyLineItem
|
|
16
|
+
> = z.object({
|
|
17
|
+
amount: z.string().optional(),
|
|
18
|
+
invoice_level_discount: z.string().optional(),
|
|
19
|
+
line_item_discount: z.string().optional(),
|
|
20
|
+
prepaid_credits_applied: z.string().optional(),
|
|
21
|
+
});
|
package/src/models/customer.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { Status, Status$zodSchema } from "./status.js";
|
|
7
|
+
import { TaxTreatment, TaxTreatment$zodSchema } from "./taxtreatment.js";
|
|
7
8
|
|
|
8
9
|
export type Customer = {
|
|
9
10
|
address_city?: string | undefined;
|
|
@@ -22,6 +23,7 @@ export type Customer = {
|
|
|
22
23
|
metadata?: { [k: string]: string } | undefined;
|
|
23
24
|
name?: string | undefined;
|
|
24
25
|
status?: Status | undefined;
|
|
26
|
+
tax_treatment?: TaxTreatment | undefined;
|
|
25
27
|
tenant_id?: string | undefined;
|
|
26
28
|
timezone?: string | undefined;
|
|
27
29
|
updated_at?: string | undefined;
|
|
@@ -65,6 +67,7 @@ export const Customer$zodSchema: z.ZodType<Customer> = z.object({
|
|
|
65
67
|
metadata: z.record(z.string(), z.string()).optional().describe("Metadata"),
|
|
66
68
|
name: z.string().optional().describe("Name is the name of the customer"),
|
|
67
69
|
status: Status$zodSchema.optional(),
|
|
70
|
+
tax_treatment: TaxTreatment$zodSchema.optional(),
|
|
68
71
|
tenant_id: z.string().optional(),
|
|
69
72
|
timezone: z.string().optional().describe(
|
|
70
73
|
"Timezone is the customer's IANA timezone name (e.g. \"Asia/Kolkata\").\nDefaults to \"UTC\". Inherited by subscriptions at creation time.",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
EntityIntegrationMappingResponse$zodSchema,
|
|
9
9
|
} from "./entityintegrationmappingresponse.js";
|
|
10
10
|
import { Status, Status$zodSchema } from "./status.js";
|
|
11
|
+
import { TaxTreatment, TaxTreatment$zodSchema } from "./taxtreatment.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Customer response object containing all customer information
|
|
@@ -30,6 +31,7 @@ export type CustomerResponse = {
|
|
|
30
31
|
metadata?: { [k: string]: string } | undefined;
|
|
31
32
|
name?: string | undefined;
|
|
32
33
|
status?: Status | undefined;
|
|
34
|
+
tax_treatment?: TaxTreatment | undefined;
|
|
33
35
|
tenant_id?: string | undefined;
|
|
34
36
|
timezone?: string | undefined;
|
|
35
37
|
updated_at?: string | undefined;
|
|
@@ -76,6 +78,7 @@ export const CustomerResponse$zodSchema: z.ZodType<CustomerResponse> = z.object(
|
|
|
76
78
|
metadata: z.record(z.string(), z.string()).optional().describe("Metadata"),
|
|
77
79
|
name: z.string().optional().describe("Name is the name of the customer"),
|
|
78
80
|
status: Status$zodSchema.optional(),
|
|
81
|
+
tax_treatment: TaxTreatment$zodSchema.optional(),
|
|
79
82
|
tenant_id: z.string().optional(),
|
|
80
83
|
timezone: z.string().optional().describe(
|
|
81
84
|
"Timezone is the customer's IANA timezone name (e.g. \"Asia/Kolkata\").\nDefaults to \"UTC\". Inherited by subscriptions at creation time.",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ErrorResponse, ErrorResponse$zodSchema } from "./errorresponse.js";
|
|
7
|
+
import {
|
|
8
|
+
ExecuteInvoiceModifyRequest,
|
|
9
|
+
ExecuteInvoiceModifyRequest$zodSchema,
|
|
10
|
+
} from "./executeinvoicemodifyrequest.js";
|
|
11
|
+
import {
|
|
12
|
+
InvoiceModifyResponse,
|
|
13
|
+
InvoiceModifyResponse$zodSchema,
|
|
14
|
+
} from "./invoicemodifyresponse.js";
|
|
15
|
+
|
|
16
|
+
export type ExecuteInvoiceModifyRequestRequest = {
|
|
17
|
+
id: string;
|
|
18
|
+
body: ExecuteInvoiceModifyRequest;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const ExecuteInvoiceModifyRequestRequest$zodSchema: z.ZodType<
|
|
22
|
+
ExecuteInvoiceModifyRequestRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
body: ExecuteInvoiceModifyRequest$zodSchema.describe("Modification request"),
|
|
25
|
+
id: z.string().describe("Invoice ID"),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type ExecuteInvoiceModifyResponse =
|
|
29
|
+
| InvoiceModifyResponse
|
|
30
|
+
| ErrorResponse;
|
|
31
|
+
|
|
32
|
+
export const ExecuteInvoiceModifyResponse$zodSchema: z.ZodType<
|
|
33
|
+
ExecuteInvoiceModifyResponse
|
|
34
|
+
> = z.union([
|
|
35
|
+
InvoiceModifyResponse$zodSchema,
|
|
36
|
+
ErrorResponse$zodSchema,
|
|
37
|
+
]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
InvoiceModifyLineItemParams,
|
|
8
|
+
InvoiceModifyLineItemParams$zodSchema,
|
|
9
|
+
} from "./invoicemodifylineitemparams.js";
|
|
10
|
+
import {
|
|
11
|
+
InvoiceModifyType,
|
|
12
|
+
InvoiceModifyType$zodSchema,
|
|
13
|
+
} from "./invoicemodifytype.js";
|
|
14
|
+
|
|
15
|
+
export type ExecuteInvoiceModifyRequest = {
|
|
16
|
+
line_item_params?: InvoiceModifyLineItemParams | undefined;
|
|
17
|
+
type: InvoiceModifyType;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const ExecuteInvoiceModifyRequest$zodSchema: z.ZodType<
|
|
21
|
+
ExecuteInvoiceModifyRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
line_item_params: InvoiceModifyLineItemParams$zodSchema.optional(),
|
|
24
|
+
type: InvoiceModifyType$zodSchema,
|
|
25
|
+
});
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
7
|
-
AddonAssociationResponse,
|
|
8
|
-
AddonAssociationResponse$zodSchema,
|
|
9
|
-
} from "./addonassociationresponse.js";
|
|
10
6
|
import { ErrorResponse, ErrorResponse$zodSchema } from "./errorresponse.js";
|
|
7
|
+
import {
|
|
8
|
+
ListAddonAssociationsResponse,
|
|
9
|
+
ListAddonAssociationsResponse$zodSchema,
|
|
10
|
+
} from "./listaddonassociationsresponse.js";
|
|
11
11
|
|
|
12
12
|
export type GetSubscriptionAddonAssociationsRequest = { id: string };
|
|
13
13
|
|
|
@@ -18,12 +18,12 @@ export const GetSubscriptionAddonAssociationsRequest$zodSchema: z.ZodType<
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
export type GetSubscriptionAddonAssociationsResponse =
|
|
21
|
-
|
|
|
21
|
+
| ListAddonAssociationsResponse
|
|
22
22
|
| ErrorResponse;
|
|
23
23
|
|
|
24
24
|
export const GetSubscriptionAddonAssociationsResponse$zodSchema: z.ZodType<
|
|
25
25
|
GetSubscriptionAddonAssociationsResponse
|
|
26
26
|
> = z.union([
|
|
27
|
-
|
|
27
|
+
ListAddonAssociationsResponse$zodSchema,
|
|
28
28
|
ErrorResponse$zodSchema,
|
|
29
29
|
]);
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
|
|
7
|
-
export type GetSubscriptionScheduleRequest = {
|
|
7
|
+
export type GetSubscriptionScheduleRequest = { schedule_id: string };
|
|
8
8
|
|
|
9
9
|
export const GetSubscriptionScheduleRequest$zodSchema: z.ZodType<
|
|
10
10
|
GetSubscriptionScheduleRequest
|
|
11
11
|
> = z.object({
|
|
12
|
-
|
|
12
|
+
schedule_id: z.string().describe("Schedule ID"),
|
|
13
13
|
});
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { CommitmentInfo, CommitmentInfo$zodSchema } from "./commitmentinfo.js";
|
|
7
|
+
import {
|
|
8
|
+
CustomCurrencyLineItem,
|
|
9
|
+
CustomCurrencyLineItem$zodSchema,
|
|
10
|
+
} from "./customcurrencylineitem.js";
|
|
7
11
|
import {
|
|
8
12
|
SourceUsageItem,
|
|
9
13
|
SourceUsageItem$zodSchema,
|
|
@@ -21,6 +25,7 @@ export type InvoiceLineItemResponse = {
|
|
|
21
25
|
created_at?: string | undefined;
|
|
22
26
|
created_by?: string | undefined;
|
|
23
27
|
currency?: string | undefined;
|
|
28
|
+
custom_currency?: CustomCurrencyLineItem | undefined;
|
|
24
29
|
customer_id?: string | undefined;
|
|
25
30
|
display_name?: string | undefined;
|
|
26
31
|
entity_id?: string | undefined;
|
|
@@ -65,6 +70,7 @@ export const InvoiceLineItemResponse$zodSchema: z.ZodType<
|
|
|
65
70
|
created_at: z.iso.datetime({ offset: true }).optional(),
|
|
66
71
|
created_by: z.string().optional(),
|
|
67
72
|
currency: z.string().optional(),
|
|
73
|
+
custom_currency: CustomCurrencyLineItem$zodSchema.optional(),
|
|
68
74
|
customer_id: z.string().optional(),
|
|
69
75
|
display_name: z.string().optional(),
|
|
70
76
|
entity_id: z.string().optional(),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const InvoiceModifyLineItemAction = {
|
|
9
|
+
Add: "add",
|
|
10
|
+
Update: "update",
|
|
11
|
+
Remove: "remove",
|
|
12
|
+
} as const;
|
|
13
|
+
export type InvoiceModifyLineItemAction = ClosedEnum<
|
|
14
|
+
typeof InvoiceModifyLineItemAction
|
|
15
|
+
>;
|
|
16
|
+
|
|
17
|
+
export const InvoiceModifyLineItemAction$zodSchema = z.enum([
|
|
18
|
+
"add",
|
|
19
|
+
"update",
|
|
20
|
+
"remove",
|
|
21
|
+
]);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
AddLineItemRequest,
|
|
8
|
+
AddLineItemRequest$zodSchema,
|
|
9
|
+
} from "./addlineitemrequest.js";
|
|
10
|
+
import {
|
|
11
|
+
InvoiceModifyLineItemAction,
|
|
12
|
+
InvoiceModifyLineItemAction$zodSchema,
|
|
13
|
+
} from "./invoicemodifylineitemaction.js";
|
|
14
|
+
import {
|
|
15
|
+
UpdateLineItemRequest,
|
|
16
|
+
UpdateLineItemRequest$zodSchema,
|
|
17
|
+
} from "./updatelineitemrequest.js";
|
|
18
|
+
|
|
19
|
+
export type InvoiceModifyLineItemParams = {
|
|
20
|
+
action: InvoiceModifyLineItemAction;
|
|
21
|
+
items?: Array<AddLineItemRequest> | undefined;
|
|
22
|
+
line_item_id?: string | undefined;
|
|
23
|
+
line_item_ids?: Array<string> | undefined;
|
|
24
|
+
update?: UpdateLineItemRequest | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const InvoiceModifyLineItemParams$zodSchema: z.ZodType<
|
|
28
|
+
InvoiceModifyLineItemParams
|
|
29
|
+
> = z.object({
|
|
30
|
+
action: InvoiceModifyLineItemAction$zodSchema,
|
|
31
|
+
items: z.array(AddLineItemRequest$zodSchema).optional().describe(
|
|
32
|
+
"Required for action 'add'. Must contain at least one line item.",
|
|
33
|
+
),
|
|
34
|
+
line_item_id: z.string().optional().describe(
|
|
35
|
+
"Required for action 'update' (one line item per call; edits are versioned, so the id changes).",
|
|
36
|
+
),
|
|
37
|
+
line_item_ids: z.array(z.string()).optional().describe(
|
|
38
|
+
"Required for action 'remove'. Must contain at least one line item ID.",
|
|
39
|
+
),
|
|
40
|
+
update: UpdateLineItemRequest$zodSchema.optional(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
InvoiceResponse,
|
|
8
|
+
InvoiceResponse$zodSchema,
|
|
9
|
+
} from "./invoiceresponse.js";
|
|
10
|
+
|
|
11
|
+
export type InvoiceModifyResponse = { invoice?: InvoiceResponse | undefined };
|
|
12
|
+
|
|
13
|
+
export const InvoiceModifyResponse$zodSchema: z.ZodType<InvoiceModifyResponse> =
|
|
14
|
+
z.object({
|
|
15
|
+
invoice: InvoiceResponse$zodSchema.optional(),
|
|
16
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const InvoiceModifyType = {
|
|
9
|
+
LineItem: "line_item",
|
|
10
|
+
} as const;
|
|
11
|
+
export type InvoiceModifyType = ClosedEnum<typeof InvoiceModifyType>;
|
|
12
|
+
|
|
13
|
+
export const InvoiceModifyType$zodSchema = z.enum([
|
|
14
|
+
"line_item",
|
|
15
|
+
]);
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
CouponApplicationResponse,
|
|
8
8
|
CouponApplicationResponse$zodSchema,
|
|
9
9
|
} from "./couponapplicationresponse.js";
|
|
10
|
+
import { CustomCurrency, CustomCurrency$zodSchema } from "./customcurrency.js";
|
|
10
11
|
import {
|
|
11
12
|
CustomerResponse,
|
|
12
13
|
CustomerResponse$zodSchema,
|
|
@@ -27,6 +28,11 @@ import {
|
|
|
27
28
|
TaxAppliedResponse,
|
|
28
29
|
TaxAppliedResponse$zodSchema,
|
|
29
30
|
} from "./taxappliedresponse.js";
|
|
31
|
+
import {
|
|
32
|
+
TaxExemptionReasonCode,
|
|
33
|
+
TaxExemptionReasonCode$zodSchema,
|
|
34
|
+
} from "./taxexemptionreasoncode.js";
|
|
35
|
+
import { TaxSummary, TaxSummary$zodSchema } from "./taxsummary.js";
|
|
30
36
|
|
|
31
37
|
export type InvoiceResponse = {
|
|
32
38
|
adjustment_amount?: string | undefined;
|
|
@@ -40,6 +46,7 @@ export type InvoiceResponse = {
|
|
|
40
46
|
created_at?: string | undefined;
|
|
41
47
|
created_by?: string | undefined;
|
|
42
48
|
currency?: string | undefined;
|
|
49
|
+
custom_currency?: CustomCurrency | undefined;
|
|
43
50
|
customer?: CustomerResponse | undefined;
|
|
44
51
|
customer_id?: string | undefined;
|
|
45
52
|
description?: string | undefined;
|
|
@@ -69,6 +76,8 @@ export type InvoiceResponse = {
|
|
|
69
76
|
subscription_customer_id?: string | undefined;
|
|
70
77
|
subscription_id?: string | undefined;
|
|
71
78
|
subtotal?: string | undefined;
|
|
79
|
+
tax_exemption_reason_code?: TaxExemptionReasonCode | undefined;
|
|
80
|
+
tax_summary?: TaxSummary | undefined;
|
|
72
81
|
taxes?: Array<TaxAppliedResponse> | undefined;
|
|
73
82
|
tenant_id?: string | undefined;
|
|
74
83
|
total?: string | undefined;
|
|
@@ -112,6 +121,7 @@ export const InvoiceResponse$zodSchema: z.ZodType<InvoiceResponse> = z.object({
|
|
|
112
121
|
currency: z.string().optional().describe(
|
|
113
122
|
"currency is the three-letter ISO currency code (e.g., USD, EUR, GBP) that applies to all monetary amounts on this invoice",
|
|
114
123
|
),
|
|
124
|
+
custom_currency: CustomCurrency$zodSchema.optional(),
|
|
115
125
|
customer: CustomerResponse$zodSchema.optional().describe(
|
|
116
126
|
"Customer response object containing all customer information",
|
|
117
127
|
),
|
|
@@ -187,6 +197,8 @@ export const InvoiceResponse$zodSchema: z.ZodType<InvoiceResponse> = z.object({
|
|
|
187
197
|
subtotal: z.string().optional().describe(
|
|
188
198
|
"subtotal is the sum of all line items before any taxes, discounts, or additional fees",
|
|
189
199
|
),
|
|
200
|
+
tax_exemption_reason_code: TaxExemptionReasonCode$zodSchema.optional(),
|
|
201
|
+
tax_summary: TaxSummary$zodSchema.optional(),
|
|
190
202
|
taxes: z.array(TaxAppliedResponse$zodSchema).optional().describe(
|
|
191
203
|
"tax_applied_records contains the tax applied records associated with this invoice",
|
|
192
204
|
),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
AddonAssociationResponse,
|
|
8
|
+
AddonAssociationResponse$zodSchema,
|
|
9
|
+
} from "./addonassociationresponse.js";
|
|
10
|
+
import {
|
|
11
|
+
PaginationResponse,
|
|
12
|
+
PaginationResponse$zodSchema,
|
|
13
|
+
} from "./paginationresponse.js";
|
|
14
|
+
|
|
15
|
+
export type ListAddonAssociationsResponse = {
|
|
16
|
+
items?: Array<AddonAssociationResponse> | undefined;
|
|
17
|
+
pagination?: PaginationResponse | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const ListAddonAssociationsResponse$zodSchema: z.ZodType<
|
|
21
|
+
ListAddonAssociationsResponse
|
|
22
|
+
> = z.object({
|
|
23
|
+
items: z.array(AddonAssociationResponse$zodSchema).optional(),
|
|
24
|
+
pagination: PaginationResponse$zodSchema.optional(),
|
|
25
|
+
});
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
|
|
7
|
-
export type ListSubscriptionSchedulesRequest = {
|
|
7
|
+
export type ListSubscriptionSchedulesRequest = { id: string };
|
|
8
8
|
|
|
9
9
|
export const ListSubscriptionSchedulesRequest$zodSchema: z.ZodType<
|
|
10
10
|
ListSubscriptionSchedulesRequest
|
|
11
11
|
> = z.object({
|
|
12
|
-
|
|
12
|
+
id: z.string().describe("Subscription ID"),
|
|
13
13
|
});
|
|
@@ -28,7 +28,7 @@ export const MeterAggregation$zodSchema: z.ZodType<MeterAggregation> = z.object(
|
|
|
28
28
|
"Field is the key in $event.properties on which the aggregation is to be applied\nFor ex if the aggregation type is sum for API usage, the field could be \"duration_ms\"\nIgnored when Expression is set.",
|
|
29
29
|
),
|
|
30
30
|
group_by: z.string().optional().describe(
|
|
31
|
-
"GroupBy is the property name in event.properties to group by before aggregating.\
|
|
31
|
+
"GroupBy is the property name in event.properties to group by before aggregating.\nRequires MAX aggregation. Windowing comes from the price, so this no longer\nimplies a meter-level bucket_size.\nWhen set, aggregation is applied per unique value of this property within each bucket,\nthen the per-group results are summed to produce the bucket total.",
|
|
32
32
|
),
|
|
33
33
|
multiplier: z.string().optional().describe(
|
|
34
34
|
"Multiplier is the multiplier for the aggregation\nFor ex if the aggregation type is sum_with_multiplier for API usage, the multiplier could be 1000\nto scale up by a factor of 1000. If not provided, it will be null.",
|