UNPKG

@ssecd/jkn

Version:

JKN (BPJS) Bridging API untuk NodeJS

39 lines (38 loc) 883 B
import { ApotekBaseApi } from './base.js'; export class Resep extends ApotekBaseApi { /** * Simpan data resep */ async simpan(data) { return this.send({ name: this.name + 'Simpan', path: `/sjpresep/v3/insert`, method: 'POST', data }); } /** * Hapus data resep */ async hapus(data) { return this.send({ name: this.name + 'Hapus', path: `/hapusresep`, method: 'DELETE', headers: { 'Content-Type': 'application/json' }, skipContentTypeHack: true, data }); } /** * Daftar resep */ async daftar(data) { return this.send({ name: this.name + 'List/Daftar', path: `/daftarresep`, method: 'POST', data }); } }