@postpaybr/contracts 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/enums/account-entry.enum.js +5 -2
  2. package/dist/enums/anticipation.enum.js +5 -2
  3. package/dist/enums/bank-account.enum.js +7 -4
  4. package/dist/enums/charge-status.enum.js +7 -4
  5. package/dist/enums/customer.enum.js +13 -10
  6. package/dist/enums/email.enum.js +5 -2
  7. package/dist/enums/failure-reason.enum.js +5 -2
  8. package/dist/enums/gateway-identification.enum.js +5 -2
  9. package/dist/enums/index.js +32 -16
  10. package/dist/enums/notification.enum.js +7 -4
  11. package/dist/enums/orders-status.enum.js +7 -4
  12. package/dist/enums/payable-status.enum.js +5 -2
  13. package/dist/enums/payment.enum.js +7 -4
  14. package/dist/enums/recipient.enum.js +11 -8
  15. package/dist/enums/role.enum.js +7 -4
  16. package/dist/enums/tax.enum.js +6 -4
  17. package/dist/enums/user-status.enum.js +4 -2
  18. package/dist/types/account-entry.type.js +2 -1
  19. package/dist/types/address.type.js +2 -1
  20. package/dist/types/anticipation.type.js +2 -1
  21. package/dist/types/card.type.js +5 -2
  22. package/dist/types/charge-metadata.type.js +2 -1
  23. package/dist/types/charge-schedule.type.js +2 -1
  24. package/dist/types/charge.type.js +2 -1
  25. package/dist/types/core.type.js +2 -1
  26. package/dist/types/customer.type.js +2 -1
  27. package/dist/types/environment.type.js +2 -1
  28. package/dist/types/failure-reason.type.js +2 -1
  29. package/dist/types/fee.type.js +2 -1
  30. package/dist/types/gateway-identification.type.js +2 -1
  31. package/dist/types/health-check-plugin.type.js +2 -1
  32. package/dist/types/index.js +42 -26
  33. package/dist/types/notification.type.js +2 -1
  34. package/dist/types/order.type.js +2 -1
  35. package/dist/types/payable.type.js +2 -1
  36. package/dist/types/payment-provider.type.js +7 -4
  37. package/dist/types/payment-service.type.js +2 -1
  38. package/dist/types/payment.type.js +5 -2
  39. package/dist/types/receipt-metadata.type.js +2 -1
  40. package/dist/types/receipt.type.js +2 -1
  41. package/dist/types/role.type.js +2 -1
  42. package/dist/types/service-card-vault.type.js +2 -1
  43. package/dist/types/tax.type.js +2 -1
  44. package/dist/types/user.type.js +5 -2
  45. package/package.json +23 -12
@@ -1,5 +1,8 @@
1
- export var AccountEntryTypeEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountEntryTypeEnum = void 0;
4
+ var AccountEntryTypeEnum;
2
5
  (function (AccountEntryTypeEnum) {
3
6
  AccountEntryTypeEnum["CREDIT"] = "CREDIT";
4
7
  AccountEntryTypeEnum["DEBIT"] = "DEBIT";
5
- })(AccountEntryTypeEnum || (AccountEntryTypeEnum = {}));
8
+ })(AccountEntryTypeEnum || (exports.AccountEntryTypeEnum = AccountEntryTypeEnum = {}));
@@ -1,8 +1,11 @@
1
- export var AnticipationStatusEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnticipationStatusEnum = void 0;
4
+ var AnticipationStatusEnum;
2
5
  (function (AnticipationStatusEnum) {
3
6
  AnticipationStatusEnum["PENDING"] = "PENDING";
4
7
  AnticipationStatusEnum["PROCESSING"] = "PROCESSING";
5
8
  AnticipationStatusEnum["COMPLETED"] = "COMPLETED";
6
9
  AnticipationStatusEnum["FAILED"] = "FAILED";
7
10
  AnticipationStatusEnum["CANCELLED"] = "CANCELLED";
8
- })(AnticipationStatusEnum || (AnticipationStatusEnum = {}));
11
+ })(AnticipationStatusEnum || (exports.AnticipationStatusEnum = AnticipationStatusEnum = {}));
@@ -1,9 +1,12 @@
1
- export var BankAccountTypeEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HolderTypeEnum = exports.BankAccountTypeEnum = void 0;
4
+ var BankAccountTypeEnum;
2
5
  (function (BankAccountTypeEnum) {
3
6
  BankAccountTypeEnum["CURRENT_ACCOUNT"] = "CURRENT_ACCOUNT";
4
- })(BankAccountTypeEnum || (BankAccountTypeEnum = {}));
5
- export var HolderTypeEnum;
7
+ })(BankAccountTypeEnum || (exports.BankAccountTypeEnum = BankAccountTypeEnum = {}));
8
+ var HolderTypeEnum;
6
9
  (function (HolderTypeEnum) {
7
10
  HolderTypeEnum["INDIVIDUAL"] = "INDIVIDUAL";
8
11
  HolderTypeEnum["COMPANY"] = "COMPANY";
9
- })(HolderTypeEnum || (HolderTypeEnum = {}));
12
+ })(HolderTypeEnum || (exports.HolderTypeEnum = HolderTypeEnum = {}));
@@ -1,4 +1,7 @@
1
- export var ChargeStatusEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChargeTypeEnum = exports.ChargeStatusEnum = void 0;
4
+ var ChargeStatusEnum;
2
5
  (function (ChargeStatusEnum) {
3
6
  ChargeStatusEnum["LIQUIDATED"] = "LIQUIDATED";
4
7
  ChargeStatusEnum["PENDING"] = "PENDING";
@@ -17,9 +20,9 @@ export var ChargeStatusEnum;
17
20
  ChargeStatusEnum["REFUND_REJECTED"] = "REFUND_REJECTED";
18
21
  ChargeStatusEnum["CHARGEBACK"] = "CHARGEBACK";
19
22
  ChargeStatusEnum["MED"] = "MED";
20
- })(ChargeStatusEnum || (ChargeStatusEnum = {}));
21
- export var ChargeTypeEnum;
23
+ })(ChargeStatusEnum || (exports.ChargeStatusEnum = ChargeStatusEnum = {}));
24
+ var ChargeTypeEnum;
22
25
  (function (ChargeTypeEnum) {
23
26
  ChargeTypeEnum["STANDARD"] = "STANDARD";
24
27
  ChargeTypeEnum["CARD_VERIFICATION"] = "CARD_VERIFICATION";
25
- })(ChargeTypeEnum || (ChargeTypeEnum = {}));
28
+ })(ChargeTypeEnum || (exports.ChargeTypeEnum = ChargeTypeEnum = {}));
@@ -1,11 +1,14 @@
1
- export var VerificationStatusEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountLevelEnum = exports.CardChallengeEnum = exports.CardRejectionReasonEnum = exports.DocumentRejectionReasonEnum = exports.VerificationStatusEnum = void 0;
4
+ var VerificationStatusEnum;
2
5
  (function (VerificationStatusEnum) {
3
6
  VerificationStatusEnum["PENDING"] = "PENDING";
4
7
  VerificationStatusEnum["IN_PROGRESS"] = "IN_PROGRESS";
5
8
  VerificationStatusEnum["REJECTED"] = "REJECTED";
6
9
  VerificationStatusEnum["APPROVED"] = "APPROVED";
7
- })(VerificationStatusEnum || (VerificationStatusEnum = {}));
8
- export var DocumentRejectionReasonEnum;
10
+ })(VerificationStatusEnum || (exports.VerificationStatusEnum = VerificationStatusEnum = {}));
11
+ var DocumentRejectionReasonEnum;
9
12
  (function (DocumentRejectionReasonEnum) {
10
13
  DocumentRejectionReasonEnum["FAILED_CHALLENGE"] = "FAILED_CHALLENGE";
11
14
  DocumentRejectionReasonEnum["DOCUMENT_WITHOUT_PHOTO"] = "DOCUMENT_WITHOUT_PHOTO";
@@ -15,8 +18,8 @@ export var DocumentRejectionReasonEnum;
15
18
  DocumentRejectionReasonEnum["INCOMPATIBLE_DATA"] = "INCOMPATIBLE_DATA";
16
19
  DocumentRejectionReasonEnum["DIFFERENT_DOCUMENTS"] = "DIFFERENT_DOCUMENTS";
17
20
  DocumentRejectionReasonEnum["OTHER"] = "OTHER";
18
- })(DocumentRejectionReasonEnum || (DocumentRejectionReasonEnum = {}));
19
- export var CardRejectionReasonEnum;
21
+ })(DocumentRejectionReasonEnum || (exports.DocumentRejectionReasonEnum = DocumentRejectionReasonEnum = {}));
22
+ var CardRejectionReasonEnum;
20
23
  (function (CardRejectionReasonEnum) {
21
24
  CardRejectionReasonEnum["FAILED_CHALLENGE"] = "FAILED_CHALLENGE";
22
25
  CardRejectionReasonEnum["FACE_OR_CARD_INVISIBLE"] = "FACE_OR_CARD_INVISIBLE";
@@ -26,16 +29,16 @@ export var CardRejectionReasonEnum;
26
29
  CardRejectionReasonEnum["PERSON_MISMATCH"] = "PERSON_MISMATCH";
27
30
  CardRejectionReasonEnum["CARD_BACK_REQUIRED"] = "CARD_BACK_REQUIRED";
28
31
  CardRejectionReasonEnum["OTHER"] = "OTHER";
29
- })(CardRejectionReasonEnum || (CardRejectionReasonEnum = {}));
30
- export var CardChallengeEnum;
32
+ })(CardRejectionReasonEnum || (exports.CardRejectionReasonEnum = CardRejectionReasonEnum = {}));
33
+ var CardChallengeEnum;
31
34
  (function (CardChallengeEnum) {
32
35
  CardChallengeEnum["HOLD_BELOW_FACE"] = "HOLD_BELOW_FACE";
33
36
  CardChallengeEnum["HOLD_ABOVE_FACE"] = "HOLD_ABOVE_FACE";
34
37
  CardChallengeEnum["HOLD_NEXT_TO_FACE"] = "HOLD_NEXT_TO_FACE";
35
- })(CardChallengeEnum || (CardChallengeEnum = {}));
36
- export var AccountLevelEnum;
38
+ })(CardChallengeEnum || (exports.CardChallengeEnum = CardChallengeEnum = {}));
39
+ var AccountLevelEnum;
37
40
  (function (AccountLevelEnum) {
38
41
  AccountLevelEnum["BRONZE"] = "BRONZE";
39
42
  AccountLevelEnum["SILVER"] = "SILVER";
40
43
  AccountLevelEnum["GOLD"] = "GOLD";
41
- })(AccountLevelEnum || (AccountLevelEnum = {}));
44
+ })(AccountLevelEnum || (exports.AccountLevelEnum = AccountLevelEnum = {}));
@@ -1,4 +1,7 @@
1
- export var Templates;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Templates = void 0;
4
+ var Templates;
2
5
  (function (Templates) {
3
6
  Templates["ADMINISTRATOR_CHANGE_PASSWORD"] = "administrator-change-password";
4
7
  Templates["ADMINISTRATOR_CREATED"] = "administrator-created";
@@ -9,4 +12,4 @@ export var Templates;
9
12
  Templates["REJECTED_DOCUMENT"] = "rejected-document";
10
13
  Templates["VALIDATED_DOCUMENT"] = "validated-document";
11
14
  Templates["VERIFICATION"] = "verification";
12
- })(Templates || (Templates = {}));
15
+ })(Templates || (exports.Templates = Templates = {}));
@@ -1,8 +1,11 @@
1
- export var FailureReasonEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FailureReasonEnum = void 0;
4
+ var FailureReasonEnum;
2
5
  (function (FailureReasonEnum) {
3
6
  FailureReasonEnum["PROVIDERS_UNAVAILABLE"] = "PROVIDERS_UNAVAILABLE";
4
7
  FailureReasonEnum["TIME_EXPIRED"] = "TIME_EXPIRED";
5
8
  FailureReasonEnum["INVALID_DATA"] = "INVALID_DATA";
6
9
  FailureReasonEnum["LIMIT_EXCEEDED"] = "LIMIT_EXCEEDED";
7
10
  FailureReasonEnum["UNKNOWN"] = "UNKNOWN";
8
- })(FailureReasonEnum || (FailureReasonEnum = {}));
11
+ })(FailureReasonEnum || (exports.FailureReasonEnum = FailureReasonEnum = {}));
@@ -1,8 +1,11 @@
1
- export var GatewayIdentificationEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GatewayIdentificationEnum = void 0;
4
+ var GatewayIdentificationEnum;
2
5
  (function (GatewayIdentificationEnum) {
3
6
  GatewayIdentificationEnum["ASAAS"] = "ASAAS";
4
7
  GatewayIdentificationEnum["SICOOB"] = "SICOOB";
5
8
  GatewayIdentificationEnum["SICREDI"] = "SICREDI";
6
9
  GatewayIdentificationEnum["RAKIM"] = "RAKIM";
7
10
  GatewayIdentificationEnum["MOCK"] = "MOCK";
8
- })(GatewayIdentificationEnum || (GatewayIdentificationEnum = {}));
11
+ })(GatewayIdentificationEnum || (exports.GatewayIdentificationEnum = GatewayIdentificationEnum = {}));
@@ -1,16 +1,32 @@
1
- export * from './account-entry.enum';
2
- export * from './anticipation.enum';
3
- export * from './bank-account.enum';
4
- export * from './charge-status.enum';
5
- export * from './customer.enum';
6
- export * from './email.enum';
7
- export * from './failure-reason.enum';
8
- export * from './gateway-identification.enum';
9
- export * from './notification.enum';
10
- export * from './orders-status.enum';
11
- export * from './payable-status.enum';
12
- export * from './payment.enum';
13
- export * from './recipient.enum';
14
- export * from './role.enum';
15
- export * from './tax.enum';
16
- export * from './user-status.enum';
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("./account-entry.enum"), exports);
18
+ __exportStar(require("./anticipation.enum"), exports);
19
+ __exportStar(require("./bank-account.enum"), exports);
20
+ __exportStar(require("./charge-status.enum"), exports);
21
+ __exportStar(require("./customer.enum"), exports);
22
+ __exportStar(require("./email.enum"), exports);
23
+ __exportStar(require("./failure-reason.enum"), exports);
24
+ __exportStar(require("./gateway-identification.enum"), exports);
25
+ __exportStar(require("./notification.enum"), exports);
26
+ __exportStar(require("./orders-status.enum"), exports);
27
+ __exportStar(require("./payable-status.enum"), exports);
28
+ __exportStar(require("./payment.enum"), exports);
29
+ __exportStar(require("./recipient.enum"), exports);
30
+ __exportStar(require("./role.enum"), exports);
31
+ __exportStar(require("./tax.enum"), exports);
32
+ __exportStar(require("./user-status.enum"), exports);
@@ -1,4 +1,7 @@
1
- export var NotificationCategoryEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationImageTypeEnum = exports.NotificationCategoryEnum = void 0;
4
+ var NotificationCategoryEnum;
2
5
  (function (NotificationCategoryEnum) {
3
6
  NotificationCategoryEnum["PAYMENT"] = "PAYMENT";
4
7
  NotificationCategoryEnum["PROFILE"] = "PROFILE";
@@ -6,10 +9,10 @@ export var NotificationCategoryEnum;
6
9
  NotificationCategoryEnum["SECURITY"] = "SECURITY";
7
10
  NotificationCategoryEnum["INFORMATION"] = "INFORMATION";
8
11
  NotificationCategoryEnum["ANNOUNCEMENT"] = "ANNOUNCEMENT";
9
- })(NotificationCategoryEnum || (NotificationCategoryEnum = {}));
10
- export var NotificationImageTypeEnum;
12
+ })(NotificationCategoryEnum || (exports.NotificationCategoryEnum = NotificationCategoryEnum = {}));
13
+ var NotificationImageTypeEnum;
11
14
  (function (NotificationImageTypeEnum) {
12
15
  NotificationImageTypeEnum["STATIC"] = "STATIC";
13
16
  NotificationImageTypeEnum["SVG"] = "SVG";
14
17
  NotificationImageTypeEnum["ANIMATED"] = "ANIMATED";
15
- })(NotificationImageTypeEnum || (NotificationImageTypeEnum = {}));
18
+ })(NotificationImageTypeEnum || (exports.NotificationImageTypeEnum = NotificationImageTypeEnum = {}));
@@ -1,11 +1,14 @@
1
- export var OrderStatusEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderTypeEnum = exports.OrderStatusEnum = void 0;
4
+ var OrderStatusEnum;
2
5
  (function (OrderStatusEnum) {
3
6
  OrderStatusEnum["PENDING"] = "PENDING";
4
7
  OrderStatusEnum["CONFIRMED"] = "CONFIRMED";
5
8
  OrderStatusEnum["FAILED"] = "FAILED";
6
- })(OrderStatusEnum || (OrderStatusEnum = {}));
7
- export var OrderTypeEnum;
9
+ })(OrderStatusEnum || (exports.OrderStatusEnum = OrderStatusEnum = {}));
10
+ var OrderTypeEnum;
8
11
  (function (OrderTypeEnum) {
9
12
  OrderTypeEnum["IMMEDIATE"] = "IMMEDIATE";
10
13
  OrderTypeEnum["SCHEDULED"] = "SCHEDULED";
11
- })(OrderTypeEnum || (OrderTypeEnum = {}));
14
+ })(OrderTypeEnum || (exports.OrderTypeEnum = OrderTypeEnum = {}));
@@ -1,8 +1,11 @@
1
- export var PayableStatusEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayableStatusEnum = void 0;
4
+ var PayableStatusEnum;
2
5
  (function (PayableStatusEnum) {
3
6
  PayableStatusEnum["PENDING"] = "PENDING";
4
7
  PayableStatusEnum["PROCESSING"] = "PROCESSING";
5
8
  PayableStatusEnum["TRANSFERRED"] = "TRANSFERRED";
6
9
  PayableStatusEnum["FAILED"] = "FAILED";
7
10
  PayableStatusEnum["CANCELLED"] = "CANCELLED";
8
- })(PayableStatusEnum || (PayableStatusEnum = {}));
11
+ })(PayableStatusEnum || (exports.PayableStatusEnum = PayableStatusEnum = {}));
@@ -1,12 +1,15 @@
1
- export var PaymentMethodsEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentScheduleEnum = exports.PaymentMethodsEnum = void 0;
4
+ var PaymentMethodsEnum;
2
5
  (function (PaymentMethodsEnum) {
3
6
  PaymentMethodsEnum["PIX"] = "PIX";
4
7
  PaymentMethodsEnum["CREDIT_CARD"] = "CREDIT_CARD";
5
8
  PaymentMethodsEnum["DEBIT_CARD"] = "DEBIT_CARD";
6
- })(PaymentMethodsEnum || (PaymentMethodsEnum = {}));
7
- export var PaymentScheduleEnum;
9
+ })(PaymentMethodsEnum || (exports.PaymentMethodsEnum = PaymentMethodsEnum = {}));
10
+ var PaymentScheduleEnum;
8
11
  (function (PaymentScheduleEnum) {
9
12
  PaymentScheduleEnum["CUSTOM_DATE"] = "custom";
10
13
  PaymentScheduleEnum["ON_DUE_DATE"] = "dueAt";
11
14
  PaymentScheduleEnum["IMMEDIATE"] = "today";
12
- })(PaymentScheduleEnum || (PaymentScheduleEnum = {}));
15
+ })(PaymentScheduleEnum || (exports.PaymentScheduleEnum = PaymentScheduleEnum = {}));
@@ -1,9 +1,12 @@
1
- export var RecipientTypeEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProviderAction = exports.ProviderStatusEnum = exports.RecipientLegalTypeEnum = exports.RecipientTypeEnum = void 0;
4
+ var RecipientTypeEnum;
2
5
  (function (RecipientTypeEnum) {
3
6
  RecipientTypeEnum["CUSTOMER"] = "CUSTOMER";
4
7
  RecipientTypeEnum["ADMINISTRATOR"] = "ADMINISTRATOR";
5
- })(RecipientTypeEnum || (RecipientTypeEnum = {}));
6
- export var RecipientLegalTypeEnum;
8
+ })(RecipientTypeEnum || (exports.RecipientTypeEnum = RecipientTypeEnum = {}));
9
+ var RecipientLegalTypeEnum;
7
10
  (function (RecipientLegalTypeEnum) {
8
11
  RecipientLegalTypeEnum["SA"] = "SA";
9
12
  RecipientLegalTypeEnum["LTDA"] = "LTDA";
@@ -11,17 +14,17 @@ export var RecipientLegalTypeEnum;
11
14
  RecipientLegalTypeEnum["ME"] = "ME";
12
15
  RecipientLegalTypeEnum["EPP"] = "EPP";
13
16
  RecipientLegalTypeEnum["EIRELI"] = "EIRELI";
14
- })(RecipientLegalTypeEnum || (RecipientLegalTypeEnum = {}));
15
- export var ProviderStatusEnum;
17
+ })(RecipientLegalTypeEnum || (exports.RecipientLegalTypeEnum = RecipientLegalTypeEnum = {}));
18
+ var ProviderStatusEnum;
16
19
  (function (ProviderStatusEnum) {
17
20
  ProviderStatusEnum["ACTIVE"] = "ACTIVE";
18
21
  ProviderStatusEnum["DELETED"] = "DELETED";
19
22
  ProviderStatusEnum["INACTIVE"] = "INACTIVE";
20
23
  ProviderStatusEnum["WAITING"] = "WAITING";
21
24
  ProviderStatusEnum["REJECTED"] = "REJECTED";
22
- })(ProviderStatusEnum || (ProviderStatusEnum = {}));
23
- export var ProviderAction;
25
+ })(ProviderStatusEnum || (exports.ProviderStatusEnum = ProviderStatusEnum = {}));
26
+ var ProviderAction;
24
27
  (function (ProviderAction) {
25
28
  ProviderAction["UPDATE_PROVIDER"] = "UPDATE_PROVIDER";
26
29
  ProviderAction["NO_ACTION"] = "NO_ACTION";
27
- })(ProviderAction || (ProviderAction = {}));
30
+ })(ProviderAction || (exports.ProviderAction = ProviderAction = {}));
@@ -1,4 +1,7 @@
1
- export var Action;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Permission = exports.Action = void 0;
4
+ var Action;
2
5
  (function (Action) {
3
6
  Action["Manage"] = "manage";
4
7
  Action["Create"] = "create";
@@ -8,8 +11,8 @@ export var Action;
8
11
  Action["Enable"] = "enable";
9
12
  Action["Disable"] = "disable";
10
13
  Action["Resolve"] = "resolve";
11
- })(Action || (Action = {}));
12
- export var Permission;
14
+ })(Action || (exports.Action = Action = {}));
15
+ var Permission;
13
16
  (function (Permission) {
14
17
  Permission["readDashboard"] = "READ_DASHBOARD";
15
18
  Permission["manageSupportTickets"] = "MANAGE_SUPPORT_TICKETS";
@@ -35,4 +38,4 @@ export var Permission;
35
38
  Permission["readRecipientFee"] = "READ_RECIPIENT_FEE";
36
39
  Permission["deleteRecipientFee"] = "DELETE_RECIPIENT_FEE";
37
40
  Permission["manageRecipientFee"] = "MANAGE_RECIPIENT_FEE";
38
- })(Permission || (Permission = {}));
41
+ })(Permission || (exports.Permission = Permission = {}));
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MetaEnum = exports.TaxStatusEnum = exports.TaxTypesEnum = void 0;
1
4
  var TaxTypesEnum;
2
5
  (function (TaxTypesEnum) {
3
6
  TaxTypesEnum["IPTU"] = "IPTU";
@@ -7,17 +10,16 @@ var TaxTypesEnum;
7
10
  TaxTypesEnum["LICENSING"] = "LICENSING";
8
11
  TaxTypesEnum["WASTE_COLLECTION"] = "WASTE_COLLECTION";
9
12
  TaxTypesEnum["SANITATION"] = "SANITATION";
10
- })(TaxTypesEnum || (TaxTypesEnum = {}));
13
+ })(TaxTypesEnum || (exports.TaxTypesEnum = TaxTypesEnum = {}));
11
14
  var TaxStatusEnum;
12
15
  (function (TaxStatusEnum) {
13
16
  TaxStatusEnum["PAID"] = "PAID";
14
17
  TaxStatusEnum["PROCESSING"] = "PROCESSING";
15
18
  TaxStatusEnum["PENDING"] = "PENDING";
16
19
  TaxStatusEnum["OVERDUE"] = "OVERDUE";
17
- })(TaxStatusEnum || (TaxStatusEnum = {}));
20
+ })(TaxStatusEnum || (exports.TaxStatusEnum = TaxStatusEnum = {}));
18
21
  var MetaEnum;
19
22
  (function (MetaEnum) {
20
23
  MetaEnum["PROPERTY"] = "PROPERTY";
21
24
  MetaEnum["VEHICLE"] = "VEHICLE";
22
- })(MetaEnum || (MetaEnum = {}));
23
- export { TaxTypesEnum, TaxStatusEnum, MetaEnum };
25
+ })(MetaEnum || (exports.MetaEnum = MetaEnum = {}));
@@ -1,7 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserStatusEnum = void 0;
1
4
  var UserStatusEnum;
2
5
  (function (UserStatusEnum) {
3
6
  UserStatusEnum["ACTIVE"] = "ACTIVE";
4
7
  UserStatusEnum["INACTIVE"] = "INACTIVE";
5
8
  UserStatusEnum["BLOCKED"] = "BLOCKED";
6
- })(UserStatusEnum || (UserStatusEnum = {}));
7
- export { UserStatusEnum };
9
+ })(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
- export var brandEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.brandEnum = void 0;
4
+ var brandEnum;
2
5
  (function (brandEnum) {
3
6
  brandEnum["VISA"] = "VISA";
4
7
  brandEnum["MASTERCARD"] = "MASTERCARD";
@@ -10,4 +13,4 @@ export var brandEnum;
10
13
  brandEnum["VISA_ELECTRON"] = "VISA_ELECTRON";
11
14
  brandEnum["PIX"] = "PIX";
12
15
  brandEnum["BOLETO"] = "BOLETO";
13
- })(brandEnum || (brandEnum = {}));
16
+ })(brandEnum || (exports.brandEnum = brandEnum = {}));
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +1,42 @@
1
- export * from './account-entry.type';
2
- export * from './address.type';
3
- export * from './anticipation.type';
4
- export * from './card.type';
5
- export * from './charge-metadata.type';
6
- export * from './charge.type';
7
- export * from './core.type';
8
- export * from './customer.type';
9
- export * from './environment.type';
10
- export * from './failure-reason.type';
11
- export * from './fee.type';
12
- export * from './gateway-identification.type';
13
- export * from './health-check-plugin.type';
14
- export * from './notification.type';
15
- export * from './order.type';
16
- export * from './payable.type';
17
- export * from './payment-provider.type';
18
- export * from './role.type';
19
- export * from './charge-schedule.type';
20
- export * from './payment-service.type';
21
- export * from './receipt.type';
22
- export * from './payment.type';
23
- export * from './tax.type';
24
- export * from './service-card-vault.type';
25
- export * from './receipt-metadata.type';
26
- export * from './user.type';
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("./account-entry.type"), exports);
18
+ __exportStar(require("./address.type"), exports);
19
+ __exportStar(require("./anticipation.type"), exports);
20
+ __exportStar(require("./card.type"), exports);
21
+ __exportStar(require("./charge-metadata.type"), exports);
22
+ __exportStar(require("./charge.type"), exports);
23
+ __exportStar(require("./core.type"), exports);
24
+ __exportStar(require("./customer.type"), exports);
25
+ __exportStar(require("./environment.type"), exports);
26
+ __exportStar(require("./failure-reason.type"), exports);
27
+ __exportStar(require("./fee.type"), exports);
28
+ __exportStar(require("./gateway-identification.type"), exports);
29
+ __exportStar(require("./health-check-plugin.type"), exports);
30
+ __exportStar(require("./notification.type"), exports);
31
+ __exportStar(require("./order.type"), exports);
32
+ __exportStar(require("./payable.type"), exports);
33
+ __exportStar(require("./payment-provider.type"), exports);
34
+ __exportStar(require("./role.type"), exports);
35
+ __exportStar(require("./charge-schedule.type"), exports);
36
+ __exportStar(require("./payment-service.type"), exports);
37
+ __exportStar(require("./receipt.type"), exports);
38
+ __exportStar(require("./payment.type"), exports);
39
+ __exportStar(require("./tax.type"), exports);
40
+ __exportStar(require("./service-card-vault.type"), exports);
41
+ __exportStar(require("./receipt-metadata.type"), exports);
42
+ __exportStar(require("./user.type"), exports);
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,13 @@
1
- export var PaymentGatewayTypeEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OperationTypeEnum = exports.PaymentGatewayTypeEnum = void 0;
4
+ var PaymentGatewayTypeEnum;
2
5
  (function (PaymentGatewayTypeEnum) {
3
6
  PaymentGatewayTypeEnum["PRIMARY"] = "PRIMARY";
4
7
  PaymentGatewayTypeEnum["SECONDARY"] = "SECONDARY";
5
- })(PaymentGatewayTypeEnum || (PaymentGatewayTypeEnum = {}));
6
- export var OperationTypeEnum;
8
+ })(PaymentGatewayTypeEnum || (exports.PaymentGatewayTypeEnum = PaymentGatewayTypeEnum = {}));
9
+ var OperationTypeEnum;
7
10
  (function (OperationTypeEnum) {
8
11
  OperationTypeEnum["PAYMENT"] = "PAYMENT";
9
12
  OperationTypeEnum["RECEIVING"] = "RECEIVING";
10
- })(OperationTypeEnum || (OperationTypeEnum = {}));
13
+ })(OperationTypeEnum || (exports.OperationTypeEnum = OperationTypeEnum = {}));
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,8 @@
1
- export var PaymentVariantEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentVariantEnum = void 0;
4
+ var PaymentVariantEnum;
2
5
  (function (PaymentVariantEnum) {
3
6
  PaymentVariantEnum["SCHEDULED"] = "SCHEDULED";
4
7
  PaymentVariantEnum["IMMEDIATE"] = "IMMEDIATE";
5
- })(PaymentVariantEnum || (PaymentVariantEnum = {}));
8
+ })(PaymentVariantEnum || (exports.PaymentVariantEnum = PaymentVariantEnum = {}));
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,8 @@
1
- export var AccountTypeEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountTypeEnum = void 0;
4
+ var AccountTypeEnum;
2
5
  (function (AccountTypeEnum) {
3
6
  AccountTypeEnum["CUSTOMER"] = "CUSTOMER";
4
7
  AccountTypeEnum["ADMINISTRATOR"] = "ADMINISTRATOR";
5
- })(AccountTypeEnum || (AccountTypeEnum = {}));
8
+ })(AccountTypeEnum || (exports.AccountTypeEnum = AccountTypeEnum = {}));
package/package.json CHANGED
@@ -1,21 +1,32 @@
1
1
  {
2
2
  "name": "@postpaybr/contracts",
3
- "version": "1.0.3",
4
- "type": "module",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
3
+ "version": "1.0.4",
4
+ "description": "Shared contracts and types for PostPay",
7
5
  "files": [
8
6
  "dist"
9
7
  ],
10
- "scripts": {
11
- "build": "tsc -p tsconfig.build.json"
8
+ "exports": {
9
+ "./types": {
10
+ "types": "./dist/types/index.d.ts",
11
+ "default": "./dist/types/index.js"
12
+ },
13
+ "./enums": {
14
+ "types": "./dist/enums/index.d.ts",
15
+ "default": "./dist/enums/index.js"
16
+ }
12
17
  },
13
- "publishConfig": {
14
- "access": "public"
18
+ "scripts": {
19
+ "build": "tsc -p tsconfig.build.json",
20
+ "prepublishOnly": "npm run build"
15
21
  },
16
- "exports": {
17
- ".": "./dist/index.js",
18
- "./types": "./dist/types/index.js",
19
- "./enums": "./dist/enums/index.js"
22
+ "keywords": [
23
+ "contracts",
24
+ "types",
25
+ "postpay"
26
+ ],
27
+ "author": "",
28
+ "license": "UNLICENSED",
29
+ "devDependencies": {
30
+ "typescript": "^5.0.0"
20
31
  }
21
32
  }