Skip to content

Commit

Permalink
Merge pull request #128 from sidinei-silva/fix-postback
Browse files Browse the repository at this point in the history
fix: postback namespace
  • Loading branch information
jonyw4 authored Oct 27, 2021
2 parents 559d77e + 7580866 commit c76bc54
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
20 changes: 0 additions & 20 deletions src/client/postback/namespace.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// <reference path="./client/payables/namespace.ts" />
/// <reference path="./client/paymentLinks/namespace.ts" />
/// <reference path="./client/plans/namespace.ts" />
/// <reference path="./client/postback/namespace.ts" />
/// <reference path="./postback/namespace.ts" />
/// <reference path="./client/postbacks/namespace.ts" />
/// <reference path="./client/recipients/namespace.ts" />
/// <reference path="./client/refunds/namespace.ts" />
Expand Down
18 changes: 18 additions & 0 deletions src/postback/namespace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare module 'pagarme' {
export namespace postback {
function calculateSignature(
/** the keys used to sign the hash. */
key: string,
/** The string to be hashed. */
string: string
): string;
function verifySignature(
/** the keys used to sign the hash. */
key: string,
/** The string to be hashed. */
string: string,
/** The expected result. */
expected: string
): boolean;
}
}

0 comments on commit c76bc54

Please sign in to comment.