Skip to content

Commit

Permalink
Add 'complete' to DbServiceNotify and update DirectBilling.
Browse files Browse the repository at this point in the history
This commit adds a new property 'complete' to the interface DbServiceNotify in db.service.ts file. It also updates the DirectBilling class in directbilling.ts file to use this new property instead of 'success'.
  • Loading branch information
DarkGL committed Jun 1, 2023
1 parent da6b386 commit 15003a3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/models/directbilling/service/db.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface DbService {
}
export interface DbServiceNotify {
success: string;
complete: string;
failure: string;
}
interface DbServiceProviders {
Expand Down
2 changes: 1 addition & 1 deletion lib/payments/directbilling.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class DirectBilling {
(_a = request.values) === null || _a === void 0 ? void 0 : _a.net,
(_b = request.values) === null || _b === void 0 ? void 0 : _b.gross,
(_c = request.values) === null || _c === void 0 ? void 0 : _c.partner,
(_d = request.returns) === null || _d === void 0 ? void 0 : _d.success,
(_d = request.returns) === null || _d === void 0 ? void 0 : _d.complete,
(_e = request.returns) === null || _e === void 0 ? void 0 : _e.failure,
request.control,
request.number_from,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "simpay-typescript-api",
"author": "Rafał Więcek",
"version": "2.2.3",
"version": "2.2.4",
"description": "SimPay.pl API",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/models/directbilling/service/db.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface DbService {

export interface DbServiceNotify {
success: string;
complete: string;
failure: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/payments/directbilling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class DirectBilling {
request.values?.net,
request.values?.gross,
request.values?.partner,
request.returns?.success,
request.returns?.complete,
request.returns?.failure,
request.control,
request.number_from,
Expand Down

0 comments on commit 15003a3

Please sign in to comment.