@swp/ledger-sdk
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -16,2 +16,6 @@ export interface Model<DTO> { | ||
}; | ||
export interface SearchOptions { | ||
fields?: string[]; | ||
pagination?: PaginationParams; | ||
} | ||
export interface NewActionBatchDTO { | ||
@@ -18,0 +22,0 @@ actions: NewActionDTO[]; |
@@ -1,6 +0,2 @@ | ||
export * from "./src/http"; | ||
export * from "./src/ledger"; | ||
export * from "./src/cash_in"; | ||
export * from "./src/actions"; | ||
export * from "./common/http/codes"; | ||
export * from "./common/http/dto"; | ||
@@ -7,0 +3,0 @@ export * from "./common/http/error"; |
@@ -6,7 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./src/http")); | ||
__export(require("./src/ledger")); | ||
__export(require("./src/cash_in")); | ||
__export(require("./src/actions")); | ||
__export(require("./common/http/codes")); | ||
__export(require("./common/http/dto")); | ||
@@ -13,0 +9,0 @@ __export(require("./common/http/error")); |
@@ -1,2 +0,2 @@ | ||
import { Options } from "./ledger"; | ||
import { SwpHttp } from "./http"; | ||
import { SwpResponse } from "../common/http/dto"; | ||
@@ -6,5 +6,5 @@ import { BoletoDTO, NewBoletoDTO } from "../common/dto"; | ||
private http; | ||
constructor(options: Options); | ||
constructor(http: SwpHttp); | ||
newBoleto(newBoleto: NewBoletoDTO): Promise<SwpResponse<BoletoDTO>>; | ||
getBoleto(id: string): Promise<SwpResponse<BoletoDTO>>; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var http_1 = require("./http"); | ||
var CashIn = /** @class */ (function () { | ||
function CashIn(options) { | ||
this.http = new http_1.SwpHttp(options); | ||
function CashIn(http) { | ||
this.http = http; | ||
} | ||
@@ -8,0 +7,0 @@ CashIn.prototype.newBoleto = function (newBoleto) { |
import { SwpResponse } from "../common/http/dto"; | ||
import { PaginationParams } from "../common/dto"; | ||
import { Options } from "./ledger"; | ||
export interface SearchOptions { | ||
fields?: string[]; | ||
pagination?: PaginationParams; | ||
} | ||
import { SearchOptions } from "../common/dto"; | ||
import { Options } from "./swipe"; | ||
interface RequestOptions { | ||
@@ -9,0 +5,0 @@ searchOptions?: SearchOptions; |
@@ -1,14 +0,7 @@ | ||
import { SearchOptions } from "./http"; | ||
import { AccountDTO, ActionBatchDTO, AssetDTO, NewActionBatchDTO, OrgDTO } from "../common/dto"; | ||
import { SwpHttp } from "./http"; | ||
import { AccountDTO, ActionBatchDTO, AssetDTO, NewActionBatchDTO, OrgDTO, SearchOptions } from "../common/dto"; | ||
import { SwpResponse } from "../common/http/dto"; | ||
export interface Options { | ||
apiKey: string; | ||
secret: string; | ||
sandbox?: boolean; | ||
customHost?: string; | ||
debug?: boolean; | ||
} | ||
export declare class Ledger { | ||
private http; | ||
constructor(options: Options); | ||
constructor(http: SwpHttp); | ||
hello(): Promise<SwpResponse<string>>; | ||
@@ -15,0 +8,0 @@ getOrganization(): Promise<SwpResponse<OrgDTO>>; |
@@ -38,6 +38,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var http_1 = require("./http"); | ||
var Ledger = /** @class */ (function () { | ||
function Ledger(options) { | ||
this.http = new http_1.SwpHttp(options); | ||
function Ledger(http) { | ||
this.http = http; | ||
} | ||
@@ -44,0 +43,0 @@ Ledger.prototype.hello = function () { |
{ | ||
"name": "@swp/ledger-sdk", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
87189
78
1383