-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix notification signature generation
- Loading branch information
Showing
44 changed files
with
296 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
export { DbCalculation } from "./models/directbilling/service/db.calculation"; | ||
export { DbProvider } from "./models/directbilling/service/db.provider"; | ||
export { DbProvider, DbProviderID } from "./models/directbilling/db.provider"; | ||
export { DbService, DbServiceNotify } from "./models/directbilling/service/db.service"; | ||
export { PartialDbService } from "./models/directbilling/service/partial.db.service"; | ||
export { DbGenerationResponse } from "./models/directbilling/transaction/db.generation.response"; | ||
export { DbTransactionRequest } from "./models/directbilling/transaction/db.transaction.request"; | ||
export { DbTransactionStatus } from "./models/directbilling/transaction/db.transaction.status"; | ||
export { DbTransaction } from "./models/directbilling/transaction/db.transaction"; | ||
export { PartialDbTransaction } from "./models/directbilling/transaction/partial.db.transaction"; | ||
export { DBServiceStatus } from "./models/directbilling/service/db.service.status"; | ||
export { PaginatedResponse } from "./models/response/paginated.response"; | ||
export { AmountType } from "./models/amount.type"; | ||
export { ServiceStatus } from "./models/service.status"; | ||
export { SmsNumber } from "./models/sms/service/sms.number"; | ||
export { SmsService } from "./models/sms/service/sms.service"; | ||
export { SmsServiceType } from "./models/sms/service/sms.service.type"; | ||
export { SmsTransaction } from "./models/sms/transaction/sms.transaction"; | ||
export { VerificationResponse } from "./models/sms/verification.response"; | ||
export { SMSServiceStatus } from "./models/sms/service/sms.service.status"; | ||
export { DirectBilling } from "./payments/directbilling"; | ||
export { Sms } from "./payments/sms"; | ||
export { SmsXml } from "./payments/sms.xml"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export declare enum DbProvider { | ||
PLAY = "play", | ||
PLUS = "plus", | ||
ORANGE = "orange", | ||
T_MOBILE = "t-mobile" | ||
} | ||
export declare enum DbProviderID { | ||
ORANGE = 1, | ||
PLUS = 2, | ||
PLAY = 3, | ||
T_MOBILE = 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DbProviderID = exports.DbProvider = void 0; | ||
var DbProvider; | ||
(function (DbProvider) { | ||
DbProvider["PLAY"] = "play"; | ||
DbProvider["PLUS"] = "plus"; | ||
DbProvider["ORANGE"] = "orange"; | ||
DbProvider["T_MOBILE"] = "t-mobile"; | ||
})(DbProvider = exports.DbProvider || (exports.DbProvider = {})); | ||
var DbProviderID; | ||
(function (DbProviderID) { | ||
DbProviderID[DbProviderID["ORANGE"] = 1] = "ORANGE"; | ||
DbProviderID[DbProviderID["PLUS"] = 2] = "PLUS"; | ||
DbProviderID[DbProviderID["PLAY"] = 3] = "PLAY"; | ||
DbProviderID[DbProviderID["T_MOBILE"] = 4] = "T_MOBILE"; | ||
})(DbProviderID = exports.DbProviderID || (exports.DbProviderID = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const db_provider_1 = require("./db.provider"); | ||
const db_provider_1 = require("../db.provider"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const db_provider_1 = require("./db.provider"); | ||
const db_provider_1 = require("../db.provider"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export declare enum DBServiceStatus { | ||
SERVICE_NEW = "service_db_new", | ||
SERVICE_ACTIVE = "service_db_active", | ||
SERVICE_REJECTED = "service_db_rejected", | ||
SERVICE_ONGOING_REGISTRATION = "service_db_ongoing_registration" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DBServiceStatus = void 0; | ||
var DBServiceStatus; | ||
(function (DBServiceStatus) { | ||
DBServiceStatus["SERVICE_NEW"] = "service_db_new"; | ||
DBServiceStatus["SERVICE_ACTIVE"] = "service_db_active"; | ||
DBServiceStatus["SERVICE_REJECTED"] = "service_db_rejected"; | ||
DBServiceStatus["SERVICE_ONGOING_REGISTRATION"] = "service_db_ongoing_registration"; | ||
})(DBServiceStatus = exports.DBServiceStatus || (exports.DBServiceStatus = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { ServiceStatus } from '../../service.status'; | ||
import { DBServiceStatus } from './db.service.status'; | ||
export interface PartialDbService { | ||
id: string; | ||
name: string; | ||
suffix: string; | ||
status: ServiceStatus; | ||
status: DBServiceStatus; | ||
created_at: Date; | ||
} |
18 changes: 18 additions & 0 deletions
18
lib/models/directbilling/transaction/db.notifications.request.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { DbServiceNotify } from '../service/db.service'; | ||
import { DbTransactionStatus } from '../transaction/db.transaction.status'; | ||
import { DbProviderID } from '../db.provider'; | ||
export interface DbNotificationRequest { | ||
id: string; | ||
service_id: number; | ||
status: DbTransactionStatus; | ||
values?: { | ||
net?: number; | ||
gross?: number; | ||
partner?: number; | ||
}; | ||
returns?: DbServiceNotify; | ||
control?: string; | ||
number_from?: string; | ||
provider: DbProviderID; | ||
signature?: string; | ||
} |
2 changes: 2 additions & 0 deletions
2
lib/models/directbilling/transaction/db.notifications.request.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
lib/models/directbilling/transaction/db.transaction.status.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export declare enum DbTransactionStatus { | ||
SERVICE_DB_NEW = "service_db_new", | ||
SERVICE_DB_ACTIVE = "service_db_active", | ||
SERVICE_DB_REJECTED = "service_db_rejected", | ||
SERVICE_DB_ONGOING_REGISTRATION = "service_db_ongoing_registration" | ||
TRANSACTION_DB_NEW = "transaction_db_new", | ||
TRANSACTION_DB_CONFIRMED = "transaction_db_confirmed", | ||
TRANSACTION_DB_REJECTED = "transaction_db_rejected", | ||
TRANSACTION_DB_CANCELED = "transaction_db_canceled", | ||
TRANSACTION_DB_PAYED = "transaction_db_payed", | ||
TRANSACTION_DB_GENERATE_ERROR = "transaction_db_generate_error" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/models/directbilling/transaction/partial.db.transaction.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export declare enum SMSServiceStatus { | ||
SERVICE_NEW = "service_new", | ||
SERVICE_ACTIVE = "service_active", | ||
SERVICE_BLOCKED = "service_blocked", | ||
SERVICE_DELETED = "service_deleted", | ||
SERVICE_SECOND_VERIFY = "service_second_verify", | ||
SERVICE_REJECTED = "service_rejected", | ||
SERVICE_VERIFY = "service_verify", | ||
SERVICE_ONGOING_REGISTRATION = "service_ongoing_registration" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SMSServiceStatus = void 0; | ||
var SMSServiceStatus; | ||
(function (SMSServiceStatus) { | ||
SMSServiceStatus["SERVICE_NEW"] = "service_new"; | ||
SMSServiceStatus["SERVICE_ACTIVE"] = "service_active"; | ||
SMSServiceStatus["SERVICE_BLOCKED"] = "service_blocked"; | ||
SMSServiceStatus["SERVICE_DELETED"] = "service_deleted"; | ||
SMSServiceStatus["SERVICE_SECOND_VERIFY"] = "service_second_verify"; | ||
SMSServiceStatus["SERVICE_REJECTED"] = "service_rejected"; | ||
SMSServiceStatus["SERVICE_VERIFY"] = "service_verify"; | ||
SMSServiceStatus["SERVICE_ONGOING_REGISTRATION"] = "service_ongoing_registration"; | ||
})(SMSServiceStatus = exports.SMSServiceStatus || (exports.SMSServiceStatus = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.