@codeforge-main/safepay-nordic-ts-fetch
v3.0.0
Published
Version 3.0.0
Readme
@codeforge-main/safepay-nordic-ts-fetch
Version 3.0.0
Install
npm install @codeforge-main/safepay-nordic-ts-fetchyarn add @codeforge-main/safepay-nordic-ts-fetchpnpm add @codeforge-main/safepay-nordic-ts-fetchUsage
Each API operation is exported as a standalone, fully typed function. Call one with a context object and it returns the deserialized response alongside HTTP metadata.
import { getV2ConnectReferenceId } from '@codeforge-main/safepay-nordic-ts-fetch'
const response = await getV2ConnectReferenceId({
server: 'https://api.example.com',
auth: { type: 'bearer', token: process.env.API_TOKEN ?? '' },
})
console.log(response.status) // HTTP status code
console.log(response.data) // typed as GetV2ConnectReferenceIdResponse_200Every operation accepts a context extending HttpClientContext:
server— base URL of the API.auth—bearer,basic,apiKey, oroauth2credentials.payload— request body forPOST/PUT/PATCHoperations.parameters— path parameters for operations that declare them.queryParams,pagination,retry, andhooksfor advanced control.
Available operations
postV2ConnectgetV2ConnectReferenceIdpostV2ConnectReferenceIdGuestgetV2DocumentspostV2DocumentsgetV2DocumentsDocumentIdpostV2DocumentsDocumentIdSigngetV2DocumentsDocumentIdDownloadgetV2UsersgetV2UsersSafepayAccountIdgetV2UsersSafepayAccountIdBanksgetV2UsersSafepayAccountIdBankAccountsgetV2UsersSafepayAccountIdBankAccountsInitializepostV2UsersSafepayAccountIdBankAccountsInitializegetV2TransactionspostV2TransactionsMarketplacepostV2TransactionsAutogetV2TransactionsTransactionIdpostV2TransactionsTransactionIdUpdatepostV2TransactionsTransactionIdReimbursePayergetV2TransactionsTransactionIdDebtInformationDownloadpostV2PaymentspostV2PaymentsPaymentIdInitializegetV2WebhooksExamples
Generated by
@the-codegen-project/cliv0.72.8.
