@paygentic/sdk 0.9.17 → 0.10.0
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 +10 -7
- package/dist/commonjs/funcs/revenueGetRevenueAccounts.d.ts +23 -0
- package/dist/commonjs/funcs/revenueGetRevenueAccounts.d.ts.map +1 -0
- package/dist/commonjs/funcs/revenueGetRevenueAccounts.js +129 -0
- package/dist/commonjs/funcs/revenueGetRevenueAccounts.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/accountfigure.d.ts +20 -0
- package/dist/commonjs/models/accountfigure.d.ts.map +1 -0
- package/dist/commonjs/models/accountfigure.js +51 -0
- package/dist/commonjs/models/accountfigure.js.map +1 -0
- package/dist/commonjs/models/authorizationdenialreason.d.ts +17 -0
- package/dist/commonjs/models/authorizationdenialreason.d.ts.map +1 -0
- package/dist/commonjs/models/authorizationdenialreason.js +51 -0
- package/dist/commonjs/models/authorizationdenialreason.js.map +1 -0
- package/dist/commonjs/models/errors/error.d.ts +17 -0
- package/dist/commonjs/models/errors/error.d.ts.map +1 -1
- package/dist/commonjs/models/errors/error.js +8 -0
- package/dist/commonjs/models/errors/error.js.map +1 -1
- package/dist/commonjs/models/errors/recordinvoicepayment.d.ts +16 -0
- package/dist/commonjs/models/errors/recordinvoicepayment.d.ts.map +1 -1
- package/dist/commonjs/models/errors/recordinvoicepayment.js +7 -0
- package/dist/commonjs/models/errors/recordinvoicepayment.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/invoicelineitem.d.ts +5 -0
- package/dist/commonjs/models/invoicelineitem.d.ts.map +1 -1
- package/dist/commonjs/models/invoicelineitem.js +2 -0
- package/dist/commonjs/models/invoicelineitem.js.map +1 -1
- package/dist/commonjs/models/linecalculationcontribution.d.ts +12 -0
- package/dist/commonjs/models/linecalculationcontribution.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationcontribution.js +52 -0
- package/dist/commonjs/models/linecalculationcontribution.js.map +1 -0
- package/dist/commonjs/models/linecalculationgiven.d.ts +20 -0
- package/dist/commonjs/models/linecalculationgiven.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationgiven.js +51 -0
- package/dist/commonjs/models/linecalculationgiven.js.map +1 -0
- package/dist/commonjs/models/linecalculationinputprice.d.ts +21 -0
- package/dist/commonjs/models/linecalculationinputprice.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationinputprice.js +52 -0
- package/dist/commonjs/models/linecalculationinputprice.js.map +1 -0
- package/dist/commonjs/models/linecalculationinputs.d.ts +34 -0
- package/dist/commonjs/models/linecalculationinputs.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationinputs.js +56 -0
- package/dist/commonjs/models/linecalculationinputs.js.map +1 -0
- package/dist/commonjs/models/linecalculationnotapplied.d.ts +20 -0
- package/dist/commonjs/models/linecalculationnotapplied.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationnotapplied.js +51 -0
- package/dist/commonjs/models/linecalculationnotapplied.js.map +1 -0
- package/dist/commonjs/models/linecalculationperiod.d.ts +14 -0
- package/dist/commonjs/models/linecalculationperiod.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationperiod.js +51 -0
- package/dist/commonjs/models/linecalculationperiod.js.map +1 -0
- package/dist/commonjs/models/linecalculationprecision.d.ts +14 -0
- package/dist/commonjs/models/linecalculationprecision.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationprecision.js +51 -0
- package/dist/commonjs/models/linecalculationprecision.js.map +1 -0
- package/dist/commonjs/models/linecalculationpriceband.d.ts +11 -0
- package/dist/commonjs/models/linecalculationpriceband.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationpriceband.js +51 -0
- package/dist/commonjs/models/linecalculationpriceband.js.map +1 -0
- package/dist/commonjs/models/linecalculationpricefn.d.ts +40 -0
- package/dist/commonjs/models/linecalculationpricefn.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationpricefn.js +56 -0
- package/dist/commonjs/models/linecalculationpricefn.js.map +1 -0
- package/dist/commonjs/models/linecalculationresult.d.ts +24 -0
- package/dist/commonjs/models/linecalculationresult.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationresult.js +52 -0
- package/dist/commonjs/models/linecalculationresult.js.map +1 -0
- package/dist/commonjs/models/linecalculationsource.d.ts +32 -0
- package/dist/commonjs/models/linecalculationsource.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationsource.js +53 -0
- package/dist/commonjs/models/linecalculationsource.js.map +1 -0
- package/dist/commonjs/models/linecalculationstep.d.ts +50 -0
- package/dist/commonjs/models/linecalculationstep.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationstep.js +59 -0
- package/dist/commonjs/models/linecalculationstep.js.map +1 -0
- package/dist/commonjs/models/linecalculationvalue.d.ts +12 -0
- package/dist/commonjs/models/linecalculationvalue.d.ts.map +1 -0
- package/dist/commonjs/models/linecalculationvalue.js +49 -0
- package/dist/commonjs/models/linecalculationvalue.js.map +1 -0
- package/dist/commonjs/models/lineitem.d.ts +5 -0
- package/dist/commonjs/models/lineitem.d.ts.map +1 -1
- package/dist/commonjs/models/lineitem.js +2 -0
- package/dist/commonjs/models/lineitem.js.map +1 -1
- package/dist/commonjs/models/lineprovenance.d.ts +69 -0
- package/dist/commonjs/models/lineprovenance.d.ts.map +1 -0
- package/dist/commonjs/models/lineprovenance.js +68 -0
- package/dist/commonjs/models/lineprovenance.js.map +1 -0
- package/dist/commonjs/models/operations/getinvoice.d.ts +1 -1
- package/dist/commonjs/models/operations/getinvoicelineitems.d.ts +1 -1
- package/dist/commonjs/models/operations/getrevenue.d.ts +7 -7
- package/dist/commonjs/models/operations/getrevenue.js +1 -1
- package/dist/commonjs/models/operations/getrevenueaccounts.d.ts +30 -0
- package/dist/commonjs/models/operations/getrevenueaccounts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getrevenueaccounts.js +52 -0
- package/dist/commonjs/models/operations/getrevenueaccounts.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listlineitems.d.ts +1 -1
- package/dist/commonjs/models/outstandingblock.d.ts +29 -0
- package/dist/commonjs/models/outstandingblock.d.ts.map +1 -0
- package/dist/commonjs/models/outstandingblock.js +54 -0
- package/dist/commonjs/models/outstandingblock.js.map +1 -0
- package/dist/commonjs/models/revenueaccountrow.d.ts +26 -0
- package/dist/commonjs/models/revenueaccountrow.d.ts.map +1 -0
- package/dist/commonjs/models/revenueaccountrow.js +54 -0
- package/dist/commonjs/models/revenueaccountrow.js.map +1 -0
- package/dist/commonjs/models/revenueaccountsresponse.d.ts +41 -0
- package/dist/commonjs/models/revenueaccountsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/revenueaccountsresponse.js +64 -0
- package/dist/commonjs/models/revenueaccountsresponse.js.map +1 -0
- package/dist/commonjs/models/revenueaccounttotal.d.ts +18 -0
- package/dist/commonjs/models/revenueaccounttotal.d.ts.map +1 -0
- package/dist/commonjs/models/revenueaccounttotal.js +52 -0
- package/dist/commonjs/models/revenueaccounttotal.js.map +1 -0
- package/dist/commonjs/models/revenuesummaryresponse.d.ts +4 -0
- package/dist/commonjs/models/revenuesummaryresponse.d.ts.map +1 -1
- package/dist/commonjs/models/revenuesummaryresponse.js +1 -0
- package/dist/commonjs/models/revenuesummaryresponse.js.map +1 -1
- package/dist/commonjs/sdk/revenue.d.ts +11 -0
- package/dist/commonjs/sdk/revenue.d.ts.map +1 -1
- package/dist/commonjs/sdk/revenue.js +14 -0
- package/dist/commonjs/sdk/revenue.js.map +1 -1
- package/dist/esm/funcs/revenueGetRevenueAccounts.d.ts +23 -0
- package/dist/esm/funcs/revenueGetRevenueAccounts.d.ts.map +1 -0
- package/dist/esm/funcs/revenueGetRevenueAccounts.js +93 -0
- package/dist/esm/funcs/revenueGetRevenueAccounts.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/accountfigure.d.ts +20 -0
- package/dist/esm/models/accountfigure.d.ts.map +1 -0
- package/dist/esm/models/accountfigure.js +14 -0
- package/dist/esm/models/accountfigure.js.map +1 -0
- package/dist/esm/models/authorizationdenialreason.d.ts +17 -0
- package/dist/esm/models/authorizationdenialreason.d.ts.map +1 -0
- package/dist/esm/models/authorizationdenialreason.js +15 -0
- package/dist/esm/models/authorizationdenialreason.js.map +1 -0
- package/dist/esm/models/errors/error.d.ts +17 -0
- package/dist/esm/models/errors/error.d.ts.map +1 -1
- package/dist/esm/models/errors/error.js +8 -0
- package/dist/esm/models/errors/error.js.map +1 -1
- package/dist/esm/models/errors/recordinvoicepayment.d.ts +16 -0
- package/dist/esm/models/errors/recordinvoicepayment.d.ts.map +1 -1
- package/dist/esm/models/errors/recordinvoicepayment.js +7 -0
- package/dist/esm/models/errors/recordinvoicepayment.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/invoicelineitem.d.ts +5 -0
- package/dist/esm/models/invoicelineitem.d.ts.map +1 -1
- package/dist/esm/models/invoicelineitem.js +2 -0
- package/dist/esm/models/invoicelineitem.js.map +1 -1
- package/dist/esm/models/linecalculationcontribution.d.ts +12 -0
- package/dist/esm/models/linecalculationcontribution.d.ts.map +1 -0
- package/dist/esm/models/linecalculationcontribution.js +15 -0
- package/dist/esm/models/linecalculationcontribution.js.map +1 -0
- package/dist/esm/models/linecalculationgiven.d.ts +20 -0
- package/dist/esm/models/linecalculationgiven.d.ts.map +1 -0
- package/dist/esm/models/linecalculationgiven.js +14 -0
- package/dist/esm/models/linecalculationgiven.js.map +1 -0
- package/dist/esm/models/linecalculationinputprice.d.ts +21 -0
- package/dist/esm/models/linecalculationinputprice.d.ts.map +1 -0
- package/dist/esm/models/linecalculationinputprice.js +15 -0
- package/dist/esm/models/linecalculationinputprice.js.map +1 -0
- package/dist/esm/models/linecalculationinputs.d.ts +34 -0
- package/dist/esm/models/linecalculationinputs.d.ts.map +1 -0
- package/dist/esm/models/linecalculationinputs.js +19 -0
- package/dist/esm/models/linecalculationinputs.js.map +1 -0
- package/dist/esm/models/linecalculationnotapplied.d.ts +20 -0
- package/dist/esm/models/linecalculationnotapplied.d.ts.map +1 -0
- package/dist/esm/models/linecalculationnotapplied.js +14 -0
- package/dist/esm/models/linecalculationnotapplied.js.map +1 -0
- package/dist/esm/models/linecalculationperiod.d.ts +14 -0
- package/dist/esm/models/linecalculationperiod.d.ts.map +1 -0
- package/dist/esm/models/linecalculationperiod.js +14 -0
- package/dist/esm/models/linecalculationperiod.js.map +1 -0
- package/dist/esm/models/linecalculationprecision.d.ts +14 -0
- package/dist/esm/models/linecalculationprecision.d.ts.map +1 -0
- package/dist/esm/models/linecalculationprecision.js +14 -0
- package/dist/esm/models/linecalculationprecision.js.map +1 -0
- package/dist/esm/models/linecalculationpriceband.d.ts +11 -0
- package/dist/esm/models/linecalculationpriceband.d.ts.map +1 -0
- package/dist/esm/models/linecalculationpriceband.js +14 -0
- package/dist/esm/models/linecalculationpriceband.js.map +1 -0
- package/dist/esm/models/linecalculationpricefn.d.ts +40 -0
- package/dist/esm/models/linecalculationpricefn.d.ts.map +1 -0
- package/dist/esm/models/linecalculationpricefn.js +19 -0
- package/dist/esm/models/linecalculationpricefn.js.map +1 -0
- package/dist/esm/models/linecalculationresult.d.ts +24 -0
- package/dist/esm/models/linecalculationresult.d.ts.map +1 -0
- package/dist/esm/models/linecalculationresult.js +15 -0
- package/dist/esm/models/linecalculationresult.js.map +1 -0
- package/dist/esm/models/linecalculationsource.d.ts +32 -0
- package/dist/esm/models/linecalculationsource.d.ts.map +1 -0
- package/dist/esm/models/linecalculationsource.js +16 -0
- package/dist/esm/models/linecalculationsource.js.map +1 -0
- package/dist/esm/models/linecalculationstep.d.ts +50 -0
- package/dist/esm/models/linecalculationstep.d.ts.map +1 -0
- package/dist/esm/models/linecalculationstep.js +22 -0
- package/dist/esm/models/linecalculationstep.js.map +1 -0
- package/dist/esm/models/linecalculationvalue.d.ts +12 -0
- package/dist/esm/models/linecalculationvalue.d.ts.map +1 -0
- package/dist/esm/models/linecalculationvalue.js +12 -0
- package/dist/esm/models/linecalculationvalue.js.map +1 -0
- package/dist/esm/models/lineitem.d.ts +5 -0
- package/dist/esm/models/lineitem.d.ts.map +1 -1
- package/dist/esm/models/lineitem.js +2 -0
- package/dist/esm/models/lineitem.js.map +1 -1
- package/dist/esm/models/lineprovenance.d.ts +69 -0
- package/dist/esm/models/lineprovenance.d.ts.map +1 -0
- package/dist/esm/models/lineprovenance.js +31 -0
- package/dist/esm/models/lineprovenance.js.map +1 -0
- package/dist/esm/models/operations/getinvoice.d.ts +1 -1
- package/dist/esm/models/operations/getinvoicelineitems.d.ts +1 -1
- package/dist/esm/models/operations/getrevenue.d.ts +7 -7
- package/dist/esm/models/operations/getrevenue.js +1 -1
- package/dist/esm/models/operations/getrevenueaccounts.d.ts +30 -0
- package/dist/esm/models/operations/getrevenueaccounts.d.ts.map +1 -0
- package/dist/esm/models/operations/getrevenueaccounts.js +15 -0
- package/dist/esm/models/operations/getrevenueaccounts.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listlineitems.d.ts +1 -1
- package/dist/esm/models/outstandingblock.d.ts +29 -0
- package/dist/esm/models/outstandingblock.d.ts.map +1 -0
- package/dist/esm/models/outstandingblock.js +17 -0
- package/dist/esm/models/outstandingblock.js.map +1 -0
- package/dist/esm/models/revenueaccountrow.d.ts +26 -0
- package/dist/esm/models/revenueaccountrow.d.ts.map +1 -0
- package/dist/esm/models/revenueaccountrow.js +17 -0
- package/dist/esm/models/revenueaccountrow.js.map +1 -0
- package/dist/esm/models/revenueaccountsresponse.d.ts +41 -0
- package/dist/esm/models/revenueaccountsresponse.d.ts.map +1 -0
- package/dist/esm/models/revenueaccountsresponse.js +27 -0
- package/dist/esm/models/revenueaccountsresponse.js.map +1 -0
- package/dist/esm/models/revenueaccounttotal.d.ts +18 -0
- package/dist/esm/models/revenueaccounttotal.d.ts.map +1 -0
- package/dist/esm/models/revenueaccounttotal.js +15 -0
- package/dist/esm/models/revenueaccounttotal.js.map +1 -0
- package/dist/esm/models/revenuesummaryresponse.d.ts +4 -0
- package/dist/esm/models/revenuesummaryresponse.d.ts.map +1 -1
- package/dist/esm/models/revenuesummaryresponse.js +1 -0
- package/dist/esm/models/revenuesummaryresponse.js.map +1 -1
- package/dist/esm/sdk/revenue.d.ts +11 -0
- package/dist/esm/sdk/revenue.d.ts.map +1 -1
- package/dist/esm/sdk/revenue.js +14 -0
- package/dist/esm/sdk/revenue.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/revenueGetRevenueAccounts.ts +186 -0
- package/src/lib/config.ts +2 -2
- package/src/models/accountfigure.ts +42 -0
- package/src/models/authorizationdenialreason.ts +26 -0
- package/src/models/errors/error.ts +23 -0
- package/src/models/errors/recordinvoicepayment.ts +22 -0
- package/src/models/index.ts +20 -0
- package/src/models/invoicelineitem.ts +9 -0
- package/src/models/linecalculationcontribution.ts +35 -0
- package/src/models/linecalculationgiven.ts +42 -0
- package/src/models/linecalculationinputprice.ts +46 -0
- package/src/models/linecalculationinputs.ts +65 -0
- package/src/models/linecalculationnotapplied.ts +42 -0
- package/src/models/linecalculationperiod.ts +36 -0
- package/src/models/linecalculationprecision.ts +36 -0
- package/src/models/linecalculationpriceband.ts +33 -0
- package/src/models/linecalculationpricefn.ts +74 -0
- package/src/models/linecalculationresult.ts +47 -0
- package/src/models/linecalculationsource.ts +52 -0
- package/src/models/linecalculationstep.ts +80 -0
- package/src/models/linecalculationvalue.ts +34 -0
- package/src/models/lineitem.ts +9 -0
- package/src/models/lineprovenance.ts +122 -0
- package/src/models/operations/getinvoice.ts +1 -1
- package/src/models/operations/getinvoicelineitems.ts +1 -1
- package/src/models/operations/getrevenue.ts +7 -7
- package/src/models/operations/getrevenueaccounts.ts +52 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listlineitems.ts +1 -1
- package/src/models/outstandingblock.ts +53 -0
- package/src/models/revenueaccountrow.ts +53 -0
- package/src/models/revenueaccountsresponse.ts +80 -0
- package/src/models/revenueaccounttotal.ts +43 -0
- package/src/models/revenuesummaryresponse.ts +5 -0
- package/src/sdk/revenue.ts +22 -0
package/README.md
CHANGED
|
@@ -393,6 +393,7 @@ run();
|
|
|
393
393
|
### [Revenue](docs/sdks/revenue/README.md)
|
|
394
394
|
|
|
395
395
|
* [get](docs/sdks/revenue/README.md#get) - Get revenue summary
|
|
396
|
+
* [getRevenueAccounts](docs/sdks/revenue/README.md#getrevenueaccounts) - List customer accounts
|
|
396
397
|
|
|
397
398
|
### [Salesforce](docs/sdks/salesforce/README.md)
|
|
398
399
|
|
|
@@ -589,6 +590,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
589
590
|
- [`productsUpdate`](docs/sdks/products/README.md#update) - Update
|
|
590
591
|
- [`profitabilityGetProfitability`](docs/sdks/profitability/README.md#getprofitability) - Get profitability summary
|
|
591
592
|
- [`revenueGet`](docs/sdks/revenue/README.md#get) - Get revenue summary
|
|
593
|
+
- [`revenueGetRevenueAccounts`](docs/sdks/revenue/README.md#getrevenueaccounts) - List customer accounts
|
|
592
594
|
- [`salesforceListSalesforceAccounts`](docs/sdks/salesforce/README.md#listsalesforceaccounts) - List Salesforce accounts
|
|
593
595
|
- [`sourcesCreate`](docs/sdks/sources/README.md#create) - Create
|
|
594
596
|
- [`sourcesEventsApprove`](docs/sdks/sourcesevents/README.md#approve) - Approve
|
|
@@ -764,6 +766,7 @@ async function run() {
|
|
|
764
766
|
console.log(error.data$.message); // string
|
|
765
767
|
console.log(error.data$.code); // string
|
|
766
768
|
console.log(error.data$.details); // { [k: string]: any }
|
|
769
|
+
console.log(error.data$.reason); // models.AuthorizationDenialReason
|
|
767
770
|
}
|
|
768
771
|
}
|
|
769
772
|
}
|
|
@@ -791,13 +794,13 @@ run();
|
|
|
791
794
|
|
|
792
795
|
|
|
793
796
|
**Inherit from [`PaygenticError`](./src/models/errors/paygenticerror.ts)**:
|
|
794
|
-
* [`ValidationError`](./src/models/errors/validationerror.ts): Bad Request - The request could not be understood or was missing required parameters. Status code `400`. Applicable to
|
|
795
|
-
* [`RetryPaymentResponseError`](./src/models/errors/retrypaymentresponseerror.ts): The result of a payment retry. Every response status of the retry operation that is not an error envelope uses this shape. Applicable to 1 of
|
|
796
|
-
* [`DeleteCustomerConflictError`](./src/models/errors/deletecustomerconflicterror.ts): Customer cannot be deleted due to active dependencies. Status code `409`. Applicable to 1 of
|
|
797
|
-
* [`DeleteFeeConflictError`](./src/models/errors/deletefeeconflicterror.ts): Fee cannot be deleted because it has associated prices. Status code `409`. Applicable to 1 of
|
|
798
|
-
* [`UpdatePriceConflictError`](./src/models/errors/updatepriceconflicterror.ts): Price cannot be restructured because a subscription still bills it directly. Status code `409`. Applicable to 1 of
|
|
799
|
-
* [`DeletePriceConflictError`](./src/models/errors/deletepriceconflicterror.ts): Price cannot be deleted because a live plan still references it. Status code `409`. Applicable to 1 of
|
|
800
|
-
* [`UnprocessableEntityError`](./src/models/errors/unprocessableentityerror.ts): `hosted_link` only: Paygentic cannot create a payment link. The `code` field gives the cause: `INVOICE_NOT_LINKABLE_STATUS` (the invoice is not `ISSUED` or `PAYMENT_FAILED`; do not retry), `INVOICE_NO_BALANCE` (no amount is unpaid; treat the invoice as paid), or `MERCHANT_NO_PAYMENT_ACCOUNT` (the merchant has no connected payment account; retry after onboarding is complete). Status code `422`. Applicable to 1 of
|
|
797
|
+
* [`ValidationError`](./src/models/errors/validationerror.ts): Bad Request - The request could not be understood or was missing required parameters. Status code `400`. Applicable to 100 of 154 methods.*
|
|
798
|
+
* [`RetryPaymentResponseError`](./src/models/errors/retrypaymentresponseerror.ts): The result of a payment retry. Every response status of the retry operation that is not an error envelope uses this shape. Applicable to 1 of 154 methods.*
|
|
799
|
+
* [`DeleteCustomerConflictError`](./src/models/errors/deletecustomerconflicterror.ts): Customer cannot be deleted due to active dependencies. Status code `409`. Applicable to 1 of 154 methods.*
|
|
800
|
+
* [`DeleteFeeConflictError`](./src/models/errors/deletefeeconflicterror.ts): Fee cannot be deleted because it has associated prices. Status code `409`. Applicable to 1 of 154 methods.*
|
|
801
|
+
* [`UpdatePriceConflictError`](./src/models/errors/updatepriceconflicterror.ts): Price cannot be restructured because a subscription still bills it directly. Status code `409`. Applicable to 1 of 154 methods.*
|
|
802
|
+
* [`DeletePriceConflictError`](./src/models/errors/deletepriceconflicterror.ts): Price cannot be deleted because a live plan still references it. Status code `409`. Applicable to 1 of 154 methods.*
|
|
803
|
+
* [`UnprocessableEntityError`](./src/models/errors/unprocessableentityerror.ts): `hosted_link` only: Paygentic cannot create a payment link. The `code` field gives the cause: `INVOICE_NOT_LINKABLE_STATUS` (the invoice is not `ISSUED` or `PAYMENT_FAILED`; do not retry), `INVOICE_NO_BALANCE` (no amount is unpaid; treat the invoice as paid), or `MERCHANT_NO_PAYMENT_ACCOUNT` (the merchant has no connected payment account; retry after onboarding is complete). Status code `422`. Applicable to 1 of 154 methods.*
|
|
801
804
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
802
805
|
|
|
803
806
|
</details>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PaygenticCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { PaygenticError } from "../models/errors/paygenticerror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
import { Result } from "../types/fp.js";
|
|
12
|
+
/**
|
|
13
|
+
* List customer accounts
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Returns each customer's account as at today, one row per customer and currency, with a total per currency. Every figure covers all dates: there is no date window.
|
|
17
|
+
*
|
|
18
|
+
* `outstanding` is what customers owe: every invoice with status `ISSUED` or `PAYMENT_FAILED`, at the amount due printed on the invoice (subtotal and tax, each rounded to the currency's minor unit), so it is gross of tax. Revenue (`GET /v0/revenue`) is net of tax. `outstanding` splits into `awaitingPayment` (status `ISSUED`) and `paymentFailed` (status `PAYMENT_FAILED`, collection has ended); the two always add up to it, in count and amount. A credit invoice (a negative amount due) nets against what is owed and is counted in no `count`; nor is an invoice whose amount due rounds to zero. A customer with nothing counted and nothing owed has no row.
|
|
19
|
+
*
|
|
20
|
+
* Amounts are grouped by currency and never combined or converted. `totals` covers every row in the filter, not only the returned page, so the rows on one page add up to `totals` only when the page holds every row. Pages fetched in separate requests are separate reads.
|
|
21
|
+
*/
|
|
22
|
+
export declare function revenueGetRevenueAccounts(client: PaygenticCore, request: operations.GetRevenueAccountsRequest, options?: RequestOptions): APIPromise<Result<models.RevenueAccountsResponse, errors.BadRequest | errors.ErrorT | PaygenticError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
23
|
+
//# sourceMappingURL=revenueGetRevenueAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revenueGetRevenueAccounts.d.ts","sourceRoot":"","sources":["../../../src/funcs/revenueGetRevenueAccounts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,uBAAuB,EAC5B,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,MAAM,GACb,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.revenueGetRevenueAccounts = revenueGetRevenueAccounts;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
44
|
+
const security_js_1 = require("../lib/security.js");
|
|
45
|
+
const url_js_1 = require("../lib/url.js");
|
|
46
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
47
|
+
const models = __importStar(require("../models/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* List customer accounts
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Returns each customer's account as at today, one row per customer and currency, with a total per currency. Every figure covers all dates: there is no date window.
|
|
55
|
+
*
|
|
56
|
+
* `outstanding` is what customers owe: every invoice with status `ISSUED` or `PAYMENT_FAILED`, at the amount due printed on the invoice (subtotal and tax, each rounded to the currency's minor unit), so it is gross of tax. Revenue (`GET /v0/revenue`) is net of tax. `outstanding` splits into `awaitingPayment` (status `ISSUED`) and `paymentFailed` (status `PAYMENT_FAILED`, collection has ended); the two always add up to it, in count and amount. A credit invoice (a negative amount due) nets against what is owed and is counted in no `count`; nor is an invoice whose amount due rounds to zero. A customer with nothing counted and nothing owed has no row.
|
|
57
|
+
*
|
|
58
|
+
* Amounts are grouped by currency and never combined or converted. `totals` covers every row in the filter, not only the returned page, so the rows on one page add up to `totals` only when the page holds every row. Pages fetched in separate requests are separate reads.
|
|
59
|
+
*/
|
|
60
|
+
function revenueGetRevenueAccounts(client, request, options) {
|
|
61
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
62
|
+
}
|
|
63
|
+
async function $do(client, request, options) {
|
|
64
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetRevenueAccountsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65
|
+
if (!parsed.ok) {
|
|
66
|
+
return [parsed, { status: "invalid" }];
|
|
67
|
+
}
|
|
68
|
+
const payload = parsed.value;
|
|
69
|
+
const body = null;
|
|
70
|
+
const path = (0, url_js_1.pathToFunc)("/v0/revenue/accounts")();
|
|
71
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
72
|
+
"customerIds": payload.customerIds,
|
|
73
|
+
"limit": payload.limit,
|
|
74
|
+
"merchantId": payload.merchantId,
|
|
75
|
+
"offset": payload.offset,
|
|
76
|
+
});
|
|
77
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
78
|
+
Accept: "application/json",
|
|
79
|
+
}));
|
|
80
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.bearerAuth);
|
|
81
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
82
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
83
|
+
const context = {
|
|
84
|
+
options: client._options,
|
|
85
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
86
|
+
operationID: "getRevenueAccounts",
|
|
87
|
+
oAuth2Scopes: null,
|
|
88
|
+
resolvedSecurity: requestSecurity,
|
|
89
|
+
securitySource: client._options.bearerAuth,
|
|
90
|
+
retryConfig: options?.retries
|
|
91
|
+
|| client._options.retryConfig
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
94
|
+
};
|
|
95
|
+
const requestRes = client._createRequest(context, {
|
|
96
|
+
security: requestSecurity,
|
|
97
|
+
method: "GET",
|
|
98
|
+
baseURL: options?.serverURL,
|
|
99
|
+
path: path,
|
|
100
|
+
headers: headers,
|
|
101
|
+
query: query,
|
|
102
|
+
body: body,
|
|
103
|
+
userAgent: client._options.userAgent,
|
|
104
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
105
|
+
}, options);
|
|
106
|
+
if (!requestRes.ok) {
|
|
107
|
+
return [requestRes, { status: "invalid" }];
|
|
108
|
+
}
|
|
109
|
+
const req = requestRes.value;
|
|
110
|
+
const doResult = await client._do(req, {
|
|
111
|
+
context,
|
|
112
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
113
|
+
retryConfig: context.retryConfig,
|
|
114
|
+
retryCodes: context.retryCodes,
|
|
115
|
+
});
|
|
116
|
+
if (!doResult.ok) {
|
|
117
|
+
return [doResult, { status: "request-error", request: req }];
|
|
118
|
+
}
|
|
119
|
+
const response = doResult.value;
|
|
120
|
+
const responseFields = {
|
|
121
|
+
HttpMeta: { Response: response, Request: req },
|
|
122
|
+
};
|
|
123
|
+
const [result] = await M.match(M.json(200, models.RevenueAccountsResponse$inboundSchema), M.jsonErr(400, errors.BadRequest$inboundSchema), M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema), M.jsonErr(500, errors.ErrorT$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
124
|
+
if (!result.ok) {
|
|
125
|
+
return [result, { status: "complete", request: req, response }];
|
|
126
|
+
}
|
|
127
|
+
return [result, { status: "complete", request: req, response }];
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=revenueGetRevenueAccounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revenueGetRevenueAccounts.js","sourceRoot":"","sources":["../../../src/funcs/revenueGetRevenueAccounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,8DAwBC;AAzDD,sDAAsD;AACtD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,2DAA6C;AAC7C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;;;GASG;AACH,SAAgB,yBAAyB,CACvC,MAAqB,EACrB,OAA6C,EAC7C,OAAwB;IAgBxB,OAAO,IAAI,qBA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CAAC"}
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.1.0";
|
|
34
|
-
readonly sdkVersion: "0.
|
|
34
|
+
readonly sdkVersion: "0.10.0";
|
|
35
35
|
readonly genVersion: "2.879.13";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.10.0 2.879.13 0.1.0 @paygentic/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
|
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "0.1.0",
|
|
38
|
-
sdkVersion: "0.
|
|
38
|
+
sdkVersion: "0.10.0",
|
|
39
39
|
genVersion: "2.879.13",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.10.0 2.879.13 0.1.0 @paygentic/sdk",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* A number of invoices and their total amount due, gross of tax.
|
|
6
|
+
*/
|
|
7
|
+
export type AccountFigure = {
|
|
8
|
+
/**
|
|
9
|
+
* Number of invoices with an amount due above zero. A credit invoice, or one whose amount due rounds to zero, is not counted.
|
|
10
|
+
*/
|
|
11
|
+
count: number;
|
|
12
|
+
/**
|
|
13
|
+
* Total amount due in major units of the currency, in its decimal places
|
|
14
|
+
*/
|
|
15
|
+
amount: string;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const AccountFigure$inboundSchema: z.ZodType<AccountFigure, z.ZodTypeDef, unknown>;
|
|
19
|
+
export declare function accountFigureFromJSON(jsonString: string): SafeParseResult<AccountFigure, SDKValidationError>;
|
|
20
|
+
//# sourceMappingURL=accountfigure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountfigure.d.ts","sourceRoot":"","sources":["../../../src/models/accountfigure.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AccountFigure$inboundSchema = void 0;
|
|
40
|
+
exports.accountFigureFromJSON = accountFigureFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.AccountFigure$inboundSchema = z.object({
|
|
45
|
+
count: z.number().int(),
|
|
46
|
+
amount: z.string(),
|
|
47
|
+
});
|
|
48
|
+
function accountFigureFromJSON(jsonString) {
|
|
49
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountFigure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountFigure' from JSON`);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=accountfigure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountfigure.js","sourceRoot":"","sources":["../../../src/models/accountfigure.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,sDAQC;AArCD,0CAA4B;AAC5B,kDAA8C;AAkB9C,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Present on a 403 from the authorization check. Says why access was refused: the caller has no role that grants the permission, the OAuth token lacks the scope, or the caller is not a member of the organization.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AuthorizationDenialReason: {
|
|
7
|
+
readonly NoPermission: "no_permission";
|
|
8
|
+
readonly InsufficientScope: "insufficient_scope";
|
|
9
|
+
readonly NotMember: "not_member";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Present on a 403 from the authorization check. Says why access was refused: the caller has no role that grants the permission, the OAuth token lacks the scope, or the caller is not a member of the organization.
|
|
13
|
+
*/
|
|
14
|
+
export type AuthorizationDenialReason = ClosedEnum<typeof AuthorizationDenialReason>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const AuthorizationDenialReason$inboundSchema: z.ZodNativeEnum<typeof AuthorizationDenialReason>;
|
|
17
|
+
//# sourceMappingURL=authorizationdenialreason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorizationdenialreason.d.ts","sourceRoot":"","sources":["../../../src/models/authorizationdenialreason.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,aAAa,CACnE,OAAO,yBAAyB,CACS,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AuthorizationDenialReason$inboundSchema = exports.AuthorizationDenialReason = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v3"));
|
|
41
|
+
/**
|
|
42
|
+
* Present on a 403 from the authorization check. Says why access was refused: the caller has no role that grants the permission, the OAuth token lacks the scope, or the caller is not a member of the organization.
|
|
43
|
+
*/
|
|
44
|
+
exports.AuthorizationDenialReason = {
|
|
45
|
+
NoPermission: "no_permission",
|
|
46
|
+
InsufficientScope: "insufficient_scope",
|
|
47
|
+
NotMember: "not_member",
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.AuthorizationDenialReason$inboundSchema = z.nativeEnum(exports.AuthorizationDenialReason);
|
|
51
|
+
//# sourceMappingURL=authorizationdenialreason.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorizationdenialreason.js","sourceRoot":"","sources":["../../../src/models/authorizationdenialreason.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACvC,YAAY,EAAE,eAAe;IAC7B,iBAAiB,EAAE,oBAAoB;IACvC,SAAS,EAAE,YAAY;CACf,CAAC;AAQX,gBAAgB;AACH,QAAA,uCAAuC,GAEhD,CAAC,CAAC,UAAU,CAAC,iCAAyB,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import * as models from "../index.js";
|
|
2
3
|
import { PaygenticError } from "./paygenticerror.js";
|
|
3
4
|
export type ErrorTData = {
|
|
4
5
|
/**
|
|
@@ -19,6 +20,14 @@ export type ErrorTData = {
|
|
|
19
20
|
details?: {
|
|
20
21
|
[k: string]: any;
|
|
21
22
|
} | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Present on a 403 from the authorization check. Says why access was refused: the caller has no role that grants the permission, the OAuth token lacks the scope, or the caller is not a member of the organization.
|
|
25
|
+
*/
|
|
26
|
+
reason?: models.AuthorizationDenialReason | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Present on a 403 from the authorization check. The permissions the caller needs for this request.
|
|
29
|
+
*/
|
|
30
|
+
requiredPermissions?: Array<string> | undefined;
|
|
22
31
|
};
|
|
23
32
|
export declare class ErrorT extends PaygenticError {
|
|
24
33
|
/**
|
|
@@ -35,6 +44,14 @@ export declare class ErrorT extends PaygenticError {
|
|
|
35
44
|
details?: {
|
|
36
45
|
[k: string]: any;
|
|
37
46
|
} | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Present on a 403 from the authorization check. Says why access was refused: the caller has no role that grants the permission, the OAuth token lacks the scope, or the caller is not a member of the organization.
|
|
49
|
+
*/
|
|
50
|
+
reason?: models.AuthorizationDenialReason | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Present on a 403 from the authorization check. The permissions the caller needs for this request.
|
|
53
|
+
*/
|
|
54
|
+
requiredPermissions?: Array<string> | undefined;
|
|
38
55
|
/** The original data that was passed to this error instance. */
|
|
39
56
|
data$: ErrorTData;
|
|
40
57
|
constructor(err: ErrorTData, httpMeta: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/error.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/error.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,yBAAyB,GAAG,SAAS,CAAC;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,qBAAa,MAAO,SAAQ,cAAc;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,yBAAyB,GAAG,SAAS,CAAC;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAEhD,gEAAgE;IAChE,KAAK,EAAE,UAAU,CAAC;gBAGhB,GAAG,EAAE,UAAU,EACf,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAenE;AAED,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAkBtE,CAAC"}
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ErrorT$inboundSchema = exports.ErrorT = void 0;
|
|
40
40
|
const z = __importStar(require("zod/v3"));
|
|
41
|
+
const models = __importStar(require("../index.js"));
|
|
41
42
|
const paygenticerror_js_1 = require("./paygenticerror.js");
|
|
42
43
|
class ErrorT extends paygenticerror_js_1.PaygenticError {
|
|
43
44
|
constructor(err, httpMeta) {
|
|
@@ -50,6 +51,11 @@ class ErrorT extends paygenticerror_js_1.PaygenticError {
|
|
|
50
51
|
this.code = err.code;
|
|
51
52
|
if (err.details != null)
|
|
52
53
|
this.details = err.details;
|
|
54
|
+
if (err.reason != null)
|
|
55
|
+
this.reason = err.reason;
|
|
56
|
+
if (err.requiredPermissions != null) {
|
|
57
|
+
this.requiredPermissions = err.requiredPermissions;
|
|
58
|
+
}
|
|
53
59
|
this.name = "ErrorT";
|
|
54
60
|
}
|
|
55
61
|
}
|
|
@@ -61,6 +67,8 @@ exports.ErrorT$inboundSchema = z
|
|
|
61
67
|
message: z.string(),
|
|
62
68
|
code: z.string().optional(),
|
|
63
69
|
details: z.record(z.any()).optional(),
|
|
70
|
+
reason: models.AuthorizationDenialReason$inboundSchema.optional(),
|
|
71
|
+
requiredPermissions: z.array(z.string()).optional(),
|
|
64
72
|
request$: z.instanceof(Request),
|
|
65
73
|
response$: z.instanceof(Response),
|
|
66
74
|
body$: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../src/models/errors/error.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,2DAAqD;
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../src/models/errors/error.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,oDAAsC;AACtC,2DAAqD;AA6BrD,MAAa,MAAO,SAAQ,kCAAc;IAyBxC,YACE,GAAe,EACf,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI;YAAE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QAC9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C,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -23,6 +23,14 @@ export type UnprocessableEntityErrorData = {
|
|
|
23
23
|
details?: {
|
|
24
24
|
[k: string]: any;
|
|
25
25
|
} | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Present on a 403 from the authorization check. Says why access was refused: the caller has no role that grants the permission, the OAuth token lacks the scope, or the caller is not a member of the organization.
|
|
28
|
+
*/
|
|
29
|
+
reason?: models.AuthorizationDenialReason | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Present on a 403 from the authorization check. The permissions the caller needs for this request.
|
|
32
|
+
*/
|
|
33
|
+
requiredPermissions?: Array<string> | undefined;
|
|
26
34
|
};
|
|
27
35
|
/**
|
|
28
36
|
* `hosted_link` only: Paygentic cannot create a payment link. The `code` field gives the cause: `INVOICE_NOT_LINKABLE_STATUS` (the invoice is not `ISSUED` or `PAYMENT_FAILED`; do not retry), `INVOICE_NO_BALANCE` (no amount is unpaid; treat the invoice as paid), or `MERCHANT_NO_PAYMENT_ACCOUNT` (the merchant has no connected payment account; retry after onboarding is complete).
|
|
@@ -42,6 +50,14 @@ export declare class UnprocessableEntityError extends PaygenticError {
|
|
|
42
50
|
details?: {
|
|
43
51
|
[k: string]: any;
|
|
44
52
|
} | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Present on a 403 from the authorization check. Says why access was refused: the caller has no role that grants the permission, the OAuth token lacks the scope, or the caller is not a member of the organization.
|
|
55
|
+
*/
|
|
56
|
+
reason?: models.AuthorizationDenialReason | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Present on a 403 from the authorization check. The permissions the caller needs for this request.
|
|
59
|
+
*/
|
|
60
|
+
requiredPermissions?: Array<string> | undefined;
|
|
45
61
|
/** The original data that was passed to this error instance. */
|
|
46
62
|
data$: UnprocessableEntityErrorData;
|
|
47
63
|
constructor(err: UnprocessableEntityErrorData, httpMeta: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recordinvoicepayment.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/recordinvoicepayment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,2BAA2B,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"recordinvoicepayment.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/recordinvoicepayment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,2BAA2B,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,yBAAyB,GAAG,SAAS,CAAC;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,cAAc;IAC1D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,2BAA2B,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,yBAAyB,GAAG,SAAS,CAAC;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAEhD,gEAAgE;IAChE,KAAK,EAAE,4BAA4B,CAAC;gBAGlC,GAAG,EAAE,4BAA4B,EACjC,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAenE;AAED,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBL,CAAC"}
|
|
@@ -52,6 +52,11 @@ class UnprocessableEntityError extends paygenticerror_js_1.PaygenticError {
|
|
|
52
52
|
this.code = err.code;
|
|
53
53
|
if (err.details != null)
|
|
54
54
|
this.details = err.details;
|
|
55
|
+
if (err.reason != null)
|
|
56
|
+
this.reason = err.reason;
|
|
57
|
+
if (err.requiredPermissions != null) {
|
|
58
|
+
this.requiredPermissions = err.requiredPermissions;
|
|
59
|
+
}
|
|
55
60
|
this.name = "UnprocessableEntityError";
|
|
56
61
|
}
|
|
57
62
|
}
|
|
@@ -62,6 +67,8 @@ exports.UnprocessableEntityError$inboundSchema = z.object({
|
|
|
62
67
|
message: z.string(),
|
|
63
68
|
code: models.InvoicePaymentLinkErrorCode$inboundSchema,
|
|
64
69
|
details: z.record(z.any()).optional(),
|
|
70
|
+
reason: models.AuthorizationDenialReason$inboundSchema.optional(),
|
|
71
|
+
requiredPermissions: z.array(z.string()).optional(),
|
|
65
72
|
request$: z.instanceof(Request),
|
|
66
73
|
response$: z.instanceof(Response),
|
|
67
74
|
body$: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recordinvoicepayment.js","sourceRoot":"","sources":["../../../../src/models/errors/recordinvoicepayment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,oDAAsC;AACtC,2DAAqD;
|
|
1
|
+
{"version":3,"file":"recordinvoicepayment.js","sourceRoot":"","sources":["../../../../src/models/errors/recordinvoicepayment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,oDAAsC;AACtC,2DAAqD;AAgCrD;;GAEG;AACH,MAAa,wBAAyB,SAAQ,kCAAc;IAyB1D,YACE,GAAiC,EACjC,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,GAAG,CAAC,OAAO,IAAI,IAAI;YAAE,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QACpD,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI;YAAE,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACjD,IAAI,GAAG,CAAC,mBAAmB,IAAI,IAAI,EAAE,CAAC;YACpC,IAAI,CAAC,mBAAmB,GAAG,GAAG,CAAC,mBAAmB,CAAC;QACrD,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IACzC,CAAC;CACF;AA1CD,4DA0CC;AAED,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,MAAM,CAAC,yCAAyC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,MAAM,CAAC,uCAAuC,CAAC,QAAQ,EAAE;IACjE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,wBAAwB,CAAC,CAAC,EAAE;QACrC,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export * from "./accountfigure.js";
|
|
1
2
|
export * from "./address.js";
|
|
2
3
|
export * from "./approval.js";
|
|
3
4
|
export * from "./approvallist.js";
|
|
5
|
+
export * from "./authorizationdenialreason.js";
|
|
4
6
|
export * from "./billablemetric.js";
|
|
5
7
|
export * from "./billingschedule.js";
|
|
6
8
|
export * from "./booleanentitlementdetail.js";
|
|
@@ -56,9 +58,23 @@ export * from "./invoicerefundlist.js";
|
|
|
56
58
|
export * from "./invoicesummary.js";
|
|
57
59
|
export * from "./issueentitlementrequest.js";
|
|
58
60
|
export * from "./item.js";
|
|
61
|
+
export * from "./linecalculationcontribution.js";
|
|
62
|
+
export * from "./linecalculationgiven.js";
|
|
63
|
+
export * from "./linecalculationinputprice.js";
|
|
64
|
+
export * from "./linecalculationinputs.js";
|
|
65
|
+
export * from "./linecalculationnotapplied.js";
|
|
66
|
+
export * from "./linecalculationperiod.js";
|
|
67
|
+
export * from "./linecalculationprecision.js";
|
|
68
|
+
export * from "./linecalculationpriceband.js";
|
|
69
|
+
export * from "./linecalculationpricefn.js";
|
|
70
|
+
export * from "./linecalculationresult.js";
|
|
71
|
+
export * from "./linecalculationsource.js";
|
|
72
|
+
export * from "./linecalculationstep.js";
|
|
73
|
+
export * from "./linecalculationvalue.js";
|
|
59
74
|
export * from "./lineitem.js";
|
|
60
75
|
export * from "./lineitemsresponse.js";
|
|
61
76
|
export * from "./lineitemssummary.js";
|
|
77
|
+
export * from "./lineprovenance.js";
|
|
62
78
|
export * from "./mappingcapabilities.js";
|
|
63
79
|
export * from "./merchantintegration.js";
|
|
64
80
|
export * from "./merchantintegrationprovider.js";
|
|
@@ -80,6 +96,7 @@ export * from "./orderbillingschedule.js";
|
|
|
80
96
|
export * from "./orderlineitem.js";
|
|
81
97
|
export * from "./orderlist.js";
|
|
82
98
|
export * from "./outofbandpaymentresult.js";
|
|
99
|
+
export * from "./outstandingblock.js";
|
|
83
100
|
export * from "./payment.js";
|
|
84
101
|
export * from "./paymentmethod.js";
|
|
85
102
|
export * from "./paymentsession.js";
|
|
@@ -113,6 +130,9 @@ export * from "./replacescheduleintervalsrequest.js";
|
|
|
113
130
|
export * from "./resolveditem.js";
|
|
114
131
|
export * from "./retrypaymenterror.js";
|
|
115
132
|
export * from "./retrypaymentresponse.js";
|
|
133
|
+
export * from "./revenueaccountrow.js";
|
|
134
|
+
export * from "./revenueaccountsresponse.js";
|
|
135
|
+
export * from "./revenueaccounttotal.js";
|
|
116
136
|
export * from "./revenuesummaryresponse.js";
|
|
117
137
|
export * from "./revenuetrendbucket.js";
|
|
118
138
|
export * from "./rulecondition.js";
|