@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.
Files changed (188) hide show
  1. package/.eslintrc +19 -13
  2. package/Client/Auth/Session/Item.ts +3 -2
  3. package/Client/Auth/Session/index.ts +1 -1
  4. package/Client/Cards/actions/pax2pay.spec.ignore.ts +4 -2
  5. package/Client/Cards/create/fake.spec.ignore.ts +7 -5
  6. package/Client/Cards/create/ixaris.spec.ignore.ts +4 -2
  7. package/Client/Cards/create/modulr.spec.ignore.ts +4 -2
  8. package/Client/Cards/create/pax2pay.spec.ignore.ts +7 -5
  9. package/Client/Cards/list.spec.ignore.ts +6 -3
  10. package/Client/Connection.ts +24 -11
  11. package/Client/Credentials/index.ts +3 -2
  12. package/Client/List.ts +3 -2
  13. package/Client/Organisations/list.spec.ignore.ts +2 -1
  14. package/Client/Reports/index.ts +2 -1
  15. package/Client/Transfers/index.ts +3 -2
  16. package/Client/Transfers/list.spec.ignore.ts +4 -2
  17. package/Client/Users/index.ts +4 -2
  18. package/Client/Users/list.spec.ignore.ts +6 -3
  19. package/Client/index.ts +4 -1
  20. package/dist/Client/Auth/Session/Item.js +4 -2
  21. package/dist/Client/Auth/Session/Item.js.map +1 -1
  22. package/dist/Client/Auth/Session/index.js.map +1 -1
  23. package/dist/Client/Connection.js +20 -10
  24. package/dist/Client/Connection.js.map +1 -1
  25. package/dist/Client/Credentials/index.js +4 -2
  26. package/dist/Client/Credentials/index.js.map +1 -1
  27. package/dist/Client/List.js +4 -2
  28. package/dist/Client/List.js.map +1 -1
  29. package/dist/Client/Reports/index.js +2 -1
  30. package/dist/Client/Reports/index.js.map +1 -1
  31. package/dist/Client/Transfers/index.js +4 -2
  32. package/dist/Client/Transfers/index.js.map +1 -1
  33. package/dist/Client/Users/index.js +4 -2
  34. package/dist/Client/Users/index.js.map +1 -1
  35. package/dist/Client/index.js.map +1 -1
  36. package/dist/model/AccountState.d.ts +1 -1
  37. package/dist/model/AccountType.d.ts +1 -1
  38. package/dist/model/Batch/Item/Status.d.ts +1 -1
  39. package/dist/model/Batch/Status.d.ts +1 -1
  40. package/dist/model/Batch/Type.d.ts +1 -1
  41. package/dist/model/BeneficiaryRequestStatus.d.ts +1 -1
  42. package/dist/model/BeneficiaryStatus.d.ts +1 -1
  43. package/dist/model/BeneficiarySubType.d.ts +1 -1
  44. package/dist/model/BeneficiarySubTypeSearch.d.ts +1 -1
  45. package/dist/model/BookingInfoType.d.ts +1 -1
  46. package/dist/model/CardForm.d.ts +1 -1
  47. package/dist/model/CardScheduleTaskType.d.ts +1 -1
  48. package/dist/model/CardState.d.ts +1 -1
  49. package/dist/model/CardState.js +14 -7
  50. package/dist/model/CardState.js.map +1 -1
  51. package/dist/model/CardStateChangeDesiredState.d.ts +1 -1
  52. package/dist/model/CardStatement.d.ts +2 -2
  53. package/dist/model/CardStatement.js +2 -2
  54. package/dist/model/CardStatement.js.map +1 -1
  55. package/dist/model/CardTypeRequestAvailabilityType.d.ts +1 -1
  56. package/dist/model/CardTypeSpecificationFlag.d.ts +1 -1
  57. package/dist/model/CardUsage.d.ts +1 -1
  58. package/dist/model/Config/Notice/FundingLimit/NoticeTriggerType.d.ts +1 -1
  59. package/dist/model/Config/Notice/Target/Type.d.ts +1 -1
  60. package/dist/model/Config/Notice/Type.d.ts +1 -1
  61. package/dist/model/Config/SsoProvider/Type.d.ts +1 -1
  62. package/dist/model/ConfirmationOfPayeeAccountType.d.ts +1 -1
  63. package/dist/model/ConfirmationOfPayeeResponseStatus.d.ts +1 -1
  64. package/dist/model/DayOfWeek.d.ts +1 -1
  65. package/dist/model/DeliveryStatus.d.ts +1 -1
  66. package/dist/model/DestinationType.d.ts +1 -1
  67. package/dist/model/DownloadFileFormat.d.ts +1 -1
  68. package/dist/model/FundingAccountIdentifierType.d.ts +1 -1
  69. package/dist/model/FundingType.d.ts +1 -1
  70. package/dist/model/Inclusion.d.ts +1 -1
  71. package/dist/model/InvokingSystem.d.ts +1 -1
  72. package/dist/model/MerchantResponseStatus.d.ts +1 -1
  73. package/dist/model/MerchantType.d.ts +1 -1
  74. package/dist/model/MetadataFormat/Field/ValueCategory.d.ts +1 -1
  75. package/dist/model/MetadataFormat/Field/ValueType.d.ts +1 -1
  76. package/dist/model/MetadataFormat/SubFormatType.d.ts +1 -1
  77. package/dist/model/Notification/CreatableType.d.ts +1 -1
  78. package/dist/model/Notification/Format.d.ts +1 -1
  79. package/dist/model/Notification/Tag.d.ts +1 -1
  80. package/dist/model/Notification/Type.d.ts +1 -1
  81. package/dist/model/OmnisetupFlags.d.ts +1 -1
  82. package/dist/model/OrganisationFlag.d.ts +1 -1
  83. package/dist/model/OrganisationFlag.js +4 -2
  84. package/dist/model/OrganisationFlag.js.map +1 -1
  85. package/dist/model/OrganisationRealm.d.ts +1 -1
  86. package/dist/model/OrganisationStatus.d.ts +1 -1
  87. package/dist/model/OrganisationStatusV2.d.ts +1 -1
  88. package/dist/model/PaxpayFeature.d.ts +1 -1
  89. package/dist/model/PaymentDeliveryStatus.d.ts +1 -1
  90. package/dist/model/PaymentMethodType.d.ts +1 -1
  91. package/dist/model/PaymentOperationType.d.ts +1 -1
  92. package/dist/model/PaymentOperationType.js +16 -8
  93. package/dist/model/PaymentOperationType.js.map +1 -1
  94. package/dist/model/PaymentStatus.d.ts +1 -1
  95. package/dist/model/ProductType.d.ts +1 -1
  96. package/dist/model/ProviderCode.d.ts +1 -1
  97. package/dist/model/Report/ReportSubscriptionFrequencyType.d.ts +1 -1
  98. package/dist/model/Report/ReportSubscriptionInvocationOutcome.d.ts +1 -1
  99. package/dist/model/Report/ReportSubscriptionStatus.d.ts +1 -1
  100. package/dist/model/Report/ReportType.d.ts +1 -1
  101. package/dist/model/Role.d.ts +1 -1
  102. package/dist/model/Scheme.d.ts +1 -1
  103. package/dist/model/StatementReportRowActionType.d.ts +1 -1
  104. package/dist/model/StatementReportRowActionType.js +6 -3
  105. package/dist/model/StatementReportRowActionType.js.map +1 -1
  106. package/dist/model/StatementReportSubType.d.ts +1 -1
  107. package/dist/model/StatementTransferSpecificType.d.ts +1 -1
  108. package/dist/model/TaskStatus.d.ts +1 -1
  109. package/dist/model/TierID.d.ts +1 -1
  110. package/dist/model/TransactionType.d.ts +1 -1
  111. package/dist/model/TransferDestinationAddressType.d.ts +1 -1
  112. package/dist/model/TransferDirection.d.ts +1 -1
  113. package/dist/model/TransferStatus.d.ts +1 -1
  114. package/dist/model/Usage.d.ts +1 -1
  115. package/dist/model/UserStatus.d.ts +1 -1
  116. package/model/AccountState.ts +1 -1
  117. package/model/AccountType.ts +1 -1
  118. package/model/Batch/Item/Status.ts +1 -1
  119. package/model/Batch/Status.ts +1 -1
  120. package/model/Batch/Type.ts +1 -1
  121. package/model/BeneficiaryRequestStatus.ts +1 -1
  122. package/model/BeneficiaryResponse.ts +1 -1
  123. package/model/BeneficiaryStatus.ts +1 -1
  124. package/model/BeneficiarySubType.ts +1 -1
  125. package/model/BeneficiarySubTypeSearch.ts +1 -1
  126. package/model/BookingInfoType.ts +1 -1
  127. package/model/CardForm.ts +1 -1
  128. package/model/CardScheduleTaskType.ts +1 -1
  129. package/model/CardState.ts +15 -8
  130. package/model/CardStateChangeDesiredState.ts +1 -1
  131. package/model/CardStatement.ts +4 -4
  132. package/model/CardTypeRequestAvailabilityType.ts +1 -1
  133. package/model/CardTypeSpecificationFlag.ts +1 -1
  134. package/model/CardUsage.ts +1 -1
  135. package/model/Config/Notice/FundingLimit/NoticeTriggerType.ts +1 -1
  136. package/model/Config/Notice/Target/Type.ts +1 -1
  137. package/model/Config/Notice/Type.ts +1 -1
  138. package/model/Config/SsoProvider/Type.ts +1 -1
  139. package/model/ConfirmationOfPayeeAccountType.ts +1 -1
  140. package/model/ConfirmationOfPayeeResponseStatus.ts +1 -1
  141. package/model/DayOfWeek.ts +1 -1
  142. package/model/DeliveryStatus.ts +1 -1
  143. package/model/DestinationType.ts +1 -1
  144. package/model/DownloadFileFormat.ts +1 -1
  145. package/model/FundingAccountIdentifierType.ts +1 -1
  146. package/model/FundingType.ts +1 -1
  147. package/model/Inclusion.ts +1 -1
  148. package/model/InvokingSystem.ts +1 -1
  149. package/model/MerchantResponseStatus.ts +1 -1
  150. package/model/MerchantType.ts +1 -1
  151. package/model/MetadataFormat/Field/ValueCategory.ts +1 -1
  152. package/model/MetadataFormat/Field/ValueType.ts +1 -1
  153. package/model/MetadataFormat/SubFormatType.ts +1 -1
  154. package/model/Notification/CreatableType.ts +1 -1
  155. package/model/Notification/Format.ts +1 -1
  156. package/model/Notification/Tag.ts +1 -1
  157. package/model/Notification/Type.ts +1 -1
  158. package/model/OmnisetupFlags.ts +1 -1
  159. package/model/OrganisationFlag.ts +5 -3
  160. package/model/OrganisationRealm.ts +1 -1
  161. package/model/OrganisationStatus.ts +1 -1
  162. package/model/OrganisationStatusV2.ts +1 -1
  163. package/model/PaxpayFeature.ts +1 -1
  164. package/model/PaymentDeliveryStatus.ts +1 -1
  165. package/model/PaymentMethodType.ts +1 -1
  166. package/model/PaymentOperationType.ts +17 -9
  167. package/model/PaymentStatus.ts +1 -1
  168. package/model/ProductType.ts +1 -1
  169. package/model/ProviderCode.ts +1 -1
  170. package/model/Report/ReportSubscriptionFrequencyType.ts +1 -1
  171. package/model/Report/ReportSubscriptionInvocationOutcome.ts +1 -1
  172. package/model/Report/ReportSubscriptionStatus.ts +1 -1
  173. package/model/Report/ReportType.ts +1 -1
  174. package/model/Role.ts +1 -1
  175. package/model/Scheme.ts +1 -1
  176. package/model/StatementReportRowActionType.ts +7 -4
  177. package/model/StatementReportSubType.ts +1 -1
  178. package/model/StatementTransferSpecificType.ts +1 -1
  179. package/model/TaskStatus.ts +1 -1
  180. package/model/TierID.ts +1 -1
  181. package/model/TransactionStatus.ts +1 -1
  182. package/model/TransactionType.ts +1 -1
  183. package/model/TransferDestinationAddressType.ts +1 -1
  184. package/model/TransferDirection.ts +1 -1
  185. package/model/TransferStatus.ts +1 -1
  186. package/model/Usage.ts +1 -1
  187. package/model/UserStatus.ts +1 -1
  188. package/package.json +6 -5
@@ -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
@@ -1,4 +1,4 @@
1
- export type DeliveryStatus = typeof DeliveryStatus.types[number]
1
+ export type DeliveryStatus = (typeof DeliveryStatus.types)[number]
2
2
 
3
3
  export namespace DeliveryStatus {
4
4
  export const types = ["SUCCESS", "FAILURE", "TODO", "PENDING", "CARD_DECLINED"] as const
@@ -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 {
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type FundingType = typeof FundingType.types[number]
3
+ export type FundingType = (typeof FundingType.types)[number]
4
4
 
5
5
  export namespace FundingType {
6
6
  export const types = ["DEBIT", "CREDIT", "PREPAID"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type Inclusion = typeof Inclusion.values[number]
3
+ export type Inclusion = (typeof Inclusion.values)[number]
4
4
 
5
5
  export namespace Inclusion {
6
6
  export const values = ["INCLUDE", "EXCLUDE", "ONLY"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type InvokingSystem = typeof InvokingSystem.types[number]
3
+ export type InvokingSystem = (typeof InvokingSystem.types)[number]
4
4
 
5
5
  export namespace InvokingSystem {
6
6
  export const types = [
@@ -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
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type MerchantType = typeof MerchantType.types[number]
3
+ export type MerchantType = (typeof MerchantType.types)[number]
4
4
 
5
5
  export namespace MerchantType {
6
6
  export const types = ["flight", "hotel"] as const
@@ -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 ValueType = typeof ValueType.values[number]
3
+ export type ValueType = (typeof ValueType.values)[number]
4
4
 
5
5
  export namespace ValueType {
6
6
  export const values = ["string", "date", "datetime", "numeric", "integer"] 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) {
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type CreatableType = typeof CreatableType.values[number]
3
+ export type CreatableType = (typeof CreatableType.values)[number]
4
4
 
5
5
  export namespace CreatableType {
6
6
  export const values = ["news"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type Format = typeof Format.values[number]
3
+ export type Format = (typeof Format.values)[number]
4
4
 
5
5
  export namespace Format {
6
6
  export const values = ["markdown", "plain text"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type Tag = typeof Tag.values[number]
3
+ export type Tag = (typeof Tag.values)[number]
4
4
 
5
5
  export namespace Tag {
6
6
  export const values = [] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type Type = typeof Type.values[number]
3
+ export type Type = (typeof Type.values)[number]
4
4
 
5
5
  export namespace Type {
6
6
  export const values = ["news", "alert"] as const
@@ -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
- if (value == "EEA_CUSTOMER")
32
+ }
33
+ if (value == "EEA_CUSTOMER") {
33
34
  return "EEA"
35
+ }
34
36
  return value.toLowerCase().replaceAll("_", " ")
35
37
  }
36
38
  }
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type OrganisationRealm = typeof OrganisationRealm.values[number]
3
+ export type OrganisationRealm = (typeof OrganisationRealm.values)[number]
4
4
 
5
5
  export namespace OrganisationRealm {
6
6
  export const values = ["uk", "eu"] as const
@@ -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
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type PaxpayFeature = typeof PaxpayFeature.values[number]
3
+ export type PaxpayFeature = (typeof PaxpayFeature.values)[number]
4
4
 
5
5
  export namespace PaxpayFeature {
6
6
  export const values = [
@@ -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
- if (value == "refund fee")
87
+ }
88
+ if (value == "refund fee") {
88
89
  return "fee refund"
89
- if (value == "thawed")
90
+ }
91
+ if (value == "thawed") {
90
92
  return "unfrozen"
91
- if (value == "direct debit")
93
+ }
94
+ if (value == "direct debit") {
92
95
  return "Direct Debit"
93
- if (value == "faster payments")
96
+ }
97
+ if (value == "faster payments") {
94
98
  return "Faster Payments"
95
- if (value == "SEPA instant")
99
+ }
100
+ if (value == "SEPA instant") {
96
101
  return "SEPA Instant"
97
- if (value == "provider internal")
102
+ }
103
+ if (value == "provider internal") {
98
104
  return "Provider Internal"
99
- if (value == "chargeback")
105
+ }
106
+ if (value == "chargeback") {
100
107
  return "Chargeback"
108
+ }
101
109
  return value
102
110
  }
103
111
  }
@@ -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 = [
@@ -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 {
@@ -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
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type Role = typeof Role.values[number]
3
+ export type Role = (typeof Role.values)[number]
4
4
 
5
5
  export namespace Role {
6
6
  export const values = [
package/model/Scheme.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type Scheme = typeof Scheme.types[number]
3
+ export type Scheme = (typeof Scheme.types)[number]
4
4
 
5
5
  export namespace Scheme {
6
6
  export const types = ["VISA", "MASTERCARD", "AMERICAN_EXPRESS", "DINERS_CLUB"] as const
@@ -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
- if (value == "REVERSAL_FEE")
31
+ }
32
+ if (value == "REVERSAL_FEE") {
32
33
  return "FEE_REVERSAL"
33
- if (value == "SCHEDULED_CARD_AMENDMENT")
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 {
@@ -1,4 +1,4 @@
1
- export type TaskStatus = typeof TaskStatus.values[number]
1
+ export type TaskStatus = (typeof TaskStatus.values)[number]
2
2
 
3
3
  export namespace TaskStatus {
4
4
  export const values = [
package/model/TierID.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type TierID = typeof TierID.types[number]
3
+ export type TierID = (typeof TierID.types)[number]
4
4
 
5
5
  export namespace TierID {
6
6
  export const types = ["tier1", "tier2", "tier3", "legacy"] as const
@@ -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 {
@@ -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 {
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type TransferStatus = typeof TransferStatus.values[number]
3
+ export type TransferStatus = (typeof TransferStatus.values)[number]
4
4
 
5
5
  export namespace TransferStatus {
6
6
  export const values = [
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
@@ -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.21",
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.46.0",
65
- "eslint-plugin-prettierx": "github:utily/eslint-plugin-prettierx#utily-20231004",
66
- "eslint-plugin-simple-import-sort": "^10.0.0",
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
- "prettierx": "github:utily/prettierx#utily-20231004",
69
+ "prettier": "^3.8.1",
69
70
  "rimraf": "^5.0.1",
70
71
  "ts-jest": "^29.1.1",
71
72
  "typescript": "^5.1.6"