cecon-interfaces 1.2.75 → 1.2.77
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/billing/interfaces/i-billing-payment.mjs +1 -1
- package/dist/esm2022/event-message/enums/event-message.enum.mjs +2 -1
- package/dist/esm2022/index.mjs +2 -1
- package/dist/esm2022/transaction/enums/index.mjs +8 -0
- package/dist/esm2022/transaction/enums/mp-status-detail.enum.mjs +34 -0
- package/dist/esm2022/transaction/enums/mp-status.enum.mjs +23 -0
- package/dist/esm2022/transaction/enums/operation-type.enum.mjs +23 -0
- package/dist/esm2022/transaction/enums/payment-method-id.enum.mjs +17 -0
- package/dist/esm2022/transaction/enums/payment-type-id.enum.mjs +25 -0
- package/dist/esm2022/transaction/enums/release-status.enum.mjs +7 -0
- package/dist/esm2022/transaction/enums/transaction-status.enum.mjs +7 -0
- package/dist/esm2022/transaction/index.mjs +2 -0
- package/dist/esm2022/transaction/interfaces/i-balance.mjs +3 -0
- package/dist/esm2022/transaction/interfaces/i-fee-detail.mjs +2 -0
- package/dist/esm2022/transaction/interfaces/i-payment-method.mjs +2 -0
- package/dist/esm2022/transaction/interfaces/i-total.mjs +2 -0
- package/dist/esm2022/transaction/interfaces/i-transaction.mjs +2 -0
- package/dist/esm2022/transaction/interfaces/index.mjs +2 -0
- package/dist/event-message/enums/event-message.enum.d.ts +2 -1
- package/dist/event-message/enums/event-message.enum.js +1 -0
- package/dist/fesm2022/cecon-interfaces.mjs +1 -0
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +1 -1
- package/dist/transaction/enums/index.d.ts +7 -0
- package/dist/transaction/enums/index.js +17 -0
- package/dist/transaction/enums/mp-status-detail.enum.d.ts +17 -0
- package/dist/transaction/enums/mp-status-detail.enum.js +36 -0
- package/dist/transaction/enums/mp-status.enum.d.ts +11 -0
- package/dist/transaction/enums/mp-status.enum.js +25 -0
- package/dist/transaction/enums/operation-type.enum.d.ts +11 -0
- package/dist/transaction/enums/operation-type.enum.js +25 -0
- package/dist/transaction/enums/payment-method-id.enum.d.ts +8 -0
- package/dist/transaction/enums/payment-method-id.enum.js +19 -0
- package/dist/transaction/enums/payment-type-id.enum.d.ts +12 -0
- package/dist/transaction/enums/payment-type-id.enum.js +27 -0
- package/dist/transaction/enums/release-status.enum.d.ts +4 -0
- package/dist/transaction/enums/release-status.enum.js +9 -0
- package/dist/transaction/enums/transaction-status.enum.d.ts +5 -0
- package/dist/transaction/enums/transaction-status.enum.js +9 -0
- package/dist/transaction/index.d.ts +1 -0
- package/dist/transaction/index.js +17 -0
- package/dist/transaction/interfaces/i-balance.d.ts +4 -0
- package/dist/transaction/interfaces/i-balance.js +3 -0
- package/dist/transaction/interfaces/i-fee-detail.d.ts +5 -0
- package/dist/transaction/interfaces/i-fee-detail.js +2 -0
- package/dist/transaction/interfaces/i-payment-method.d.ts +6 -0
- package/dist/transaction/interfaces/i-payment-method.js +2 -0
- package/dist/transaction/interfaces/i-total.d.ts +5 -0
- package/dist/transaction/interfaces/i-total.js +2 -0
- package/dist/transaction/interfaces/i-transaction.d.ts +34 -0
- package/dist/transaction/interfaces/i-transaction.js +2 -0
- package/dist/transaction/interfaces/index.d.ts +5 -0
- package/dist/transaction/interfaces/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -42,6 +42,7 @@ export * from './subscription-company';
|
|
42
42
|
export * from './subscription-customer';
|
43
43
|
export * from './token';
|
44
44
|
export * from './token-jwt';
|
45
|
+
export * from './transaction';
|
45
46
|
export * from './verifier-token';
|
46
47
|
export * from './viacep';
|
47
48
|
export * from './voucher';
|
package/dist/index.js
CHANGED
@@ -59,6 +59,7 @@ __exportStar(require("./subscription-customer"), exports);
|
|
59
59
|
__exportStar(require("./token"), exports);
|
60
60
|
__exportStar(require("./token-jwt"), exports);
|
61
61
|
// export * from './v1-entities'; // importacoes das tabelas do nati V1
|
62
|
+
__exportStar(require("./transaction"), exports);
|
62
63
|
__exportStar(require("./verifier-token"), exports);
|
63
64
|
__exportStar(require("./viacep"), exports);
|
64
65
|
__exportStar(require("./voucher"), exports);
|
package/dist/package.json
CHANGED
@@ -0,0 +1,7 @@
|
|
1
|
+
export { EReleaseStatus } from './release-status.enum';
|
2
|
+
export { ETransactionStatus } from './transaction-status.enum';
|
3
|
+
export { EMpStatus } from './mp-status.enum';
|
4
|
+
export { EMpStatusDetail } from './mp-status-detail.enum';
|
5
|
+
export { EOperationType } from './operation-type.enum';
|
6
|
+
export { EPaymentMethodId } from './payment-method-id.enum';
|
7
|
+
export { EPaymentTypeId } from './payment-type-id.enum';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPaymentTypeId = exports.EPaymentMethodId = exports.EOperationType = exports.EMpStatusDetail = exports.EMpStatus = exports.ETransactionStatus = exports.EReleaseStatus = void 0;
|
4
|
+
var release_status_enum_1 = require("./release-status.enum");
|
5
|
+
Object.defineProperty(exports, "EReleaseStatus", { enumerable: true, get: function () { return release_status_enum_1.EReleaseStatus; } });
|
6
|
+
var transaction_status_enum_1 = require("./transaction-status.enum");
|
7
|
+
Object.defineProperty(exports, "ETransactionStatus", { enumerable: true, get: function () { return transaction_status_enum_1.ETransactionStatus; } });
|
8
|
+
var mp_status_enum_1 = require("./mp-status.enum");
|
9
|
+
Object.defineProperty(exports, "EMpStatus", { enumerable: true, get: function () { return mp_status_enum_1.EMpStatus; } });
|
10
|
+
var mp_status_detail_enum_1 = require("./mp-status-detail.enum");
|
11
|
+
Object.defineProperty(exports, "EMpStatusDetail", { enumerable: true, get: function () { return mp_status_detail_enum_1.EMpStatusDetail; } });
|
12
|
+
var operation_type_enum_1 = require("./operation-type.enum");
|
13
|
+
Object.defineProperty(exports, "EOperationType", { enumerable: true, get: function () { return operation_type_enum_1.EOperationType; } });
|
14
|
+
var payment_method_id_enum_1 = require("./payment-method-id.enum");
|
15
|
+
Object.defineProperty(exports, "EPaymentMethodId", { enumerable: true, get: function () { return payment_method_id_enum_1.EPaymentMethodId; } });
|
16
|
+
var payment_type_id_enum_1 = require("./payment-type-id.enum");
|
17
|
+
Object.defineProperty(exports, "EPaymentTypeId", { enumerable: true, get: function () { return payment_type_id_enum_1.EPaymentTypeId; } });
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare enum EMpStatusDetail {
|
2
|
+
ACCREDITED = "accredited",
|
3
|
+
PENDING_CONTINGENCY = "pending_contingency",
|
4
|
+
PENDING_REVIEW_MANUAL = "pending_review_manual",
|
5
|
+
CC_REJECTED_BAD_FILLED_DATE = "cc_rejected_bad_filled_date",
|
6
|
+
CC_REJECTED_BAD_FILLED_OTHER = "cc_rejected_bad_filled_other",
|
7
|
+
CC_REJECTED_BAD_FILLED_SECURITY_CODE = "cc_rejected_bad_filled_security_code",
|
8
|
+
CC_REJECTED_BLACKLIST = "cc_rejected_blacklist",
|
9
|
+
CC_REJECTED_CALL_FOR_AUTHORIZE = "cc_rejected_call_for_authorize",
|
10
|
+
CC_REJECTED_CARD_DISABLED = "cc_rejected_card_disabled",
|
11
|
+
CC_REJECTED_DUPLICATED_PAYMENT = "cc_rejected_duplicated_payment",
|
12
|
+
CC_REJECTED_HIGH_RISK = "cc_rejected_high_risk",
|
13
|
+
CC_REJECTED_INSUFFICIENT_AMOUNT = "cc_rejected_insufficient_amount",
|
14
|
+
CC_REJECTED_INVALID_INSTALLMENTS = "cc_rejected_invalid_installments",
|
15
|
+
CC_REJECTED_MAX_ATTEMPTS = "cc_rejected_max_attempts",
|
16
|
+
CC_REJECTED_OTHER_REASON = "cc_rejected_other_reason"
|
17
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EMpStatusDetail = void 0;
|
4
|
+
var EMpStatusDetail;
|
5
|
+
(function (EMpStatusDetail) {
|
6
|
+
EMpStatusDetail["ACCREDITED"] = "accredited";
|
7
|
+
EMpStatusDetail["PENDING_CONTINGENCY"] = "pending_contingency";
|
8
|
+
EMpStatusDetail["PENDING_REVIEW_MANUAL"] = "pending_review_manual";
|
9
|
+
EMpStatusDetail["CC_REJECTED_BAD_FILLED_DATE"] = "cc_rejected_bad_filled_date";
|
10
|
+
EMpStatusDetail["CC_REJECTED_BAD_FILLED_OTHER"] = "cc_rejected_bad_filled_other";
|
11
|
+
EMpStatusDetail["CC_REJECTED_BAD_FILLED_SECURITY_CODE"] = "cc_rejected_bad_filled_security_code";
|
12
|
+
EMpStatusDetail["CC_REJECTED_BLACKLIST"] = "cc_rejected_blacklist";
|
13
|
+
EMpStatusDetail["CC_REJECTED_CALL_FOR_AUTHORIZE"] = "cc_rejected_call_for_authorize";
|
14
|
+
EMpStatusDetail["CC_REJECTED_CARD_DISABLED"] = "cc_rejected_card_disabled";
|
15
|
+
EMpStatusDetail["CC_REJECTED_DUPLICATED_PAYMENT"] = "cc_rejected_duplicated_payment";
|
16
|
+
EMpStatusDetail["CC_REJECTED_HIGH_RISK"] = "cc_rejected_high_risk";
|
17
|
+
EMpStatusDetail["CC_REJECTED_INSUFFICIENT_AMOUNT"] = "cc_rejected_insufficient_amount";
|
18
|
+
EMpStatusDetail["CC_REJECTED_INVALID_INSTALLMENTS"] = "cc_rejected_invalid_installments";
|
19
|
+
EMpStatusDetail["CC_REJECTED_MAX_ATTEMPTS"] = "cc_rejected_max_attempts";
|
20
|
+
EMpStatusDetail["CC_REJECTED_OTHER_REASON"] = "cc_rejected_other_reason";
|
21
|
+
})(EMpStatusDetail || (exports.EMpStatusDetail = EMpStatusDetail = {}));
|
22
|
+
// Accredited: credited payment.
|
23
|
+
// pending_contingency: the payment is being processed.
|
24
|
+
// pending_review_manual: the payment is under review to determine its approval or rejection.
|
25
|
+
// cc_rejected_bad_filled_date: incorrect expiration date.
|
26
|
+
// cc_rejected_bad_filled_other: incorrect card details.
|
27
|
+
// cc_rejected_bad_filled_security_code: incorrect CVV.
|
28
|
+
// cc_rejected_blacklist: the card is in the denial list, being present in problems related to theft/complaints/fraud.
|
29
|
+
// cc_rejected_call_for_authorize: the payment method requires prior authorization of the transaction value.
|
30
|
+
// cc_rejected_card_disabled: the card is inactive.
|
31
|
+
// cc_rejected_duplicated_payment: duplicated transaction.
|
32
|
+
// cc_rejected_high_risk: rejected by Fraud Prevention.
|
33
|
+
// cc_rejected_insufficient_amount: insufficient amount.
|
34
|
+
// cc_rejected_invalid_installments: invalid number of installments.
|
35
|
+
// cc_rejected_max_attempts: maximum number of attempts exceeded.
|
36
|
+
// cc_rejected_other_reason: generic error.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare enum EMpStatus {
|
2
|
+
PENDING = "pending",
|
3
|
+
APPROVED = "approved",
|
4
|
+
AUTHORIZED = "authorized",
|
5
|
+
IN_PROCESS = "in_process",
|
6
|
+
IN_MEDIATION = "in_mediation",
|
7
|
+
REJECTED = "rejected",
|
8
|
+
CANCELLED = "cancelled",
|
9
|
+
REFUNDED = "refunded",
|
10
|
+
CHARGED_BACK = "charged_back"
|
11
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EMpStatus = void 0;
|
4
|
+
var EMpStatus;
|
5
|
+
(function (EMpStatus) {
|
6
|
+
EMpStatus["PENDING"] = "pending";
|
7
|
+
EMpStatus["APPROVED"] = "approved";
|
8
|
+
EMpStatus["AUTHORIZED"] = "authorized";
|
9
|
+
EMpStatus["IN_PROCESS"] = "in_process";
|
10
|
+
EMpStatus["IN_MEDIATION"] = "in_mediation";
|
11
|
+
EMpStatus["REJECTED"] = "rejected";
|
12
|
+
EMpStatus["CANCELLED"] = "cancelled";
|
13
|
+
EMpStatus["REFUNDED"] = "refunded";
|
14
|
+
EMpStatus["CHARGED_BACK"] = "charged_back";
|
15
|
+
})(EMpStatus || (exports.EMpStatus = EMpStatus = {}));
|
16
|
+
// É o estado atual do pagamento. Podem ser ser dos seguintes tipos.
|
17
|
+
// pending: The user has not concluded the payment process (for example, by generating a payment by boleto, it will be concluded at the moment in which the user makes the payment in the selected place).
|
18
|
+
// approved: The payment has been approved and credited.
|
19
|
+
// authorized: The payment has been authorized but not captured yet.
|
20
|
+
// in_process: The payment is in analysis.
|
21
|
+
// in_mediation: The user started a dispute.
|
22
|
+
// rejected: The payment was rejected (the user can try to pay again).
|
23
|
+
// cancelled: Either the payment was canceled by one of the parties or expired.
|
24
|
+
// refunded: The payment was returned to the user.
|
25
|
+
// charged_back: A chargeback was placed on the buyer's credit card.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare enum EOperationType {
|
2
|
+
INVESTMENT = "investment",
|
3
|
+
REGULAR_PAYMENT = "regular_payment",
|
4
|
+
MONEY_TRANSFER = "money_transfer",
|
5
|
+
RECURRING_PAYMENT = "recurring_payment",
|
6
|
+
ACCOUNT_FUND = "account_fund",
|
7
|
+
PAYMENT_ADDITION = "payment_addition",
|
8
|
+
CELLPHONE_RECHARGE = "cellphone_recharge",
|
9
|
+
POS_PAYMENT = "pos_payment",
|
10
|
+
MONEY_EXCHANGE = "money_exchange"
|
11
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EOperationType = void 0;
|
4
|
+
var EOperationType;
|
5
|
+
(function (EOperationType) {
|
6
|
+
EOperationType["INVESTMENT"] = "investment";
|
7
|
+
EOperationType["REGULAR_PAYMENT"] = "regular_payment";
|
8
|
+
EOperationType["MONEY_TRANSFER"] = "money_transfer";
|
9
|
+
EOperationType["RECURRING_PAYMENT"] = "recurring_payment";
|
10
|
+
EOperationType["ACCOUNT_FUND"] = "account_fund";
|
11
|
+
EOperationType["PAYMENT_ADDITION"] = "payment_addition";
|
12
|
+
EOperationType["CELLPHONE_RECHARGE"] = "cellphone_recharge";
|
13
|
+
EOperationType["POS_PAYMENT"] = "pos_payment";
|
14
|
+
EOperationType["MONEY_EXCHANGE"] = "money_exchange";
|
15
|
+
})(EOperationType || (exports.EOperationType = EOperationType = {}));
|
16
|
+
// É o tipo de pagamento. Os tipos disponíveis são os seguintes.
|
17
|
+
// investment: When money is put into an investment, such as CDB, in the Mercado Pago application;
|
18
|
+
// regular_payment: Typification by default of a purchase being paid using Mercado Pago.
|
19
|
+
// money_transfer: Funds transfer between two users.
|
20
|
+
// recurring_payment: Automatic recurring payment due to an active user subscription.
|
21
|
+
// account_fund: Money income in the user's account.
|
22
|
+
// payment_addition: Addition of money to an existing payment, made through a Mercado Pago account.
|
23
|
+
// cellphone_recharge: Recharge of a user's cellphone account.
|
24
|
+
// pos_payment: Payment done through a Point of Sale.
|
25
|
+
// money_exchange: Payment to exchange currency for a user.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPaymentMethodId = void 0;
|
4
|
+
var EPaymentMethodId;
|
5
|
+
(function (EPaymentMethodId) {
|
6
|
+
EPaymentMethodId["ACCOUNT_MONEY"] = "account_money";
|
7
|
+
EPaymentMethodId["PIX"] = "pix";
|
8
|
+
EPaymentMethodId["TED"] = "ted";
|
9
|
+
// casos internacionais
|
10
|
+
EPaymentMethodId["DEBIN_TRANSFER"] = "debin_transfer";
|
11
|
+
EPaymentMethodId["CVU"] = "cvu";
|
12
|
+
EPaymentMethodId["PSE"] = "pse";
|
13
|
+
})(EPaymentMethodId || (exports.EPaymentMethodId = EPaymentMethodId = {}));
|
14
|
+
// Indica o identificador do meio de pagamento selecionado para efetuar o pagamento. A seguir, apresentamos alguns exemplos. Obtenha todos os meios de pagamento disponíveis consultando a API de 'Obter meios de pagamento'.
|
15
|
+
// Pix: Método de pagamento digital instantâneo utilizado no Brasil.
|
16
|
+
// Debin_transfer: Método de pagamento digital utilizado na Argentina que debita imediatamente um valor da conta, solicitando autorização prévia.
|
17
|
+
// Ted: É o pagamento por Transferência Eletrônica Disponível, usado no Brasil, que possui taxas de utilização. O pagamento é realizado no mesmo dia da transação, mas para isso, é necessário realizar a transferência dentro do período estipulado.
|
18
|
+
// CVU: Método de pagamento utilizado na Argentina.
|
19
|
+
// PSE: Método de pagamento digital utilizado na Colômbia, no qual os usuários autorizam o débito de fundos de seu banco por meio da banca virtual, seja de suas contas de poupança, corrente ou depósito eletrônico.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare enum EPaymentTypeId {
|
2
|
+
TICKET = "ticket",
|
3
|
+
BANK_TRANSFER = "bank_transfer",
|
4
|
+
ATM = "atm",
|
5
|
+
CREDIT_CARD = "credit_card",
|
6
|
+
DEBIT_CARD = "debit_card",
|
7
|
+
PREPAID_CARD = "prepaid_card",
|
8
|
+
DIGITAL_CURRENCY = "digital_currency",
|
9
|
+
DIGITAL_WALLET = "digital_wallet",
|
10
|
+
VOUCHER_CARD = "voucher_card",
|
11
|
+
CRYPTO_TRANSFER = "crypto_transfer"
|
12
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPaymentTypeId = void 0;
|
4
|
+
var EPaymentTypeId;
|
5
|
+
(function (EPaymentTypeId) {
|
6
|
+
EPaymentTypeId["TICKET"] = "ticket";
|
7
|
+
EPaymentTypeId["BANK_TRANSFER"] = "bank_transfer";
|
8
|
+
EPaymentTypeId["ATM"] = "atm";
|
9
|
+
EPaymentTypeId["CREDIT_CARD"] = "credit_card";
|
10
|
+
EPaymentTypeId["DEBIT_CARD"] = "debit_card";
|
11
|
+
EPaymentTypeId["PREPAID_CARD"] = "prepaid_card";
|
12
|
+
EPaymentTypeId["DIGITAL_CURRENCY"] = "digital_currency";
|
13
|
+
EPaymentTypeId["DIGITAL_WALLET"] = "digital_wallet";
|
14
|
+
EPaymentTypeId["VOUCHER_CARD"] = "voucher_card";
|
15
|
+
EPaymentTypeId["CRYPTO_TRANSFER"] = "crypto_transfer";
|
16
|
+
})(EPaymentTypeId || (exports.EPaymentTypeId = EPaymentTypeId = {}));
|
17
|
+
// É o tipo da forma de pagamento (cartão, transferência bancária, boleto, caixa eletrônico, etc). Podem ser dos seguintes tipos.
|
18
|
+
// ticket: Boletos, Caixa Electronica Payment, PayCash, Efecty, Oxxo, etc.
|
19
|
+
// bank_transfer: Pix e PSE (Pagos Seguros en Línea).
|
20
|
+
// atm: Pagamento em caixa eletrônico (amplamente utilizado no México através do BBVA Bancomer).
|
21
|
+
// credit_card: Pagamento com cartão de crédito.
|
22
|
+
// debit_card: Pagamento com cartão de débito.
|
23
|
+
// prepaid_card: Pagamento com cartão pré-pago.
|
24
|
+
// digital_currency: Compras com Mercado Crédito.
|
25
|
+
// digital_wallet: Paypal.
|
26
|
+
// voucher_card: Benefícios Alelo e Sodexo.
|
27
|
+
// crypto_transfer: Pagamento com criptomoedas como Ethereum e Bitcoin.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EReleaseStatus = void 0;
|
4
|
+
var EReleaseStatus;
|
5
|
+
(function (EReleaseStatus) {
|
6
|
+
EReleaseStatus["RELEASED"] = "released";
|
7
|
+
EReleaseStatus["PENDING"] = "pending";
|
8
|
+
})(EReleaseStatus || (exports.EReleaseStatus = EReleaseStatus = {}));
|
9
|
+
// Data em que o pagamento é liquidado e o dinheiro é disponibilizado na conta Mercado Pago do Collector (aquele que recebe o pagamento). O campo pode assumir os valores “pending” ou “released”, sendo que o primeiro indica que o pagamento ainda não foi liberado (dinheiro retido por tempo) e “released” significa que o dinheiro já foi liberado para o saldo disponível do usuário.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ETransactionStatus = void 0;
|
4
|
+
var ETransactionStatus;
|
5
|
+
(function (ETransactionStatus) {
|
6
|
+
ETransactionStatus["BLOCKED"] = "BLOCKED";
|
7
|
+
ETransactionStatus["PROCESSED"] = "PROCESSED";
|
8
|
+
ETransactionStatus["PROCESSING"] = "PROCESSING";
|
9
|
+
})(ETransactionStatus || (exports.ETransactionStatus = ETransactionStatus = {}));
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './interfaces';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { EReleaseStatus, EOperationType, EPaymentMethodId, EMpStatus, EMpStatusDetail, ETransactionStatus } from "../enums";
|
2
|
+
import { ITransactionBalance } from "./i-balance";
|
3
|
+
import { IFeeDeatil } from "./i-fee-detail";
|
4
|
+
import { ITransactionPaymentMethod } from "./i-payment-method";
|
5
|
+
import { ITransactionTotal } from "./i-total";
|
6
|
+
export interface ITransaction {
|
7
|
+
id: string;
|
8
|
+
referenceId: string;
|
9
|
+
card: {};
|
10
|
+
merchantId: string;
|
11
|
+
containerId: string;
|
12
|
+
dateApproved: Date;
|
13
|
+
dateCreated: Date;
|
14
|
+
dateLastUpdated: Date;
|
15
|
+
dateOfExpiration: Date;
|
16
|
+
description: string;
|
17
|
+
externalOrderReference: string;
|
18
|
+
feeDetails: IFeeDeatil[];
|
19
|
+
installments: number;
|
20
|
+
liveMode: boolean;
|
21
|
+
moneyReleaseDate: Date;
|
22
|
+
moneyReleaseStatus: EReleaseStatus;
|
23
|
+
operationType: EOperationType;
|
24
|
+
paymentMethod: ITransactionPaymentMethod;
|
25
|
+
paymentMethodId: EPaymentMethodId;
|
26
|
+
posId: string;
|
27
|
+
status: EMpStatus;
|
28
|
+
statusDetail: EMpStatusDetail;
|
29
|
+
transactionAmount: number;
|
30
|
+
transactionAmountRefunded: number;
|
31
|
+
total: ITransactionTotal;
|
32
|
+
balance: ITransactionBalance;
|
33
|
+
transactionStatus: ETransactionStatus;
|
34
|
+
}
|