@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,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type OrganisationRealm = typeof OrganisationRealm.values[number];
2
+ export type OrganisationRealm = (typeof OrganisationRealm.values)[number];
3
3
  export declare namespace OrganisationRealm {
4
4
  const values: readonly ["uk", "eu"];
5
5
  const type: isly.Type<"eu" | "uk">;
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  import { OrganisationStatusV2 } from "./OrganisationStatusV2";
3
- export type OrganisationStatus = typeof OrganisationStatus.values[number];
3
+ export type OrganisationStatus = (typeof OrganisationStatus.values)[number];
4
4
  export declare namespace OrganisationStatus {
5
5
  const values: readonly ["ACTIVE", "INACTIVE", "DELETED"];
6
6
  const type: isly.Type<"ACTIVE" | "DELETED" | "INACTIVE">;
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  import { OrganisationStatus } from "./OrganisationStatus";
3
- export type OrganisationStatusV2 = typeof OrganisationStatusV2.values[number];
3
+ export type OrganisationStatusV2 = (typeof OrganisationStatusV2.values)[number];
4
4
  export declare namespace OrganisationStatusV2 {
5
5
  const values: readonly ["active", "inactive", "deleted"];
6
6
  const type: isly.Type<"deleted" | "active" | "inactive">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type PaxpayFeature = typeof PaxpayFeature.values[number];
2
+ export type PaxpayFeature = (typeof PaxpayFeature.values)[number];
3
3
  export declare namespace PaxpayFeature {
4
4
  const values: readonly ["ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE", "FUZZY_SEARCH_COLLECTION_TRAVERSAL", "BANK_TRANSFERS", "SHOW_EMPTY_STATEMENTS", "BETA_PAYMENTS", "RECONCILIATION_REPORT_V2", "INSIGHTS_ROOM", "INSIGHTS_ROOM_REBATE", "DELIVERY_ATTACHMENT", "REBATE_RECIPIENT"];
5
5
  const type: isly.Type<"ALLOW_CARD_CREATION_WITH_NEGATIVE_BALANCE" | "FUZZY_SEARCH_COLLECTION_TRAVERSAL" | "BANK_TRANSFERS" | "SHOW_EMPTY_STATEMENTS" | "BETA_PAYMENTS" | "RECONCILIATION_REPORT_V2" | "INSIGHTS_ROOM" | "INSIGHTS_ROOM_REBATE" | "DELIVERY_ATTACHMENT" | "REBATE_RECIPIENT">;
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  import { DeliveryStatus } from "./DeliveryStatus";
3
- export type PaymentDeliveryStatus = typeof PaymentDeliveryStatus.values[number];
3
+ export type PaymentDeliveryStatus = (typeof PaymentDeliveryStatus.values)[number];
4
4
  export declare namespace PaymentDeliveryStatus {
5
5
  const values: readonly ["success", "failure", "todo", "pending", "declined"];
6
6
  const type: isly.Type<"pending" | "success" | "declined" | "failure" | "todo">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type PaymentMethodType = typeof PaymentMethodType.values[number];
2
+ export type PaymentMethodType = (typeof PaymentMethodType.values)[number];
3
3
  export declare namespace PaymentMethodType {
4
4
  const values: readonly ["card", "transfer"];
5
5
  const type: isly.Type<"transfer" | "card">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type PaymentOperationType = typeof PaymentOperationType.types[number];
2
+ export type PaymentOperationType = (typeof PaymentOperationType.types)[number];
3
3
  export declare namespace PaymentOperationType {
4
4
  const types: readonly ["approved authorisation", "declined authorisation", "reversal", "reversal declined", "settlement", "refund", "authorisation fee", "settlement fee", "reversal fee", "refund fee", "faster payments", "BACS", "CHAPS", "direct debit", "SEPA instant", "SEPA", "provider internal", "SWIFT", "chargeback", "created", "limit change", "purchase", "closed", "frozen", "thawed", "approval pending", "expired", "approved", "declined", "transfer"];
5
5
  namespace TransferTransaction {
@@ -84,22 +84,30 @@ export var PaymentOperationType;
84
84
  PaymentOperationType.type = isly.string(PaymentOperationType.types);
85
85
  PaymentOperationType.is = PaymentOperationType.type.is;
86
86
  function toDisplay(value) {
87
- if (value == "reversal fee")
87
+ if (value == "reversal fee") {
88
88
  return "fee reversal";
89
- if (value == "refund fee")
89
+ }
90
+ if (value == "refund fee") {
90
91
  return "fee refund";
91
- if (value == "thawed")
92
+ }
93
+ if (value == "thawed") {
92
94
  return "unfrozen";
93
- if (value == "direct debit")
95
+ }
96
+ if (value == "direct debit") {
94
97
  return "Direct Debit";
95
- if (value == "faster payments")
98
+ }
99
+ if (value == "faster payments") {
96
100
  return "Faster Payments";
97
- if (value == "SEPA instant")
101
+ }
102
+ if (value == "SEPA instant") {
98
103
  return "SEPA Instant";
99
- if (value == "provider internal")
104
+ }
105
+ if (value == "provider internal") {
100
106
  return "Provider Internal";
101
- if (value == "chargeback")
107
+ }
108
+ if (value == "chargeback") {
102
109
  return "Chargeback";
110
+ }
103
111
  return value;
104
112
  }
105
113
  PaymentOperationType.toDisplay = toDisplay;
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentOperationType.js","sourceRoot":"../","sources":["model/PaymentOperationType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,oBAAoB,CAkGpC;AAlGD,WAAiB,oBAAoB;IACvB,0BAAK,GAAG;QACpB,wBAAwB;QACxB,wBAAwB;QACxB,UAAU;QACV,mBAAmB;QACnB,YAAY;QACZ,QAAQ;QACR,mBAAmB;QACnB,gBAAgB;QAChB,cAAc;QACd,YAAY;QACZ,iBAAiB;QACjB,MAAM;QACN,OAAO;QACP,cAAc;QACd,cAAc;QACd,MAAM;QACN,mBAAmB;QACnB,OAAO;QACP,YAAY;QACZ,SAAS;QACT,cAAc;QACd,UAAU;QACV,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,kBAAkB;QAClB,SAAS;QACT,UAAU;QACV,UAAU;QACV,UAAU;KACD,CAAA;IACV,IAAiB,mBAAmB,CAYnC;IAZD,WAAiB,mBAAmB;QACtB,wBAAI,GAAG;YACnB,MAAM;YACN,OAAO;YACP,cAAc;YACd,iBAAiB;YACjB,MAAM;YACN,cAAc;YACd,mBAAmB;YACnB,OAAO;YACP,YAAY;SACZ,CAAA;IACF,CAAC,EAZgB,mBAAmB,GAAnB,wCAAmB,KAAnB,wCAAmB,QAYnC;IACD,IAAiB,eAAe,CAa/B;IAbD,WAAiB,eAAe;QAClB,oBAAI,GAAG;YACnB,wBAAwB;YACxB,wBAAwB;YACxB,UAAU;YACV,mBAAmB;YACnB,YAAY;YACZ,QAAQ;YACR,mBAAmB;YACnB,gBAAgB;YAChB,cAAc;YACd,YAAY;SACZ,CAAA;IACF,CAAC,EAbgB,eAAe,GAAf,oCAAe,KAAf,oCAAe,QAa/B;IACD,IAAiB,QAAQ,CAExB;IAFD,WAAiB,QAAQ;QACX,aAAI,GAAG,CAAC,UAAU,CAAC,CAAA;IACjC,CAAC,EAFgB,QAAQ,GAAR,6BAAQ,KAAR,6BAAQ,QAExB;IACD,IAAiB,IAAI,CAapB;IAbD,WAAiB,IAAI;QACP,SAAI,GAAG;YACnB,SAAS;YACT,cAAc;YACd,UAAU;YACV,QAAQ;YACR,QAAQ;YACR,QAAQ;YACR,kBAAkB;YAClB,SAAS;YACT,UAAU;YACV,UAAU;SACV,CAAA;IACF,CAAC,EAbgB,IAAI,GAAJ,yBAAI,KAAJ,yBAAI,QAapB;IACY,yBAAI,GAAG,IAAI,CAAC,MAAM,CAAC,qBAAA,KAAK,CAAC,CAAA;IACzB,uBAAE,GAAG,qBAAA,IAAI,CAAC,EAAE,CAAA;IACzB,SAAgB,SAAS,CAAC,KAA2B;QACpD,IAAI,KAAK,IAAI,cAAc;YAC1B,OAAO,cAAc,CAAA;QACtB,IAAI,KAAK,IAAI,YAAY;YACxB,OAAO,YAAY,CAAA;QACpB,IAAI,KAAK,IAAI,QAAQ;YACpB,OAAO,UAAU,CAAA;QAClB,IAAI,KAAK,IAAI,cAAc;YAC1B,OAAO,cAAc,CAAA;QACtB,IAAI,KAAK,IAAI,iBAAiB;YAC7B,OAAO,iBAAiB,CAAA;QACzB,IAAI,KAAK,IAAI,cAAc;YAC1B,OAAO,cAAc,CAAA;QACtB,IAAI,KAAK,IAAI,mBAAmB;YAC/B,OAAO,mBAAmB,CAAA;QAC3B,IAAI,KAAK,IAAI,YAAY;YACxB,OAAO,YAAY,CAAA;QACpB,OAAO,KAAK,CAAA;IACb,CAAC;IAlBe,8BAAS,YAkBxB,CAAA;AACF,CAAC,EAlGgB,oBAAoB,KAApB,oBAAoB,QAkGpC"}
1
+ {"version":3,"file":"PaymentOperationType.js","sourceRoot":"../","sources":["model/PaymentOperationType.ts"],"names":[],"mappings":"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"}
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  import { AccountState } from "./AccountState";
3
- export type PaymentStatus = typeof PaymentStatus.values[number];
3
+ export type PaymentStatus = (typeof PaymentStatus.values)[number];
4
4
  export declare namespace PaymentStatus {
5
5
  const values: readonly ["active", "sent", "upcoming", "settled", "rejected", "frozen", "closed", "expired", "pending", "approved", "declined"];
6
6
  const type: isly.Type<"frozen" | "active" | "closed" | "pending" | "expired" | "rejected" | "approved" | "declined" | "sent" | "upcoming" | "settled">;
@@ -1,5 +1,5 @@
1
1
  declare const productType: readonly ["FLIGHT", "ACCOMMODATION", "ANY", "CAR_PARKING", "CAR_HIRE", "TRANSFER", "INSURANCE", "PACKAGE", "RAIL", "CRUISE", "ATTRACTION", "BAGGAGE_TRACKING"];
2
- export type ProductType = typeof productType[number];
2
+ export type ProductType = (typeof productType)[number];
3
3
  export declare namespace ProductType {
4
4
  function is(value: unknown): value is ProductType;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type ProviderCode = typeof ProviderCode.types[number];
2
+ export type ProviderCode = (typeof ProviderCode.types)[number];
3
3
  export declare namespace ProviderCode {
4
4
  const types: readonly ["conferma", "ixaris", "wex", "fake", "lodged", "modulr", "unknown", "pax2pay"];
5
5
  const type: isly.Type<"unknown" | "conferma" | "ixaris" | "wex" | "fake" | "lodged" | "modulr" | "pax2pay">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type ReportSubscriptionFrequencyType = typeof ReportSubscriptionFrequencyType.values[number];
2
+ export type ReportSubscriptionFrequencyType = (typeof ReportSubscriptionFrequencyType.values)[number];
3
3
  export declare namespace ReportSubscriptionFrequencyType {
4
4
  const values: readonly ["DAILY", "WEEKLY", "MONTHLY"];
5
5
  const type: isly.Type<"DAILY" | "WEEKLY" | "MONTHLY">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type ReportSubscriptionInvocationOutcome = typeof ReportSubscriptionInvocationOutcome.values[number];
2
+ export type ReportSubscriptionInvocationOutcome = (typeof ReportSubscriptionInvocationOutcome.values)[number];
3
3
  export declare namespace ReportSubscriptionInvocationOutcome {
4
4
  const values: readonly ["SUCCESS", "FAILURE"];
5
5
  const type: isly.Type<"SUCCESS" | "FAILURE">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type ReportSubscriptionStatus = typeof ReportSubscriptionStatus.values[number];
2
+ export type ReportSubscriptionStatus = (typeof ReportSubscriptionStatus.values)[number];
3
3
  export declare namespace ReportSubscriptionStatus {
4
4
  const values: readonly ["ACTIVE", "DELETED"];
5
5
  const type: isly.Type<"ACTIVE" | "DELETED">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type ReportType = typeof ReportType.values[number];
2
+ export type ReportType = (typeof ReportType.values)[number];
3
3
  export declare namespace ReportType {
4
4
  const values: readonly ["RECONCILIATION", "STATEMENT"];
5
5
  const type: isly.Type<"RECONCILIATION" | "STATEMENT">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type Role = typeof Role.values[number];
2
+ export type Role = (typeof Role.values)[number];
3
3
  export declare namespace Role {
4
4
  const values: readonly ["user.create", "user.list", "user.list.own-category", "user.view.other", "user.edit.self", "user.edit.other", "user.edit-status", "user.change-password.other", "user.2fa.remove", "api-key.create", "api-key.edit", "api-key.view", "funding-account.view", "funding-account.list", "funding-account.summary", "funding-account.edit", "funding-account.add", "funding-account.create-new", "card.create", "card.list", "card.view", "card.cancel", "card.freeze-thaw", "card.amend.balance", "card.statements", "card.create.find-and-amend", "card.create.batch", "card.create.delivery.email", "card.reverse-authorisation", "card-options.view", "card-options.edit", "card-type.edit", "card-type.profile.view", "card-type.profile.edit", "card-type.profile.edit-shared", "card-type.profile.edit-default", "card-type.profile.set", "beneficiary.view", "beneficiary.list", "beneficiary.create", "beneficiary.edit", "beneficiary.create.rebate", "transfer.create", "transfer.create.delivery.email", "transfer.create.beneficiary", "transfer.create.non-beneficiary", "transfer.create.funding-account", "transfer.view", "transfer.list", "transfer.edit", "transfer.cancel", "booking-info.create", "booking-info.update", "booking-info.update.overwrite", "booking-info.update.add", "transaction.create", "transaction.view", "transaction.list", "transaction.list.card", "provider-transaction.insert", "provider.modulr", "provider.ixaris", "provider.wex", "provider.conferma", "provider.pax2pay", "limit.edit.individual", "limit.edit.category", "limit.edit-category-on-user", "pending.request", "pending.approve.card", "pending.approve.transfer", "pending.approve.payment", "pending.approve.card-amendment", "assume", "indefinite-password", "ops-tasks", "omnisetup", "credentials.view", "credentials.edit", "config.view.internal", "config.edit.organisation", "config.edit.internal", "roles.view-internal", "roles.edit-rolesets", "user-roles.edit", "roles.edit-rolesets.shared", "roles.edit-rolesets.default", "reports.statement", "reports.reconciliation", "reports.chargeback", "reports.automated", "reports.rebate", "reports.subscription.view", "reports.subscription.edit", "schedule.create", "schedule.view", "schedule.edit", "schedule.cancel", "payment.plan", "payment.create", "payment.view", "payment.freeze-thaw", "payment.cancel", "payment.amend.balance", "confirm-payee", "batch.rebate.run", "batch.rebate.view"];
5
5
  const type: isly.Type<"user.create" | "user.list" | "user.list.own-category" | "user.view.other" | "user.edit.self" | "user.edit.other" | "user.edit-status" | "user.change-password.other" | "user.2fa.remove" | "api-key.create" | "api-key.edit" | "api-key.view" | "funding-account.view" | "funding-account.list" | "funding-account.summary" | "funding-account.edit" | "funding-account.add" | "funding-account.create-new" | "card.create" | "card.list" | "card.view" | "card.cancel" | "card.freeze-thaw" | "card.amend.balance" | "card.statements" | "card.create.find-and-amend" | "card.create.batch" | "card.create.delivery.email" | "card.reverse-authorisation" | "card-options.view" | "card-options.edit" | "card-type.edit" | "card-type.profile.view" | "card-type.profile.edit" | "card-type.profile.edit-shared" | "card-type.profile.edit-default" | "card-type.profile.set" | "beneficiary.view" | "beneficiary.list" | "beneficiary.create" | "beneficiary.edit" | "beneficiary.create.rebate" | "transfer.create" | "transfer.create.delivery.email" | "transfer.create.beneficiary" | "transfer.create.non-beneficiary" | "transfer.create.funding-account" | "transfer.view" | "transfer.list" | "transfer.edit" | "transfer.cancel" | "booking-info.create" | "booking-info.update" | "booking-info.update.overwrite" | "booking-info.update.add" | "transaction.create" | "transaction.view" | "transaction.list" | "transaction.list.card" | "provider-transaction.insert" | "provider.modulr" | "provider.ixaris" | "provider.wex" | "provider.conferma" | "provider.pax2pay" | "limit.edit.individual" | "limit.edit.category" | "limit.edit-category-on-user" | "pending.request" | "pending.approve.card" | "pending.approve.transfer" | "pending.approve.payment" | "pending.approve.card-amendment" | "assume" | "indefinite-password" | "ops-tasks" | "omnisetup" | "credentials.view" | "credentials.edit" | "config.view.internal" | "config.edit.organisation" | "config.edit.internal" | "roles.view-internal" | "roles.edit-rolesets" | "user-roles.edit" | "roles.edit-rolesets.shared" | "roles.edit-rolesets.default" | "reports.statement" | "reports.reconciliation" | "reports.chargeback" | "reports.automated" | "reports.rebate" | "reports.subscription.view" | "reports.subscription.edit" | "schedule.create" | "schedule.view" | "schedule.edit" | "schedule.cancel" | "payment.plan" | "payment.create" | "payment.view" | "payment.freeze-thaw" | "payment.cancel" | "payment.amend.balance" | "confirm-payee" | "batch.rebate.run" | "batch.rebate.view">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type Scheme = typeof Scheme.types[number];
2
+ export type Scheme = (typeof Scheme.types)[number];
3
3
  export declare namespace Scheme {
4
4
  const types: readonly ["VISA", "MASTERCARD", "AMERICAN_EXPRESS", "DINERS_CLUB"];
5
5
  const type: isly.Type<"VISA" | "MASTERCARD" | "AMERICAN_EXPRESS" | "DINERS_CLUB">;
@@ -1,4 +1,4 @@
1
- export type StatementReportRowActionType = typeof StatementReportRowActionType.values[number];
1
+ export type StatementReportRowActionType = (typeof StatementReportRowActionType.values)[number];
2
2
  export declare namespace StatementReportRowActionType {
3
3
  const values: readonly ["TRANSFER_IN", "TRANSFER_OUT", "REFUND", "AUTHORISATION", "SETTLEMENT", "REVERSAL", "AUTHORISATION_FEE", "SETTLEMENT_FEE", "REVERSAL_FEE", "REFUND_FEE", "USABLE_CARD", "FUTURE_TRANSFER", "SCHEDULED_CARD_AMENDMENT"];
4
4
  const displayValues: readonly [readonly ["TRANSFER_IN", "TRANSFER_OUT"], readonly ["REFUND", "AUTHORISATION", "SETTLEMENT", "REVERSAL"], readonly ["FEE"], readonly ["USABLE_CARD", "FUTURE_TRANSFER", "SCHEDULED_CARD_AMENDMENT"]];
@@ -26,12 +26,15 @@ export var StatementReportRowActionType;
26
26
  }
27
27
  StatementReportRowActionType.is = is;
28
28
  function toDisplay(value) {
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
  StatementReportRowActionType.toDisplay = toDisplay;
@@ -1 +1 @@
1
- {"version":3,"file":"StatementReportRowActionType.js","sourceRoot":"../","sources":["model/StatementReportRowActionType.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,4BAA4B,CAkC5C;AAlCD,WAAiB,4BAA4B;IAC/B,mCAAM,GAAG;QACrB,aAAa;QACb,cAAc;QACd,QAAQ;QACR,eAAe;QACf,YAAY;QACZ,UAAU;QACV,mBAAmB;QACnB,gBAAgB;QAChB,cAAc;QACd,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,0BAA0B;KACjB,CAAA;IACG,0CAAa,GAAG;QAC5B,CAAC,aAAa,EAAE,cAAc,CAAC;QAC/B,CAAC,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,CAAC;QACrD,CAAC,KAAK,CAAC;QACP,CAAC,aAAa,EAAE,iBAAiB,EAAE,0BAA0B,CAAC;KACrD,CAAA;IACV,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,6BAAA,MAAM,CAAC,QAAQ,CAAC,KAAqC,CAAC,CAAA;IAC1F,CAAC;IAFe,+BAAE,KAEjB,CAAA;IACD,SAAgB,SAAS,CAAC,KAAmC;QAC5D,IAAI,KAAK,IAAI,YAAY;YACxB,OAAO,YAAY,CAAA;QACpB,IAAI,KAAK,IAAI,cAAc;YAC1B,OAAO,cAAc,CAAA;QACtB,IAAI,KAAK,IAAI,0BAA0B;YACtC,OAAO,gBAAgB,CAAA;QACxB,OAAO,KAAK,CAAA;IACb,CAAC;IARe,sCAAS,YAQxB,CAAA;AACF,CAAC,EAlCgB,4BAA4B,KAA5B,4BAA4B,QAkC5C"}
1
+ {"version":3,"file":"StatementReportRowActionType.js","sourceRoot":"../","sources":["model/StatementReportRowActionType.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,4BAA4B,CAqC5C;AArCD,WAAiB,4BAA4B;IAC/B,mCAAM,GAAG;QACrB,aAAa;QACb,cAAc;QACd,QAAQ;QACR,eAAe;QACf,YAAY;QACZ,UAAU;QACV,mBAAmB;QACnB,gBAAgB;QAChB,cAAc;QACd,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,0BAA0B;KACjB,CAAA;IACG,0CAAa,GAAG;QAC5B,CAAC,aAAa,EAAE,cAAc,CAAC;QAC/B,CAAC,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,CAAC;QACrD,CAAC,KAAK,CAAC;QACP,CAAC,aAAa,EAAE,iBAAiB,EAAE,0BAA0B,CAAC;KACrD,CAAA;IACV,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,6BAAA,MAAM,CAAC,QAAQ,CAAC,KAAqC,CAAC,CAAA;IAC1F,CAAC;IAFe,+BAAE,KAEjB,CAAA;IACD,SAAgB,SAAS,CAAC,KAAmC;QAC5D,IAAI,KAAK,IAAI,YAAY,EAAE,CAAC;YAC3B,OAAO,YAAY,CAAA;QACpB,CAAC;QACD,IAAI,KAAK,IAAI,cAAc,EAAE,CAAC;YAC7B,OAAO,cAAc,CAAA;QACtB,CAAC;QACD,IAAI,KAAK,IAAI,0BAA0B,EAAE,CAAC;YACzC,OAAO,gBAAgB,CAAA;QACxB,CAAC;QACD,OAAO,KAAK,CAAA;IACb,CAAC;IAXe,sCAAS,YAWxB,CAAA;AACF,CAAC,EArCgB,4BAA4B,KAA5B,4BAA4B,QAqC5C"}
@@ -1,4 +1,4 @@
1
- export type StatementReportSubType = typeof StatementReportSubType.values[number];
1
+ export type StatementReportSubType = (typeof StatementReportSubType.values)[number];
2
2
  export declare namespace StatementReportSubType {
3
3
  const values: readonly ["SETTLED", "PENDING", "PROGNOSIS", "FUTURE_PROGNOSIS", "UNUSED_CARDS_PROGNOSIS"];
4
4
  function is(value: unknown): value is StatementReportSubType;
@@ -1,5 +1,5 @@
1
1
  declare const statementTransferSpecificType: readonly ["BACS", "CHAPS", "DIRECT_DEBIT", "FASTER_PAYMENTS", "SEPA", "SECT", "PROVIDER_INTERNAL", "SWIFT"];
2
- export type StatementTransferSpecificType = typeof statementTransferSpecificType[number];
2
+ export type StatementTransferSpecificType = (typeof statementTransferSpecificType)[number];
3
3
  export declare namespace StatementTransferSpecificType {
4
4
  function is(value: unknown): value is StatementTransferSpecificType;
5
5
  }
@@ -1,4 +1,4 @@
1
- export type TaskStatus = typeof TaskStatus.values[number];
1
+ export type TaskStatus = (typeof TaskStatus.values)[number];
2
2
  export declare namespace TaskStatus {
3
3
  const values: readonly ["TODO", "CANCELLED", "CANCELLED_EXCEPTIONALLY", "SUCCESSFUL", "FAILED", "FAILED_EXCEPTIONALLY", "HALTED", "PENDING", "PENDING_DECLINED"];
4
4
  function is(value: unknown): value is TaskStatus;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type TierID = typeof TierID.types[number];
2
+ export type TierID = (typeof TierID.types)[number];
3
3
  export declare namespace TierID {
4
4
  const types: readonly ["tier1", "tier2", "tier3", "legacy"];
5
5
  const type: isly.Type<"tier1" | "tier2" | "tier3" | "legacy">;
@@ -1,5 +1,5 @@
1
1
  declare const transactionType: readonly ["CREATE_CARD", "FUND_CARD", "SCHEDULED_LIMIT_CHANGE", "LIMIT_CHANGE", "PURCHASE", "REFUND", "SWEEP", "CLOSE", "FREEZE", "THAW", "APPROVAL_PENDING", "EXPIRE", "UNKNOWN", "PENDING_APPROVE", "PENDING_DECLINE"];
2
- export type TransactionType = typeof transactionType[number];
2
+ export type TransactionType = (typeof transactionType)[number];
3
3
  export declare namespace TransactionType {
4
4
  function is(value: TransactionType | any): value is TransactionType;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type TransferDestinationAddressType = typeof TransferDestinationAddressType.values[number];
2
+ export type TransferDestinationAddressType = (typeof TransferDestinationAddressType.values)[number];
3
3
  export declare namespace TransferDestinationAddressType {
4
4
  const values: readonly ["SCAN", "IBAN", "ABA", "FUNDING_ACCOUNT"];
5
5
  const type: isly.Type<"SCAN" | "IBAN" | "ABA" | "FUNDING_ACCOUNT">;
@@ -1,5 +1,5 @@
1
1
  declare const transferDirections: readonly ["IN", "OUT"];
2
- export type TransferDirection = typeof transferDirections[number];
2
+ export type TransferDirection = (typeof transferDirections)[number];
3
3
  export declare namespace TransferDirection {
4
4
  function is(value: unknown): value is TransferDirection;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type TransferStatus = typeof TransferStatus.values[number];
2
+ export type TransferStatus = (typeof TransferStatus.values)[number];
3
3
  export declare namespace TransferStatus {
4
4
  const values: readonly ["PENDING", "PENDING_FOR_DATE", "PENDING_FOR_FUNDS", "SETTLED", "CANCELLED", "ERROR_REJECTED", "APPROVAL_PENDING", "DECLINED", "APPROVED", "GENERATED"];
5
5
  const type: isly.Type<"PENDING" | "APPROVED" | "DECLINED" | "GENERATED" | "CANCELLED" | "APPROVAL_PENDING" | "SETTLED" | "PENDING_FOR_DATE" | "PENDING_FOR_FUNDS" | "ERROR_REJECTED">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type Usage = typeof Usage.values[number];
2
+ export type Usage = (typeof Usage.values)[number];
3
3
  export declare namespace Usage {
4
4
  const values: readonly ["SINGLE_USE", "SINGLE_USE_ALLOW_TEST_AUTH", "MULTIPLE_USE", "SCHEDULED_USE"];
5
5
  const type: isly.Type<"SINGLE_USE" | "SINGLE_USE_ALLOW_TEST_AUTH" | "MULTIPLE_USE" | "SCHEDULED_USE">;
@@ -1,5 +1,5 @@
1
1
  import { isly } from "isly";
2
- export type UserStatus = typeof UserStatus.types[number];
2
+ export type UserStatus = (typeof UserStatus.types)[number];
3
3
  export declare namespace UserStatus {
4
4
  const types: readonly ["ACTIVE", "INACTIVE", "DELETED", "PASSWORD_EXPIRED"];
5
5
  const type: isly.Type<"ACTIVE" | "DELETED" | "INACTIVE" | "PASSWORD_EXPIRED">;
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type AccountState = typeof AccountState.values[number]
3
+ export type AccountState = (typeof AccountState.values)[number]
4
4
 
5
5
  export namespace AccountState {
6
6
  export const values = [
@@ -1,6 +1,6 @@
1
1
  const accountType = ["FUNDING", "CARD"] as const
2
2
 
3
- export type AccountType = typeof accountType[number]
3
+ export type AccountType = (typeof accountType)[number]
4
4
 
5
5
  export namespace AccountType {
6
6
  export function is(value: unknown): value is AccountType {
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type Status = typeof Status.values[number]
3
+ export type Status = (typeof Status.values)[number]
4
4
 
5
5
  export namespace Status {
6
6
  export const values = ["todo", "processing", "successful", "failed", "cancelled", "failed import"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type Status = typeof Status.values[number]
3
+ export type Status = (typeof Status.values)[number]
4
4
 
5
5
  export namespace Status {
6
6
  export const values = [
@@ -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 = ["TEST", "PAYMENT", "REBATE", "LEGACY_PAYMENT"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type BeneficiaryRequestStatus = typeof BeneficiaryRequestStatus.values[number]
3
+ export type BeneficiaryRequestStatus = (typeof BeneficiaryRequestStatus.values)[number]
4
4
 
5
5
  //ACTIVE_REBATE and ACTIVE_MERCHANT are deprecated, but we keep them here for backward compatibility
6
6
  export namespace BeneficiaryRequestStatus {
@@ -5,7 +5,7 @@ import { BeneficiarySubType } from "./BeneficiarySubType"
5
5
  import { TransferDestinationResponse } from "./TransferDestinationResponse"
6
6
 
7
7
  export interface BeneficiaryResponse<
8
- T extends TransferDestinationResponse = AccountDetailsTransferDestinationResponse
8
+ T extends TransferDestinationResponse = AccountDetailsTransferDestinationResponse,
9
9
  > {
10
10
  transferDestination: T
11
11
  status: BeneficiaryRequestStatus
@@ -1,6 +1,6 @@
1
1
  const beneficiaryStatus = ["ACTIVE", "DELETED", "OUTDATED", "INACTIVE"] as const
2
2
 
3
- export type BeneficiaryStatus = typeof beneficiaryStatus[number]
3
+ export type BeneficiaryStatus = (typeof beneficiaryStatus)[number]
4
4
 
5
5
  export namespace BeneficiaryStatus {
6
6
  export function is(value: unknown): value is BeneficiaryStatus {
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type BeneficiarySubType = typeof BeneficiarySubType.values[number]
3
+ export type BeneficiarySubType = (typeof BeneficiarySubType.values)[number]
4
4
 
5
5
  export namespace BeneficiarySubType {
6
6
  export const values = ["REBATE", "MERCHANT"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type BeneficiarySubTypeSearch = typeof BeneficiarySubTypeSearch.values[number]
3
+ export type BeneficiarySubTypeSearch = (typeof BeneficiarySubTypeSearch.values)[number]
4
4
 
5
5
  export namespace BeneficiarySubTypeSearch {
6
6
  export const values = ["REBATE", "MERCHANT", "NONE"] as const
@@ -1,5 +1,5 @@
1
1
  const bookingInfotype = ["HOTEL", "FLIGHT", "INVOICE", "FIVE_FIELDS", "SUMMARY"] as const
2
- export type BookingInfoType = typeof bookingInfotype[number]
2
+ export type BookingInfoType = (typeof bookingInfotype)[number]
3
3
 
4
4
  export namespace BookingInfoType {
5
5
  export function is(value: unknown): value is BookingInfoType {
package/model/CardForm.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export const cardForms = ["GENERATABLE", "PHYSICAL", "VIRTUAL"] as const
2
2
 
3
- export type CardForm = typeof cardForms[number]
3
+ export type CardForm = (typeof cardForms)[number]
4
4
 
5
5
  export namespace CardForm {
6
6
  export function is(value: CardForm | any): value is CardForm {
@@ -1,5 +1,5 @@
1
1
  const cardScheduleTaskType = ["CARD_AMENDMENT", "CARD_STATE_CHANGE"] as const
2
- export type CardScheduleTaskType = typeof cardScheduleTaskType[number]
2
+ export type CardScheduleTaskType = (typeof cardScheduleTaskType)[number]
3
3
 
4
4
  export namespace CardScheduleTaskType {
5
5
  export function is(value: unknown): value is CardScheduleTaskType {
@@ -1,27 +1,34 @@
1
1
  import { isly } from "isly"
2
2
  import { AccountState } from "./AccountState"
3
3
 
4
- export type CardState = typeof CardState.values[number]
4
+ export type CardState = (typeof CardState.values)[number]
5
5
 
6
6
  export namespace CardState {
7
7
  export const values = ["ACTIVE", "INACTIVE", "DELETED", "EXPIRED", "PENDING", "APPROVED", "DECLINED"] as const
8
8
  export const type = isly.string(values)
9
9
  export const is = type.is
10
10
  export function toDisplay(value: CardState): string {
11
- if (value == "ACTIVE")
11
+ if (value == "ACTIVE") {
12
12
  return "active"
13
- if (value == "INACTIVE")
13
+ }
14
+ if (value == "INACTIVE") {
14
15
  return "frozen"
15
- if (value == "DELETED")
16
+ }
17
+ if (value == "DELETED") {
16
18
  return "closed"
17
- if (value == "EXPIRED")
19
+ }
20
+ if (value == "EXPIRED") {
18
21
  return "expired"
19
- if (value == "PENDING")
22
+ }
23
+ if (value == "PENDING") {
20
24
  return "pending"
21
- if (value == "APPROVED")
25
+ }
26
+ if (value == "APPROVED") {
22
27
  return "approved"
23
- if (value == "DECLINED")
28
+ }
29
+ if (value == "DECLINED") {
24
30
  return "declined"
31
+ }
25
32
  return value
26
33
  }
27
34
  export function editable(accountState: AccountState, cardState: CardState) {
@@ -1,5 +1,5 @@
1
1
  const cardStateChangeDesiredState = ["CANCEL", "FREEZE", "THAW"] as const
2
- export type CardStateChangeDesiredState = typeof cardStateChangeDesiredState[number]
2
+ export type CardStateChangeDesiredState = (typeof cardStateChangeDesiredState)[number]
3
3
 
4
4
  export namespace CardStateChangeDesiredState {
5
5
  export function is(value: unknown): value is CardStateChangeDesiredState {
@@ -9,10 +9,10 @@ export interface CardStatement {
9
9
  description: string
10
10
  type: string
11
11
  status?: string
12
- balance: number
12
+ transactionBalance: number
13
13
  billingBalance: number
14
14
  fundsChanged?: number
15
- currency?: isoly.Currency
15
+ transactionCurrency?: isoly.Currency
16
16
  billingCurrency?: isoly.Currency
17
17
  fxRate?: number
18
18
  reason?: string
@@ -28,10 +28,10 @@ export namespace CardStatement {
28
28
  description: isly.string(),
29
29
  type: isly.string(),
30
30
  status: isly.string().optional(),
31
- balance: isly.number(),
31
+ transactionBalance: isly.number(),
32
32
  billingBalance: isly.number(),
33
33
  fundsChanged: isly.number().optional(),
34
- currency: isly.fromIs("isoly.Currency", isoly.Currency.is).optional(),
34
+ transactionCurrency: isly.fromIs("isoly.Currency", isoly.Currency.is).optional(),
35
35
  billingCurrency: isly.fromIs("isoly.Currency", isoly.Currency.is).optional(),
36
36
  fxRate: isly.number().optional(),
37
37
  reason: isly.string().optional(),
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type CardTypeRequestAvailabilityType = typeof CardTypeRequestAvailabilityType.values[number]
3
+ export type CardTypeRequestAvailabilityType = (typeof CardTypeRequestAvailabilityType.values)[number]
4
4
 
5
5
  export namespace CardTypeRequestAvailabilityType {
6
6
  export const values = ["organisation", "roleset", "category", "user"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type CardTypeFlag = typeof CardTypeFlag.types[number]
3
+ export type CardTypeFlag = (typeof CardTypeFlag.types)[number]
4
4
 
5
5
  export namespace CardTypeFlag {
6
6
  export const types = ["CORPORATE", "BUSINESS", "CONSUMER"] as const
@@ -1,7 +1,7 @@
1
1
  import { isly } from "isly"
2
2
  import { Usage } from "./Usage"
3
3
 
4
- export type CardUsage = typeof CardUsage.values[number]
4
+ export type CardUsage = (typeof CardUsage.values)[number]
5
5
 
6
6
  export namespace CardUsage {
7
7
  export const values = ["single", "single allow test auth", "multiple", "scheduled"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type NoticeTriggerType = typeof NoticeTriggerType.values[number]
3
+ export type NoticeTriggerType = (typeof NoticeTriggerType.values)[number]
4
4
 
5
5
  export namespace NoticeTriggerType {
6
6
  export const values = ["ON_THRESHOLD", "TIMED_ONLY", "ON_THRESHOLD_AND_TIMED"] 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
  export namespace Type {
5
5
  export const values = ["ORGANISATION", "USER"] as const
6
6
  export const type = isly.string(values)
@@ -1,7 +1,7 @@
1
1
  import { isly } from "isly"
2
2
 
3
3
  // ConfigurableNoticeType
4
- export type Type = typeof Type.values[number]
4
+ export type Type = (typeof Type.values)[number]
5
5
 
6
6
  export namespace Type {
7
7
  export const values = ["FUNDING_LIMIT"] as const
@@ -1,7 +1,7 @@
1
1
  import { isly } from "isly"
2
2
 
3
3
  // SsoProviderType
4
- export type Type = typeof Type.values[number]
4
+ export type Type = (typeof Type.values)[number]
5
5
 
6
6
  export namespace Type {
7
7
  export const values = ["GOOGLE"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type ConfirmationOfPayeeAccountType = typeof ConfirmationOfPayeeAccountType.values[number]
3
+ export type ConfirmationOfPayeeAccountType = (typeof ConfirmationOfPayeeAccountType.values)[number]
4
4
 
5
5
  export namespace ConfirmationOfPayeeAccountType {
6
6
  export const values = ["PERSONAL", "BUSINESS"] as const
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly"
2
2
 
3
- export type ConfirmationOfPayeeResponseStatus = typeof ConfirmationOfPayeeResponseStatus.values[number]
3
+ export type ConfirmationOfPayeeResponseStatus = (typeof ConfirmationOfPayeeResponseStatus.values)[number]
4
4
 
5
5
  export namespace ConfirmationOfPayeeResponseStatus {
6
6
  export const values = ["confirmed", "close match", "no match", "not supported", "blocked"] as const