@paygentic/sdk 0.7.19 → 0.7.20
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 +57 -4
- package/dist/commonjs/funcs/approvalsCreateApproval.d.ts +15 -0
- package/dist/commonjs/funcs/approvalsCreateApproval.d.ts.map +1 -0
- package/dist/commonjs/funcs/approvalsCreateApproval.js +115 -0
- package/dist/commonjs/funcs/approvalsCreateApproval.js.map +1 -0
- package/dist/commonjs/funcs/approvalsGetApproval.d.ts +16 -0
- package/dist/commonjs/funcs/approvalsGetApproval.d.ts.map +1 -0
- package/dist/commonjs/funcs/approvalsGetApproval.js +121 -0
- package/dist/commonjs/funcs/approvalsGetApproval.js.map +1 -0
- package/dist/commonjs/funcs/approvalsListApprovals.d.ts +16 -0
- package/dist/commonjs/funcs/approvalsListApprovals.d.ts.map +1 -0
- package/dist/commonjs/funcs/approvalsListApprovals.js +125 -0
- package/dist/commonjs/funcs/approvalsListApprovals.js.map +1 -0
- package/dist/commonjs/funcs/approvalsUpdateApproval.d.ts +16 -0
- package/dist/commonjs/funcs/approvalsUpdateApproval.d.ts.map +1 -0
- package/dist/commonjs/funcs/approvalsUpdateApproval.js +124 -0
- package/dist/commonjs/funcs/approvalsUpdateApproval.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesCreateBillingSchedule.d.ts +15 -0
- package/dist/commonjs/funcs/billingSchedulesCreateBillingSchedule.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesCreateBillingSchedule.js +115 -0
- package/dist/commonjs/funcs/billingSchedulesCreateBillingSchedule.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesDeleteBillingSchedule.d.ts +15 -0
- package/dist/commonjs/funcs/billingSchedulesDeleteBillingSchedule.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesDeleteBillingSchedule.js +121 -0
- package/dist/commonjs/funcs/billingSchedulesDeleteBillingSchedule.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesGenerateScheduleInvoices.d.ts +18 -0
- package/dist/commonjs/funcs/billingSchedulesGenerateScheduleInvoices.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesGenerateScheduleInvoices.js +123 -0
- package/dist/commonjs/funcs/billingSchedulesGenerateScheduleInvoices.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesGetBillingSchedule.d.ts +16 -0
- package/dist/commonjs/funcs/billingSchedulesGetBillingSchedule.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesGetBillingSchedule.js +121 -0
- package/dist/commonjs/funcs/billingSchedulesGetBillingSchedule.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesListBillingSchedules.d.ts +15 -0
- package/dist/commonjs/funcs/billingSchedulesListBillingSchedules.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesListBillingSchedules.js +119 -0
- package/dist/commonjs/funcs/billingSchedulesListBillingSchedules.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesListScheduleIntervals.d.ts +15 -0
- package/dist/commonjs/funcs/billingSchedulesListScheduleIntervals.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesListScheduleIntervals.js +120 -0
- package/dist/commonjs/funcs/billingSchedulesListScheduleIntervals.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesListScheduleInvoices.d.ts +18 -0
- package/dist/commonjs/funcs/billingSchedulesListScheduleInvoices.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesListScheduleInvoices.js +123 -0
- package/dist/commonjs/funcs/billingSchedulesListScheduleInvoices.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesReplaceScheduleIntervals.d.ts +18 -0
- package/dist/commonjs/funcs/billingSchedulesReplaceScheduleIntervals.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesReplaceScheduleIntervals.js +126 -0
- package/dist/commonjs/funcs/billingSchedulesReplaceScheduleIntervals.js.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesUpdateBillingSchedule.d.ts +16 -0
- package/dist/commonjs/funcs/billingSchedulesUpdateBillingSchedule.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingSchedulesUpdateBillingSchedule.js +124 -0
- package/dist/commonjs/funcs/billingSchedulesUpdateBillingSchedule.js.map +1 -0
- package/dist/commonjs/funcs/ordersCreateOrder.d.ts +15 -0
- package/dist/commonjs/funcs/ordersCreateOrder.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersCreateOrder.js +115 -0
- package/dist/commonjs/funcs/ordersCreateOrder.js.map +1 -0
- package/dist/commonjs/funcs/ordersCreateOrderApproval.d.ts +18 -0
- package/dist/commonjs/funcs/ordersCreateOrderApproval.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersCreateOrderApproval.js +123 -0
- package/dist/commonjs/funcs/ordersCreateOrderApproval.js.map +1 -0
- package/dist/commonjs/funcs/ordersCreateOrderLineItem.d.ts +16 -0
- package/dist/commonjs/funcs/ordersCreateOrderLineItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersCreateOrderLineItem.js +124 -0
- package/dist/commonjs/funcs/ordersCreateOrderLineItem.js.map +1 -0
- package/dist/commonjs/funcs/ordersDeleteOrder.d.ts +15 -0
- package/dist/commonjs/funcs/ordersDeleteOrder.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersDeleteOrder.js +121 -0
- package/dist/commonjs/funcs/ordersDeleteOrder.js.map +1 -0
- package/dist/commonjs/funcs/ordersDeleteOrderLineItem.d.ts +15 -0
- package/dist/commonjs/funcs/ordersDeleteOrderLineItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersDeleteOrderLineItem.js +125 -0
- package/dist/commonjs/funcs/ordersDeleteOrderLineItem.js.map +1 -0
- package/dist/commonjs/funcs/ordersGetOrder.d.ts +16 -0
- package/dist/commonjs/funcs/ordersGetOrder.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersGetOrder.js +121 -0
- package/dist/commonjs/funcs/ordersGetOrder.js.map +1 -0
- package/dist/commonjs/funcs/ordersListOrders.d.ts +16 -0
- package/dist/commonjs/funcs/ordersListOrders.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersListOrders.js +124 -0
- package/dist/commonjs/funcs/ordersListOrders.js.map +1 -0
- package/dist/commonjs/funcs/ordersUpdateOrder.d.ts +16 -0
- package/dist/commonjs/funcs/ordersUpdateOrder.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersUpdateOrder.js +124 -0
- package/dist/commonjs/funcs/ordersUpdateOrder.js.map +1 -0
- package/dist/commonjs/funcs/ordersUpdateOrderLineItem.d.ts +16 -0
- package/dist/commonjs/funcs/ordersUpdateOrderLineItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/ordersUpdateOrderLineItem.js +128 -0
- package/dist/commonjs/funcs/ordersUpdateOrderLineItem.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/approval.d.ts +38 -0
- package/dist/commonjs/models/approval.d.ts.map +1 -0
- package/dist/commonjs/models/approval.js +75 -0
- package/dist/commonjs/models/approval.js.map +1 -0
- package/dist/commonjs/models/approvallist.d.ts +24 -0
- package/dist/commonjs/models/approvallist.d.ts.map +1 -0
- package/dist/commonjs/models/approvallist.js +59 -0
- package/dist/commonjs/models/approvallist.js.map +1 -0
- package/dist/commonjs/models/billingschedule.d.ts +72 -0
- package/dist/commonjs/models/billingschedule.d.ts.map +1 -0
- package/dist/commonjs/models/billingschedule.js +101 -0
- package/dist/commonjs/models/billingschedule.js.map +1 -0
- package/dist/commonjs/models/createapprovalrequest.d.ts +58 -0
- package/dist/commonjs/models/createapprovalrequest.d.ts.map +1 -0
- package/dist/commonjs/models/createapprovalrequest.js +71 -0
- package/dist/commonjs/models/createapprovalrequest.js.map +1 -0
- package/dist/commonjs/models/createbillingschedulerequest.d.ts +63 -0
- package/dist/commonjs/models/createbillingschedulerequest.d.ts.map +1 -0
- package/dist/commonjs/models/createbillingschedulerequest.js +88 -0
- package/dist/commonjs/models/createbillingschedulerequest.js.map +1 -0
- package/dist/commonjs/models/creategrantrequest.d.ts +5 -0
- package/dist/commonjs/models/creategrantrequest.d.ts.map +1 -1
- package/dist/commonjs/models/creategrantrequest.js +1 -0
- package/dist/commonjs/models/creategrantrequest.js.map +1 -1
- package/dist/commonjs/models/createorderapprovalrequest.d.ts +17 -0
- package/dist/commonjs/models/createorderapprovalrequest.d.ts.map +1 -0
- package/dist/commonjs/models/createorderapprovalrequest.js +50 -0
- package/dist/commonjs/models/createorderapprovalrequest.js.map +1 -0
- package/dist/commonjs/models/createorderlineitemrequest.d.ts +34 -0
- package/dist/commonjs/models/createorderlineitemrequest.d.ts.map +1 -0
- package/dist/commonjs/models/createorderlineitemrequest.js +58 -0
- package/dist/commonjs/models/createorderlineitemrequest.js.map +1 -0
- package/dist/commonjs/models/createorderrequest.d.ts +50 -0
- package/dist/commonjs/models/createorderrequest.d.ts.map +1 -0
- package/dist/commonjs/models/createorderrequest.js +69 -0
- package/dist/commonjs/models/createorderrequest.js.map +1 -0
- package/dist/commonjs/models/grant.d.ts +4 -0
- package/dist/commonjs/models/grant.d.ts.map +1 -1
- package/dist/commonjs/models/grant.js +1 -0
- package/dist/commonjs/models/grant.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +20 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +20 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/createorderapproval.d.ts +15 -0
- package/dist/commonjs/models/operations/createorderapproval.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createorderapproval.js +56 -0
- package/dist/commonjs/models/operations/createorderapproval.js.map +1 -0
- package/dist/commonjs/models/operations/createorderlineitem.d.ts +15 -0
- package/dist/commonjs/models/operations/createorderlineitem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createorderlineitem.js +56 -0
- package/dist/commonjs/models/operations/createorderlineitem.js.map +1 -0
- package/dist/commonjs/models/operations/deletebillingschedule.d.ts +12 -0
- package/dist/commonjs/models/operations/deletebillingschedule.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletebillingschedule.js +49 -0
- package/dist/commonjs/models/operations/deletebillingschedule.js.map +1 -0
- package/dist/commonjs/models/operations/deleteorder.d.ts +12 -0
- package/dist/commonjs/models/operations/deleteorder.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deleteorder.js +49 -0
- package/dist/commonjs/models/operations/deleteorder.js.map +1 -0
- package/dist/commonjs/models/operations/deleteorderlineitem.d.ts +14 -0
- package/dist/commonjs/models/operations/deleteorderlineitem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deleteorderlineitem.js +50 -0
- package/dist/commonjs/models/operations/deleteorderlineitem.js.map +1 -0
- package/dist/commonjs/models/operations/generatescheduleinvoices.d.ts +36 -0
- package/dist/commonjs/models/operations/generatescheduleinvoices.d.ts.map +1 -0
- package/dist/commonjs/models/operations/generatescheduleinvoices.js +66 -0
- package/dist/commonjs/models/operations/generatescheduleinvoices.js.map +1 -0
- package/dist/commonjs/models/operations/getapproval.d.ts +12 -0
- package/dist/commonjs/models/operations/getapproval.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getapproval.js +49 -0
- package/dist/commonjs/models/operations/getapproval.js.map +1 -0
- package/dist/commonjs/models/operations/getbillingschedule.d.ts +12 -0
- package/dist/commonjs/models/operations/getbillingschedule.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getbillingschedule.js +49 -0
- package/dist/commonjs/models/operations/getbillingschedule.js.map +1 -0
- package/dist/commonjs/models/operations/getorder.d.ts +12 -0
- package/dist/commonjs/models/operations/getorder.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getorder.js +49 -0
- package/dist/commonjs/models/operations/getorder.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +19 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +19 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listapprovals.d.ts +82 -0
- package/dist/commonjs/models/operations/listapprovals.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listapprovals.js +86 -0
- package/dist/commonjs/models/operations/listapprovals.js.map +1 -0
- package/dist/commonjs/models/operations/listbillingschedules.d.ts +44 -0
- package/dist/commonjs/models/operations/listbillingschedules.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listbillingschedules.js +67 -0
- package/dist/commonjs/models/operations/listbillingschedules.js.map +1 -0
- package/dist/commonjs/models/operations/listorders.d.ts +65 -0
- package/dist/commonjs/models/operations/listorders.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listorders.js +76 -0
- package/dist/commonjs/models/operations/listorders.js.map +1 -0
- package/dist/commonjs/models/operations/listscheduleintervals.d.ts +36 -0
- package/dist/commonjs/models/operations/listscheduleintervals.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listscheduleintervals.js +66 -0
- package/dist/commonjs/models/operations/listscheduleintervals.js.map +1 -0
- package/dist/commonjs/models/operations/listscheduleinvoices.d.ts +36 -0
- package/dist/commonjs/models/operations/listscheduleinvoices.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listscheduleinvoices.js +66 -0
- package/dist/commonjs/models/operations/listscheduleinvoices.js.map +1 -0
- package/dist/commonjs/models/operations/replacescheduleintervals.d.ts +38 -0
- package/dist/commonjs/models/operations/replacescheduleintervals.d.ts.map +1 -0
- package/dist/commonjs/models/operations/replacescheduleintervals.js +72 -0
- package/dist/commonjs/models/operations/replacescheduleintervals.js.map +1 -0
- package/dist/commonjs/models/operations/updateapproval.d.ts +15 -0
- package/dist/commonjs/models/operations/updateapproval.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateapproval.js +56 -0
- package/dist/commonjs/models/operations/updateapproval.js.map +1 -0
- package/dist/commonjs/models/operations/updatebillingschedule.d.ts +15 -0
- package/dist/commonjs/models/operations/updatebillingschedule.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatebillingschedule.js +56 -0
- package/dist/commonjs/models/operations/updatebillingschedule.js.map +1 -0
- package/dist/commonjs/models/operations/updateorder.d.ts +15 -0
- package/dist/commonjs/models/operations/updateorder.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateorder.js +56 -0
- package/dist/commonjs/models/operations/updateorder.js.map +1 -0
- package/dist/commonjs/models/operations/updateorderlineitem.d.ts +17 -0
- package/dist/commonjs/models/operations/updateorderlineitem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateorderlineitem.js +57 -0
- package/dist/commonjs/models/operations/updateorderlineitem.js.map +1 -0
- package/dist/commonjs/models/order.d.ts +61 -0
- package/dist/commonjs/models/order.d.ts.map +1 -0
- package/dist/commonjs/models/order.js +95 -0
- package/dist/commonjs/models/order.js.map +1 -0
- package/dist/commonjs/models/orderlineitem.d.ts +48 -0
- package/dist/commonjs/models/orderlineitem.d.ts.map +1 -0
- package/dist/commonjs/models/orderlineitem.js +69 -0
- package/dist/commonjs/models/orderlineitem.js.map +1 -0
- package/dist/commonjs/models/orderlist.d.ts +24 -0
- package/dist/commonjs/models/orderlist.d.ts.map +1 -0
- package/dist/commonjs/models/orderlist.js +59 -0
- package/dist/commonjs/models/orderlist.js.map +1 -0
- package/dist/commonjs/models/replacescheduleintervalsrequest.d.ts +81 -0
- package/dist/commonjs/models/replacescheduleintervalsrequest.d.ts.map +1 -0
- package/dist/commonjs/models/replacescheduleintervalsrequest.js +88 -0
- package/dist/commonjs/models/replacescheduleintervalsrequest.js.map +1 -0
- package/dist/commonjs/models/scheduleinterval.d.ts +62 -0
- package/dist/commonjs/models/scheduleinterval.d.ts.map +1 -0
- package/dist/commonjs/models/scheduleinterval.js +88 -0
- package/dist/commonjs/models/scheduleinterval.js.map +1 -0
- package/dist/commonjs/models/scheduleinvoice.d.ts +50 -0
- package/dist/commonjs/models/scheduleinvoice.d.ts.map +1 -0
- package/dist/commonjs/models/scheduleinvoice.js +86 -0
- package/dist/commonjs/models/scheduleinvoice.js.map +1 -0
- package/dist/commonjs/models/schemasapproval.d.ts +53 -0
- package/dist/commonjs/models/schemasapproval.d.ts.map +1 -0
- package/dist/commonjs/models/schemasapproval.js +88 -0
- package/dist/commonjs/models/schemasapproval.js.map +1 -0
- package/dist/commonjs/models/schemasbillingschedule.d.ts +71 -0
- package/dist/commonjs/models/schemasbillingschedule.d.ts.map +1 -0
- package/dist/commonjs/models/schemasbillingschedule.js +103 -0
- package/dist/commonjs/models/schemasbillingschedule.js.map +1 -0
- package/dist/commonjs/models/updateapprovalrequest.d.ts +37 -0
- package/dist/commonjs/models/updateapprovalrequest.d.ts.map +1 -0
- package/dist/commonjs/models/updateapprovalrequest.js +61 -0
- package/dist/commonjs/models/updateapprovalrequest.js.map +1 -0
- package/dist/commonjs/models/updatebillingschedulerequest.d.ts +70 -0
- package/dist/commonjs/models/updatebillingschedulerequest.d.ts.map +1 -0
- package/dist/commonjs/models/updatebillingschedulerequest.js +95 -0
- package/dist/commonjs/models/updatebillingschedulerequest.js.map +1 -0
- package/dist/commonjs/models/updateorderlineitemrequest.d.ts +34 -0
- package/dist/commonjs/models/updateorderlineitemrequest.d.ts.map +1 -0
- package/dist/commonjs/models/updateorderlineitemrequest.js +58 -0
- package/dist/commonjs/models/updateorderlineitemrequest.js.map +1 -0
- package/dist/commonjs/models/updateorderrequest.d.ts +45 -0
- package/dist/commonjs/models/updateorderrequest.d.ts.map +1 -0
- package/dist/commonjs/models/updateorderrequest.js +66 -0
- package/dist/commonjs/models/updateorderrequest.js.map +1 -0
- package/dist/commonjs/sdk/approvals.d.ts +22 -0
- package/dist/commonjs/sdk/approvals.d.ts.map +1 -0
- package/dist/commonjs/sdk/approvals.js +40 -0
- package/dist/commonjs/sdk/approvals.js.map +1 -0
- package/dist/commonjs/sdk/billingschedules.d.ts +51 -0
- package/dist/commonjs/sdk/billingschedules.d.ts.map +1 -0
- package/dist/commonjs/sdk/billingschedules.js +84 -0
- package/dist/commonjs/sdk/billingschedules.js.map +1 -0
- package/dist/commonjs/sdk/orders.d.ts +45 -0
- package/dist/commonjs/sdk/orders.d.ts.map +1 -0
- package/dist/commonjs/sdk/orders.js +78 -0
- package/dist/commonjs/sdk/orders.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +9 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +12 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/approvalsCreateApproval.d.ts +15 -0
- package/dist/esm/funcs/approvalsCreateApproval.d.ts.map +1 -0
- package/dist/esm/funcs/approvalsCreateApproval.js +79 -0
- package/dist/esm/funcs/approvalsCreateApproval.js.map +1 -0
- package/dist/esm/funcs/approvalsGetApproval.d.ts +16 -0
- package/dist/esm/funcs/approvalsGetApproval.d.ts.map +1 -0
- package/dist/esm/funcs/approvalsGetApproval.js +85 -0
- package/dist/esm/funcs/approvalsGetApproval.js.map +1 -0
- package/dist/esm/funcs/approvalsListApprovals.d.ts +16 -0
- package/dist/esm/funcs/approvalsListApprovals.d.ts.map +1 -0
- package/dist/esm/funcs/approvalsListApprovals.js +89 -0
- package/dist/esm/funcs/approvalsListApprovals.js.map +1 -0
- package/dist/esm/funcs/approvalsUpdateApproval.d.ts +16 -0
- package/dist/esm/funcs/approvalsUpdateApproval.d.ts.map +1 -0
- package/dist/esm/funcs/approvalsUpdateApproval.js +88 -0
- package/dist/esm/funcs/approvalsUpdateApproval.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesCreateBillingSchedule.d.ts +15 -0
- package/dist/esm/funcs/billingSchedulesCreateBillingSchedule.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesCreateBillingSchedule.js +79 -0
- package/dist/esm/funcs/billingSchedulesCreateBillingSchedule.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesDeleteBillingSchedule.d.ts +15 -0
- package/dist/esm/funcs/billingSchedulesDeleteBillingSchedule.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesDeleteBillingSchedule.js +85 -0
- package/dist/esm/funcs/billingSchedulesDeleteBillingSchedule.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesGenerateScheduleInvoices.d.ts +18 -0
- package/dist/esm/funcs/billingSchedulesGenerateScheduleInvoices.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesGenerateScheduleInvoices.js +87 -0
- package/dist/esm/funcs/billingSchedulesGenerateScheduleInvoices.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesGetBillingSchedule.d.ts +16 -0
- package/dist/esm/funcs/billingSchedulesGetBillingSchedule.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesGetBillingSchedule.js +85 -0
- package/dist/esm/funcs/billingSchedulesGetBillingSchedule.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesListBillingSchedules.d.ts +15 -0
- package/dist/esm/funcs/billingSchedulesListBillingSchedules.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesListBillingSchedules.js +83 -0
- package/dist/esm/funcs/billingSchedulesListBillingSchedules.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesListScheduleIntervals.d.ts +15 -0
- package/dist/esm/funcs/billingSchedulesListScheduleIntervals.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesListScheduleIntervals.js +84 -0
- package/dist/esm/funcs/billingSchedulesListScheduleIntervals.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesListScheduleInvoices.d.ts +18 -0
- package/dist/esm/funcs/billingSchedulesListScheduleInvoices.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesListScheduleInvoices.js +87 -0
- package/dist/esm/funcs/billingSchedulesListScheduleInvoices.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesReplaceScheduleIntervals.d.ts +18 -0
- package/dist/esm/funcs/billingSchedulesReplaceScheduleIntervals.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesReplaceScheduleIntervals.js +90 -0
- package/dist/esm/funcs/billingSchedulesReplaceScheduleIntervals.js.map +1 -0
- package/dist/esm/funcs/billingSchedulesUpdateBillingSchedule.d.ts +16 -0
- package/dist/esm/funcs/billingSchedulesUpdateBillingSchedule.d.ts.map +1 -0
- package/dist/esm/funcs/billingSchedulesUpdateBillingSchedule.js +88 -0
- package/dist/esm/funcs/billingSchedulesUpdateBillingSchedule.js.map +1 -0
- package/dist/esm/funcs/ordersCreateOrder.d.ts +15 -0
- package/dist/esm/funcs/ordersCreateOrder.d.ts.map +1 -0
- package/dist/esm/funcs/ordersCreateOrder.js +79 -0
- package/dist/esm/funcs/ordersCreateOrder.js.map +1 -0
- package/dist/esm/funcs/ordersCreateOrderApproval.d.ts +18 -0
- package/dist/esm/funcs/ordersCreateOrderApproval.d.ts.map +1 -0
- package/dist/esm/funcs/ordersCreateOrderApproval.js +87 -0
- package/dist/esm/funcs/ordersCreateOrderApproval.js.map +1 -0
- package/dist/esm/funcs/ordersCreateOrderLineItem.d.ts +16 -0
- package/dist/esm/funcs/ordersCreateOrderLineItem.d.ts.map +1 -0
- package/dist/esm/funcs/ordersCreateOrderLineItem.js +88 -0
- package/dist/esm/funcs/ordersCreateOrderLineItem.js.map +1 -0
- package/dist/esm/funcs/ordersDeleteOrder.d.ts +15 -0
- package/dist/esm/funcs/ordersDeleteOrder.d.ts.map +1 -0
- package/dist/esm/funcs/ordersDeleteOrder.js +85 -0
- package/dist/esm/funcs/ordersDeleteOrder.js.map +1 -0
- package/dist/esm/funcs/ordersDeleteOrderLineItem.d.ts +15 -0
- package/dist/esm/funcs/ordersDeleteOrderLineItem.d.ts.map +1 -0
- package/dist/esm/funcs/ordersDeleteOrderLineItem.js +89 -0
- package/dist/esm/funcs/ordersDeleteOrderLineItem.js.map +1 -0
- package/dist/esm/funcs/ordersGetOrder.d.ts +16 -0
- package/dist/esm/funcs/ordersGetOrder.d.ts.map +1 -0
- package/dist/esm/funcs/ordersGetOrder.js +85 -0
- package/dist/esm/funcs/ordersGetOrder.js.map +1 -0
- package/dist/esm/funcs/ordersListOrders.d.ts +16 -0
- package/dist/esm/funcs/ordersListOrders.d.ts.map +1 -0
- package/dist/esm/funcs/ordersListOrders.js +88 -0
- package/dist/esm/funcs/ordersListOrders.js.map +1 -0
- package/dist/esm/funcs/ordersUpdateOrder.d.ts +16 -0
- package/dist/esm/funcs/ordersUpdateOrder.d.ts.map +1 -0
- package/dist/esm/funcs/ordersUpdateOrder.js +88 -0
- package/dist/esm/funcs/ordersUpdateOrder.js.map +1 -0
- package/dist/esm/funcs/ordersUpdateOrderLineItem.d.ts +16 -0
- package/dist/esm/funcs/ordersUpdateOrderLineItem.d.ts.map +1 -0
- package/dist/esm/funcs/ordersUpdateOrderLineItem.js +92 -0
- package/dist/esm/funcs/ordersUpdateOrderLineItem.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/approval.d.ts +38 -0
- package/dist/esm/models/approval.d.ts.map +1 -0
- package/dist/esm/models/approval.js +38 -0
- package/dist/esm/models/approval.js.map +1 -0
- package/dist/esm/models/approvallist.d.ts +24 -0
- package/dist/esm/models/approvallist.d.ts.map +1 -0
- package/dist/esm/models/approvallist.js +22 -0
- package/dist/esm/models/approvallist.js.map +1 -0
- package/dist/esm/models/billingschedule.d.ts +72 -0
- package/dist/esm/models/billingschedule.d.ts.map +1 -0
- package/dist/esm/models/billingschedule.js +64 -0
- package/dist/esm/models/billingschedule.js.map +1 -0
- package/dist/esm/models/createapprovalrequest.d.ts +58 -0
- package/dist/esm/models/createapprovalrequest.d.ts.map +1 -0
- package/dist/esm/models/createapprovalrequest.js +34 -0
- package/dist/esm/models/createapprovalrequest.js.map +1 -0
- package/dist/esm/models/createbillingschedulerequest.d.ts +63 -0
- package/dist/esm/models/createbillingschedulerequest.d.ts.map +1 -0
- package/dist/esm/models/createbillingschedulerequest.js +51 -0
- package/dist/esm/models/createbillingschedulerequest.js.map +1 -0
- package/dist/esm/models/creategrantrequest.d.ts +5 -0
- package/dist/esm/models/creategrantrequest.d.ts.map +1 -1
- package/dist/esm/models/creategrantrequest.js +1 -0
- package/dist/esm/models/creategrantrequest.js.map +1 -1
- package/dist/esm/models/createorderapprovalrequest.d.ts +17 -0
- package/dist/esm/models/createorderapprovalrequest.d.ts.map +1 -0
- package/dist/esm/models/createorderapprovalrequest.js +13 -0
- package/dist/esm/models/createorderapprovalrequest.js.map +1 -0
- package/dist/esm/models/createorderlineitemrequest.d.ts +34 -0
- package/dist/esm/models/createorderlineitemrequest.d.ts.map +1 -0
- package/dist/esm/models/createorderlineitemrequest.js +21 -0
- package/dist/esm/models/createorderlineitemrequest.js.map +1 -0
- package/dist/esm/models/createorderrequest.d.ts +50 -0
- package/dist/esm/models/createorderrequest.d.ts.map +1 -0
- package/dist/esm/models/createorderrequest.js +32 -0
- package/dist/esm/models/createorderrequest.js.map +1 -0
- package/dist/esm/models/grant.d.ts +4 -0
- package/dist/esm/models/grant.d.ts.map +1 -1
- package/dist/esm/models/grant.js +1 -0
- package/dist/esm/models/grant.js.map +1 -1
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/createorderapproval.d.ts +15 -0
- package/dist/esm/models/operations/createorderapproval.d.ts.map +1 -0
- package/dist/esm/models/operations/createorderapproval.js +19 -0
- package/dist/esm/models/operations/createorderapproval.js.map +1 -0
- package/dist/esm/models/operations/createorderlineitem.d.ts +15 -0
- package/dist/esm/models/operations/createorderlineitem.d.ts.map +1 -0
- package/dist/esm/models/operations/createorderlineitem.js +19 -0
- package/dist/esm/models/operations/createorderlineitem.js.map +1 -0
- package/dist/esm/models/operations/deletebillingschedule.d.ts +12 -0
- package/dist/esm/models/operations/deletebillingschedule.d.ts.map +1 -0
- package/dist/esm/models/operations/deletebillingschedule.js +12 -0
- package/dist/esm/models/operations/deletebillingschedule.js.map +1 -0
- package/dist/esm/models/operations/deleteorder.d.ts +12 -0
- package/dist/esm/models/operations/deleteorder.d.ts.map +1 -0
- package/dist/esm/models/operations/deleteorder.js +12 -0
- package/dist/esm/models/operations/deleteorder.js.map +1 -0
- package/dist/esm/models/operations/deleteorderlineitem.d.ts +14 -0
- package/dist/esm/models/operations/deleteorderlineitem.d.ts.map +1 -0
- package/dist/esm/models/operations/deleteorderlineitem.js +13 -0
- package/dist/esm/models/operations/deleteorderlineitem.js.map +1 -0
- package/dist/esm/models/operations/generatescheduleinvoices.d.ts +36 -0
- package/dist/esm/models/operations/generatescheduleinvoices.d.ts.map +1 -0
- package/dist/esm/models/operations/generatescheduleinvoices.js +28 -0
- package/dist/esm/models/operations/generatescheduleinvoices.js.map +1 -0
- package/dist/esm/models/operations/getapproval.d.ts +12 -0
- package/dist/esm/models/operations/getapproval.d.ts.map +1 -0
- package/dist/esm/models/operations/getapproval.js +12 -0
- package/dist/esm/models/operations/getapproval.js.map +1 -0
- package/dist/esm/models/operations/getbillingschedule.d.ts +12 -0
- package/dist/esm/models/operations/getbillingschedule.d.ts.map +1 -0
- package/dist/esm/models/operations/getbillingschedule.js +12 -0
- package/dist/esm/models/operations/getbillingschedule.js.map +1 -0
- package/dist/esm/models/operations/getorder.d.ts +12 -0
- package/dist/esm/models/operations/getorder.d.ts.map +1 -0
- package/dist/esm/models/operations/getorder.js +12 -0
- package/dist/esm/models/operations/getorder.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +19 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +19 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listapprovals.d.ts +82 -0
- package/dist/esm/models/operations/listapprovals.d.ts.map +1 -0
- package/dist/esm/models/operations/listapprovals.js +49 -0
- package/dist/esm/models/operations/listapprovals.js.map +1 -0
- package/dist/esm/models/operations/listbillingschedules.d.ts +44 -0
- package/dist/esm/models/operations/listbillingschedules.d.ts.map +1 -0
- package/dist/esm/models/operations/listbillingschedules.js +29 -0
- package/dist/esm/models/operations/listbillingschedules.js.map +1 -0
- package/dist/esm/models/operations/listorders.d.ts +65 -0
- package/dist/esm/models/operations/listorders.d.ts.map +1 -0
- package/dist/esm/models/operations/listorders.js +39 -0
- package/dist/esm/models/operations/listorders.js.map +1 -0
- package/dist/esm/models/operations/listscheduleintervals.d.ts +36 -0
- package/dist/esm/models/operations/listscheduleintervals.d.ts.map +1 -0
- package/dist/esm/models/operations/listscheduleintervals.js +28 -0
- package/dist/esm/models/operations/listscheduleintervals.js.map +1 -0
- package/dist/esm/models/operations/listscheduleinvoices.d.ts +36 -0
- package/dist/esm/models/operations/listscheduleinvoices.d.ts.map +1 -0
- package/dist/esm/models/operations/listscheduleinvoices.js +28 -0
- package/dist/esm/models/operations/listscheduleinvoices.js.map +1 -0
- package/dist/esm/models/operations/replacescheduleintervals.d.ts +38 -0
- package/dist/esm/models/operations/replacescheduleintervals.d.ts.map +1 -0
- package/dist/esm/models/operations/replacescheduleintervals.js +34 -0
- package/dist/esm/models/operations/replacescheduleintervals.js.map +1 -0
- package/dist/esm/models/operations/updateapproval.d.ts +15 -0
- package/dist/esm/models/operations/updateapproval.d.ts.map +1 -0
- package/dist/esm/models/operations/updateapproval.js +19 -0
- package/dist/esm/models/operations/updateapproval.js.map +1 -0
- package/dist/esm/models/operations/updatebillingschedule.d.ts +15 -0
- package/dist/esm/models/operations/updatebillingschedule.d.ts.map +1 -0
- package/dist/esm/models/operations/updatebillingschedule.js +19 -0
- package/dist/esm/models/operations/updatebillingschedule.js.map +1 -0
- package/dist/esm/models/operations/updateorder.d.ts +15 -0
- package/dist/esm/models/operations/updateorder.d.ts.map +1 -0
- package/dist/esm/models/operations/updateorder.js +19 -0
- package/dist/esm/models/operations/updateorder.js.map +1 -0
- package/dist/esm/models/operations/updateorderlineitem.d.ts +17 -0
- package/dist/esm/models/operations/updateorderlineitem.d.ts.map +1 -0
- package/dist/esm/models/operations/updateorderlineitem.js +20 -0
- package/dist/esm/models/operations/updateorderlineitem.js.map +1 -0
- package/dist/esm/models/order.d.ts +61 -0
- package/dist/esm/models/order.d.ts.map +1 -0
- package/dist/esm/models/order.js +58 -0
- package/dist/esm/models/order.js.map +1 -0
- package/dist/esm/models/orderlineitem.d.ts +48 -0
- package/dist/esm/models/orderlineitem.d.ts.map +1 -0
- package/dist/esm/models/orderlineitem.js +32 -0
- package/dist/esm/models/orderlineitem.js.map +1 -0
- package/dist/esm/models/orderlist.d.ts +24 -0
- package/dist/esm/models/orderlist.d.ts.map +1 -0
- package/dist/esm/models/orderlist.js +22 -0
- package/dist/esm/models/orderlist.js.map +1 -0
- package/dist/esm/models/replacescheduleintervalsrequest.d.ts +81 -0
- package/dist/esm/models/replacescheduleintervalsrequest.d.ts.map +1 -0
- package/dist/esm/models/replacescheduleintervalsrequest.js +49 -0
- package/dist/esm/models/replacescheduleintervalsrequest.js.map +1 -0
- package/dist/esm/models/scheduleinterval.d.ts +62 -0
- package/dist/esm/models/scheduleinterval.d.ts.map +1 -0
- package/dist/esm/models/scheduleinterval.js +50 -0
- package/dist/esm/models/scheduleinterval.js.map +1 -0
- package/dist/esm/models/scheduleinvoice.d.ts +50 -0
- package/dist/esm/models/scheduleinvoice.d.ts.map +1 -0
- package/dist/esm/models/scheduleinvoice.js +48 -0
- package/dist/esm/models/scheduleinvoice.js.map +1 -0
- package/dist/esm/models/schemasapproval.d.ts +53 -0
- package/dist/esm/models/schemasapproval.d.ts.map +1 -0
- package/dist/esm/models/schemasapproval.js +51 -0
- package/dist/esm/models/schemasapproval.js.map +1 -0
- package/dist/esm/models/schemasbillingschedule.d.ts +71 -0
- package/dist/esm/models/schemasbillingschedule.d.ts.map +1 -0
- package/dist/esm/models/schemasbillingschedule.js +66 -0
- package/dist/esm/models/schemasbillingschedule.js.map +1 -0
- package/dist/esm/models/updateapprovalrequest.d.ts +37 -0
- package/dist/esm/models/updateapprovalrequest.d.ts.map +1 -0
- package/dist/esm/models/updateapprovalrequest.js +24 -0
- package/dist/esm/models/updateapprovalrequest.js.map +1 -0
- package/dist/esm/models/updatebillingschedulerequest.d.ts +70 -0
- package/dist/esm/models/updatebillingschedulerequest.d.ts.map +1 -0
- package/dist/esm/models/updatebillingschedulerequest.js +58 -0
- package/dist/esm/models/updatebillingschedulerequest.js.map +1 -0
- package/dist/esm/models/updateorderlineitemrequest.d.ts +34 -0
- package/dist/esm/models/updateorderlineitemrequest.d.ts.map +1 -0
- package/dist/esm/models/updateorderlineitemrequest.js +21 -0
- package/dist/esm/models/updateorderlineitemrequest.js.map +1 -0
- package/dist/esm/models/updateorderrequest.d.ts +45 -0
- package/dist/esm/models/updateorderrequest.d.ts.map +1 -0
- package/dist/esm/models/updateorderrequest.js +29 -0
- package/dist/esm/models/updateorderrequest.js.map +1 -0
- package/dist/esm/sdk/approvals.d.ts +22 -0
- package/dist/esm/sdk/approvals.d.ts.map +1 -0
- package/dist/esm/sdk/approvals.js +36 -0
- package/dist/esm/sdk/approvals.js.map +1 -0
- package/dist/esm/sdk/billingschedules.d.ts +51 -0
- package/dist/esm/sdk/billingschedules.d.ts.map +1 -0
- package/dist/esm/sdk/billingschedules.js +80 -0
- package/dist/esm/sdk/billingschedules.js.map +1 -0
- package/dist/esm/sdk/orders.d.ts +45 -0
- package/dist/esm/sdk/orders.d.ts.map +1 -0
- package/dist/esm/sdk/orders.js +74 -0
- package/dist/esm/sdk/orders.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +9 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +12 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/approvalsCreateApproval.ts +171 -0
- package/src/funcs/approvalsGetApproval.ts +173 -0
- package/src/funcs/approvalsListApprovals.ts +183 -0
- package/src/funcs/approvalsUpdateApproval.ts +180 -0
- package/src/funcs/billingSchedulesCreateBillingSchedule.ts +171 -0
- package/src/funcs/billingSchedulesDeleteBillingSchedule.ts +174 -0
- package/src/funcs/billingSchedulesGenerateScheduleInvoices.ts +180 -0
- package/src/funcs/billingSchedulesGetBillingSchedule.ts +173 -0
- package/src/funcs/billingSchedulesListBillingSchedules.ts +179 -0
- package/src/funcs/billingSchedulesListScheduleIntervals.ts +173 -0
- package/src/funcs/billingSchedulesListScheduleInvoices.ts +176 -0
- package/src/funcs/billingSchedulesReplaceScheduleIntervals.ts +183 -0
- package/src/funcs/billingSchedulesUpdateBillingSchedule.ts +181 -0
- package/src/funcs/ordersCreateOrder.ts +171 -0
- package/src/funcs/ordersCreateOrderApproval.ts +170 -0
- package/src/funcs/ordersCreateOrderLineItem.ts +181 -0
- package/src/funcs/ordersDeleteOrder.ts +173 -0
- package/src/funcs/ordersDeleteOrderLineItem.ts +178 -0
- package/src/funcs/ordersGetOrder.ts +173 -0
- package/src/funcs/ordersListOrders.ts +182 -0
- package/src/funcs/ordersUpdateOrder.ts +180 -0
- package/src/funcs/ordersUpdateOrderLineItem.ts +185 -0
- package/src/lib/config.ts +2 -2
- package/src/models/approval.ts +81 -0
- package/src/models/approvallist.ts +57 -0
- package/src/models/billingschedule.ts +134 -0
- package/src/models/createapprovalrequest.ts +95 -0
- package/src/models/createbillingschedulerequest.ts +111 -0
- package/src/models/creategrantrequest.ts +6 -0
- package/src/models/createorderapprovalrequest.ts +37 -0
- package/src/models/createorderlineitemrequest.ts +58 -0
- package/src/models/createorderrequest.ts +85 -0
- package/src/models/grant.ts +5 -0
- package/src/models/index.ts +20 -0
- package/src/models/operations/createorderapproval.ts +40 -0
- package/src/models/operations/createorderlineitem.ts +40 -0
- package/src/models/operations/deletebillingschedule.ts +33 -0
- package/src/models/operations/deleteorder.ts +31 -0
- package/src/models/operations/deleteorderlineitem.ts +34 -0
- package/src/models/operations/generatescheduleinvoices.ts +83 -0
- package/src/models/operations/getapproval.ts +31 -0
- package/src/models/operations/getbillingschedule.ts +31 -0
- package/src/models/operations/getorder.ts +29 -0
- package/src/models/operations/index.ts +19 -0
- package/src/models/operations/listapprovals.ts +117 -0
- package/src/models/operations/listbillingschedules.ts +92 -0
- package/src/models/operations/listorders.ts +97 -0
- package/src/models/operations/listscheduleintervals.ts +83 -0
- package/src/models/operations/listscheduleinvoices.ts +83 -0
- package/src/models/operations/replacescheduleintervals.ts +93 -0
- package/src/models/operations/updateapproval.ts +40 -0
- package/src/models/operations/updatebillingschedule.ts +43 -0
- package/src/models/operations/updateorder.ts +40 -0
- package/src/models/operations/updateorderlineitem.ts +43 -0
- package/src/models/order.ts +122 -0
- package/src/models/orderlineitem.ts +89 -0
- package/src/models/orderlist.ts +54 -0
- package/src/models/replacescheduleintervalsrequest.ts +156 -0
- package/src/models/scheduleinterval.ts +132 -0
- package/src/models/scheduleinvoice.ts +114 -0
- package/src/models/schemasapproval.ts +108 -0
- package/src/models/schemasbillingschedule.ts +143 -0
- package/src/models/updateapprovalrequest.ts +64 -0
- package/src/models/updatebillingschedulerequest.ts +123 -0
- package/src/models/updateorderlineitemrequest.ts +58 -0
- package/src/models/updateorderrequest.ts +74 -0
- package/src/sdk/approvals.ts +70 -0
- package/src/sdk/billingschedules.ts +154 -0
- package/src/sdk/orders.ts +148 -0
- package/src/sdk/sdk.ts +18 -0
|
@@ -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
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
|
|
9
|
+
export type UpdateBillingScheduleRequest = {
|
|
10
|
+
id: string;
|
|
11
|
+
updateBillingScheduleRequest: models.UpdateBillingScheduleRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type UpdateBillingScheduleRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
UpdateBillingScheduleRequest: models.UpdateBillingScheduleRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const UpdateBillingScheduleRequest$outboundSchema: z.ZodType<
|
|
22
|
+
UpdateBillingScheduleRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
UpdateBillingScheduleRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
id: z.string(),
|
|
27
|
+
updateBillingScheduleRequest:
|
|
28
|
+
models.UpdateBillingScheduleRequest$outboundSchema,
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
updateBillingScheduleRequest: "UpdateBillingScheduleRequest",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function updateBillingScheduleRequestToJSON(
|
|
36
|
+
updateBillingScheduleRequest: UpdateBillingScheduleRequest,
|
|
37
|
+
): string {
|
|
38
|
+
return JSON.stringify(
|
|
39
|
+
UpdateBillingScheduleRequest$outboundSchema.parse(
|
|
40
|
+
updateBillingScheduleRequest,
|
|
41
|
+
),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
|
|
9
|
+
export type UpdateOrderRequest = {
|
|
10
|
+
id: string;
|
|
11
|
+
updateOrderRequest: models.UpdateOrderRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type UpdateOrderRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
UpdateOrderRequest: models.UpdateOrderRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const UpdateOrderRequest$outboundSchema: z.ZodType<
|
|
22
|
+
UpdateOrderRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
UpdateOrderRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
id: z.string(),
|
|
27
|
+
updateOrderRequest: models.UpdateOrderRequest$outboundSchema,
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
updateOrderRequest: "UpdateOrderRequest",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function updateOrderRequestToJSON(
|
|
35
|
+
updateOrderRequest: UpdateOrderRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
UpdateOrderRequest$outboundSchema.parse(updateOrderRequest),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -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
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
|
|
9
|
+
export type UpdateOrderLineItemRequest = {
|
|
10
|
+
orderId: string;
|
|
11
|
+
id: string;
|
|
12
|
+
updateOrderLineItemRequest: models.UpdateOrderLineItemRequest;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type UpdateOrderLineItemRequest$Outbound = {
|
|
17
|
+
orderId: string;
|
|
18
|
+
id: string;
|
|
19
|
+
UpdateOrderLineItemRequest: models.UpdateOrderLineItemRequest$Outbound;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const UpdateOrderLineItemRequest$outboundSchema: z.ZodType<
|
|
24
|
+
UpdateOrderLineItemRequest$Outbound,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
UpdateOrderLineItemRequest
|
|
27
|
+
> = z.object({
|
|
28
|
+
orderId: z.string(),
|
|
29
|
+
id: z.string(),
|
|
30
|
+
updateOrderLineItemRequest: models.UpdateOrderLineItemRequest$outboundSchema,
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
updateOrderLineItemRequest: "UpdateOrderLineItemRequest",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function updateOrderLineItemRequestToJSON(
|
|
38
|
+
updateOrderLineItemRequest: UpdateOrderLineItemRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
UpdateOrderLineItemRequest$outboundSchema.parse(updateOrderLineItemRequest),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 {
|
|
10
|
+
BillingSchedule,
|
|
11
|
+
BillingSchedule$inboundSchema,
|
|
12
|
+
} from "./billingschedule.js";
|
|
13
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
14
|
+
import { OrderLineItem, OrderLineItem$inboundSchema } from "./orderlineitem.js";
|
|
15
|
+
|
|
16
|
+
export const OrderObject = {
|
|
17
|
+
Order: "order",
|
|
18
|
+
} as const;
|
|
19
|
+
export type OrderObject = ClosedEnum<typeof OrderObject>;
|
|
20
|
+
|
|
21
|
+
export const ApprovalStatus = {
|
|
22
|
+
Draft: "draft",
|
|
23
|
+
Pending: "pending",
|
|
24
|
+
Approved: "approved",
|
|
25
|
+
Rejected: "rejected",
|
|
26
|
+
} as const;
|
|
27
|
+
export type ApprovalStatus = ClosedEnum<typeof ApprovalStatus>;
|
|
28
|
+
|
|
29
|
+
export const OrderType = {
|
|
30
|
+
NewBusiness: "new_business",
|
|
31
|
+
Renewal: "renewal",
|
|
32
|
+
Expansion: "expansion",
|
|
33
|
+
} as const;
|
|
34
|
+
export type OrderType = ClosedEnum<typeof OrderType>;
|
|
35
|
+
|
|
36
|
+
export type Order = {
|
|
37
|
+
id: string;
|
|
38
|
+
object: OrderObject;
|
|
39
|
+
merchantId: string;
|
|
40
|
+
customerId: string;
|
|
41
|
+
resellerId: string | null;
|
|
42
|
+
taxExempt: boolean;
|
|
43
|
+
sellingEntity: string | null;
|
|
44
|
+
currency: string;
|
|
45
|
+
approvalStatus: ApprovalStatus;
|
|
46
|
+
cancelledAt: Date | null;
|
|
47
|
+
type?: OrderType | null | undefined;
|
|
48
|
+
termStartDate: Date;
|
|
49
|
+
termEndDate: Date;
|
|
50
|
+
closeDate?: Date | null | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Decimal string (TCV)
|
|
53
|
+
*/
|
|
54
|
+
totalAmount: string;
|
|
55
|
+
defaultPaymentTermDays: number;
|
|
56
|
+
metadata: { [k: string]: any };
|
|
57
|
+
lineItems: Array<OrderLineItem>;
|
|
58
|
+
billingSchedules: Array<BillingSchedule>;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const OrderObject$inboundSchema: z.ZodNativeEnum<typeof OrderObject> = z
|
|
65
|
+
.nativeEnum(OrderObject);
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const ApprovalStatus$inboundSchema: z.ZodNativeEnum<
|
|
69
|
+
typeof ApprovalStatus
|
|
70
|
+
> = z.nativeEnum(ApprovalStatus);
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const OrderType$inboundSchema: z.ZodNativeEnum<typeof OrderType> = z
|
|
74
|
+
.nativeEnum(OrderType);
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
|
|
78
|
+
.object({
|
|
79
|
+
id: z.string(),
|
|
80
|
+
object: OrderObject$inboundSchema,
|
|
81
|
+
merchantId: z.string(),
|
|
82
|
+
customerId: z.string(),
|
|
83
|
+
resellerId: z.nullable(z.string()),
|
|
84
|
+
taxExempt: z.boolean(),
|
|
85
|
+
sellingEntity: z.nullable(z.string()),
|
|
86
|
+
currency: z.string(),
|
|
87
|
+
approvalStatus: ApprovalStatus$inboundSchema,
|
|
88
|
+
cancelledAt: z.nullable(
|
|
89
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
90
|
+
),
|
|
91
|
+
type: z.nullable(OrderType$inboundSchema).optional(),
|
|
92
|
+
termStartDate: z.string().datetime({ offset: true }).transform(v =>
|
|
93
|
+
new Date(v)
|
|
94
|
+
),
|
|
95
|
+
termEndDate: z.string().datetime({ offset: true }).transform(v =>
|
|
96
|
+
new Date(v)
|
|
97
|
+
),
|
|
98
|
+
closeDate: z.nullable(
|
|
99
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
100
|
+
).optional(),
|
|
101
|
+
totalAmount: z.string(),
|
|
102
|
+
defaultPaymentTermDays: z.number().int(),
|
|
103
|
+
metadata: z.record(z.any()),
|
|
104
|
+
lineItems: z.array(OrderLineItem$inboundSchema),
|
|
105
|
+
billingSchedules: z.array(BillingSchedule$inboundSchema),
|
|
106
|
+
createdAt: z.string().datetime({ offset: true }).transform(v =>
|
|
107
|
+
new Date(v)
|
|
108
|
+
),
|
|
109
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v =>
|
|
110
|
+
new Date(v)
|
|
111
|
+
),
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
export function orderFromJSON(
|
|
115
|
+
jsonString: string,
|
|
116
|
+
): SafeParseResult<Order, SDKValidationError> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) => Order$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
+
`Failed to parse 'Order' from JSON`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 OrderLineItemObject = {
|
|
12
|
+
OrderLineItem: "order_line_item",
|
|
13
|
+
} as const;
|
|
14
|
+
export type OrderLineItemObject = ClosedEnum<typeof OrderLineItemObject>;
|
|
15
|
+
|
|
16
|
+
export type OrderLineItem = {
|
|
17
|
+
id: string;
|
|
18
|
+
object: OrderLineItemObject;
|
|
19
|
+
orderId: string;
|
|
20
|
+
itemId?: string | null | undefined;
|
|
21
|
+
description?: string | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Decimal string
|
|
24
|
+
*/
|
|
25
|
+
quantity: string;
|
|
26
|
+
/**
|
|
27
|
+
* Decimal string
|
|
28
|
+
*/
|
|
29
|
+
listUnitPrice: string;
|
|
30
|
+
/**
|
|
31
|
+
* Decimal string
|
|
32
|
+
*/
|
|
33
|
+
discountUnitAmount: string;
|
|
34
|
+
/**
|
|
35
|
+
* Decimal string
|
|
36
|
+
*/
|
|
37
|
+
unitPrice: string;
|
|
38
|
+
/**
|
|
39
|
+
* Decimal string
|
|
40
|
+
*/
|
|
41
|
+
totalPrice: string;
|
|
42
|
+
termStartDate: Date | null;
|
|
43
|
+
termEndDate: Date | null;
|
|
44
|
+
metadata: { [k: string]: any };
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
updatedAt: Date;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const OrderLineItemObject$inboundSchema: z.ZodNativeEnum<
|
|
51
|
+
typeof OrderLineItemObject
|
|
52
|
+
> = z.nativeEnum(OrderLineItemObject);
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const OrderLineItem$inboundSchema: z.ZodType<
|
|
56
|
+
OrderLineItem,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
id: z.string(),
|
|
61
|
+
object: OrderLineItemObject$inboundSchema,
|
|
62
|
+
orderId: z.string(),
|
|
63
|
+
itemId: z.nullable(z.string()).optional(),
|
|
64
|
+
description: z.nullable(z.string()).optional(),
|
|
65
|
+
quantity: z.string(),
|
|
66
|
+
listUnitPrice: z.string(),
|
|
67
|
+
discountUnitAmount: z.string(),
|
|
68
|
+
unitPrice: z.string(),
|
|
69
|
+
totalPrice: z.string(),
|
|
70
|
+
termStartDate: z.nullable(
|
|
71
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
72
|
+
),
|
|
73
|
+
termEndDate: z.nullable(
|
|
74
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
75
|
+
),
|
|
76
|
+
metadata: z.record(z.any()),
|
|
77
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
78
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export function orderLineItemFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<OrderLineItem, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => OrderLineItem$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'OrderLineItem' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import {
|
|
11
|
+
OffsetPagination,
|
|
12
|
+
OffsetPagination$inboundSchema,
|
|
13
|
+
} from "./offsetpagination.js";
|
|
14
|
+
import { Order, Order$inboundSchema } from "./order.js";
|
|
15
|
+
|
|
16
|
+
export const OrderListObject = {
|
|
17
|
+
List: "list",
|
|
18
|
+
} as const;
|
|
19
|
+
export type OrderListObject = ClosedEnum<typeof OrderListObject>;
|
|
20
|
+
|
|
21
|
+
export type OrderList = {
|
|
22
|
+
object: OrderListObject;
|
|
23
|
+
data: Array<Order>;
|
|
24
|
+
/**
|
|
25
|
+
* Offset-based pagination response.
|
|
26
|
+
*/
|
|
27
|
+
pagination: OffsetPagination;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const OrderListObject$inboundSchema: z.ZodNativeEnum<
|
|
32
|
+
typeof OrderListObject
|
|
33
|
+
> = z.nativeEnum(OrderListObject);
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const OrderList$inboundSchema: z.ZodType<
|
|
37
|
+
OrderList,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
object: OrderListObject$inboundSchema,
|
|
42
|
+
data: z.array(Order$inboundSchema),
|
|
43
|
+
pagination: OffsetPagination$inboundSchema,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function orderListFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<OrderList, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => OrderList$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'OrderList' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export type ReplaceScheduleIntervalsRequestQuantityTransition = {
|
|
9
|
+
effectiveDate: Date;
|
|
10
|
+
quantity: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const ReplaceScheduleIntervalsRequestBillingMode = {
|
|
14
|
+
Advance: "advance",
|
|
15
|
+
Arrears: "arrears",
|
|
16
|
+
} as const;
|
|
17
|
+
export type ReplaceScheduleIntervalsRequestBillingMode = ClosedEnum<
|
|
18
|
+
typeof ReplaceScheduleIntervalsRequestBillingMode
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
export type Interval = {
|
|
22
|
+
orderLineItemId?: string | null | undefined;
|
|
23
|
+
itemId?: string | null | undefined;
|
|
24
|
+
priceId?: string | null | undefined;
|
|
25
|
+
description?: string | null | undefined;
|
|
26
|
+
unitPrice?: string | null | undefined;
|
|
27
|
+
baseQuantity: string;
|
|
28
|
+
quantityTransitions?:
|
|
29
|
+
| Array<ReplaceScheduleIntervalsRequestQuantityTransition>
|
|
30
|
+
| undefined;
|
|
31
|
+
billingCadence: string;
|
|
32
|
+
billingMode?: ReplaceScheduleIntervalsRequestBillingMode | undefined;
|
|
33
|
+
billDate?: Date | null | undefined;
|
|
34
|
+
startDate: Date;
|
|
35
|
+
endDate: Date;
|
|
36
|
+
usageFilter?: { [k: string]: any } | null | undefined;
|
|
37
|
+
metadata?: { [k: string]: any } | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type ReplaceScheduleIntervalsRequest = {
|
|
41
|
+
intervals: Array<Interval>;
|
|
42
|
+
/**
|
|
43
|
+
* When set, scope the wipe to this line's intervals only (per-line cell-edit path)
|
|
44
|
+
*/
|
|
45
|
+
orderLineItemId?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type ReplaceScheduleIntervalsRequestQuantityTransition$Outbound = {
|
|
50
|
+
effectiveDate: string;
|
|
51
|
+
quantity: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ReplaceScheduleIntervalsRequestQuantityTransition$outboundSchema:
|
|
56
|
+
z.ZodType<
|
|
57
|
+
ReplaceScheduleIntervalsRequestQuantityTransition$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
ReplaceScheduleIntervalsRequestQuantityTransition
|
|
60
|
+
> = z.object({
|
|
61
|
+
effectiveDate: z.date().transform(v => v.toISOString()),
|
|
62
|
+
quantity: z.string(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function replaceScheduleIntervalsRequestQuantityTransitionToJSON(
|
|
66
|
+
replaceScheduleIntervalsRequestQuantityTransition:
|
|
67
|
+
ReplaceScheduleIntervalsRequestQuantityTransition,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
ReplaceScheduleIntervalsRequestQuantityTransition$outboundSchema.parse(
|
|
71
|
+
replaceScheduleIntervalsRequestQuantityTransition,
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const ReplaceScheduleIntervalsRequestBillingMode$outboundSchema:
|
|
78
|
+
z.ZodNativeEnum<typeof ReplaceScheduleIntervalsRequestBillingMode> = z
|
|
79
|
+
.nativeEnum(ReplaceScheduleIntervalsRequestBillingMode);
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export type Interval$Outbound = {
|
|
83
|
+
orderLineItemId?: string | null | undefined;
|
|
84
|
+
itemId?: string | null | undefined;
|
|
85
|
+
priceId?: string | null | undefined;
|
|
86
|
+
description?: string | null | undefined;
|
|
87
|
+
unitPrice?: string | null | undefined;
|
|
88
|
+
baseQuantity: string;
|
|
89
|
+
quantityTransitions?:
|
|
90
|
+
| Array<ReplaceScheduleIntervalsRequestQuantityTransition$Outbound>
|
|
91
|
+
| undefined;
|
|
92
|
+
billingCadence: string;
|
|
93
|
+
billingMode?: string | undefined;
|
|
94
|
+
billDate?: string | null | undefined;
|
|
95
|
+
startDate: string;
|
|
96
|
+
endDate: string;
|
|
97
|
+
usageFilter?: { [k: string]: any } | null | undefined;
|
|
98
|
+
metadata?: { [k: string]: any } | undefined;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const Interval$outboundSchema: z.ZodType<
|
|
103
|
+
Interval$Outbound,
|
|
104
|
+
z.ZodTypeDef,
|
|
105
|
+
Interval
|
|
106
|
+
> = z.object({
|
|
107
|
+
orderLineItemId: z.nullable(z.string()).optional(),
|
|
108
|
+
itemId: z.nullable(z.string()).optional(),
|
|
109
|
+
priceId: z.nullable(z.string()).optional(),
|
|
110
|
+
description: z.nullable(z.string()).optional(),
|
|
111
|
+
unitPrice: z.nullable(z.string()).optional(),
|
|
112
|
+
baseQuantity: z.string(),
|
|
113
|
+
quantityTransitions: z.array(
|
|
114
|
+
z.lazy(() =>
|
|
115
|
+
ReplaceScheduleIntervalsRequestQuantityTransition$outboundSchema
|
|
116
|
+
),
|
|
117
|
+
).optional(),
|
|
118
|
+
billingCadence: z.string(),
|
|
119
|
+
billingMode: ReplaceScheduleIntervalsRequestBillingMode$outboundSchema
|
|
120
|
+
.optional(),
|
|
121
|
+
billDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
122
|
+
startDate: z.date().transform(v => v.toISOString()),
|
|
123
|
+
endDate: z.date().transform(v => v.toISOString()),
|
|
124
|
+
usageFilter: z.nullable(z.record(z.any())).optional(),
|
|
125
|
+
metadata: z.record(z.any()).optional(),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function intervalToJSON(interval: Interval): string {
|
|
129
|
+
return JSON.stringify(Interval$outboundSchema.parse(interval));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export type ReplaceScheduleIntervalsRequest$Outbound = {
|
|
134
|
+
intervals: Array<Interval$Outbound>;
|
|
135
|
+
orderLineItemId?: string | undefined;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const ReplaceScheduleIntervalsRequest$outboundSchema: z.ZodType<
|
|
140
|
+
ReplaceScheduleIntervalsRequest$Outbound,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
ReplaceScheduleIntervalsRequest
|
|
143
|
+
> = z.object({
|
|
144
|
+
intervals: z.array(z.lazy(() => Interval$outboundSchema)),
|
|
145
|
+
orderLineItemId: z.string().optional(),
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
export function replaceScheduleIntervalsRequestToJSON(
|
|
149
|
+
replaceScheduleIntervalsRequest: ReplaceScheduleIntervalsRequest,
|
|
150
|
+
): string {
|
|
151
|
+
return JSON.stringify(
|
|
152
|
+
ReplaceScheduleIntervalsRequest$outboundSchema.parse(
|
|
153
|
+
replaceScheduleIntervalsRequest,
|
|
154
|
+
),
|
|
155
|
+
);
|
|
156
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
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 ScheduleIntervalObject = {
|
|
12
|
+
ScheduleInterval: "schedule_interval",
|
|
13
|
+
} as const;
|
|
14
|
+
export type ScheduleIntervalObject = ClosedEnum<typeof ScheduleIntervalObject>;
|
|
15
|
+
|
|
16
|
+
export type ScheduleIntervalQuantityTransition = {
|
|
17
|
+
effectiveDate: Date;
|
|
18
|
+
quantity: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const ScheduleIntervalBillingMode = {
|
|
22
|
+
Advance: "advance",
|
|
23
|
+
Arrears: "arrears",
|
|
24
|
+
} as const;
|
|
25
|
+
export type ScheduleIntervalBillingMode = ClosedEnum<
|
|
26
|
+
typeof ScheduleIntervalBillingMode
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export type ScheduleInterval = {
|
|
30
|
+
id: string;
|
|
31
|
+
object: ScheduleIntervalObject;
|
|
32
|
+
scheduleId: string;
|
|
33
|
+
orderLineItemId?: string | null | undefined;
|
|
34
|
+
itemId?: string | null | undefined;
|
|
35
|
+
priceId?: string | null | undefined;
|
|
36
|
+
description?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Signed per-period net unit price as decimal string
|
|
39
|
+
*/
|
|
40
|
+
unitPrice?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Quantity at interval start
|
|
43
|
+
*/
|
|
44
|
+
baseQuantity: string;
|
|
45
|
+
quantityTransitions: Array<ScheduleIntervalQuantityTransition>;
|
|
46
|
+
/**
|
|
47
|
+
* ISO-8601 duration or 'one_off'
|
|
48
|
+
*/
|
|
49
|
+
billingCadence: string;
|
|
50
|
+
billingMode: ScheduleIntervalBillingMode;
|
|
51
|
+
billDate?: Date | null | undefined;
|
|
52
|
+
startDate: Date;
|
|
53
|
+
endDate: Date;
|
|
54
|
+
usageFilter?: { [k: string]: any } | null | undefined;
|
|
55
|
+
metadata: { [k: string]: any };
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const ScheduleIntervalObject$inboundSchema: z.ZodNativeEnum<
|
|
62
|
+
typeof ScheduleIntervalObject
|
|
63
|
+
> = z.nativeEnum(ScheduleIntervalObject);
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const ScheduleIntervalQuantityTransition$inboundSchema: z.ZodType<
|
|
67
|
+
ScheduleIntervalQuantityTransition,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.object({
|
|
71
|
+
effectiveDate: z.string().datetime({ offset: true }).transform(v =>
|
|
72
|
+
new Date(v)
|
|
73
|
+
),
|
|
74
|
+
quantity: z.string(),
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export function scheduleIntervalQuantityTransitionFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<ScheduleIntervalQuantityTransition, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) =>
|
|
83
|
+
ScheduleIntervalQuantityTransition$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'ScheduleIntervalQuantityTransition' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const ScheduleIntervalBillingMode$inboundSchema: z.ZodNativeEnum<
|
|
90
|
+
typeof ScheduleIntervalBillingMode
|
|
91
|
+
> = z.nativeEnum(ScheduleIntervalBillingMode);
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const ScheduleInterval$inboundSchema: z.ZodType<
|
|
95
|
+
ScheduleInterval,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
unknown
|
|
98
|
+
> = z.object({
|
|
99
|
+
id: z.string(),
|
|
100
|
+
object: ScheduleIntervalObject$inboundSchema,
|
|
101
|
+
scheduleId: z.string(),
|
|
102
|
+
orderLineItemId: z.nullable(z.string()).optional(),
|
|
103
|
+
itemId: z.nullable(z.string()).optional(),
|
|
104
|
+
priceId: z.nullable(z.string()).optional(),
|
|
105
|
+
description: z.nullable(z.string()).optional(),
|
|
106
|
+
unitPrice: z.nullable(z.string()).optional(),
|
|
107
|
+
baseQuantity: z.string(),
|
|
108
|
+
quantityTransitions: z.array(
|
|
109
|
+
z.lazy(() => ScheduleIntervalQuantityTransition$inboundSchema),
|
|
110
|
+
),
|
|
111
|
+
billingCadence: z.string(),
|
|
112
|
+
billingMode: ScheduleIntervalBillingMode$inboundSchema,
|
|
113
|
+
billDate: z.nullable(
|
|
114
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
115
|
+
).optional(),
|
|
116
|
+
startDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
117
|
+
endDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
118
|
+
usageFilter: z.nullable(z.record(z.any())).optional(),
|
|
119
|
+
metadata: z.record(z.any()),
|
|
120
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
121
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
export function scheduleIntervalFromJSON(
|
|
125
|
+
jsonString: string,
|
|
126
|
+
): SafeParseResult<ScheduleInterval, SDKValidationError> {
|
|
127
|
+
return safeParse(
|
|
128
|
+
jsonString,
|
|
129
|
+
(x) => ScheduleInterval$inboundSchema.parse(JSON.parse(x)),
|
|
130
|
+
`Failed to parse 'ScheduleInterval' from JSON`,
|
|
131
|
+
);
|
|
132
|
+
}
|