@paygentic/sdk 0.9.11 → 0.9.13
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/README.md +6 -0
- package/dist/commonjs/funcs/approvalsCreateApproval.d.ts +1 -1
- package/dist/commonjs/funcs/approvalsCreateApproval.d.ts.map +1 -1
- package/dist/commonjs/funcs/approvalsCreateApproval.js +1 -1
- package/dist/commonjs/funcs/approvalsCreateApproval.js.map +1 -1
- package/dist/commonjs/funcs/approvalsGetApproval.d.ts +1 -1
- package/dist/commonjs/funcs/approvalsGetApproval.d.ts.map +1 -1
- package/dist/commonjs/funcs/approvalsGetApproval.js +1 -1
- package/dist/commonjs/funcs/approvalsGetApproval.js.map +1 -1
- package/dist/commonjs/funcs/approvalsUpdateApproval.d.ts +1 -1
- package/dist/commonjs/funcs/approvalsUpdateApproval.d.ts.map +1 -1
- package/dist/commonjs/funcs/approvalsUpdateApproval.js +1 -1
- package/dist/commonjs/funcs/approvalsUpdateApproval.js.map +1 -1
- package/dist/commonjs/funcs/billingSchedulesCreateBillingSchedule.d.ts +1 -1
- package/dist/commonjs/funcs/billingSchedulesCreateBillingSchedule.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingSchedulesCreateBillingSchedule.js +1 -1
- package/dist/commonjs/funcs/billingSchedulesCreateBillingSchedule.js.map +1 -1
- package/dist/commonjs/funcs/billingSchedulesGetBillingSchedule.d.ts +1 -1
- package/dist/commonjs/funcs/billingSchedulesGetBillingSchedule.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingSchedulesGetBillingSchedule.js +1 -1
- package/dist/commonjs/funcs/billingSchedulesGetBillingSchedule.js.map +1 -1
- package/dist/commonjs/funcs/billingSchedulesUpdateBillingSchedule.d.ts +1 -1
- package/dist/commonjs/funcs/billingSchedulesUpdateBillingSchedule.d.ts.map +1 -1
- package/dist/commonjs/funcs/billingSchedulesUpdateBillingSchedule.js +1 -1
- package/dist/commonjs/funcs/billingSchedulesUpdateBillingSchedule.js.map +1 -1
- package/dist/commonjs/funcs/customersCreateCustomerPaymentMethod.d.ts +1 -1
- package/dist/commonjs/funcs/customersCreateCustomerPaymentMethod.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersCreateCustomerPaymentMethod.js +1 -1
- package/dist/commonjs/funcs/customersCreateCustomerPaymentMethod.js.map +1 -1
- package/dist/commonjs/funcs/ordersCreateOrderApproval.d.ts +1 -1
- package/dist/commonjs/funcs/ordersCreateOrderApproval.d.ts.map +1 -1
- package/dist/commonjs/funcs/ordersCreateOrderApproval.js +1 -1
- package/dist/commonjs/funcs/ordersCreateOrderApproval.js.map +1 -1
- package/dist/commonjs/funcs/plansMintPlanVersion.d.ts +1 -1
- package/dist/commonjs/funcs/plansMintPlanVersion.js +1 -1
- package/dist/commonjs/funcs/pricesCreate.d.ts +1 -1
- package/dist/commonjs/funcs/pricesCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/pricesCreate.js +1 -1
- package/dist/commonjs/funcs/pricesCreate.js.map +1 -1
- package/dist/commonjs/funcs/pricesGet.d.ts +1 -1
- package/dist/commonjs/funcs/pricesGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/pricesGet.js +1 -1
- package/dist/commonjs/funcs/pricesGet.js.map +1 -1
- package/dist/commonjs/funcs/pricesUpdate.d.ts +1 -1
- package/dist/commonjs/funcs/pricesUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/pricesUpdate.js +1 -1
- package/dist/commonjs/funcs/pricesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts +3 -2
- package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts.map +1 -1
- package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.js +3 -3
- package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/approval.d.ts +17 -2
- package/dist/commonjs/models/approval.d.ts.map +1 -1
- package/dist/commonjs/models/approval.js +16 -3
- package/dist/commonjs/models/approval.js.map +1 -1
- package/dist/commonjs/models/approvallist.d.ts +2 -2
- package/dist/commonjs/models/approvallist.d.ts.map +1 -1
- package/dist/commonjs/models/approvallist.js +2 -2
- package/dist/commonjs/models/approvallist.js.map +1 -1
- package/dist/commonjs/models/billingschedule.d.ts +6 -4
- package/dist/commonjs/models/billingschedule.d.ts.map +1 -1
- package/dist/commonjs/models/billingschedule.js +3 -1
- package/dist/commonjs/models/billingschedule.js.map +1 -1
- package/dist/commonjs/models/createmaximumquantityadjustment.d.ts +45 -0
- package/dist/commonjs/models/createmaximumquantityadjustment.d.ts.map +1 -0
- package/dist/commonjs/models/createmaximumquantityadjustment.js +55 -0
- package/dist/commonjs/models/createmaximumquantityadjustment.js.map +1 -0
- package/dist/commonjs/models/createminimumquantityadjustment.d.ts +45 -0
- package/dist/commonjs/models/createminimumquantityadjustment.d.ts.map +1 -0
- package/dist/commonjs/models/createminimumquantityadjustment.js +55 -0
- package/dist/commonjs/models/createminimumquantityadjustment.js.map +1 -0
- package/dist/commonjs/models/createsubscriptionadjustmentrequest.d.ts +5 -3
- package/dist/commonjs/models/createsubscriptionadjustmentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/createsubscriptionadjustmentrequest.js +4 -0
- package/dist/commonjs/models/createsubscriptionadjustmentrequest.js.map +1 -1
- package/dist/commonjs/models/currencybreakdownentry.d.ts +1 -1
- package/dist/commonjs/models/customerpaymentsession.d.ts +53 -0
- package/dist/commonjs/models/customerpaymentsession.d.ts.map +1 -0
- package/dist/commonjs/models/{schemaspaymentsession.js → customerpaymentsession.js} +25 -24
- package/dist/commonjs/models/customerpaymentsession.js.map +1 -0
- package/dist/commonjs/models/grouptrendentry.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts +10 -4
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +10 -4
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/invoicecategorysummary.d.ts +1 -1
- package/dist/commonjs/models/item.d.ts +3 -0
- package/dist/commonjs/models/item.d.ts.map +1 -1
- package/dist/commonjs/models/item.js.map +1 -1
- package/dist/commonjs/models/mintplanlineinput.d.ts +23 -0
- package/dist/commonjs/models/mintplanlineinput.d.ts.map +1 -0
- package/dist/commonjs/models/mintplanlineinput.js +50 -0
- package/dist/commonjs/models/mintplanlineinput.js.map +1 -0
- package/dist/commonjs/models/mintplanlineref.d.ts +12 -0
- package/dist/commonjs/models/mintplanlineref.d.ts.map +1 -0
- package/dist/commonjs/models/mintplanlineref.js +48 -0
- package/dist/commonjs/models/mintplanlineref.js.map +1 -0
- package/dist/commonjs/models/mintplanversionrequest.d.ts +8 -30
- package/dist/commonjs/models/mintplanversionrequest.d.ts.map +1 -1
- package/dist/commonjs/models/mintplanversionrequest.js +4 -13
- package/dist/commonjs/models/mintplanversionrequest.js.map +1 -1
- package/dist/commonjs/models/operations/createbillablemetric.d.ts +3 -3
- package/dist/commonjs/models/operations/createbillablemetric.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createbillablemetric.js +1 -1
- package/dist/commonjs/models/operations/createbillablemetric.js.map +1 -1
- package/dist/commonjs/models/operations/createexternalreference.d.ts +3 -0
- package/dist/commonjs/models/operations/createexternalreference.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createexternalreference.js.map +1 -1
- package/dist/commonjs/models/operations/createitem.d.ts +3 -0
- package/dist/commonjs/models/operations/createitem.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createitem.js.map +1 -1
- package/dist/commonjs/models/operations/createplan.d.ts +3 -3
- package/dist/commonjs/models/operations/createplan.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createplan.js +1 -1
- package/dist/commonjs/models/operations/createplan.js.map +1 -1
- package/dist/commonjs/models/operations/createtestclock.d.ts +1 -1
- package/dist/commonjs/models/operations/listbillingschedules.d.ts +1 -1
- package/dist/commonjs/models/operations/listbillingschedules.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listbillingschedules.js +1 -1
- package/dist/commonjs/models/operations/listbillingschedules.js.map +1 -1
- package/dist/commonjs/models/operations/listpaymentsessions.d.ts +1 -1
- package/dist/commonjs/models/operations/listpaymentsessions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpaymentsessions.js +1 -1
- package/dist/commonjs/models/operations/listpaymentsessions.js.map +1 -1
- package/dist/commonjs/models/operations/listprices.d.ts +1 -1
- package/dist/commonjs/models/operations/listprices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listprices.js +1 -1
- package/dist/commonjs/models/operations/listprices.js.map +1 -1
- package/dist/commonjs/models/operations/updatebillablemetric.d.ts +4 -4
- package/dist/commonjs/models/operations/updatebillablemetric.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatebillablemetric.js +1 -1
- package/dist/commonjs/models/operations/updatebillablemetric.js.map +1 -1
- package/dist/commonjs/models/order.d.ts +2 -2
- package/dist/commonjs/models/order.d.ts.map +1 -1
- package/dist/commonjs/models/order.js +2 -2
- package/dist/commonjs/models/order.js.map +1 -1
- package/dist/commonjs/models/orderapproval.d.ts +38 -0
- package/dist/commonjs/models/orderapproval.d.ts.map +1 -0
- package/dist/commonjs/models/{schemasapproval.js → orderapproval.js} +14 -27
- package/dist/commonjs/models/orderapproval.js.map +1 -0
- package/dist/commonjs/models/orderbillingschedule.d.ts +72 -0
- package/dist/commonjs/models/orderbillingschedule.d.ts.map +1 -0
- package/dist/commonjs/models/{schemasbillingschedule.js → orderbillingschedule.js} +22 -24
- package/dist/commonjs/models/orderbillingschedule.js.map +1 -0
- package/dist/commonjs/models/paymentsession.d.ts +41 -18
- package/dist/commonjs/models/paymentsession.d.ts.map +1 -1
- package/dist/commonjs/models/paymentsession.js +13 -14
- package/dist/commonjs/models/paymentsession.js.map +1 -1
- package/dist/commonjs/models/plan.d.ts +2 -2
- package/dist/commonjs/models/plan.d.ts.map +1 -1
- package/dist/commonjs/models/plan.js +2 -2
- package/dist/commonjs/models/plan.js.map +1 -1
- package/dist/commonjs/models/planlineinput.d.ts +23 -0
- package/dist/commonjs/models/planlineinput.d.ts.map +1 -0
- package/dist/commonjs/models/planlineinput.js +50 -0
- package/dist/commonjs/models/planlineinput.js.map +1 -0
- package/dist/commonjs/models/planlineref.d.ts +12 -0
- package/dist/commonjs/models/planlineref.d.ts.map +1 -0
- package/dist/commonjs/models/planlineref.js +48 -0
- package/dist/commonjs/models/planlineref.js.map +1 -0
- package/dist/{esm/models/schemasprice.d.ts → commonjs/models/planprice.d.ts} +55 -37
- package/dist/commonjs/models/planprice.d.ts.map +1 -0
- package/dist/commonjs/models/{schemasprice.js → planprice.js} +39 -22
- package/dist/commonjs/models/planprice.js.map +1 -0
- package/dist/commonjs/models/planversionpriceslot.d.ts +5 -1
- package/dist/commonjs/models/planversionpriceslot.d.ts.map +1 -1
- package/dist/commonjs/models/planversionpriceslot.js +1 -0
- package/dist/commonjs/models/planversionpriceslot.js.map +1 -1
- package/dist/commonjs/models/price.d.ts +25 -43
- package/dist/commonjs/models/price.d.ts.map +1 -1
- package/dist/commonjs/models/price.js +11 -29
- package/dist/commonjs/models/price.js.map +1 -1
- package/dist/commonjs/models/profitabilityrow.d.ts +1 -1
- package/dist/commonjs/models/revenuesummaryresponse.d.ts +2 -2
- package/dist/commonjs/models/revenuetrendbucket.d.ts +1 -1
- package/dist/commonjs/models/subscriptionadjustment.d.ts +16 -6
- package/dist/commonjs/models/subscriptionadjustment.d.ts.map +1 -1
- package/dist/commonjs/models/subscriptionadjustment.js +4 -0
- package/dist/commonjs/models/subscriptionadjustment.js.map +1 -1
- package/dist/commonjs/sdk/approvals.d.ts +3 -3
- package/dist/commonjs/sdk/approvals.d.ts.map +1 -1
- package/dist/commonjs/sdk/billingschedules.d.ts +3 -3
- package/dist/commonjs/sdk/billingschedules.d.ts.map +1 -1
- package/dist/commonjs/sdk/customers.d.ts +1 -1
- package/dist/commonjs/sdk/customers.d.ts.map +1 -1
- package/dist/commonjs/sdk/orders.d.ts +1 -1
- package/dist/commonjs/sdk/orders.d.ts.map +1 -1
- package/dist/commonjs/sdk/plans.d.ts +1 -1
- package/dist/commonjs/sdk/plans.js +1 -1
- package/dist/commonjs/sdk/prices.d.ts +3 -3
- package/dist/commonjs/sdk/prices.d.ts.map +1 -1
- package/dist/commonjs/sdk/subscriptions.d.ts +2 -2
- package/dist/commonjs/sdk/subscriptions.d.ts.map +1 -1
- package/dist/commonjs/sdk/subscriptions.js +1 -1
- package/dist/esm/funcs/approvalsCreateApproval.d.ts +1 -1
- package/dist/esm/funcs/approvalsCreateApproval.d.ts.map +1 -1
- package/dist/esm/funcs/approvalsCreateApproval.js +1 -1
- package/dist/esm/funcs/approvalsCreateApproval.js.map +1 -1
- package/dist/esm/funcs/approvalsGetApproval.d.ts +1 -1
- package/dist/esm/funcs/approvalsGetApproval.d.ts.map +1 -1
- package/dist/esm/funcs/approvalsGetApproval.js +1 -1
- package/dist/esm/funcs/approvalsGetApproval.js.map +1 -1
- package/dist/esm/funcs/approvalsUpdateApproval.d.ts +1 -1
- package/dist/esm/funcs/approvalsUpdateApproval.d.ts.map +1 -1
- package/dist/esm/funcs/approvalsUpdateApproval.js +1 -1
- package/dist/esm/funcs/approvalsUpdateApproval.js.map +1 -1
- package/dist/esm/funcs/billingSchedulesCreateBillingSchedule.d.ts +1 -1
- package/dist/esm/funcs/billingSchedulesCreateBillingSchedule.d.ts.map +1 -1
- package/dist/esm/funcs/billingSchedulesCreateBillingSchedule.js +1 -1
- package/dist/esm/funcs/billingSchedulesCreateBillingSchedule.js.map +1 -1
- package/dist/esm/funcs/billingSchedulesGetBillingSchedule.d.ts +1 -1
- package/dist/esm/funcs/billingSchedulesGetBillingSchedule.d.ts.map +1 -1
- package/dist/esm/funcs/billingSchedulesGetBillingSchedule.js +1 -1
- package/dist/esm/funcs/billingSchedulesGetBillingSchedule.js.map +1 -1
- package/dist/esm/funcs/billingSchedulesUpdateBillingSchedule.d.ts +1 -1
- package/dist/esm/funcs/billingSchedulesUpdateBillingSchedule.d.ts.map +1 -1
- package/dist/esm/funcs/billingSchedulesUpdateBillingSchedule.js +1 -1
- package/dist/esm/funcs/billingSchedulesUpdateBillingSchedule.js.map +1 -1
- package/dist/esm/funcs/customersCreateCustomerPaymentMethod.d.ts +1 -1
- package/dist/esm/funcs/customersCreateCustomerPaymentMethod.d.ts.map +1 -1
- package/dist/esm/funcs/customersCreateCustomerPaymentMethod.js +1 -1
- package/dist/esm/funcs/customersCreateCustomerPaymentMethod.js.map +1 -1
- package/dist/esm/funcs/ordersCreateOrderApproval.d.ts +1 -1
- package/dist/esm/funcs/ordersCreateOrderApproval.d.ts.map +1 -1
- package/dist/esm/funcs/ordersCreateOrderApproval.js +1 -1
- package/dist/esm/funcs/ordersCreateOrderApproval.js.map +1 -1
- package/dist/esm/funcs/plansMintPlanVersion.d.ts +1 -1
- package/dist/esm/funcs/plansMintPlanVersion.js +1 -1
- package/dist/esm/funcs/pricesCreate.d.ts +1 -1
- package/dist/esm/funcs/pricesCreate.d.ts.map +1 -1
- package/dist/esm/funcs/pricesCreate.js +1 -1
- package/dist/esm/funcs/pricesCreate.js.map +1 -1
- package/dist/esm/funcs/pricesGet.d.ts +1 -1
- package/dist/esm/funcs/pricesGet.d.ts.map +1 -1
- package/dist/esm/funcs/pricesGet.js +1 -1
- package/dist/esm/funcs/pricesGet.js.map +1 -1
- package/dist/esm/funcs/pricesUpdate.d.ts +1 -1
- package/dist/esm/funcs/pricesUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/pricesUpdate.js +1 -1
- package/dist/esm/funcs/pricesUpdate.js.map +1 -1
- package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts +3 -2
- package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts.map +1 -1
- package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.js +3 -3
- package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/approval.d.ts +17 -2
- package/dist/esm/models/approval.d.ts.map +1 -1
- package/dist/esm/models/approval.js +15 -2
- package/dist/esm/models/approval.js.map +1 -1
- package/dist/esm/models/approvallist.d.ts +2 -2
- package/dist/esm/models/approvallist.d.ts.map +1 -1
- package/dist/esm/models/approvallist.js +2 -2
- package/dist/esm/models/approvallist.js.map +1 -1
- package/dist/esm/models/billingschedule.d.ts +6 -4
- package/dist/esm/models/billingschedule.d.ts.map +1 -1
- package/dist/esm/models/billingschedule.js +3 -1
- package/dist/esm/models/billingschedule.js.map +1 -1
- package/dist/esm/models/createmaximumquantityadjustment.d.ts +45 -0
- package/dist/esm/models/createmaximumquantityadjustment.d.ts.map +1 -0
- package/dist/esm/models/createmaximumquantityadjustment.js +18 -0
- package/dist/esm/models/createmaximumquantityadjustment.js.map +1 -0
- package/dist/esm/models/createminimumquantityadjustment.d.ts +45 -0
- package/dist/esm/models/createminimumquantityadjustment.d.ts.map +1 -0
- package/dist/esm/models/createminimumquantityadjustment.js +18 -0
- package/dist/esm/models/createminimumquantityadjustment.js.map +1 -0
- package/dist/esm/models/createsubscriptionadjustmentrequest.d.ts +5 -3
- package/dist/esm/models/createsubscriptionadjustmentrequest.d.ts.map +1 -1
- package/dist/esm/models/createsubscriptionadjustmentrequest.js +4 -0
- package/dist/esm/models/createsubscriptionadjustmentrequest.js.map +1 -1
- package/dist/esm/models/currencybreakdownentry.d.ts +1 -1
- package/dist/esm/models/customerpaymentsession.d.ts +53 -0
- package/dist/esm/models/customerpaymentsession.d.ts.map +1 -0
- package/dist/esm/models/customerpaymentsession.js +44 -0
- package/dist/esm/models/customerpaymentsession.js.map +1 -0
- package/dist/esm/models/grouptrendentry.d.ts +1 -1
- package/dist/esm/models/index.d.ts +10 -4
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +10 -4
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/invoicecategorysummary.d.ts +1 -1
- package/dist/esm/models/item.d.ts +3 -0
- package/dist/esm/models/item.d.ts.map +1 -1
- package/dist/esm/models/item.js.map +1 -1
- package/dist/esm/models/mintplanlineinput.d.ts +23 -0
- package/dist/esm/models/mintplanlineinput.d.ts.map +1 -0
- package/dist/esm/models/mintplanlineinput.js +13 -0
- package/dist/esm/models/mintplanlineinput.js.map +1 -0
- package/dist/esm/models/mintplanlineref.d.ts +12 -0
- package/dist/esm/models/mintplanlineref.d.ts.map +1 -0
- package/dist/esm/models/mintplanlineref.js +11 -0
- package/dist/esm/models/mintplanlineref.js.map +1 -0
- package/dist/esm/models/mintplanversionrequest.d.ts +8 -30
- package/dist/esm/models/mintplanversionrequest.d.ts.map +1 -1
- package/dist/esm/models/mintplanversionrequest.js +3 -11
- package/dist/esm/models/mintplanversionrequest.js.map +1 -1
- package/dist/esm/models/operations/createbillablemetric.d.ts +3 -3
- package/dist/esm/models/operations/createbillablemetric.d.ts.map +1 -1
- package/dist/esm/models/operations/createbillablemetric.js +1 -1
- package/dist/esm/models/operations/createbillablemetric.js.map +1 -1
- package/dist/esm/models/operations/createexternalreference.d.ts +3 -0
- package/dist/esm/models/operations/createexternalreference.d.ts.map +1 -1
- package/dist/esm/models/operations/createexternalreference.js.map +1 -1
- package/dist/esm/models/operations/createitem.d.ts +3 -0
- package/dist/esm/models/operations/createitem.d.ts.map +1 -1
- package/dist/esm/models/operations/createitem.js.map +1 -1
- package/dist/esm/models/operations/createplan.d.ts +3 -3
- package/dist/esm/models/operations/createplan.d.ts.map +1 -1
- package/dist/esm/models/operations/createplan.js +1 -1
- package/dist/esm/models/operations/createplan.js.map +1 -1
- package/dist/esm/models/operations/createtestclock.d.ts +1 -1
- package/dist/esm/models/operations/listbillingschedules.d.ts +1 -1
- package/dist/esm/models/operations/listbillingschedules.d.ts.map +1 -1
- package/dist/esm/models/operations/listbillingschedules.js +1 -1
- package/dist/esm/models/operations/listbillingschedules.js.map +1 -1
- package/dist/esm/models/operations/listpaymentsessions.d.ts +1 -1
- package/dist/esm/models/operations/listpaymentsessions.d.ts.map +1 -1
- package/dist/esm/models/operations/listpaymentsessions.js +1 -1
- package/dist/esm/models/operations/listpaymentsessions.js.map +1 -1
- package/dist/esm/models/operations/listprices.d.ts +1 -1
- package/dist/esm/models/operations/listprices.d.ts.map +1 -1
- package/dist/esm/models/operations/listprices.js +1 -1
- package/dist/esm/models/operations/listprices.js.map +1 -1
- package/dist/esm/models/operations/updatebillablemetric.d.ts +4 -4
- package/dist/esm/models/operations/updatebillablemetric.d.ts.map +1 -1
- package/dist/esm/models/operations/updatebillablemetric.js +1 -1
- package/dist/esm/models/operations/updatebillablemetric.js.map +1 -1
- package/dist/esm/models/order.d.ts +2 -2
- package/dist/esm/models/order.d.ts.map +1 -1
- package/dist/esm/models/order.js +2 -2
- package/dist/esm/models/order.js.map +1 -1
- package/dist/esm/models/orderapproval.d.ts +38 -0
- package/dist/esm/models/orderapproval.d.ts.map +1 -0
- package/dist/esm/models/orderapproval.js +38 -0
- package/dist/esm/models/orderapproval.js.map +1 -0
- package/dist/esm/models/orderbillingschedule.d.ts +72 -0
- package/dist/esm/models/orderbillingschedule.d.ts.map +1 -0
- package/dist/esm/models/orderbillingschedule.js +64 -0
- package/dist/esm/models/orderbillingschedule.js.map +1 -0
- package/dist/esm/models/paymentsession.d.ts +41 -18
- package/dist/esm/models/paymentsession.d.ts.map +1 -1
- package/dist/esm/models/paymentsession.js +12 -13
- package/dist/esm/models/paymentsession.js.map +1 -1
- package/dist/esm/models/plan.d.ts +2 -2
- package/dist/esm/models/plan.d.ts.map +1 -1
- package/dist/esm/models/plan.js +2 -2
- package/dist/esm/models/plan.js.map +1 -1
- package/dist/esm/models/planlineinput.d.ts +23 -0
- package/dist/esm/models/planlineinput.d.ts.map +1 -0
- package/dist/esm/models/planlineinput.js +13 -0
- package/dist/esm/models/planlineinput.js.map +1 -0
- package/dist/esm/models/planlineref.d.ts +12 -0
- package/dist/esm/models/planlineref.d.ts.map +1 -0
- package/dist/esm/models/planlineref.js +11 -0
- package/dist/esm/models/planlineref.js.map +1 -0
- package/dist/{commonjs/models/schemasprice.d.ts → esm/models/planprice.d.ts} +55 -37
- package/dist/esm/models/planprice.d.ts.map +1 -0
- package/dist/esm/models/planprice.js +65 -0
- package/dist/esm/models/planprice.js.map +1 -0
- package/dist/esm/models/planversionpriceslot.d.ts +5 -1
- package/dist/esm/models/planversionpriceslot.d.ts.map +1 -1
- package/dist/esm/models/planversionpriceslot.js +1 -0
- package/dist/esm/models/planversionpriceslot.js.map +1 -1
- package/dist/esm/models/price.d.ts +25 -43
- package/dist/esm/models/price.d.ts.map +1 -1
- package/dist/esm/models/price.js +10 -28
- package/dist/esm/models/price.js.map +1 -1
- package/dist/esm/models/profitabilityrow.d.ts +1 -1
- package/dist/esm/models/revenuesummaryresponse.d.ts +2 -2
- package/dist/esm/models/revenuetrendbucket.d.ts +1 -1
- package/dist/esm/models/subscriptionadjustment.d.ts +16 -6
- package/dist/esm/models/subscriptionadjustment.d.ts.map +1 -1
- package/dist/esm/models/subscriptionadjustment.js +4 -0
- package/dist/esm/models/subscriptionadjustment.js.map +1 -1
- package/dist/esm/sdk/approvals.d.ts +3 -3
- package/dist/esm/sdk/approvals.d.ts.map +1 -1
- package/dist/esm/sdk/billingschedules.d.ts +3 -3
- package/dist/esm/sdk/billingschedules.d.ts.map +1 -1
- package/dist/esm/sdk/customers.d.ts +1 -1
- package/dist/esm/sdk/customers.d.ts.map +1 -1
- package/dist/esm/sdk/orders.d.ts +1 -1
- package/dist/esm/sdk/orders.d.ts.map +1 -1
- package/dist/esm/sdk/plans.d.ts +1 -1
- package/dist/esm/sdk/plans.js +1 -1
- package/dist/esm/sdk/prices.d.ts +3 -3
- package/dist/esm/sdk/prices.d.ts.map +1 -1
- package/dist/esm/sdk/subscriptions.d.ts +2 -2
- package/dist/esm/sdk/subscriptions.d.ts.map +1 -1
- package/dist/esm/sdk/subscriptions.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/approvalsCreateApproval.ts +4 -4
- package/src/funcs/approvalsGetApproval.ts +4 -4
- package/src/funcs/approvalsUpdateApproval.ts +4 -4
- package/src/funcs/billingSchedulesCreateBillingSchedule.ts +4 -4
- package/src/funcs/billingSchedulesGetBillingSchedule.ts +4 -4
- package/src/funcs/billingSchedulesUpdateBillingSchedule.ts +4 -4
- package/src/funcs/customersCreateCustomerPaymentMethod.ts +4 -4
- package/src/funcs/ordersCreateOrderApproval.ts +4 -4
- package/src/funcs/plansMintPlanVersion.ts +1 -1
- package/src/funcs/pricesCreate.ts +4 -4
- package/src/funcs/pricesGet.ts +4 -4
- package/src/funcs/pricesUpdate.ts +4 -4
- package/src/funcs/subscriptionsDeleteSubscriptionAdjustment.ts +7 -6
- package/src/lib/config.ts +2 -2
- package/src/models/approval.ts +26 -4
- package/src/models/approvallist.ts +3 -6
- package/src/models/billingschedule.ts +13 -5
- package/src/models/createmaximumquantityadjustment.ts +72 -0
- package/src/models/createminimumquantityadjustment.ts +72 -0
- package/src/models/createsubscriptionadjustmentrequest.ts +19 -3
- package/src/models/currencybreakdownentry.ts +1 -1
- package/src/models/customerpaymentsession.ts +100 -0
- package/src/models/grouptrendentry.ts +1 -1
- package/src/models/index.ts +10 -4
- package/src/models/invoicecategorysummary.ts +1 -1
- package/src/models/item.ts +3 -0
- package/src/models/mintplanlineinput.ts +43 -0
- package/src/models/mintplanlineref.ts +31 -0
- package/src/models/mintplanversionrequest.ts +14 -46
- package/src/models/operations/createbillablemetric.ts +4 -4
- package/src/models/operations/createexternalreference.ts +3 -0
- package/src/models/operations/createitem.ts +3 -0
- package/src/models/operations/createplan.ts +4 -4
- package/src/models/operations/createtestclock.ts +1 -1
- package/src/models/operations/listbillingschedules.ts +2 -2
- package/src/models/operations/listpaymentsessions.ts +2 -2
- package/src/models/operations/listprices.ts +2 -2
- package/src/models/operations/updatebillablemetric.ts +5 -5
- package/src/models/order.ts +6 -6
- package/src/models/orderapproval.ts +81 -0
- package/src/models/orderbillingschedule.ts +138 -0
- package/src/models/paymentsession.ts +49 -26
- package/src/models/plan.ts +3 -3
- package/src/models/planlineinput.ts +39 -0
- package/src/models/planlineref.ts +29 -0
- package/src/models/{schemasprice.ts → planprice.ts} +80 -58
- package/src/models/planversionpriceslot.ts +6 -1
- package/src/models/price.ts +35 -58
- package/src/models/profitabilityrow.ts +1 -1
- package/src/models/revenuesummaryresponse.ts +2 -2
- package/src/models/revenuetrendbucket.ts +1 -1
- package/src/models/subscriptionadjustment.ts +18 -6
- package/src/sdk/approvals.ts +3 -3
- package/src/sdk/billingschedules.ts +3 -3
- package/src/sdk/customers.ts +1 -1
- package/src/sdk/orders.ts +1 -1
- package/src/sdk/plans.ts +1 -1
- package/src/sdk/prices.ts +3 -3
- package/src/sdk/subscriptions.ts +2 -2
- package/dist/commonjs/models/schemasapproval.d.ts +0 -53
- package/dist/commonjs/models/schemasapproval.d.ts.map +0 -1
- package/dist/commonjs/models/schemasapproval.js.map +0 -1
- package/dist/commonjs/models/schemasbillingschedule.d.ts +0 -74
- package/dist/commonjs/models/schemasbillingschedule.d.ts.map +0 -1
- package/dist/commonjs/models/schemasbillingschedule.js.map +0 -1
- package/dist/commonjs/models/schemaspaymentsession.d.ts +0 -76
- package/dist/commonjs/models/schemaspaymentsession.d.ts.map +0 -1
- package/dist/commonjs/models/schemaspaymentsession.js.map +0 -1
- package/dist/commonjs/models/schemasprice.d.ts.map +0 -1
- package/dist/commonjs/models/schemasprice.js.map +0 -1
- package/dist/esm/models/schemasapproval.d.ts +0 -53
- package/dist/esm/models/schemasapproval.d.ts.map +0 -1
- package/dist/esm/models/schemasapproval.js +0 -51
- package/dist/esm/models/schemasapproval.js.map +0 -1
- package/dist/esm/models/schemasbillingschedule.d.ts +0 -74
- package/dist/esm/models/schemasbillingschedule.d.ts.map +0 -1
- package/dist/esm/models/schemasbillingschedule.js +0 -66
- package/dist/esm/models/schemasbillingschedule.js.map +0 -1
- package/dist/esm/models/schemaspaymentsession.d.ts +0 -76
- package/dist/esm/models/schemaspaymentsession.d.ts.map +0 -1
- package/dist/esm/models/schemaspaymentsession.js +0 -43
- package/dist/esm/models/schemaspaymentsession.js.map +0 -1
- package/dist/esm/models/schemasprice.d.ts.map +0 -1
- package/dist/esm/models/schemasprice.js +0 -48
- package/dist/esm/models/schemasprice.js.map +0 -1
- package/src/models/schemasapproval.ts +0 -108
- package/src/models/schemasbillingschedule.ts +0 -148
- package/src/models/schemaspaymentsession.ts +0 -123
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
5
|
import { PaygenticCore } from "../core.js";
|
|
7
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
8
7
|
import * as M from "../lib/matchers.js";
|
|
@@ -22,6 +21,7 @@ import * as errors from "../models/errors/index.js";
|
|
|
22
21
|
import { PaygenticError } from "../models/errors/paygenticerror.js";
|
|
23
22
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
23
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as models from "../models/index.js";
|
|
25
25
|
import * as operations from "../models/operations/index.js";
|
|
26
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Delete Adjustment
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
*
|
|
33
|
+
* Stops an adjustment from applying to any period it has not already been billed on. An adjustment that has never reached an issued invoice is removed, and the response is 204. An adjustment that has already been billed on an issued invoice is RETRACTED instead: its effectiveTo moves to the end of the last period it was billed on, the adjustment still exists, and the response is 200 carrying it. Read a 200 as "shortened", not as "removed". No invoice changes either way: an issued invoice keeps its numbers, and a draft loses the adjustment only when its period is calculated again. Deleting the same adjustment again returns the same 200 and the same window.
|
|
34
34
|
*/
|
|
35
35
|
export function subscriptionsDeleteSubscriptionAdjustment(
|
|
36
36
|
client: PaygenticCore,
|
|
@@ -38,7 +38,7 @@ export function subscriptionsDeleteSubscriptionAdjustment(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
|
|
41
|
+
models.SubscriptionAdjustment | undefined,
|
|
42
42
|
| errors.ErrorT
|
|
43
43
|
| PaygenticError
|
|
44
44
|
| ResponseValidationError
|
|
@@ -64,7 +64,7 @@ async function $do(
|
|
|
64
64
|
): Promise<
|
|
65
65
|
[
|
|
66
66
|
Result<
|
|
67
|
-
|
|
67
|
+
models.SubscriptionAdjustment | undefined,
|
|
68
68
|
| errors.ErrorT
|
|
69
69
|
| PaygenticError
|
|
70
70
|
| ResponseValidationError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
const [result] = await M.match<
|
|
163
|
-
|
|
163
|
+
models.SubscriptionAdjustment | undefined,
|
|
164
164
|
| errors.ErrorT
|
|
165
165
|
| PaygenticError
|
|
166
166
|
| ResponseValidationError
|
|
@@ -171,7 +171,8 @@ async function $do(
|
|
|
171
171
|
| UnexpectedClientError
|
|
172
172
|
| SDKValidationError
|
|
173
173
|
>(
|
|
174
|
-
M.
|
|
174
|
+
M.json(200, models.SubscriptionAdjustment$inboundSchema.optional()),
|
|
175
|
+
M.nil(204, models.SubscriptionAdjustment$inboundSchema.optional()),
|
|
175
176
|
M.jsonErr([401, 403, 404, 409], errors.ErrorT$inboundSchema),
|
|
176
177
|
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
177
178
|
M.fail("4XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "0.1.0",
|
|
68
|
-
sdkVersion: "0.9.
|
|
68
|
+
sdkVersion: "0.9.13",
|
|
69
69
|
genVersion: "2.879.13",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.9.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.9.13 2.879.13 0.1.0 @paygentic/sdk",
|
|
71
71
|
} as const;
|
package/src/models/approval.ts
CHANGED
|
@@ -13,6 +13,19 @@ export const ApprovalObject = {
|
|
|
13
13
|
} as const;
|
|
14
14
|
export type ApprovalObject = ClosedEnum<typeof ApprovalObject>;
|
|
15
15
|
|
|
16
|
+
export const ApprovalResourceType = {
|
|
17
|
+
Order: "order",
|
|
18
|
+
Invoice: "invoice",
|
|
19
|
+
} as const;
|
|
20
|
+
export type ApprovalResourceType = ClosedEnum<typeof ApprovalResourceType>;
|
|
21
|
+
|
|
22
|
+
export const ApprovalKind = {
|
|
23
|
+
DataReview: "data_review",
|
|
24
|
+
FinancialReview: "financial_review",
|
|
25
|
+
Push: "push",
|
|
26
|
+
} as const;
|
|
27
|
+
export type ApprovalKind = ClosedEnum<typeof ApprovalKind>;
|
|
28
|
+
|
|
16
29
|
export const ApprovalDecision = {
|
|
17
30
|
Pending: "pending",
|
|
18
31
|
Approved: "approved",
|
|
@@ -25,9 +38,9 @@ export type Approval = {
|
|
|
25
38
|
id: string;
|
|
26
39
|
object: ApprovalObject;
|
|
27
40
|
merchantId: string;
|
|
28
|
-
resourceType:
|
|
41
|
+
resourceType: ApprovalResourceType;
|
|
29
42
|
resourceId: string;
|
|
30
|
-
kind:
|
|
43
|
+
kind: ApprovalKind;
|
|
31
44
|
decision: ApprovalDecision;
|
|
32
45
|
requester: string;
|
|
33
46
|
reviewer?: string | null | undefined;
|
|
@@ -42,6 +55,15 @@ export const ApprovalObject$inboundSchema: z.ZodNativeEnum<
|
|
|
42
55
|
typeof ApprovalObject
|
|
43
56
|
> = z.nativeEnum(ApprovalObject);
|
|
44
57
|
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const ApprovalResourceType$inboundSchema: z.ZodNativeEnum<
|
|
60
|
+
typeof ApprovalResourceType
|
|
61
|
+
> = z.nativeEnum(ApprovalResourceType);
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ApprovalKind$inboundSchema: z.ZodNativeEnum<typeof ApprovalKind> =
|
|
65
|
+
z.nativeEnum(ApprovalKind);
|
|
66
|
+
|
|
45
67
|
/** @internal */
|
|
46
68
|
export const ApprovalDecision$inboundSchema: z.ZodNativeEnum<
|
|
47
69
|
typeof ApprovalDecision
|
|
@@ -56,9 +78,9 @@ export const Approval$inboundSchema: z.ZodType<
|
|
|
56
78
|
id: z.string(),
|
|
57
79
|
object: ApprovalObject$inboundSchema,
|
|
58
80
|
merchantId: z.string(),
|
|
59
|
-
resourceType:
|
|
81
|
+
resourceType: ApprovalResourceType$inboundSchema,
|
|
60
82
|
resourceId: z.string(),
|
|
61
|
-
kind:
|
|
83
|
+
kind: ApprovalKind$inboundSchema,
|
|
62
84
|
decision: ApprovalDecision$inboundSchema,
|
|
63
85
|
requester: z.string(),
|
|
64
86
|
reviewer: z.nullable(z.string()).optional(),
|
|
@@ -6,15 +6,12 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { Approval, Approval$inboundSchema } from "./approval.js";
|
|
9
10
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
11
12
|
OffsetPagination,
|
|
12
13
|
OffsetPagination$inboundSchema,
|
|
13
14
|
} from "./offsetpagination.js";
|
|
14
|
-
import {
|
|
15
|
-
SchemasApproval,
|
|
16
|
-
SchemasApproval$inboundSchema,
|
|
17
|
-
} from "./schemasapproval.js";
|
|
18
15
|
|
|
19
16
|
export const ApprovalListObject = {
|
|
20
17
|
List: "list",
|
|
@@ -23,7 +20,7 @@ export type ApprovalListObject = ClosedEnum<typeof ApprovalListObject>;
|
|
|
23
20
|
|
|
24
21
|
export type ApprovalList = {
|
|
25
22
|
object: ApprovalListObject;
|
|
26
|
-
data: Array<
|
|
23
|
+
data: Array<Approval>;
|
|
27
24
|
/**
|
|
28
25
|
* Offset-based pagination response.
|
|
29
26
|
*/
|
|
@@ -42,7 +39,7 @@ export const ApprovalList$inboundSchema: z.ZodType<
|
|
|
42
39
|
unknown
|
|
43
40
|
> = z.object({
|
|
44
41
|
object: ApprovalListObject$inboundSchema,
|
|
45
|
-
data: z.array(
|
|
42
|
+
data: z.array(Approval$inboundSchema),
|
|
46
43
|
pagination: OffsetPagination$inboundSchema,
|
|
47
44
|
});
|
|
48
45
|
|
|
@@ -50,9 +50,6 @@ export type BillingSchedulePeriodPreset = ClosedEnum<
|
|
|
50
50
|
typeof BillingSchedulePeriodPreset
|
|
51
51
|
>;
|
|
52
52
|
|
|
53
|
-
/**
|
|
54
|
-
* Summary of a billing schedule owned by this order. The full schedule (with intervals + staged invoices) is served under /billingSchedules. Owner-polymorphic: a schedule belongs to exactly one Order or one Subscription (XOR); cadence lives on ScheduleIntervals, not the header.
|
|
55
|
-
*/
|
|
56
53
|
export type BillingSchedule = {
|
|
57
54
|
id: string;
|
|
58
55
|
object: BillingScheduleObject;
|
|
@@ -61,15 +58,20 @@ export type BillingSchedule = {
|
|
|
61
58
|
merchantId: string;
|
|
62
59
|
status: BillingScheduleStatus;
|
|
63
60
|
startDate: Date;
|
|
64
|
-
|
|
61
|
+
/**
|
|
62
|
+
* The schedule's end date. Always present.
|
|
63
|
+
*/
|
|
64
|
+
endDate: Date | null;
|
|
65
65
|
billingAnchor: Date;
|
|
66
66
|
alignmentPolicy: BillingScheduleAlignmentPolicy;
|
|
67
67
|
prorationPolicy: BillingScheduleProrationPolicy;
|
|
68
68
|
paymentTermDays?: number | null | undefined;
|
|
69
69
|
periodPreset: BillingSchedulePeriodPreset;
|
|
70
|
+
customPeriodWindows: Array<any>;
|
|
70
71
|
metadata: { [k: string]: any };
|
|
71
72
|
createdAt: Date;
|
|
72
73
|
updatedAt: Date;
|
|
74
|
+
deletedAt?: Date | null | undefined;
|
|
73
75
|
};
|
|
74
76
|
|
|
75
77
|
/** @internal */
|
|
@@ -110,7 +112,9 @@ export const BillingSchedule$inboundSchema: z.ZodType<
|
|
|
110
112
|
merchantId: z.string(),
|
|
111
113
|
status: BillingScheduleStatus$inboundSchema,
|
|
112
114
|
startDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
113
|
-
endDate: z.
|
|
115
|
+
endDate: z.nullable(
|
|
116
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
117
|
+
),
|
|
114
118
|
billingAnchor: z.string().datetime({ offset: true }).transform(v =>
|
|
115
119
|
new Date(v)
|
|
116
120
|
),
|
|
@@ -118,9 +122,13 @@ export const BillingSchedule$inboundSchema: z.ZodType<
|
|
|
118
122
|
prorationPolicy: BillingScheduleProrationPolicy$inboundSchema,
|
|
119
123
|
paymentTermDays: z.nullable(z.number().int()).optional(),
|
|
120
124
|
periodPreset: BillingSchedulePeriodPreset$inboundSchema,
|
|
125
|
+
customPeriodWindows: z.array(z.any()),
|
|
121
126
|
metadata: z.record(z.any()),
|
|
122
127
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
123
128
|
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
129
|
+
deletedAt: z.nullable(
|
|
130
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
131
|
+
).optional(),
|
|
124
132
|
});
|
|
125
133
|
|
|
126
134
|
export function billingScheduleFromJSON(
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type CreateMaximumQuantityAdjustment = {
|
|
8
|
+
/**
|
|
9
|
+
* Bills at most the contracted quantity on one price, whatever the customer actually used.
|
|
10
|
+
*/
|
|
11
|
+
type: "maximumQuantity";
|
|
12
|
+
/**
|
|
13
|
+
* The contracted maximum quantity for one billing period of the target price, sent as a plain decimal string. Not negative, at most 6 decimal places, fewer than 35 digits before the point. Plain notation only — no sign, exponent, hex or digit separators, so "1_000" and "1e3" are rejected rather than read as 1000. "4" bills 4 seats in a period the customer used 9 in; a value of 0 bills nothing at all. Measured over the whole billing period, not per line: where a period is split into several lines, each line's quantity counts for its share of the period, and every line is scaled by the same factor to bring the period to the maximum. Several bounds of the same direction on one price do not add up — the greatest minimum and the least maximum are the ones that apply.
|
|
14
|
+
*/
|
|
15
|
+
maximumQuantity: string;
|
|
16
|
+
/**
|
|
17
|
+
* Exactly one price of this subscription. A metered price is accepted, and so is a price whose supply is outside the scope of VAT: a bound constrains a measurement rather than an amount of consideration. A price that bills once rather than per period is refused, because there is no repeating period for the bound to be measured over.
|
|
18
|
+
*/
|
|
19
|
+
targetPriceIds: Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Opens the window. Exclusive for this type: a line is bounded when its period END falls after this instant, so a window opening exactly when a period ends belongs to the next period, not that one. The bound is never prorated — a window opening mid-period applies to that whole period.
|
|
22
|
+
*/
|
|
23
|
+
effectiveFrom: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Closes the window. INCLUSIVE for this type, like usageDiscount and unlike percentageDiscount: set this to the exact period end you are bounding and that period is covered. Null means the bound never stops. Must be after effectiveFrom.
|
|
26
|
+
*/
|
|
27
|
+
effectiveTo?: Date | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Your own name for this term. A quantity bound emits no invoice line, so this is printed nowhere on the invoice — it is returned on the adjustment for your own records.
|
|
30
|
+
*/
|
|
31
|
+
description?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* A key of your choosing that makes a retry safe. Sending the same key against the same subscription returns the adjustment already created and creates no second one. Without a key a retried request creates a second bound; two identical bounds change nothing, because bounds of one direction do not add up.
|
|
34
|
+
*/
|
|
35
|
+
idempotencyKey?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type CreateMaximumQuantityAdjustment$Outbound = {
|
|
40
|
+
type: "maximumQuantity";
|
|
41
|
+
maximumQuantity: string;
|
|
42
|
+
targetPriceIds: Array<string>;
|
|
43
|
+
effectiveFrom: string;
|
|
44
|
+
effectiveTo?: string | null | undefined;
|
|
45
|
+
description?: string | null | undefined;
|
|
46
|
+
idempotencyKey?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const CreateMaximumQuantityAdjustment$outboundSchema: z.ZodType<
|
|
51
|
+
CreateMaximumQuantityAdjustment$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
CreateMaximumQuantityAdjustment
|
|
54
|
+
> = z.object({
|
|
55
|
+
type: z.literal("maximumQuantity"),
|
|
56
|
+
maximumQuantity: z.string(),
|
|
57
|
+
targetPriceIds: z.array(z.string()),
|
|
58
|
+
effectiveFrom: z.date().transform(v => v.toISOString()),
|
|
59
|
+
effectiveTo: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
60
|
+
description: z.nullable(z.string()).optional(),
|
|
61
|
+
idempotencyKey: z.string().optional(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function createMaximumQuantityAdjustmentToJSON(
|
|
65
|
+
createMaximumQuantityAdjustment: CreateMaximumQuantityAdjustment,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
CreateMaximumQuantityAdjustment$outboundSchema.parse(
|
|
69
|
+
createMaximumQuantityAdjustment,
|
|
70
|
+
),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type CreateMinimumQuantityAdjustment = {
|
|
8
|
+
/**
|
|
9
|
+
* Bills at least the contracted quantity on one price, whatever the customer actually used.
|
|
10
|
+
*/
|
|
11
|
+
type: "minimumQuantity";
|
|
12
|
+
/**
|
|
13
|
+
* The contracted minimum quantity for one billing period of the target price, sent as a plain decimal string. Not negative, at most 6 decimal places, fewer than 35 digits before the point. Plain notation only — no sign, exponent, hex or digit separators, so "1_000" and "1e3" are rejected rather than read as 1000. "4" bills 4 seats in a period the customer used 2 in; a value of 0 binds nothing. Measured over the whole billing period, not per line: where a period is split into several lines, each line's quantity counts for its share of the period, and every line is scaled by the same factor to bring the period to the minimum. Several bounds of the same direction on one price do not add up — the greatest minimum and the least maximum are the ones that apply.
|
|
14
|
+
*/
|
|
15
|
+
minimumQuantity: string;
|
|
16
|
+
/**
|
|
17
|
+
* Exactly one price of this subscription. A metered price is accepted, and so is a price whose supply is outside the scope of VAT: a bound constrains a measurement rather than an amount of consideration. A price that bills once rather than per period is refused, because there is no repeating period for the bound to be measured over.
|
|
18
|
+
*/
|
|
19
|
+
targetPriceIds: Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Opens the window. Exclusive for this type: a line is bounded when its period END falls after this instant, so a window opening exactly when a period ends belongs to the next period, not that one. The bound is never prorated — a window opening mid-period applies to that whole period.
|
|
22
|
+
*/
|
|
23
|
+
effectiveFrom: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Closes the window. INCLUSIVE for this type, like usageDiscount and unlike percentageDiscount: set this to the exact period end you are bounding and that period is covered. Null means the bound never stops. Must be after effectiveFrom.
|
|
26
|
+
*/
|
|
27
|
+
effectiveTo?: Date | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Your own name for this term. A quantity bound emits no invoice line, so this is printed nowhere on the invoice — it is returned on the adjustment for your own records.
|
|
30
|
+
*/
|
|
31
|
+
description?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* A key of your choosing that makes a retry safe. Sending the same key against the same subscription returns the adjustment already created and creates no second one. Without a key a retried request creates a second bound; two identical bounds change nothing, because bounds of one direction do not add up.
|
|
34
|
+
*/
|
|
35
|
+
idempotencyKey?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type CreateMinimumQuantityAdjustment$Outbound = {
|
|
40
|
+
type: "minimumQuantity";
|
|
41
|
+
minimumQuantity: string;
|
|
42
|
+
targetPriceIds: Array<string>;
|
|
43
|
+
effectiveFrom: string;
|
|
44
|
+
effectiveTo?: string | null | undefined;
|
|
45
|
+
description?: string | null | undefined;
|
|
46
|
+
idempotencyKey?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const CreateMinimumQuantityAdjustment$outboundSchema: z.ZodType<
|
|
51
|
+
CreateMinimumQuantityAdjustment$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
CreateMinimumQuantityAdjustment
|
|
54
|
+
> = z.object({
|
|
55
|
+
type: z.literal("minimumQuantity"),
|
|
56
|
+
minimumQuantity: z.string(),
|
|
57
|
+
targetPriceIds: z.array(z.string()),
|
|
58
|
+
effectiveFrom: z.date().transform(v => v.toISOString()),
|
|
59
|
+
effectiveTo: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
60
|
+
description: z.nullable(z.string()).optional(),
|
|
61
|
+
idempotencyKey: z.string().optional(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function createMinimumQuantityAdjustmentToJSON(
|
|
65
|
+
createMinimumQuantityAdjustment: CreateMinimumQuantityAdjustment,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
CreateMinimumQuantityAdjustment$outboundSchema.parse(
|
|
69
|
+
createMinimumQuantityAdjustment,
|
|
70
|
+
),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
CreateMaximumQuantityAdjustment,
|
|
8
|
+
CreateMaximumQuantityAdjustment$Outbound,
|
|
9
|
+
CreateMaximumQuantityAdjustment$outboundSchema,
|
|
10
|
+
} from "./createmaximumquantityadjustment.js";
|
|
11
|
+
import {
|
|
12
|
+
CreateMinimumQuantityAdjustment,
|
|
13
|
+
CreateMinimumQuantityAdjustment$Outbound,
|
|
14
|
+
CreateMinimumQuantityAdjustment$outboundSchema,
|
|
15
|
+
} from "./createminimumquantityadjustment.js";
|
|
6
16
|
import {
|
|
7
17
|
CreatePercentageDiscountAdjustment,
|
|
8
18
|
CreatePercentageDiscountAdjustment$Outbound,
|
|
@@ -15,16 +25,20 @@ import {
|
|
|
15
25
|
} from "./createusagediscountadjustment.js";
|
|
16
26
|
|
|
17
27
|
/**
|
|
18
|
-
* One adjustment to attach to the subscription. The type decides which number the body carries: a rate for percentageDiscount, a unit count and one target price for usageDiscount.
|
|
28
|
+
* One adjustment to attach to the subscription. The type decides which number the body carries: a rate for percentageDiscount, a unit count and one target price for usageDiscount, and a contracted quantity and one target price for minimumQuantity and maximumQuantity.
|
|
19
29
|
*/
|
|
20
30
|
export type CreateSubscriptionAdjustmentRequest =
|
|
21
31
|
| CreatePercentageDiscountAdjustment
|
|
22
|
-
| CreateUsageDiscountAdjustment
|
|
32
|
+
| CreateUsageDiscountAdjustment
|
|
33
|
+
| CreateMinimumQuantityAdjustment
|
|
34
|
+
| CreateMaximumQuantityAdjustment;
|
|
23
35
|
|
|
24
36
|
/** @internal */
|
|
25
37
|
export type CreateSubscriptionAdjustmentRequest$Outbound =
|
|
26
38
|
| CreatePercentageDiscountAdjustment$Outbound
|
|
27
|
-
| CreateUsageDiscountAdjustment$Outbound
|
|
39
|
+
| CreateUsageDiscountAdjustment$Outbound
|
|
40
|
+
| CreateMinimumQuantityAdjustment$Outbound
|
|
41
|
+
| CreateMaximumQuantityAdjustment$Outbound;
|
|
28
42
|
|
|
29
43
|
/** @internal */
|
|
30
44
|
export const CreateSubscriptionAdjustmentRequest$outboundSchema: z.ZodType<
|
|
@@ -34,6 +48,8 @@ export const CreateSubscriptionAdjustmentRequest$outboundSchema: z.ZodType<
|
|
|
34
48
|
> = z.union([
|
|
35
49
|
CreatePercentageDiscountAdjustment$outboundSchema,
|
|
36
50
|
CreateUsageDiscountAdjustment$outboundSchema,
|
|
51
|
+
CreateMinimumQuantityAdjustment$outboundSchema,
|
|
52
|
+
CreateMaximumQuantityAdjustment$outboundSchema,
|
|
37
53
|
]);
|
|
38
54
|
|
|
39
55
|
export function createSubscriptionAdjustmentRequestToJSON(
|
|
@@ -25,7 +25,7 @@ export type CurrencyBreakdownEntry = {
|
|
|
25
25
|
*/
|
|
26
26
|
currency: string;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Revenue in dollars for this currency, excluding tax: invoices issued in the period plus completed payments
|
|
29
29
|
*/
|
|
30
30
|
netRevenue: string;
|
|
31
31
|
invoices: InvoiceSummary;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const CustomerPaymentSessionObject = {
|
|
12
|
+
PaymentSession: "paymentSession",
|
|
13
|
+
} as const;
|
|
14
|
+
export type CustomerPaymentSessionObject = ClosedEnum<
|
|
15
|
+
typeof CustomerPaymentSessionObject
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export const Mode = {
|
|
19
|
+
Payment: "payment",
|
|
20
|
+
Setup: "setup",
|
|
21
|
+
} as const;
|
|
22
|
+
export type Mode = ClosedEnum<typeof Mode>;
|
|
23
|
+
|
|
24
|
+
export const CustomerPaymentSessionStatus = {
|
|
25
|
+
Pending: "pending",
|
|
26
|
+
Processing: "processing",
|
|
27
|
+
Completed: "completed",
|
|
28
|
+
Failed: "failed",
|
|
29
|
+
Expired: "expired",
|
|
30
|
+
Cancelled: "cancelled",
|
|
31
|
+
} as const;
|
|
32
|
+
export type CustomerPaymentSessionStatus = ClosedEnum<
|
|
33
|
+
typeof CustomerPaymentSessionStatus
|
|
34
|
+
>;
|
|
35
|
+
|
|
36
|
+
export type CustomerPaymentSession = {
|
|
37
|
+
object: CustomerPaymentSessionObject;
|
|
38
|
+
/**
|
|
39
|
+
* Payment session identifier (e.g. `ps_...`).
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
mode: Mode;
|
|
43
|
+
status: CustomerPaymentSessionStatus;
|
|
44
|
+
/**
|
|
45
|
+
* Hosted page URL. Redirect the customer here, or load it inside an iframe — when iframed, the page reports outcomes via `postMessage` (`payment_success` / `payment_error`) to the parent window.
|
|
46
|
+
*/
|
|
47
|
+
url: string;
|
|
48
|
+
successRedirectUrl?: string | null | undefined;
|
|
49
|
+
failureRedirectUrl?: string | null | undefined;
|
|
50
|
+
metadata?: { [k: string]: any } | undefined;
|
|
51
|
+
expiresAt: Date;
|
|
52
|
+
completedAt?: Date | null | undefined;
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const CustomerPaymentSessionObject$inboundSchema: z.ZodNativeEnum<
|
|
58
|
+
typeof CustomerPaymentSessionObject
|
|
59
|
+
> = z.nativeEnum(CustomerPaymentSessionObject);
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const Mode$inboundSchema: z.ZodNativeEnum<typeof Mode> = z.nativeEnum(
|
|
63
|
+
Mode,
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const CustomerPaymentSessionStatus$inboundSchema: z.ZodNativeEnum<
|
|
68
|
+
typeof CustomerPaymentSessionStatus
|
|
69
|
+
> = z.nativeEnum(CustomerPaymentSessionStatus);
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const CustomerPaymentSession$inboundSchema: z.ZodType<
|
|
73
|
+
CustomerPaymentSession,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
unknown
|
|
76
|
+
> = z.object({
|
|
77
|
+
object: CustomerPaymentSessionObject$inboundSchema,
|
|
78
|
+
id: z.string(),
|
|
79
|
+
mode: Mode$inboundSchema,
|
|
80
|
+
status: CustomerPaymentSessionStatus$inboundSchema,
|
|
81
|
+
url: z.string(),
|
|
82
|
+
successRedirectUrl: z.nullable(z.string()).optional(),
|
|
83
|
+
failureRedirectUrl: z.nullable(z.string()).optional(),
|
|
84
|
+
metadata: z.record(z.any()).optional(),
|
|
85
|
+
expiresAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
86
|
+
completedAt: z.nullable(
|
|
87
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
88
|
+
).optional(),
|
|
89
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export function customerPaymentSessionFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<CustomerPaymentSession, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => CustomerPaymentSession$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'CustomerPaymentSession' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -17,7 +17,7 @@ export type GroupTrendEntry = {
|
|
|
17
17
|
*/
|
|
18
18
|
groupLabel: string;
|
|
19
19
|
/**
|
|
20
|
-
* Total issued invoice amount in dollars for this group in this bucket
|
|
20
|
+
* Total issued invoice amount in dollars for this group in this bucket, excluding tax
|
|
21
21
|
*/
|
|
22
22
|
issuedInvoices: string;
|
|
23
23
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -18,6 +18,8 @@ export * from "./createapprovalrequest.js";
|
|
|
18
18
|
export * from "./createbillingschedulerequest.js";
|
|
19
19
|
export * from "./creategrantrequest.js";
|
|
20
20
|
export * from "./createmanuallineitemrequest.js";
|
|
21
|
+
export * from "./createmaximumquantityadjustment.js";
|
|
22
|
+
export * from "./createminimumquantityadjustment.js";
|
|
21
23
|
export * from "./createorderapprovalrequest.js";
|
|
22
24
|
export * from "./createorderlineitemrequest.js";
|
|
23
25
|
export * from "./createorderrequest.js";
|
|
@@ -27,6 +29,7 @@ export * from "./createsubscriptionadjustmentrequest.js";
|
|
|
27
29
|
export * from "./createusagediscountadjustment.js";
|
|
28
30
|
export * from "./currencybreakdownentry.js";
|
|
29
31
|
export * from "./customer.js";
|
|
32
|
+
export * from "./customerpaymentsession.js";
|
|
30
33
|
export * from "./entitlementdetail.js";
|
|
31
34
|
export * from "./entitlementlistitem.js";
|
|
32
35
|
export * from "./entitlementstatus.js";
|
|
@@ -59,9 +62,13 @@ export * from "./meteredentitlementdetail.js";
|
|
|
59
62
|
export * from "./meteredentitlementlistitem.js";
|
|
60
63
|
export * from "./meterevent.js";
|
|
61
64
|
export * from "./metereventlist.js";
|
|
65
|
+
export * from "./mintplanlineinput.js";
|
|
66
|
+
export * from "./mintplanlineref.js";
|
|
62
67
|
export * from "./mintplanversionrequest.js";
|
|
63
68
|
export * from "./offsetpagination.js";
|
|
64
69
|
export * from "./order.js";
|
|
70
|
+
export * from "./orderapproval.js";
|
|
71
|
+
export * from "./orderbillingschedule.js";
|
|
65
72
|
export * from "./orderlineitem.js";
|
|
66
73
|
export * from "./orderlist.js";
|
|
67
74
|
export * from "./payment.js";
|
|
@@ -70,6 +77,9 @@ export * from "./paymentsession.js";
|
|
|
70
77
|
export * from "./paymentsummary.js";
|
|
71
78
|
export * from "./plan.js";
|
|
72
79
|
export * from "./plancreditallocation.js";
|
|
80
|
+
export * from "./planlineinput.js";
|
|
81
|
+
export * from "./planlineref.js";
|
|
82
|
+
export * from "./planprice.js";
|
|
73
83
|
export * from "./planversion.js";
|
|
74
84
|
export * from "./planversionpriceslot.js";
|
|
75
85
|
export * from "./planversionsummary.js";
|
|
@@ -98,10 +108,6 @@ export * from "./revenuetrendbucket.js";
|
|
|
98
108
|
export * from "./rulecondition.js";
|
|
99
109
|
export * from "./scheduleinterval.js";
|
|
100
110
|
export * from "./scheduleinvoice.js";
|
|
101
|
-
export * from "./schemasapproval.js";
|
|
102
|
-
export * from "./schemasbillingschedule.js";
|
|
103
|
-
export * from "./schemaspaymentsession.js";
|
|
104
|
-
export * from "./schemasprice.js";
|
|
105
111
|
export * from "./security.js";
|
|
106
112
|
export * from "./source.js";
|
|
107
113
|
export * from "./sourceevent.js";
|
package/src/models/item.ts
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* One line of the new version: the price it bills, and the key that names it.
|
|
9
|
+
*/
|
|
10
|
+
export type MintPlanLineInput = {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for a price
|
|
13
|
+
*/
|
|
14
|
+
priceId: string;
|
|
15
|
+
/**
|
|
16
|
+
* The key of the line. A key this plan already holds keeps that line, whatever its shape, because a line created before keys could be supplied carries a generated key. A key the plan does not hold names a new line and must match the format in `PlanLineKey`. Omit this to receive a generated key.
|
|
17
|
+
*/
|
|
18
|
+
key?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type MintPlanLineInput$Outbound = {
|
|
23
|
+
priceId: string;
|
|
24
|
+
key?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const MintPlanLineInput$outboundSchema: z.ZodType<
|
|
29
|
+
MintPlanLineInput$Outbound,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
MintPlanLineInput
|
|
32
|
+
> = z.object({
|
|
33
|
+
priceId: z.string(),
|
|
34
|
+
key: z.string().optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function mintPlanLineInputToJSON(
|
|
38
|
+
mintPlanLineInput: MintPlanLineInput,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
MintPlanLineInput$outboundSchema.parse(mintPlanLineInput),
|
|
42
|
+
);
|
|
43
|
+
}
|