sendrefunds-client
TypeScript icon, indicating that this package has built-in type declarations

0.2.7 • Public • Published

Sendrefunds Client

Doc API: https://app.swaggerhub.com/apis-docs/sendrefunds/ManagedSales/1.8.2

Usage

import { SendrefundsClient } from "sendrefunds-client";

const client = new SendrefundsClient({
  uri: "...",
  authorizationBearer: "xxx",
  isProduction: true | false
});

Methods

  • businessCheck
  • getBusinessToken
  • getBusinessStatus
  • createAccessToken
  • createAccessTokenFromExtId
  • createOrder
  • createPayment
  • getOrder
  • generateFrontUrl
  • getOrderList
  • getPayment
  • getPaymentOrder
  • getOrderPayments
  • getDocuments
  • createRefunds
  • getBusinessInformation

Test

Env

File .env

TEST_AUTHORIZATION_BEARER=...
TEST_SR_VALID_BUSINESS_ID=43341091700028
TEST_SR_VALID_REGISTRED_BUSINESS_ID=43341091700028

Run on API

TEST_SR=1 yarn test

Dependencies (3)

Dev Dependencies (9)

Package Sidebar

Install

npm i sendrefunds-client

Weekly Downloads

9

Version

0.2.7

License

MIT

Unpacked Size

338 kB

Total Files

16

Last publish

Collaborators

  • florent
  • loicmahieu