mollie-api-typescript 1.10.2 → 1.12.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/dist/commonjs/funcs/accountsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/accountsList.js +3 -3
- package/dist/commonjs/funcs/accountsList.js.map +1 -1
- package/dist/commonjs/funcs/accountsListAccounts.d.ts.map +1 -1
- package/dist/commonjs/funcs/accountsListAccounts.js +3 -3
- package/dist/commonjs/funcs/accountsListAccounts.js.map +1 -1
- package/dist/commonjs/funcs/balanceTransfersList.d.ts.map +1 -1
- package/dist/commonjs/funcs/balanceTransfersList.js +4 -3
- package/dist/commonjs/funcs/balanceTransfersList.js.map +1 -1
- package/dist/commonjs/funcs/balancesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/balancesList.js +4 -3
- package/dist/commonjs/funcs/balancesList.js.map +1 -1
- package/dist/commonjs/funcs/balancesListTransactions.d.ts.map +1 -1
- package/dist/commonjs/funcs/balancesListTransactions.js +4 -3
- package/dist/commonjs/funcs/balancesListTransactions.js.map +1 -1
- package/dist/commonjs/funcs/capturesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/capturesList.js +4 -3
- package/dist/commonjs/funcs/capturesList.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksAll.d.ts.map +1 -1
- package/dist/commonjs/funcs/chargebacksAll.js +4 -3
- package/dist/commonjs/funcs/chargebacksAll.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksList.d.ts.map +1 -1
- package/dist/commonjs/funcs/chargebacksList.js +4 -3
- package/dist/commonjs/funcs/chargebacksList.js.map +1 -1
- package/dist/commonjs/funcs/clientsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/clientsList.js +4 -3
- package/dist/commonjs/funcs/clientsList.js.map +1 -1
- package/dist/commonjs/funcs/customersList.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersList.js +4 -3
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/customersListPayments.d.ts.map +1 -1
- package/dist/commonjs/funcs/customersListPayments.js +4 -3
- package/dist/commonjs/funcs/customersListPayments.js.map +1 -1
- package/dist/commonjs/funcs/invoicesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/invoicesList.js +4 -3
- package/dist/commonjs/funcs/invoicesList.js.map +1 -1
- package/dist/commonjs/funcs/mandatesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/mandatesList.js +4 -3
- package/dist/commonjs/funcs/mandatesList.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksList.d.ts.map +1 -1
- package/dist/commonjs/funcs/paymentLinksList.js +4 -3
- package/dist/commonjs/funcs/paymentLinksList.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksListPayments.d.ts.map +1 -1
- package/dist/commonjs/funcs/paymentLinksListPayments.js +4 -3
- package/dist/commonjs/funcs/paymentLinksListPayments.js.map +1 -1
- package/dist/commonjs/funcs/paymentsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/paymentsList.js +4 -3
- package/dist/commonjs/funcs/paymentsList.js.map +1 -1
- package/dist/commonjs/funcs/payoutsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/payoutsList.js +4 -3
- package/dist/commonjs/funcs/payoutsList.js.map +1 -1
- package/dist/commonjs/funcs/profilesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/profilesList.js +4 -3
- package/dist/commonjs/funcs/profilesList.js.map +1 -1
- package/dist/commonjs/funcs/refundsAll.d.ts.map +1 -1
- package/dist/commonjs/funcs/refundsAll.js +4 -3
- package/dist/commonjs/funcs/refundsAll.js.map +1 -1
- package/dist/commonjs/funcs/refundsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/refundsList.js +4 -3
- package/dist/commonjs/funcs/refundsList.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesList.js +4 -3
- package/dist/commonjs/funcs/salesInvoicesList.js.map +1 -1
- package/dist/commonjs/funcs/settlementsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/settlementsList.js +4 -3
- package/dist/commonjs/funcs/settlementsList.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListCaptures.d.ts.map +1 -1
- package/dist/commonjs/funcs/settlementsListCaptures.js +4 -3
- package/dist/commonjs/funcs/settlementsListCaptures.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListChargebacks.d.ts.map +1 -1
- package/dist/commonjs/funcs/settlementsListChargebacks.js +4 -3
- package/dist/commonjs/funcs/settlementsListChargebacks.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListPayments.d.ts.map +1 -1
- package/dist/commonjs/funcs/settlementsListPayments.js +4 -3
- package/dist/commonjs/funcs/settlementsListPayments.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.d.ts.map +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js +4 -3
- package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.js +4 -3
- package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js +4 -3
- package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsListPayments.d.ts.map +1 -1
- package/dist/commonjs/funcs/subscriptionsListPayments.js +4 -3
- package/dist/commonjs/funcs/subscriptionsListPayments.js.map +1 -1
- package/dist/commonjs/funcs/terminalsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/terminalsList.js +4 -3
- package/dist/commonjs/funcs/terminalsList.js.map +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts.map +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.js +4 -3
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.js.map +1 -1
- package/dist/commonjs/funcs/webhooksList.d.ts.map +1 -1
- package/dist/commonjs/funcs/webhooksList.js +4 -3
- package/dist/commonjs/funcs/webhooksList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.js +12 -12
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +3 -3
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/matchers.js +3 -3
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/primitives.d.ts +1 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -1
- package/dist/commonjs/lib/primitives.js +18 -0
- package/dist/commonjs/lib/primitives.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +37 -12
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/entitypermission.d.ts +2 -2
- package/dist/commonjs/models/entitypermission.d.ts.map +1 -1
- package/dist/commonjs/models/entitypermission.js +2 -2
- package/dist/commonjs/models/entitypermission.js.map +1 -1
- package/dist/commonjs/models/listentitypermission.d.ts +1 -1
- package/dist/commonjs/models/listentitypermission.d.ts.map +1 -1
- package/dist/commonjs/models/listentitypermission.js +1 -1
- package/dist/commonjs/models/listentitypermission.js.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.d.ts +4 -0
- package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.js +1 -0
- package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +4 -0
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.js +1 -0
- package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/operations/listpermissions.d.ts +2 -2
- package/dist/commonjs/models/operations/listpermissions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpermissions.js +2 -2
- package/dist/commonjs/models/operations/listpermissions.js.map +1 -1
- package/dist/commonjs/models/paymentresponse.d.ts +4 -0
- package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentresponse.js +1 -0
- package/dist/commonjs/models/paymentresponse.js.map +1 -1
- package/dist/esm/funcs/accountsList.d.ts.map +1 -1
- package/dist/esm/funcs/accountsList.js +3 -3
- package/dist/esm/funcs/accountsList.js.map +1 -1
- package/dist/esm/funcs/accountsListAccounts.d.ts.map +1 -1
- package/dist/esm/funcs/accountsListAccounts.js +3 -3
- package/dist/esm/funcs/accountsListAccounts.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersList.d.ts.map +1 -1
- package/dist/esm/funcs/balanceTransfersList.js +4 -3
- package/dist/esm/funcs/balanceTransfersList.js.map +1 -1
- package/dist/esm/funcs/balancesList.d.ts.map +1 -1
- package/dist/esm/funcs/balancesList.js +4 -3
- package/dist/esm/funcs/balancesList.js.map +1 -1
- package/dist/esm/funcs/balancesListTransactions.d.ts.map +1 -1
- package/dist/esm/funcs/balancesListTransactions.js +4 -3
- package/dist/esm/funcs/balancesListTransactions.js.map +1 -1
- package/dist/esm/funcs/capturesList.d.ts.map +1 -1
- package/dist/esm/funcs/capturesList.js +4 -3
- package/dist/esm/funcs/capturesList.js.map +1 -1
- package/dist/esm/funcs/chargebacksAll.d.ts.map +1 -1
- package/dist/esm/funcs/chargebacksAll.js +4 -3
- package/dist/esm/funcs/chargebacksAll.js.map +1 -1
- package/dist/esm/funcs/chargebacksList.d.ts.map +1 -1
- package/dist/esm/funcs/chargebacksList.js +4 -3
- package/dist/esm/funcs/chargebacksList.js.map +1 -1
- package/dist/esm/funcs/clientsList.d.ts.map +1 -1
- package/dist/esm/funcs/clientsList.js +4 -3
- package/dist/esm/funcs/clientsList.js.map +1 -1
- package/dist/esm/funcs/customersList.d.ts.map +1 -1
- package/dist/esm/funcs/customersList.js +4 -3
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/customersListPayments.d.ts.map +1 -1
- package/dist/esm/funcs/customersListPayments.js +4 -3
- package/dist/esm/funcs/customersListPayments.js.map +1 -1
- package/dist/esm/funcs/invoicesList.d.ts.map +1 -1
- package/dist/esm/funcs/invoicesList.js +4 -3
- package/dist/esm/funcs/invoicesList.js.map +1 -1
- package/dist/esm/funcs/mandatesList.d.ts.map +1 -1
- package/dist/esm/funcs/mandatesList.js +4 -3
- package/dist/esm/funcs/mandatesList.js.map +1 -1
- package/dist/esm/funcs/paymentLinksList.d.ts.map +1 -1
- package/dist/esm/funcs/paymentLinksList.js +4 -3
- package/dist/esm/funcs/paymentLinksList.js.map +1 -1
- package/dist/esm/funcs/paymentLinksListPayments.d.ts.map +1 -1
- package/dist/esm/funcs/paymentLinksListPayments.js +4 -3
- package/dist/esm/funcs/paymentLinksListPayments.js.map +1 -1
- package/dist/esm/funcs/paymentsList.d.ts.map +1 -1
- package/dist/esm/funcs/paymentsList.js +4 -3
- package/dist/esm/funcs/paymentsList.js.map +1 -1
- package/dist/esm/funcs/payoutsList.d.ts.map +1 -1
- package/dist/esm/funcs/payoutsList.js +4 -3
- package/dist/esm/funcs/payoutsList.js.map +1 -1
- package/dist/esm/funcs/profilesList.d.ts.map +1 -1
- package/dist/esm/funcs/profilesList.js +4 -3
- package/dist/esm/funcs/profilesList.js.map +1 -1
- package/dist/esm/funcs/refundsAll.d.ts.map +1 -1
- package/dist/esm/funcs/refundsAll.js +4 -3
- package/dist/esm/funcs/refundsAll.js.map +1 -1
- package/dist/esm/funcs/refundsList.d.ts.map +1 -1
- package/dist/esm/funcs/refundsList.js +4 -3
- package/dist/esm/funcs/refundsList.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesList.d.ts.map +1 -1
- package/dist/esm/funcs/salesInvoicesList.js +4 -3
- package/dist/esm/funcs/salesInvoicesList.js.map +1 -1
- package/dist/esm/funcs/settlementsList.d.ts.map +1 -1
- package/dist/esm/funcs/settlementsList.js +4 -3
- package/dist/esm/funcs/settlementsList.js.map +1 -1
- package/dist/esm/funcs/settlementsListCaptures.d.ts.map +1 -1
- package/dist/esm/funcs/settlementsListCaptures.js +4 -3
- package/dist/esm/funcs/settlementsListCaptures.js.map +1 -1
- package/dist/esm/funcs/settlementsListChargebacks.d.ts.map +1 -1
- package/dist/esm/funcs/settlementsListChargebacks.js +4 -3
- package/dist/esm/funcs/settlementsListChargebacks.js.map +1 -1
- package/dist/esm/funcs/settlementsListPayments.d.ts.map +1 -1
- package/dist/esm/funcs/settlementsListPayments.js +4 -3
- package/dist/esm/funcs/settlementsListPayments.js.map +1 -1
- package/dist/esm/funcs/settlementsListRefunds.d.ts.map +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js +4 -3
- package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.js +4 -3
- package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
- package/dist/esm/funcs/subscriptionsList.d.ts.map +1 -1
- package/dist/esm/funcs/subscriptionsList.js +4 -3
- package/dist/esm/funcs/subscriptionsList.js.map +1 -1
- package/dist/esm/funcs/subscriptionsListPayments.d.ts.map +1 -1
- package/dist/esm/funcs/subscriptionsListPayments.js +4 -3
- package/dist/esm/funcs/subscriptionsListPayments.js.map +1 -1
- package/dist/esm/funcs/terminalsList.d.ts.map +1 -1
- package/dist/esm/funcs/terminalsList.js +4 -3
- package/dist/esm/funcs/terminalsList.js.map +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts.map +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersList.js +4 -3
- package/dist/esm/funcs/unmatchedCreditTransfersList.js.map +1 -1
- package/dist/esm/funcs/webhooksList.d.ts.map +1 -1
- package/dist/esm/funcs/webhooksList.js +4 -3
- package/dist/esm/funcs/webhooksList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.js +1 -1
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +3 -3
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/matchers.js +1 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/primitives.d.ts +1 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -1
- package/dist/esm/lib/primitives.js +17 -0
- package/dist/esm/lib/primitives.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +37 -12
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/entitypermission.d.ts +2 -2
- package/dist/esm/models/entitypermission.d.ts.map +1 -1
- package/dist/esm/models/entitypermission.js +2 -2
- package/dist/esm/models/entitypermission.js.map +1 -1
- package/dist/esm/models/listentitypermission.d.ts +1 -1
- package/dist/esm/models/listentitypermission.d.ts.map +1 -1
- package/dist/esm/models/listentitypermission.js +1 -1
- package/dist/esm/models/listentitypermission.js.map +1 -1
- package/dist/esm/models/listpaymentresponse.d.ts +4 -0
- package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listpaymentresponse.js +1 -0
- package/dist/esm/models/listpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.d.ts +4 -0
- package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.js +1 -0
- package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/esm/models/operations/listpermissions.d.ts +2 -2
- package/dist/esm/models/operations/listpermissions.d.ts.map +1 -1
- package/dist/esm/models/operations/listpermissions.js +2 -2
- package/dist/esm/models/operations/listpermissions.js.map +1 -1
- package/dist/esm/models/paymentresponse.d.ts +4 -0
- package/dist/esm/models/paymentresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentresponse.js +1 -0
- package/dist/esm/models/paymentresponse.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accountsList.ts +7 -3
- package/src/funcs/accountsListAccounts.ts +7 -3
- package/src/funcs/balanceTransfersList.ts +5 -3
- package/src/funcs/balancesList.ts +5 -3
- package/src/funcs/balancesListTransactions.ts +5 -3
- package/src/funcs/capturesList.ts +5 -3
- package/src/funcs/chargebacksAll.ts +5 -3
- package/src/funcs/chargebacksList.ts +5 -3
- package/src/funcs/clientsList.ts +5 -3
- package/src/funcs/customersList.ts +5 -3
- package/src/funcs/customersListPayments.ts +5 -3
- package/src/funcs/invoicesList.ts +5 -3
- package/src/funcs/mandatesList.ts +5 -3
- package/src/funcs/paymentLinksList.ts +5 -3
- package/src/funcs/paymentLinksListPayments.ts +5 -3
- package/src/funcs/paymentsList.ts +5 -3
- package/src/funcs/payoutsList.ts +5 -3
- package/src/funcs/profilesList.ts +5 -3
- package/src/funcs/refundsAll.ts +5 -3
- package/src/funcs/refundsList.ts +5 -3
- package/src/funcs/salesInvoicesList.ts +5 -3
- package/src/funcs/settlementsList.ts +5 -3
- package/src/funcs/settlementsListCaptures.ts +5 -3
- package/src/funcs/settlementsListChargebacks.ts +5 -3
- package/src/funcs/settlementsListPayments.ts +5 -3
- package/src/funcs/settlementsListRefunds.ts +5 -3
- package/src/funcs/subscriptionsAll.ts +5 -3
- package/src/funcs/subscriptionsList.ts +5 -3
- package/src/funcs/subscriptionsListPayments.ts +5 -3
- package/src/funcs/terminalsList.ts +5 -3
- package/src/funcs/unmatchedCreditTransfersList.ts +5 -3
- package/src/funcs/webhooksList.ts +5 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/env.ts +7 -3
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/sdks.ts +41 -13
- package/src/models/entitypermission.ts +4 -4
- package/src/models/listentitypermission.ts +2 -2
- package/src/models/listpaymentresponse.ts +5 -0
- package/src/models/listsettlementpaymentresponse.ts +5 -0
- package/src/models/operations/listpermissions.ts +4 -4
- package/src/models/paymentresponse.ts +5 -0
- package/dist/commonjs/lib/dlv.d.ts +0 -14
- package/dist/commonjs/lib/dlv.d.ts.map +0 -1
- package/dist/commonjs/lib/dlv.js +0 -50
- package/dist/commonjs/lib/dlv.js.map +0 -1
- package/dist/commonjs/lib/is-plain-object.d.ts +0 -2
- package/dist/commonjs/lib/is-plain-object.d.ts.map +0 -1
- package/dist/commonjs/lib/is-plain-object.js +0 -42
- package/dist/commonjs/lib/is-plain-object.js.map +0 -1
- package/dist/esm/lib/dlv.d.ts +0 -14
- package/dist/esm/lib/dlv.d.ts.map +0 -1
- package/dist/esm/lib/dlv.js +0 -47
- package/dist/esm/lib/dlv.js.map +0 -1
- package/dist/esm/lib/is-plain-object.d.ts +0 -2
- package/dist/esm/lib/is-plain-object.d.ts.map +0 -1
- package/dist/esm/lib/is-plain-object.js +0 -39
- package/dist/esm/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -54
- package/src/lib/is-plain-object.ts +0 -44
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -238,10 +237,13 @@ async function $do(
|
|
|
238
237
|
>;
|
|
239
238
|
"~next"?: { url: string };
|
|
240
239
|
} => {
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
const nextURLValue =
|
|
241
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
242
|
+
.next?.href;
|
|
243
|
+
if (typeof nextURLValue !== "string") {
|
|
243
244
|
return { next: () => null };
|
|
244
245
|
}
|
|
246
|
+
let nextURL = nextURLValue;
|
|
245
247
|
|
|
246
248
|
try {
|
|
247
249
|
if (nextURL.startsWith("/")) {
|
package/src/funcs/refundsAll.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -242,10 +241,13 @@ async function $do(
|
|
|
242
241
|
>;
|
|
243
242
|
"~next"?: { url: string };
|
|
244
243
|
} => {
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
const nextURLValue =
|
|
245
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
246
|
+
.next?.href;
|
|
247
|
+
if (typeof nextURLValue !== "string") {
|
|
247
248
|
return { next: () => null };
|
|
248
249
|
}
|
|
250
|
+
let nextURL = nextURLValue;
|
|
249
251
|
|
|
250
252
|
try {
|
|
251
253
|
if (nextURL.startsWith("/")) {
|
package/src/funcs/refundsList.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -245,10 +244,13 @@ async function $do(
|
|
|
245
244
|
>;
|
|
246
245
|
"~next"?: { url: string };
|
|
247
246
|
} => {
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
const nextURLValue =
|
|
248
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
249
|
+
.next?.href;
|
|
250
|
+
if (typeof nextURLValue !== "string") {
|
|
250
251
|
return { next: () => null };
|
|
251
252
|
}
|
|
253
|
+
let nextURL = nextURLValue;
|
|
252
254
|
|
|
253
255
|
try {
|
|
254
256
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -245,10 +244,13 @@ async function $do(
|
|
|
245
244
|
>;
|
|
246
245
|
"~next"?: { url: string };
|
|
247
246
|
} => {
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
const nextURLValue =
|
|
248
|
+
(responseData as { _links?: { next: { href?: unknown } | null } })._links
|
|
249
|
+
?.next?.href;
|
|
250
|
+
if (typeof nextURLValue !== "string") {
|
|
250
251
|
return { next: () => null };
|
|
251
252
|
}
|
|
253
|
+
let nextURL = nextURLValue;
|
|
252
254
|
|
|
253
255
|
try {
|
|
254
256
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -242,10 +241,13 @@ async function $do(
|
|
|
242
241
|
>;
|
|
243
242
|
"~next"?: { url: string };
|
|
244
243
|
} => {
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
const nextURLValue =
|
|
245
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
246
|
+
.next?.href;
|
|
247
|
+
if (typeof nextURLValue !== "string") {
|
|
247
248
|
return { next: () => null };
|
|
248
249
|
}
|
|
250
|
+
let nextURL = nextURLValue;
|
|
249
251
|
|
|
250
252
|
try {
|
|
251
253
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -245,10 +244,13 @@ async function $do(
|
|
|
245
244
|
>;
|
|
246
245
|
"~next"?: { url: string };
|
|
247
246
|
} => {
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
const nextURLValue =
|
|
248
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
249
|
+
.next?.href;
|
|
250
|
+
if (typeof nextURLValue !== "string") {
|
|
250
251
|
return { next: () => null };
|
|
251
252
|
}
|
|
253
|
+
let nextURL = nextURLValue;
|
|
252
254
|
|
|
253
255
|
try {
|
|
254
256
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -246,10 +245,13 @@ async function $do(
|
|
|
246
245
|
>;
|
|
247
246
|
"~next"?: { url: string };
|
|
248
247
|
} => {
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
const nextURLValue =
|
|
249
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
250
|
+
.next?.href;
|
|
251
|
+
if (typeof nextURLValue !== "string") {
|
|
251
252
|
return { next: () => null };
|
|
252
253
|
}
|
|
254
|
+
let nextURL = nextURLValue;
|
|
253
255
|
|
|
254
256
|
try {
|
|
255
257
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -249,10 +248,13 @@ async function $do(
|
|
|
249
248
|
>;
|
|
250
249
|
"~next"?: { url: string };
|
|
251
250
|
} => {
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
const nextURLValue =
|
|
252
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
253
|
+
.next?.href;
|
|
254
|
+
if (typeof nextURLValue !== "string") {
|
|
254
255
|
return { next: () => null };
|
|
255
256
|
}
|
|
257
|
+
let nextURL = nextURLValue;
|
|
256
258
|
|
|
257
259
|
try {
|
|
258
260
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -245,10 +244,13 @@ async function $do(
|
|
|
245
244
|
>;
|
|
246
245
|
"~next"?: { url: string };
|
|
247
246
|
} => {
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
const nextURLValue =
|
|
248
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
249
|
+
.next?.href;
|
|
250
|
+
if (typeof nextURLValue !== "string") {
|
|
250
251
|
return { next: () => null };
|
|
251
252
|
}
|
|
253
|
+
let nextURL = nextURLValue;
|
|
252
254
|
|
|
253
255
|
try {
|
|
254
256
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -242,10 +241,13 @@ async function $do(
|
|
|
242
241
|
>;
|
|
243
242
|
"~next"?: { url: string };
|
|
244
243
|
} => {
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
const nextURLValue =
|
|
245
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
246
|
+
.next?.href;
|
|
247
|
+
if (typeof nextURLValue !== "string") {
|
|
247
248
|
return { next: () => null };
|
|
248
249
|
}
|
|
250
|
+
let nextURL = nextURLValue;
|
|
249
251
|
|
|
250
252
|
try {
|
|
251
253
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -245,10 +244,13 @@ async function $do(
|
|
|
245
244
|
>;
|
|
246
245
|
"~next"?: { url: string };
|
|
247
246
|
} => {
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
const nextURLValue =
|
|
248
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
249
|
+
.next?.href;
|
|
250
|
+
if (typeof nextURLValue !== "string") {
|
|
250
251
|
return { next: () => null };
|
|
251
252
|
}
|
|
253
|
+
let nextURL = nextURLValue;
|
|
252
254
|
|
|
253
255
|
try {
|
|
254
256
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -253,10 +252,13 @@ async function $do(
|
|
|
253
252
|
>;
|
|
254
253
|
"~next"?: { url: string };
|
|
255
254
|
} => {
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
const nextURLValue =
|
|
256
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
257
|
+
.next?.href;
|
|
258
|
+
if (typeof nextURLValue !== "string") {
|
|
258
259
|
return { next: () => null };
|
|
259
260
|
}
|
|
261
|
+
let nextURL = nextURLValue;
|
|
260
262
|
|
|
261
263
|
try {
|
|
262
264
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -240,10 +239,13 @@ async function $do(
|
|
|
240
239
|
>;
|
|
241
240
|
"~next"?: { url: string };
|
|
242
241
|
} => {
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
const nextURLValue =
|
|
243
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
244
|
+
.next?.href;
|
|
245
|
+
if (typeof nextURLValue !== "string") {
|
|
245
246
|
return { next: () => null };
|
|
246
247
|
}
|
|
248
|
+
let nextURL = nextURLValue;
|
|
247
249
|
|
|
248
250
|
try {
|
|
249
251
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -243,10 +242,13 @@ async function $do(
|
|
|
243
242
|
>;
|
|
244
243
|
"~next"?: { url: string };
|
|
245
244
|
} => {
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
const nextURLValue =
|
|
246
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
247
|
+
.next?.href;
|
|
248
|
+
if (typeof nextURLValue !== "string") {
|
|
248
249
|
return { next: () => null };
|
|
249
250
|
}
|
|
251
|
+
let nextURL = nextURLValue;
|
|
250
252
|
|
|
251
253
|
try {
|
|
252
254
|
if (nextURL.startsWith("/")) {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientCore } from "../core.js";
|
|
7
|
-
import { dlv } from "../lib/dlv.js";
|
|
8
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
9
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
10
9
|
import * as M from "../lib/matchers.js";
|
|
@@ -239,10 +238,13 @@ async function $do(
|
|
|
239
238
|
>;
|
|
240
239
|
"~next"?: { url: string };
|
|
241
240
|
} => {
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
const nextURLValue =
|
|
242
|
+
(responseData as { _links: { next: { href?: unknown } | null } })._links
|
|
243
|
+
.next?.href;
|
|
244
|
+
if (typeof nextURLValue !== "string") {
|
|
244
245
|
return { next: () => null };
|
|
245
246
|
}
|
|
247
|
+
let nextURL = nextURLValue;
|
|
246
248
|
|
|
247
249
|
try {
|
|
248
250
|
if (nextURL.startsWith("/")) {
|
package/src/lib/config.ts
CHANGED
|
@@ -78,8 +78,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
78
78
|
export const SDK_METADATA = {
|
|
79
79
|
language: "typescript",
|
|
80
80
|
openapiDocVersion: "1.0.0",
|
|
81
|
-
sdkVersion: "1.
|
|
82
|
-
genVersion: "2.
|
|
81
|
+
sdkVersion: "1.12.0",
|
|
82
|
+
genVersion: "2.903.5",
|
|
83
83
|
userAgent:
|
|
84
|
-
"speakeasy-sdk/typescript 1.
|
|
84
|
+
"speakeasy-sdk/typescript 1.12.0 2.903.5 1.0.0 mollie-api-typescript",
|
|
85
85
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
package/src/lib/env.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v3";
|
|
7
7
|
import { SDKOptions } from "./config.js";
|
|
8
|
-
import { dlv } from "./dlv.js";
|
|
9
8
|
|
|
10
9
|
export interface Env {
|
|
11
10
|
CLIENT_API_KEY?: string | undefined;
|
|
@@ -64,11 +63,16 @@ export function env(): Env {
|
|
|
64
63
|
return envMemo;
|
|
65
64
|
}
|
|
66
65
|
|
|
66
|
+
const globals = globalThis as {
|
|
67
|
+
Deno?: { env?: { toObject?: () => Record<string, string | undefined> } };
|
|
68
|
+
process?: { env?: Record<string, string | undefined> };
|
|
69
|
+
};
|
|
70
|
+
|
|
67
71
|
let envObject: Record<string, unknown> = {};
|
|
68
72
|
if (isDeno()) {
|
|
69
|
-
envObject =
|
|
73
|
+
envObject = globals.Deno?.env?.toObject?.() ?? {};
|
|
70
74
|
} else {
|
|
71
|
-
envObject =
|
|
75
|
+
envObject = globals.process?.env ?? {};
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
envMemo = envSchema.parse(envObject);
|
package/src/lib/matchers.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { ClientDefaultError } from "../models/errors/clientdefaulterror.js";
|
|
|
7
7
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
8
|
import { ERR, OK, Result } from "../types/fp.js";
|
|
9
9
|
import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js";
|
|
10
|
-
import { isPlainObject } from "./
|
|
10
|
+
import { isPlainObject } from "./primitives.js";
|
|
11
11
|
|
|
12
12
|
export type Encoding =
|
|
13
13
|
| "jsonl"
|
package/src/lib/primitives.ts
CHANGED
|
@@ -149,3 +149,19 @@ export function allRequired<V extends Record<string, unknown>>(
|
|
|
149
149
|
|
|
150
150
|
return v as ReturnType<typeof allRequired<V>>;
|
|
151
151
|
}
|
|
152
|
+
|
|
153
|
+
export function isPlainObject(
|
|
154
|
+
value: unknown,
|
|
155
|
+
): value is Record<string, unknown> {
|
|
156
|
+
if (value === null || typeof value !== "object") return false;
|
|
157
|
+
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
158
|
+
const proto = Object.getPrototypeOf(value);
|
|
159
|
+
if (proto === null || proto === Object.prototype) return true;
|
|
160
|
+
// cross-realm plain objects (vm contexts, iframes) inherit from a
|
|
161
|
+
// different realm's Object.prototype, which itself has a null prototype
|
|
162
|
+
try {
|
|
163
|
+
return Object.getPrototypeOf(proto) === null;
|
|
164
|
+
} catch {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
}
|
package/src/lib/sdks.ts
CHANGED
|
@@ -141,27 +141,55 @@ export class ClientSDK {
|
|
|
141
141
|
if (path) {
|
|
142
142
|
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
143
143
|
reqURL = new URL(path, baseURL);
|
|
144
|
+
if (!reqURL.search && baseURL.search) {
|
|
145
|
+
reqURL.search = baseURL.search;
|
|
146
|
+
}
|
|
144
147
|
} else {
|
|
145
148
|
reqURL = baseURL;
|
|
146
149
|
}
|
|
147
150
|
reqURL.hash = "";
|
|
148
151
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
if (typeof q !== "undefined") {
|
|
155
|
-
secQuery.push(q);
|
|
152
|
+
// Appends already-encoded query pairs to a query string, replacing any
|
|
153
|
+
// existing pairs with the same key so later sources take precedence.
|
|
154
|
+
const mergeQuery = (current: string, additions: string): string => {
|
|
155
|
+
if (!additions) {
|
|
156
|
+
return current;
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
const additionKeys = new Set(
|
|
159
|
+
additions
|
|
160
|
+
.split("&")
|
|
161
|
+
.filter((pair) => pair !== "")
|
|
162
|
+
.map((pair) => pair.split("=")[0] ?? ""),
|
|
163
|
+
);
|
|
164
|
+
const kept = current.split("&").filter((pair) => {
|
|
165
|
+
return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
|
|
166
|
+
});
|
|
167
|
+
return [...kept, additions].join("&");
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const encodeQueryRecord = (record: Record<string, unknown>): string => {
|
|
171
|
+
return Object.entries(record)
|
|
172
|
+
.map(([k, v]) => {
|
|
173
|
+
if (v == null) {
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
const value = v;
|
|
177
|
+
return encodeForm(k, value, {
|
|
178
|
+
explode: Array.isArray(value),
|
|
179
|
+
charEncoding: "percent",
|
|
180
|
+
});
|
|
181
|
+
})
|
|
182
|
+
.filter((pair): pair is string => typeof pair !== "undefined")
|
|
183
|
+
.join("&");
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const finalQuery = [
|
|
187
|
+
query || "",
|
|
188
|
+
encodeQueryRecord(security?.queryParams || {}),
|
|
189
|
+
].reduce(mergeQuery, reqURL.search.slice(1));
|
|
161
190
|
|
|
162
191
|
if (finalQuery) {
|
|
163
|
-
|
|
164
|
-
reqURL.search = `?${q}`;
|
|
192
|
+
reqURL.search = `?${finalQuery}`;
|
|
165
193
|
}
|
|
166
194
|
|
|
167
195
|
const headers = new Headers(opHeaders);
|
|
@@ -17,11 +17,11 @@ export type EntityPermissionLinks = {
|
|
|
17
17
|
/**
|
|
18
18
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
19
19
|
*/
|
|
20
|
-
self
|
|
20
|
+
self: Url;
|
|
21
21
|
/**
|
|
22
22
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
23
23
|
*/
|
|
24
|
-
documentation
|
|
24
|
+
documentation: Url;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export type EntityPermission = {
|
|
@@ -56,8 +56,8 @@ export const EntityPermissionLinks$inboundSchema: z.ZodType<
|
|
|
56
56
|
z.ZodTypeDef,
|
|
57
57
|
unknown
|
|
58
58
|
> = z.object({
|
|
59
|
-
self: Url$inboundSchema
|
|
60
|
-
documentation: Url$inboundSchema
|
|
59
|
+
self: Url$inboundSchema,
|
|
60
|
+
documentation: Url$inboundSchema,
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
export function entityPermissionLinksFromJSON(
|
|
@@ -17,7 +17,7 @@ export type ListEntityPermissionLinks = {
|
|
|
17
17
|
/**
|
|
18
18
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
19
19
|
*/
|
|
20
|
-
self
|
|
20
|
+
self: Url;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export type ListEntityPermission = {
|
|
@@ -52,7 +52,7 @@ export const ListEntityPermissionLinks$inboundSchema: z.ZodType<
|
|
|
52
52
|
z.ZodTypeDef,
|
|
53
53
|
unknown
|
|
54
54
|
> = z.object({
|
|
55
|
-
self: Url$inboundSchema
|
|
55
|
+
self: Url$inboundSchema,
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
export function listEntityPermissionLinksFromJSON(
|
|
@@ -721,6 +721,10 @@ export type ListPaymentResponseDetails = {
|
|
|
721
721
|
* Multibanco entity reference of the transaction
|
|
722
722
|
*/
|
|
723
723
|
multibancoEntity?: string | null | undefined;
|
|
724
|
+
/**
|
|
725
|
+
* Bizum payment reference of the transaction
|
|
726
|
+
*/
|
|
727
|
+
bizumReference?: string | null | undefined;
|
|
724
728
|
};
|
|
725
729
|
|
|
726
730
|
/**
|
|
@@ -1454,6 +1458,7 @@ export const ListPaymentResponseDetails$inboundSchema: z.ZodType<
|
|
|
1454
1458
|
remainderDetails: z.record(z.any()).optional(),
|
|
1455
1459
|
multibancoReference: z.nullable(z.string()).optional(),
|
|
1456
1460
|
multibancoEntity: z.nullable(z.string()).optional(),
|
|
1461
|
+
bizumReference: z.nullable(z.string()).optional(),
|
|
1457
1462
|
});
|
|
1458
1463
|
|
|
1459
1464
|
export function listPaymentResponseDetailsFromJSON(
|
|
@@ -695,6 +695,10 @@ export type ListSettlementPaymentResponseDetails = {
|
|
|
695
695
|
* Multibanco entity reference of the transaction
|
|
696
696
|
*/
|
|
697
697
|
multibancoEntity?: string | null | undefined;
|
|
698
|
+
/**
|
|
699
|
+
* Bizum payment reference of the transaction
|
|
700
|
+
*/
|
|
701
|
+
bizumReference?: string | null | undefined;
|
|
698
702
|
};
|
|
699
703
|
|
|
700
704
|
/**
|
|
@@ -1473,6 +1477,7 @@ export const ListSettlementPaymentResponseDetails$inboundSchema: z.ZodType<
|
|
|
1473
1477
|
remainderDetails: z.record(z.any()).optional(),
|
|
1474
1478
|
multibancoReference: z.nullable(z.string()).optional(),
|
|
1475
1479
|
multibancoEntity: z.nullable(z.string()).optional(),
|
|
1480
|
+
bizumReference: z.nullable(z.string()).optional(),
|
|
1476
1481
|
});
|
|
1477
1482
|
|
|
1478
1483
|
export function listSettlementPaymentResponseDetailsFromJSON(
|
|
@@ -31,11 +31,11 @@ export type ListPermissionsLinks = {
|
|
|
31
31
|
/**
|
|
32
32
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
33
33
|
*/
|
|
34
|
-
self
|
|
34
|
+
self: models.Url;
|
|
35
35
|
/**
|
|
36
36
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
37
37
|
*/
|
|
38
|
-
documentation
|
|
38
|
+
documentation: models.Url;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -110,8 +110,8 @@ export const ListPermissionsLinks$inboundSchema: z.ZodType<
|
|
|
110
110
|
z.ZodTypeDef,
|
|
111
111
|
unknown
|
|
112
112
|
> = z.object({
|
|
113
|
-
self: models.Url$inboundSchema
|
|
114
|
-
documentation: models.Url$inboundSchema
|
|
113
|
+
self: models.Url$inboundSchema,
|
|
114
|
+
documentation: models.Url$inboundSchema,
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
export function listPermissionsLinksFromJSON(
|
|
@@ -719,6 +719,10 @@ export type PaymentResponseDetails = {
|
|
|
719
719
|
* Multibanco entity reference of the transaction
|
|
720
720
|
*/
|
|
721
721
|
multibancoEntity?: string | null | undefined;
|
|
722
|
+
/**
|
|
723
|
+
* Bizum payment reference of the transaction
|
|
724
|
+
*/
|
|
725
|
+
bizumReference?: string | null | undefined;
|
|
722
726
|
};
|
|
723
727
|
|
|
724
728
|
/**
|
|
@@ -1453,6 +1457,7 @@ export const PaymentResponseDetails$inboundSchema: z.ZodType<
|
|
|
1453
1457
|
remainderDetails: z.record(z.any()).optional(),
|
|
1454
1458
|
multibancoReference: z.nullable(z.string()).optional(),
|
|
1455
1459
|
multibancoEntity: z.nullable(z.string()).optional(),
|
|
1460
|
+
bizumReference: z.nullable(z.string()).optional(),
|
|
1456
1461
|
});
|
|
1457
1462
|
|
|
1458
1463
|
export function paymentResponseDetailsFromJSON(
|