@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
|
@@ -9,16 +9,13 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export const PaymentSessionObject = {
|
|
12
|
-
PaymentSession: "
|
|
12
|
+
PaymentSession: "payment_session",
|
|
13
13
|
} as const;
|
|
14
14
|
export type PaymentSessionObject = ClosedEnum<typeof PaymentSessionObject>;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} as const;
|
|
20
|
-
export type Mode = ClosedEnum<typeof Mode>;
|
|
21
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Lifecycle status of the session.
|
|
18
|
+
*/
|
|
22
19
|
export const PaymentSessionStatus = {
|
|
23
20
|
Pending: "pending",
|
|
24
21
|
Processing: "processing",
|
|
@@ -27,26 +24,55 @@ export const PaymentSessionStatus = {
|
|
|
27
24
|
Expired: "expired",
|
|
28
25
|
Cancelled: "cancelled",
|
|
29
26
|
} as const;
|
|
27
|
+
/**
|
|
28
|
+
* Lifecycle status of the session.
|
|
29
|
+
*/
|
|
30
30
|
export type PaymentSessionStatus = ClosedEnum<typeof PaymentSessionStatus>;
|
|
31
31
|
|
|
32
32
|
export type PaymentSession = {
|
|
33
33
|
object: PaymentSessionObject;
|
|
34
34
|
/**
|
|
35
|
-
* Payment session
|
|
35
|
+
* Payment session ID (ps_*).
|
|
36
36
|
*/
|
|
37
37
|
id: string;
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Type of entity the session pays for (invoice, subscription, payment, topup).
|
|
40
|
+
*/
|
|
41
|
+
entityType: string;
|
|
42
|
+
/**
|
|
43
|
+
* ID of the entity the session pays for.
|
|
44
|
+
*/
|
|
45
|
+
entityId: string;
|
|
46
|
+
/**
|
|
47
|
+
* Display label for the entity — invoice number, payment-link reference, or subscription name. Null when no label is available.
|
|
48
|
+
*/
|
|
49
|
+
entityLabel?: string | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Amount in decimal dollars.
|
|
52
|
+
*/
|
|
53
|
+
amount: string;
|
|
54
|
+
/**
|
|
55
|
+
* ISO 4217 currency code.
|
|
56
|
+
*/
|
|
57
|
+
currency: string;
|
|
58
|
+
/**
|
|
59
|
+
* Lifecycle status of the session.
|
|
60
|
+
*/
|
|
39
61
|
status: PaymentSessionStatus;
|
|
40
62
|
/**
|
|
41
|
-
*
|
|
63
|
+
* Stripe Connect account ID (acct_*) when the session is routed to a connected account.
|
|
64
|
+
*/
|
|
65
|
+
merchantPaymentAccountId?: string | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Provider payment intent reference — Stripe PaymentIntent ID (pi_*) or Airwallex intent ID (int_*). Null until the intent is created on first checkout load.
|
|
68
|
+
*/
|
|
69
|
+
providerPaymentRef?: string | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Timestamp the session reached terminal completion. Null until the session completes.
|
|
42
72
|
*/
|
|
43
|
-
url: string;
|
|
44
|
-
successRedirectUrl?: string | null | undefined;
|
|
45
|
-
failureRedirectUrl?: string | null | undefined;
|
|
46
|
-
metadata?: { [k: string]: any } | undefined;
|
|
47
|
-
expiresAt: Date;
|
|
48
73
|
completedAt?: Date | null | undefined;
|
|
49
74
|
createdAt: Date;
|
|
75
|
+
updatedAt: Date;
|
|
50
76
|
};
|
|
51
77
|
|
|
52
78
|
/** @internal */
|
|
@@ -54,11 +80,6 @@ export const PaymentSessionObject$inboundSchema: z.ZodNativeEnum<
|
|
|
54
80
|
typeof PaymentSessionObject
|
|
55
81
|
> = z.nativeEnum(PaymentSessionObject);
|
|
56
82
|
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const Mode$inboundSchema: z.ZodNativeEnum<typeof Mode> = z.nativeEnum(
|
|
59
|
-
Mode,
|
|
60
|
-
);
|
|
61
|
-
|
|
62
83
|
/** @internal */
|
|
63
84
|
export const PaymentSessionStatus$inboundSchema: z.ZodNativeEnum<
|
|
64
85
|
typeof PaymentSessionStatus
|
|
@@ -72,17 +93,19 @@ export const PaymentSession$inboundSchema: z.ZodType<
|
|
|
72
93
|
> = z.object({
|
|
73
94
|
object: PaymentSessionObject$inboundSchema,
|
|
74
95
|
id: z.string(),
|
|
75
|
-
|
|
96
|
+
entityType: z.string(),
|
|
97
|
+
entityId: z.string(),
|
|
98
|
+
entityLabel: z.nullable(z.string()).optional(),
|
|
99
|
+
amount: z.string(),
|
|
100
|
+
currency: z.string(),
|
|
76
101
|
status: PaymentSessionStatus$inboundSchema,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
failureRedirectUrl: z.nullable(z.string()).optional(),
|
|
80
|
-
metadata: z.record(z.any()).optional(),
|
|
81
|
-
expiresAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
102
|
+
merchantPaymentAccountId: z.nullable(z.string()).optional(),
|
|
103
|
+
providerPaymentRef: z.nullable(z.string()).optional(),
|
|
82
104
|
completedAt: z.nullable(
|
|
83
105
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
84
106
|
).optional(),
|
|
85
107
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
108
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
86
109
|
});
|
|
87
110
|
|
|
88
111
|
export function paymentSessionFromJSON(
|
package/src/models/plan.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
PlanCreditAllocation,
|
|
13
13
|
PlanCreditAllocation$inboundSchema,
|
|
14
14
|
} from "./plancreditallocation.js";
|
|
15
|
-
import {
|
|
15
|
+
import { PlanPrice, PlanPrice$inboundSchema } from "./planprice.js";
|
|
16
16
|
|
|
17
17
|
export const PlanObject = {
|
|
18
18
|
Plan: "plan",
|
|
@@ -84,7 +84,7 @@ export type Plan = {
|
|
|
84
84
|
merchantId: string;
|
|
85
85
|
name: string;
|
|
86
86
|
paymentTerm?: PlanPaymentTerm | undefined;
|
|
87
|
-
prices?: Array<
|
|
87
|
+
prices?: Array<PlanPrice> | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* Unique identifier for a product
|
|
90
90
|
*/
|
|
@@ -186,7 +186,7 @@ export const Plan$inboundSchema: z.ZodType<Plan, z.ZodTypeDef, unknown> = z
|
|
|
186
186
|
merchantId: z.string(),
|
|
187
187
|
name: z.string(),
|
|
188
188
|
paymentTerm: z.lazy(() => PlanPaymentTerm$inboundSchema).optional(),
|
|
189
|
-
prices: z.array(
|
|
189
|
+
prices: z.array(PlanPrice$inboundSchema).optional(),
|
|
190
190
|
productId: z.string(),
|
|
191
191
|
taxBehavior: TaxBehavior$inboundSchema.optional(),
|
|
192
192
|
updatedAt: z.string().datetime({ offset: true }).transform(v =>
|
|
@@ -0,0 +1,39 @@
|
|
|
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 a plan: the price it bills, and the key that names it.
|
|
9
|
+
*/
|
|
10
|
+
export type PlanLineInput = {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for a price
|
|
13
|
+
*/
|
|
14
|
+
priceId: string;
|
|
15
|
+
/**
|
|
16
|
+
* The name you give one line of a plan, for example `platform_fee`. It starts with a lowercase letter or a digit, contains only lowercase letters, digits, hyphens and underscores, and is at most 64 characters. A key names one line for the life of the plan: every version that keeps the line carries the same key, and a key that you drop from one version and supply again on a later version says that the line resumed. Keys are compared exactly, so `Platform_Fee` is not accepted.
|
|
17
|
+
*/
|
|
18
|
+
key?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type PlanLineInput$Outbound = {
|
|
23
|
+
priceId: string;
|
|
24
|
+
key?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PlanLineInput$outboundSchema: z.ZodType<
|
|
29
|
+
PlanLineInput$Outbound,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
PlanLineInput
|
|
32
|
+
> = z.object({
|
|
33
|
+
priceId: z.string(),
|
|
34
|
+
key: z.string().optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function planLineInputToJSON(planLineInput: PlanLineInput): string {
|
|
38
|
+
return JSON.stringify(PlanLineInput$outboundSchema.parse(planLineInput));
|
|
39
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
PlanLineInput,
|
|
8
|
+
PlanLineInput$Outbound,
|
|
9
|
+
PlanLineInput$outboundSchema,
|
|
10
|
+
} from "./planlineinput.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Either a price ID on its own, or a price ID with the key that names its line.
|
|
14
|
+
*/
|
|
15
|
+
export type PlanLineRef = PlanLineInput | string;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type PlanLineRef$Outbound = PlanLineInput$Outbound | string;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const PlanLineRef$outboundSchema: z.ZodType<
|
|
22
|
+
PlanLineRef$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
PlanLineRef
|
|
25
|
+
> = z.union([PlanLineInput$outboundSchema, z.string()]);
|
|
26
|
+
|
|
27
|
+
export function planLineRefToJSON(planLineRef: PlanLineRef): string {
|
|
28
|
+
return JSON.stringify(PlanLineRef$outboundSchema.parse(planLineRef));
|
|
29
|
+
}
|
|
@@ -8,65 +8,66 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
10
|
import { PriceFeature, PriceFeature$inboundSchema } from "./pricefeature.js";
|
|
11
|
-
import { PriceModel, PriceModel$inboundSchema } from "./pricemodel.js";
|
|
12
|
-
import {
|
|
13
|
-
PriceProperties,
|
|
14
|
-
PriceProperties$inboundSchema,
|
|
15
|
-
} from "./priceproperties.js";
|
|
16
11
|
import { PriceTax, PriceTax$inboundSchema } from "./pricetax.js";
|
|
17
|
-
import { RateType, RateType$inboundSchema } from "./ratetype.js";
|
|
18
12
|
|
|
19
|
-
export const
|
|
13
|
+
export const PlanPriceObject = {
|
|
20
14
|
Price: "price",
|
|
21
15
|
} as const;
|
|
22
|
-
export type
|
|
16
|
+
export type PlanPriceObject = ClosedEnum<typeof PlanPriceObject>;
|
|
23
17
|
|
|
24
|
-
export const
|
|
18
|
+
export const PlanPriceModel = {
|
|
19
|
+
Standard: "standard",
|
|
20
|
+
Dynamic: "dynamic",
|
|
21
|
+
Volume: "volume",
|
|
22
|
+
Percentage: "percentage",
|
|
23
|
+
} as const;
|
|
24
|
+
export type PlanPriceModel = ClosedEnum<typeof PlanPriceModel>;
|
|
25
|
+
|
|
26
|
+
export const PlanPricePaymentTerm = {
|
|
25
27
|
InArrears: "in_arrears",
|
|
26
28
|
InAdvance: "in_advance",
|
|
27
29
|
} as const;
|
|
28
|
-
export type
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
export type PlanPricePaymentTerm = ClosedEnum<typeof PlanPricePaymentTerm>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* What properties.unitPrice is denominated in. 'amount' (the default) is an amount of the invoice currency for each unit metered, so the quantity is the multiplier. 'proportion' is the reverse: a dimensionless share of a currency-denominated quantity, so '0.02' is 2% and the invoice prints '2.00%'. Presentation only. Requires a standard metered price in real currency.
|
|
34
|
+
*/
|
|
35
|
+
export const PlanPriceRateType = {
|
|
36
|
+
Amount: "amount",
|
|
37
|
+
Proportion: "proportion",
|
|
38
|
+
} as const;
|
|
39
|
+
/**
|
|
40
|
+
* What properties.unitPrice is denominated in. 'amount' (the default) is an amount of the invoice currency for each unit metered, so the quantity is the multiplier. 'proportion' is the reverse: a dimensionless share of a currency-denominated quantity, so '0.02' is 2% and the invoice prints '2.00%'. Presentation only. Requires a standard metered price in real currency.
|
|
41
|
+
*/
|
|
42
|
+
export type PlanPriceRateType = ClosedEnum<typeof PlanPriceRateType>;
|
|
31
43
|
|
|
32
|
-
export type
|
|
44
|
+
export type PlanPrice = {
|
|
33
45
|
/**
|
|
34
46
|
* Unique identifier for a price
|
|
35
47
|
*/
|
|
36
48
|
id: string;
|
|
37
|
-
object:
|
|
49
|
+
object: PlanPriceObject;
|
|
38
50
|
/**
|
|
39
|
-
* Unique identifier for
|
|
51
|
+
* Unique identifier for an organization
|
|
40
52
|
*/
|
|
53
|
+
merchantId: string;
|
|
41
54
|
billableMetricId?: string | undefined;
|
|
42
55
|
/**
|
|
43
|
-
* The unique identifier for the fee referred to by this price
|
|
56
|
+
* The unique identifier for the fee referred to by this price
|
|
44
57
|
*/
|
|
45
58
|
feeId?: string | undefined;
|
|
46
59
|
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
pricingUnitId?: string | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Unique identifier for an organization
|
|
52
|
-
*/
|
|
53
|
-
merchantId: string;
|
|
54
|
-
/**
|
|
55
|
-
* ISO 8601 duration. 'P0D' for one-time, 'P1M' for monthly, 'P1Y' for yearly. Required for fees, optional for billable metrics. Defaults to plan's billingCadence if not specified.
|
|
60
|
+
* ISO 8601 duration for billing frequency (e.g., P1M for monthly)
|
|
56
61
|
*/
|
|
57
62
|
billingCadence?: string | null | undefined;
|
|
58
63
|
createdAt: Date;
|
|
64
|
+
currency?: string | undefined;
|
|
65
|
+
description?: string | undefined;
|
|
59
66
|
invoiceDisplayName: string;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Pricing model of a price as returned by the API. Includes the legacy models ('dynamic', 'percentage') retained for existing prices; 'standard' and 'volume' can be created (see PriceModelInput).
|
|
66
|
-
*/
|
|
67
|
-
model?: PriceModel | undefined;
|
|
68
|
-
paymentTerm: SchemasPricePaymentTerm;
|
|
69
|
-
properties: PriceProperties;
|
|
67
|
+
model: PlanPriceModel;
|
|
68
|
+
paymentTerm: PlanPricePaymentTerm;
|
|
69
|
+
properties: { [k: string]: any };
|
|
70
|
+
unitAmount?: string | undefined;
|
|
70
71
|
updatedAt: Date;
|
|
71
72
|
/**
|
|
72
73
|
* Features associated with this price
|
|
@@ -83,61 +84,82 @@ export type SchemasPrice = {
|
|
|
83
84
|
/**
|
|
84
85
|
* What properties.unitPrice is denominated in. 'amount' (the default) is an amount of the invoice currency for each unit metered, so the quantity is the multiplier. 'proportion' is the reverse: a dimensionless share of a currency-denominated quantity, so '0.02' is 2% and the invoice prints '2.00%'. Presentation only. Requires a standard metered price in real currency.
|
|
85
86
|
*/
|
|
86
|
-
rateType
|
|
87
|
+
rateType: PlanPriceRateType;
|
|
88
|
+
/**
|
|
89
|
+
* Presentation only. Prices sharing this value, within one billing period, print as a single row on the rendered invoice PDF and are described by this string. Every member still bills its own line item on the ledger, this API and the compliance document. The combined row's rate is derived from the members' own rates. Requires the 'standard' pricing model. Sample values: 'Cross Border Fees', 'FX Fees'
|
|
90
|
+
*/
|
|
91
|
+
invoiceDisplayGroup?: string | null | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Unique identifier for a pricing unit
|
|
94
|
+
*/
|
|
95
|
+
pricingUnitId?: string | undefined;
|
|
87
96
|
/**
|
|
88
97
|
* A price's tax declaration. Optional on write — a price that declares nothing is `IN_SCOPE`, and is billed and taxed exactly as it was before this object existed. Always present on read. Replaced as a whole on update: send the object to change it, omit it to leave it alone.
|
|
89
98
|
*/
|
|
90
99
|
tax: PriceTax;
|
|
91
100
|
/**
|
|
92
|
-
* Quantity
|
|
101
|
+
* Quantity used when generating invoice line items for this price. Total per period = quantity × unitPrice. Only supported for fee prices; metered prices derive quantity from usage. Defaults to 1.
|
|
93
102
|
*/
|
|
94
103
|
quantity: number;
|
|
95
104
|
};
|
|
96
105
|
|
|
97
106
|
/** @internal */
|
|
98
|
-
export const
|
|
99
|
-
typeof
|
|
100
|
-
> = z.nativeEnum(
|
|
107
|
+
export const PlanPriceObject$inboundSchema: z.ZodNativeEnum<
|
|
108
|
+
typeof PlanPriceObject
|
|
109
|
+
> = z.nativeEnum(PlanPriceObject);
|
|
101
110
|
|
|
102
111
|
/** @internal */
|
|
103
|
-
export const
|
|
104
|
-
typeof
|
|
105
|
-
> = z.nativeEnum(
|
|
112
|
+
export const PlanPriceModel$inboundSchema: z.ZodNativeEnum<
|
|
113
|
+
typeof PlanPriceModel
|
|
114
|
+
> = z.nativeEnum(PlanPriceModel);
|
|
106
115
|
|
|
107
116
|
/** @internal */
|
|
108
|
-
export const
|
|
109
|
-
|
|
117
|
+
export const PlanPricePaymentTerm$inboundSchema: z.ZodNativeEnum<
|
|
118
|
+
typeof PlanPricePaymentTerm
|
|
119
|
+
> = z.nativeEnum(PlanPricePaymentTerm);
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const PlanPriceRateType$inboundSchema: z.ZodNativeEnum<
|
|
123
|
+
typeof PlanPriceRateType
|
|
124
|
+
> = z.nativeEnum(PlanPriceRateType);
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const PlanPrice$inboundSchema: z.ZodType<
|
|
128
|
+
PlanPrice,
|
|
110
129
|
z.ZodTypeDef,
|
|
111
130
|
unknown
|
|
112
131
|
> = z.object({
|
|
113
132
|
id: z.string(),
|
|
114
|
-
object:
|
|
133
|
+
object: PlanPriceObject$inboundSchema.default("price"),
|
|
134
|
+
merchantId: z.string(),
|
|
115
135
|
billableMetricId: z.string().optional(),
|
|
116
136
|
feeId: z.string().optional(),
|
|
117
|
-
pricingUnitId: z.string().optional(),
|
|
118
|
-
merchantId: z.string(),
|
|
119
137
|
billingCadence: z.nullable(z.string()).optional(),
|
|
120
138
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
139
|
+
currency: z.string().optional(),
|
|
140
|
+
description: z.string().optional(),
|
|
121
141
|
invoiceDisplayName: z.string(),
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
142
|
+
model: PlanPriceModel$inboundSchema,
|
|
143
|
+
paymentTerm: PlanPricePaymentTerm$inboundSchema,
|
|
144
|
+
properties: z.record(z.any()),
|
|
145
|
+
unitAmount: z.string().optional(),
|
|
126
146
|
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
127
147
|
features: z.array(PriceFeature$inboundSchema).optional(),
|
|
128
148
|
grantDiscountEnabled: z.boolean().default(false),
|
|
129
149
|
isObligation: z.boolean().default(false),
|
|
130
|
-
rateType:
|
|
150
|
+
rateType: PlanPriceRateType$inboundSchema.default("amount"),
|
|
151
|
+
invoiceDisplayGroup: z.nullable(z.string()).optional(),
|
|
152
|
+
pricingUnitId: z.string().optional(),
|
|
131
153
|
tax: PriceTax$inboundSchema,
|
|
132
|
-
quantity: z.number().int(),
|
|
154
|
+
quantity: z.number().int().default(1),
|
|
133
155
|
});
|
|
134
156
|
|
|
135
|
-
export function
|
|
157
|
+
export function planPriceFromJSON(
|
|
136
158
|
jsonString: string,
|
|
137
|
-
): SafeParseResult<
|
|
159
|
+
): SafeParseResult<PlanPrice, SDKValidationError> {
|
|
138
160
|
return safeParse(
|
|
139
161
|
jsonString,
|
|
140
|
-
(x) =>
|
|
141
|
-
`Failed to parse '
|
|
162
|
+
(x) => PlanPrice$inboundSchema.parse(JSON.parse(x)),
|
|
163
|
+
`Failed to parse 'PlanPrice' from JSON`,
|
|
142
164
|
);
|
|
143
165
|
}
|
|
@@ -50,7 +50,7 @@ export type PlanVersionPriceSlotRateType = ClosedEnum<
|
|
|
50
50
|
>;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* One price slot on a plan version. Every `Price` field is present, plus `priceDeleted` layered on top.
|
|
53
|
+
* One price slot on a plan version. Every `Price` field is present, plus `key` and `priceDeleted` layered on top.
|
|
54
54
|
*/
|
|
55
55
|
export type PlanVersionPriceSlot = {
|
|
56
56
|
/**
|
|
@@ -112,6 +112,10 @@ export type PlanVersionPriceSlot = {
|
|
|
112
112
|
* Quantity used when generating invoice line items for this price. Total per period = quantity × unitPrice. Only supported for fee prices; metered prices derive quantity from usage. Defaults to 1.
|
|
113
113
|
*/
|
|
114
114
|
quantity: number;
|
|
115
|
+
/**
|
|
116
|
+
* The name of this line. Send it as the `key` of a subscription price-interval operation to address this line. A line created before keys could be supplied carries a generated key, which does not match the format that this API accepts for new keys.
|
|
117
|
+
*/
|
|
118
|
+
key: string;
|
|
115
119
|
/**
|
|
116
120
|
* True when the underlying price this slot references has been soft-deleted.
|
|
117
121
|
*/
|
|
@@ -167,6 +171,7 @@ export const PlanVersionPriceSlot$inboundSchema: z.ZodType<
|
|
|
167
171
|
pricingUnitId: z.string().optional(),
|
|
168
172
|
tax: PriceTax$inboundSchema,
|
|
169
173
|
quantity: z.number().int().default(1),
|
|
174
|
+
key: z.string(),
|
|
170
175
|
priceDeleted: z.boolean(),
|
|
171
176
|
});
|
|
172
177
|
|
package/src/models/price.ts
CHANGED
|
@@ -8,39 +8,25 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
10
|
import { PriceFeature, PriceFeature$inboundSchema } from "./pricefeature.js";
|
|
11
|
+
import { PriceModel, PriceModel$inboundSchema } from "./pricemodel.js";
|
|
12
|
+
import {
|
|
13
|
+
PriceProperties,
|
|
14
|
+
PriceProperties$inboundSchema,
|
|
15
|
+
} from "./priceproperties.js";
|
|
11
16
|
import { PriceTax, PriceTax$inboundSchema } from "./pricetax.js";
|
|
17
|
+
import { RateType, RateType$inboundSchema } from "./ratetype.js";
|
|
12
18
|
|
|
13
19
|
export const PriceObject = {
|
|
14
20
|
Price: "price",
|
|
15
21
|
} as const;
|
|
16
22
|
export type PriceObject = ClosedEnum<typeof PriceObject>;
|
|
17
23
|
|
|
18
|
-
export const PriceModel1 = {
|
|
19
|
-
Standard: "standard",
|
|
20
|
-
Dynamic: "dynamic",
|
|
21
|
-
Volume: "volume",
|
|
22
|
-
Percentage: "percentage",
|
|
23
|
-
} as const;
|
|
24
|
-
export type PriceModel1 = ClosedEnum<typeof PriceModel1>;
|
|
25
|
-
|
|
26
24
|
export const PricePaymentTerm = {
|
|
27
25
|
InArrears: "in_arrears",
|
|
28
26
|
InAdvance: "in_advance",
|
|
29
27
|
} as const;
|
|
30
28
|
export type PricePaymentTerm = ClosedEnum<typeof PricePaymentTerm>;
|
|
31
29
|
|
|
32
|
-
/**
|
|
33
|
-
* What properties.unitPrice is denominated in. 'amount' (the default) is an amount of the invoice currency for each unit metered, so the quantity is the multiplier. 'proportion' is the reverse: a dimensionless share of a currency-denominated quantity, so '0.02' is 2% and the invoice prints '2.00%'. Presentation only. Requires a standard metered price in real currency.
|
|
34
|
-
*/
|
|
35
|
-
export const PriceRateType = {
|
|
36
|
-
Amount: "amount",
|
|
37
|
-
Proportion: "proportion",
|
|
38
|
-
} as const;
|
|
39
|
-
/**
|
|
40
|
-
* What properties.unitPrice is denominated in. 'amount' (the default) is an amount of the invoice currency for each unit metered, so the quantity is the multiplier. 'proportion' is the reverse: a dimensionless share of a currency-denominated quantity, so '0.02' is 2% and the invoice prints '2.00%'. Presentation only. Requires a standard metered price in real currency.
|
|
41
|
-
*/
|
|
42
|
-
export type PriceRateType = ClosedEnum<typeof PriceRateType>;
|
|
43
|
-
|
|
44
30
|
export type Price = {
|
|
45
31
|
/**
|
|
46
32
|
* Unique identifier for a price
|
|
@@ -48,26 +34,37 @@ export type Price = {
|
|
|
48
34
|
id: string;
|
|
49
35
|
object: PriceObject;
|
|
50
36
|
/**
|
|
51
|
-
* Unique identifier for
|
|
37
|
+
* Unique identifier for a billable metric
|
|
52
38
|
*/
|
|
53
|
-
merchantId: string;
|
|
54
39
|
billableMetricId?: string | undefined;
|
|
55
40
|
/**
|
|
56
|
-
* The unique identifier for the fee referred to by this price
|
|
41
|
+
* The unique identifier for the fee referred to by this price. Present when price is linked to a fee.
|
|
57
42
|
*/
|
|
58
43
|
feeId?: string | undefined;
|
|
59
44
|
/**
|
|
60
|
-
*
|
|
45
|
+
* Unique identifier for a pricing unit
|
|
46
|
+
*/
|
|
47
|
+
pricingUnitId?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier for an organization
|
|
50
|
+
*/
|
|
51
|
+
merchantId: string;
|
|
52
|
+
/**
|
|
53
|
+
* ISO 8601 duration. 'P0D' for one-time, 'P1M' for monthly, 'P1Y' for yearly. Required for fees, optional for billable metrics. Defaults to plan's billingCadence if not specified.
|
|
61
54
|
*/
|
|
62
55
|
billingCadence?: string | null | undefined;
|
|
63
56
|
createdAt: Date;
|
|
64
|
-
currency?: string | undefined;
|
|
65
|
-
description?: string | undefined;
|
|
66
57
|
invoiceDisplayName: string;
|
|
67
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Presentation only. Prices sharing this value, within one billing period, print as a single row on the rendered invoice PDF and are described by this string. Every member still bills its own line item on the ledger, this API and the compliance document. The combined row's rate is derived from the members' own rates. Requires the 'standard' pricing model. Sample values: 'Cross Border Fees', 'FX Fees'
|
|
60
|
+
*/
|
|
61
|
+
invoiceDisplayGroup?: string | null | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Pricing model of a price as returned by the API. Includes the legacy models ('dynamic', 'percentage') retained for existing prices; 'standard' and 'volume' can be created (see PriceModelInput).
|
|
64
|
+
*/
|
|
65
|
+
model?: PriceModel | undefined;
|
|
68
66
|
paymentTerm: PricePaymentTerm;
|
|
69
|
-
properties:
|
|
70
|
-
unitAmount?: string | undefined;
|
|
67
|
+
properties: PriceProperties;
|
|
71
68
|
updatedAt: Date;
|
|
72
69
|
/**
|
|
73
70
|
* Features associated with this price
|
|
@@ -84,21 +81,13 @@ export type Price = {
|
|
|
84
81
|
/**
|
|
85
82
|
* What properties.unitPrice is denominated in. 'amount' (the default) is an amount of the invoice currency for each unit metered, so the quantity is the multiplier. 'proportion' is the reverse: a dimensionless share of a currency-denominated quantity, so '0.02' is 2% and the invoice prints '2.00%'. Presentation only. Requires a standard metered price in real currency.
|
|
86
83
|
*/
|
|
87
|
-
rateType
|
|
88
|
-
/**
|
|
89
|
-
* Presentation only. Prices sharing this value, within one billing period, print as a single row on the rendered invoice PDF and are described by this string. Every member still bills its own line item on the ledger, this API and the compliance document. The combined row's rate is derived from the members' own rates. Requires the 'standard' pricing model. Sample values: 'Cross Border Fees', 'FX Fees'
|
|
90
|
-
*/
|
|
91
|
-
invoiceDisplayGroup?: string | null | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* Unique identifier for a pricing unit
|
|
94
|
-
*/
|
|
95
|
-
pricingUnitId?: string | undefined;
|
|
84
|
+
rateType?: RateType | undefined;
|
|
96
85
|
/**
|
|
97
86
|
* A price's tax declaration. Optional on write — a price that declares nothing is `IN_SCOPE`, and is billed and taxed exactly as it was before this object existed. Always present on read. Replaced as a whole on update: send the object to change it, omit it to leave it alone.
|
|
98
87
|
*/
|
|
99
88
|
tax: PriceTax;
|
|
100
89
|
/**
|
|
101
|
-
* Quantity
|
|
90
|
+
* Quantity for invoice line items. Total per period = quantity × unitPrice. Only supported for fee prices; metered prices derive quantity from usage. Defaults to 1.
|
|
102
91
|
*/
|
|
103
92
|
quantity: number;
|
|
104
93
|
};
|
|
@@ -107,50 +96,38 @@ export type Price = {
|
|
|
107
96
|
export const PriceObject$inboundSchema: z.ZodNativeEnum<typeof PriceObject> = z
|
|
108
97
|
.nativeEnum(PriceObject);
|
|
109
98
|
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const PriceModel1$inboundSchema: z.ZodNativeEnum<typeof PriceModel1> = z
|
|
112
|
-
.nativeEnum(PriceModel1);
|
|
113
|
-
|
|
114
99
|
/** @internal */
|
|
115
100
|
export const PricePaymentTerm$inboundSchema: z.ZodNativeEnum<
|
|
116
101
|
typeof PricePaymentTerm
|
|
117
102
|
> = z.nativeEnum(PricePaymentTerm);
|
|
118
103
|
|
|
119
|
-
/** @internal */
|
|
120
|
-
export const PriceRateType$inboundSchema: z.ZodNativeEnum<
|
|
121
|
-
typeof PriceRateType
|
|
122
|
-
> = z.nativeEnum(PriceRateType);
|
|
123
|
-
|
|
124
104
|
/** @internal */
|
|
125
105
|
export const Price$inboundSchema: z.ZodType<Price, z.ZodTypeDef, unknown> = z
|
|
126
106
|
.object({
|
|
127
107
|
id: z.string(),
|
|
128
108
|
object: PriceObject$inboundSchema.default("price"),
|
|
129
|
-
merchantId: z.string(),
|
|
130
109
|
billableMetricId: z.string().optional(),
|
|
131
110
|
feeId: z.string().optional(),
|
|
111
|
+
pricingUnitId: z.string().optional(),
|
|
112
|
+
merchantId: z.string(),
|
|
132
113
|
billingCadence: z.nullable(z.string()).optional(),
|
|
133
114
|
createdAt: z.string().datetime({ offset: true }).transform(v =>
|
|
134
115
|
new Date(v)
|
|
135
116
|
),
|
|
136
|
-
currency: z.string().optional(),
|
|
137
|
-
description: z.string().optional(),
|
|
138
117
|
invoiceDisplayName: z.string(),
|
|
139
|
-
|
|
118
|
+
invoiceDisplayGroup: z.nullable(z.string()).optional(),
|
|
119
|
+
model: PriceModel$inboundSchema.optional(),
|
|
140
120
|
paymentTerm: PricePaymentTerm$inboundSchema,
|
|
141
|
-
properties:
|
|
142
|
-
unitAmount: z.string().optional(),
|
|
121
|
+
properties: PriceProperties$inboundSchema,
|
|
143
122
|
updatedAt: z.string().datetime({ offset: true }).transform(v =>
|
|
144
123
|
new Date(v)
|
|
145
124
|
),
|
|
146
125
|
features: z.array(PriceFeature$inboundSchema).optional(),
|
|
147
126
|
grantDiscountEnabled: z.boolean().default(false),
|
|
148
127
|
isObligation: z.boolean().default(false),
|
|
149
|
-
rateType:
|
|
150
|
-
invoiceDisplayGroup: z.nullable(z.string()).optional(),
|
|
151
|
-
pricingUnitId: z.string().optional(),
|
|
128
|
+
rateType: RateType$inboundSchema.optional(),
|
|
152
129
|
tax: PriceTax$inboundSchema,
|
|
153
|
-
quantity: z.number().int()
|
|
130
|
+
quantity: z.number().int(),
|
|
154
131
|
});
|
|
155
132
|
|
|
156
133
|
export function priceFromJSON(
|
|
@@ -21,7 +21,7 @@ export type ProfitabilityRow = {
|
|
|
21
21
|
*/
|
|
22
22
|
customerName: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Revenue excluding tax (paid + outstanding invoices issued in the period), in unit currency, with two decimals.
|
|
25
25
|
*/
|
|
26
26
|
netRevenue: string;
|
|
27
27
|
/**
|
|
@@ -47,11 +47,11 @@ export type RevenueSummaryResponse = {
|
|
|
47
47
|
*/
|
|
48
48
|
object: "revenue_summary";
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Revenue in dollars, excluding tax: invoices issued in the period plus completed payments, less non-voided refunds issued in the period. Invoices and refunds are counted excluding tax. Omitted when groupBy=currency is active.
|
|
51
51
|
*/
|
|
52
52
|
netRevenue?: string | undefined;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Total of non-voided refunds (credit notes) issued in the period, in dollars, including tax. netRevenue subtracts these refunds excluding tax. Omitted when groupBy=currency is active.
|
|
55
55
|
*/
|
|
56
56
|
totalRefunds?: string | undefined;
|
|
57
57
|
/**
|
|
@@ -17,7 +17,7 @@ export type RevenueTrendBucket = {
|
|
|
17
17
|
*/
|
|
18
18
|
timestamp: Date;
|
|
19
19
|
/**
|
|
20
|
-
* Total amount of all invoices issued in this bucket (all statuses, by issuedAt)
|
|
20
|
+
* Total amount of all invoices issued in this bucket (all statuses, by issuedAt), excluding tax
|
|
21
21
|
*/
|
|
22
22
|
issuedInvoices: string;
|
|
23
23
|
/**
|