@pax2pay/client 0.10.21 → 0.10.23
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.
- package/.eslintrc +19 -13
- package/Client/Auth/Session/Item.ts +3 -2
- package/Client/Auth/Session/index.ts +1 -1
- package/Client/Cards/actions/pax2pay.spec.ignore.ts +4 -2
- package/Client/Cards/create/fake.spec.ignore.ts +7 -5
- package/Client/Cards/create/ixaris.spec.ignore.ts +4 -2
- package/Client/Cards/create/modulr.spec.ignore.ts +4 -2
- package/Client/Cards/create/pax2pay.spec.ignore.ts +7 -5
- package/Client/Cards/list.spec.ignore.ts +6 -3
- package/Client/Connection.ts +24 -11
- package/Client/Credentials/index.ts +3 -2
- package/Client/List.ts +3 -2
- package/Client/Organisations/list.spec.ignore.ts +2 -1
- package/Client/Reports/index.ts +2 -1
- package/Client/Transfers/index.ts +3 -2
- package/Client/Transfers/list.spec.ignore.ts +4 -2
- package/Client/Users/index.ts +4 -2
- package/Client/Users/list.spec.ignore.ts +6 -3
- package/Client/index.ts +4 -1
- package/dist/Client/Auth/Session/Item.js +4 -2
- package/dist/Client/Auth/Session/Item.js.map +1 -1
- package/dist/Client/Auth/Session/index.js.map +1 -1
- package/dist/Client/Connection.js +20 -10
- package/dist/Client/Connection.js.map +1 -1
- package/dist/Client/Credentials/index.js +4 -2
- package/dist/Client/Credentials/index.js.map +1 -1
- package/dist/Client/List.js +4 -2
- package/dist/Client/List.js.map +1 -1
- package/dist/Client/Reports/index.js +2 -1
- package/dist/Client/Reports/index.js.map +1 -1
- package/dist/Client/Transfers/index.js +4 -2
- package/dist/Client/Transfers/index.js.map +1 -1
- package/dist/Client/Users/index.js +4 -2
- package/dist/Client/Users/index.js.map +1 -1
- package/dist/Client/index.js.map +1 -1
- package/dist/model/AccountState.d.ts +1 -1
- package/dist/model/AccountType.d.ts +1 -1
- package/dist/model/Batch/Item/Status.d.ts +1 -1
- package/dist/model/Batch/Status.d.ts +1 -1
- package/dist/model/Batch/Type.d.ts +1 -1
- package/dist/model/BeneficiaryRequestStatus.d.ts +1 -1
- package/dist/model/BeneficiaryStatus.d.ts +1 -1
- package/dist/model/BeneficiarySubType.d.ts +1 -1
- package/dist/model/BeneficiarySubTypeSearch.d.ts +1 -1
- package/dist/model/BookingInfoType.d.ts +1 -1
- package/dist/model/CardForm.d.ts +1 -1
- package/dist/model/CardScheduleTaskType.d.ts +1 -1
- package/dist/model/CardState.d.ts +1 -1
- package/dist/model/CardState.js +14 -7
- package/dist/model/CardState.js.map +1 -1
- package/dist/model/CardStateChangeDesiredState.d.ts +1 -1
- package/dist/model/CardStatement.d.ts +2 -2
- package/dist/model/CardStatement.js +2 -2
- package/dist/model/CardStatement.js.map +1 -1
- package/dist/model/CardTypeRequestAvailabilityType.d.ts +1 -1
- package/dist/model/CardTypeSpecificationFlag.d.ts +1 -1
- package/dist/model/CardUsage.d.ts +1 -1
- package/dist/model/Config/Notice/FundingLimit/NoticeTriggerType.d.ts +1 -1
- package/dist/model/Config/Notice/Target/Type.d.ts +1 -1
- package/dist/model/Config/Notice/Type.d.ts +1 -1
- package/dist/model/Config/SsoProvider/Type.d.ts +1 -1
- package/dist/model/ConfirmationOfPayeeAccountType.d.ts +1 -1
- package/dist/model/ConfirmationOfPayeeResponseStatus.d.ts +1 -1
- package/dist/model/DayOfWeek.d.ts +1 -1
- package/dist/model/DeliveryStatus.d.ts +1 -1
- package/dist/model/DestinationType.d.ts +1 -1
- package/dist/model/DownloadFileFormat.d.ts +1 -1
- package/dist/model/FundingAccountIdentifierType.d.ts +1 -1
- package/dist/model/FundingType.d.ts +1 -1
- package/dist/model/Inclusion.d.ts +1 -1
- package/dist/model/InvokingSystem.d.ts +1 -1
- package/dist/model/MerchantResponseStatus.d.ts +1 -1
- package/dist/model/MerchantType.d.ts +1 -1
- package/dist/model/MetadataFormat/Field/ValueCategory.d.ts +1 -1
- package/dist/model/MetadataFormat/Field/ValueType.d.ts +1 -1
- package/dist/model/MetadataFormat/SubFormatType.d.ts +1 -1
- package/dist/model/Notification/CreatableType.d.ts +1 -1
- package/dist/model/Notification/Format.d.ts +1 -1
- package/dist/model/Notification/Tag.d.ts +1 -1
- package/dist/model/Notification/Type.d.ts +1 -1
- package/dist/model/OmnisetupFlags.d.ts +1 -1
- package/dist/model/OrganisationFlag.d.ts +1 -1
- package/dist/model/OrganisationFlag.js +4 -2
- package/dist/model/OrganisationFlag.js.map +1 -1
- package/dist/model/OrganisationRealm.d.ts +1 -1
- package/dist/model/OrganisationStatus.d.ts +1 -1
- package/dist/model/OrganisationStatusV2.d.ts +1 -1
- package/dist/model/PaxpayFeature.d.ts +1 -1
- package/dist/model/PaymentDeliveryStatus.d.ts +1 -1
- package/dist/model/PaymentMethodType.d.ts +1 -1
- package/dist/model/PaymentOperationType.d.ts +1 -1
- package/dist/model/PaymentOperationType.js +16 -8
- package/dist/model/PaymentOperationType.js.map +1 -1
- package/dist/model/PaymentStatus.d.ts +1 -1
- package/dist/model/ProductType.d.ts +1 -1
- package/dist/model/ProviderCode.d.ts +1 -1
- package/dist/model/Report/ReportSubscriptionFrequencyType.d.ts +1 -1
- package/dist/model/Report/ReportSubscriptionInvocationOutcome.d.ts +1 -1
- package/dist/model/Report/ReportSubscriptionStatus.d.ts +1 -1
- package/dist/model/Report/ReportType.d.ts +1 -1
- package/dist/model/Role.d.ts +1 -1
- package/dist/model/Scheme.d.ts +1 -1
- package/dist/model/StatementReportRowActionType.d.ts +1 -1
- package/dist/model/StatementReportRowActionType.js +6 -3
- package/dist/model/StatementReportRowActionType.js.map +1 -1
- package/dist/model/StatementReportSubType.d.ts +1 -1
- package/dist/model/StatementTransferSpecificType.d.ts +1 -1
- package/dist/model/TaskStatus.d.ts +1 -1
- package/dist/model/TierID.d.ts +1 -1
- package/dist/model/TransactionType.d.ts +1 -1
- package/dist/model/TransferDestinationAddressType.d.ts +1 -1
- package/dist/model/TransferDirection.d.ts +1 -1
- package/dist/model/TransferStatus.d.ts +1 -1
- package/dist/model/Usage.d.ts +1 -1
- package/dist/model/UserStatus.d.ts +1 -1
- package/model/AccountState.ts +1 -1
- package/model/AccountType.ts +1 -1
- package/model/Batch/Item/Status.ts +1 -1
- package/model/Batch/Status.ts +1 -1
- package/model/Batch/Type.ts +1 -1
- package/model/BeneficiaryRequestStatus.ts +1 -1
- package/model/BeneficiaryResponse.ts +1 -1
- package/model/BeneficiaryStatus.ts +1 -1
- package/model/BeneficiarySubType.ts +1 -1
- package/model/BeneficiarySubTypeSearch.ts +1 -1
- package/model/BookingInfoType.ts +1 -1
- package/model/CardForm.ts +1 -1
- package/model/CardScheduleTaskType.ts +1 -1
- package/model/CardState.ts +15 -8
- package/model/CardStateChangeDesiredState.ts +1 -1
- package/model/CardStatement.ts +4 -4
- package/model/CardTypeRequestAvailabilityType.ts +1 -1
- package/model/CardTypeSpecificationFlag.ts +1 -1
- package/model/CardUsage.ts +1 -1
- package/model/Config/Notice/FundingLimit/NoticeTriggerType.ts +1 -1
- package/model/Config/Notice/Target/Type.ts +1 -1
- package/model/Config/Notice/Type.ts +1 -1
- package/model/Config/SsoProvider/Type.ts +1 -1
- package/model/ConfirmationOfPayeeAccountType.ts +1 -1
- package/model/ConfirmationOfPayeeResponseStatus.ts +1 -1
- package/model/DayOfWeek.ts +1 -1
- package/model/DeliveryStatus.ts +1 -1
- package/model/DestinationType.ts +1 -1
- package/model/DownloadFileFormat.ts +1 -1
- package/model/FundingAccountIdentifierType.ts +1 -1
- package/model/FundingType.ts +1 -1
- package/model/Inclusion.ts +1 -1
- package/model/InvokingSystem.ts +1 -1
- package/model/MerchantResponseStatus.ts +1 -1
- package/model/MerchantType.ts +1 -1
- package/model/MetadataFormat/Field/ValueCategory.ts +1 -1
- package/model/MetadataFormat/Field/ValueType.ts +1 -1
- package/model/MetadataFormat/SubFormatType.ts +1 -1
- package/model/Notification/CreatableType.ts +1 -1
- package/model/Notification/Format.ts +1 -1
- package/model/Notification/Tag.ts +1 -1
- package/model/Notification/Type.ts +1 -1
- package/model/OmnisetupFlags.ts +1 -1
- package/model/OrganisationFlag.ts +5 -3
- package/model/OrganisationRealm.ts +1 -1
- package/model/OrganisationStatus.ts +1 -1
- package/model/OrganisationStatusV2.ts +1 -1
- package/model/PaxpayFeature.ts +1 -1
- package/model/PaymentDeliveryStatus.ts +1 -1
- package/model/PaymentMethodType.ts +1 -1
- package/model/PaymentOperationType.ts +17 -9
- package/model/PaymentStatus.ts +1 -1
- package/model/ProductType.ts +1 -1
- package/model/ProviderCode.ts +1 -1
- package/model/Report/ReportSubscriptionFrequencyType.ts +1 -1
- package/model/Report/ReportSubscriptionInvocationOutcome.ts +1 -1
- package/model/Report/ReportSubscriptionStatus.ts +1 -1
- package/model/Report/ReportType.ts +1 -1
- package/model/Role.ts +1 -1
- package/model/Scheme.ts +1 -1
- package/model/StatementReportRowActionType.ts +7 -4
- package/model/StatementReportSubType.ts +1 -1
- package/model/StatementTransferSpecificType.ts +1 -1
- package/model/TaskStatus.ts +1 -1
- package/model/TierID.ts +1 -1
- package/model/TransactionStatus.ts +1 -1
- package/model/TransactionType.ts +1 -1
- package/model/TransferDestinationAddressType.ts +1 -1
- package/model/TransferDirection.ts +1 -1
- package/model/TransferStatus.ts +1 -1
- package/model/Usage.ts +1 -1
- package/model/UserStatus.ts +1 -1
- package/package.json +6 -5
package/model/DayOfWeek.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type DayOfWeek = typeof DayOfWeek.values[number]
|
|
3
|
+
export type DayOfWeek = (typeof DayOfWeek.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace DayOfWeek {
|
|
6
6
|
export const values = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"] as const
|
package/model/DeliveryStatus.ts
CHANGED
package/model/DestinationType.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type DestinationType = typeof DestinationType.values[number]
|
|
3
|
+
export type DestinationType = (typeof DestinationType.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace DestinationType {
|
|
6
6
|
export const values = ["DOWNLOAD", "EMAIL", "SFTP"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type DownloadFileFormat = typeof DownloadFileFormat.values[number]
|
|
3
|
+
export type DownloadFileFormat = (typeof DownloadFileFormat.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace DownloadFileFormat {
|
|
6
6
|
export const values = ["CSV", "PDF", "HTML"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const fundingAccountIdentifierType = ["SCAN", "IBAN", "UNKNOWN"] as const
|
|
2
2
|
|
|
3
|
-
export type FundingAccountIdentifierType = typeof fundingAccountIdentifierType[number]
|
|
3
|
+
export type FundingAccountIdentifierType = (typeof fundingAccountIdentifierType)[number]
|
|
4
4
|
|
|
5
5
|
export namespace FundingAccountIdentifierType {
|
|
6
6
|
export function is(value: unknown): value is FundingAccountIdentifierType {
|
package/model/FundingType.ts
CHANGED
package/model/Inclusion.ts
CHANGED
package/model/InvokingSystem.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type MerchantResponseStatus = typeof MerchantResponseStatus.values[number]
|
|
3
|
+
export type MerchantResponseStatus = (typeof MerchantResponseStatus.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace MerchantResponseStatus {
|
|
6
6
|
export const values = ["active", "deleted"] as const
|
package/model/MerchantType.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type ValueCategory = typeof ValueCategory.values[number]
|
|
3
|
+
export type ValueCategory = (typeof ValueCategory.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace ValueCategory {
|
|
6
6
|
export const values = ["supplier reference", "agent reference", "customer name"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type SubFormatType = typeof SubFormatType.values[number]
|
|
3
|
+
export type SubFormatType = (typeof SubFormatType.values)[number]
|
|
4
4
|
export namespace SubFormatType {
|
|
5
5
|
export const values = ["top2", "top5"] as const
|
|
6
6
|
export function expectedInputLength(value: SubFormatType) {
|
package/model/OmnisetupFlags.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const omnisetupFlags = ["SABRE", "PAX2PAY_DIRECT"] as const
|
|
2
|
-
export type OmnisetupFlags = typeof omnisetupFlags[number]
|
|
2
|
+
export type OmnisetupFlags = (typeof omnisetupFlags)[number]
|
|
3
3
|
|
|
4
4
|
export namespace OmnisetupFlags {
|
|
5
5
|
export function is(value: unknown): value is OmnisetupFlags {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type OrganisationFlag = typeof OrganisationFlag.types[number]
|
|
3
|
+
export type OrganisationFlag = (typeof OrganisationFlag.types)[number]
|
|
4
4
|
|
|
5
5
|
export namespace OrganisationFlag {
|
|
6
6
|
export const types = [
|
|
@@ -27,10 +27,12 @@ export namespace OrganisationFlag {
|
|
|
27
27
|
export const type = isly.string(types)
|
|
28
28
|
export const is = type.is
|
|
29
29
|
export function toDisplay(value: OrganisationFlag): string {
|
|
30
|
-
if (value == "PAX2PAY_DIRECT")
|
|
30
|
+
if (value == "PAX2PAY_DIRECT") {
|
|
31
31
|
return "ppdirect"
|
|
32
|
-
|
|
32
|
+
}
|
|
33
|
+
if (value == "EEA_CUSTOMER") {
|
|
33
34
|
return "EEA"
|
|
35
|
+
}
|
|
34
36
|
return value.toLowerCase().replaceAll("_", " ")
|
|
35
37
|
}
|
|
36
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { OrganisationStatusV2 } from "./OrganisationStatusV2"
|
|
3
3
|
|
|
4
|
-
export type OrganisationStatus = typeof OrganisationStatus.values[number]
|
|
4
|
+
export type OrganisationStatus = (typeof OrganisationStatus.values)[number]
|
|
5
5
|
|
|
6
6
|
export namespace OrganisationStatus {
|
|
7
7
|
export const values = ["ACTIVE", "INACTIVE", "DELETED"] as const
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { OrganisationStatus } from "./OrganisationStatus"
|
|
3
3
|
|
|
4
|
-
export type OrganisationStatusV2 = typeof OrganisationStatusV2.values[number]
|
|
4
|
+
export type OrganisationStatusV2 = (typeof OrganisationStatusV2.values)[number]
|
|
5
5
|
|
|
6
6
|
export namespace OrganisationStatusV2 {
|
|
7
7
|
export const values = ["active", "inactive", "deleted"] as const
|
package/model/PaxpayFeature.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { DeliveryStatus } from "./DeliveryStatus"
|
|
3
3
|
|
|
4
|
-
export type PaymentDeliveryStatus = typeof PaymentDeliveryStatus.values[number]
|
|
4
|
+
export type PaymentDeliveryStatus = (typeof PaymentDeliveryStatus.values)[number]
|
|
5
5
|
|
|
6
6
|
export namespace PaymentDeliveryStatus {
|
|
7
7
|
export const values = ["success", "failure", "todo", "pending", "declined"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type PaymentMethodType = typeof PaymentMethodType.values[number]
|
|
3
|
+
export type PaymentMethodType = (typeof PaymentMethodType.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace PaymentMethodType {
|
|
6
6
|
export const values = ["card", "transfer"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type PaymentOperationType = typeof PaymentOperationType.types[number]
|
|
3
|
+
export type PaymentOperationType = (typeof PaymentOperationType.types)[number]
|
|
4
4
|
|
|
5
5
|
export namespace PaymentOperationType {
|
|
6
6
|
export const types = [
|
|
@@ -82,22 +82,30 @@ export namespace PaymentOperationType {
|
|
|
82
82
|
export const type = isly.string(types)
|
|
83
83
|
export const is = type.is
|
|
84
84
|
export function toDisplay(value: PaymentOperationType): string {
|
|
85
|
-
if (value == "reversal fee")
|
|
85
|
+
if (value == "reversal fee") {
|
|
86
86
|
return "fee reversal"
|
|
87
|
-
|
|
87
|
+
}
|
|
88
|
+
if (value == "refund fee") {
|
|
88
89
|
return "fee refund"
|
|
89
|
-
|
|
90
|
+
}
|
|
91
|
+
if (value == "thawed") {
|
|
90
92
|
return "unfrozen"
|
|
91
|
-
|
|
93
|
+
}
|
|
94
|
+
if (value == "direct debit") {
|
|
92
95
|
return "Direct Debit"
|
|
93
|
-
|
|
96
|
+
}
|
|
97
|
+
if (value == "faster payments") {
|
|
94
98
|
return "Faster Payments"
|
|
95
|
-
|
|
99
|
+
}
|
|
100
|
+
if (value == "SEPA instant") {
|
|
96
101
|
return "SEPA Instant"
|
|
97
|
-
|
|
102
|
+
}
|
|
103
|
+
if (value == "provider internal") {
|
|
98
104
|
return "Provider Internal"
|
|
99
|
-
|
|
105
|
+
}
|
|
106
|
+
if (value == "chargeback") {
|
|
100
107
|
return "Chargeback"
|
|
108
|
+
}
|
|
101
109
|
return value
|
|
102
110
|
}
|
|
103
111
|
}
|
package/model/PaymentStatus.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { AccountState } from "./AccountState"
|
|
3
3
|
|
|
4
|
-
export type PaymentStatus = typeof PaymentStatus.values[number]
|
|
4
|
+
export type PaymentStatus = (typeof PaymentStatus.values)[number]
|
|
5
5
|
|
|
6
6
|
export namespace PaymentStatus {
|
|
7
7
|
export const values = [
|
package/model/ProductType.ts
CHANGED
|
@@ -12,7 +12,7 @@ const productType = [
|
|
|
12
12
|
"ATTRACTION",
|
|
13
13
|
"BAGGAGE_TRACKING",
|
|
14
14
|
] as const
|
|
15
|
-
export type ProductType = typeof productType[number]
|
|
15
|
+
export type ProductType = (typeof productType)[number]
|
|
16
16
|
|
|
17
17
|
export namespace ProductType {
|
|
18
18
|
export function is(value: unknown): value is ProductType {
|
package/model/ProviderCode.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type ProviderCode = typeof ProviderCode.types[number]
|
|
3
|
+
export type ProviderCode = (typeof ProviderCode.types)[number]
|
|
4
4
|
|
|
5
5
|
export namespace ProviderCode {
|
|
6
6
|
export const types = ["conferma", "ixaris", "wex", "fake", "lodged", "modulr", "unknown", "pax2pay"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type ReportSubscriptionFrequencyType = typeof ReportSubscriptionFrequencyType.values[number]
|
|
3
|
+
export type ReportSubscriptionFrequencyType = (typeof ReportSubscriptionFrequencyType.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace ReportSubscriptionFrequencyType {
|
|
6
6
|
export const values = ["DAILY", "WEEKLY", "MONTHLY"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type ReportSubscriptionInvocationOutcome = typeof ReportSubscriptionInvocationOutcome.values[number]
|
|
3
|
+
export type ReportSubscriptionInvocationOutcome = (typeof ReportSubscriptionInvocationOutcome.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace ReportSubscriptionInvocationOutcome {
|
|
6
6
|
export const values = ["SUCCESS", "FAILURE"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type ReportSubscriptionStatus = typeof ReportSubscriptionStatus.values[number]
|
|
3
|
+
export type ReportSubscriptionStatus = (typeof ReportSubscriptionStatus.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace ReportSubscriptionStatus {
|
|
6
6
|
export const values = ["ACTIVE", "DELETED"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type ReportType = typeof ReportType.values[number]
|
|
3
|
+
export type ReportType = (typeof ReportType.values)[number]
|
|
4
4
|
export namespace ReportType {
|
|
5
5
|
export const values = ["RECONCILIATION", "STATEMENT"] as const
|
|
6
6
|
export const type = isly.string<ReportType>(values)
|
package/model/Role.ts
CHANGED
package/model/Scheme.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type StatementReportRowActionType = typeof StatementReportRowActionType.values[number]
|
|
1
|
+
export type StatementReportRowActionType = (typeof StatementReportRowActionType.values)[number]
|
|
2
2
|
|
|
3
3
|
export namespace StatementReportRowActionType {
|
|
4
4
|
export const values = [
|
|
@@ -26,12 +26,15 @@ export namespace StatementReportRowActionType {
|
|
|
26
26
|
return typeof value == "string" && values.includes(value as StatementReportRowActionType)
|
|
27
27
|
}
|
|
28
28
|
export function toDisplay(value: StatementReportRowActionType): string {
|
|
29
|
-
if (value == "REFUND_FEE")
|
|
29
|
+
if (value == "REFUND_FEE") {
|
|
30
30
|
return "FEE_REFUND"
|
|
31
|
-
|
|
31
|
+
}
|
|
32
|
+
if (value == "REVERSAL_FEE") {
|
|
32
33
|
return "FEE_REVERSAL"
|
|
33
|
-
|
|
34
|
+
}
|
|
35
|
+
if (value == "SCHEDULED_CARD_AMENDMENT") {
|
|
34
36
|
return "SCHEDULED_CARD"
|
|
37
|
+
}
|
|
35
38
|
return value
|
|
36
39
|
}
|
|
37
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type StatementReportSubType = typeof StatementReportSubType.values[number]
|
|
1
|
+
export type StatementReportSubType = (typeof StatementReportSubType.values)[number]
|
|
2
2
|
|
|
3
3
|
export namespace StatementReportSubType {
|
|
4
4
|
export const values = ["SETTLED", "PENDING", "PROGNOSIS", "FUTURE_PROGNOSIS", "UNUSED_CARDS_PROGNOSIS"] as const
|
|
@@ -8,7 +8,7 @@ const statementTransferSpecificType = [
|
|
|
8
8
|
"PROVIDER_INTERNAL",
|
|
9
9
|
"SWIFT",
|
|
10
10
|
] as const
|
|
11
|
-
export type StatementTransferSpecificType = typeof statementTransferSpecificType[number]
|
|
11
|
+
export type StatementTransferSpecificType = (typeof statementTransferSpecificType)[number]
|
|
12
12
|
|
|
13
13
|
export namespace StatementTransferSpecificType {
|
|
14
14
|
export function is(value: unknown): value is StatementTransferSpecificType {
|
package/model/TaskStatus.ts
CHANGED
package/model/TierID.ts
CHANGED
|
@@ -9,7 +9,7 @@ const transactionStatus = [
|
|
|
9
9
|
"WITHDRAWN",
|
|
10
10
|
] as const
|
|
11
11
|
|
|
12
|
-
export type TransactionStatus = typeof transactionStatus[number]
|
|
12
|
+
export type TransactionStatus = (typeof transactionStatus)[number]
|
|
13
13
|
|
|
14
14
|
export namespace TransactionStatus {
|
|
15
15
|
export function is(value: unknown): value is TransactionStatus {
|
package/model/TransactionType.ts
CHANGED
|
@@ -16,7 +16,7 @@ const transactionType = [
|
|
|
16
16
|
"PENDING_DECLINE",
|
|
17
17
|
] as const
|
|
18
18
|
|
|
19
|
-
export type TransactionType = typeof transactionType[number]
|
|
19
|
+
export type TransactionType = (typeof transactionType)[number]
|
|
20
20
|
|
|
21
21
|
export namespace TransactionType {
|
|
22
22
|
export function is(value: TransactionType | any): value is TransactionType {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type TransferDestinationAddressType = typeof TransferDestinationAddressType.values[number]
|
|
3
|
+
export type TransferDestinationAddressType = (typeof TransferDestinationAddressType.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace TransferDestinationAddressType {
|
|
6
6
|
export const values = ["SCAN", "IBAN", "ABA", "FUNDING_ACCOUNT"] as const
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const transferDirections = ["IN", "OUT"] as const
|
|
2
2
|
|
|
3
|
-
export type TransferDirection = typeof transferDirections[number]
|
|
3
|
+
export type TransferDirection = (typeof transferDirections)[number]
|
|
4
4
|
|
|
5
5
|
export namespace TransferDirection {
|
|
6
6
|
export function is(value: unknown): value is TransferDirection {
|
package/model/TransferStatus.ts
CHANGED
package/model/Usage.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type Usage = typeof Usage.values[number]
|
|
3
|
+
export type Usage = (typeof Usage.values)[number]
|
|
4
4
|
|
|
5
5
|
export namespace Usage {
|
|
6
6
|
export const values = ["SINGLE_USE", "SINGLE_USE_ALLOW_TEST_AUTH", "MULTIPLE_USE", "SCHEDULED_USE"] as const
|
package/model/UserStatus.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type UserStatus = typeof UserStatus.types[number]
|
|
3
|
+
export type UserStatus = (typeof UserStatus.types)[number]
|
|
4
4
|
|
|
5
5
|
export namespace UserStatus {
|
|
6
6
|
export const types = ["ACTIVE", "INACTIVE", "DELETED", "PASSWORD_EXPIRED"] as const
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/client",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.23",
|
|
4
4
|
"description": "Client library for the Pax2Pay API",
|
|
5
5
|
"author": "Pax2Pay Ltd.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,11 +61,12 @@
|
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "6.3.0",
|
|
62
62
|
"@typescript-eslint/parser": "6.3.0",
|
|
63
63
|
"dotenv": "^16.3.1",
|
|
64
|
-
"eslint": "^8.
|
|
65
|
-
"eslint-
|
|
66
|
-
"eslint-plugin-
|
|
64
|
+
"eslint": "^8.57.1",
|
|
65
|
+
"eslint-config-prettier": "^10.1.8",
|
|
66
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
67
|
+
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
67
68
|
"jest": "^29.6.2",
|
|
68
|
-
"
|
|
69
|
+
"prettier": "^3.8.1",
|
|
69
70
|
"rimraf": "^5.0.1",
|
|
70
71
|
"ts-jest": "^29.1.1",
|
|
71
72
|
"typescript": "^5.1.6"
|